From f2944fe9ac6c3ff045eba84a363e97891f2d06a3 Mon Sep 17 00:00:00 2001 From: DHRUMIL PATEL <123137675+dhrumilp12@users.noreply.github.com> Date: Mon, 24 Jun 2024 16:02:06 -0400 Subject: [PATCH 01/38] Password Recovery #8 - done --- client/src/App.jsx | 12 +- client/src/Components/authComponent.jsx | 12 +- client/src/Components/checkInsList.jsx | 2 +- client/src/Components/passwordReset.jsx | 116 ++++++++++++++++++ .../src/Components/requestPasswordReset.jsx | 70 +++++++++++ server/routes/user.py | 9 +- 6 files changed, 212 insertions(+), 9 deletions(-) create mode 100644 client/src/Components/passwordReset.jsx create mode 100644 client/src/Components/requestPasswordReset.jsx diff --git a/client/src/App.jsx b/client/src/App.jsx index 5930c4b3..5fcb7343 100644 --- a/client/src/App.jsx +++ b/client/src/App.jsx @@ -16,6 +16,8 @@ import CheckInsList from './Components/checkInsList'; import { CssBaseline, Box } from '@mui/material'; import { UserContext } from './Components/userContext'; import ProtectedRoute from './protectedRoute'; +import RequestPasswordReset from './Components/requestPasswordReset'; +import ResetPassword from './Components/passwordReset'; function App() { const { user } = useContext(UserContext); @@ -36,6 +38,8 @@ function App() { } /> + } /> + } /> } /> @@ -61,9 +65,11 @@ function App() { function Layout({ children }) { const { user } = useContext(UserContext); const location = useLocation(); - const noNavRoutes = ['/auth']; // List of routes that shouldn't show the navbar or sidebar - const showNav = !noNavRoutes.includes(location.pathname); - const mainPadding = noNavRoutes.includes(location.pathname) ? 0 : 6; + const noNavRoutes = ['/auth','/request_reset',new RegExp('^/reset_password/[^/]+$')]; // List of routes that shouldn't show the navbar or sidebar + const showNav = !noNavRoutes.some(route => + typeof route === 'string' ? route === location.pathname : route.test(location.pathname)); + + const mainPadding = !showNav ? 0 : 6; const [sidebarOpen, setSidebarOpen] = useState(true); // State to control the sidebar const toggleSidebar = () => { diff --git a/client/src/Components/authComponent.jsx b/client/src/Components/authComponent.jsx index ddf65336..317587a7 100644 --- a/client/src/Components/authComponent.jsx +++ b/client/src/Components/authComponent.jsx @@ -2,7 +2,7 @@ import React, { useState, useContext } from 'react'; import axios from 'axios'; import { useNavigate } from 'react-router-dom'; import { UserContext } from './userContext'; - +import { Link } from 'react-router-dom'; import {TextField, Button, Paper, CssBaseline, Snackbar, Alert, Tab, Tabs, Box, CircularProgress,Select, InputLabel,FormControl,MenuItem, IconButton, Typography, Tooltip} from '@mui/material'; import { createTheme, ThemeProvider, styled } from '@mui/material/styles'; @@ -13,6 +13,7 @@ import { Visibility, VisibilityOff } from '@mui/icons-material'; import { Checkbox, FormGroup, FormControlLabel } from '@mui/material'; import InfoIcon from '@mui/icons-material/Info'; + const theme = createTheme({ palette: { primary: { @@ -70,6 +71,7 @@ function AuthComponent() { const [activeTab, setActiveTab] = useState(0); const [username, setUsername] = useState(''); const [email, setEmail] = useState(''); + const [showForgotPassword, setShowForgotPassword] = useState(false); const [password, setPassword] = useState(''); const [showPassword, setShowPassword] = useState(false); const [name, setName] = useState(''); @@ -121,6 +123,7 @@ function AuthComponent() { console.error('Login failed:', error); setMessage('Login failed: ' + (error.response?.data?.msg || 'Unknown error')); setSeverity('error'); + setShowForgotPassword(true); } setOpen(true); setLoading(false); @@ -228,8 +231,13 @@ function AuthComponent() { ), }} /> - + {showForgotPassword && ( + + Forgot your password? Reset it here + + )} )} {activeTab === 1 && ( diff --git a/client/src/Components/checkInsList.jsx b/client/src/Components/checkInsList.jsx index cc1f8b34..a5888724 100644 --- a/client/src/Components/checkInsList.jsx +++ b/client/src/Components/checkInsList.jsx @@ -147,7 +147,7 @@ function CheckInsList() { if (error) return Error: {error}; return ( - + Track Your Commitments {checkIns.length > 0 ? ( diff --git a/client/src/Components/passwordReset.jsx b/client/src/Components/passwordReset.jsx new file mode 100644 index 00000000..04d21273 --- /dev/null +++ b/client/src/Components/passwordReset.jsx @@ -0,0 +1,116 @@ +import React, { useState } from 'react'; +import axios from 'axios'; +import { useParams, useNavigate } from 'react-router-dom'; +import { TextField, Button, Paper, Typography, Box, Alert, IconButton, InputAdornment } from '@mui/material'; +import Visibility from '@mui/icons-material/Visibility'; +import VisibilityOff from '@mui/icons-material/VisibilityOff'; +import LockResetIcon from '@mui/icons-material/LockReset'; +import SendIcon from '@mui/icons-material/Send'; +function ResetPassword() { + const navigate = useNavigate(); + const { token } = useParams(); + const [password, setPassword] = useState(''); + const [confirmPassword, setConfirmPassword] = useState(''); + const [showPassword, setShowPassword] = useState(false); + const [message, setMessage] = useState(''); + const [isError, setIsError] = useState(false); + + const handleSubmit = async (e) => { + e.preventDefault(); + if (password !== confirmPassword) { + setMessage("Passwords do not match."); + setIsError(true); + return; + } + try { + const response = await axios.post(`/api/user/reset_password/${token}`, { password }); + setMessage(response.data.message); + setIsError(false); + // Navigate to auth page after a short delay + setTimeout(() => navigate('/auth'), 2000); // Redirects after 2 seconds + } catch (error) { + setMessage(error.response.data.error); + setIsError(true); + } + }; + + const handleClickShowPassword = () => { + setShowPassword(!showPassword); + }; + + + return ( + + + + Reset Your Password + +
+ setPassword(e.target.value)} + variant="outlined" + fullWidth + required + margin="normal" + InputProps={{ + endAdornment: ( + + + {showPassword ? : } + + + ) + }} + /> + setConfirmPassword(e.target.value)} + variant="outlined" + fullWidth + required + margin="normal" + InputProps={{ + endAdornment: ( + + + {showPassword ? : } + + + ) + }} + /> + + + {message && ( + + {message} + + )} +
+
+ ); +} + +export default ResetPassword; diff --git a/client/src/Components/requestPasswordReset.jsx b/client/src/Components/requestPasswordReset.jsx new file mode 100644 index 00000000..8f4aa16b --- /dev/null +++ b/client/src/Components/requestPasswordReset.jsx @@ -0,0 +1,70 @@ +import React, { useState } from 'react'; +import axios from 'axios'; +import { TextField, Button, Paper, Typography, Box,Alert, CircularProgress } from '@mui/material'; +import MailOutlineIcon from '@mui/icons-material/MailOutline'; // Importing an email icon +import SendIcon from '@mui/icons-material/Send'; // Importing the send icon + +function RequestPasswordReset() { + const [email, setEmail] = useState(''); + const [message, setMessage] = useState(''); + const [isError, setIsError] = useState(false); + const [isLoading, setIsLoading] = useState(false); + + const handleSubmit = async (e) => { + e.preventDefault(); + setIsLoading(true); + try { + const response = await axios.post('/api/user/request_reset', { email }); + setMessage(response.data.message); + setIsError(false); + } catch (error) { + setMessage(error.response?.data?.message || "Failed to send reset link. Please try again."); + setIsError(true); + } + setIsLoading(false); + }; + + return ( + + + + Reset Your Password + +
+ setEmail(e.target.value)} + variant="outlined" + fullWidth + required + margin="normal" + InputProps={{ + endAdornment: // Email icon in the TextField + }} + /> + + + {message && ( + + {message} + + )} +
+
+ ); +} + + +export default RequestPasswordReset; diff --git a/server/routes/user.py b/server/routes/user.py index 2cef64aa..4663e9c5 100644 --- a/server/routes/user.py +++ b/server/routes/user.py @@ -4,7 +4,8 @@ import csv import io import asyncio - +import os +from dotenv import load_dotenv from flask import Blueprint, request, jsonify, current_app from time import sleep from flask import Blueprint, request, jsonify, send_file @@ -21,6 +22,7 @@ from agents.mental_health_agent import MentalHealthAIAgent, HumanMessage from itsdangerous import URLSafeTimedSerializer, SignatureExpired, BadSignature from flask_mail import Message, Mail +load_dotenv() mail = Mail() def generate_reset_token(email): @@ -220,8 +222,9 @@ def request_password_reset(): return jsonify({"message": "No user found with this email"}), 404 token = generate_reset_token(user.email) - reset_url = f"{request.host_url}user/reset_password/{token}" - msg = Message("Password Reset Request", sender='yourapp@example.com', recipients=[user.email]) + base_url = os.getenv('RESET_PASSWORD_BASE_URL', 'http://localhost:3000/reset_password/') # Default if not set + reset_url = f"{base_url}{token}" + msg = Message("Password Reset Request", sender=os.getenv('MAIL_USERNAME'), recipients=[user.email]) msg.body = f"Please click on the link to reset your password: {reset_url}" mail.send(msg) From 6a3ba57d102d045101fcbc9e4511d7dea184da0a Mon Sep 17 00:00:00 2001 From: DHRUMIL PATEL <123137675+dhrumilp12@users.noreply.github.com> Date: Mon, 24 Jun 2024 16:41:54 -0400 Subject: [PATCH 02/38] Move Audio Toggle button #37 --- client/src/Components/chatComponent.jsx | 49 +++++++++++++++++++++---- client/src/Components/navBar.jsx | 39 +++----------------- 2 files changed, 47 insertions(+), 41 deletions(-) diff --git a/client/src/Components/chatComponent.jsx b/client/src/Components/chatComponent.jsx index 2643d417..cb933470 100644 --- a/client/src/Components/chatComponent.jsx +++ b/client/src/Components/chatComponent.jsx @@ -1,6 +1,6 @@ import React, { useState, useEffect, useContext, useCallback, useRef } from 'react'; import axios from 'axios'; -import { InputAdornment, IconButton, Box, Card, CardContent, Typography, TextField, Button, List, ListItem, ListItemAvatar, ListItemText, CircularProgress, Snackbar, Divider, Avatar, Tooltip } from '@mui/material'; +import { InputAdornment,Switch, IconButton, Box, Card, CardContent, Typography, TextField, Button, List, ListItem, ListItemAvatar, ListItemText, CircularProgress, Snackbar, Divider, Avatar, Tooltip } from '@mui/material'; import MuiAlert from '@mui/material/Alert'; import SendIcon from '@mui/icons-material/Send'; import MicIcon from '@mui/icons-material/Mic'; @@ -12,7 +12,6 @@ import LibraryAddIcon from '@mui/icons-material/LibraryAdd'; import { UserContext } from './userContext'; import Aria from '../Assets/Images/Aria.jpg'; // Adjust the path to where your logo is stored - const TypingIndicator = () => ( @@ -26,7 +25,8 @@ const TypingIndicator = () => ( const ChatComponent = () => { - const { user, voiceEnabled } = useContext(UserContext); + const { user, voiceEnabled , setVoiceEnabled} = useContext(UserContext); + const userId = user?.userId; const [chatId, setChatId] = useState(null); const [turnId, setTurnId] = useState(0); @@ -44,6 +44,10 @@ const ChatComponent = () => { const [currentPlayingMessage, setCurrentPlayingMessage] = useState(null); + const handleToggleVoice = (event) => { + event.preventDefault(); // Prevents the IconButton from triggering form submissions if used in forms + setVoiceEnabled(!voiceEnabled); + }; const speak = (text) => { @@ -307,6 +311,39 @@ const ChatComponent = () => { + + + + setVoiceEnabled(e.target.checked)} + icon={} + checkedIcon={} + inputProps={{ 'aria-label': 'Voice response toggle' }} + color="default" + sx={{ + height: 42, // Adjust height to align with icons + '& .MuiSwitch-switchBase': { + padding: '9px', // Reduce padding to make the switch smaller + }, + '& .MuiSwitch-switchBase.Mui-checked': { + color: 'white', + transform: 'translateX(16px)', + '& + .MuiSwitch-track': { + + backgroundColor: 'primary.main', + }, + }, + }} + /> + + { onClick={finalizeChat} disabled={isLoading} sx={{ - position: 'absolute', // Positioning the button at the top-right corner - top: 5, // Top margin - right: 5, // Right margin '&:hover': { backgroundColor: 'primary.main', color: 'common.white', @@ -328,7 +362,8 @@ const ChatComponent = () => { - + + {welcomeMessage.length === 0 && ( diff --git a/client/src/Components/navBar.jsx b/client/src/Components/navBar.jsx index 1b9d1831..e73ff82e 100644 --- a/client/src/Components/navBar.jsx +++ b/client/src/Components/navBar.jsx @@ -1,20 +1,19 @@ import React, {useContext, useState, useEffect} from 'react'; import axios from 'axios'; import { useNavigate } from 'react-router-dom'; -import { AppBar, Toolbar, IconButton, Typography, Badge,Switch, Tooltip, Menu, MenuItem, Card, CardContent } from '@mui/material'; +import { AppBar, Toolbar, IconButton, Typography, Badge, Menu, MenuItem, Card, CardContent } from '@mui/material'; import MenuIcon from '@mui/icons-material/Menu'; import NotificationsIcon from '@mui/icons-material/Notifications'; import AccountCircle from '@mui/icons-material/AccountCircle'; import { UserContext } from './userContext'; -import VolumeOffIcon from '@mui/icons-material/VolumeOff'; -import VolumeUpIcon from '@mui/icons-material/VolumeUp'; + import CancelIcon from '@mui/icons-material/Cancel'; function Navbar({ toggleSidebar }) { const { incrementNotificationCount, notifications, addNotification, removeNotification } = useContext(UserContext); const navigate = useNavigate(); - const { voiceEnabled, setVoiceEnabled,user } = useContext(UserContext); + const { user } = useContext(UserContext); const [anchorEl, setAnchorEl] = useState(null); const token = localStorage.getItem('token'); const userId = user?.userId; @@ -72,10 +71,7 @@ function Navbar({ toggleSidebar }) { } }; - const handleToggleVoice = (event) => { - event.preventDefault(); // Prevents the IconButton from triggering form submissions if used in forms - setVoiceEnabled(!voiceEnabled); - }; + useEffect(() => { const handleServiceWorkerMessage = (event) => { @@ -107,32 +103,7 @@ function Navbar({ toggleSidebar }) { Dashboard - - - setVoiceEnabled(e.target.checked)} - icon={} - checkedIcon={} - inputProps={{ 'aria-label': 'Voice response toggle' }} - color="default" - sx={{ - height: 42, // Adjust height to align with icons - '& .MuiSwitch-switchBase': { - padding: '9px', // Reduce padding to make the switch smaller - }, - '& .MuiSwitch-switchBase.Mui-checked': { - color: 'white', - transform: 'translateX(16px)', - '& + .MuiSwitch-track': { - - backgroundColor: 'white', - }, - }, - }} - /> - - + {user?.userId &&( From c85ca18ad42e560f0aae284c2dc28546604f892e Mon Sep 17 00:00:00 2001 From: DHRUMIL PATEL <123137675+dhrumilp12@users.noreply.github.com> Date: Mon, 24 Jun 2024 22:41:14 -0400 Subject: [PATCH 03/38] Update app.py --- server/app.py | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-) diff --git a/server/app.py b/server/app.py index a7671922..760e4df0 100644 --- a/server/app.py +++ b/server/app.py @@ -40,7 +40,60 @@ def run_app(): mail = Mail(app) jwt = JWTManager(app) - CORS(app) + cors_config = { + r"/ai/*": { + "origins": ["https://mental-health-app-web.azurewebsites.net"], + "methods": ["GET", "POST", "PUT", "DELETE", "OPTIONS"], + "allow_headers": [ + "Authorization", + "Content-Type", + "X-Requested-With", + "X-CSRF-Token" + ] + }, + r"/user/*": { + "origins": ["https://mental-health-app-web.azurewebsites.net"], + "methods": ["GET", "POST", "PUT", "DELETE", "OPTIONS"], + "allow_headers": [ + "Authorization", + "Content-Type", + "X-Requested-With", + "X-CSRF-Token" + ] + }, + r"/check-in/*": { + "origins": ["https://mental-health-app-web.azurewebsites.net"], + "methods": ["GET", "POST", "PUT", "DELETE", "OPTIONS"], + "allow_headers": [ + "Authorization", + "Content-Type", + "X-Requested-With", + "X-CSRF-Token" + ] + }, + r"/subscribe/*": { + "origins": ["https://mental-health-app-web.azurewebsites.net"], + "methods": ["GET", "POST", "PUT", "DELETE", "OPTIONS"], + "allow_headers": [ + "Authorization", + "Content-Type", + "X-Requested-With", + "X-CSRF-Token" + ] + }, + r"/send_push/*": { + "origins": ["https://mental-health-app-web.azurewebsites.net"], + "methods": ["GET", "POST", "PUT", "DELETE", "OPTIONS"], + "allow_headers": [ + "Authorization", + "Content-Type", + "X-Requested-With", + "X-CSRF-Token" + ] + } + } + CORS(app, resources=cors_config) + # Register routes app.register_blueprint(user_routes) From 8ccbd090432facda87e247f63f7e225a0c85f5a1 Mon Sep 17 00:00:00 2001 From: DHRUMIL PATEL <123137675+dhrumilp12@users.noreply.github.com> Date: Mon, 24 Jun 2024 22:52:22 -0400 Subject: [PATCH 04/38] ci: add Azure Static Web Apps workflow file on-behalf-of: @Azure opensource@microsoft.com --- ...tatic-web-apps-polite-ground-0eff54d0f.yml | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/azure-static-web-apps-polite-ground-0eff54d0f.yml diff --git a/.github/workflows/azure-static-web-apps-polite-ground-0eff54d0f.yml b/.github/workflows/azure-static-web-apps-polite-ground-0eff54d0f.yml new file mode 100644 index 00000000..dd028c2b --- /dev/null +++ b/.github/workflows/azure-static-web-apps-polite-ground-0eff54d0f.yml @@ -0,0 +1,46 @@ +name: Azure Static Web Apps CI/CD + +on: + push: + branches: + - dev + pull_request: + types: [opened, synchronize, reopened, closed] + branches: + - dev + +jobs: + build_and_deploy_job: + if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed') + runs-on: ubuntu-latest + name: Build and Deploy Job + steps: + - uses: actions/checkout@v3 + with: + submodules: true + lfs: false + - name: Build And Deploy + id: builddeploy + uses: Azure/static-web-apps-deploy@v1 + with: + azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_POLITE_GROUND_0EFF54D0F }} + repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments) + action: "upload" + ###### Repository/Build Configurations - These values can be configured to match your app requirements. ###### + # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig + app_location: "./client" # App source code path + api_location: "" # Api source code path - optional + output_location: "dist" # Built app content directory - optional + ###### End of Repository/Build Configurations ###### + + close_pull_request_job: + if: github.event_name == 'pull_request' && github.event.action == 'closed' + runs-on: ubuntu-latest + name: Close Pull Request Job + steps: + - name: Close Pull Request + id: closepullrequest + uses: Azure/static-web-apps-deploy@v1 + with: + azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_POLITE_GROUND_0EFF54D0F }} + action: "close" From 38da5fe8b583fcfa35b1430f7966a2ea27e777c9 Mon Sep 17 00:00:00 2001 From: DHRUMIL PATEL <123137675+dhrumilp12@users.noreply.github.com> Date: Mon, 24 Jun 2024 23:31:47 -0400 Subject: [PATCH 05/38] ci: add Azure Static Web Apps workflow file on-behalf-of: @Azure opensource@microsoft.com --- ...static-web-apps-lemon-forest-0b12e820f.yml | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/azure-static-web-apps-lemon-forest-0b12e820f.yml diff --git a/.github/workflows/azure-static-web-apps-lemon-forest-0b12e820f.yml b/.github/workflows/azure-static-web-apps-lemon-forest-0b12e820f.yml new file mode 100644 index 00000000..76c930b3 --- /dev/null +++ b/.github/workflows/azure-static-web-apps-lemon-forest-0b12e820f.yml @@ -0,0 +1,46 @@ +name: Azure Static Web Apps CI/CD + +on: + push: + branches: + - dev + pull_request: + types: [opened, synchronize, reopened, closed] + branches: + - dev + +jobs: + build_and_deploy_job: + if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed') + runs-on: ubuntu-latest + name: Build and Deploy Job + steps: + - uses: actions/checkout@v3 + with: + submodules: true + lfs: false + - name: Build And Deploy + id: builddeploy + uses: Azure/static-web-apps-deploy@v1 + with: + azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_LEMON_FOREST_0B12E820F }} + repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments) + action: "upload" + ###### Repository/Build Configurations - These values can be configured to match your app requirements. ###### + # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig + app_location: "./client" # App source code path + api_location: "" # Api source code path - optional + output_location: "dist" # Built app content directory - optional + ###### End of Repository/Build Configurations ###### + + close_pull_request_job: + if: github.event_name == 'pull_request' && github.event.action == 'closed' + runs-on: ubuntu-latest + name: Close Pull Request Job + steps: + - name: Close Pull Request + id: closepullrequest + uses: Azure/static-web-apps-deploy@v1 + with: + azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_LEMON_FOREST_0B12E820F }} + action: "close" From 5b36fbe781c2bbc19299a7150228bd4068c3eab0 Mon Sep 17 00:00:00 2001 From: DHRUMIL PATEL <123137675+dhrumilp12@users.noreply.github.com> Date: Tue, 25 Jun 2024 00:28:05 -0400 Subject: [PATCH 06/38] Create an auto-deploy file --- ...r-63bcd090-148d-46b7-b34b-2cb4b1971f2a.yml | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/earlent-AutoDeployTrigger-63bcd090-148d-46b7-b34b-2cb4b1971f2a.yml diff --git a/.github/workflows/earlent-AutoDeployTrigger-63bcd090-148d-46b7-b34b-2cb4b1971f2a.yml b/.github/workflows/earlent-AutoDeployTrigger-63bcd090-148d-46b7-b34b-2cb4b1971f2a.yml new file mode 100644 index 00000000..5a8d32c3 --- /dev/null +++ b/.github/workflows/earlent-AutoDeployTrigger-63bcd090-148d-46b7-b34b-2cb4b1971f2a.yml @@ -0,0 +1,47 @@ +name: Trigger auto deployment for earlent + +# When this action will be executed +on: + # Automatically trigger it when detected changes in repo + push: + branches: + [ dev ] + paths: + - '**' + - '.github/workflows/earlent-AutoDeployTrigger-63bcd090-148d-46b7-b34b-2cb4b1971f2a.yml' + + # Allow manual trigger + workflow_dispatch: + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + permissions: + id-token: write #This is required for requesting the OIDC JWT Token + contents: read #Required when GH token is used to authenticate with private repo + + steps: + - name: Checkout to the branch + uses: actions/checkout@v2 + + - name: Azure Login + uses: azure/login@v1 + with: + client-id: ${{ secrets.EARLENT_AZURE_CLIENT_ID }} + tenant-id: ${{ secrets.EARLENT_AZURE_TENANT_ID }} + subscription-id: ${{ secrets.EARLENT_AZURE_SUBSCRIPTION_ID }} + + - name: Build and push container image to registry + uses: azure/container-apps-deploy-action@v2 + with: + appSourcePath: ${{ github.workspace }} + registryUrl: earlent.azurecr.io + registryUsername: ${{ secrets.EARLENT_REGISTRY_USERNAME }} + registryPassword: ${{ secrets.EARLENT_REGISTRY_PASSWORD }} + containerAppName: earlent + resourceGroup: mental_health_companion + imageToBuild: earlent.azurecr.io/earlent:${{ github.sha }} + _buildArgumentsKey_: | + _buildArgumentsValues_ + + From c3e55de58328f3799de313b76adcff72c7f6387b Mon Sep 17 00:00:00 2001 From: DHRUMIL PATEL <123137675+dhrumilp12@users.noreply.github.com> Date: Tue, 25 Jun 2024 00:55:00 -0400 Subject: [PATCH 07/38] . --- client/.env.production | 1 + server/Dockerfile | 2 +- server/app.py | 44 ++------------------------------------- server/routes/ai.py | 8 +++---- server/routes/check_in.py | 16 +++++++------- server/routes/user.py | 30 +++++++++++++------------- 6 files changed, 31 insertions(+), 70 deletions(-) create mode 100644 client/.env.production diff --git a/client/.env.production b/client/.env.production new file mode 100644 index 00000000..888582c6 --- /dev/null +++ b/client/.env.production @@ -0,0 +1 @@ +VITE_API_URL=https://earlent.internal.thankfulpebble-55902899.westus2.azurecontainerapps.io/ \ No newline at end of file diff --git a/server/Dockerfile b/server/Dockerfile index ce7cf168..f202035c 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -8,7 +8,7 @@ apt-get install --no-install-suggests --no-install-recommends -y pipx ENV PATH="/root/.local/bin:${PATH}" ENV FLASK_RUN_HOST=0.0.0.0 \ -FLASK_RUN_PORT=80 \ +FLASK_RUN_PORT=8000 \ FLASK_ENV=production RUN pipx install poetry diff --git a/server/app.py b/server/app.py index 760e4df0..0eeccd32 100644 --- a/server/app.py +++ b/server/app.py @@ -41,48 +41,8 @@ def run_app(): mail = Mail(app) jwt = JWTManager(app) cors_config = { - r"/ai/*": { - "origins": ["https://mental-health-app-web.azurewebsites.net"], - "methods": ["GET", "POST", "PUT", "DELETE", "OPTIONS"], - "allow_headers": [ - "Authorization", - "Content-Type", - "X-Requested-With", - "X-CSRF-Token" - ] - }, - r"/user/*": { - "origins": ["https://mental-health-app-web.azurewebsites.net"], - "methods": ["GET", "POST", "PUT", "DELETE", "OPTIONS"], - "allow_headers": [ - "Authorization", - "Content-Type", - "X-Requested-With", - "X-CSRF-Token" - ] - }, - r"/check-in/*": { - "origins": ["https://mental-health-app-web.azurewebsites.net"], - "methods": ["GET", "POST", "PUT", "DELETE", "OPTIONS"], - "allow_headers": [ - "Authorization", - "Content-Type", - "X-Requested-With", - "X-CSRF-Token" - ] - }, - r"/subscribe/*": { - "origins": ["https://mental-health-app-web.azurewebsites.net"], - "methods": ["GET", "POST", "PUT", "DELETE", "OPTIONS"], - "allow_headers": [ - "Authorization", - "Content-Type", - "X-Requested-With", - "X-CSRF-Token" - ] - }, - r"/send_push/*": { - "origins": ["https://mental-health-app-web.azurewebsites.net"], + r"/api/*": { + "origins": ["https://lemon-forest-0b12e820f.5.azurestaticapps.net"], "methods": ["GET", "POST", "PUT", "DELETE", "OPTIONS"], "allow_headers": [ "Authorization", diff --git a/server/routes/ai.py b/server/routes/ai.py index fc44bb82..2ef19cfd 100644 --- a/server/routes/ai.py +++ b/server/routes/ai.py @@ -12,7 +12,7 @@ ai_routes = Blueprint("ai", __name__) -@ai_routes.post("/ai/mental_health/welcome/") +@ai_routes.post("/api/ai/mental_health/welcome/") def get_mental_health_agent_welcome(user_id): agent = MentalHealthAIAgent(tool_names=["web_search_tavily"]) @@ -27,7 +27,7 @@ def get_mental_health_agent_welcome(user_id): return jsonify(response), 200 -@ai_routes.post("/ai/mental_health//") +@ai_routes.post("/api/ai/mental_health//") def run_mental_health_agent(user_id, chat_id): body = request.get_json() if not body: @@ -57,7 +57,7 @@ def run_mental_health_agent(user_id, chat_id): return jsonify({"error": str(e)}), 500 -@ai_routes.patch("/ai/mental_health/finalize//") +@ai_routes.patch("/api/ai/mental_health/finalize//") def set_mental_health_end_state(user_id, chat_id): try: logger.info(f"Finalizing chat {chat_id} for user {user_id}") @@ -74,7 +74,7 @@ def set_mental_health_end_state(user_id, chat_id): return jsonify({"error": "Failed to finalize chat"}), 500 -@ai_routes.post("/ai/mental_health/voice-to-text") +@ai_routes.post("/api/ai/mental_health/voice-to-text") def handle_voice_input(): # Check if the part 'audio' is present in files if 'audio' not in request.files: diff --git a/server/routes/check_in.py b/server/routes/check_in.py index a379a4bc..9735ff84 100644 --- a/server/routes/check_in.py +++ b/server/routes/check_in.py @@ -26,7 +26,7 @@ check_in_routes = Blueprint("check-in", __name__) -@check_in_routes.post('/check-in/schedule') +@check_in_routes.post('/api/check-in/schedule') @jwt_required() def schedule_check_in(): try: # Parse and validate the request data using Pydantic model @@ -66,7 +66,7 @@ def schedule_check_in(): return jsonify({'error': str(e)}), 500 -@check_in_routes.patch('/check-in/') +@check_in_routes.patch('/api/check-in/') @jwt_required() def update_check_in(check_in_id): data = request.get_json() @@ -106,7 +106,7 @@ def update_check_in(check_in_id): except Exception as e: return jsonify({'error': str(e)}), 500 -@check_in_routes.get('/check-in/') +@check_in_routes.get('/api/check-in/') @jwt_required() def retrieve_check_in(check_in_id): logging.debug(f"Attempting to retrieve check-in with ID: {check_in_id}") @@ -127,7 +127,7 @@ def retrieve_check_in(check_in_id): logging.error(f"An unexpected error occurred: {str(e)}") return jsonify({'error': f"An unexpected error occurred: {str(e)}"}), 500 -@check_in_routes.delete('/check-in/') +@check_in_routes.delete('/api/check-in/') @jwt_required() def delete_check_in(check_in_id): try: @@ -141,7 +141,7 @@ def delete_check_in(check_in_id): except Exception as e: return jsonify({'error': str(e)}), 500 -@check_in_routes.get('/check-in/all') +@check_in_routes.get('/api/check-in/all') @jwt_required() def retrieve_all_check_ins(): user_id = request.args.get('user_id') @@ -160,7 +160,7 @@ def retrieve_all_check_ins(): return jsonify({'error': str(e)}), 500 -@check_in_routes.get('/check-in/missed') +@check_in_routes.get('/api/check-in/missed') @jwt_required() def check_missed_check_ins(): user_id = request.args.get('user_id') @@ -183,7 +183,7 @@ def check_missed_check_ins(): return jsonify({'message': 'No missed check-ins'}), 200 -@check_in_routes.route('/subscribe', methods=['POST']) +@check_in_routes.route('/api/subscribe', methods=['POST']) @jwt_required() def subscribe(): data = request.json @@ -217,7 +217,7 @@ def subscribe(): return jsonify({'message': 'Subscription saved successfully'}), 200 -@check_in_routes.route('/send_push', methods=['POST']) +@check_in_routes.route('/api/send_push', methods=['POST']) @jwt_required() def send_push(): data = request.json diff --git a/server/routes/user.py b/server/routes/user.py index 4663e9c5..0872ebc3 100644 --- a/server/routes/user.py +++ b/server/routes/user.py @@ -39,7 +39,7 @@ def verify_reset_token(token): user_routes = Blueprint("user", __name__) -@user_routes.post('/user/signup') +@user_routes.post('/api/user/signup') def signup(): try: logging.info("Starting user registration process") @@ -88,7 +88,7 @@ def signup(): return jsonify({"error": str(e)}), 400 -@user_routes.post('/user/anonymous_signin') +@user_routes.post('/api/user/anonymous_signin') def anonymous_signin(): try: # Set a reasonable expiration time for tokens, e.g., 24 hours @@ -105,7 +105,7 @@ def anonymous_signin(): return jsonify({"msg": "Failed to create access token"}), 500 -@user_routes.post('/user/login') +@user_routes.post('/api/user/login') def login(): try: username = request.json.get('username', None) @@ -126,7 +126,7 @@ def login(): return jsonify({"error": str(e)}), 500 -@user_routes.post('/user/logout') +@user_routes.post('/api/user/logout') @jwt_required() def logout(): # JWT Revocation or Blacklisting could be implemented here if needed @@ -135,7 +135,7 @@ def logout(): return jsonify({"msg": "Logout successful"}), 200 -@user_routes.get('/user/profile/') +@user_routes.get('/api/user/profile/') def get_public_profile(user_id): db_client = MongoDBClient.get_client() db = db_client[MongoDBClient.get_db_name()] @@ -159,7 +159,7 @@ def get_public_profile(user_id): return jsonify(user_data), 200 -@user_routes.patch('/user/profile/') +@user_routes.patch('/api/user/profile/') def update_profile_fields(user_id): update_fields = request.get_json() @@ -181,7 +181,7 @@ def update_profile_fields(user_id): return jsonify({"message": "User has been updated successfully."}), 200 -@user_routes.patch('/user/change_password/') +@user_routes.patch('/api/user/change_password/') def change_password(user_id): try: # Authenticate user @@ -214,7 +214,7 @@ def change_password(user_id): logging.error(f"Error changing password: {str(e)}") return jsonify({"error": str(e)}), 500 -@user_routes.post('/user/request_reset') +@user_routes.post('/api/user/request_reset') def request_password_reset(): email = request.json.get('email') user = UserModel.find_by_email(email) @@ -230,7 +230,7 @@ def request_password_reset(): return jsonify({"message": "Check your email for the reset password link"}), 200 -@user_routes.post('/user/reset_password/') +@user_routes.post('/api/user/reset_password/') def reset_password(token): new_password = request.json.get('password') user = verify_reset_token(token) @@ -243,7 +243,7 @@ def reset_password(token): return jsonify({"message": "Password has been reset successfully"}), 200 -@user_routes.post('/user/log_mood') +@user_routes.post('/api/user/log_mood') @jwt_required() def log_mood(): try: @@ -269,7 +269,7 @@ def log_mood(): return jsonify({"error": "Failed to log mood"}), 500 -@user_routes.get('/user/get_mood_logs') +@user_routes.get('/api/user/get_mood_logs') @jwt_required() def get_mood_logs(): try: @@ -283,7 +283,7 @@ def get_mood_logs(): return jsonify({"error": "Failed to retrieve mood logs"}), 500 -@user_routes.get('/user/download_chat_logs') +@user_routes.get('/api/user/download_chat_logs') @jwt_required() def download_chat_logs(): try: @@ -331,7 +331,7 @@ def download_chat_logs(): return jsonify({"error": "Failed to download chat logs"}), 500 -@user_routes.delete('/user/delete_chat_logs') +@user_routes.delete('/api/user/delete_chat_logs') @jwt_required() def delete_user_chat_logs(): try: @@ -350,7 +350,7 @@ def delete_user_chat_logs(): logging.error(f"Error deleting chat logs: {str(e)}") return jsonify({"error": "Failed to delete chat logs"}), 500 -@user_routes.delete('/user/delete_chat_logs/range') +@user_routes.delete('/api/user/delete_chat_logs/range') @jwt_required() def delete_user_chat_logs_in_range(): logging.info("Entered the delete route") @@ -390,7 +390,7 @@ def delete_user_chat_logs_in_range(): -@user_routes.get('/user/download_chat_logs/range') +@user_routes.get('/api/user/download_chat_logs/range') @jwt_required() def download_chat_logs_in_range(): try: From 283eb12ca478f430c23866976c6a28bf6ffd579d Mon Sep 17 00:00:00 2001 From: DHRUMIL PATEL <123137675+dhrumilp12@users.noreply.github.com> Date: Tue, 25 Jun 2024 01:06:14 -0400 Subject: [PATCH 08/38] Update .env.production --- client/.env.production | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/.env.production b/client/.env.production index 888582c6..cfd2b281 100644 --- a/client/.env.production +++ b/client/.env.production @@ -1 +1 @@ -VITE_API_URL=https://earlent.internal.thankfulpebble-55902899.westus2.azurecontainerapps.io/ \ No newline at end of file +VITE_API_URL=https://earlent.thankfulpebble-55902899.westus2.azurecontainerapps.io/ \ No newline at end of file From 44135fde78269847b04510be4cecb77ed0b96c00 Mon Sep 17 00:00:00 2001 From: DHRUMIL PATEL <123137675+dhrumilp12@users.noreply.github.com> Date: Tue, 25 Jun 2024 01:16:35 -0400 Subject: [PATCH 09/38] Update .env.production --- client/.env.production | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/.env.production b/client/.env.production index cfd2b281..78a72c85 100644 --- a/client/.env.production +++ b/client/.env.production @@ -1 +1 @@ -VITE_API_URL=https://earlent.thankfulpebble-55902899.westus2.azurecontainerapps.io/ \ No newline at end of file +VITE_API_URL=https://earlent.thankfulpebble-55902899.westus2.azurecontainerapps.io/api \ No newline at end of file From f2c827a807af73ff3a75e8b7666b38c611638f02 Mon Sep 17 00:00:00 2001 From: DHRUMIL PATEL <123137675+dhrumilp12@users.noreply.github.com> Date: Tue, 25 Jun 2024 01:24:52 -0400 Subject: [PATCH 10/38] Add or update the Azure App Service build and deployment workflow config --- .github/workflows/dev_earlent.yml | 71 +++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 .github/workflows/dev_earlent.yml diff --git a/.github/workflows/dev_earlent.yml b/.github/workflows/dev_earlent.yml new file mode 100644 index 00000000..6b814883 --- /dev/null +++ b/.github/workflows/dev_earlent.yml @@ -0,0 +1,71 @@ +# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy +# More GitHub Actions for Azure: https://github.com/Azure/actions + +name: Build and deploy Node.js app to Azure Web App - earlent + +on: + push: + branches: + - dev + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set up Node.js version + uses: actions/setup-node@v3 + with: + node-version: '20.x' + + - name: npm install, build, and test + run: | + npm install + npm run build --if-present + npm run test --if-present + + - name: Zip artifact for deployment + run: zip release.zip ./* -r + + - name: Upload artifact for deployment job + uses: actions/upload-artifact@v3 + with: + name: node-app + path: release.zip + + deploy: + runs-on: ubuntu-latest + needs: build + environment: + name: 'Production' + url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} + permissions: + id-token: write #This is required for requesting the JWT + + steps: + - name: Download artifact from build job + uses: actions/download-artifact@v3 + with: + name: node-app + + - name: Unzip artifact for deployment + run: unzip release.zip + + - name: Login to Azure + uses: azure/login@v1 + with: + client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_9BD5731DC96F49B3947E8FB29084365D }} + tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_175C998FDC464558BB2568F7D06919CF }} + subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_CB50195BF2D54DD6890F18EA62640C1B }} + + - name: 'Deploy to Azure Web App' + id: deploy-to-webapp + uses: azure/webapps-deploy@v2 + with: + app-name: 'earlent' + slot-name: 'Production' + package: . + \ No newline at end of file From 125c33c785914684d8b647b1047e9ddf1793abe2 Mon Sep 17 00:00:00 2001 From: DHRUMIL PATEL <123137675+dhrumilp12@users.noreply.github.com> Date: Tue, 25 Jun 2024 01:29:40 -0400 Subject: [PATCH 11/38] dist --- client/.gitignore | 2 +- client/dist/assets/Aria-BMTE8U_Y.jpg | Bin 0 -> 197470 bytes client/dist/assets/index-OqFv3qDw.js | 224 ++++++++++++++++++++++++++ client/dist/assets/index-lS-_zLkx.css | 1 + client/dist/index.html | 19 +++ 5 files changed, 245 insertions(+), 1 deletion(-) create mode 100644 client/dist/assets/Aria-BMTE8U_Y.jpg create mode 100644 client/dist/assets/index-OqFv3qDw.js create mode 100644 client/dist/assets/index-lS-_zLkx.css create mode 100644 client/dist/index.html diff --git a/client/.gitignore b/client/.gitignore index 1cac5597..bb91fe4d 100644 --- a/client/.gitignore +++ b/client/.gitignore @@ -8,7 +8,7 @@ pnpm-debug.log* lerna-debug.log* node_modules -dist + dist-ssr *.local diff --git a/client/dist/assets/Aria-BMTE8U_Y.jpg b/client/dist/assets/Aria-BMTE8U_Y.jpg new file mode 100644 index 0000000000000000000000000000000000000000..3ecf98e52f9b855632be3ac100c4db4656f15218 GIT binary patch literal 197470 zcmbTd1z1#F+dn#VNJy!apma-@fS`ahGYkU^A>9MgB@74x4xJ+1Fbp7_A|c%^sYsWI zbaMuLzxR3m*ZIzMopToK*=w)8_S)-SamVkz_x05E0^qK)f|3FN0|NkfiT(pz{{)1~ zd)in60BULgP5=Oa55U172VkLd80bF$1`Pn`HV*(OW6=IL55i#oPaRAEAjAfM{hvBe z^!X;CTfTYvKWD5=jDK3p#QdMy*nmu|fATkvUAF+p@UhWlSQw81m}D4OWEj`&00wkh zI2gC-rqWHqz{JAF!NtQTAiRUFP<OsxSEiA39ZERg!-P}Dqy}Sd1-UWw*zDLBy#U~_wNcxzZos*lFUr>lFs;I20 zuBol7Z)p44-qG3B-P1cdHa;==ZEAYv=i<`x%Iezs#^#^B{e#1!u12AtB7A7VZ4i**`4lWKl;o{@oBz!{r z+eG-EM0A@-ZW8H#(>1ygG^JSB*w}dJ|GRex?%e(VoUZ553+dVQ41fp=1HG8A$N(~c zOG?Wk`w4NeqSDv=Td&fDT@Ed`1wBr$0goeotX&{NQ%6B%+dZ}Lj6F`Zn}XnCpt1V0 zEAUIifiCaUR4t_ep;VBdLvBKABku40EBQy_x!FObtUHuIc}a4~e;R^O>Uz*OUR(oW z6mF`CAe0OWxZY6$pF=4A&vNp*Qc5ik^!wQ7ui)KTT<-#J8%dEDy*)?27yX}mg~$Js z%TMS`==opD3rwcG#Pj12;WzyhDHSPI`KJfZ<+%vk6CR#9+;m6jwp>2MWE|`YG|^4@ zr{BQ{ZeiM3p!V^|mslMJ4w2i=qsDGJ$Z2m4&98(Noi`7iQU;mtd5 z2c@X22ibUY&tQmrw;ymeUMBD4`mCll(cplK_Q^#{5r!TzXtgT%U1{yb*A)$qHqr}E z1g&DDs&BTwuFQ}6aI-yDe}SG3?8Q>yv}Ab6#5Tp%OyV_QSpG>z4*X%0b-^%q#D#w* zp{sUu1FqLMQ<;}6*8r-#*-ZE_41UK(h95JBMj6VX<1ZHf?!9nJC7kzpa2BE!_tI@=0HR8P;w~Uuv*CN>;wO` z68`3&{co!`li-Hf+Zq37sUyoFto!)u>_2{8!6iceS*L2c^dlnI0LT5)vA^VU5H8RD zpG)cQs?xmA{12%)|788^S^v8X|GR)Gac(=tF+p;3PabT)z=vqJ|(W%M=)C{Ia_W*@BE81j@si%ECTZR6;oUyQ(Pm8S&R zF4-=}Pv(z2cfZ#vPeo6ln;UXF<674Fw}Y#h5R?!C1dgcYmMW>)-Y%Ca{M$+Yy8-{Q zAAdsjY=1&d33kr*e~prm<~`;gz}wBuQAMeAJM;Osm+Tm5&H%Dq_{-5!{@xi*2u|o= z6N+zh0X7!-u42Y=a8XboFa~sM#}2uYF4keMdSvz{{!qe?XQP{A3Rp@I($j~OG3WBu z5zc51>j{fG6js90;nE^159Z&&>DrCd-=h{D=1n(w=rtz7X5&U15y)`ZLm2fn4s>Uq zFkWJGrf}=wM~A!cADvjI$rJJ)=LW+RCss9txxb4wH}gJvRcg-FH4Ju!ZXA`M_k~{d z`!4N3x3BP}OkVf`IL>hW-RI8o55Ty}?}Gy;@xX6aILc3DePEp#boV$V@E^&WoRqOv zftR~oUZzh@b}sCcmyI7j8gp-T2s)3>y{fh-amYq*Vsc-Ju94E6r>hK_2G;=2wNha< zx!+gPrTHnT7lZ9q8>tY#@j)jjCm&LJlFii7@exsuepS^o>0b%amKVLGYue_`Z{>d2 zO}N<&oshSL>|)0lY^D-&$t$-P#Rw(C0DBGk>R(R^>TLv105WL|j+Iz<*C+YU?uFK0 z1G?O z(QP!!`ul>}d(bnH|KKg()#EBxLl>>aN$wJ>7^rw2*kt8}0NqmIGrQP9v65yIqLV^*)i!?=dtjXxR3Nq^jxnZ$2CNw%}yd+8!vg1QFGHt_9rnB(9z$=vRu zO9I0latG*M16n@drcpu-U@4G>u^}_c+<+5NnG!4ZFYod*K;@_E-z4=bQUgzEqUk1E zK2JVv=5f;%e$Zgw6pAOaEA4e*D`NM$@%MoZtjWA0u3zJPdD(2;mRn@o5(wpQ&7Y4t z`C#iLcnuhm3~yPQO??Zefpw-7&P41(%c9P=g5{)~gQA8gg-u+jWIO)qGs%Qy-Nt_L ztA-Oi20kR&IfLRG@&fPK3pbUO=G3NcIfNRTv6Gk8Fc7t8Z1~7vg24-5$LPbxB^PWAwL?Yk``tDscuLIm1+K5jOb`FN?kxN2b6ePLm+nUv8 zKl(`mLUt4-F;~KRHUgUx_)?u6!#bBqs0xFg5-6MbKM&uW(Rz!Lx-kb_+Nrt1KriKo;+FL@PGQb%_~o-WyIs<~6S;9p`9Hg2 za>Vdxb$;mtF@V|=*yi#qhfq+j5()k4`POSd;&G`3yin6UDvLE)XX*oM4FkzX>wXkL z1~}e#rTRIMOn7Nt=o$OjL^Sbxwt=cK+EJWy?XD#zht|VZssJzKrs$Hz#8;&U>tR8% z2l8!K3G!g}mJ&+7y3}Hrns0&N>F8JKJkE?nl^$w;rcq%rfVX9~#7-_a?{k=S#(cnw z=lcfy7fQwNpmB{51aq&Wv9n&SIJXAKJK5pK{*{{KgQYw{)&?`Iv;jmf!9hL-!aG`G ztY^SA*L1#P_6pvUzg@U73m-ZaZcrU)jGR`cpx>0{@VHS+PN{jO;!{B*@}PIMw9!C$ zcIvEFp7(VL^*^hx0f<1g-&fHYljZ&$j-KZ54#m9lxy&m!fsn@X+=m71*8sogS7UGq zm_dRIcZf{;kHMU2NY=9XYUk4IA+qiu8xf*ZQ6DtayrH6g(~I0GE>VSU@sJUDs<;4U zS#>DvDG@}S-Bu1=kWw&J%`$#F@lvdwv#$2NzTjv$KM+0ZkuN|D463>(HWzCV|_3lhch6l66!x>br{?S2^qB`ABsfYs~0e{9ZE;&g_yPs(^8@y4k(8{Za zz`60R#_($40NvzXl2t@@j5i9C_HgUvn-XH=tun>;#9M3q@iB9bFQa(A_GA5W7AQ2o z+Q~M&R8?$4vsz8FTBP`eVekl$Tt9OILg`l(K~aZ+fSQQsK`|sFvJsrRZ3qsG0j10; zpgaJr+T0%O)CFUZv}ZWzO@~7X3P{FIYe#bg>>JAokk*!q=1T;(8<`PZ3P2y2FOZ2T zAWdud^(dN2z{HW&r_*PxMhN!Y`S3Obdp=rQ0?%QhGifbo#$l|8<^k4!-vt~--_yhZ zj>uyv|CC3oSjqLQXOStlTBus430l9>_K)+W-K4+a3^y7R=erw22&DX#IXfpixD-1+ zXz`=G3Ixpx*t4UjfI6_Mb5!BGUL3?MGxdriFT;nCC~n^vrIH6c_6s3H@9()@12R&| z%xZ@&1%oWmOd){cfD-3-c^u5f%`;yGjLRZsWB69CS&tTQiK|ils%GpLOJ6YznXuX4 zd52kgkD}>I2BUOR;m%>GDDKx+svilDvFw$lnBL(7qu}ijsexaUnX{$KHX@fJshm;r zSSwiToa3~(+pap^3DNIh4pw&E{HoZRlIKh84}I}4n~C-G;GRjocjt;I4^he^0R+g8=L4V%|4lF?E;W6#D}O%yS& zW#7|C$iJZyx1kg_Wg1Te*^J%Pcrr%{HBA5U=^9{^j%(8jr&$MokfT*GeIhuMwsMv_ z9>aP}_JSyKo=Ra=>;Q|k;lXFNMS}YSiQl%%;X^9<`fg~QW)QACBF7$SmP`l@yh&J(iJo?GDw}9 zQxZMj`E}7#)L+=#!u85RgwKxBwRtzHf=;8z=8vz{544RJsCv~s_95gOjPi_A`5Mq8 z?@}+Fz(W$$_+BT(Ec>c^0}-P%+GC%sfPoT=@fGAH%eTVY}7JoI0+r z+UrfH6CK5ct2cT%fyZiXYkR^&667jQ=jIIA^{^5jf?w zuYi%i9Un)Hma{PSo;)~BL0gwXBfSZSC1$cS$1IZw(Q822LG3j_d-0CKHNeYUV?*(R z>D@J8!Zwi{J_~C;yIbl?1p2d~Hu}MdbJ&+8)KkL%esUbi6?L}q)E>^$a+LsaB;9g9 z6`WEJfQOk0T-i00Z(iJQcvsIlxuXl8k7>CG#4xyso?}r;;FmIgc5O%+D*kxoO{Zj}e=+)1`UOXcNGEd-C9;sPjW-tQ+^(1VPk%`Rb!aoNNxR~5y{PZvm zzt=Hey69wo{t`)MN4HUk7Sd1o0N-Wi36Q-pX-H&`8Mep}i*jPmC1i7MsI zGc;0-^s9E|Pd{V zT9LN>l{JGsSoC~yFOa7Z-lG2U((b-m4pN=ZGE6xk#!_B*2fnPyl0Xx{@#;S#pLW+7@Gt z4%bxc23tm_Pq05IB;dHGQL5EQ4 zuZC$vb=1VPXu0ZFi9 zjk`?=%KluDdpAdgJA^P)RFJ{sVo26dI5CFEB5?(Bw#i?gsnC8m;JcSI2G;OhsUc-0 z-4D#>P+h}UTq^dIveaJ(e^szZr|dfW`m@bcFIHB(<*Ryul(1s3{Y(oRkIZI&ts3N= zc5y^?FQ-(WIB;d0E!;%fu;z7Sn^+l^*|LK zbKF7BL-dnyDA9L&fhw<$oYhBVoq%ik2pg;rJQnH^lyK&-p*OpB0;jaAoc~qACDfkjvt3SFiqjag56%=Cbq-4NltJs}tBI=xM^tG^owX?a8G%Ct(Y#uQ90k72 zJ)sQ8-HsHhiZQfam(JXjLJ)HeP+e?UnvZbSN9_9Z4TF=UtH+2$_a8`vZkqpbZ!i@( ziYv_^ySnp27w_SwD12#RP}%6`#caOK^3%kau<{GtI92t7v+Z~IISkg{+hK8CvKtz$ zhxzu%nj0x;=cdF&4UVIgSCWSY`aGzAl;0{xIj)tA-JfZ@=RRod-N!p~2 zzpfyA(TZF9_z!L+kr6P}pj~Dqt&JdV@3qFVZM4rLo0SJ29YiTs@lM^-105v21GQgv zIQMeo=uTSC*!{vhzvGo(je>iR?4nIpgXQjvat%ZB!QXg_2Af|xVB2|{4>Q&shm9REdx@{&1K0gFE{H9tdVZoj)W#1bA7pHQ z;4V*fh`90`Dp&08czHad{c|wK?8uA1zb3@Nw_nvgqh&&9bc*lZfffHPAfRxwf*sR{ zODkri`aPCcK4*olVSN{6%s3$s4&xM}5dOSA(w!>Mou}(7+gfa(0%FWgSFpL&gRGrs zl4dw=3>l%#NYG^#y$sXXVeYMgGwFao0^a9g-uBP>s_?^$Ho>t_9QTu+!I0IS4F$KH zMzf8~kRw|m_Hx$2pyFu7M!2BC=v$wZwn{_w1j|uJR*`3L(;tU-4McYy)Os$j0nVJI z@C)W<45s^*4LV2asR5DrQs_VF%;fI37In|9yvXPDmx7#PzbqW$ZJa{ViW}a=vrcvd zmlVXrSvhOWkohDf8K=T42PFb0C!etg`7J<=>!Ya2vkrx!NcLFOgF>YN$+r+p z7bSVhxN_N>x{SBD*xTg$Dk@1R@y@ zF)C~yxcdN{D|!hZRSH>TX9#FRTciZ!Wz$+H6jj1LvY9GBb5W5ODz&9FIjdFwp)43_ z+tF0rF}?+}qE%zM95>RS*I)yXEJx!xb4;b=)f-j8s-}5ORZzkAYNFbD=PGMW$fG{? zJazJytajA1foRGdyPWDggghTWn{RRf4GVV#CC@m+eHfbbJg!)xd%IrR5bZQVkK{2I zJ~`36g;1T5zub|~W=`xM7-$X}Yl!{&;{C5&K5KJL8Wv+mt4+l;R>HO~Emri6-`ISM z42(K!dhgAQip-VCCxnyD?WyqZ7{pzmgmv(?zHQB&#rh7&IAT@<^(z#X$5PiQdtMVc?8 zWZjd!IXV?jsY+~e4CiLUHjbvIYacJJv4_iSBm;~zP6%UuLyUgE7|Za>uy-SfM`MzW zn&svmkpOkyuvlNzD>)11#ItDK^_j>#S`8RYUWJugdofdh(-zZfjf&-S?IR7MjZmVB znsSM7SZESYGd1m+(*Xc-FAMp@)|tSKW5!f~N~taL0Q^7`udH}`DbHOlD7SQwV_d^5 ztKpAyj#TYb$+Ufm2JRj0J+Z=!nnOmi)iPJR}N>`EM6U9}Vm3PYr zD7(Dl%@JGS)Pt*!#PX&=T7N}D-m^9PXM*Zjlndw|Dq9}3<#JHh>pY%v!%GfTQ$0$P zhU>c|HpoE!Y6kl5Y{?a6+39%7>%eeVD{i!s_gvg0rh%|5vF}3dM0=oaLxC9TFvFCt z_5-3rrtsNJsFBhYcrxLiJ67X^7Dc^rAYY}U82!6QnR)2?1-pl5hBC{uj$YRbJJLRx zd9-sa&DD=m)iX@pY{u=Xx(`Zz1gn85XFI=KVYswUg;T%GY z4!M)aj~T+e8s49emVIXeZ%3|vMP3S+T{05AeT?o+0=p6C;0;@*y}^iDK?zmmqeTWK zD^XAb259*|T-&LRx3kw{Q}Le?rGK&}?5v=)uzQ=>*b~$gJjvrBD-j>YDfGHxtQgwRd?%bt6I{BENEkuj`Dm zB!BR<-6d@|Zi+iF<|N!_61J1#lP^%Rt%~@{#YPk^^}G}u)tR*^o!~qK8Rw?T3051f z{rP<~cDe^i zEF2myX7$f&jj?#EU>ut@7p@>S^gy}`Z>Dm~retOyt*TbHz1eT{Rq}Vs1B`&y1H722 z38COSUDgLDGqhDhA1yd87tOA`${9Y>9h@(CN7_PnT$xk7a*6~eixos&HZ(DME*0~P z0$k#Ny*eWAlsa{3auv9g4`26nSfw5nTULt%RWWAgTg+>Ub#kS5nI_-MEjqY`aDz)7 z()ySe6LXN9xM(@@Y_$MtV=%B@szkn&?34PMLs4~{Tfnw|_Dhf}P~H-D15vYcDo3W1 zShIwo;h>lQMvreH=)9t88*4NMJ@Nl6MRM6F0TF81$>TJ+5;=Kj*B8lGf&u;%7}2b) z2->~JML3i`fhEl0z$yA>31MSktZpmdA}e0lGXO$^N0|Q=BkeE$V{(wYsBuN0D8}9B z71i6Sd(c30r{|U$7tKBL1ih3demgtmQ3tpCp+Rt7&ea}FQv7OBHfL_F>5$KsCSefCDRmwZLtL(aAQ$^E0)CCR=@V;PpCAGQPNM$IAZBA{ zG8>_fX5ViqGteXBAqaL}%7@+~%2X*klYb&}MOgGgFY*9{7~KmFr~VIk#v{e>3LJeP z5*AlEuWJ(T3b%K7PyzjOCf+l$)Auk!Mre3LJGA;H9b1NIzkDU2+Z7YVez=A&MQme6 zJ)uNd?COK+_WRzSm`FIQHqq5XCLI%Lq_ypTX*>4HhUO)nO6`3Qm6nFj@{fEMYpG?o z4dS+RkI(Y6kOsb`SMKTdI1n}ru)8*ZGs*&>jVWjtzdP{B=XtE#EZ_Vq!_E7|ZeD_O zXor~Be4l6;z5hdh)1vK%RiT2((WyE}LNb*X&dNnI?bc4oh6yY$QHHj0;%RciQ1=^l z_Ln=UgPD+}c`sWBm)vi`v{qkE*bU=!F0s#o^&4zIzvW>nWfN&Z`yel)#o7qz?$!yV zP3;-@joO||sHV2!gJ^WLv^b3-*fJ!0tGvCKrsMNCyKT@9cyfg5!?qg~_+IT{ERUbc z!`cf|4}NDmWssg=Vr*c(m`dqk>6|i6iTz?95!WM~QDWVN^>WrsuKh?; z>5@yC9!syTE2dyhDSZp=cUz)D#ovoasvGxVO1+z*>L<(?8aPHZ)wS@OLTOAj75*6$ zzOKsId&1TpaSh;=g?~>(he=Ft_&{x@tCaJ!55%$_a{09V30NeS!Mf5fI4sFHk*gj$ z{fT#l-Ej@*faJ&gRI?n?u4+hUj}^<)F|BN0!5-ro_t!GcgQ4zLpina&yI3pUF z-p$B#=gy{2mv(9pcm}h6-SCjn4zIlmOdhNsIiz*4s!FGW`?0=S@vU0fc=H8bjDQZ>;7> zy5?Wo{Z(1go7~Tavr{S=s-1KcYNx6ORDX>wp9`bms}DB%oL!^h{DIrFRPUcs==V?V zcaC&tcvEpCM68w8Rg!vCV%Gqy6G?FuBsBmXJ0r|yDQgIkhLY3|t!Nvxz7Bhs zNuBsaq&Jtql&PWCX&a8oIp2rH(PfKd_UvjR;XplkrzHQKJJu_{f!JbPD97HT@0gAx zOsrFOT`)ZIbW82YfCXQ|>qezkyh6qUMzn1e%1jf(VEWks#q4Y>Aj;Y5s{ns2PLE_7 z%y3-kr1`B9zGGe4;3MGEK0khJU>x~*-(bM`?BQq2BGh(AL&!j_rBR`v!HIb32%~%i z@1q#2$|RT`_)W>SPcVJ!vQIcg&-~XTpAVto#;Lxf%Dr|)k9i6#!QQvlgs$zot%Mw; zfK=dQa$ijv2rOiq-@T58(FRcT{Aqna4^+&)-tOK4B;J7LZvJ+dV$gtPrAzXtt0NPJheG zz^Mxh6KyVP?BUW5q-M{klm=K{ns)v9v}nyQhP@Q#J{NOrw!r{d^B;9Iqt*sO;}4=pKe~7oJuYg03yLk* zT?!9B{lIKo6fF(LR${AI6K_}xH9Gf8$>tB9w9rmod=;zz&R~JQZto}7PJ7aW<-OOB zCk}gr<#@6oh+a0{a{jsBkG8n`y}U@BJ?SYizEON)`|Tk-hOcLsdiMP{yt`7k$|(WC z+RK>*0swp8zLq!~g8COc=vf>6*hsnSqK|er#yM<9nZ*lm#v~@D z8kkQgblq(vcF8?u!8zz1S%zyqObDL=bem;8-C zyczj{8I^6$=CdRDalgCa-^J+PnUW>f)Lf8EA=S!%8RbbRvr)jdL4+Ek@kH7kf#Ea> zu#9SV=Ja5V6r`G;Z8WPo=cs-?>`QeXC0VBgrmr1Rp-Zw+;A#F=;4}4kt~XAj(Jiq= zF@c+0S=MH(X54<`i|Gj-z3fv3q0|kCO`!dXi_**rPq^PN)$(p1j6>9h_11tv@OULQ zpztXGL*}2>^&G|QX^exk$!A~58R$=M!~JOaAoiJ6v@i7;LmO(|_N-}_3vE&G85Yfg{q6)PohxmZY?`kr zan(A7Eo`m(!IU>AI}~4uXui5SeWvzuMkl!B&zh~^{94g$YZ>VYWpL%hYwPJ+gkPJ+ zBHXEu+fcYdIN?IrmftR4$!Xmx^(qU1c71OVlU{h~LiMfcLM8ni)Xai-!ofvBkY-5W zT$^r>Z-N={v*O~trC%iv=&^0@5`Ry5Rs{O7Dax?5vle%`K^L_KEY_1wKR66sO8z!A zrl0iLLVX34_vKuW0n~M26G2mc>MsM-xrp1kf^#Z_9u;h7)+q2%h)#U`4t_QNs<+D3 zI)|n@=NF(Dp&(u5MY_p(6=&ahg*&A1YE29BL=%>cT;y~?RnmAe>8+gV{1$a|0X}wL zm%_0hvVU_b;Ixk}&`f%MZko*>!r4IaNof9~ws|ruuDJOt!%{TDh$`Pa>*uQAk^8B5 z>1KA(lY1^xcTpr$8TU&aoHfFzo18YlfQ~!rT=a=~EyWV?>a^4bUJZhuoQ-Z5(07M+ z{z!hpkY|anwAI0vkYT%&hVQB{(mAexMt*}FjGxX+>zn$tzSe`|yw=##toit}zIkHP zc{W4oCktFiX0#}@yD%IUnb5__w_W4j^&oxYepFB?+nUDb>c)rf*&!F&e+I0EvTbKP zxqPhHRhJ}H_*UzwXyxioTf`2jQ8f*T1!mWPhaRyV+jI#Rkva#((86lfZ?jrH`H{{l z#u#poh97pxWIWY|^Z0T#!Q54fi9x;J4}B_GyJU9JsuN-1+Z*{YAI=UA~k44N?HRiHrRPzM^SJ5wNM~fInE{e?l7NIg2Mf5h7ew^Lu58R&MFU zP&wxGn^3aDM&zJmcCIm(Ws1lB-`IgC@AR~hrAs__oo33bC&G>*kHt64zB+V4|C;30 z%u&u0uej*<4M1V_6VzM=`6#s;NCQR8&~#&$3q77I)v_267IR9UaIt_`Y{;4T-Vs=^ht}lnwad5ep?)jQGJC+!ZnrCwkr`o z^=b3bK`n)(@xNyKfn#iS7btvQ1)CPKlSvW|Sbam$kiu|!C!96PU-nLCo*9RpdCLFPYWnwzLMN!NWjcV5;p!*tE(e2(7EmYa9 zRB2+fl2(nDHDt2Sydj&!sGMXFFyW(`snH=zohR!LvKjc(bF$$mGf@1Hx5!Gc7_z1z zxhTq2g-#Ia^}(CYhDjA~hC3xb)k^%8(-cIgR1_xJCUi3-YY)Oi>j zICYicci6W*X}#o>+!B`_d01ldsB+v)hP%bT!bfR}VvPB&B9Y`bqK)cezop3nL!~^a zGr=?5)x3$Pz>WvX zST(K4Ol~oOft(BQ28qpw!agixmJEn~9 ziQ)z!LYj?X_oM(z-0GNzzq@jNCTly<*{o9Qf!T4AD(L`#zJ<@a9VYBbuv?JGmTr>d4 z9nTap*}LnRW=v8_Y|MLh8H_x3IC=eEG!r}GHWT#XcDVuLyDq8)g>2cYRpRZoZ>$G; zM~f`<-V;)q$4&WsQ^EacV`6nLXA#?kxGk}^f(Yb;4#G;0y(>tGm+sxXyWniY6~n+7K5> z#M3l`wc2N5m_@e9B|DW81D<{7)r2vfS&!c1$w%_HV9kEgiUUswyoPh`6e#cPi4_2A z-4#YKdM;4v_!rf!n_fa?EglXI^F^(&>U9NHN4w}4g!6$AS+X{CE8H0*m8d~f|V!UFkt!X}S(WQ1MWSzRRZZf)bb$1~z6pgyi~Ifs?m zJ8hh#xOE)2=o6!trW7Y{SA>%07-Ft`f*H0u3m7lGy&=CkSxMBkoj@-N5=+C>cJn`Z zkj`A>RaP$v%$2>D!JNxzfhy9=H`=r4b*=JD4xe=IeZ zS{83P!1Bi%tqJ1nv#?lwJ&sb7aK+N6`?VoWxWVb zB@CQwV$vr!LN3fDQ!_ft-egY==<0fQz4BgNv|qa8QGCrIpKh@r%MQ`VtJsn6U6MZzDD>=`B{*5OTLL@=S} zVSr!qq27ZI{zIIh#NgGPjVJJ~qoUkM6!}}YOv))lpnYt80L*+0dHNI9`a4`J$V@t6 zqphnAQV?3uU^1Olco8gPp0jm+@P5)%zoK8?xvlQ1pEhVG0PX!q&3udU&`9;)$usmv!@n?R3a-roNACdut|iaM5u1iz-P0d8R!XBjI%nGhk`sN^9nvJ54#)&62!aYMdX z+quw?@ZRog1&(whU(|5kE+kjSx3a@Er{N3fR@aunufg|7Jxr@w&z7gL^$bbfxkd6# z57NZB4C$t$*z(ZZX&937LUN3T(_s>O+w#=!CTt6ux!3(mUt05^@M)|BVmVGf8A+}1 zDI`ce$-|@a6BEE@CptKbvNZPcATuf(0bThd)FdcXsHy zay9lExUtI6d%?F;S?&_y42{yfosEJ9+Z=$IhTGb<*e ztWt*=7gcyh(`aa*41w_=xU@P`QmrzV#~DpO%@pQmenRH1StkNtC*{w~4cW+Kz?fbv zA&r)X16%Rx7!hUnSBf_mi>ih5L=r|CIrTSdvPzcpZH^h{Kaoi~U444WA)Q9*s9aEh zlr4`BHVDRhOZr;TObgn{JmNrk0J#F!+%GeVuWmM>TYxDIDYS@@pG7?%_gE~mOL&zv zm0M7=D*x@`jjz1z#vZ|=DGg4za#wSto!uDDXnc&%!-WH;@rUiNZB?lIRUfzx(ry@i zp=T|Q5~OgmOT)dvCKWayvfbFOLc_Tpg$a@Z9NO+>WluOF7e5t}caVeH&&L-LK8Zy3JKD8HI>BZyEa5S6qW5WGBQ&s$%V*cwl z=ZN%9HPKtBtahckemu|G!oc=@Fr)8mo=iKbh9FkqqJ|ZoSZ`}cfhnn`yi?xXmX2z% zI>*N$Dci3+f1xntf%qi0A5^ZcMco2z#c_xajB#S7>drUj@!)Uv^ zVTCdUq(*n-G6Z!Vqq{q+#^Y7WBPlo$)=fQU57VsYT5~ z2~=vNMh7LyLD1o-9RB~~GY}Yc=wL#B)`R6&jRXBqt^H|;w*IVP?q4zF95`>$P6`R! z+W>YUvZDLw3mXHqDHHKR>RNF4tSzP!ggMAIqR=*=TdV^L;gP)aCF|zPq^u&567q5- z-K2-K8{xjzv2tbG^T%};oB*fiOIRyesKihW&uBqc9F!I<9~HEzmt z4@?VWTvR`)pSl>m(vXREU#@Xgh;5`^)U*3Y;aTf5Z=0ImsLe?Gwf7K^+{MxBUeXV( zOTS#O&a2Rhx%HdQuXnj1qtMi`WW+v8MOE$aBeWuuYt0f9E-av6P0pSqkjOONTMfrSuxzwCE=JrInyXLO^ zU9kcJR1;b^mBhJ~B*XZ{nd5qx_ms9Yw3m{1aukar?+ax(voCSCQp9>gik+CT9KXXC z%`Q0-Tl_6L2_8@hd$3Hk9Zf{x361hA-)9{ElTYj_Z|$O<<0$)9TEa5_1%1&zV9@8$D|*w%KmN}MEyLws zPv2}wgmL^Pdf{;4zCc(gtnVoxbgmtqu>?;WYA!FOHr*7>Jmo0SgM9sYnDT<9;fnz2 z%i+h@fTigxZQm*xJe$u?>=NnkJ2_tBVOChxH#GW=^$u-oP|?|)fxqYYof~f{Zs)kU z>EC%CA*ha^gHx~%Ek(kiCDQfCeiAGGz;X6Fr*u|_MU>z|W|!Wo#&C<6sj3QUf}Qrb zv(ci(bX;pDs=RQ6l({eq+P}`HTk&UIw)4CqI*VQ$d290A29IU8DX;jJY=Go~RO=sB z--i1s5ni3bX%eeASrp}T|9sCeXFNbfio_iX)8;!3+}l<;LDUHukDs$o%LmB@DiCW_ zq}-ywO7j>rALM96%(>>3@b>Y9k+{_;*@zEBE$**r51(FDXZ+*4SL8Vs3SX|VEN%!+ z@diw|PR&RC=@h9wL66V`b~?lECE8~CQ=+?H1B{j-SKJp?yp8DGp@D@n2x~!( zntlEvIcx1x?yxcGkl}MkoMKF%MpdFd$ej-Lx_1smvVd5NhfcC(5q^Wfy}G&0D97&N zC2u>rCao$ojRk8fm`9=b>W;3o2LznDZ2MgFr>O;B*eHJp^b^ntJou%POs?1@%h2~o z@jPlTW8-Y%c_m%i;gj!=3-A!5mDH5yDK2mEByG5NaS1l`d8h@v@4a0XEi2AnPCc9K ze|~A)>0EFMf&57M^xQz$%*J3df2SC>5w>b08nzD4EcO2J9@soXHMY*=+q5lRq`ze_ zypTW#+c*Km9&3pdhz@10eGX_|G%Q-4?YJreQ^#VhV{C>r_%W^~*No|@K8ojJ3eQD2 zM;2tgGW#8<;)QRsKU@($!KD(1Yrj)5ytWQLi`tZcB-xyc8`{G{5lC7zHiE1+i{faA zYVbvWj|eTjg~}$C>pqKZV;6N&VWDunmW}|k! zZ;eLQt{N)uz)pQ_0fL}kw?JDA^O59u*k}tcES)zO+3{LzYDK?@9RHZ=$BasKr;m>0 z;vK%qdEYEta$v>@l^N*1j-<7=&GezbaF+{NZCbbme4@|%2ibYtzkV}diqd- zt2dReSi?QR!binSkp3L3T0OF82+<>3A}DSX?q<~{5HCB_b;7yR;xONc>JUGzsOR4Ne-gcOYpIH)7X{dg&2ix@=u zefE|}t_SNot}5E*vR>4|?pjwa+9*44*c+!gJ_RGc>bG871`|JR41Rwd-2LWy8@}gE zABz6AFE@7{f%Z3XL?`sH=i&)frIe#T=AsleMgu=V#aa;bDT(DZN=4gNIcVEWSbLZI7=O z>J^Q0+i9CBZD~z-luQ=mQY4#cA;V9*s0{K7oWSPe6}E4aD=5;b#|iCe~Q2xb|7v+Yb{phTjwcQ0dIy z{Jt?K8=`W{9Te)4`Ge|WaHl5uXTCq$dy%0d!$08cEb1`7WnSvsM*PLgaX22s|4Tw< ztzgoq41Wz{Td6u8^Pi2L0gF7{??nP?4moC)F!?8(+3LYWc2NB3vL{NiW`a%praiTNfVH?osY*- zfs#30T*3qD(xB39uS2Uo^IEF4+T8^tn`BV^lZtWXQ;Ws_LxYNSdmI?ml6 z99o}yXTTsraw6A4JQVc{^lm^(!M6X&)1Alf_2wg~{x7D!GOo!teisEnkdPSCC?V3) z-4X-oZecXi-6$p9-JPSmmG0hXq+xW!2>;XHIp=@gY|o45#Xj4;=f3W%zG}8+bU8?l ziqlPDHN8t;gEX2h!4xOTW*?8V)Ota4=pzUHHMfNL<)n7Z)8~wCF-}d-hvtpYq1Y6WjDC*wv8Ae1_iQ zjJN&pepjf4tYlNGIAp0ZIX{Yb z6~3T&9_=*UKAe&|q}@i9mzR}RCoZG{>F2->GE0(Mxef;1#`vjN6==Yds<&&Ql&j`; zu|6L6U5QpSB>MinAxCwrt4cDFy33ns#cri5`rbj`KM5aNASnrb z<*j|589ykMUk-TE?)w#elifAxq`Yi(qe2&J*SJVA^m^$otN5~vhGLVT&7EM@vt!(i zkJdDg=ovKxku8~HuhNNOw#bXn`%$`t&?vb6;T8URTyg*{fPNYE-(!60AI?zuw;}v@ zErAHY{pY|D#8jot;-zMnRabK{6Hvo(QXWs*l-+Fn%K-m_LsfzhVd`5ic`0R{MapJz zT#=LfA<9IL_f2Oo0T+{c=O50`*_xls;^Yq_^HHybv*x{?`(dgQ!XPU>6AVSGIn@&v zRe>&)k!j$qV(;_Xtff;COid1+-bW2fVZH3nHFmqYWsW{rJ_*s2?;*~8h-6e(0P>?{ z_L9!mknI%8kq7JFFK&ZMc~tli5bXfc(ADd;(c8Jo7B;68PdjaKUt@Pjn$3$-QVtv5 zbd2e~0i3B9_wj+=f<&aK;ZUdi2i;gnl;$*(lgDRqm;*K7xL5_ zA|c1!hDR?@F7X`hb~;c8)T(Ex@pPA^77i=1j8EqK`zjDO>IWA-=|=+M69XlyXRg!! zv$RD1{RWfYcUP*B`~#C#{eNi%uB627%6a50tCg%OKNIeXLg-Yd5j-QhdlvIQ>k5gY zV?vtS=MH|0w2~DE-0IBMTF1cqD3Kx|Yt%nTJv@-`-JbAtr@=VZ6wtEEL!G8RM_AJ8 z&hb#wqU@j#n#2`a*w0@}Ul4QU z0@`brWNCl=j)vqxocHG5s5U+`O8j9;cIaE+gQKj0Y2pIzVCRfU*B*b{LQ1wNpr~$F z!ZpIXa6vs?sG6#s1e}MPJ;U`@Miz2tghGC=P3lW@l%J=9&d_yF4~<9~ZKS>iV*i1&|34jSnljBfoiWR@2-YMs!x3c~gZSR5NOa=bbX*AEv zl?f75>HPt2Wk-*UZc>LwZ)?W*_s~&ru&9?Buc24|YoBwfBMs{m=Ky|j15Dw@lty9iAsfni~ORCU9ap}mR ziI?|6$-MXm;Teuk4A7KmkJECAqz!{zzdHZ+2Z?#ppu|UpxLZg{8XD!?+IwxG*1Bys z+4xPQE_i#HO)E}2`Nf8SKdh^lu@VPVy5FNdJq2pYW~7mWpnE3v^PurZiOKG5)6ZmUe>iYE)bYZN%m~1e04Q*&n)zm-!wn zPX+qq4Q<%UKG$f0s08kofLFLhlSviqdr(VYF?Vm6I-YI$(5pvtvd-`2(~(385lfo_ z+sHUon1I#aL^-Y~QjGZ^=-fP`b+}1#6Sw#K4ksX@v)6 zNei}rVDDd_jY_a;f-O6*$dT8*8s=QQE7xZYK9s1=gqomtHyo-uhG3#|`h^ z*mq|PF=g^9PqcKytV_>O^9f_EIDObiRyBU~)iir~nct;|eAd$=6MXz-EZkqO{^nP! zT{@@H$!Gr<83riu`|B%IMsdfUm>U$FJ97hTj=I5f*(0V}4gn6bIs^xlwG|(KqRr#< zvQS0Si?ugY6pdhGRCWd(;HFJbYMJH9WO0p{bGE=_D`3d^d9hvOr;}ndK zh^%)jV7}_N6oXLT8Zn&%g6kThrb)x~H8Kby@lj+cOiI6DzB4cO^tKF8VfTj3AE_`v zOJaAMY|!$~G(gduv6#k{WyTFMI|6ZsqdSnL|1!pUf;tUhLG-1TR;(LJ%9`G3}l453l&ytZtJG zsP^>%IR&-NdPme4bdctKMxGf1+r&fl2PJ$P2p&ry*k%PPY% zhC^Siv_)X>tbC*O(`Q?zaCV%SL^Sa}VAlvj?i&hAH_gXl6;&E~B z=-sp+e~}QqFVrg%Y~O7|e3+jz(6k}176&W_(e|X0U4amxtSc`~vV#^z<_JnA{j7>6 z?mSTVp{LF(MzICdSLQ9YEnI0org>#%+anPy9hgy`-MZRrFzm%o_9n${H!fSbdoQM* z0)HH-l!!VX{x3d^sR9CI7q$xLp6C>*)@I@FD;HwU-%2D6w2+HTaE?SOcm=)wMEDX- zX7YihyI)&f=Uu1*bI^5d(?t%d{JEu0sIbdJz z7@^ql<~bb9=;84Fd=OXKNxjmJxdNPZy&+#il{D_T(aCpPde%|IzTc|WMx~-wEhKt$ zSri{%%N@i+XW~^H{={VAORf>TDw*Z5qM+tWez1*0;%z(Iz+(a&XLl{x6Amc!zNm1o zJ-?PROE~v<-twb3Z9~6=cpmO(T|_Xme7PwpNxquDv7)GCY?2atr(vQp!SOq;_v(G7 zXbx(gq7)^IWN-StCxS>5c{it5IXWlc9V7ryU1bnJlyd5|Afp!F4SmS}TEh%vXmt~H)CMCV9Z|79|d^1IWZILbAv zR~e1~oLk7O0l_3lsmgcY30Z^rGQ3!SBy2vU=cXM*Exh*V*+$&NvSaLSEh=)3V8(97 z6gnxUZqYrZ=d682unllCzNt`Rt+@3`hC*8==t6S!NNvPkd6HFKj9D#7RBC;UTl5*` z2OyM!+Qk>cmnB$1S6z%*J{=5Xp!sk&0W8XmH=*_Y=+yOPygiP7{8!*N8x27lWmYdi zwh>;)h63nzZw*&j)=xByx*8k>`+jou@w3?;i0i3G*Bx@{3#dc@&G|dM%+scRR>jtj z$>r+<^PK*N$sro)8$vwF7%gmk zPj84GtsO+E9b9J1Q?0h&f zoP7$mFRtlRr~{&pnq#baC^D=m>w&pynuKn6xg!&+dtx=f1+PCYvxk6PlDQk3O2nU$ zULpA@8WuXu=nA!vLIYNlx#l8`RL1uV@%G0`_eaW>qS-fQ85Gb|vVZ+S^8XFZC{NhZ zEZbiUY*axfKvlu0tsbtWD3i`DBUuYvPvYaULEZ^fJo!RaZvyv>F23Ew36X#V&L&Rn zLO+^H{<62CpHzGq<3?l$wj97!-tH1-!1|7UP1*dQD%)SNdrk08Q3vsp4Cbe>o*q3& zQ%+Z`imFE!vWZzsD|tj?qV21!TyjdWY+_E0c6oARieT({Yue_)Ud?VP67gLLn$_$^ z5RCI{Dtc!xQV`TPqcPjcQsy8YuEq%lXIx%-o8lo+YR9OO=KN+$LI_knr;~z#8!|bE zEdj*cbJFA4P73jy)6OW$!x)UaW{e(grNo8_>!s6*w8n4SiQe8RZVzm0-&CJ`yWN)I zy(YJ&7&c_FsijPO(s)3Gc@ZsRUh|%n+!p87GYb1z$u77x&G+V1>xh0M72Ro+9WMO_kC|lQlJc^Za{y}12m6|Es&Qmf5&E*L_ zyJDQ~D4U(#9E~OkTs9qH9y zt8n&sF}#Qp6fZS#_6Q2<@5R)!xHEv~vLiR1o~~TJA1m4tPTfUxEG759>|~H1dHyV}Er$gAbvwGt%SUfC5D9XID1fZz~A$7i=uS+!5HQK8B$VT%c zs?bV=gTWcF*RF5auKpldFl)LlTGcyp;xqrE&}=HZ0rXj0PVViv?&#)deE1mx(n;$z z@TqXK9zsSfg_X6)HT%siJ6+mto`K2vg0=&bDm;+Ge)JV>z%yAY!>o54OC0ls_SGAw z`BPHzvDISlRJHJcRTKp}HXM8VKrWZrWFMeXgMg0{M@a_R%+23k9g?^h?7zZhF``|^ zwj1FjQ^Q;Nj;IU6t45H81OQrT6(zJkGxwKQC1t&tR)kd(crEabL#a6pFqe8!u+*5W zj}

L1mwO^9t@5IEapO+Cl#Bi|Sx6%0@ouTN-+wCLN&6l`J#RY(;6dU?<1QmC*?J zx9VXW!4RUGsU{AHV@tVHQ$oSEiDUT9_+gfOMgQ=o(!tvZ8Koc^|CLaK9M$UnB!bvP zw^ww-MBmzoktlY_%dqdtiFSp%ebux2iata}zhw78Q`L71WF_ZoEROuFmKSjSEX#u_02qx1V+}!$xNoXe_IT5-R#oI zGv~W=FR2}M<587#6{n|8Qu*438O0F~sX{j#erae$H#Uj+47xKw<}?A20t^b86IIUi zKuCN#GCJwcUau8tf0WtSv$M6A{Uv;QJ{!@pv_4gPRj8UiUk)}Crr6;U2MM2$Bvg&~p(g$V88V|yv?jLU-wB9SQiDd{A* z8r$pT>Tzs_tJ>#U*Iau)wJA6YmYbLl?<9=D-?`!TE65N(U}>uF z`B;N(oF+=?M&$@R5J}laW}8Y@v#{Z54yIZ%hLRCHpRUwBftkxpssr^5-NmEvmC@dH zT!FSMe;jCoi=vx#!P1aXZjBwA?1XcV^$3i>d^>vSyR;6gn`ukDC5t7yyHVXFk%yO^ zi=>F3?H=>seiJpGj6i%0j_jyw+Kzd1vum2PKx)cXoR1Ze)P_&l2CbWFQBsvtUzLH1 zYxCX=U0QqWy)Qv5iuKCQB`SWMb8Q! zEj!2nfQC`NhjxYVzl9P=;w2@-@Sf{g+wUBLzlR`~WbN`p-}+M^7lm4czgl7TzqvT6|GktK!25`)GSm1EON#bUO;@KQ*u4Mj&eQQ> z3RwRS}-xTrXy>yjtb+UDq3; zn?0OewRkU*4^1`4@RLwyJM8WYnC2@Y15qKxbwf_~fouQJnFpWw zaf|cJ8VpN-ZD<*xkZ|Y)Hp=tAj-#hu?cmqag^f2)9ee8E^p=mQh@V?=B+>bgiaval z)M&g7s<7+@lF!H!9gfBLhLlvj>zJeXZlwVOi`3EKU}G4rpv|rV%YZrP6^TzT#Q@jyJocO6lGeQuG;@1 zE4pP?#?Mh4FPAx%KjiG_sOWh~PAz%iYl$YP$(FbD9RJG@$e_gt<#mpA(yOSk?|+bD zDsP3j*b}}UMw0UY191|a^yeZ2150EEemBS|L}`YaHa0#kfxgy~hxw*5#veYbd>R3E zrF}F_OrB&2G#nd#3e}g-53|~~wxQS>fKsZwxl7xln$GK9V=ukbYq~7gXce^L9%Aws z&`3=exjB-)0MBzC7-iNjMP+^p`GaJov_0Ebo~pdx_}i~S^_KFqyu4WV#`GcjR%1&? z&9+_9%I^dr$S)@56GjRzzisl9k7tj+C4<!IKJNLvS3kkYSto)wXs<=xlPL+nKB`=^9rF_f}IJ-`F{_hX>AEU zq2*R3XF=R?T&S8jvvF6nWdLN~9;e*_KlznycjPH`7OW@rC>i!YvtRxsBUyT(Wr{87 z4vF7jBsbs+K3pG=Lfb(*(9i7XyG{-TbWYi>yyV+xrbW#vVqrSKh?OtWHqeEkw{iqu z3R&$e?$l(4js8c%CPd80^t}V5TJbmhBgd6-!$vjUnvTDO@vG7}$9lH}i=C`i%wo1w z#MRWga%?r>l3|AwYSp(j*QUsS-PZP_K9qKlA^q|;B0!m+%tXyG^L4z!UYl3`!olwq zOI_xwZl=jyjNMs^0cdm;*yCuW-oIT{N=0UzSf&TT;mto|vaRhOjcET~jM~Uz6wq6P z>Qil1Qwe}G1x((r>UOzun2$g*FqNW{NZMXo>_|QSaAB1 z_Sa+W_o`%JuB{YhJ~)>`I6C9ap|!LM`DuNP_2$MLG(Sq?-c!0ZKCol;XO`~MB`wm5 z9S5LM7E0Kc)4xH!?Z=r_&eg->F=$F{2BJrHa5s@Xc|0%>M(s+>X>E;u)sQq0Pb>dG zY8;c@&Yg|u_r8LvgSCW{!7GdWkrBO>(xi%?HAMtz^ASa9!ITJI@BpF?xRU-%Ue9(s zi!QQYirVt3d69TQw`Sr2<+5_oWzDwtaqCHa-1=qS3hOhX@a?ZzE9GT@a1Q=S8+{Uf zii+V8nv6tJE%PLW0g8Dvn9xCE%korcK3^PVrr)B$<{4So*^+g0Zh{P9_>&bJrHIX5 zJUP8mWV`|uf}2%J!s$TZId9|iys-)jit6w=cAvObGG^gkI5>8SXhfWQAwiTUzpgQp?2V)b( zf8>&yYfdFC&N8DO#yfoAB%mBP_LQVX)3U&i9sZu9*^76}Ys+hsJ>^MmZek47D5t`Z`o+hV8qSLIM?lvE+V>S9bQkn}{T>3ZDWwf4Th6*UEBOP}cg8Htg6ZCGyO zyhU7CbPb}ryoJL*tq_>EVCTD&QheBSf9bsM-vV1>%UWv9S72LBm-D?0VCsE=TuS#%tvqk?GW$rb`H0pDPrhv|#@yL;u&vSr#aY;J z5XX`RkdYL$I()e2Tom5ZO0an8FEj=}Y{bN-z+6`pDvWi@*4k8l@IJ+26i6*Jiw!k1 z17(hS(7@w7z*Tq$cn7VqTDZoIKZ3%z`sW5Qkh+nOa+SO=Zz{l2`_Bs#^eU)reeRzc zlmc{Wjqhw%5Bp==`vo^ra#(z=;&^+qny+>;`gxZ~>n?ZN@M;n=uc+0Rv9u&rBwU2b z0C9Y1;#QA&LwqveT=tQ7YM+pqjt7vQEys74S(hgDLqhTqJCk8U!OSab3xY8xdk;Bx z{1dh-v++4{AQwwRIhN-+pfLzsUrvClwU~wCaJA~AA3fT8kycYNn5G|knplvhm`OXk zt9m|W-~Lh+WrtUBSjdohUpq$n+J$K|>G1_fp1$$WX=uTTXYcdL_WMc8z<`Jh6Lo4v z0sO^6`B8h1jgBI6A7i5L~zqTjW32kTQyrK`FL8~?OM!V)~Wp+e(Dn{7HR*_s;@khxcm(@o}v zR3n)uqiqkaE4jsX1-im~untD1?88khvdwG!vl*U^qr*nM>L`GmA6mT1cZ?Xy7*ikn z%E3~AMiPxg;^3i|p!n4H4%0wIUnhTF}*%4FXO}zG;4IF>+DWmrNcnm zygsQ|)1*fEH9`x;kAn;-fSO~9-xd1nW!%#48^*WAoWY-_fn(a|1#P+@DrvL5%H zZW7(Y^<}wo@2Ge&O@?O1))E5TsyCQc?|t#mlO`JC%7ZeRzgaj^FclOGxI%(^&9VmFqNuyh7{!vi~6I1OIzNGA=*{0GENw zrU=2AdAadWTAsJ0hE^t< z`|Sbl3)nAEbrYNxXd7Xxg?)sr;9wT-iS-$|hX8Blz!Vz;p_)u12gi(aE+SYuC}xPp z{ZN}8bA|z*wtGCO-#E=w?E#v)ncQb!MDuJru}$io2}MmtM*M#Kp_gi6+-#b1Tg%09 zjT4PXi&JDV*_Hy@KrB;4jMv{>g-JB^R&wg~T-sAM}!FrN&MBwGG zZ+d$77tY-MJ$CR?KZdwb-I5m|BDkiq4FiHORm-QC<#z1A z{2`U$x1Es>E2`fJ>prJ3fd}Zu$VB9%gly|fJ;pX$yg9FELMB-iw0&)WnPIQMC~rOs z5Fadez&-5dwt_G2$Ai3|IUPw~)0V!~9i5`+#*dzz<@WDi`hxEAts>)b6CXhF;4_n5 z$hLm*jl#r@7)C7KC=&Z1`Bf;m5HCB`Tx=4ArR~&X>#IGL>pL(V*aymJn+7{Nf^7#* zRUa9%TdP}?&!4eJD>SSgwuU<3gL{1=FK{5W$2Lb>bnn0>Pv^Vl+mO<>Sn9#6SG)yG z6@^4D2*A`KU?ywtMRM(RFSUSxEzr7Rk!-*5=12)ynl}vs$)#vuvw6o1$%dn`^xgLz z(Z37?&aW2@$+9 zvIJ?sATe)5iD1GrKq5SCS+<)S1aP2Wz_xYh{#l z(Cmf^Rl;SWNb5k=2IBgT1wz1S6M0}C^L zuRVDizUDVyjlKAsLqyLivFBEVwj? z9VI4UP>|$G1of7pTRVIVNVwynMqbIoU`}JCu$}>;iE4KUy8r?j%U$UG{V=YX-)M+p zL;D@>oWd^j?(|bHi9E3#9CZ^Plz-#k91up@2vxXV*ig~`mIS_z3fabZd4={CI>F6u zXpt6?l$=AFj!sOgF2WRsv@Gq-Zt$gs2;;^S#lgpZ9N1wv&UCmgx7dE7?!l3w-0XAG zq5Yk;Vm!V{5^M6sUMj32I{U}m&-IW@`k0*lRdPzO4t zvVo?cJZ3N*tN>aw&PGpOE9o)u({+8pRqctvzB(*%1LP4J$!d&>m29LC^_!m zx&U0)c|NU{F%nLL2%a>KTKH7=HXpp;(D<<2(TvSjq0#s6ArXz9#21+byuWi%d|j;W z@z|T6xG;t5)9OKvBSgK9ThX8uKjfJu09k~5Aimq@k_U9a`oL;{bW?@Zdn*e~qST{| zbu$Csyy_EhBzQRn`+3bk^O1r!CcZTPRb+r)^uBJ^yHHwPuiJ5TsHI5BlS@J#OvSoP zV1H!67~e}|bbATR9~-Pl&~ULk6M;qmN3?iZbBO;EcIuN;S8tsASK}x@kA@(TV-S7v zK*prR@Bj5oDis3N=KB8<%}q`mf9CFw;B&H#k5(AB%+YgG1~Hd~1wsrMlB7u^WpEW$ zI+1-*KWEj0Rk>y9Os}C@{wh^2@hdF7ff z8BECSs4wwPoci}Mg8%E4*Evrn)MAb}=F-=X*;WwpO{B4Y#jE@M7e|(A9LD8?kWZPJ z%(apGCFh6b6#<-RlQvM`M@LZ%92FVltIArB8S&HZ6k!&wnn1b}<^(3!*x1|~Wa#RPb_-D^t$EyVxPuh#XnaU++fMNf zxCCVKdobJ@!JDH;4^+#A*9%XeAcSA?rHchkO?r4lDl~6njKZG*mvfOLmWX^@l z?$G7~Q+y5$=Q-J(#sM_>?eQ@+ru#;{Nqf3_R~zJtj7@~YhDdMot3%Eq5)pDWGT3p} zR$h`SxqZ=#d9;N(?7gn(U7#NaMMhS3q9o^nfZ7%YsEy??J4>P^z0-=!S*i}9A zG`*@6BW-8fR+t#_va|VEQB)wUFwZjXz1#u4Klhkan~iX!Z$U05IbN z7~nPm^6?N7jR>TJ#9moLdJI~*oEaV?#T}sI@ScGPw7=N#>K7c)(d}cWPCNs~L8d&= zBSS*7$7bip9}u<3KqR&3odifI$fq`@!JsqLa*Dfx9SF_|{Oanvv7k|LnGu&pIsxz)M_-h`2#SF-m4BNea%Y-y`y016TIrF4@$)6|Bnc$cKJ zf4qy%5$bHfpo_^e+D<ko33XnM`*;Jk( z=6-F=rhh>A1Z1~qI7TQM^jkIx6D}HaVgs$4Cr501v|`WcSmt`%XZqoW-!JdXl9ZsB zZFOsFXP1E7jV}E8TUF^~l{Wj@BLOLop{g;zAAgW=?Yw~{BTh_#rF2%iIi)&n1b z!r*ReXT@^jAI$r^6h9pNrasn;^cg3D_^Lm+47=%#ONSWY}rxMoV{dbcy5nirRDjd{?^em04War zrwm6?C4{|cMsPSp&eAsDR?@j~GFQ*IwgOyW6o39rpSiGlb62OhbZ}&{JKf$|T)^cm zNfPAc;EO10qqiYp!H2Y^S&ivG`sA+PlU1QMpjfnHWU5YAJ6YK1^)fo4-+2sde~vvW zy0cY6K4#4MfTfZ(&4>1Nvan>4FZJ>V(VIFadGNW|NX@EYi(i3YB?fzZ|<-)DC>2r|Io5a zzjatgsOY=ky$R)IwPm2*#ciQQwqrKfGdZx`(8*+@{10KE`5wpCs4D&j3a53lI{c0A!?!MP}G2^dbO0?q8}@;H#2|5^okL-{4lg~r;lw~8+bRBiIXS*G^E z^eZ^SWPW>`u~zIl?7a$(_U)H|LYHSrbLMCX&lE2!7zf+udst_^NH%(><(IEdQ$nW= z4(4qOHw02PEpnxzKI68unK$po8~8aFxfA}rpz&j*I27^E_FI2=;nEr?@9>qy;l>w; zmX95B_Q;qbrIw8M2dUH^Auz1)?!vHN=3~7S+p`Sq9q(va?OS<%e;8LvcVqvN3GLxL zIT$fDMFD5sAi6Z@8b{{~EIE3A8G-XSE!>_N2&S7BMMm z(n&D~Gpe`UV!o*p%lI*00{4TL6&Jdze_5w{GYS7JWN0Zb*MbEg2MoJW*{mTZ6V+l{ z70O0OoT>D$gu?iF{+r7vnmM2>36yWcRB})(dA(DNnCYqII2*1EmZ^_W`~$h)x+;s* zn9wPiJB?g^)E9_AbeP*)jwxp;FxWVx)@5Igda2a>gwJZCJ@SYghB=Wzr*xO4pRes; zE|ooZP(_qORVr9ha~^V~Q&TiZ8lJEg16<0vqTV|kV(9_;2aum#tuq>L|nQgbR8|7Es1GHFiUX7ACIr_>WTX zSsE&I=EeJHnqxtjA^~rcV*VgCe_MmSPy;!S=}l|$=m!U^tG;8rj&yRC_54~FR7Z`8 zb7%7rnRolOYn5V*r9UKIx+jw+v$u!VDgpSljYOF%orfhOZLH$0WLpNL# z^Kv_eQX$JbZ6#B-SXp0-EomXU@)fqanfbTsnr9e{*$y0?xc(?#c8eGdRb0J7;_JRd z4`K{zV?_9)uY60pP?@|Y?TADPTcCDlN$6uGrjBrd3DHCN<;SiL`CZaHX7s9MChg^7 z6zO=8kbt)S&#k#Mfat!(ERn1a9v%rhoWky zMggg-Z>|xxA%tVsp8vEXsp23iml+(TE|_WyNI-H_;pibd8$phU3gE5$`f(gh)@OFd zJ(*_UK;3&G1w6SDONIGsC>DU%1~yux6W zh~AiJ-ane~OkGE)5MNG@>Q0*NDUQV+KKB&QAS{{(+F>HH=VkIkYdJf2Zy44}8Caj! z=LT{R+O@W4pOz_?g6dtk95p_ClAH3dyD7(yvK^ELQ74Ir9n$|cOKD&Se~ogzkNRs> zC`2Zx|L2R%V|hzls_v##-dc>z#q**hL3MEKUs8$YP#b%AptZB9K3MlY55+#9=@e!y zd)FvY$ICh}=~flj$@?HH$4EHke6uLi^IA%jlaB^bD1t_3;-1}~9XgFDz)6BEg03yj z%cBBsP7FU-C2xn)Mp_(rCd9RIa4WuVhdf;s`uuRzsU*#oS4a!1Wm-1O?2|C7)anuH z4J*Fw3W3xzzoSx)ZGktsBWZf&fBMlPc7qt}B=1R(8EFHmKHUkxJB-^zi4q++2OKQ| z>l)S1XLdH@oE~Zn)QgwjE;{++(3L)vcTHdMZcq~s?V+u4tq>Yd9i)AYZ=q0Q3|L8q zrybgWuXq#_J`5C18F&?Rc6cJyHnCNi8O6h)>V!cXXriXGDjbh1k0LL|TI<8Fwj76p!aF`juU$Z0FhI)#aRXk^AD~d$)dluA2N@vx{5^eNVD= zFtUv?DnvLWw+g9KZ!O1`hFA59%un{dX(QX{ISD!y)a;h^07E*}`p6&qB?Xn2v~2_HvA6dPfE684^si(ol{&X^@Z> z+efByr|)>jZaL!JzP>~3mbxat7qbWwVf_A>OOk6+t|)J%6=Z09ifI_Zo#-mqC{{_{l_WxJ{lTi?rmk{Ubkuw;Fs|7CHyQFMG&2UYjL zF(Sf1S|z({b7}gT$i$#Qzn{1K>1&vWUKnv+j8P2`n9o5W%C8~0QYKp{11H%lY@qby z(7Iq#ZRlq#1hVVa3@!I?70G%JGm^N4?Yj=^U)X4h<_gweT2z&4UX&=@Q7&kW3fSx+c& znf4*-F;3eu_T2trW_9f6fN14?125MxYkCc0DOg9OSgi)V1-wUFwlJk+kdIvK3UJx< zyM*LkweQq(#m>u zntZ#j@=rdbFrGSA4L(?{c(?^z6{bq1bL@V>!uRt~l)aq4(_d{EoJ-vr=cXySM$8>s z9^Z0a`D!KGn^29K3z-%0HDdNFn|4}}Xk@oCzJ4(Kv|xTSLA~GIvH@i zE>54<@X{TQTPUl?YrNr{)8>Iq1oHglqK_>QFgBj}qkw!7mCoodTPmWnVJjt*apg<; zxc)>H+7ElgE>jpE;IeqFCy4hr1ht&_33QN$_hUr*-bPrHzysud<(|>#5zsz%>uiu8b-n=YE z`K?lYTP{*lYRKZ*hS`Qs*pazq%D02AtE&e5Ol~n6Z)$&E|Y5cPP`Nu&rw~F+F zu@a%5eO8^`KNA<9mkwhOLs~+8*DJgF zyqUT7-<8wGqEQ=IdMC3@?>cX0rfo7_O|SVr#IHh0WA5CIWI+02DbJ3 zP8Yn%-D!|-A!93N)nUwHI2e0AKj=^>t=9XLcfyZ7wHU_nfQOf6jI5M8as41WFU*Ba zd#tDZ15GYQ=cZ256?4x#L|qbr5pXm&>w5ewR{(ez4AVLn&g~3w{2NKhXb> zupwBjD$r^GHW*Y&+QFzM4SvVLa`*?S=ou_$wy@Q0OwyChIeNa59!-dG@9CF$+GV^% zT5c%=VFBbDF8Y|+NMb9Bo6c0lLMvG%~VOS$>Z8ZVwg&t%0rC5qm(t)mrn z6HDQZ${jc>*R(stZJOEn1aqjzvhm5}H>MwAb|AOH?(z4s5BgM1rb8?GSq?Ovpi^EY z0v|NQ=*>zC={Jtcm*=w=`&y&-AhYXkc-qtqba2KjNkOn518oywWvR-)wjxN=R|L#; z$YmmbOnZ^yD8{fBWX@?pbQeIpf1+x6QM!VhL6iCT@k^NC$Xt!x4Cik2T7WK%CCOfeLj~zm_yjW0_@1J`?shy#4 z@V%a(*Bf5sV}_F7*gip)3d!}EaO$`s>V@(vmONsz`na+#2k6zl&UF>(6Kqw4EoAj+ zkK$@9xS`?g7+s2PS+QcSZC4OYT4wL>9+DqMPp}C5E3PBe9_~Z$ZEsJ_mPKHx1k&S$ z$I-%@Kr|>a*mS~=Ykh@PVOV(Yff02UyJO6v-{BToh=E&NCT!5j?m}r|@Qnfp!1bU* zKC4_8*I5E5NMoYjy*&29nE*^!I{bJS_oR@&Ee4y*x2T+~pZ3`&+Q})lYBiA1%c^YnG?TBr}7QFdI{rz4SYL_Uu^5p`Ga%>{Uzh8 zYk?#Ka90Yr^*_p1=m88FXigDi(|D{6Rsd<*;>LTEKyxW^zz1MCZp2PmK-y%J=)`xS ziRosQmR(uXLH|h1uD&VX28_}ny3(yD&dQ~X!29s-Qo>S3qLy08Qo?kVJaa)v5pdp~ zsC3SCvb?bn8Nf8hh*|tE!ZY(<`aZKavwuqA@2*vGq_S_rOk8)t^E^Bu`IARiFAhOp z{(drkx&Lv&2fFGL!_+51XyNS1PU02|kU7qCr!)SxW246TT&mW)G?D1~1ky=;CRL#R zL&YRcs#{s_##YmO(#WEu|HLT>az*HYDdQnz{alzM3kb84i+dxG?$or(nRNF1F3SFe zOW*tz*u^QorU?(pbY0re6PDAm*haM{@>XcfKHHYJ|5)G|q%9L!&hmO${|x7}6z12P zc1bT#9wu`l_&+3_hdZ0^`~Io6TB=HE?X)&QYj29$Ma|fwwxITiUA6b#)T$Y=g4k;B z6?^Z!#SHIXzMtPekmNX?=eToU=XIX1Q{2S0B zLI-*N4R#LQ=rWB?I)I1{Ibv@bx4DVn9Y+XSmK^Asm&r#4;kEEbtrTH_Ku_i+KhM0v zIxZ#ki>;uOyEi|j(YA%vi`+Q}+*}+P23fCp^1VEH<(Q-M(n37v2BZL?QkQv`=fZ+4 zsPV*XY<;9KRe3W>9{HU@_W8DF^K#)vbU#f|G8oe+?@`J;Y3{QhuHJyPP{1aEr)8*! zxM=H6SeLn1bv4eN=>_Sqs4ASv!dq|y-vHE6A45sUP*x|Z9-TTWKob%-J2TiSS|f*g zI>kP7%?+%=$tsAJy*)DeBgW@%B*BqY+S$tWLTlAu#X-jJUn}6uEsZ^9-X#s8p>_uN zF8ru@A&~M@>hRQlckL3ex>M*?ADmWb_1o0B&!NnaFu&xPXp|4ZYPZIhP46A@E1JN& zX`WKsxLwVl@k{<-==8Xne5wdE5_?80=`i`N-R#fpbEG9v$shpg5gh0RtP1Z60!B@? zJ}Ewa?t$e4o@o}C_g1_L&F7zZn;=qT`{CX)0R>azmJLzM03r78l%~2nu}!Upyod#1 zk~NbkH%)N=M%~ifBF=wU-jV4S5d<<`!B5tY2C~EOZmn-zm{2f@Ns1}Xx|MyMYCkS; z#oHL?-ZBE^>gkaQ5zo8OAHuYll0u<9=zDoA0G}4-(t<&Kijx8KI zp7*o`5}rXT8mW}Dm+K8a;apb}Vh{@hbtb_>{bt~m)Oz8j z3pfK5?-V^7w)rkaS-LG^vdi`bi&ZK~${)9pmyuF zCASxto_t=B!B{~?p1Q0$-naN5Rur6uWXHGA_Hoi`RA(s5g=g`XO>p37344EDG)iKn8aeN^&S3Q>6q(CZL!UG&{)a_Ln) zGuhFH4Vr`b*0xhI7&%cUI{J(K&FHrWLYg_!epT&@(oV(fCQR$5bG_+s6}7Aub9tKd z5AJWS-8$w=s(qZ{@o^fFNT*0KSyd2ayl822*~NDkj&2J|xmXt)o$pVuKAaNLTyA0g zDr!@Ka(b+yN-Pf4(r?3rMi8FGa&?M&sNFBg-do` zmZgiFbvR9@;8DzUFSOn-nycJ zSyPvLJPU|Js^b?Ou~#npFHn6IZQ7G7-&&HVszHKkUb%aZxQm*?vl;5+q%#DLee85PBJh($20=L`kBoEC9tp39Zwx&pC2pydcekMBW>Sx`wwe(X8O!5 zU*6o6>_4m@I@o}?J~VKQj&69%Ne)LCq3@1ECwOF-xjCaaH-yyC z{B}vaIUhyJ+mDME5^1@8%$<K?e zbCVG941yaemn>7Sbzkan*`wqMt-2-mYckT2u!>2AHu1Pvf74xL6^}|&8Bd&XBYXwl zp04K69nO!QsPOv?oFG9Tw<34&`QF5j?ZC-;`#NDzem(CSA4-Hd?kTUcMhxfkOI|5W zyJae^%Ou%H5nz1j*j@pu3d(<{m1$vUxR`UlneC?!7(q-T14qDllMF_{Pmj>Fq>$2V z!ma5lj#V$kl=_4dnQoO!@laT387?{ZB`aZex}`MHy-JAoYh8xXb;27E4I;U|LzrEsqEyt^=tnqdcG&Xr% z0;3zrPOx$m{2Q0*Gz? zkw(P~E#IYyuDVv-PYVslWO3clOyne$oU|miDcqCkPemP^OSgct1o_)Ju!Gt!;0?)21fQD0+NLaxRMb5A2G?-6;l|Ed?> z5&wT!<~JbKX8bzED?Jj_i_~nt``tt-%*$OP5U;5|mI=5abu-RAV&xyVG7ZnE30Ewx z5hDV%EkhNP=S+U$O5U2@Oyl&?x6HP=7!&@h<9*jPhye`*p&irj@W!j1Ni6 zQ86yMu;*s>4I=_Lh!5&0ALpZ#a~nq)_Vv&g&>y&4;cs4i5psI2om~*G!r1Cm$SV{^ z?{#?~c!t=|qhRQlYWW;uAAz~xQC-YJ+LiiW@PAR+1a6%~K=x;~n~k?du8hT- zmvE71I>U3+Jh{U_03}*}=IM;ZoZd%ydPu^Uuj@r{6@R>;wfqH@S&WK_VNFHbFkhjE z!(vX!$>Wn|TrI@C(j=!~e}#uAhmRez4*A#HiFb#rk6@VHh2sqY5ZMACClK! zj%F6cEvcAys^*Lr^^%R((f*nxRJwypgL#&BxSfzE{`LHYUp;p{070IX!FKFCv&1^V z+UGbv+jP?{>dI|8;iEo`vnfH}R-MN{F6PLM^tzCmJ${75yEx)f4sJHg7YEEYW{|}d z-X>N26~#AuR1i<2MHmt4=-aR|AxywlEyBcvj(g~X@grBTBK`{~&$yAE0bGeViTz)5U{=m?)*8%o%pEEQ%c7FZw)#05S_EtD*NUh0kPe6w! z+)hgm7tFlS)_Hq85ca@*hrEEM(rx)sc>EA9F5sJSRQ6o+m-M5N-3h#J6EV&U=!l+tQ=G6t;+*?J^re#Bzb#o9DPuZj;(ovV2d{+1w?shH_UPG zSKo#0jt1M(aw?NtiTZ#STogl(>_9{Jt@$Na0NsnSCBZ|u#ZxEl+pCI@Z;7LK{mROZ~Bl5b9V4qziJR!�DLDO&b@#kuX(wU9&61<{mm@nfQpZF z(tdElr1Dk?q24n^HfOtaXA9Z^SAW};+Qe4OspV0k;Au3&+WkSl$bFqf)~OthSIl+T zt?Xp_Wr^m`ub!#t%vVwTT_9)XcO_RYqNDVWj7?dh6_$1rA_<(Aqo|6XvQ?Ai8syti z+O9Y|Kf7Z{ck3v!Q=%g1_$yvA{f9+O>8E>{H=11-q1a1!92I$TU9aXU>ai{@+N6$44W!6jK6~=1x!YF zv@i5Kg>LzAc0>v6)AimsrvC;yw3-PJzm`B%Jl|g}53-=try?>qE~Ki9LI_HY%}|y} z)8rCn5Ir%c0_ctlV|N@R$1UaaSlWgh@61e|J-TkXr?BBW4xA1~3!WHeF?4cz6s(&d z-%dAQbj3z(U%he1diO;*I!)XVLr+lTlNFo!I7z7CoWm<&K`qlzmk<|j66 zbM`Zm#C~N@((hHSB}Nk#m+SHIuy1oUE=kYOxzAL=av#ZWf-De)E8!)o>9V2-{Ou^^-PGq&51YO@Ybes+>h_x=t4S5-R!YaI zr*Zd#pUw0$lS3cQdaqUJ&MJhYwYHSq&;<`denHOt*3PY&jZ~A{7}nEKw(LC)KhQx~Rs7Q=)a5M=0Yh8?-_lxBJAPLntZOE5=y#JvS14UeG$;?lQe!l_N$n$an%Wxku5R|d!QC@NtS5Cpo~Yq& zi{DLcUP}!k&3eD>6hVDB-htB?JxKTJ-_w7YcyV&HGNB=Ua|%2!`THb=t!*}PHVy1IgYj$J^BpKCe|g*b1QL7J0a3aY|Fwa%Kv&D4M} zc;pj3#{Yn-fSf#vVcM%aFdD%|*Ma1xs-?hYN2iOo|5Jd2i!ZWS4(B@T7YPf!7sOi1 zBK~*PR{sAzN2GL^a;!xE?ey2oEQH0ne~V)jlxBA^JFBVUyYwQhw{QgxUB$b1qtlze3`ZL%kxwz(_QS}l@iFG6xoE9#0HV|qXZsZ6%o}CZXx?W z*XG-$e(t2X&W(ViME6I{Y@?_wY{BbWp98pzirQOwovM5wG9e*ezMuZVX1KI$FlFn_ zyPtU%x7okSW{g(BFYHl$g^ifp0lw!sM&|}PSopQa=AY&1G7czjiBt2WJ8R!qhmIuK z=XtyEb3b00-f;G=8CpRrZu%FYVOqbdU5^X18T)2w@2C@3LuUv5zy+SII-PWLGY<}h3HG5#tx4?G)9@31 zV`__Eka!P{O%F;X>n_5JI(Ovau8w_hA-i+GtI=(a&!_J2M(d1dhx%k_jFNoZu6f;- zd{ys2A`7;^53LvOj4$-AHgJ9#a%$I=;_yS3YRMp*8P!!|a9$|wpuIg-KN@ShWqKLs z&y6lnyveKF_ey=ql+NGh^XL4<^oyTQ_W%pJQ!NR(RvKyMm*->Wg!jExcN8b6maqGe z#Cp01ZDG1=X#w0bLGdWhB!i`>EnZ~;l!XJiz@FBWN9i7Dm2y)9RV*92Wv96RRV(EF z+(9hKK<3%o*4vi=SIjk$c~4_1+U-~w?r76E6;x`!9kmE2yY+>0Az8G5e1~dL{Vao$ zlV$IYZAdT+(RvepQ(?8ZA2rFK-Mm)9o2X*I8yoe|e$M9twws)QRp6m`Xk%iXE?~|s z=1%FrQ$Bib-}hH5@l8U>!VOpg>fZcx`$vAeldB^wbxeWCC9f9_vDm@JblB>xd)S`Ql9Xi^D&Q7CDm1RVn<#7S= zy`+#HmQR^X!npeG6{)rM$syKx9gMk5iO{-_oqWQ6sDl*|VXAk`5f}l(RmBh1b`Iki z`xE{m&eSjqx8!cdzCO&3hCAgLgNIRdk-MFCjqlNVLCRct{O9+E=}Z?&gin;M!% z{5^C*p$~e{ET-F}Q@k{wU!@*P(K#U(Fq_E=g;$ZKpNv* zE+_6zXD2nm+?eU-ffBn}udzs%iOdMo8hH0e@=;#&(Ow1l+GnrM(v+!-tE);_mbCK& z)w}atK=K55lQ6W-4V0U1Wgd1H@{C#*(T+=s3fhh-T4af*X4R|oi|lSfCHjNA(WZZ_ z)aiqLXuRC1-beFj8Tl;<3Sbo1xFbV*hPtd#ciep0?UP8CvuBg_%O40+9dq`9DU;iZ zycb^vV;Y6y!Sk(jR@P6WjZJy1bJBvR0Vjk90hh23)dAAu=@$QFu&>dgqc%6!>?&g> zRePIm(+mE{IgpPsWe|9dKlv*1yPxHp7TLjqllWpL4`eiqu3!aS@^_gSf;N}A}54prn1>A8&=1!e)xK6jVwE&Wf#Vf zgAL49ed)B^!JCg{2RCXwChdGfsxx^B9d~{K+f{aH@twubXocZuAMxU{p}0yy^2L?~ z*v^smFmu8+=u0n?rJ*>^Yz$P(x}tVOWteDZYm@3~=hl_FShZ==k^jeG-{6cj!Q|vA zQ|?u{&W_n=DwhzkFJ}Jm@Y7v*E9L%rx7|#n+8xuFq`&p}k#aWq_oZ*4PsV)X$J`7M zko{iI4^HW7ID1vTq&%zme!(`w#i#d-<+`-K{Ood9W)<>FG^Wt36Ds<zYfn|PMK4)?OQHM_{W%@;Y_Gq7(mp*r)kv6gjVpYjV+aqug2bll$^ zn07Z(hJ@EnQfLYMe6vuIi(@$VtDfj0=#llp4N2E1!xbr)$(7yv9~R6o3HoK;7V2ov zFX?Hr+X~+_WUjL+q!`KY@A5s9J@X~uO1={L56h_T9d~u*a7*t{)GR=y2LT4(()!iN zVK8b3i0tiA-N~U>3sN|l|6$>Sl5MPc-V>0l9OSJjdze!L)2;Tyk^4-Jj+k||;AkNP z;E!Tx`FR+zQ7h*bEJ}KBIXe?&J+r!|{UGfMF__d@W?!@m>KmO#Xh3saKYA?QPp-Mu zIGaNnpWWNJ*!lZ;@Gps{cEECh8%MYrc9x2P`gOL3d;4V$xC{yRt6ru|yWj(A;P)7< zNhs>6@v=?S%E@cOeIN_qlcr8OrYurow2E2=#lYD+n4>WC<~7{Vs6~AWlVX$qvn!?J zuIVPQ4YgZPZFzp?PG|du%6*?zJSBGnQxzw6@R5q24oMMEsw?yn_=eP4Ob%H?BQqwy zG4}dzEwAh2MqCj;s&WzgAY!v@b3?+iB5ZJ96qDB06tRCv!QF7Ke1vgX>L-_Si#n_^o6MKC+7*m#E+~hnPuWqCEV_%% zQPoR%m!PM@Q1e8WRwJkACfXYMet|80L?Z1Yqg>eKBLiCYgBOVOTDBr9Yr6L(y_cS~ zs8EcmHt2i5{k9o7-Tz1;ASHSogU)2b)(!MylIH5gude1~0i%*5ea#Oixd-a;b%n5( zI-#{klAA1MjfrpG-{(5a(rivQhmdQxYs9kPNr->$AjhGuc_g)9emDQ(h^SQ?lkj#n zrT-7BJw~v2Yk)sv#>>0wO8@dM@MIwzMThDCgYvu3y^_%b{FB|toO%z;D#>mcE&dOS zqILxD-3a$V$0e_prXZP!={ef(4mI_@WRRgSM(j)t>wskwUGPW_`!MxVZ!6Y`%Jf|P z0dg%)ED6I}8X>`$f@UHPK9ksHKVJn;%Hzl)eVr{vHF(PzJd3Ahy_n)>N-O#GjDYP!hgOS$##jYfR%8NDdsIS2~We1)dN zqFgd!UCAwNG{rU}(6FSvk2zj%1;54ri*Y24Onf`2_0XMEkH@_qe^0#j=4=D>%14BE0hHFNHT3@w{5M`K<6CMPEPSH_@G zrx&HJ9{&#q{^P!j>WO2*DBNM|=H&+Kxw^HU*2-5O8g5c5UNKK#x(i6q-HRitxDdMV zE?5RnLIl@N^(2UI*tHLQ${`(fE=7 zp*xWKtUBdJ-^=1KcAKK?FQ~G<&v^yYHvMlIbagA>CN`6Ze}4Z>+z%K|DU}XEhczr< zVX}L>(YYybxhaFzvr zj?k__mGKjA@j)R>Y39i~Vq1~Xo=H8Z|lD97++Y0f8nE9~gam&n+Ld;i^Ey$TfrsQep zdnOxebEye|lsbZSb<|WUbhuQQ^xhxU6l1w^WL80ph1=2Qj|zzy-hCM%0H@&65(Vc# z+9mWsFkVNCUq8|}X*fu5y$;GRg|8sMeja$VLaIJaR>J3U9a_GN(cH`Mo@_j%$8-9_ zC8vD`iXVVK1WqN6<{Q3R%@cIZNLcwlD4EU{v*$qeY}vEdt)RL8Vd)98*@(|O*ZK)< zl}_kpeV!_StOWfKQu%%C8fn)swbJ+dKPc`pr zHdYh^egIBBKh3G&yEsVi);+(gvkXiBndHJDYI9}*023u@i!9u;Di{@nJh2JDIsyD&;cjp|foGmp!6 z`nf`IPA;j-$|jjo)DhZ$Y>UvfCg>2j$06u^S)V-##<2+`YS)B$pLXY2Cy$rgP-s!H zP+8vhPSmPb4KwSbmI!hu^OZ{ZnFmT%u^%>$3;4i1H|R{{>w)dei62^Gdf#CiYS z{#AaBGtddEj$Fk&>BDpaN;$l>D$bEL}nFhVx|4yZ0?nrSjiky>s$?W$q)3 z@CBNgkZFOp7o5!<@~z&geA6QStEF{Tl12Py$8DZyKB*UnayxlXAiMj8Wr7<@nDxld zFkVM0cKUG%Y}?hPVMGStazrHa-lEmw%&_TMhvQ@D?apSnhIrr`!YxCkjZaa0DQf-T zeEmUhjiWfI-r?0+i^%nJdBTzbLYp<7x(uyE1!GOo(ew#GR}GON4IN35>)ZX$spJyQ z-~7T{(p;ro=!63{GovxgAl^;I)h2{an@hK5Xb3!#T<>E&Cb8t=FsbLQ5PtM3| z7(rQ%6y6??dktY*;WCavA}rxVi#ldb3-7D3{D-C3n8c0zn&GFOIkTLSL%>r8XExRx zbpQ^FNSv}#`VZT_-k8KCnc@ReX+Uy-9qy~c8~2iS5)zLeNC(2`|)6YKF?K)_g1}Xe?YmC&6IURTQEt7sj`Y)6d3TvTlsXKetcPa9Y{~bRv^d> zv9sM-d7|>K#kr%6<}fm%$Vibf!g+kPc_^08>m_Fk?)@AM>cU_pi1*XWCA}zGRPD_Ujk<4 zqh#vF&a-KrUIi4703W*i1!=A1Ge6_?_R4{zOo7C}EudnT}>Q>pyMGSSB(m5JAuiRFn zAfG;Q^hK+x*`b;P^1{OR&*cj=Q6$A~6nIaReDw#{Rnl6iSb-D$m&31BmFt?q!NT^v zs>iGWp6mg?BwD!_7G^O{jtZGcbwx|hX0ctJ7u-4moH*HQ+S{~_9XNwb)Ij?Mt=g8r zky`c2H`UTieP?Zw<*(g7A7vAMJAZM2fn3JqBvQDUD^@XNP&N@}zwK9@@{uD!BJEB< z*Jk!~+v?-JH92Cy z_SY{-IJ!qEx$(|mdFD3Hms~}LG-3I*duo7$yi9@sR`iK`zk|ucxWEoHe#kyb= z+M3IpHyJOp|6$1G$>+byi(-8q^U~vBEE!;Euh2vMuDM>cXSe5L8;*74D1a~CVQ^0V z80g-8=e5UAyT6#m{+BY};WOpJJ}@gpE8=?)w1R{a*eBYp7yl8MEnHf*mttgF^K+@5 zJvy@G;FCHLm@jX8<%#*0ii3|>(wN7urOP?pY4z6SZ>brRle}Bi%fkf*NjS^`bXBB7 z%k{!^l)aL*&Lpug)uyVT|zg1E2Aq<<_dSb=HZUwSXpMe8d54%+(^nERkW0dts z)AB~Y7YK-rgBxPsmSs}q zJRu#4s>D~9UUKrwl6|^~1P~8vTwr*3AssF$sl+%j`xY6|*S1eTAuw z&X?Uh8%})%Wx0Lp@v(Vv7u=sVbmn+1+$EK?Th^amWUpuj2DttCOr7Q9_gWlpCsCo$ zd~~QerWn(aS6&-)1TmkAx$6nMuCfe>Ti825l?%Gu=5?A8-K;v{s>bQZ2W5@gBwp5V z+Fx#n-ExZcqU=!TEj`_JX>-Wu>W_CMcBq8xM;4i?(D zn<77oDmbG2Y*nalNu~wZfjjfKmca9w1<0*#EpP>?U;7Y_J+R`3cFJ^I#K2U}A)0kx zp41PyW%A<)90kPU&eZQ|F8%T@chWYcS%!}j>!et7tbU8w#}f556c^)GN^z8wSap&u zIq99qz|RrQrCO_r&Z=6@U;;@+wVMI#+p+{&f2Fq;x6dFw0fv~2t~3@g*UpW^h$wiL z_la5H&#fEd|F9G;jEE%_@^O%$B3v+)s$RCGXZ+RhKE_BbNxBEY8oCSgb4~Qkd4OEt zFEhX~UaJUnH^eVQ<^YWF+bMvK-Zub-Kr@V4JmcrDIk>GeCBdZODJVth0Z@97@z}r;jb!3c5AmEVpE(w6s{FX7}h0*JgcN+eu z9I0Q$3Z2Bi0~0dDoXs#qq}xa-IDL-u{%LG0!(ii=7H}dmM{gX3J9U|4O{|)NCuZ(| zB}fz8`0w72;(IUL$^7OnRj74>V$Y%}M+zZQOF%XEo%E$enNjLiY7^-+P%)lU#O z@g!7KnWizl)DK_c?hS8TcwE!Vbb){0mQ*6)Ju z|FybYsq%i#%$yAC28o;<$O~t^0h#T)E0o<#hmw^K+Vb}JHFD~bvgot6sIjwa>;8qC zSm#HT0Wgg4#{V01Jbh6bHaEx$-z*;);SDMcb3~yFgzP$tV^7BVxh>81+LQfC&AKDxwyfP#m`hALAHPbnhTbu8Zm zUvva>zE7Ll5ME{eHbRCk-Q?32g>Fu)i8oHH|LXVQ>mXaYt$JX^n3UM^n$8TfEj~!w zeQZn+U#wUE`0xcLc&41smtU&n%Cb0FGoaEOsdr0c*!U}(Zk)!ebVK?!Gc$x;6(`*` zYFKZQeY34OdYXZ4q#b)-z8w(u0W{WM++ANS=EKBf2B9)>X?qD2c;cfU)WaS6(WeU| z3}nI{&a~fiJp^~-zZztICG3s(;71EKHL^l|ddm@l51ZrJomkR#BK=4f*IKZNs!-Q$ zQp~$njjAGl($lsS`Rc>ns@Z*l5o<=4BD}TyE<8#yJBu_fgP|+Iepy*qEwEOT`u~E; zpg8~e7CoE`m|G^XE`UfEq>BkI{lOQ-Rhp)KdK*`^$h?`S&?U<>c3N;n4>^m&H>on5 zakaZrtg`(G=*PtldDZX7w?Wa=Qjn@=jMEJMVz(>5Ruwd#yKt|;NTl+Cd( zEOVtJKQbUFBmP6t69xGJhXUjE7R$0k<9$i@S6&}#8Mxm|?u7F6Wv@#`M?Qaln{We4 z)$SVZI|;w?c~12AhGP3(yk(k6J1NA7k%RF3=STx5p(1r{cKvQBjVH(73L!}tnx+C7j~4Q6cmdPg$Yuf>{<`AicaA0fip8rklsQm&Kd zPG7;_tNR;bA3}eg`Am4UwIf#iZTMkX`y-#tg6+}emTfR5LBDjMqheb9Td>e{LnSml zvpNNlRIlWqm~$m@pMOevzTL$9o9`mhqNS!MyqSh$T`;2L9l1`RLMCChJ{G)20Q zZt?jfy|6YNagFG7X2Jg#GhI2sbp)5TUM|vC1rz@Zc7LRCJouh=&_S;w|6Zl;mFy7u z;h9NGf4WkBnF~$PM5#@Bh9G_V_-SE7ItW>`&Foyi)CAHnOySinqp4pzaGhWWVScGX zDms5(lZ{r-Wn0bj+H~c#0*_kWu5q@Ye0Z5&jD3%QS(8p%! zYb0hjFaBg+)+YFBlN!zKl`!8Tta?VV=Qeav#~4fH?;rzV#+=u3}O05zbM#WR8<3JK|*dRdu6rJ%6BUcl)!@N7BRm zi_L4^!-<2a!UeqrT~hwHn_cA&;eVWg|6x_PbsnI2HC znzF^xD%hJ!`|4WsM*@<_*XGP-bC4L ztY%NiumWb>H$u9)Cj-%ZlRD~$xeQYU5s4RXX*B=zY9DoAMLwQO1tMp{JcK10kQ}e8 zN&670t0cbI6r7fHUSwhXGJT$m%)tFti1!uv9xKZf-r z;P4OjiIIW_xO0!hM(*L6(cB(!<>Hq%Umu}@XTllG7PJTT(Fsb90b;u8MX zw7yfX@~^?hq%nW55|LdOccJndtykf}MefplPqJH5#>E7c>S=Wae%*(-}_5o zk-&=~D>-dFidZoQOJ;sK#Ufa5l)&cGV@^?puVr<^R;2MIF!8Vh9M*Q)6HR@Vez5Gs=DTh zyd2F__Q`!AZ`}9E@A2!_XS2)L3}l4m$vUVuNaQ&}*876C;`r*TUL9#I@R+%4QOo|J z0@x?b=-DI#h(4|R{O~~2ZQMJ&n^6z?$_EKNyGMl3l55|SZ3?cw4PQqsF?z!5CwMc= zPwS)XW`9LDvB9)2f!EFT_WAMAf@%;#ond*yPf|l_-Xq*vmiaeQ8(Ofnev|RX4;c5f z8GA)Rh;8K^kSJad)hF74IcajjHky-H)M~Q@85@AF-kw%2TQb-c2`-S#jwbeU_KAJ> z5f@`@O9o|pn=uA^75B@V#=7?UNs7MUb^h1NH}y!P&qa&z4DGrDw?@ItT&!J?3ho55 zeXK2^64F8u^`Zi}EF;}BiqZq;%jHp>;KwCZos{ILZ>5^~ai3wY+RyQ_vF#;RuNbqs zI~QVQG%6(2uY-lkyaJ8HZ~S_bXT~JTtWzY92Mz`U%(6NJ>1?&?orvE%K83<3jm4gF z#VW+@$AMW&bPI>b9o#weNu2r|Ok-)j_DMV?%8aCu_WE94P!SVdA~ES*&2r!nELGi%j~tkwmgDbPmdCoo3FdL z6xZ$(rw(7f8*%FJ`<-1b8Urb$dq#W=r%HG2uTR`0Ow+p`JU~&us8D#6^12^<8(e)@&B6x`}WPCQ`uF@Z3a-Z>4Io>iPK*V-`Dk0V-^^gsCZ|T1Y>>EIFmQSp%EQm zElJFbZjnez1ahF5<2CnB1(P{7y5Q*!SPl>eHREc8JLS)L;Rhj%Vn9i77U-y@jqAGt%c%#dmI_O7# z{|gdegWxsB&UZ=t(2r3+$8-=}5d4vfGzI9p^Cp`wI(0pgPy?m@)--Fh`EN;bGE4eD z2b`k1P4&AOpi9HKwt0M{@{c%u4+I()B%hA^7lj$*c1=tXO)XmAwyzm<6Cv zkHUX9^l zv#d^#jxzXV`>F%3ABJ~ql{KKe?RxQnag|Cw0RH758X;OK*uHPWle+jdg;KJ9@h1!u zSJUiYmH+4`aERAw@7KH}0DywR1%7Z;HCFfGF57aN?7jeu1m&}P^KsdOKAdCeW6X}> ztEfJS0KYlj6$7BHU1ytwes&SfuCj~=2EevQ6-Ga|uAAs(Q46@70mMCT5$+82t43nB zyxciuRlM7cvz(-p48S{xei7$E^fGE22=p|nN_a!a)iT*?zh3x zL>Dg%djUxvy3m-P5IS%oq09jMV%UaTP(L7$G$+$lI5L;NPR=f{9s@o+s6<=zbq)wwja`npJ@5P5T|$7b&^<%Iim}PIwS~ETa8# zl=mVkN10ZPyPM(V*tibdLJ!0i7;d$1OU{emQesA(H zpX{clR6P~Y=Po*5+cEsTQnGG5d0)m)2q7;_uIY|(jA`qZMx|E@?kQ1a1JMKUef89dgn`WWsRl6 zdcO-EGE-8b19jqxT;wMIhwvbT$jm1?OBG%l0GrtY$1!;}8&GdI|gZ6XV*MF11XR-+p__A(*TM~!+`LS4~qw6g{#Au`Wtv1#UD37G~$C9dBtS%#J0>uKL! zVLj#i+Kfhshe3I$gUrA9%H6;D^P{fz9vm^(^{y(#>E#ucEBz&wJ5%`8WL^0gJ-nI? zMh&)@a_3sFnbT#Vc;9o=uO1i|r(0*q#zLkjYg$q*%aYoo@3V3pgM)(Eok`06{TsJ7 z8w^s0t1UNWMCSD6^fXU)yaW4S6yWh-DFy15=@0rbUH-u8Gt!j>Z>eJas|(%FK3X5> z(A6(tV)iKFL$`klJPSSwp>xm|BWvmXF>sp&EFFnsX$6qT-{F^;rSyh#yu?Un`9_e~ z4Z0y0tWjGvva~czDo}>!r%({VlxRM8Za=U6vpT%=Bz+BagY4+E`DcJl%yE9W!T=r$%f3 z)FS?+MxOgXre&aRv?{dR{ul$+!Hl$<)&NdUt1Rg@1-!GSa&!oynLiF6aAcbg+Mn+o z6hsF>d}pEg5z4>UK4KS|oXjIW5iUdkWv2dO^)vO8p{~n7DLIz))_N&SOb_bVuotJIsj8pCKFM=8rLKx5g;Fm1HNNKF_bD4k0f=Sutp?~) zB^)8uY-(@2-W3-ey;s`v$NPxtKhi-Y?-@y%uD_37n_T788z47z*QPACj`N$~2yv?X zMJ%rK;dgx)^26xEt0HnU&oKgNb-)kb~yXzIBt z9^I_V>dr zICPR0@44`dUlBnQ_-lC#pZ$)BS=;Afmn-8Zz>I2g69duIVYl}6>|W`gXx=8Q5#PKj zW5YCPpA2^|DU zmhq~PYZhjdXPrM9z~7blVoYB~C$W>?9{AM9vrvHxq+QY}@TytLUJE4;=;%N5d=w-V6dRx{b z6J5HTUV|DcdKpv=pB8Kss@yndjyEg%tSL?-FS%gWT-A&7Tp>~8J@o42YjGjVD%}oW zV8zX(XLt*mb&4(cuAO3ig>cIywm+}fd`&h-@*}Kc-hMbYx(<-PasU2a2uF0QOkONI zW($$zrmxqg!m;JpF^b(jdwV#C%_bt@UbvWLDdA9#ePKe!JOJ6mi7!~Kr22&u`FU80 z?Q6+E&s3!YRQbL&WG@Cy&-cEr?)pr*MtkM$*66^m_9GM8xI|YG0g=F&Uj!gX zh>1A!0ndF7u{?wO0_Bw7+9;CNRbb0JL}f~_``<1ZTb!r3IrZkhp*B2!C4W>@n zLU%ytfEe~Z%~Yjv@@Q#z#?mQ*>y`sBTyp9-g6fZsa!B`Wo)^%~>z4zRPe!?-=L3a$1g`C5_7{eB2}LWOTa!_)7w2w+`PC`z3poJsOw~IVWNgL9@c#fK{{YvlrZ_b$ zGv_;x%Krc^PfYb3`scS=sUzh5IH4wLwIo*DcJM2BGf&~!RNdO1;V^ae#N8g1utLA{TScNk5r2z}%xgqiGWng}F!JK*>-@>Fz7hZDQGGtJmfq z&o%T|d4BHQnc`yO`|J54*3GufhUR8eQSNyDwevT`d4#_a@1T#5E=VE+=!5)g>ScwV z;@Sc84cm{qde_Ig^~d&y#H~tP^}d^)zbs5w^usfjT4|4!H!!Tz00iV+q+lhss*szkkk~;gP5^K6_To4&E z&!ZpcD?;XFxLsNy$+w;BxzD;sxc;V}r60CydWE^^c^v9J z*-lsW74f)*dN0)bJT#lGuh@b)K#Ej;Rf6&Fp1*+2LK`(2zU5Pn7-WyFK3N)ROs$NN zqk)0I$4^s^Yvh`?huNXv=A2Gy5OYo^HH%j_O62?MWvWExtf1W6Y7L^UIz#gPYK_}r zB7}93z&}c~;|>$w6@$s8Z=>1MnO=)+tLSOTViQkEFU0XGLUdi@tb2Ag zh{abYH0WlIbP`0tl=29rZYzRNlpBj$o5rG&O?4xx+F|l#n$3>@mtXfyS*-b(+uX%* z*qw}hje6Kt+HhwMBczeKdeb)l0H5+{)S%+J;I42>O+>~x=}wVC#$5jZ2quBa&0LPu z-8^=E=X8vJz?={3T{R+|HrW)Wl+RYv$M$<#TbwztwY4mybtf{o$JCnnAIExU_9nZj z>G>Uj91nsWtYVoy8)CeK>q-CE&%+6eE$IPw@#4jcDKQQcc?`hvGsVr zc7OB`e;UgzY86_0G-Zj^T=Ops+LSZu(vOzea=GYO@INZ=yjt>T`gV`un3$0rid;?) zX|D*ChquZTKDD2q>E`}@GsDsRrt(xT+-)t%Jvt~Rv%FiZw!N+1YNtDHWM+(ib|Laa z2eP11UY%)sN~t}Tp-cC0a=C*7;Xyydz*WsmsWEMA;c;6254*RARa-mQl3QD$vOwys zw;3Rfz>I_W^zUAQccbW%T{W(ur@$pl454_#FcYip9i-s%jPWguj) zBPifAZEMh)~8X~GsLY4C8=Ldy1CQtVbm<8XfB{(BvP*oj606sPOohU-S!@mxNo1U4M9^vOH&a9RbK4E9Lk`R=qpJQ~jIa=Zf5%3yoUJ zA&!}f5bej%ipv{CIH%P!EGDNM?C=O z0QD?z6?>8eeCsfXsbZ@=xcQ-SE2okKy--bsmp(BzC#>`9c2x(9Ls6Cp{~M8qKq=zq?K-+KI5h z*1epn9i(r%s!!rZ1#|JfaBEs0mIgoGz^z(5l`E5O{{TPaRLa#s8y%|JwOUpoyO*PP z8C;#Mf>$I0SD_=OM{2l-y=JRbxZCxq+_#~mohrhg)~O|1LIyKgOQ6|xD$>;?d}gez zXC>6O?Wt@W9Ms7F04_0A6{=;fW{WuA5*b@W@eh^v)f^9^pl{_~SE|?>y()H(8#OI3 z6zBe1S+J2o_bOW-O7?eH+fdXjW&>^HO3DvIkX40wkA`BB@4~lw1pfdn{)a4xGr`)q z3Vp*VAlD^Dc6wNM)cou5gduecmg|Q#;aBl2vl(CRsUp6N_<;(o@~^FrxuWkBc_zDd8QkvqSEYINwX5oSibeb^eqwqB9c!l7<^h@r&Pe;m z`cyWN9Xm}DkCy8A5WTjPH0rf6BQVyN|bBt+Z|T zNGwNlQ))MVXHESJ3@Gonx6?goJU3}9vYV~DnVV`U=jT7r4r(5V=!(0tJ&(e+M%oS0 zaCnJN`$T-_@COyCI?Lh>R@+Ckz(U)1AG#EB(i7;QAHY^yPP%1)i8&+~q8-oo+aBcp zwQ|kDys)_QIY?6;n{xgjVJ# z_S{8g-eFV9U0&pYo|%RN>%+cBPM&zPHPzvBFP$s1vq<@8XU^-JhV}m9`jVh^u4zx9 z(@ve;+3r3Ex;_i=hO6U8+S-dUMQYA6&3Qh2jxoqm9^r>zk&k-9@RpdyI6=!9cC!+4 zN&-xI^(=Djo=!ojyk^a7Hk;sVtEPt^n|v1sI)&H%t9Tq!*y%01R^$UJ zE1$O{0gBwWbAw%I;gZnbi>iGqQV+XWw(b0@Ru{kqy5jUX9<0<()oE&kZIM>vZkVmE zWZ7eH`TqbWnIvI_KX>{603w}C$*Z(-TGodJ{7fWFkJK9ZqsG4v=Cyexw;3Hr74`d| zHO=Z;d{;3rakwzWaaN-ltq)TTh?O?1&(90XQwue{!ektR4RM-=pEa60TB^-$B9xXV zP3Y0^O30ZWV&{>_C`RNVhd*9;+u``QFFm4wdXKGq=c(CUX;YY|LI*&7YrtxBozu|! zIu)T=S)MhhMP;u_wwJS|o}^t_KM876 z#PB_v+A$Nr*(L*%oEGH9PeOWR2JBDMJ|oc5>L!}eFiuM<@Hrfn`t%^=5y2fX=6Z$P zI)pK4J|~bQma10D{NovzJPjWN!XupDuQ_y~7-vVtK@FPUyQM z@z9)niLU9FJ|4Q2mNJVFUp^+m+Ke(7V31>Qa;ym$!B!)sp9A>4d?l-kE4OL1JyD9D zf7Q9^^dRyLbkLiNvpF$Xc+`h7-1|>X@owv*daLEk;H|_h(6Ia1ADQ;9Kgae`+q_!l zmGdYYl#c3qAFofYDvq+Rat5mlW^`3)Bwl>P=^Xz6UeE8(aa+1Jv1zKMOo zLX*Y_tV`Ct@F$5HJ?HH6uw`%IAoL*mALp9vyil=gnt1UJnlmEp5`pX3{x#7FT*gtg zt+B{nO!v?m^vSrj!rUn1Beb7W(EIb=rMTJRtqq_9b^Vg=i07A1KyGYwMI z2_7ybkNfC)fIVn=#+Pw#s%cH;SSAPY< zYPQW3qcX<1Q|tAvL&Z95bCKdrFl~lx8I*qmp8o(tPSN!tAr7swMaD;9eK=1ByubT8~7F)Kz*bBaD=s)C}8c3C%)!Q%dEhag5a+ z4B&OD(o5+`wQ(kxACYFT;v~a zwa(AAT!uKwf6blUhM z>B0X1^;UC2%ZSd^+&66;Wr!f*`sKOz^fl6Wvtnv#da^pha};h00z-0CfMIGK zX!*yOn|Cv000;ZNpHBVjiafT|`g&?sx+o;B0aqxbHe4KKM{qimkHC*gL$tO_Wt{C@ zRr1(w3{EzT;DMh{Toa1dGl1YL zugVu;0YSkWfsE(2aoV4%FPUW{Ml#VUW%_p?mTM?#n(ApcW}Dc_vbbr`oHhzD1f1sw za5bH%jHlsL^oi8m0;IMbSdzmVN!UQoC$FVny*Y{0^Z?{^&OQ5ATotrAr>Z>j$P#Lh zoOEVy#3`=wHN+~u^~qX*Z==umTd!V*y9hvO5j$6_Ms}v(V~ZCH)QVfQjaUlDbLY9* zAx2_)-~dVfRq&^V?jHXDUy||1%^{Lff4p3l{ANobapx~;ikLUd>rzL~5ruwskHIj0S7Rc{!AV_gLkNrxuQ*-cT>M7BHbOn zgpfawHI1QOeTP%DzCBh&X2+pFH}f@TOqa^=-nXcOhPZJU{Bxh@T=Ej9Bei^ub!u%N zV}*CCbE(uV{>7->+2j38@-N^C$LWf%oUR94f)A!ESHzFIRyR2R0FS7km+^SOKd3d0 zyA|=1_>aDiLP|h$Os6ekY?aBX#BH?Zs;x`7f1m#VRZBHQ@qF^+{c5I=O!qf;N01w0 zpJCVat5Qgontb_`eY(O`^Oub>fF>fW2yWNn!CTx`4uA7ec$K&ij@Xx zQn|p@i|dSWOb0Xqn8Nm?T4=$a|JM6~$9k>7tAygKI_~MguaD(FRB>q)n2N0-55XA+ zwM^uL$mXCUHKjgiyP_4IhdV4!qsVS;!D~i2bp!4e?mdrxO5BcU=Z$2H)s=%(cWT61xQ)fE(u3ykyt~G<^f6L0TKkq(&sjMG}`b_$#hpgvC+-+`^WF1DyMh1O@ zD*ko1;nR&u(T`%k%vWA4R{k6PCBS1kx~_k|pE94!56--pNzz8z~n(2Dmj3{Ji;@allRW&WHDZi6|NAUB~L za#Rz6>7Pz~DNZY_@NTsFW~Jq;7`*mSuBQcLOq3w|l1JlSjd*jx_eaew?s`NB+e~*a z`@DRT1Iqh1u6=822q2ydy%SqgKAn8KXHnHiKP<7H&WDvF(;W?I#eJpgq>0@uZ{+*R z$7B}`>IuTfBYGSm>_OnQtmm?otnO8#bYcR!m1HBgJ&5UFJeyl?Z}BTL!!LBJ%@0($ z(e(nYJ*$Dae(Z?DbaD@8QV8_qcCPnJwQ0Nor0K(k)_g^L$NiOmX|g< zX0C(xwvF~lILTDw{d%<_*_a|-yEHOU>0hT8xN>1>F07_L6i&V8$?uy6<`_;PmeNxM;|`z_Ju}$**Ofutx8{17%h@HeMfl&5#cqNU z%`^N>T)b`56}LQ?ju^`1ZLY~H*&Zoj)uJjGV{i<-^;6QNPIHQ)_a1RW<)nUEDq$CB zY=05!l6#u52h8Y&wr*uo$D)F8N%kFTQg+m|wXvkNX&B~`?l>*)rM8A&HYEyGvaOts zMpuK6Z|6v~#Pnv0Hx*@Cv(l}p{VODBnV}ot@+#`JW+US~Rh4bEn?bRB98`eft1DF7 zzt8y<%JtCEGbdb*WQILb*>_1~OEQkEhwlOTX1wRbY}yv12aR;kp3>!3E7f1(h~O-r zRj*tPj-w#;73E$jnlB97T-)8m(`eU<*ucqxMjZ#SJv|L_&DkAv_ea4001=uPwJX`d z-57T(=yFNx^di1h@lDT=uPbuoHqrd+=)WA?AZZ?F`6KJ~{{ZV($(|;=Yw4SBIr&g} z`qzrJcRxm<8$}*|w*LTYye~QZ)MtE$+tcysRd4Qu^1QA#ZXa}XR3CH?uTxt$0vl)q z3fb;Y_nWyj!|Icg-cp{NvG49{M(%o%XvDa8ytr(9!#KyOYV^$l(JUH9b1> z!9P|f1Mxkpk<@mu>M1}hwVuiE5Jzetp0 zb94jbA2BtRNh?_$aE`Yx*qw+xLvw_7Q}#q7g;B?zdFVL{@6B@>rmoS<(AjP`k^%u= zy&69RgZ}_MWElhdgCzIHXNtUCCB)xlu-h%fgCl6ds2v*}0x0{do^kc8cA75^>CLEI zHv8*<#aX`hJedxAvG(9#SC=V0k4h1{uxnTG*hThJD9maEgmM!d0{i2I`sc1|r0@^? zO8(X2{X#Wnut?>KHXD#m#QlN-4_}xWqw=YWLwtfKY5W39%@$3fwH8L#gA z`;yYLF_GEM=4lDZB=;opee39*7SP12fm|PjG+(mC8nWPk2_E(AT0NEkZkViPG~R}L z9afVAVR)}Y(_$(YHOlGm5wrna)r?FOR>6&e%fkex`wvJ^Wjt^?_?-zI?(^ZMi z&0lyJZ8K%#F{iW@yUeS zGV;ruXC3~&hQCWS{SMbtS5{C?59?nuc+=s|(<9rV9Zo>Scr|eHgS<9A&kK%H(tDo( z-;-$?X}YmvYY|~@Ifw z`{R+$G^=!Hy~vv8iMQ~F;w-*ucpt=f3NB$|_DN*>k|`K5lbr2g!QkNgfnD~ob$8*- zKwaA_DuT*Yx)kpl4tjQPqYe#xk>V{T;g#;JLq~mL#gTFY05DoIbID!`u;7iXJJ-H^ zGx&{Z@e@rN2D>V*wE|&ULxFJ^;1lS}j(X#-DtPv&PWm4|ilMxb>sr9E@veZY6Zw&x zsyv^5DF;~G_RknS4^dnnf_ztZp=vT{8t7$ZZM$4>%6)4wn^f>Vrt*l)wsK)^AaCMc z-%NA0x{q4uyhozhc)v`CRMF)hXijbA>B#>8mU4O#*!owsN>+Dg%}rfdY*+DZh|w=& z)NPx6joI9+KZTECJ!+MN(846PoOzmk+1$!GF~4aS`i|nC;car?U$eRJPm0vTa6wiL z)Hh~dr(dOUYWMyS)#UKryf;SJFiV`Pq3Cn|d9KF#oVM1-e`zF|HOtsv0X3ZC4UScm z^dtG!Hlw7?p=t`ypEBA`V_pGf*C464(HY4E@vX?N_hcmkzmjhp0< zsQ&qxTyAvpNs*Lb5O%j6 zIL-nI$FKR#XUS?3ZbeQ)^BLT{;-_M%m zbsTBGGp@BX>m}IpUyhoi>AnOuYH<3M#Bmk%M9hu+fUlf<7C+H0Cm+W6&(lBSUXlAp zYa#VbFG7j9w1uT{pW~T;A47%xYl85)`C2qQ=W%BA;Md#bl({g;z22w8<7e$LEiIOX ztxpo(T3dRsWAy(3^=7*5Cgma0H4DMhbEx`(f%=nNTym`1w6ixzBRKwF)Yj4#PYFdA z{ItH83O#b!{*|6PRF|3AfznO(Iw`-=JQZPY{8zG>54airTvtA)fZnyzc)h;OHlL-% z{{Sww<38Er`d2Q874o>PB7J@ZUR=j@tV!l++AY}`FKe)$_M(uF<%-6wciSh0EMImE z7k4q|t}+CIutR3PDr;7K{5CAJZmFuIV|f7ZJ!NzJ?2nlL04nI%h`>?Ma4VOGZSRXNCB|XXq7kn=Z+>z< zfPS^U&7MtW-OVb#TP8}ax~-;q`c)`$#}#m$qZE!AD{4F()7GO}k!wSmTc7{e`+bgT zxj3l_1Fb_NXNvgO-2H0(_Zawb&uXYtqhQsViy?;Im8@N~XEc@W`jAvIM;!6AQz(%b zV5#p@6(~qG9d$*t(?(WJS)&FUiL|?w)9zTkyPQPlu6+sh^!2WTZ~6ZKCaYarLwRoY z)2`%xzQ?g1gnHE-HtJZV{>s!_HxaH;&-}DO-20C8^pKLOuhnnnconI8C#KKvFWjk6 zlds;0=kV`aF))@e;N&m{suU6_UtTHJIZf8Ad5rP&uB5K4d6IUQlP$D-=hwA$`U%^k z>z5~w^k|~b{dJUog>v=P>FOi!zO3hx_ZE@2;3RMGr&as564kQCj>T@FasB1~b=<`- z*>#qi`;wFT*9)bclEQr%PwFeMxF_wCd$xZ-YtNFqYsgLLd5^~3Cdb2?Hj|`S5w`D9 zzrWf$39v`x8v?#%xQ}nm>TB#TjCvW?d>Ny7jy$vJGPSJgIs}^=T>TgUpL+R5{@-ES zjMq+F-l^_JCEl7j!O1mk7X?V{%70pbuGb>0#xoUtHtNU9%2szfn+9afRn&%cRU|ZdiqwE;zqKJY1+Yg>|;<7h~GW3uT8w=;~nEC-3UA%1JzW#NjA{R z!;$Hb4P4T-T|&|oiYY_Fzw*t-rmr2$Ba5`G(e#$PY_n)Ls2OH~ z;1@AShjKWHgs94K$RIHF9D*_kuQ>6el(z7mn4fafLb8*dyRHn zo({Q$!n46Nmc%yYSxDHxWC8<%H!gbo!<^=qk5Wi{LluO}wp$G^Nw#6ohf7Gy0y_{~ z*PTWV6Xj*%CY?7la;S0mR;{xfRwB0?*0r}mUa9lR>U0*XB(9Of3pg zlh{|XX+9H%$zzjVW@(>+YZHIy#vL*IL3(=DFT*`G7F(Tu;B#gKP-mc;RV1IP$DDhd z^#Z*^N3a@(pqt0aSScRIAL1*?tzD{?TnByp3FI}DoHl;oj36bi(M zLvHl567ckG?Ushs?6`0?xxSmE@{{!jD{cKDEJJ*&facmpw#$U-1K0 zH9k>4jOHzJeV^OAkeX<0P?01Datr&K;=#D^;vQtj%; zu05-bv%i%hYiR7WOEaqKP3Js>va4{@xbL3Gy#VK*amN9vYPXur@)vL3$WFvRbx?m1 z9fI`$_3CREUGX&c)BUFFGRoW{4gej7Jq2E{w3--}>Q_a&yDWUkKI$xAG_toJ>YxKH z>iALKv2m64M_o3Sr)8zze_+~4uGI3~_BhL46&t2L*62fj*GG(YHR_)Zv=xCP zno*vIE%%A_C%@LdWPccGQfe{X{Qm%9vQY(`EJ1%P5=m@v=19c5o~6m`02@;LSJr1w zCJBX%AM?&3mLuJce@b4(v^m#~$o&wo)HJIhiRMIM{5z|+)4WNdkh>;Rx3+n&%Xoeu zU88OnjsE}wT$A|bx@#Yb8iYhBlu7>S!TgOv!#?LLs+sz?r}%?S$X_sXj`iPIYF2K! zSpgok`72}bn(h@FWG+1k`PcET<4XAXe`xB~_gl&83BezM{{R}>>g^n|X`idsmvHg4 z^!Kik+TaWkU!1-b{iN)r+P99e$^1&h1#hN$eR@~B=wBT4iPc220He7)u6;*g^vz36 zZcUG{t>#n6t=oHmq*sOMK0DJj6-I_-V8eo~#dr2v#8U^ir9wa z3=nJ2EwAu8*8RQNAXe&V=an|j@(IB_R-#M~dgATwiyWHQj_204Qb#(2obfV-A^uKBzwa$IG3auuji}#H_bT4Giv+YCHqkFt}t{Q!E z+5x$o4E84#z-!+WG+h}nb8w-~aG|>n=QzL=I<0JJ96X-KwaI+EZaA#lok|$;+knTZ z#%ttVd-jFVY}J}M)$!XnAB}jHv-?iRF=bnYjeook&-#!6{c9&S_c|6Ct?!1e8^GU5znXfz^~4YNA{bM)t1sG@X=d-3~Nxgg6n(aG8v zCr@L}YBx892`x{wykDefx`2>^p}mMa*UDZo@Pu0=2*LA^tbKhkUU_lx!u8Mwkq&v~ z$pd$wRU`AwV_ke@y10*NXx%+GG0)&o{{S&wZE6u}>qdL{YV(edW6$-=ON}<^KGJq6 zWQ?{sTodKL`~aP&)EpiKd1k9;bEj$}S<@M;XNuzz`A6ooyk0>aK35+y=Yl>{$miNM zpA_hxAc3v5DEzSMRb(G`(~;BwD%yC8$x53fZk&)7%pIGol zsU$)_GTr|C4B3g()OPw2$gh@f>~8E{-(2wh!+D4m;FU=m)2d?!AcMf?Amx2C^gn@q zE@<99v5&)kFvYf}pDN1uK<&WJ@l069GsmLupAZd%?KNG0a_4`m-(st~64q-}}M znw>G+GIPQFN4;BJXF>6DExxC-OVkvGR|JTeyE4D<5_=qj_*Z;q-($gXY3OoRI-aND z%}M+*;&@sq;X6TY0}j|d#do%IlpbZd%uYco)k*F2C)d4L)PYlW9r(HrhvTjiH;`(u_;J;1GbjUtoLp0lP&Yk3O5 z0Z<3rZVDf%>7P!AwRYYdGwIhV2s<;uAH==u#dJ+(!uTw)KbIiK8RO~n_BHJqHR?*D zJH-SXZ6N;uBU(kSryY1JXnu-(7uN;uge+ONG<>d4UtiCP_R9F5;Rd@VovTM~7_zs&hz3 zO0^r5^&KRjaa3fKoM6))Oz~OsOI=Wk-IIIlI!SU)YKzEwahh;h=Oti9k$@*^^}rc5 z6TX<*Qe(^-n#yuP1}BJ;K^$;Ez{gzrj-6>F5sQ`V$c(Hi)s*h>+$ic3Kd7umb5hw% zQdS?{Rv)Ek;+hnDjyH}v8glADa8+~boEo9$4#1Dd)3>9Hx~a!U!|=$gDAG<+kD2revr&s(j)qyT zt=|mi3`toAPJM|TcbibJ9ws}iA-hw;N(n#gxF`CGxeiUVQuWM8bLvJx{#8os zne-W#KQbW4{jxbfkgIwy^R&oh>GGaB^mG0+@iDzSiwNymBZG4Yh>r;9CRMzy?Ow@k3{gr{;@C0EN!NjKInvx z*A?Sh=|{Ugn)*+hvOXC2rLF$}Z}{g|yGF_h%n^UN5AMh63H)oQw+m-$96c5^P=DYf zn({jYYyD=|%=wErk&nJfC-JXSzma0KV*dceg&&V!(>40MV5!rL7eszz2Io0V^<@}j zacOlrf2^6puh$>q)#$dcEysv7eH?Qgnu#0!*)D&WADwXeG(L6an{MMP5}TL(Nc~FJ zpm ztOV;@z8`-#L)WeQEv! zW!+Zdku6eN*$x&JEKi^n3Xj&a{6t->q0(YFlTwvq_Xs&-`BpDuuAFY{$^11Gi>1Bo z#}Z#i(x1ntjcIA8 zW1XwAaC1|wS6ZALRVQJJk4f32CnW=r{s+BZBNWDR4lBBoaeT?@j!C67(^?Cn>MMT(B&+3KLUzj;>yg}h8r6{uQY@?V zHOgMv$sNpk#fQst58hnyB7YK}Q;wC@*k4;})=75*WhCkkRb}cAxHa`uW~Upkneupw zZk)MZ-3!})&-pdgMj3n^Hh<;5qJ!(Q6aF>H!o&ins_|Wx-1t7+{{VYXl>ShGSk~Du zGdMjiC5d3`{{R6$t#+4R@%5kYD!1kZaaO%Y`=j~SadrN^5BH)&`d0+LJDM+roi>YS zY2pnxQSi2)f6?_w8ZY-)jtKWtf<482S976iKiW51D?rbCV(yYEjJD{QfIL)R$;sL0T~DM95$(HVYn@fZan>K z)}>KNd#8b34l}znG`p6y)~qiOWJb07^#E8;J?PQ3m3o|jZfCT_|J-us!akWeN9S&U7 zZPw=oWdqu~N71!iHrmSTQMYS&?~&z;b_230!6kZulg8i;cK#OdXwq&WmhvUK)*A&= zgB7^w3G7=v&jX@@Mr!xPOL<_`^s6B$o#V3rs*L7IWH}?bEKh$*<#>dr%8X-%YA$Ua zf#BO;FTq-Wm)7y8xMSyy$0YiJ zpYzWn9P>qP_K~>|$ja=$!pt**ewjF}?;cFAxA4~=z ze=&+1N%DeCru!4b$+VUwLC)L^oc09gf$vs?s&EkGF9RS0f%L4faDbjk{Li4ry>DCD zM+9O^!SjrrnfX`!;yRyD4;{~H&T~m!j-59*WFj5iIjaj+LwSeyV`}yQ04l+9h)a&X zqcw`Eo3cB;sN$~K2so(&W~(dbH7Gc(4lCK%v%CEN0FhFInywCOn(isFRoS&TIZDXJ_?6>(e+%ia6b>HhKyW)Rp>OG5n|>p|)x1l6aXqYU zcPla9AUH+(vH3dBUYS+cG*73jkJY;{*Ne3=QK*C`?Nw1o`Q{qi? zREWiOclKLz(hG1A20MJXHS^VLb33!|@OV#VmA5c_L8oXoM7N4{#SPxp(3fI;3Bv*I zLZ7X9{nv~vG}U@P?;9 z@2{>B);{dyDEtdx{*}uqwyck)g*6RX#_JlEr>u~5OUWio@R{2Z=g~*XKP=W}pW&JH zR|QAzSF5lpgVzhyi1Z(gbeH<4fjlbOYPD357vWG4FK}o>!$9H4G`{lX{rQ$ta=Kb4Di3D<7 zstbiuO2G;e(Aq9~h5PP*jzjZu2(1lwS+)_wWu*M}7Ay+nf3LbAe(Sz{*Rg582lR$d zoVzKl~&$FWY{{Tw#I~{RjPrbnHUJZOq+qKVTo(3se#w_0lG~$QLm#1Do`t`_a zzX}X0S|-n~YuAs96?(8gjbdK-rXiiq1#`y}QE79d>X7P>p6~n@sam@-7Ti0jHOySu zYVe**WOOFI=Klc1a6VTHT-Da8Wik1YYtx1@X<4I^t_qV@N09x$Rky;+l2@a2#dbO` z#63$-*$nQ@8uaA+syz>H$a`3Ol zoBJ18VY?}U4tsqV1He6q?_XN@8}@)}k1iYOHp|8VJU_2F>*?!XnN6ZRClHc74_evL z^$k-@lnn2W(01rfUM>1EY1X#?OZT z024JES)&F_mB!`I47_~9-}%?*FM)h}4g3+hND4}-SDe=;J5Iq<43fF^-L3c_VY#j7 zZx{tR$gd*PbwMT@c5_{wz33^8)z=9tZh3O0ZO+r}bn}0Kisb&(eQJf)rR7FRII44L zU6^|_r@Pl8hpDe1@mIwwT`d?#Fb%Z1Vn)?Kal4#no`bosG5CS;3;Q}7fQ(n2py%%K zl79jE*XO^)Ux>Q4tu)Zuv0pudFzLYJFi)b6Pf?RuI;W>g3b$v`-x5D**0VBN=`$9Q z3Bxx<_h1eQJ%>T{uaEpe@rPQ}rIKrlmU71|HypS7$F>h(IQsKmZzh+i-_N?^1F6Y5 z>sKQ1q%sWLxnt{A>%uDgv(bhQq@9wnkE!_kT+~>vn89(3DZ+p|0iFl>HG~^p)MNzi zf2rcVF4IBNZMvYX`*WvSj*5rhy>ZJPzREoaWm0;{o_k^8e-dAizdD1|4h4FbhyDy| zcg23uF;IH*pX*zCUb|@vDOO7Kts}-3@Zk63kbnBs!#r%;x!SVSm65aI&)Lq#Wess~ z&$#`6oqB{Hvwwo)U9%#{!>Q?6+CPsHG7p=ad)J}a_}E+wmks#T#~9v{JnGmfCv+5iKBcUnOLbAub4bh;WqGP+i9}1NojPA6K))Y3`jhGaGZ}~MSb^i;wyR7 z2WTgV&BGZK-?TNsdY0gmHiEHei-o|*mddrC9FiZ5!`%{EQbj^XYRmz1_%99_CG1eHS{!QoKff3R(hS^ zf&MmlgTjS$UlOC=T1SN&j%JK6W1gefpTyU^TIrq*_=j$9{4ISP7bIn&KPXb(tJEK$ z#eB8mT^1{7*7g}1{{TxTYFseI#kv0go>Q+-RP;Rv`=o*^jJK0l(dS)5NS)c!m6qMg zx{p(W4nG1bwN0K?T5*=EL+mSY7SJD`1_5T15Nv!D8#dRbsJhlw3tQZV;QZt(Sx4_;k zvGFFK`?uRN<8mIv^&{At{N2+$4e=AhQi(Kno(2Bmu$~e84`>$)xcQfsy* z(sW=A#j+Mc2mJJmWaHGYwMWh4Fv+fHwAuH0Y*Y-`HIt)jcDnwV4yS19>mbPr zcL099{{YT;;;uB9Ju9IjCKA_|IRRVU3vh`MG3~)Pltx_euO7cDhMQbVhN-wTg^BAb+ ze0-y=SGIgyL_J#-x>^#Rgp!hs_ypmIqt(72N#?=gi)6?WSfg@D87naF)0*+EGhDp4 zOMg84tg2PA7#;^8jyd)t>0Z6?#zJ+iV%5i&n-B_~prep_XQpew%yU`W#VysdSfr|_ z&xaCQKeUnLq3hL1Bi6CQ!}pR*_FSK{i#yp;(*1npBHHVqarYmBaUdIiJOfE#eKZgD z3+3|m{J3sP_fQXTdZT~9eKEqtb$eqd2n(YrWmG0bbWTZyk1e+uXqyfPC{1;+-9f6u z6GY1-n@^P8Ln-IW&lwGml=dUB7_U-P?2KVP=FSbZ)7v@3a}2McCnV$9ha=x3wK-g( zAU`u(w$c9S{{RAOIvLH(CeV`7!WH6X;FQjAeZk=UPpwEKS!9i)={gbzp(;rIMR|2; zT{mOXg;$}q!H)I;(nT%@uHbX}gGu3En@uZ#Hmh{w(9>;Y^I1t8v|CB~9RC1XJRCOI z+^1YCALU*yDmJFqk?P@}?-!}Y5YMkW6Ty`2UO)o}`P2R_-;FQfMbsqilTnfzRsR5W z-+Z6=>XAukvPt3z8JO(c%%G?W4i0%3CnwjXaG$hhs36jOJE3PRe9OrfJpchg{Bmo{ zz(d+sgnaIMnECQjlk00AI{0EUE~RmDgNW29C)D-+Rn=;P&XyZt{A?HVAbx{2nc*l} z4J~GVOw7zaovT2)$*D~<9IdJ`&tO3R01|8TscPBzy*Sxe-qYq-xx0+3FBsj(-57KK0DSYVBdA=W%cj;C*chdL+(vA~x>+@g#jJ@0TD^A^WGjRs(_U zQhlOUMTno3O?y!D zWY*_^9Qn3)N&f(j6a6b14pDuEE99rS^hPK%CCSPxpu zw{d;qNoUA0X>oaD)69MjKMd9TiEDaQE>NPLcNgr$Iw@Gc7Aw0;!o-;gtPmvO|< zVzhjDqn{T1HMv-n$$O!ZcMt=XMF-7M^<0te1!TvbJ?pse#-Ns0s*;SwCRM@ir-R4& z;<>8E>g%D;8QG?Mqu`s=mS@mqkVO`v%Pp*p!mYp<2v1=szy$G-2YTx!wUP-MDM43^ zm0)^?9Yu4VKk$(7e~T}4aHQK3E-hGeHu92GDfL5?2etw9uE#~zV(~qgT}Ea8(uqO| z$->UPgr0{V#A=~_PGoY_l2he>FG8&LcKWTnwl_RMc%m6kbz*;YDD*M54o7U)hiZ1x z-B?K1NwWIJR)Xn!iKAj0@I6I+9F{Uf=HB59eN=5mslH0d49!Vp=;5rYW0=VxJc!$Hb z9woWfu9)gNn*6aqj4=YJ+5us}V~?2i0O5H#6nuZJS&rPm)v?7%tC_Yj;(HY7n;tauU|H&smta*0;;ddk)ZpitIz@Y zlgY`iN%&a_pU3(T9R#lAf4LKp`qz+I@&fwTxcnJi-w-sxoNbPC_=t$FPZ1RwZ7#=& zhLd$uea(LtN+j`awBwWZr&IMn2lT8zIi$w?e4_&Z4l+++U8q>^uQj)nEU7N1c6PAN zKzsrYatOy!T(+mBwVMgzV3qklu*xG2?DQD;^vl$&zsNn-y1zd`ED{Oi$n zMz`{;qjY827=L+5!T$h0wd5;s@vwCJ!=dy&tKBUu*HUD=gl>-HD}(AB1Nsw#Mk(6N ztOQh>OyDGk?Dulm6O#n38UFxy9iaR1&28%w`Bzce0fB84Y6tgs41wE_2+c`l3|g0p zbv;b4n`2=tlD-HYW2wSM3F9n5>&7x_v{zbWbG`1Nc(Y$j%_A}?WL76Q1TQ3X&j4eO zTFMn0mF=;!r5MAN^?!lAr`dgp1}4RR{{Vom^^N!ii6;4UoX368)s7rS>!LP=)bZ7{q;v z@ASYwL;O(G?(K9q^qn-3cdI{;rB2cltcN{7#sNNtu>2w6i+>E;MQNtT=W4f#B$jjk z0FJ0`p;Qjv%-4~LZlh3Jbv};;$xaTW*1Zp$KjBK;S=x!bOK`TT{{VK{GlypM#&;5H zir4-e{{Uv%z06u?lNkH0J8doL@~_SLn)||CGf(jRFQ~9vi}|;H{qWC@`*WS3dJcU_ zJlDvd8~j+hO@qsw(&3UNW4N;ra>v%ZinNqgr@w{8)Tu2tJ{R%-0Eut3Ib?#+qA<>O zouGbP{DXjJ7SP^X zbH^BYFmeD``jRTGs;`G^ZT0)e*X?t!{7ax^&Pd4nM1%XPe(1-}{9^&Dlhm%I=TGwt zmlHPorzb7ElG_P8v$UPed%v(5B=6{J2-*3P$1mEO&RxPN$ykGR#z`!H+GCR5=N$m9 zyG$Ebb}I_f+sd~=jApvHq7cNm?_N!Jq4bz)c53HAX>?F2J*w=wzm~bqD~q_)g|vNo zcF$Vou4TT|Tjp~VKBtP}r$tTOo|Q~Wr=ryCuY6&P9fuukgA_$oB+SpiSd%4*W=pJ6{r8#b>CWyKsXF=kVkl{cAeZZSh3y z!{Xsl-V)cd2yT*f41{3*HGVCG{Og?bt^)T>)VwEjJl)S|$K`ILA6o0|u2y)}*P$Ps zc$F!nu8*OmH8*Cg&d*4HvfV7PwlGH`zP|Wl;wOt`zU-(Wm)kY*b(FaIeJk9&1+6qU z5#hPW6~gBv>~v0yT0c>IC8)gcrg5AAd9PTopCAhPtKqfhpAum1;BjA0X*Q-+R>nVC z^yq4QmM%Q5#n)ook&5H|M|#m(zE5I*D)c$5Oi8$NUO(dp^6li$J3$q#Wn^+vvuel3 ze-f_lFC=(nZX0r+_!;N?E9X5%&Ji;*#;eIaKhI%bKzPl(%ZUy;8u1NHcC)wEycx-- zWPQ#WlI5|)+)A-$+PIxx#W2|}#mhfUtJKxM5naqr*)0BPBsdk97N4bfO%AWDNE+j= zTbv(79nD=R^KZG=QqWh}&bP7g&xlDdpwr-gy3(Dbk6pcM&~z_>a_bAbQ}KVb6u6$I#1%{r2H3aP}GRNq>tIuz~Ao#xT0k32r=YYjWF#=2#~ z{hs<#>%d*da6d}wmJUg3k2V>sT&|?gsIPV3h@TJd4Tp@hsqG5j7ua_3{Qm%2^xq5o zQ-b;=k|~A{y?p)Q@7hORk|Cw|wML_A-z!IOH;jHi%wX1q-kIUOe4TUQ{mu@|1BW>JA4el${EOjTlV55xJ5`&D5W}@|p&rY%F{w0ln<&@>4Vd@Vf`PYT~TGO5j z@u*wnB!Rk)y?8#n5nn@izRFv3Ykc|2Fl?Sr1RCIeD(Oowx4KpR-lGO{{@Q=_h_9x? zOIBINXno*!SQv`+;58 z#ZL#_{66t__O6X^(OTWNn*{L^s-?bQ%0c_C2w*yAa`vxo+H);eQ@~By%=1^&=A7-+ zV7I*^h7-a!ek{0g`PJJ!M@zRKE}63bb!Tc-guZQ~Pv8hWG*ILcws7@KY_d9*DyBu~LSI2fKvBDm! z*1e~|8p+bH;@`|if-#%{+)Wj^iJg$mbk=6>*?>dv(tWvd1Z1{#t?MPLIjj56TMx_jnKN$8g(`KDItWy>|)O zqt5&R$U{Y{#_saJhhdgxyohQSz+aG)kH@K;%Cw^9WxR|M~b<=cu44fQRbghH)40{^2ER3!Q>JD@1x20!Ilb2@6 zCnw)E>BV$BLc6igHCxTkY*dw1tE~yU2=AUvQIYY@OCfAwX_}Mh-(s--%!*XL3c~H2 z<~BI$zU1;Tj0&XnuyS2)XGtI#V^txS7cr5}8ljoV>VFEW6XIz90N$>+qb9CezqpZZ zZWUOla#eunK{@1oYBO?oM|Tr4$c(rua6=A50yzY5LG4s--#3!3-bo`q>&PFLYPw3N zJ9`{{oPL0d^CGLvVE^Nru=H$S0_{{Tw)jji-8Mf|NNTb9n@!Pyp|k;`t)$=kXy8>k%t z=eBxP;h}2s^gT+C_c2~N=817XW{qzTxQoV38Ml!r)3)Ytp zX?P+M2a5EES5fk`kMk^p2Z1mII2;K9#|$gW10T7)9GHM;dOL!##)`}y$I0iAma_W z{ee4V#sJq zX?{YbloCp$oCaVB82*4DuZgsB_ zCDrCx%gJ#r?oXJ+lldM$3apNe+o<+NnZ;!71=RH$NLJR-V?l(8Mty()Rz0P=-P@(Q z{rysOi_nBD10TyL@U0u!B^JwRZl+1^8Dd0US&NV`2UDEm@vo^o4f{RXHLaGX;>+n{ zo+Tx1tyxqf5reuy4oC#_01Wjt^!2O4lv|tJ@MutTmYoj^@ce(;ekGq(asG>9tQU+b zq5^-AQTWy^!@bqZ&mqZ?ncM2bn)=S`_IS3mwZDtO{vf!s7s2<%c^r2U;fN##3bG(L z#{}2R+TMeycym*^(Y0uVSC*}YPh zs?t7AYFm8GAdNor9AmY7Rw_x!w0?_&g`j#r!-$*vb{P-dnI}>1q8HEWSvKjE>;7^@ zb>0nxL9bdOa1tw=eSC-Jx$8LFXa~RepYgAro4%*4o#g&Sg^WiKE8d~0&drvsV{WLZkIwMict;;pMtX4Z%Q()&@mx7Mjm z&{f%Ll-&h<19v}YT9jq$RjS+ds+7|@IYn)*3O_1)RB=quNFklG8-3RPhu)Hr!n*8! zLH#|)y?Rt?^p?j3d_ObhhK+tEtskhY>sgFv?9&{P_gnkJ{A)(N1)<{eChgRLm&k3) z$~Wk0^jIGGsF_14Q{JM0nB?-D@P6s7lDW?>b=#vf=C_Xe*xO3mTZWChs|?`RUk%Lj zcrQd-#Pa8k=K41n>d43m`W)m}D49y`ra?D`w7>79w~Ri3#tnKj=VYS$o+c(K%IK|V zafu-s{K_i6DP>r=~jA#jBK%H>XO) zTGNN`ej=i3`ZI>*pNU=^J~8k})h$!Z)bs$-sQxE_f#xXgP5>Z!k9zp+9_rF>w`r5K z7XV}tf~>xT9D)zMeb1q4O<{JsxsFejl=Q*i*UcXm{1yKI2zQ9y;>~~JQ>qr4)Q*V6 z=1Bhl;3VV^LypxrX{vQOUd-pkQ*)=xo~Xjo{w!bEqS|Q{X*j(hHl<26&E5 zx+jQK!0rD4JSJoNxkh*cILYh+H&!?q?of36 zhCeFwO&U~#!hQzvJlSUO-1_`!-9wKyNW%^|2a)atdB&e*ec^8uU-(;C9$m$=G*SXM zBpe1Fp@9qzc?P>VFCS0%OX58|L=3jNvVz3&sdwbDBaYy(HF$;2lV8#v8%Z?xNb`k~ zNmqRA&nuGd%yLJ@qtIVXY8n&|e5oNmq)2~?Glm1Yj%f&K&WuX6Y*p!`Cy9+2E0{BV!!TrZ3N0COIl z1PHN0f>N{jv16xIds3#a4XOoV%OSr|j#f-(#WC8O4m( z%rYjuyn7yqT?DSfm(e@ZRGGYY)ih@UI({#?1A3)4Dl}+gG!@mf4Q&jl+L=Pb%Mt z=DlCQ+U@N66#5N{tLjlO`#U=TsFIReM(>EvBo4U)-n`pfY|UvQ>m{sh_+^0o1#PKc z4ft5IKHWpa3xIy>Lu99u>}5P3Z_2$Iu~UM+=b1`woku0IA=R~OMYkRs(43tv)SStj zJs4B%TRUU}_ly_0BNbBe;=@d_msP)*TUpzTyp8I5 zC>={N;3(w%GDga*UdJr((@O7Q*ZQTllW5nMt+p`AqZr)I=Kugm$vmH+Cb|c}W>4;% zSIE98@vX;+br`M{e$QuY>Mh{NZHicBpBxu%tVeH@a5?(Q>Brh+$3HQvl4&N+dQDF4 zbSwt+sZ{>8o*Ol3TvjaWg0be>^e0yF5xG3AvqNne>$T?~$bO)4_}8IncBmz~nm?3o z5he#n;uygCoS(|L`Il-LPu@C-W9~wc{VTWA^A)_98IUsoJvW;2VIO(6dlQx7qtP5k zjWsBuNpB}`E$z{mDc~Gu8TR8QzbO7Mc)k2ZsmXHEZiN9@6!%k{u^;UogZyjlzuFVU zxn}U5kC`qfRatO&ROkn>at=KZ6Vko`@f`4J48{o7;_*k#JfJcL9elMs40HsJeJjPp z&hlv=XO>}Rk(YtO5yID5&?E30qyDdV!Yx_K5MIlw6ck&nnSfxH7v~D zfDWd()3NpxpsaBErQPl1&2fJDDlni71YbZ001D8t(d@Ka7`##9$iv4Xmax;?<$IjoAf(lLA`CEm#ONv_m`9F+MJ$k?Z!NzfT1=F z0s!Cy00dFMAa@mkrrR@43ktb(?JU8M@Qi%`=~|jiw)s@!n$f#Oj-4jvk~*6^ZTkb` zgIkvtZ?|Y8fzVX?Rk6s=Zk5`>rmUbZPxJM!oU2yvQ|jo_a-IhlkHlI;+BDo;{94~n@h3s{pW>d?_fm)if)(FRfYBOAww0%w?ir$iN)% zM{|n%XW-4%pMgACKZiVbYAuWAHZ!PXA^!lqpOmW(hoSWq>i+-`{{Ut$1?nPS6nHlF zJwDaJXSI{(g-=pqec1!pgO0}>SJJ{UYjfbLP?D2PA13@k__5=!+6eyu!cFl*?2}(x znZmWTxPUjB!J8l!CkFrw-~qto=gh1;12p~+8nkLdhhn(&$;Lf8SF7E4b{$Vri^3il zZ$3EN6V9Bfsq2rgYWmvG;l`Jvd@sD7_9Gvfsc&SYV7n`R@zgQSCj&P@hJY)p072SB4nmA4=EJt%P?GGY zYs{2WJs7t4KSMqbT^5QVob<1{d^Kuii67d&2>37eBm67$Kf%ko++cPU>)@k#Bj$4_ z%X3>-vJu+n9Y$;BuNx~gGKF5pHT92)7Z3nP@QV4n#Fj!+q*s~ z@gAKdlS`4B@vUz}xhTa4Oy<7P)x0?yv*k0M_^R4J!~Gyx-}uADf9Tp4j-F(v_~m^3 zv9BFi;1AEWe7#6L&%MK9VyutO%~wdY@OG6iio8XLzEUELpP7mD_pcVv{57t8PuGR! zp}II^IEpXfRr+LeUsQZc@Gpt}BP9O-5;bK@PYw&iXJKZImLv_?5%t)E0iUMw2U1Aa z_+O@3Xt&V3pkZ;5k4o&rw3XJZ?Zl^3SF-4Q6rK&azSs48Pb8Mp{K5bkI7ZvWd54Jf zE9j{9t}PO@%ZufkqDnh)SLI=MpbwHwS=m@8iK11w)NX9|-@*_T0@hQ+WP;q4AQQL%a7UD1=nbK_q&dew}Im013Vj%dU8WKOcCCBMy~exvkaL z4LrE&0Y7zpae{husKv!WZdL}3)!MbsB=P?M!QDF6)uu!MsNMb3{cFH9eG^+vR_+ZF zLZZz>vpL$T3BUyQ{{ZV(=|7A-HLLj6_Dv^1vy$@SY?6_TA}{yZj|ii=VgRoJ@fU^k z{{Rd@{{RRth38F1`sw`LPWcovGmeo(yFa@@kXZ8PH~@0rBRNH@v+gNDy&|JPGMV=6f6J!{f_5BwvD+pWa$7h{HIU^yqB*1o2T z!M2ug?MT9|1_0-`_}7s&cXPGYRNpPnjQn%qa@sV6E?yD2e-6K;cz1~{ms9W*cLe_T zO_f1E?31+qM-}(4i*zM6(=N^#N}qh!#>=Jbn_Te2e4<2VPQs%(@0IUgIry7R zB0szH!o(k?Wq4b}IJUHcv}6r7WYhNvMhRqn0)9DKpY>fbmPIEA@KNHtIKgUqhoE&y9uCS z>%B9N#=L&s)n&%j>(;y93u|5=@T}f$jdbuYR*yM}hj7uHsUL-QQ<{1-a@CHPKGpaU z@}j}B)@x*9l?Nnv=VTPZs$0h18zh6j4% zjt)2@AC(>#zSF!}5xBCpTMbe%x?6SPDf^ir1n}dGr$b+H{21|6`kt5n00^Dro35=F z&arkp?u(Nc^#eH__7XdB)y))qmOg`&T$fGHq2@%>we`9n2sI2W;~Zt%1pffv!lZw` z)ya5H7t*zhZz$m!OPe)!7_U|uqs(!$vKM_)mAI){xT=m+w=!!>5zjCBOot?x zpPI^dxTmc@Hy~^W)X$QsWtN8z0rltacjCW_-5)u`@5?|k^()WDFd1Al8^w zYVvJ%I_hgqDDQOkvexwLT>@K`lFsRiX;-Xr)^{!rBVszkF97!M!vJeT!&lc4dC*RV z32h}4ylwZRcn_0v8TTl2?gmA9x)Yq`%d)s3uX=Bqg!{llg5Ffi0(|_MHu73f% z8r4=GVwF$)vYnKBfhZ&NHOfJB!shl_5APN`ec$gSh#U1|T{iQ#QBXeZ(fwLFF9-)|kr0Dm)8#KY`TAG^L&`U>eZ+ds5j+FHm! zg3UbH3Fry=vVNU^3ixbxuu<;MsKGv2xjm9RbK|zJ2ZcT!>D~;tV3!)3`LZhU`N(!Lx&3 zpk5mBev#rmG8_FKWs*4nC0T;HA3_hmLNX6yUl+t&(VA&#W9>3nDzI;=XQvymqpf_g z`$3y~twT(`hyf@`B4)=dgA4)n0OucC^zRV(_eJpZMBiPYl<*WbSf8NDHS$M~{A2$B z2_~dnG9gT=2K(73C6A_i4{G?_G^#mWY`16CeNjPPTfL4+n>EzFB{{{W41 z`Zk{?rEnu&6C-i-9-obR-My@EAW#P%rDKVjO{9C&m7`-{!mEvFze5$Z$shOWtDCit zZMbvRx~~i`{7kQE*17pdmkKEU==}wGlIU$MCjAkf=X0N}Q@F8xcKR&> z7BQv5v)sx!5!yq8Bj^32!uyd{-Q$TGXT&euwz}+hLZ>dPeuf^edNoZ$WDBwd+Z<7Y!a{=qN1y<6?@yO%s=*og zP-EQvY8!Fn0_*{H>(4>ySECuv`TqbWq3?0p(H|PBFBLc#rl`e8>=biZrE>{xF{$9< ztEbM!KzLq18kK1g)UdU2YMRxBZPXCev_JpT`$|s#09vIdL04q&^{P^I75Vx5QYyb% zsaD^uRHmJdi(QblHk{Pj=!W3k$r%<@^4pH!`X5@F(&5SbJ;%!`kNfF;YP!*Itje=R zfi!&&sPwO9g+%?vczCK!K6vlc+NV5XL4(wEKJ`Y@Ual(p1_R$ zRoP~pndC{SFCu$MUPLPY0DU+<;=K;pm2^EHcM5JV6~2dNf1P>6p@1_&aKo>?c7o_h z;hi>A=$Dr&-p9*~QTCfnG|J-dHhfc{p)~ zQUOO!;lav~dxOP#v@!Cvq_1Pe#9$)tIJ;c=(_Or85$Kvvjaj#9S}c+2nvMs}EKQ%X z&fUo%7})xOp0&|v(4A{Z@$QEYEq|m#dl$Tx?IM%^0H9UB5O`t@0{UC6J})Og@gz@W zJWG~aN!WRjsAK#hK(8Ko11r>XN8yF|)4Xq^M|gjAs4d2sIP_bP7!Q0nAXlWNc)M-7 zJm#8`zoR_2PA2BkIZ$M}f(NNR1$|F7nrW~>r^Uo}Q6x&Er^q=!@FSD>*UfNQ%c0%f z=@SjI>332<%l`meq#%BPV!peY*ZV=lu?_1v45!z2G4%I6tD6w+lQqMuHhA}pCJ#NF zXO>u*{{RPWKb3dC0H6LY1S^h~vyc4-yj#SYt-hzM++12V`*dLxM08|}fd2sSBe{pM z73?3g+bHq;894s{N1T2@8YdR0*_=?HHX`WcOO(5vLFp`?j$E4T?Yu*4e`wa)xgzCb zbc#>`$#p6aGZH#4m|_K<&M+U5W0&Nc^!`s5X}= zqUBAesqGBeRfzzOBmgXGHmZT>2Oreakx0ui3X77=djaj-*PGe+w_9JjVsbrWP)>c< z2D)2qUiVOzIOn%Va?7`AAOcP@LC84wteq(%tyhh#i`urgrRchA>pI23wX%r(rx}u0 z?HofqvG?E%lV2)$zsGu~jCBN(Kwz_lm|NPZ`6JFbKC(AfC-CC{X8c3(jGig+B=g5J zPh)BRk7{#;WQ&6!UW3dawg+M>k^4eG3W1qhhW`LydVNoSPM!GmXwc>Nnev#-YpC2K zv9)nJ#<4;Gk%Wp1b{zCm-yQ4j+p~+AKi)O@_Xg{$t4I|`?5* zzuqJAqP~qA;T7WSO0GZ2tBT|Nn#fl_o*kIJ&ZL!XwqlT_c}JGuju;Ejb|mJX+swymNK|r4tU7NPKXqG*T~*3vAn;% zHnwpz^0C^eidl*F1DgFa@uFL3{s5c8T6_&FBnr~(<&-8EupYg+;10F<^W!VMLMWz# zPCsLakQ>U%y93vI=W+UH9@X>JS1U>H)cfoWM>N}3T@M1k@HM@FH$F4ezf-*|*-zy}^)uz`$;5uE&Zz7A2G(}Y>+)qeoku&_BJsp9t+`* z&~+8sO>ZUBeWvH{IRRJDS2L-m!r1BeN8wHrZL6P5=vp?8#|+3bn(Oo%Tnw=5T=|Km zxB+_cUX7(%`Eg`%fzRVx*O$9v&BIc?Tb(A60`47qSEp%~idAxPTpo~zaIaX8-IeK0UFk@$g{hg>S^8&zVhYPv_`rys8tfm8)}Zja*zkG6_2OEGpeP$ zC5Z!pUW=l5Qu^Temmj-NO4Hg-qtxP@>CskNA(s9X@K&{_KAmUbw6;kG8J16&FFgVP zKT7#4$KMBhJK>F0bv*^;g5nnvp(J21Y3=ZJeYpPk| zW*Gkf>(y;K+hp0s-|JpPwRb*>nz~5(zu^LG^7-qE{Sxp*S+!R60>3-{6%ZaU#~my5 zW59zpiS!lh;Jze$?rRHOonMNR5i0sEcwVP!tj(T!*U&yMOl@CPU(^cm%h-d+z}Ksb zN6z5gk2Rl45;5t6?Ony!!)p&8cy`0Wlgifi5IMM=V*Ap*FuZrb&*wtf0(h?b!?Hb; zk+L2^&j%eV&7(>)c9zGfQoO0IXgf8r^T&w(40spAC2RX=$6&T6S z&EK_o<=wWPV-QKE*}A4c4FrG80BiI!T+?m!n=HsT00?aJ*ZEh?z9;y2736DF;1i0| z6M=E}sqA*;`Kqbz)^~l+moIHJbcOBb(bh;L7-*w%$ivX9WMaI|_rYHU9axPoSkYu+ zSeqHn%$}si>gW&QUrF9*H}*`zSjh|D6--!L$Z<3|$4vhK`m4@`YSi7y-6%I@SqqM^#1?~hFe>8U9dnmw@fW;@pWG8j`{2Do-#%|=Z>nB(pE=>Mow~VpFa4a*aVj& z0CUjv{JM(xm*ORn()IW?c=Dh(mnR)T>H62*-Y1P!nOEiKX~sdo9+<$$^y7||@?XTw zJ#VcgTyndIza0)M&QfY=qv>G=<748lh}tl>)$R;xKF@SF$Miq_eAk8uO2|=%ImLZp z;yW>|cw^2}o1HMSw;Yr`e~>lvech;n_0)`lb6-mbc--?`F6?(73jQQ&pAB{2w!#{H zI_C*>ZcoVQdi@COdW!o$#XbS>*TnrE4-@!mRe5g|v=XQb=QciQ&PW1v=v3fHK45d# z;8n8o2$why!Q(jnYt{Z2{6yD&9N)UC8|@zC1-r9yb~=yZQ`9>3RviyxUDR<3FP3_v z&c$Hc{p2?vd*QuPLAZ3hi0xL}xC{VCP;WiL$vM9CZVs{A<`pn4*YXuq!@U0LafZVn)FF)_lw}T_|l>&YD6q zlg(w!{mp3IT+MJ*Wpe8h?OgUzlaJP<(JXECO>W;!yH@h2S+^B!tO~|RAo_v<^sV`n z6Pwu@(xobsP>$^7Bz%+UQABXr_5CVcPTp$`M(0ks=1XTPTcBaVRvydM&aPU_0td!YdSfrV1LlL+cRf%EzEOuCh2ySiSY zMv+IjC4m0`(Ca$pc4$@elIn#0c8va_y;v=g=SgaHt$7WX!ygr1O}T~J+u0qM4iEz? zV|N^4zHb_YmYRDjOxmu8Bdl}V&NjR*`Py-lw2}_VP~$u>?0u`nQ!F0|Y^>NbE&c7> z;bUI;%^OIANgzci#I*Wum>Lh0P9-1Ejge55auNP+q*&a#5W22g?fr7 zELrQfvi|_5c!8JxdhH)amJ&aiuBZ}z)BgZXZ?^p~!~Xz@t|n&lH4RQ9_omeC;{O1E zhE{LVGhJ*hS#1gFE6;S^xGX^9{s&wY<7nL-^q(`a*V&IaK^vW+LpyiC&2!%vJX$;- z@bYDi!s>n^%t!(GmI042=eGnX?~;8pU51NlE*dnDgh%YFyEtDB+P&_qlE`wZ z-eY#k#nT?e@%dL}soeR~qy*&-U9-@t5rO!&2hyqNHpyvZ@xo@tey_@e&+ra+no)mrq_04!#s&Spv)zUtn1v%4KgK56T_uANQd7Yg4vl4$2 zYAZyV`f#zX=8=FN-v0nf$S%(QSQ-Ac?%ogZxAt^G^6-D9HVUuzN1;BxzLojTVTyzk zgch9-)3W*#X-;jo=51(tLg|*Oqn5^5y-#ymQ;>;+-nCdNuI8?C@?#^I)bZT+74Y(H zyR+)!9dFp)@cf1g9d7H=$)g`xT~JmP<8+F)tW-zg>-YW(tBZI&u@Grb<&~~)$-309 zVz9Ga_cu%rW78~7Pxuc&0Ii*V>e##*9-RJWou&p=Y;iQi{`O;zxg!JH z>sYF#j^Ea@p4_JJTJyh`ppl_0wP=v1VC2(X))l}Unr*-D2ya^FZpF2Aa{OZgsZTCg zLZ5k$6>3=oYJQbY(N}BVNHTM_G4I^}0EIIJqSUZ(iXvW%)b}U7I-}(BdefG(6|Ahw z3s#bO36O>s5ipNDeEuoUHC})s4|k&P(f`wfL7tvz}cV-x1tgD*os(I34)T zf0k>cf#Z}c@tlSg#n@=KI(#>pWLmx4dQIzxlFb|}O@=H1;O7MJPa?W28Cu={0JG%h z%L8L}Dcc`G#eIEg(w#NQx<5Uk3{5(cRqbZ$HG=p7qdZ zn_|6aSn%tL<23idk#YPr)!Q~Dwz^izmI_aKJH;IJ7c81DEnJO=%~M*ml#G(G(`dS!wlj%T@zAO0MPYce!L=_2+YA!DGC1oR#@->{v7xDeJSyrHFVm0Y4`S*8V0oj-0AnIVwN`S*@AmV(7TtqNl{= zwjMsZ)NIaewcA@=MkDLzN48JI73beI=z318Hlgs^&rVClvb@xsY0yt5cJFdkQHbPk zP*4%jk?Y5m>jUlH2=LCSkkV;V-e~T6ouG-K=hFp%{Avw)-9xRo| zz8i||lrIGDv$4k+T2IYf&egP?U&He)wzF>5`-u_B_mT0}Y4!FvKBB#s;0)@1BWd7s zxn>`l=lWKrm3?pHKL^^$tHQG-^g(V>hSu}q%CipPvNwhuGwE3W015P4p9*|hu+rpj zHUpP}QaE^s#(j#O7!Lmcg+!_;!Kb-}EH|^Pq_s@uZ{PkVS4B@*<>UU^8t8lzVQYJ? z8~sdf({y+m{^TA5EMMy5&#S%%(>2LzLBF)`v)bZy{H1E^{O{~vhnALm$hh%U$-0vV z=KB?y*$_U@CR^w$MB1j3>T=mitee?8nOC}<&aZ!St6w(ji@6$C=ZurkdjY`q6?06p zmr=cf#@r7!W>s9A43pIR0g`Jc9<=Iv6}1|3zdG7ArN zj4>XVtC|LvCb4|_jnaPOes=XNdVoEf=lb{xo9oW%-J{`gang;_*Y|j;XQ9li5JB;F==d|w02J3 zZOZ4rkrqT@k9S~wjw{xwHL^ZcQ`%lK2Oa*r&Q;U}$>|28&{X&n%zQ1dO zBW^uOHQ;{*^iywRsQ8v%4afQwyMMBb8ge~G@Td>5uWpUFuPVH+D<4CJhb=vKW|~Mz z#wyC3ip^H5X!*|-$-1%HnV_fiuN3hcNk5C>DmN{#W<~WVpbkE{{Oj2jy4RXXr~d$G zTpN|*Xxk{=aL3o!j=%kC^D$9&vOQc3tlMO;*hhOE%u=xpc@gs%edfvf^aCUDuZO-R zcs5-s>RV}(g+D6+^0M=SJ!|fbCNLwEo+J)KFLlRn@IC9tzAu^G* zR0B9Yaey~5>x==(739}~qba+Uz6jzt)7#s@r{{RufZ1m-~E6-D2 zA*n{vJ0kLP#a0!z?$55oK|yk^hIW%?Zf;qC$Uq6NOtQ5907PQGp#K0m=k%x{v=G}d z{p`n|(!CzS%W6#qKI-Q*VyjuDbCV52M(kJ9MYj(ccyd-L8lFnzsN<3|$4uiLdirAqyQTX~c31XBffcbl~pn z57hDq;9|OXEn$^+5zoJ0#P`VOjybOMlicy#=LclZEVJ+>y6wUdj(;BCm3KN{gRMXx zEq2z{aR3`{PBGu0ACK$n(z;uFeWh@@_Q)LmHMCTF9#w2bOWNixo1npNtF;%7ymd9! z#T0PHdB!o@um1pF6*{bE8+a{|RcDl{5{Ci1dS^X8fb;albSZM|c`Zs#?C15{paTuu zj(-wypRc8S>*FNzJl=8FuFLuRqP#c7J6m`M zIn8ralX|n#!$BsjeDA72Jm%faX4pZQhHIkK<0e+BHgW#_ee2Ah#C?Sr-pA1Y01cEZ z(U397uhAce$9=S8*=zI9;m`{-SnNf9gZw>UE#YrmSF@M=Nbs|WdzU>A#yqnB0J@{{ z738-OgDV4GqvGexia*&O%DmP^+|}yh-QACs!mC9T(%;^?y)q+_gIMq?k}^21k560x z5JB(05Pd5eIu5(KJKZ{Cv&xWXaK%)<(_@$YW-v3;p1D6v`qa99bGVKxY_3qRPTg`d z^vVAKIO~e_qbAZ!`PQ6eba_Ul;fraB{oYUc>FfSL>0E{1f^6LFScg8XWI=i7?THi+5C8T9o2eZA|7r8M2oQl2WJR!s1L;8+)`0r*t#_&VAm8_QFQ_HVGK zW&U2C{{ZLtRDWWR8NfZy82X-Z{(9FpvWnR3`sGfn;WY0Jz_@aNc0S|1burmT0+#v# zfO_>9#^Me~Z2p{Rs1YB#p2rx^xCf_C*Bin*F| zsUr(hm_!s4o;L+-5&`eGAm`Vvd)Jz4GLsvGJAqtn;{*=fvxAYr;0)m7p1V`LIB>4N zHdx~rBy=sv7{)=zuhP7`TDTmS;GFTvJAlE!9r67Ag?V+V-CX*dB?qR5miUTv*zd*x zDl?OkIU|lTKs|XrmGgIu{JEf)zux=@VP56pE4(3jLEQNqfIm_(`sd#mub;eGJ378e zJRYY%dc2hRqG77 zcsS!f7S_+l7trI$^VWK1_G{{U=f`R2B$ zwJ=NFxfh1DUl4c`Sc6{h<=fisC0H*i%HMfePE@N7s(7!oejj+Q&*BM^4K$Aq_>mWU zwyHt2y9fSSM1^(ZL=Gm^N*t%DTb+);N+flWMO*1N?iEzx^@rw1O(&9}k zQq!Yi;H$?OJ;_qQW9e9b4XzpWT`uY8d7|>Z(;G1@oDc{E=YTRX?eAWPaEm^pe%2%X z9^Kg^Cy+@PEIo11SGyTG#_as#5jLt>bS!up)SVK`Py5l?sodY*GLYncXCF%SBH7Ov zu4hNIip65KgmD~ubL)eg{yDAf*{@21v}}C-CRdw%!J46Jb2UQ5j+NSuG`kQ@&{kc+ z{cA#QwU;=_#dcHNZY!Qsn~p2fJQ-p3FAUGB zNyNIOi{isL{6Po$R4*bdA$vwxegV()#b=qBBtm+E2j-ckPVFkq5)Ao( z;~jEFKb?J4bV;8XC3ZLB#nV}ML&DIbA2QC;JHn%(Eh9}LpHs3${Hw;al96gwXrO-Y zS7wX-$BaMt8uU+#m+{Tx2s8-fEpH91k*c19V*Q=4J;K+N=&oApNq&URtbNMDtNkmd z4y_X8m66kUW?hizM}v(hf_Oo&ajh>(8Zq;0=%E_tT&!76@3_$*JS5*oNi_fvd zcDUJYJMaNAengMU7075(ENq&E$NIZ#R=I!nnt2*szwj@VS8d_hZ1inD>&4pp`F46_ z4J?cXS)IuwD9P1{y?;dPouf5xvHLEz5{K8bAmZ#7tPCOBlZ1PpcH z%6?y}+7*AtP?{}*@@fEq`(%EQ@4Pxb1-|XAW zVnt%aak3O2Kk0>0>T1@Iw=wy*p#Zs65JaQ2^8i?TY+a+L02=2N{@-|R9SJ}dLWi87 zID#*$wp{vwUXh~2w#BYzaphPmWt;e=er1!~^MUx+r&XxN?{kinIo;mG`opf7rCVqa zG0Tj~Pf~-aJw{!)_W;%pnYW)>qjP`uiRaYrcrp>RdLYi#{4@EJUdQnFz*EoVc#p&} zY|qVa19S9t9DV@)HSjsUHBg5ldb9NWn*r^m&en+A@E3!=&Z(_xY5UWLi5POej7MYX z-o06jajP{6_N$ASbloyDaeZ)bsJv|hsU+|K9Flqp=+j5h?3rHuS690nlEjN;Z$&^= zq#o_T>m(ETaNN8C$Z$n)FF)wpje-IU|6HBZSz0Z`}E`q!Xc>Q<5|ifuN< z;{NEjRs4v<1NhescWjKtT{|fmB>7BoS3NM@#(4D|@;R(0PTfw}DJ6L;BK73IWYILp zT=6lU;QbwhXn!Q8*({nCgC?%$7y7!iHo4)Wx9Kdt#lGU7Oq}+uxqLXK88^`X)%z|=qa|8?wN_3}YxDE>81*ZjwOQ(S>s2T>8r2Kbhl7fatuh$x z-{<^_H-De8}%5X<|_325iPX`dARWzUcIj?0R+(NFum39^?Plt6C&-%ITWd8ui zoqzUf;WE~feW4CgW0Tl!@BTIDS}_u7I=Ta#+oXg30V)&u0&CDp&gk$Y+@RCl5_GRYBkmN2#uk)-VyoEj~3LDb#YX&y7s?mR2v6!R^v zl!b5NjmO<(J&K+|{+X|co5C8ef&5Xcd@|Sn0OQ|YLbmde`?(!SHqx(blayiDoF7{I z4k=k1a_~h<<1Ys3pA@_|{f~Pm+4Va=p33MCnkg~)ka6=4)2| z!|+dY;cpdaQjN1g6dI&alZNwb+sc_ozQS|#t=|C3m&yH}gd4p&R=%?gak-u|8{^Q7 z>-uPeQU61@Eko}rV)_Xlg58Mqp`BM?G|m%IvzqtCnwF1hp{AcxxVMc*_obYH`k%_QJa2mi--|A7?1*a}9ys*t zY<=C9gK0nTCdofq(X^T?Pl~=O)!6>$MW0dBIqAI=n8)EGf%sRQ+nE|5(;UeE05cy} zJd^mE_2}8O-$nVKJ%~;%+p9JrIc$2@u4vY;Kf^CB(Y8yf>XNHDJS=bl8948Zx946s zvI}^cSLkt%&mY#kQ{jc|n!m$67S=zSWuE!ik^+x5PcV{CK%nH4zyq9CxUYi#V!>I| zaea=K4Ul}F-3PByDAG?jN zWn3`~2JMlNl1^V46=TI;73Ob0MfiMHI2Uws>g96Mk$^?2HZYmaBt3el#xvpb=o)sV zbl2M1msGlwC8fKS=5{~uB7aKf!_cWOdt&i5smI(}om`(3X0W$9b*{f-p;`~SZDJs{ zL5?~`3z9uqi9WTDcVeNrtW!_z(Xp{Pn1&DkfEfb#N5BY+511&?!z)3eaDYhGcp zf-t>K&;pNB#d_z$_k#0Ex$zVr8+oLX+SR%SNQe?hzQp{X`yX2Loi!BO-16aSj?Ywj zb(Ni#m0@Y4>5H&99A#5-*ZHa#>?srb8w)ABslB1{v(RtN6E!y&l!lwzNaJTYmTOh=UpeQ ziV{Gp1X3Z|(V=3)oQ_Ti?hiHR8s3s-&~9F32J={zRlnSJ2Vgyh266Nqg?g>({{W(q zj;KGvx&2bsH%&4EI5Vj~K&023QVFXw+o2~NR_DVWFwtL7@x{%#0gO(u435YLPhd@W z{{X~&Ek*k6Uy>{jz*pBgmXIg$y!Qoj=1DvLSRbW$=Z~~wHO%b87|(9Qt$b~0H+y$K zUdwS-lwXnXSB_P_&>=zcfyH?_vR%?$NWUy%z3ar9RF}8%x#Q-*_5!$#OG!wiTSM}$ z2_qGfnxw4H(x^gJ?`=;Kdx;LI9H9Kl*cJ3PmKIC+l#HdsN`8d(uL|)7l|GYwwo!~6 zsq8`MYtZ~B;uvlvwMUZ^qXizk^{xu9Xy8YnGZ3CZReStl3lke+} zp2y+)_VZLJ+5YIx-={o|qpwrcclqB-On4jAdGbMIPO9G>(qqLn#5tPvFVo6 za-?lNcs|@?(}DQb6ByxzeKB7P{5XgA(edftzTohI z@}WfQp8YG=%iWpeX3)G3Me$69qzCYbD(~eKEI0HOY``f|`{Q2aA z!3Q|UB;XOxL*K7XI9)>X%MF9j06LuGI0WOKbL;8Y*O^wTYRLLbCKl#qrF6JL2R=DRIg?NAa?VJ~Q0biK% zMJ|D*G+Mp94mjQP&3h7+^gO9Ul{C*<(lp4%ziV_C33IfA^{-Lz--m==Ac8VFToa#O zb6NUskjZ6hGA@43(dP~XTJ-jpuU@pziaCcKWW%E0Jm z&+H(1Vs+R(Be)w%fu4hL$KhVt1%!5bdM`t?Za?iX%Krc?R~K(<=UrMb$nw|BKS-h{ zKb|YoCEB_`2aLw2{Qf4r*ehKhnbwr`YIBjqHv00WXq-~sASrF5o}=4SDy zc9K_YpG(pv*EKkF$cbMx?vcN{5avVmBZ2NkdiJL@WTlmu+iwDdiC40Y0Q?0*p=jyh zttk1YI*r%{Vn2aKNQ`|s$@R@ccRW_m$#XMpRZ>ax74g}IE80($Y>(4&j2fjCHnlvP z$Ef$$+J2F042IlEI{-Q;7|-Z`D&+JS!Zc&t*K#IneK%F{h0xn2gmB#OGJ3t{tYMXZ+6cHxR-3qqF5+F6QjWaA`W)9lWqVB+{yIOxsCa_w&iH|?+%HR0_Ei4> zfGCWADw5JqC(4+Q^%2bZ^uikTC_>O2wy~k3T;>}YdYJdP`jRkzCH*Vc{4%91^u^tV zwSs-DPCtEjwkXg11w%PLg1k#eR{IsIWbP?Ugf4ox=p*hxb0$9EIN6!t}=b2 zggN|u>!}>FdRXn^PqmwEF4{6){#15F<1t0VN__!1{03{!{yq5iJ3|kEw0Q)PX)GG( zsrhHWage-q5d)v89WX1gx$!i92JpS-k0w)NQqzFbCJ?(;rjfJSroa1S`gPime# zq^4lI#j{~oIrA<^zykxMVDZ-k`ik_@(&s9D4gDJ0MR#UU^IPHAE;hB)yhfwcMgRlY zA6n7ZFFwx_XjaZ&U{fn~+{cg)zJ6owN2N~Er-$^UmCC%<`Pw+c-7py>_gIGj`sTW? zhaL+$lgHv6aSxVBk|@|@u{~Y>r;rcS@Okj_T*96bo2yanvhL5S%5uuMx~iQu>imwE z;n&0Tx$=BLu0~92hqt#Qf>)%E{L~+*^sjuCrDl!`NX*w$vd0ul_nnXO0CG=3RU%;& zUowCI=N*9U_*YS(l(Dh?->RLjo2Yl8nvIRrM zbv_E780;_go0!8|X;LJt4+49zF>Mg_2uXAAk4oo$^GNN-Pm+sEc1hx^`;9u(XcM^p z)70eqZm8h#<~Yo74&+7%IL-P!YQCU%kB^=4y}p1uD7 zN|NlWq;h9-V{135AN_1sC0BQI&%)DG;cmT5T}TzVBluVbABYv6cv5RyR2!NZ4^tS= z;Bi@yM%NM~OZ-jG(zvI&>ql#wcE}=(F&wp9w}v?#^-I+aX=FylC;e>QK*ylqx3v&j z%c$QCKGn9UQu4@n5k#F>pKjjfscN^-Ts(HxYvtM6f{+YyMt)`|xo)PkzbtO|=yFZD zZSyMJT+Meg+*}>fNOv*yKHh`ScBuD%pYkdK-0?wt_O3X)>dNH0E$;sSKjc)4RZ^!7 z%~>-=wW|wNlciZ&4paZu`x;I%YN6>@B&u?K-^RZ_ZpZG0Q`V|ATRm!{Q#8G`BWi6q zskKN_Rx8x$^L{l2O&`ooI@e?#rW0BkumSh+Kn0Ln>odq*) z)3gwH2aj=@s!30na7Ae|>BcK#Yv%d;TkQe%?BBTH##fwU83&yA#d;8TJbA%I=(J?; zqE8vOkl{{01|1LJe@f~64|47OrKL=}WP3ZHJ<6v1eqy;8jbbS3)t35+S zoCqzh9k+RMlwtnE3>upH53=3K4lo08^gTaH!_Z`D?Jh0<0NDf&QaS#W*IbXcY4BeT zWL4Pyxg8JUD~&!%jdUVwnjVHycB_%~s%ynsTIoF0Urv=}YMRxBt4`#W(ea)uQqtw% zb$HGQc@k09Je1 z8xTeT>Pvvf&;UADH#1&eOLMF0E@ZsEm8YGLR(B+^{LTlpdK{{9QF|?4spmzwLCJN~ zCa5>Md z2qzUNYMJNqG}@kx68NjdH#*FtM$z-+Na%r-Wv6C11O42Q$LC*fSm~Dj9@2F04cdX_ z>2}eT%{QCjipP=Tl5wTux@o&a0 z;jas}pJMxO^+h1#?=SlJw?>SzGC09gf+;Sd$Pekk`WjWbj^!i0 zhvtgzD5gg2R#?M-T32j>zO~0Sbk3?TTb1WeG6Rq9e=4UWB1f=txx;_#rnVs)kfT*} zi0vtlng-mz?w|hvU3s%tJxWiZ;5wCpj~K|HebI0~P;1J*AnA&lW!1}dljT#6=Zg9d zUa&BDtV-Mqhkd_Sh_~}o`PZ0yO|es=>?4P84Sd~NR=e{)?*~<>#jeM~*B%eLg=5sG zPu$#YWj{he{Ec|7xu;0FjJ{&$k_X{msy-R;7N6pO4S!)>s;8f)K_qez3655GAdL3t z52&w$JZIrM-5XxL(lrDLJ+zFB2O}W$9-xjvuaL~?&YM%{^gnOmOwyfdj*PTu@a=EI z_P!+2MZPxPTQ1cns}95Pubp)bKU47i`ngh%1BM?^b6;IgV9>}ma7S_0xou-jx4wzv zzlmiBjoA6WI`T01*96nmAFX0AF{>8V=T&g9>)sNz)gl{+P~#unAR6;{$%;&LuS)oN z0)JxNXgSD(a<1;`PFM2gxJ^pe?ANj&7y#F$878i_KQwW4YPe6MHZ<#!G40;HH%7hM zLku1Vy?E8EhBm-BuKxf?yd!Tul$zA)TAu#^qhGKX4c{aE+Rbe zI&wcs>g{h?fE#iMO-13}k%D172+{FCA4n{hDV?Ma)_}7+rg+?B|O69jHKX*UV>Bmn` z@UJuRFxwmV<24f4=%u4Rcku+`8Hhc}s+xQL`B&1iwcGyyv}*4dJVtr?)nwJ7ww-zC zLHgpnshS3k*A3`hap9_DhKz*y>KZgDxfz>>x&M}(%L%~|DwDVg< zJic6P${6PaDLmJwme!18gQ**&*QwW7N~N%S*J-C9>U;BEQ>R`Q z%Z^7C>pB@Sz^&8~!J>q&j!bPnL$8AY20aB%%z6L^(x5@Lap_3XZLdK2)~@s%(kMH7 z0DAPQGfmeAB;&WI;Ylp5ljsh8Pu8;Mo8{qu&-iAsl&q|G(xt7!d#nz;0iNSI_pB?K z`PvWXlgF+*)YlUx31PP#a&uhW)yQ6%9QWgcUUgZs-JwS1E6bDf5XDDsaxgu(zyq&b z`d167UKK*+x^(P6r*11=`r~%*n`v%?)b<}t*AJ>)62z-@&VIko2hzNXvuD_0DJ1nd z?Nab$h3G#&^NRA#Vs`n0ws(G*{*~Bjw_A&3*PH6M18X+ik=LHJ!nNG?)snJ2{{UN; zhxg5R?~m@M)4V$`*^lp~ATB!O`h5+0-k@4}im|K}(V^D0n4q3L@jx<1V8{9Nt6C;= zt4^v<)cJ40e+#@v;+yrlyN&i|e6q+6#T|S904nz_TS2wa?8c9$uGpg-w{m-v^{;xm z5!zaQ9@ZqW`o+_+(%z}Dx0{4V;xh~l&f`@4on*!COG1M#n?{xSG++Q-4#d@v>! z+WH{Bis0AMV5vHkoZHy=Z08!NRaBGJ?r=IDnv&?#Fyw9N^%<{Ju(NON=w(y8%eQ96 zJD9*7{Y`V86toA!SB<;w;D6(_>DpC^xYQ-`o8~dW5IuT;Tk-Rg7!>wg0W{1ZweaUb6T8&Qsad5@UG@KJ;HuhrtN zl0OHj8%?9d^x2;7;(bD9%iYS-x74vG^)=B=D@A2+>%sE21Me#Z{K!I`XdyS)|fQb2uX0eC|l#AZ%mXb~X=f)u-`W#Z!29 zLT?CLGOn$!Do?1g@bKD>VYMEG!QR8RLi*Mf8%f1=In~^fT@C}{AB+D0;beHdp1>P@ z3r*{#z&qEnj+Y}@3WUhGK{pKgI?oDF|sH-EQa&AMUc`&I5`sZM%bN5*1 z=K3hfKEk>!3d$ys&W;78h-Hb}l`cQlP4BlS80zPa^_QnwPpRESYii9KPNW9|nC;2S z$a&$U#uRXH2Rw7=IzEU000}+v_;XHE4v%62-O7jWW2L-jrb+pj@&V`Tjw=;U4NcUj z?2+kUFf}oiRVr%jmV6)KkN8bB5v$%KE{kNvAc?xnMhPd>XO{ImXMM-LJUO^ z8&nRbx8>>U&1P6xK(I$=WS&K|7zz;Kc7Jt!t5sx=$uAUvB2Z55na8JmdYo7Dj%}LN z#@2FrE{n21sq(z0o&t{~RwA3d z3WbU=sTzTRsG|S@^c7ymI!=OR;cs&yvIV^q6P>5ibJoPovgQdv?`<_lA z`%2DBWuhG{m~{bqS2=Me)1UL!wBB5^H=?oqE1sG{NX=84i|>K!TSeKKHFDI9xmf$M=j%$G0g9UGt=VCNU|Az(-1#|V zU$X=VCyKxK$t?cMf`vobm5oj2*Q+n(1n2%VBYA<%^Z_%+aKv zaCb*2+^2(#FzsE0J|H*VCWl&kc&!1R2J+xtv8tg7z~`tO`kLWw*@|srmH-9%dVMQK zC2gdy1Y-x#`q!^dYo9fVS9+bZTaj~n9zIxZWrj)9|>>CV>nHB#nTjl;FU-7av&y5w<>!xh<0*&jb& z;?V0nIX{)D#J_kq%a2^~iu4U7gjW;kl6~1p!9U&~bpHU8UO#CwM(H9PGLS*9RJ)LQ zkln=D5&*%vb6mC6+GJCAO%0wFf@g`ksl_VR?feOSX%?doTm+N-@mQ#t2eoTTO|5r4 z`jE5Go~S(=YzW&m5ph45Mo)=t2Jg>v8lo&I5y*wyjyXCal5_Q|3R69s~aXgil=iRf^`u z^D;uipO-v>dXkv~xgdkZEy8~C)!X=G z0D+%o`=ojk?OzbZr`>6q_124Z8HP+eZ5wq*Oyy6w!TO9I_3Pm4IWAYaK7SiS*~^|Q zMs&KA{{UqjgO&ZKu*|sk3l;MZ) z#(2o|Ezo{7*~_Wjc!yKJ@eTPtex*B3!?LL-3O$r?2eo|d;vG%(ZC>W>oA0p-Kf0rZ zAAql4FQVJKUTosTHL}}d9&3s27(K*|D=LKrn35E90I?(hI0K-n+0P!8a>Cv_%}UO~ zSxvlmQ^ylX6{IMx!AT04b|X0oqbH!`*7w8>4?^%~jW2u~r0UXZ52qw%d1bPi#nwqi ze6t+GIZ#2!Bw&vG522jmq@mTGRFi7wqWlE4^E_F5dOzjX#qi#ZD*^n0ucWST*2+6# z$NhZjzk$#H09w2c;3|b4BfCGukVFr&Z$HkxYsGK3PP8BN+y4M%HSxIVKWfwHdlX}8 zX`RqGt8lj?@vdJ*)KgKjNrPp80lm+!-99_ zx#Y^Tl}jy=_YcEONa~*rygPbZGD8E|x&Hua)p%DWO>%}?q6uxTnfrcKVujx@k&oyJI zuRePn@OF1NpBO+)*1CiXlMoW0b%}=W{B)Z0pC8#J&VwVwG9d{gf4c4zSGHb2lHA(F z?fbbr)hp~&gI;%aV$%3qR-(0-Kb8%6)nRteq{CKf&#_D4+M$O|G4dZu zgc5r+Qpki?hJ0lBXFrNHtz!QGMvr!*WLi@ijJ(lcF~I6d=Yh^g>+2s0Zj62MB!acZ;0j;2U~8-4c$Bk`_kv}0P2vzpPKwig*!1B~|Y zdZY4}P|}M6Ixy!TS0jCMQbGZW6W*ZZleReHs0I!`c2D zG@`j0Qd_3=O!6-U53zWc?2?`?hSBcBr{jWZFC1wvZGQ3r!8y%zcY0gJsoP#zE?OxS zvN-5}9xJT)kE0PQv5dw@!Bh8?j>pjT71M#Oc;C$Mv&ssdE17ji&UnMEblP;=Hss@_ zVqC+q%Ji!i&#-}B+gH@^VNo@7dbXK(KwfcPiKbtVmz69fAC-67ZRyI8 zahh;;CT{5WEi&_Rh0aa~;xn4Ew=g|9C2Wdab4@%yG<*)^Aj~=Fu=H&9OGuU%pN8_DMZ7k(&-!?e>E70z) zHo{r>{+dzy)WL@&kR52MO05ji?e+v2P zv6SV?kJB&`QHpDG-#iE73!OQY)&A)n_^++JE%7odhaVCqyww-O{whe< z?Ri*kg6-QW`=Uh{TruM#1QXx4zv-In&=82(3V7zYsw$XwbkAMF71K>0qgMX_6FlfP zd8dw@>mE-X3FpGSe3ciAZS-vx^Iz58PqEpkEgW3SGq(}N9(c((gw}kYp<`ABoL=fBX-=BW;4vG~S*<4UKqwznkvyj3Y%pP;ML{Hs|qzsya0)Av?~ z%2IcCDo-$6pIXP7Q?#~t6+H3+4PxC~AWV8!1m)cK=*MEU&A}rhsIF@I}? zhy;&Jim~L$4w-v-v75?>vDz|1j;H7cQ`(}@waBckRz4UN9edKPQ9�X_wP=oSNyO z*-2oVcCvw*2`0Q z-(PO$(j_PPkzMYiVnzP|hBV+YwV`4?kxL)uYtBA1D_(2*R+-5bu$dSS@65n2=qv54 zsZ(^~v_BN~^R0+gX71hC&k5QA;bsJ2PdHG2*%;5}E7-g_rwAbXT*D7J^GW{do)CTt z2jjZAKMv_8T`x+pEB^o=21!_dvz-3`FXvvR3`Rq+e5k5~PK+Y>d#bysoiE z3p*Stj->hu>}_=-CQBg%0#D#FN$ddbNv}lEd>XcbJy%^o^6=4HH$**}UZXw2_WJbb zyffirr7+a5zT))aRyg#~nGYg73_^{{UO^q3hh&iHXE=rx>2r78iFpYul%0 zJDVlG@gCiUb5}C7Q%N?MN-lp0;tI~PCG_fMdi^CIT%t0%8Tefsp@M-?D5*Eo>B{*Sf5(uFRm{2 zkoNX@f(+s1Ba%CT?tjmrmpdN)IJqr0>dt>$y1Cb`PJyE~0p{X=;f)7hsXZ~@rEvcM z6W-fJ@P)pCrlBH6RYgC2nMf?h)UhMeueEyFhQmX!F~Sxk}~# zZv0hz*-*Ykf*wOVe7HD*W7$kGwl zB!B_-1Lpjz#dRCc?QLS~Q9-sAaV@xbyeE=2vwiX=Cc^`mRT(WGlWeAKS`t$hI zx^Vk`r7W@Jstt&Gk)HnmP&xXV#J#)w6|u)MONCYMlf`-uf%JQuySrUJ$f&!x48~aw z)P)dcS>!zepdC*f3i>HV%IBFmSvGpcmv>>|T^8fST98+?()JH2x?Nron61aCPrm0I zb6-BeHSdUZYtIsEGBw4`)U52;=2;w`gRwmnb{zH@=)7^SLE@c8+eFaWqww~Mr6Mjc zWF+QWnGZj_l=F_m1F1Dm63P-N50a{z)tjVIHwHug({xeq`FU36lWcI0EOp(I_1zK1 zz{;`|9J7y=VvKj&>F-*TF4N;Z{vX=nf!5*$1h{5NEbe0N1_fnl-kS zrN^Y{Pi4Lcm};YXs6yH)OHSYgZFoMBji)N zyB_luiI1rq=lj{Ndr+R?irU!5(_P%M#RO~jncRS&b?$2Q<W%W zOeBvD7;*{{SAsrt;cZ9(#s6or^I%mSRai zi6qsefXw*Yf&44kMPnyp=V>lgce~a4loH+Cmv-xn3~&dfCF6^GIJcjhb2<0t1N8>A zu6&zvsHZs{M|SicwWcDm@WqUNCGiY?Wx!SY6{B@703t>nfSiHb+~Tm7tH|5h*`>Sa zyO|cL4}z=)xu__UUAa)!&@jk>Pe~+P_3j65y?S|!)6H`XJb|; zsVWtz7M|iQB}}zlYQob_=Pc1-YQoiZt13TQXB?fG|Iqs?O3sqBWErXxbQSsQKXZvm zs=HN&s90c7jo(7OM^clTim0Hbs}(sE>T6c1>L#vSy#D}Pt^MUwpL|qnQrwJ)Sac{q znWcj2SR%NJFbdo#M%*%R7#$EVGLK2imAR;(pWt~T%kdybXP zMe|4k_8B>?XqbW-PCb5=>r!{n`O524t<{(ov$$WFO=}T2>|)Gk{{TT1r@QU8vEP5o zMO9gN`^OwN;y6Cw))b&VlLgFUXpVU!!5H~v0f5icH|JV70;PuG* zSEKLSj`g``a}vSkU8t7dX@=ogWHe8nqtlwk?lMzMsU939p@|1QU~*_rDh0G&(yfqA+(=V8{xQ$>e?&6J1PhE*+(n{`0$+cE_tREOG8@ zNp(9yas8QWKM6nhx|wyGgyz=X+7I_(1paN4UW1cv_Bk9H>U&?nh67I5yH z+v&z}pKADwe63ZsdzAkGgpPkm)@IVRB#{mRHr8D5Rk8klxUWy~Hom$Kg!L_U2gcYx zaNq69LZKh-lb@)spRL0Nls z^sZL#3!}_ZYVk*m=#wDVV3q#>e6g!A1mln}IrYiw)}_|2m};dX-L@FxRU3&rLh+ms zN%z3|0gUtdBdoWGQL-e;gZ055o+?dFW;(2pI)))r0G#JM1A@foC#EZ!6Zh0o(YU;PQD5sCy z#kSfqGoA^JvHo%I@XZ{V*xAQlL7!4G2jg7T-@MPIq@O9h8}_TJ+lFd~+2(~Jl4K|( zUF)6;t7HR@LykRa#7A%ATvK*OV$p@l=JL?<_n-d&K{c0kY8O?wjIZwX2nzsvvJI{I zf~WJXX?UL1k7;rFsTCHl5%OccjAiVYNI>diJV-wypTfB39ogy9cCu&A{u*ESM!a|| z=FZn}G3bXoPvqG(>>e-8uB)PI%fnkp%3IqZ$MQd&dGEx{E$we~?RwCBqxVuU9ZDRj z{{Vq0#(k^MwJBFy@O`eSAI!yKl%C*&vBCGwYtM|V+CA#6N-9gyo{OcRj?}<8SecZ4 z0m%Ibs$M4WZ-RVsf-f6r7P`YIz?MZRaH={5od|q;5`QW@KXdkraO!jBM-+g58yopo zMx=KgE4jiIA!#Jj?s-(}PK^2Kwwmgz^c{ z$gfiIE}GEIB9*}e*P2{KwTjov(w))z`fY4mvY!qzde?EM+>wkPE6t&kVXltG>45+q zJ6A%Df>j-lXwq-EP+O&UmN$Ed=Dc4_x;z}$d!}9x7nW4BU9-E&fDcOO;kw8K z8uM!#zz8+c!+N;LIIZG%^cDyJT&uUhag z7FxZ=^-p?j=uIhEpC{`OOZI|tRg~pebp&)E)K~r?)b)E+vedCOiHu9pm=Es`g!}MM zeAlDuS_`y{ameG!r5?$>E>sAgit82rGVxgX?KFNeGXdvUea24VECYVhB|y-lTA<%Ft(-F?2b=3*#H zq;x);512tp@@D@4g}f_2i0ppN3|?|02OEYyU100BY%zN?&)$EHsh9johCNaG$_WS*xy)o5l|;|QyO zI#DF?j`jKu7Y`ggH3)2v#&Ounn7Y2!Te7Xg0lPJWaUjPXYUSMHCz`^!lmoh^w3AjZ z4vJS2k(J|$=WgUb-W8*BFy^`Ixw_`Onab|R&{0-qW#q(VxZ=4R*}={+TNjh#Cb=8g zhd)Z;n?2exT})fajt@%V^%;*N>s$BJ;8z)_O_d|-T#rN8jZGDfdhS*v;;@+-Sq3_q z(w(;)4)rCKzneJYHJ;{Gs_17(4_d^O;o1o##vPXy>z`a?36Y0*pEFg-z< zLS(`81PY79JO2Q(u9XzCPqrb?@k+r*=uLGO91ts**4;x|M(2fgl>Y$RAV~d4uU1Vc zSt}#LjHgn3(`~-*bB9Qc{{W6ek*~>VZp05jP6zU8@I7wfd`IJZo47}r8IhSzf90GY z#~J)iNUvnS)*DLDwS8tb+ce58VD)Jnluyg%HRm1!(w13YQji}lq)yIQ&%oY zFhmYPIXwkt%)~28A=sdGHEsAo<&fl@4W}ShbnOI4WxR2P9Xb>PqFwBJFZKTb>(;KTJeQOCu1ZEYRq4mSy7fo-(iDl>6(!C3NHxpv3%`gHcGPVZCKi%UnZk~yQI-0H5{kBFUC*)l{K z!r*lCNZ^6}z<=H+rFehDKM*dZCC$o!bp0tBMk9dO!hkzvi3&cs?Ov^`-|F5lxNRds zjHR-WB$1BPQO_*izTHo6Z=F6n>RNAyZESo4qp_A{{{TzAkPn@kq(F|@B(NTs>t9=x zK}xcJapY!Ge#@2h=zO`W-P}80>hrKO$i^u4j(pic1dsPuBzkf9@yq4f!VPp9<<{Av zvf;kW7`a}JGvKlR0D$m=>0W)Q&S#VC%G*;PGj;>szo0NMQCB||#m84-YZiS%{{Zb$ zgCtRqv7++K>~I2(Co#g2-YsscAWw1Z5xA&sTAW9F#iBlr=b1e?N#k9KFtugxl=XG&KYB1Sh**M zVbrNVbajyXayu$bKXo2ID^Hp1PXq!up3z>u$5Wd8tQ9-gMP)-sFap%PCf zWn(W2#d=FG`wP-E@6>h4K)y_-(FfXZ?m%f7xdS~i2OB{9s4yR(`9AjD=Agb3YkLbA zPNCwBMDDk@f0(SN8Jcs*1p&wy#AE%e0q54O3NUkO@+V<|)Ys5n9`MGS;Y~m6(3iQmx^FT`8x1|o#0}Cp zBx65Z0mlNkj{$g6*TXiF+}%obJ%3VVd#Tub(nv;e-wHBzk4%%vCcQe|R)HiJw(I77 z)}5a!z?>C80dl$QFiGoy#eNB$XEiZ(93t%%x1Xu~Ign&D^7?9XNzJWaVqHFIqrPb1 ziaVJGNn~TS6oJPIax;z02qg64wm)$d!`{0^E!0W}17vXz$2iF3o=?*p;>^=5*}WlT zIN5Cz1PZ>gka*9gPxTrW7FJicP_5|mVpb;zK366Am5t$pQ>F#UkFtoX8^FF7^<7@j#*=&nfmm(OvmHW&&_N-Qy%1=KW=L_t8 zPq6-V8FsjHl6d8hpdC$S-`y;qx)=zf1dgFcIr^Tb-nOYey-o^nZP=vWYP-0%(`+MY zF7M??q63o5#{>LH>?_@`?QOJsOAiTYt-jAjMn`Z5@9tljWcWsa|MTmk{v@=Ri9CxA7`}(fXAUe!n|L^ zTHW`EHEHiJB;U2RDCnRLI323U)b$;ESiJELt1C+JqY=39x#$4wGBNe8aYhF}iLW-L zORFu9rNUsno9CXg{DPX<#sxeK)MWEq$E_qK6<(}VwPO-xr-O=O)2fMOgzZ+As;6qS zwRgG8J&Oxg)2OP8R+F_-S3KFfXn+6F`!ZJG)^vv;eQNxi)fqYut$ujbnfr`-lv<-| zk*YSNbSGlFR5deHHKAce6jp#(X8p{2zuHm!>NuH!9rm_BrygyXe|3X?d{Q9E;=5_P z*x;_Uxp2RkDPW;@o`biwTZO)5$DoFbjo?98f^}y?jnE;MQ1pKL!yBNxY z!NK+GUZp1PeC2emc3OL+nq~f&icDb^<~3$5wc>A^1p29L`r@NqyBA|;9G_3sO_r$fG zz`^xK>_^l2RXsyYpG}?Nmjn(~helJ-it496jNzKID6L4efZ>&}4i0d7AFV%j=3{^| zbAixTVa!j@Oxc@zHts<=}b z`oB-ssZyQ84c$m1>MJ(15_T~>Ria$@i^FqT*^l_0cydO#wa4CdLK))+)Q(rLI3D%$ z*Tg$yZ4%x{K4_Oyx|jX~cN8+O@?rQ_)wlN&T56WM)t&*J0}-q2w~3=UzoLD&>O? zwe$|LX(6_jG1U(rRpfsv;7*ZktlK@+y9jS$J6|K^ZZfQW2_5}M=lTv3x{NONK2ECD zv&QCw%aDw9p$03h)b!ac2^X-mBzmt0=)mBQp{{s9naUmwdn$2i>6}dTpM_T~4~QnT z2LkThmmlp!z>m{4>3%A^k4~^_i?5bF@y5;QvbY7m4z=O_8NV7nxu;(eK#En}fyqWY zPv~pcelQQS_;O;08IlvAI^<8 zP)#RWkL@x3=Ha}FQ#@^9hT|E*$C)n3r zsoSQrr+un3v^s*s46+f%@AwJek4|gPkGptC^V&__9y6}#a`;EZ7rHSF1*3k>Sh~TL>a?ePX1hKeR(0yM*te{d~B`aZwABSWFYFk z7nE9G1^K+oW;u>Pc;I9a*n(@L{hlv|x9FRc#2f432w!ggp0EA*K3r{63{6&8%l0Syp6+s~< zuwp`!>6+`ce-mliR+|@u^a(=WTB$}WLqA{D6I9l2 zE~5VcRl-Hv&&$f{>DdgxoY;sWEWY^)E^f`3fbl5KVQ zhE=}sJ=FCTK^0vJu-q6Beus*Z&54K0bC!ttZJxYv58^Ou7pc_;p~~yJH`}y}y&i9v zapf`V@^c$~al!gl2Z1hLYYXoUT%D{{rHOqT7?2O4!Te2nZS(?I!wab?MPavZBg|DC!wcu^FxC&A8e0Icq}FzjD&o zpL}J}Pl$dN>LD<0Gr6;kpv(_h0etdmG!!)9%VP=bu7B z{3%z0oE#riZH1`mRgBk1bMYg`8emI?V3;g2Yr=I)QjAV3?SG1X61dSdoBbx{GP2o7 z>Cd1iAEkV)uGnC(Bc*<8N?fvWeGlkZR8xYI*`v#d+T7KfYmX`NX)fU?{`H;aW3_rI zrgJ&A?033-@dO<4UDlnbV;t9wTHTa5&2?59meM)mwK=Lb)z5UX)Byu0n(1KF1^_kV zHae!z4(_$l!L59qYLh(atxrL^x>+O0>s-Cvgm+y)&%Hwqr;-lrgIzA3VwJaa=~U%o zC85eg;RU;3s+*5titIE$h5~z$`=Eac^c^5+)`}kLWr%ml>0Pat#2*J~Dj6gbp4)mK z#}%BV4y^5`PORU$n>{Dthryc}ra>$~qJU4!?kn4M?*Ulp=oT14jlD6~^sf!@&+Q*$ zqTDCh?A77#laJ|NLE3y&@K=s4)s5%ar92goXP;sXdh}~yl zcsj`}wE?gIFggr$uXwpop>bgowM`tCn^wQpwJ$J)91*tCS6mCp4&2u&raLBL~-^sbvm zwR7_*B=rCer?C2-g0bO`dt$xg;TML6v*OJ*DN`_8Il7nA%YzI@{0Qw7=|ReBE2-z= z>#A^adnI%0O*>0p59k_4ha=fyXYIF0V52bfkk7uS5hIX{33Yq(|#8Qr#`4a|KM43qg+mumWi zXzi$8E+VlFaUu`nno>Nt{=al%*wz(lS|?QqHqR&V#FI@mpN1_M$ZZ0%s6B2cTq6Gf zz$5GKO?TcF(V~LVIAZ|A0xVJO{v?RzM*jeT$;NwuT&IWhi;LUIHCv+3G_1|I^=V}} zk(By@@~@!D?OxlbSuLy~F^1Zpfzfa{0CoUZpG`T===JK!3H!hkvo_g6%G`**nzOn0T*{(s4-b{d%=dF4xZL3w366b_`C z>Wr6`ewRV)P@WOaA{&mY|vYzajK%IVi*!m zFitqB+Tvh<>`2wdNp|V=!RuUgtFDKA8WKw5XEE&k(el^2r~sPBnAt`*O|{#wCwph} zH8j^q{{VhK{>U&tJXST#tH^>CR>$5W=0A|leC>Lg-1-VM-iI}{obam>QKcM!SmcRu-riCJ*pIFSMDG_=Dc>>dY^SdDN{?KNv|*G8!X}x zFZY{_e~o3yqC-15A95)Zu_^j~kC;vSvg-6Y#-a4X!l77KXC1>1mF0h5#4sqO9g?c<4cD{WGH zjaG9mtvNEzSm$i7$X4|zI^%#y1EH_8d}XNkXW{0TF1vaDm8mdgfWI#C5&R>Z4t`=X zK>dF`^^HeT*KckwWsu7>jLz(MMalI%0rfTd4n&ptt*3T)8N4G3X+v|3)NX_$Vja>p zKp)nu=KnoSLXaG=02&#jp@E{${e#=6# zRxyoz) zA+hjXtez9_68*PZm~6V#F}-7B{1E}iUrOi2W1)sulQhBQwJ}q)R-O7HEo;P9-U4Bv z_c4Luod(U$ZnoFZV8Ij&LWR*%`qHgARz4> z2i*i?Bn~U_yx%sdjGJ9MAJ91-OG^g@JA2*wmMm^Jq_%o|U_=RFCkYs1)F)EI*B$zt z)#oLZWO+6S@*`kM?FZ92$F6ac?OAi)pi%ZESkK)OImpN02Ohuy?^wXx;3i#J$!+q0 z%vkjx1IM>LE8^O*_wa`@xzvAYSlAyb&J!$)%eK;RPhMM+anqlzX=#_2SCO^Mr^~g4 zipLV4m7HTFo}@3Qt~stw(%5P;EtE2Cwp=u_k@p9D^T}ht9nEzv@dZe&&_@(tB1XLe z`wp4)_parmL=w!?%rO*Wa}n2XWgh4B0GjsdyDJ|S<*uan7Xsb}NY6ZO$8*_F z(}I65TFuimjYGs*ou`KM(Yo_eeoyeC4y@jRMoIj;)k*JFo=eBVK^Eo!bz(g|N$3T8 zw}8AabK(6A>e`G&HNAcyTy%R|B7R8ynoMN+0bW~eyR$r2B~Yhj@jZ^EY^rKvf2ra2_^P&x%2fE)oEo}%TQ&&s`(2So$0ADKLw zg%dkQGhSV4-0zkx=Mu|Santhkbb{j zmCZQGTI)mEp<0}iN=d!iC^7yJY65XnHyqV+b3%3;gsCbzl7_57B}}yqOtd9)o^L{Q z>MF|ADOM_($tQJkWvhxXDx!6(gQZ$L`R;%J()%V}wMtHd>sMv#RHW!WwfXBmb6Ya2 zRd%ZlRobMqtV2+>SZb`?wrbP4x>pj4j-;jySeoCLl^djpKpx|f{HdzNSx*Cu)JS&B zjp#*4M#&vt_%qM9TI{0w9931~UXZIQGMw>@dSb0u-c4n^!yHb`P==KQl_?K;GM&$;<(tl0qI>D z0e7acTnDr{BOH}K;D4QUUgwi2rtZ#~&MQc?OPi~3QY+i`WKurr#Thv2e(vBpo|NVJ zhD|xt+v%D`hj9d#E%ly4NB%k%i#TGMaUAn`2t$0t7UTjzz~toMaqC@C*zjhxJ6{9d z$8V{9n&pR+a;72)?%fa2e_HGAtyZNu(s95 z{I^}N{`&CW%CM}g@7$QXnbz!4vH4eRWh`2yvgsF%wq-x)^0#LG={|?I{{X7Et$-T8 z44GX2020?Sk(}dnK5J=Um7=(<|?T$bigiF-%<|y?(pni4ENfX4y z9AJ*QuR;^K=SnsssVX{>w@$`lj(}v$W~oOVuKs`b5QCdZEZ~(xEFm zjjN;NuO0Ylv|V26#B&P}@G&2HCL5w}%Y*I>eDNfQM%E7FvI!e(oM#G8U!tDA*{{*B zie405UqrZ;$pO02cTE-seA_oWnSIKWxPCsh`T65bH_QTcUzGjteAm@rYbn9OpFN7D zX=$@0ySbLtN-+wfs649ueXE|iy3qyNN2zI1KJ&Cm^DY}1!75kpcK-l5+0ri4Sg=^6 zJFacONk^zrg*g8JXbyer8uH3WQJ`p+duRS0>IYzYj|7vGgO0sN zUJh)Q;KJyy=E0ClVEM5T_gX|5BxB_yWD&(&h=+N`=I%-2%K=RoSKD*pg^IXMTWLE2Z}zZLEJecik%9qykfmruQ2 z(YWZZ{@15JD+AEtynj}+Rf&qCq8;0rco=h&!QdSH*gO-{9M?Uf_^y8m+_YMc&!tTw z#dL!^V{^oFs6Ci<9q>m`Gj5`sTj~*mmdB$FV%x)>G8%QnWN7;Q4Qnp^1RIVJ6P%Y) zSYU7?!R~9*egN8kVp;f;Ot_GF&}xP}o(n86L=^Yn20xv6w~w^8)wG40$Sd7hm7d*z z$YOX0KkYBbPh*Ddn)M$BS?V4n_;X|N3qbj`eHur(mNgqq&WV`-^JrrDq0SX#ww7#>5G+_hrH#_q!kIRO4=#t7;NtWNwTx z^#1_siso$ep!Kn?kK5L=wGB2Km?XAk{nWz*4yZ>VhqyR3V%B$T#V^e3)xW$u8qrg{ zW2JIUC!;%Qww=-D?G?muG%|n3-k9b^{{U$}h!1Z6077ffG%M7aFCk7>Xp%qo7?Y3q z3CR2^jpd6O1n>;W4j7DmUj@?W7Y|=zJZ-ww=U#J}YMS1bOUy&3xxkZ0%fGbGgjVW%KN!HD@%o=bz8bl}H!HpdBOxbFV?B7!PsYD1JbU4L zoi_5~*6K49kuxJH9EJx3eiiVUl|N@&ooxRAGxj`-744`hZR;IAN5|T=sYfRj#oQK+ zv0lTkSQTdkax-3Aszej(nslU^J;^4XrdmovX0)KYE70PxNyS^Y`JTE=4gUb`gA!%i zr@eF6UlHu>F2$jn_k`mcx>sRqp{?NB6ju-8uYs2Oj4gW>=%qc^sWo(*T)pF(a!YMa zy35Dw6k}|lk6iVu?eR|PFZC~j>zes4_rcyM&|Iap%#udEyMa-}JX9NV$llqmsnCY$ zo{k<+`%ylrlj07gd`Oz%pVypL-G_@NDhHc`UoKf&c*0^lpj@8V&MUOj{5SC)eXk9v zVO~XA5pQ$uaFtPV- zO-aIOx)TpV#POd>^!*#*f5&Z67FM^4$TwdyvsC5Wnz&jP*2wxM+u|+6E+vV|k?3(< z)|c_uP_qIXjL8`8c{TGZd=&V~oJ*@)DfAJRsy81AzAZv_wzF(Lu;)Mc@UF^gq+QcK zYY~FN)J;1x?REIqrd}t_F3UI0ZtlUT!Ij(-{W#k<7tq6{VOSzYm>sbuN ziDOe-F)f_&P)3aHg{+a%o`$ZQZf0?g{{W?ZtMGR~{>kv&*10O;eN6cgXQ+Y`mv8tJ zAIBB*SAsk*b*}1`nq8v)_Tj?rJr#PpA7vRoTvyyiD_ck)u+!INrJ5{J4*OG#pK@|f zxvygZPV;knBjj_6>ycAiz5N8~pK*$WuTE-8g5qR?BP+K~gSoG!bF#ZWA`!c>gRR}H zHpUb4Zo@aw9tYKq2hzN%>e=;+p=-D_HqvgLhayXY4gmEL_w=rhQ@Xjjn8^n+$mBwE z(f<}J3&1z{HOm@($C^H;u^EY-Ulm7sHe=n~dZ0F9;UYt}Gqx4NMLW?L+syK`h zo;$bH^d8?@>4E?@j@2rl98)FeVne~kPq(Fa(1ME4;H=!9rD)JRo^MrOx_$ef!;x0i zb5DXPC6QydQp|W&10dG3FwS)uzDpBqDE3c{>%$0sf6 zl5$N~n&UqZDgL>ta=J0) zQ2lYA=}?&B&PpKn0RI3=@~2kp_G3Y$S$VHi{FY3>_uQwYVCqHg5PhauEc4qta(e<7 zui$F6_N^2R2z{v-Tr2%8z*ncahTCASm!oS)XXD$P9+?qTrG{Le-Bko}Ip z79L?B9tdJGJ%05$pG$>4U>n(qVfhnL{hq$|--xwI71K$zYnj*(6e)Ec=NM7=oL51Af1p^SO(Gy8 z{(3g=(~^HG@Gl;GSh__zc86yqr2W=lV~BcSedhM*TGFQHJ1tK2$xb}ZKY8Nc5bW+- zRcU-nefI4^)H6d9hY*9&S;iw@U8|gT#dzK8DgE40qk+oA0Whf_#Qf$%{`cdW?R8Bv zSi5;IHQR-=Ss1e!SVlSTvzIycTH~+vT^~&iZ>6W(r38Z{tF{F`(Vv-*yPSJh>DV9L z#V)7AV`@&cn_C%6W(vu!>sKCJavZh9fV7hT0I>>i%zcIs4x|cQ6H3;6a`I_fEJIDv zVj=Ejm4RJ@pEBk{g=}Xb2gna%c{_Gq5|>f79xL(f>sV=E;aTzai;qa*kB$dm000`J z;vW=T>$Yp*{TA5iIs_->wN6@QAH_RxSo#d$eQVmDVAhoNeflHJj$E6(-MqS%b)OVz z`gNQ5L*embZs4WHp|@Mh-BFcCuR{;Sj>AlAr;0?SzrF0nQpvS3N>?^#i3)lJjVpvFAtwDP}q7 zGq-{U0mlP?I-gn(s3R%1Lha@C^4D`NdB`n=2b_|}C#m$Txc9`9OB_PGUMH6LR z)M0rH6b?zwaB;~wIO)wg*G_%vw@kli>LUb_s5{8rfbY}#R?nMlYYDctZPB+f$aw>aZNO`-Q2Nx zXJX7xO#M9o;CoZ-EG#tZ3r#OfgUHjY7t6O!KJ{l()hxUD~*|A6L~JHPdqxSow#cBiGZ?zF^mN z-ABZi&8TV&c_(7$g%x96)^!gO>T+M|4qRt}*bdkpg0N&@#{;!_73*K!TOV(h;3G+M z&*Fc8XxlLu^?tNChuAWyu0gyy+v zyF2tpvsMkqm2UJt5SL1{4rL1JiJ9eifB}sNG$c`%JAfNX40%w=*|lN#x*g zJ6EY&7^>4zO2^J%@_Ep#>N#j;yH$2=wC;PbFGNXBT5U|K&ihnQWZlP9>(3P# zU&5qbIjTn$Mp;pjR+g)yU}w^-Ef%vlr?EKeS7I3kswY~#A46MovFFr!pa0YQHg1(k zy8bnGUbRk6g1K3lKWsb*GVvh_M`_6+WQjk4kA= z=qc2cr>!MYcPWdEgI1;jNaMK!f;Kn%!~X!SimbJA*~=r_05ZdJgVT8R`ikBfGYQ7= zHnrap>mDM9PKQ)T6%q20YU|9nU61m9$@&T^6tE0!Orl)zX+T!fT5cw@)jwC%s z$fE%Mpw=JARbDfYM?HvcyuZHFXE|vnnn(%mOC8Jj^&gF8z}D9Kke2Eb zac-}ci+N4U>5<6#*J|AP*SjQ-k&jCC4+C9`n69)rTjrE`k!SnhVB^z2&b+y#UF`5F zh!eoh><+^xt!wEw^69#bz5H3-3kJaNj-&Aztm>=8&2~LPSjw>&!5u|430BW$>s$Jq zP|DHXTOZurD3vkT5m?1AYt2r@?r7V{&@#&#V5!^);DhQbt3PGeb3`pQapxyM z{{Y6nkALS*xX{e0_KOJ?c#l6X-XBq2v8bNs8-qD|csZ%w) z)X4b8I^Y;X^wFS85~dy4WsL(a&RV}P=phG=6f2=ASs=ia`)QB~lY z-1(}MzRb5e$-F=2{_-rxAp8jW8o;^m{o;ZeKQS|sq-9HbIatcU2u8zVlv{XI71zKZDs{{U&;Y5Te>Do-9gL!ej3rdGUal&V45oLr7B%;e{= znh~ERlpgscez~qQSMcVUsl_A#O}nzP4swN0J4hqt(;lb zdJnYuE`6~gD9^TQ&2{$pso?MQj}zz<&!>!LbyX{a-_4IH{{Ve{mBUgKTAj3Fo6+hX z1l4ZrXOqDi=lp!>>gEE+=6Eyr5Bs^m0Q4fhmG~2^LE+B}>qtovX?m^bWgPsDQb@oa zq{sq~d{@c$SN5JP(__}OHs5=v{LwP;BJKOo$&CE22>^meOn0wB_;=!|roYuA(^s8& zbldnN(AjdHe@`ebBX-Aa7b zv{Fo-Oks!;N;9~EL~()(0!Ui*-DgbjpN8}Z?&3-AF0b8IE1S8U?io;m(g?v=;|y@B z5dq}a8D~D7;hif>(dD1)_EO6kxs`z~%4Eh|j!Qf4cJ(;Ta(*rGrN@Z1p{>ITi*|3a z>Ck5zVu;`|9ddfH>5>4h+!Y>mccED9LZrD?ud&)&>l0pTHpu+Il4Pp#xm@J2?s5nN zw_m2#ha$(TJ>2hdH%Gv^)w;-bYExywXLTbXp}aL`T*DxUtM=y8w2uG{&#Yxzx? zE!h05datppxr&?>?r-O71_x>CKBJ+pnty0-0>`PsJZY!LwA>#m?No5Gfx{1G8UFzF z*U}}`)H0q8S9G?xg5t*hKRU|o3QHgNhhja{@+;59&{e6pzn7`&W!RZvt0}FvYq~!e zJXxX0o0*0&?Op}0*_g@5^{>(Y0F1v4ZhSGRO>U#jwwP~*PzVws=tmuYygM5BkHva9 z-5>)PuZyEM7iXhK>&i;36yWrG9sxM=7~}`my|t>j zz|UpS?qdw6*A?j^>Nzd;HzO6`+GXKTFnU*iW2vz~q|$Fwf^oaKjp7Y1*vRg&f)BNM zz$WGN?!~X!UUbTMWSczWs=Q^BC6K-DltvT#^7HA0oE|Ia9|_NG zx-dW(ubM3He6|YwdK&cI4^fgWtc`*zmZX*L&$z<4$yuLe=+o#D#G>XfPI<3d(6ldw zH?rv0I+0Hsg-vtj5vAA0!LN!Fw&xo)-DL958>7kzIWOjhYLdiX~*Xi2X_ z?T-)J{4&w>E4Wm7nvb07valaA2Kh)HnCs4Sn(wW3kA@Hke#K}HlvFvCmMjR#J#k+M zTI+Jh82Q^jTHS|Tasl%Vb;B1MSw$WVe5P`Dbsux+PZ)TENuKIO(jiFVQowCoWD}8I zbg{M6zdy{rmBucz4&|qCSeGZ)`BvQb$76F^qx1UmbCt@vyvr$O73a6RLFT$!`>ojk{cDTVCrq6BQhJ3X z)`-EobpY2fb1yipJK6f+*F7_rZVh1Fk3}H~GByQtT27kR5-!oxuj5#@cI`Z>i`?K> z)!zwzAH{Va_V%)e>{iS+p&U;j=)UTwmi)bHBNsU+#cIN}Xwid|wnuyLzru&ZdO6lE zhRs7%jY2LkVzxZ;I~fl>jxk<`xBUMAlU5~nnc7)fEX0z3&!_UL^18yioZwg3Q-Y@j z6nwxeZ2XFEYVok z1L{scOxAO|a^Kx-XZcqJNx3~wp`nJ1Rm)RczHx*7Dg!otWzV?(0P9pN!a0)p$ zzD?u>kR78vfjQv)cr^va4Iv-Hk#)fWnVOZd46C& z1IYZUgr8)ciNY54Bsb`I{Ho2x@7WP$zKp%O0E>tekTczoe8b%GJ#kRV+I7?(aFK2! zBZ2^b)p@Msx}L2zo~eDtTi8T#fWz2Gar&wLbwXVxER|@t1O4e(f%ss5I?mN4(4%6% zYZmS^(tW?98u7mx>UK6U27^*tsTsDI)q^niJ4qGIX0%$K{Tgmt$*)tn@jkVpcz(&* z<+Kg~0Yk>1dy-2xZ7s~LYdhRZ`3knm*71EBcFfK{-3j%lYg%WCJVdP? zpK9V6bNk2nP!Fm8mC3h!H9W$_lG*Y`2t3u{1I@FzGQLPdQ(29y%!dcMbvj+VTs z+~gy+*F0IM2<%}pmLon`#A*+6c_jOiNv^GId@|{KyNB4O? z!lKmtW2s%+oi{>(bZY=M;xF~AzKp{d2hd`&G|vv)UH<<7V2&00(m%?B@jufw^fJ3% z`?Bra@?jh41$JXCu*ww5D#)|hQ2K&%LQb8CJQN)rO!~;7ci(0#G7DMVj@Acg8H2F&vM88;yP6; zy+P&u)Fn>-0;-q690Ru?9-J2-4$4P0O;+yrbXG95iU#6cwkI74>QCoZe2q6oN4oJ2 zr5&_qksAK(K7$SBNPUOmYv)>W*&lgMojOYG>O~4n^BAJH^QBX{S(~H3Qp63420G&> zuuv$Qwr$YKh}ugOy2yoa%n z_Vxo9><2ZW0?J%q6DssjKJI&9a6X@ztcW1DvsLot496txV9ZZ^$bLY5mnOSyKf@Z8 z?U&oN29HJ3a5Fsr03tX0s&Mk3(D%i9u}YegR#)TiT7@o8ZWXlcr3!y6nSjuNlfhPf!mzJp9L?=dD3~uiM#KwvFKk+TJNt zEVoi)?K7$DI37|Sz;*4K%g}r+bAPEv1*9hC=1;nV?k+mBG2jL6$Mvi#RJ*$~hTPK8 z7W91|Qq-@b(sZ=@PN{x=W^O``<&R*albZU+!u}i6d?}j|L7Q*uD4=+gLQ`NsN zgV(ii&S`4T0~3jOiE>9&zY@lwtJ(N^$ll(7)5tLdJ=wkey=&*+6l)i{&Ge6ZDR~s9@2Idv>8 zTVK3tqSd6J=5FP*>sME&<5|hpuSd|2V zv>K_kLDd)3jhA&+BNb(vZB{(5PAb~D(|ZxH$33Z}W}HrGDVE)ZEa416u!Vya2LP1> z0!MsgUqxZ@4K)~RK2Otlx^Tkt|=4;uf zy^(sh;sH1rJOQ|peY*SCtx8JAi&Z{tb|nK9+jvQB;_()RaTKOTd$^WGC{!btAwX=9 zaxii+j+M!qxQ3Y>m)RimLznwPmh%}%AG;vn0KZSCt#4?L_D8qAIDfOx6s$ob1sirb z9eA$lZ&Y~IqTC(L*;+_%<|=%-5>_h1s<2`~{OhW_j9=R>s{$1+#brP zT}a{wBD4^2D_2s}TEgcl%Oq|Dip$Ef9#w(&ACabB-u=FIxoBgAva0Qgb|w^KILYMq zJt=Y1w%F;$xBrZVq!+**XkYpLknXZ5LR#yg%x4R!{d2 zQTcQA73;d4lH1&}$INYpMjZ;CMR_$LXLM+vL!aCJf61v*Sz=<*F+#%`QbEV1SP)40 z+N9uQ6Y9(TA#@2>eBB!FhLQgKsM+AHsQ4pHWxNr)79HYF5BG{y4Zf{(sC@ zOlqdA&PPe3k-4%E%*mXo`IP#p=zkGc^&2Cu=|WhK`cf6a95Cel+3yLSDhJFb0l2~v0mE70-z^QzgrGBU`ebDj?b5!jBzcOJF+hpxqc zrD_AjdT_th@*Z_NbssV?>n_ph{CMq$ z>6-SiShr4muV=C4;wd@1tK&u&N(>uudJUXMP_&{UD=%i#;!Le2JS~7qYqUh zf+sQ4`P8uxkiPyMz&&WaP(~9zqGVw^M&6GcmIQ&QBUpa`wPM)!MMW`ht%lgm59XG~1_5T0{+ri0hsm~!0Kzyyf36p;~V9k=0<}_j4=)OUVVoQBhR5AGxQnSxjjC) z@Y34FqeEk762TRlG)jmts=Y_zbIIyYHI;m7r|!dl$n@|zYpo>eJ1zZ9?Jma4NwJSj z(_s+77h%gY9;J^`PjmPT3fGOYYc&UI&{o_tUq8&-ZM(DYAx%Lj#aSZiHx+4L+Nh}K z6=3a&8e4`~QASHS+5oCrkkO}UbtR+jjNtb6s_&}W{{U%4rV>TO$nF==AkIG#(!7(z z{{R%Uy)|UD(cA4;1AzGX6!s%MYtFns;|rDX6|S>*{&V^1yLa~-?QhW6Ole8Qvx;?N z7j4h1Z((PJWlki7?or7Rkq zo2H?qYDgusyMXS3;xou9!=d$FqP{rs4v!=gHsOM&idbsNt3A)CsRY+Fb~*byvl{?S zc2*a?Ij=S(#@IEvV|Un|E7NM{n9=G5pJ*?aD~;^j7mab?;~Elg#LW<2;LHhR$}6x)heM7 zuI>X>TT#!Lu|qK}B|(yvEw6Y=(sejl#kw>c^rzsK-Zl*ix#y60imNbKdEblG(wy%6 zWI4}iyL2(~UCb=fHChbgUJc&85MNj3zL5k`mYCfrh(Wh zU!TiO7T)&E45a9>d2WBYeUNQtzRg@Qfk%kDoln*E`}ofUVH|dgp$RV5&R1X3)!xr` zDV*)39xPtEGOf$0)2432DkP8G`yl#j%t`dqjVmi%ao(0BS50fuFJ+1^q{9kJbl^i= zS{5VVO*7kM-nGc<_960y1bIP}AJ@z?aU$a{uBg|wm2 zoqiYT2>EOllqcX@jW%8WuPy^t3eqhdtG)?Y*$jkNuuqQl`!mypySbdpchbDP!hGAS* z81+0eJQxF^N37wE)!FeQLECY599iQ{`&?BA-vS}WIdhsv+|A{%6!J5PVSXMo{M*Ek zA2^QuNmWH|Dt8f)u7zyVF?`5pmqb;2Gh= zSJH8wL6&1~VTy`*7Kl-j$MuzSCObWa!9=lRF4g7Fzb z6XUHdHZj80I?_I&q#x>`A;qevImg|cMc1oW8LoIhv8?et z_AEe3&4dU+CNA5IYT0%9k$Irs{Tx>x+5<9iIqz35j=LI^sZE~&+R^3@k&ea3w;e;E8>fEU6lWY#Ua z(9F(#*+TZUNwToOrl%hP%XG7=PL}0jJ2Y{Ud8yYqK%n>#wQ{lSQ_@64n%?=%?~xm2 zqOzvZrJhHo+1=v=<#yM=+9rYKi7nBehO}J(#J55!Jo?H z%{RRI)H{D7Bq$^HI)BCDM&zN2;T2eP;#g`R&aEjhIg13q)7!NfYKGMR( zLH1i9o5K#@BJu6^L)Fkn$5di0D~HjlPluXb6N$M9)(1&_uS$f6HHf05_gvWR`u#}Y z-_)d;8+}9%%Q|G%spxTjH`NmnNccQM!s3gn|Ghq^gqvIcj^yd|E@Yh?Lx(|edZ2tg)+mxt>o%d?0v*Z;`PR=-xBbiX`yx}F_DW%cQ*F*o< zW8MCgO>0kO`Ueg<=DcSuNl9TmuL$yMS-j22pyu*{Up6EM*aT$t-(KAyWr>&XmD4s^ z7of6ww`S39j$J(WJ0;CdKDzCap21`~Q6o>6SKG5;_wqf@L{pDUX1m|~HP1EEcXtfe z(kNpWu~8PWlJN13p=10zcZZq*xax8W6^j(Zy#V!i9_gA81lkY=&WFM!hl z@I;ccipN@}u9RA@WvyJiE?kh@OHSc&KS;5M<_Mz#I9QnZSF_nNEs4>7!v%HH1B-!h zT_?r#eYG$1QW$Buf%^`rhPwUr4Nau`OniLH;#KABwyY+r<|yPMUxq5|X>q|Z;vWG2 z0F0s&v^&g!eMJQtC^v`jh->DX2{y3|G_Ea@@8!qD=v?Z_s+UK%c26pVH8tfPG{Zuj zU(PtW^~S|$hI99-P-!$6AS-ldUsOc6@N7Bfni{cwJ;@4-bvw()mlum@#K^4i;9)9k z!}k-Qvi9n5m#7mTuEe&hpX$a2(-uMVP8O@4(Xxnw>hq8XZF5}tHuw2DT}LkFPpj&43zU?&zL&8(1;1}zDQ5B zSkt*I02278W~jf&4lmb64VsXvtDf9UYo?W+R{;)gLA9(k zcH$Z3&@I36tG+BfoUWA{AX-=cH}{|?oxSEu-u?us!47+TeDapk>$jY>snSU#rw_ zH+-Zxd%g1oP1Vb0t4x-qx+%_#oef~)!msB{b7f)^P{-W-qDg?#sc_l zfD@!|=_-N1f-Z9?NDeF3T7Xc` z{I;H3as5@G7AMT6rZhxfh%V`6aw8SqH$HS|Lwf`FXdJp{C~4fNQ~&zckR|1gY5AD2Bs3wu$GXFiTZx2t$js{1ul?uwsjDYd zAJdDmvX1NdnOkGz4}1a>u>|E-@gul7YD-qTM=8_9xXCZR%UL1T6W@Q zxXgstaUOqFE)OczO+PUR)Z5%FohnDTo?O%)mw$OV;S%vQbKK9SC*fE)VQ6==z^o*R zpuI+KrolSe7Msg$I;23M%zGI0$m%I~80Yzw|F;ChP}5&l+7Ay@JqMaT&l#re+~xVE zNFJzM(asx^^1>L)qkf)MgyHf~{{MF-=YM-3#s7Va=5$Oz9s7@|maKaJ%}5IQ%_yhr z7#e=F-?2MCll;9Zrji6p=Z{1Pqp5S z7*zJj0FSX4B{%p?Gv6CuU{DQ^5iemfnY&-)&qF)cDcXs}Hi5re|f%r%B+}7MlF2 zhZpSb8xc>N6aD(cLged@{PQpCW&gzc2#!#6vLj0*;^@aKoyVTWyAZVPBRjX!fjI3e zv(WG!{dND#{Q2R_(SHDY1&&V`Fw|?#5nh=^x#$2p_b1D|#s>7M6&mgfzB4vWwbxnP zcz>CI&*!IzE0|`B=q35B9J-WgJ%>d&6Zb8ax*_|@2R-yHB@6%)fFJj zn129aV8X(io_8JktPN%bHWq}*Q+nLH1{R7PYxb@9i1@%$eeiE(oe~Sn*+zlG$)nRX zZ04zqVQoA8O~&`i(Q+ILzgP5U^Q-<0K^ISW9AIh|k}FvF1HYdJ$9rG40fj6PSKd^0 z=hZZkPRf~+{9P%%=mD*)CVf4rR( z>(ZfN5p!fiH7Nf39BU`oB=Sc9OCNbrcfO(lAg^*z&<7;z>DqH^*+!$#Y?NR*7JjXf z3@(Nxa3bk!pJg9(%Kf^2XBkL=V_>jHGUI!RpS8y_{?!(V6(-94)DFh<&o8iGn|dm1 z8OVbIW$PBJ*jb5w%Wo)qX6I$wtZi+r3%4_@ZRO21LkuC1lBoPlKdd`}Exi5~7=e50 z=bti~7W58W{n8_Ld>B-7APnX8Nf)I8=D5ifd^Muv)(I!LZ(li0kJY_Te1k&Afpo)J zp3n(@mf_vPL~29C^~9SsGH1_z<^0rmsOMu2cA&ZQeJk!Fj>ZUD zD)?&ZQEi&U+_f%HxDtbhV}RU-hV2isd{T^$>QqV;Ps%HVF+@-PSZ6W5W)qjX{fPM_ zD`E!)vR{i#OcyrCGPET0JEWlau2JIcez$P|?!W&8T`2J&=i8uB_*i7X(9f|FmQJZA zTdGUec%)TrPt`5pq=w!>28Q4W0e!>tKKM^^+Pbqbd%QW(&KmD9H8PBmH%fi{^#r2_ z!fo|$v%smSdY}08?9Jv)aEj}8@3X*OK*YNHc_j4QH9W`LcXKayXTsvPg7Xj;>$SJR-)`=uITvanYPwxxkA*1b2)#3|7@5182WXF~KRXNFs}E=m@2LsR)t%RD zAwgC`I7d8enxb63uOSl8ANV<;_|kZfwLdS6Qal23ku)-EM-kuA`$d_go1?E~hXmT+ zhX+-{_O^Xln_v}nfAJ79TNoj}n?eXPWD!TM{IIzAvZ*@ZI&6<^GO)Wt;&g)e61^sG z#83cT2@fV+!Zp+SzWIY)ebLhNXHmaT$eT_Nija?DUe{)JKN963*B!W!uVD+u8FhSd zEkXt7bF~h{jPvb*=evp3KW$mv25if{S~jhf&v53hkiYUK%YLcTtj>bVSAU>W3F%2FPG)i5hv`rE;>=O~gygJmkTfb3-p0 z2d`@?y*gFO%g{-|1s-_#uPODqWqynu=P=;raSiA<{t!OZdh6lWWp!PlbaqEXm|3?w zF0F2Uk|&E~A+^&<5fAF?&?>7t11EXB2C^WRPs&P)T|#v|A3Ualnu)G~-T4sq^gntpgoWWtdRlf$Y={Pg5hm7O! zLvO}gA6UD36+g4fZ6oOQ_dHOB$|Pwt;r)5I<)s5Ro&x$w^K*D-Ir@fc(QxX*rU`6> ztp+>_iuAj^4P6}^pirk!By!SN$VQ#Hgn4-LQ;?GI5;4O_i6`XJJO^QJs|FLTI zn`~?){HVH5|K0wHKH*hXv@Bk-sQDSU4wO>*ynq^Z2_-B(9~3}H`iJn5d@EyK8fgzo z(`?h>?fJThTJ)%zucT87NHD@-^bX)TQ9{K_bnKA*AAn8mN<#nSS3KBdOMcD)NUs_5 zzO2nHfo2d@9v>)rRjJT&m!dV|o^%@<)vmXBO$sgqrp@lWo%i>-So=2EGv`sMPe2ox^wIp>)(@@T zhaw7$4}qWG%5_;;uTmOn1h$0~O~~tn-O2RPyls`(1{S9E^3V2R?(wRWK?DG(z}VwU z6wwmp!c)ukHQdopsKgQTuaiK3PVR5jXMKp=tg0>5^;aCTJEis>sG7jnV}e8DcqLm+ z+R@R=pCU09TX|T>8F11Epcco3_9cBEJX5qZAQ4s2agb=L?g*@5JPsKR z9gvkVE0lRZ5sThngf(<)tonuyxKxE{=TjQ(v9`q)rxp}<0s3W3`pQyEPS$nthDv#x ztFW-E!sgmqif_nrFu`}7trX>M-bo+-itJT?sPiX}y$enGogm*thqu)D@ctCrn_Eqr zvK4<&!L&T4&@T7(GnzP%jryb`ku!Sl^ZD=!{VJD)7av$ca_t#=sO*%b(p zV6XLt_Y}{7#c~Rbh=?JQ`FKRKZS2SUpTKxTozu5+;|9T_My=1r9tnCMqeIe!rHr0G zgx!ei&kdIIw#sgv=4#dgf5kX6xt!!3=#t4lT_dCJ5x8&noDJmUmM|W%U)px=)zK0B zT_wc;rLjr<1NhR@vfb~s82u`0FpC!?W=%OFxkqL#J`qdR%^ERQEak@d80=q_9)9jg z5jRe~=Qub*KJ|7Z2om7GnwY%DSbIeIj0>=xt}8DKD@hXba{4HLiAFQsVi;c3oGE(l zbgQnQ`hKCY?B{8>HeD4ZjqWdiz{YN#jl>F?H?l@$2&Nh z`P%b$TWt3{GA6>#G+hIT)e*k~0$rOrX#y7B7P}3*#{P8R8ufcDTR)ohMC}?Vw~v=` zciUMLI=P|(++$gUL*5FaEG#!MD#>b6&7M0Q9$RLRMB|KiAoLqXLNT3v9l$=Zf!dF5mm0wEB;pKl8BVsh9#la1M?kxrK5 zq7TJbHj)HiG0oU=&tX>;GAgMhJXH^o>y>P@_ z$NL>C+-o}Z5MvT}?ab&1`MYaZ8)AvsYf!K}1WsYS`Y>*s6#OR~s;#fnO!*IBrui{x zGvrT<85VLtMuztB1O)`ic)CiSk@5Tj7#1hOC6)l-nNVV#PIrTt=W%ctG&L!_XT#j$ zHg0H6`gv)xboNJg9O)B5#OX!{vdS)k2lC5OLyx~I5{9s?Jc3PVChq4&f2r1I<~Ebf ze#)#i%I|ofD`QgM=fcpk?)Ae~Jq8IVw?|2xlrWO1~l(RURCr*8duf{}2n#*ESBO+!qm=eh#?>N*J z&CUydpSF*F5}N-0Y!R{Ydxct2CsZ{1bdXQ!r&)*eH1n>sl-4dI;0-$_y`WPOx5_|- zvN`jn*7B!l>MB(-qup zO9?af76RN(iep^UQdH?#ZI~=CWLtcuQ0{~c9KJH6qkGuTssS=pVk8(R16PO+OyXw$ zhSoReJOQOIh!Jft zj5fndFY)##Cduz#Jb%2VFu%5ByO@Z5cN?YpaC`+)UktkoRIcYwN^`bA8SV2LTzHsf zr1jQ#fz&ZJoR{|f1K3P%CaGG?C46f!(|tY@&7Q6AV*Z)R|J{Qepv(arR#_4&8j2XdWHQP#YYq~)B{y8 zuK${2nCSU!xWWn!Uaz!SHR(kG?alOjws_6+%tz z;`SYGrQZHU{foRxgfX|W{KfBDTFFWKU(2p=Qo7>pMzn=oW4V^wzjrJzO+exlvMwxs zn%06{55Hf`MZJxNNmpw(WsWHH?_nl=9p`_TPl##0ob{L!7ZDD36i2}gVcz&czh0;M z-zO@aH-GQHVcVL;{v;3EpH1jg)18~JbrKf9h+dX=`lh$5jTT5D0?8hAD&1qhjhZli$IWgy&s(un^ z7hjfWnDpaY^*2GTU0S{ElyFXJv0elIL8udZ4yh)+l|dfLLc=!{H1)a7DxINXuV}1x zvJa;-j>D~*#%cNHKE}*sZm7HTyxSKQW<5$|?F-O`51yJtsGWFts9=AXSmygy|1x1A zE5j5K0~_TLfYbn$@csS5?|!7A;r?h;VweF9S&(fT`J^ux=az^Sx~JD`(Kl4pKQA;- zIUS~%G@8RIq$t_7{dbXJ2@fUA8}xcFBYGXndz+e!5%)J%_pO?0G{1>Q-k;o?)>v9* z#clEC+1fD}K0&VA5Oa?#I=jxb5CkWn}|fB5foo>-BcGhXQamz`PFc|DJemhVmJp-$s6i( z`%Lg#YPSn&upXF9`ew~i4HszTJ0du(nl)51{O;e|LRa4W6v z2-_p-%pRy}H>s>fx{7f)ulOX}wL)#xDoNg8R0tY9NvN$hQz;%sm&A*+0`S+Dj0;ed z*mq`@u9IK_$qs7nnBr3gZFt`MP(v%rH3}PkMRPqaVbFXWhRq22a7`2~1-4*RQerjG zOy|n&#YkB>1uF7AEnhA+jSB@G#DG#ScM1fw5>9fA0Hkq4=URxGhtvnkWR5_9_@CiLkl}p@wq8{m4rqq)SPJ0u^ zC0IjUPEUQ(8#mCzwYvrUSRr~X6o?w)kj$C%YfikBcAra1jvX>w=O!mpe02s2w{M?P zPkis>j{lm)h(*G{ZLekup2^%jJd9OL%cB?{7_Fni^p4L)Q&V7JXW-PU1MYI&jqdpI zA7JvOPu0f*pBvx>^rmThE4b2QPyQ)EJuS@D{#q#hV^HA}UI16^(`KLDf>E3|uwg+? z=RqCc?gWLaRfzCFyN1?3$*PYe)aw~PNDc|&O5VbvOn2;6)U?C3f7_lgddiHL;t)+y zRYZXBa?Y4kdP>3`g#H2cRG8aas8`AnKKn9_z6n9fQNN37M-FLYzF7TeXa&J7CEyWk z2l@mgAPyD#dXORt$t}*J9J))@GlKGVLaPpjV1JMlGBz{`?ca5xOH8i9ZtQd)6QF zi_&P4?3Z5Si9_p%L8IN6=>8B**H@eJB6F?6Sf`iBAVS7EWJXV>dbOs;44_WuTT!w+ zRJ6Xznvo#lD9_X#aYGGVRR49XkIw}rYT+6-P9 z1*=@g9=6jX0&VlZFVlo@ACZq3YN_63H!yaP4c(lod!cT;9#gt~(AF?*Y|3bm0$z;z zP8jwnAuP{Vea@ulC_+~URu`83P@X@!D3pl$8F;8A6gzT+5QZtLh2lo$_86KLlLxIV zVol7U6Na6g8NEu!+PJoD_NhB;L>lAw?p6z2JR43<>@j||CqXaS)u*^FVJF8CZjru+ z8O4t&#|I^c1)rVZY?ikXmMZK|J#vu9Ql~R}2JWzrheJpF-j*`Qrn+60UV_&To=lPPN4z{9ZHv*XUb|E?j!H(MFI_(rzJuu&YETE)1g$9U1O=Ild={HkR9fZX=VGnWfuOcmjKrHk);B-6ozdC4V~eBK@aSoQ~oD0Jy8q7xQA8 zHw|C+2I&$$XB((wIb&2nGCK;s%{lXD_d>*LcOu%iO;7 z&nK$OmA2J;f0w0rkne&~*W~DQEbiGOnK&f)gI~LoCPpJ4StFvptd%y*}6E35WcT`x8n^I>5ipn z(i%gAE35w6M;J4k1jr*^qbpC)Znf&Dl8y`UGm=Dv``Si|&uz!sL(XOvAqWd8wZ-~i~Hu4>{g8w+sU0HrIc@XOpOg$H! zPJJ~~Vsof0ZGN!dIcFtnoKa0G8mDu|+pB6@!Kv+n|=cU@Di)rz6t_HTXi_*{R!&)Z0WF+bP`}*{S z<$$I7FClr)LiqtJ%TjM$cM2kP^k1(q5*%5?F5#!$ZIugmYy4(S84R*=;LybgzOp?n zS0jBdJ3pDltuI?VsE@$!yf>}io^*0cU|cD1Tx5~XyZ+D;Ng*9BF?}PhG2-IYZwB}x ze`orNx;LwstDN7uC2zEMJK@J^%j;rti}0%B=~8!X-!K^agBmxi=tG+MwAt-Xs`j2j zA87V%X_}O77Dy&FKSAwe`%$+9;9Fz8!raK>Er0g}9HSJh*?$b1Zgw~Jsv3>+>h&;# z9?Ggjp{?#SJKJ-c9?bBLEG%H`Qv zTC`fRVr-+e{Fc;$)cMkw3PS$??S6!EMIJn2~FI1YI%;R4kat-N5lomkj+m4lQCPDVwg zaxHZ}W6;~w<~HV5%lUHX+GA-BeVDECzlDdOh16WP&f9W~V^u20Kke90LR@5uGo*W^ z>~sBE6(gElj=Ahr8WFQNw>8IVl6`8YqtElxb zBvuQ3=~sxmEXZf6U%?&p#(y599(+*faHfg=g6G7*e;*i?xVZFZ{qSu#@&Z6a(0kze zkX_Rk9e7ZZw-uWoqc5HAXqNAch>xTrr|6PYP2to3VxJEO}N~~i$$pCTa@~Bz*kh03&_bYS;M6rqc zXioGCADRbh>u0lhmW}Qz;{#&@ppEvk_;=LVu^Q9Mt;Qir;6z9&PTmlM3rx^12g- z7ci}vHWEs);YVl_t5C>Pa(y}4Po6apUQt(mYGtmjjZC-#;D33abfW0rTw1P#>cEwbr85G#r5cciYik2lB5AT&ZZ2IN?w_F)X>?$qbrJQA{lT@RER)w9? z@Tv`GsxBK5aMumoYez^Ps$I7|^=VlkhL zEuUr3M|x|*$n2Y8b#O)p_ul&nAbDo4G0{JJ9T_YJzP*;5=-AZpLPAQ52jkw*{ZQ@X z>zbgvy~fDF;DWigm1obLQa(Y&6HUH>TVi~_VeIQgy$h+&pAqDDa4P*!FLaF1=c4j5k}SO z+__ofa!soRQnw)F3F(Z?K;($XL&9_|$5+*@8AvG3fH-ruJI(1R2h z)a&!Z$3Z25tY7W#@BCNiwUjcEWt%|6%~2jPmp$iZ%N;d01&UTlb5zEkfie4a#`L7! z$E95XrH`{i^gP*O6ruN6_cEPX071(weV`)zM?(;2@?F(O9ADb9k2)CApQK!D(o@+oTl@n)Z8@73|05&dOTU zvujJK&(~k?=MFvQ$UM{zHTrigR5h#&UY+4dpL)^3@%pH7qffXmKIIhdI6pxneF+V!uXMQv zX*ti8GkEh^B4feZ%yTo#h@?HPmBB;A!i0-2sh3g_$@Bd1E!C1>Jvb~AXhRbbq)v$N z_yDR$2G}IH22PHkW~MI830WcszrB?0-WHcuAu9Gs6~>~a?-ril%J%zCd4XOuJUDRR z4XVDL2!G~pG}UD-=dAP~rBm95TcxJS+H~MwDy`8UsUvUU(Oa8ityw$Y=O+fdi!L=# zPqWk~X%#524eS|QzCIvbWlt*UX%b8t$lm_b?%J5F1;_68_PF;J7nvPB85RnYo4QkX z-TVi@N=w#wtjvDq{HQO*5$Bv+FP0SFo5|l1wXdH(PTU~zA~I&+c?;G5nosEZs-tH; zBv)L5&A;=AdBD%>g(HQaPYUmtx5efJZl47~NfCCoOU1oYnv0MvVHo7bBpMq5VHJ9* zDvbNmgH!R&oFr)(;D>^ki_0TE`pQrioszKPYAU;VXOFbdm3goCx1nF2rEYLVH?C_r zPTH;BbSy2k+u}cnA-6F(AaAM`Bv&9-pXL!8E|-?;mbxu7C!dI38A>oLkI7uGOg|Oc z1u8w^+jKKFU$ax$xTo|`t9^c5GuGGfr|p$gAGgTF$lx`!n$u8YGcY28a(nS%7Om*G z53&}eQt_USH#=R$mq|HszfLBlOhIU;fAcn2f^REFk6kEXi?81f!YGjDtfI9@dhGt4 zr&8)^p6s4bjcfgy0J&**eHK=;WTW|V#E0BxTAFEo&!Jl0K;9CF__kP3A>>_ho5G7K zOoDL_QovCdS1@A4_SXFQ-yoy&_B7fMW%!Hgn!u2NA>P=wh>%y%bx`T5DUC%(qRIxX z>Vy^cPL`qm3olVP1)`;oJh(CcPPro%ff3`pt5&N3C(6_HRjJ{54bsqs$6{7RILNNtdcb6_neOK5TgwlZf`ecwV zN6+-FtqlU%*zbO2or$6uU7~^`Jz>2#4tO}`+dUpm-Im82V=VcP>uuoHg!{K-uMbj? zDSEet%BI#7x;p(YRb7U+U%Nowc9=qb1eSl9#OhppYy;Ke%fTX*2*V%KM>RUz5UP?< z4|lcwv6!dVRy3i+(26|nHU=AZB$+8n-eTW0c3{q{6K`@M_fU=72kpEpHF8wuCUllX z@k^JL@c=bP*6)l9r|rOTVDkB1q`f^|bK3`XT(d@_e*ji9qeQ*-)-06j!=jk8J@Y0j=V`Sk8(Qpjg=Ie;$BfX~8=;ny7}ZuBd?f`$DEC9^dka1x}?%W0};^_MVx{bu^-M~tlg7LcV9d%T&Iog|~H z0l4j%`np>#n<^HkB(QkrA^xu(33I_(u6LAnu!7EoR*GaUt#N{%{U!N<69`T3bdF0y zvg%>7YjRv2kp`ltfn82d3Gy~jtK}6JKYY2{^l!A7FpF`J^$LxnozSS8W#p zP_wE1T!?oyGuymmJj5PHM?yS9Bg!1KqkfZ80jT^=1XNA6rY}MtKYp>A*Jbyyn?WIe(%8N;Z4xyqw0KLN^;)ng3{No=hERJhtA^aydRP~CYsYEaV6P%O zq{riMIMt)NdiVI`KS1shESXv$YYVI-aj2O&PR+UmR&zuRdVMITV)oFw4VzA1Rhew> zA4j>LuKIh49qlK4v~r{rssQytkEPgu_LJvWCV0 z+?{k`?`q%18^(o6a8G-P$b_!WedAxfgmcU!5_gViL`ofgk8}`5WwBd*#T*F{4bk9stv07?I zNw-=kWp%vqh}zo%;nE2%3x0L!DV@zU@W082jQcrLUSc2pHWhhk#Lo(!uoTsPNDZrw zNy%T0I>$oxDuoDDP5!VJ#p-!Afp-rH!`2Fql+Ou$0h(StZ!m_%W2?L5x*}rZ*u_0? z?I-OZYSDj6s;A{fkG}tkn33$0ul|+O*ys{G&zLbqF0P`~`!1q}619^ueo^(qN;Q`j zu$mi7dcz2Sdghrb9=jR&UYvP&NsaOgZNRI0Uw%kq!i%;spg`*nj2}~ZB&r~y%*Okz zIG{t_?)BQ^1Zd|%o&{=ep_wt%N%kI@xqB?(oftIgPOo4Wm)sZhAa@k!=zC4*Om#np z9&Y@-q|aYLBjT}yU9w;PfSHD?yn;S+X_?Q+?r2!LI(9OEJI4Ffj%oz{cc*U!X^ChR z;+PXiFG`z|RSKkR6h>yQrQgfvTYD>(kEnY4EHtEXTK7h1qp9-+Q)Blidbf}I%B(XD zju7pd*4uOaNW~Lp3hs-vQ)ZDI+szni>1|TObZiH8^h%r4p(wt0Rz`GV zDra-+D&c4j{GvhDwzLB)EQ4Sd_8m;RGXuv6Gb6g=n*`J28AWd}>Nc=ZF|B>V$@|NE zL#oOCO;j{v@@LI=<05o_4~9MQ@AkuvINRjE!-@2i`&n&?sNlYenX+Enn;jI8b^;k| za34F4h-gL%OP%%?E!yn>zb`nHfryO+CRC`A-o)+_#1eb(pnABa{4Cox&Vc{-go1>c z$Ys< zRS~z1z#=vN=PbTmg&QHt@$)2={X)?dwG0DGdDXzXxcT{uJ!cs-ix2uK-<~!b8gHpe z-kX+Ya#OT9I}Y6-{4X?ylynP?mT48XZXN__TS9lxouYr~|I9 zxc24Jw8|st6hYK`iicU!o;gUJUhyhNkYIGVoH#Q*X%{$ozB;mj8?w!qHV$YmqBV-* zh}KH`-bJ8o_7`Uu*>XLpN)`XwV4n3F7UHPSUc@IrtRcs z_e$F?d2oSO1N^evBM26G<{bX&`{bWK%CaK%t{5vL{~^j3b^=%BOmh*+`%7u!><+cA z>t{li^CUBp0qe4JyDn4wi$}~nLq7y0KJ&Su(4wYiAK3egQUhn5#FKk`KGp;(&Ri>| z(58oSK1q2BI^q%-NQ}^a+&JIVPE{=awdpC-_&A~tX8%H_e8ht~QACes=T^ae&>m}R z|CCu;f^g71bu@dIqyc#T!hZrdKM;+jMq%=E^=(#@gPVD=YVufeb)-o2gK;@mPKD&( zAn5kzYQt47{#t7~7F%=)>96+!Ea(;e7{oU4(ovIyURt}%bCe7{3^Ke_tj22o(vNoq zI$ke3sfd_=rbn0+kKpDQx5SDDp5lK*-DS+50(`;5K;5;EFv3$v?$#&x#85q-9oY5! ziN$NCE@#Fz-Ps`zY?=}!#aw_nMBnD=#5NPA=Blf1?5>f{0EEPS?+SA_L%71+AoQ`I zK-o9fo@8i#-Y(W<>%l@e)pO+op>@BLED1T4szEB72v_h`#_WwW~sV*pWNjmkR_T5!cdIOpVndSZ6l$4n$F9na^Sb~2CkS; z>l8S~wBZ$jaJ($-h3EvdM=v@J)-WTYL1VJ}ncU{fvjTsi-TKL1U+;@=XMFO zhL>vj4%HNX)FhTn51r~%$ZgwMI(~)BdONDT*$-3V@s%p`1I=cHGB+c(*cH~qE`1U;eaLHXW&c4#|fm}{BG&N%*!W0 zG9O{M@la{S@;j|5*ULM1(@ij{Bm+Y*_Nt=9V(7qhu2vBB=I2wMGhUb;Puvar{4>e< z2uXDv2G$rpnt(@3rqtDjIx76LuC@3DnX&iy{LMpj<1d>hM|~d4w_9K=ruC4vHtY3M zW|Zj8)Kji<6I&$$ZPr~{a170KE$l1P2XAzoqV6HeOep&hJ^8K;P25X}?oit=^r{a> zkleD!U0`)-rca_+FvJYZS0pv2r1oC&XT&tCVEVMe+(`I=bZGjeQkl;+L4@k8R$pF@ zOwo?wq)VydKzw~_ci-8wSe?p{<3>s)-aDB1XtEw2Hn6+P{(h(nOk%Xk6Z)Ro% z*^jMGjfp|Ta@@T4odrD4frk^Q2reHf-LD6BZY9)s=Y=2?C?2B?CT;MxnX8 zWVl$07gZ6b1i?Vv8U@KsjL-HGUe!XQ2-+x17o@6 z+)kBt>z2>)r73jsVbi}KWqW45O<<_uB2y|QNrjf#4|l_3Co|nMZ10hAD@~u&eCnw3 zF`4OSQ}{z1$~Y(*^2d&9!~px=>^^nJHQe4(#jcdg>Hh#2LFc~6ivV#=q17@r3~|p> zlS0Jp8_K(OpartP9!>@ae}78NUArSoB()gEF&PDZa&j9zvC^RF@0yr%(xZC2l$FZ2 z2jye!TlWj+ly~P6tA0@i{$jAC<#Fp;*D`r}OUe(-%yyrDC=cdqbnh09nsI5Xbv)O{ z+PTua5365ACzn0g`#eN_;L{zYf$UTkJuBqT3TUf;s+-cGp|ILic4r^z$IxKAeJk5O zJL(1p(YzmO3rdOSIs^BlnE6ruINgeq!rmGC1*N@&DkNoH+qx?`8D=E%5CN0^zyNh> z^W7&_qK`$n`j!(B93}99$2)(^HNg2)az_9G&3(2T4wakP z9|Gp<$<&+E^Ei8 zTe_+8U>`Gl*x^Adl5vxqWb*h>1!~x7nlFT<&9Gf>US$dxE-m0A_*4vmk3o~_M}6B* z3f^jWtEzaGM!1x82jvL8an})meLD5)&309<6uD7TnrhEPaZzd7r;BgDwXesQ1R$(P z0U{8`Kkz4Rr1v-{0|L7*BE!SBam#TQ=IL#2zj>Sc$J^BYodtEv41Q83ml~L&81v*^ zuqHpa5BkIUd)8w~qFBt=Mpo3XU++oxi9W>qfO-L%^5<6j301y{ZL&Gr4HoY1>P=f% z`K6QidSrGO?4z))Eka8hGREb+>y~VY(DDzzU;zBP3YL9N_Uvt3TE=>X`_1)kzm_X4 zZK02nKqtFbi(aMlHiB*5MIA<2Z&o&uh(nwx=sHy^Jtpf>oo(z8yPmvZRC=-K2fcT? zXN0v4WrU6ewV?abxZs26I-jj~(Oc=-HNV*Oh{5jCwwdxa^+=}npqgT9;DV= z!@Hbh*IMk4Gn-qtc3?>c4snut)n-g}u7&K~xoju<#|QH3P#7XX^D!WQcOTZM9PV?> zzSRkcFKXyoD^K>nAyt~%CO^AyPxnt>@S!4<+A+jxI#;0hTSFFc4R29ToQ%Mys)PRk zEePyL>F7DD8W)Ao1=Mv^`F`|KH}MhBk?HN<`R(7|Z)a@a8rCq@?DK2l9KG0?m$zPH zH@{l*&3{^0m68rY${cW6zq&oWYfo6!f`*C~;P6WS01@mL>s%boEZ0IfU^3oGg-DQR zXagUgspvcNjBsKr+eCW#eiN79sJ#rUmNBczaQlmL#Pn0x4|?b{%>iLl)HR53crjWL zkE2LGP>1pK8+ulPx@?Jge8S@Oc~#En;P1fbUz775hoJ9T?yT*(i6r{hir-V-sbB2J zV>#WWb0mjzw^sH40P7Cb9@@RMf1m#VT_)f2{!J?!{KW-PSeoVc_H~&t^E|mo*VTyY z_*X}Da}A^qJ;Uro1e5fxYfrNN(VAZp>v)2~*-I#H$=e>}@%mFXq}BPJ$mK5?{4?S6 zaOZZRsBTF8LX-11w_nWHl4l%x*IVK(W^WK`vR*pujA3G2@TfWg{(9Cutj65P!WiW) zjDyTw!E?q`9x^)~)y&#%$oi~293tGeW>`kXNX1HkE?D-d$i-^gLY7dbscTqx76+RG$eO}Eeg0A)uj7uP>Cd*F7go~ET`B$gzxCnTPv zw^R7issO0OgSclM$36WGU5_Gj*7ACjM9wyC;gg-ityp5xHcxs4K3+47Fx)V6!S(m0 z9GcxLoU@u}a*T3&)Zk#6U|&j`Z~6ZKCbdVKIU(vlN{|fGqhHdbBQNi`@T*qImUlFy8UXTg9jDyNm%^>HdG@O6V;}uYbI`) zUZHBR)eT~HMY6Lld(_S0=Ex;84?Pf^FN z2lMNSL&(KNfkoQb-6YkTDtQSCe(!+22enUmY|!1vs=p)cb@lncILFk~sah`gG5v=6 z)yhk3S8EQc(6&(i98*l$>7qH-AEiwL#*;?VBS`>dGNLe6WZX9>C!r%C9@Tc@Nv|62 z{^DRJk=fZwk-43VHqpomq@FSW7ywp&-}C-W4oQ-ewxjMo%x-6r$~hsnc^Jg9ux3=x z0Fl8Ubt0mth32hqB*F*6WrdE|?iS za>Lsry>)Ol*T=6~r#t{iaCVcy#zsN<8u~m2CRF5^^Z2|nsG7FtBcW>3TRqHQEUi3Y zE+Un8L3bLS7HG-ju6Q7a9aM_+KMt3)X;;ECu=7YW=(o-1BdG5LhaO-Y?L0_36Whr( zn<;E={?i9sVxw{S-M0yz!cTzVeFSLl<#(#63}8Z+}+c*>YMp3bJI`d2{l zevPh9G>L(R_!6yUcIva1U-{uN!pnkwt~@t885i%tAS&zX9y5c- z{{X7KW}8-nT8V7@S8R0vtFdk)$J-G{a!v%md*F`7y1fs?zAw<=j^|9fUm0ldeckTK zdjk3iMr4eDKI4ZRaB*KJh@m zwXoWM$}TLV4mztT{zMw#yg%_1ypKhwq(#JY@d>t7G-;_|_AOZs?@i-(zLRdaiiuTQl0a4cOd=qc18);aJiF z4Rf^9vpQC)=+x6L(MhzJ;U(yOAJ(p1z|py0rFz#eMk}VUy%*7W5|QUG-SuEQeQMUK z-ArVx?zZYtlxJ;E3iwKD4t&$Z9)j{EL-i_fHS>HI!bqDpzYm2=a`--WabU z`1uv&dOnBZjXp+-YjV&tFZ*f;&#x*#9XYRU)UCeHa!C8Eaw`|ao*#?Fz75p8JwD*$ z_mPzVvambUfP3T-^fc_Xi&r&MacW5TO|{PtYrsY0Z8SR{m+h9{B-it0VO@MF z)!`r8{{RhjRMujT3}9ziXBf%k=V2gc2ZPvxIIloI4sEU>4F<8X`5R@oYy;_)a)0sK z$NvC@f8!k*7Cxjske8HRvM{q|+=t1r&EMs!DO)u3I^;FfD++1&aGfgJi^k_~57CYweyqUqFE zKCJVjwMi~#Y(;L5Bl{{TVt-1Z;Wn0i3fA)H{dN02%lGC}!2AFM@T_kh+%=Dbb?i3Q z7R7%DV5jsZx<3!9MWShOpuiT8{;QwnYszxD?tC#YDu zty8RwzjXDg%UQlE@m`Pc@51*!GS@(nV)<s7RP8(H{wd!>EpV~_1{{{X!ceE$HN=DDpN@U^Nb zIXJG0^pm;Yg{sw)>W-3WGEc2$$j3C}CTb$zjd|9#hpT&$H(IM!o2@pO6^P9^4Ag*T zp0ScS;-R~p5o5w91=1gFF5C(D>K8IBC{@3_B|`;Ukzx;iknla z`c?`zX9aq;Tb(b4^i;M*8wO4*)og6l5miNG>DFqX06O4TXKNPFJ?qefZK3nEDqY#K z^{iMRj)Jx$9Su>pUzBFGBN!FZk;ci#9V)D+wOXpvbQQCWgq@5F&$?^RHIs!k=y#uV z*PUy52!9&qsP1-B-6Q9JikA^V;d|dR`1l`yCcQ=p&xfx*3#`8+l6Y-aKzKV{BX8?o zJ@G2W@5Hy7Z-VrsGG6OtpF%BgB^;1@R(l7N}&fxx!q=4g(|gBiwLBeO(pB zrS-HrhMyps*6kKZoOER)^dRs>d}(SERM4Vh%PQ?}!n@yv9yJ;S-|&oUasj5y`GQ8| zK`HEg6}$Q#eQVduFucp!MQhag3>|d8cO&SD2+lTv^rkV#7^{-TW00Zk)~QRgdD+sw zNjK2?6h}>Jl%CzsLF?^Nk;oL&G(==(w_$`_Lt$@@GV(F@3{U>cio}1FcN%YqwN=pk zD|4uB**aUS5ghcAVb|~nchFX_m6K;@vzNOV?%s#Za)DM?F>{ptVr-d}nv`B*D{^%Bl0yvTL{;|hV8k}R)fCo(1JK-HN+r$1JI{v1d zOy4A5#Oy{Rj1I$SQ8gmMW000_tc0KVRjX${@= zxzao}ZrW~^PFaD(vgfPGCsCgK=hXJCR@3A2QeARIxSk=lJ4iqg!lU>=A1d|-tC3fl z-&DPi$!)gre+no&K>Bh?_axV&TN0A8*zmcWzFT%FSlDSgA^~fO=EvR#2t9%7f8Z;R zdRv`Nd5PMdX#Nma2){_j1pffNn$on<;gVdSd$;sZUmy3*RDL8^OBaT<79g}yTH~RS zfp5ujKU(pe`xsZu&#M+pM`Zx;qt;Q zqW=J%vhn#2rn<`y3+Xy@EVBOqrp`GHC*4!(2T#v6)iXPN;tf<~C#6bJTP;p$)|~Wv zc13BJ%5x)u*8ujc$yPt_6aN4KKmBUfYiSy)$pnL_r)%oSPRhu|lW6Ff`qdXNj>I5WP_kZoN;rt$#Mx zPPZ`FpoTv|_lfl*rSDy7fH&yJmAvVrCW}0o} z{^_J~ptY@I~IQ6XFxY)DsI`EU0IXshGm1k#U z&!xd(`R!6mMY1DfyQN0oD8Q>h8*WW#T50y;5vb~AmfIvMrw=m@%jgI3H$nBTXse#h zStzTrrIn<6KHq=bYZVN+gR z%X=Vs0;o~7RR$4IbX6XM^F2*QQy$gSm5&~z+@0AD-}C-W8-LIFHEU%GjCxh3a!Oii zMX(MtQlgyw(~jo{1M5=kBw$sfc~&-oU4(KGxpVTdUWAV1Wa73;#}wy%2)6$KpYm#D z9jSn3rj36}(L0r~&Zd}BW86v)j%w{2S^H3=A~Xz4|F8K_9jS|b%)j8{84 zqU?yNg>pwyPfU8$#Acb!K^zfTv#Ku4uIj;xuqssJ2d-DB#WQXNOhG3k@@NAUn>!-g zRx9~zKKIM%SK!RiNo2pqH>Nu8KzJYT43DlV5((#ZJxePGL$#2C51}0Y06Na+R2B6z z7?f}?K|;jOn8pTi zl6wJC1yRF|*s8fUAypfJ^ry&*%Y*sU?0_kee&%`}w8-T7_iYF3TgG;GIb{y0=QT|= zE^M6{et7!&5POfO@~#~PuA4H+6zt0`1o5#>GRY2F%nbU#JHaU5opYehdbx$c@D$LswnQKfjhN|wks%EB?{ z+qc#UPVf$YfrzhH(7Zw5KNXQShkN!p{_}l>_m8Vu$TyFDppSa_1`SJB)8qRi+ABg%_&s4)!rtLWW+aA(* zEK9s4XZW9NK8>l$ttFJOYbhA{nimN;>(yI~`w}acy3=&~w<|GgJEiI7p^d*Y@}JJU z3ryC0bE5^h(r?DKYM9#0=6#_0Nf{F-L)Rj`BS`qyb1X||;tOFSeb!lro|!(9C=RFn zMCveBNr{P|Srg)b@@h|RTZ?N9~0M7|X0g3+M z=zpKJc|>~mfOS~D(;SlM?BDX$8_&1=N|TTH5C__%xX?8li*L1QtroRtKq5;=5*7NU zau3kvwsB8$$do5d>Y8V+-day-CdrorvFvL&??(=Vf(}6)L9aW}J|JJ|C;Kl^2T-y0Tm*uKYhZm4`0_e6lCu-|8|w>z1Vlx@1PD^BeZp%c!7& zLKff*9cZV+-Xgg%rrTTN=S7dY82#n?gZdF%h`V9;RDL|y(HjWk@VL9@h4jEYOAomA72(JSZM$)`?XV%~= zsZ-^9qedABUDEx=<7ntdxbIju9thH9yE>kl8%w_(XS8o9{TOnLJ&GEotb9Q5wvNpp zxi?er0E#los=kGY8T@OHKOMY1XUtk<)XCWIj4}1&4Omm7QraeW&aE}OMyHE>J8i95 zjW@@ZBH<7b7Ncsoc(dJ=a=>SnDU|;50bFjKs_PyAHj#LybFBDnR4t~p01YjqeUfz> zgTd>9LLQhrS6^fML3jr5_ZqFe-HAO*AeBEf!Tl?yvWLOmCiAE8F0pGQvycT&#XNXrbv%LyI4Xb7 zJ$@*j!&dN)t2T+Lsf6zgr1TOY1y~;8vHJUBzPO6Z#6JpdWxmpErMmFkj2h!k&gZjp z_ocTuKx#`zSN3iNpO(xD; z#5$6A%i&$#xoLwX-HRDVQnNt8+#hj+>0MWYF23F2JreKx_Hi%bnN#|T@PC6krS6B~ zElc5liIl_k;UQFUfF@Nr1E3+)l09qGJ{HL}mXD}-TI`>+cz*Io7!i-%Im~D1NAs?E z%Ff*m_(M;T>dDfrrBzRxk>0f|EabeG%Tf^(7I$yDh(7Z-u>N%yxydGyyDUW3Hg=af z*0VC(>6Qv)o<=zNM>|KUHTie@L40Gm_>bZ@ok_RStn(eL1BFP(L-lU;>;C|>f5xbF z(%ua4tmJ5x3|2>0{{WAf2Ua-hJw5)F`Ss!*Ri)f_k~8_&t%jiF?$17?t?x61@g}Hb znUEZlUPU&kapQT<~kvz3g_M5ANFAOo~|7Gh2My zbN7*k2>h#**R;j(-n`LT{Mvo+^Q~L9!_<9L??W4MctrX8X^Fj8h60o%Uqbiu?1tpA?Wj#X9Mi!lcJeC*u47VmJKqjz8+Pz`0==t8v8V4Z3nGD%EzVt;kew71WXEH*)+#0<@zUQB+}En$SUkT@gksaT%&p z41x8lq~fX0-zYw{qgGmrq0V10QC@AYOsN|&I0H4`>MTMxv9BHR9k!+7ZBEC){u~?i zO>R*F6Zc||8>N-~5;X*q{YcL{gKo(0gG*LR@H0X;{wmgfHtLc80K~h)2_?RqBp)o= zgsZd_it-QI0^r$rzrgp0CSSHlWN!PVXvxpwO?}a<>6%Z5bPX@TdI!s; zcz!YS5F-_czidPA0|vg%*QcrZ zMe-fxjmz7zlwz!h zAcKMk?mY;vs=O8A_3>ScTiy`5rK)`VW6wdyn7-qU!||_%#o_&%a*ENPU52crl4n=Q zVA;VPJ*mouM$ci^mMB_h+O;hEARb(OM_Te4NnNwqr4DIWqcIXZcHrR1%7FWl1!DNV zFYV1%%R`aE+FFx$baTcJ%Nn0gloCg!Yg&w6{ia6S6|%IB$DjZa{E0t>bJt5P>&+hA z&8j$>a1YJ1k1j0q;X>{`fIhY8<@6O^QHW#9|VBvDqGM=hYeTXn$u4(xO{r zXLR2)pQLJY`H}RkyB#{ykKHxN9Sqzj;Tr8<&nMom#T}KY-}6rAs~&S#)@$Ax+9icY zcK-k(yv}y^II2!fS^ogQEF@QN8H_kY90foS56D!%V|?dzVM(bhAg$J|9Bw-nL7%`W z#XxnvGhw-_FZztq$J0J1czZdpvH)!PH~#c}g$deog+m*_(O0EK7B`jok5mmZ;< zpXHiTuNASP!c=bZk>AOw*jcZZtcka>*CnWUi3uwL7SDX+`c^r%4gR|0@Kye#ns3o-s6aDrien5d(O0#OqL#`NDMcwLUU1~DiKEg}5=^6sW{Q`mq0QTr=az$tNHG4 zXZuCoL68lg3@Wc>QP2U{3ZCL=uI6ithiN2pmMn5fs2LcXx!g~Fm9$llDs^0)*$SZ8 z6#oDXPq+O40FyvmdLOM!iM_()4EH1f`j9HxIj1Wjj!c9xJcSF>(wU5R{{TOoOvn)Y z#Bu0yKT2-j^Zrd;jz;tp401Zu@$hm$Z)5L73i3af3h!gk4oyD{aK(5%D^redQB-1_ zl;2=#M2wo*E32F{X~=a>1}U2=O3@s$WR)c~YDKNt%O|NK)rF{1r9Epzu5!;ypa0YQ z-TKv8e)U>@wO#tx#xv}>tWzU385yaF#YRRcEe@#4<#I7mk&3WJDl#!#=SpR2ML_Z* zGlUW_1)DopJMxmA>-6mFuSC`Df@o=qNPKoYTnSqc(PaC5^B zm^kCTX4UmOVJj5MkOTh!2{;Gbb)jl~@+55tbL6uI+t{$+AE>CS7OZzdcSX6Qw=XS> z3|biu_!+vZDBv&zfLL%xt}7v;*cDa1n~sbL1b!Xr(yuuO9rIUZg>Iqqkbe3wJitGR zMlis7!)+~&H(;D+rf@S-tP)Kk#|Yfb(MM8!2W*<{p`>MPqXbQy27_msvN3o0lC z7cv~+1?q8*eJjjwY&8Y8gH4gbt(!>ks6JgVAEC`*I8&C59W?4mJsB|5fS1jTZI`sEm}Cdp zkbr;hn$cl??hU|O<>Y2{9&SJDqG66b_^DymG>KDmrK0+w$L1?m80_vw`zwThY~sAy zxpfMQW80yb;we9NPTh=nmMcj<(QS1;n=#<|tL7m-nOrd+T-LRot*U8roB1u;H&PGV zG?@ZFep)r^KB_9%w3P;AR>!CTm-VQlvQ;~+KX${se0Bc-X1ogdJ+*`RA616p6#d*p zQ}ainY5xEalU#*h@g1BVCbmKTwlx;_@hI+Bjl_Skis`JpJE!X7`&Z%Ku4S4JnXTk) zml5Zn1oQs@eF8b_UNH9YJe%&(ywQwF7y-sTyZtJ~vfX{G-N|(rdu}4VfsMVw5sdB_ zoCq{JLrjJHz4T$%tJ2U8AGsnI(HbQ6564=Tc?!AdPXjbTzyl9J!^ zN9FdnV8TY<&ONKouI#yOyjR-a7QPs+g(vo=ke+6lJAAxid(B{X?8#+;>&c&x^-k~b2@?2Lyh$V#~S5zTrH)s}OSip03GkaYbk zp<>jPq$P)IV}HZn8vY{qS8craV_VbIZ7^Rh_SoG*$}r>c$o8*T@IS7zY_cbD$S|sC zIYZ56Tk95*c%wz}^^pR=hNQ2U*YG)ZGXWU#Ifow+NPC! z!LFh>^B9bN`ZMx_HU}jA{{Z6W2ELEgyg8z4nrzy)hUWW6hrCeBD;scJ+TQ{^tEEmz zA;O8%83zs6=jLlusZLgB(9)|0w>=KZ)_aMT(%pB=#|l50_5-=Eoxf;5jF9MheE$Fs zyd`uVSq|Mo>NEG5c=FY=_eVqc{cEZCvGHEx;kSk3@Z>U}@qP3PxAH{W(%54KV?W+* zr1t6QkIdb7T$*>1Nu(_D5=kc{lU{}zgOj^FTJ=+Ht-2U`-lril67}SI<=Zcf>`_>BEWy?AefZdTpA zvcKxv7|-yYYugm=M0Gj9!9J*e&mM-nO0m@TD9_zT4dXuy>Qi5@h_sl5liV;%*kiyg zFd1269mIo@I~><99l(kFtHo=1M+Ib3t@#mN@@&STY}Ss<8*UYpW%iCi9=k}~zlg41 zP1SX4eMW5uS25hYXACBcN{+b5Ah6CD9E==b*Pl^4XnM5f)`;S5*hn&`Bi6JMFm~6h zr-b|st43wIv28M02g^N+lu&(29Irp_)g4FSmx(Mbn^e$bUlM8Yg3Mr0w{fql#h;iC zS0kbUb;x zogKG9TQGL4Yi@$Kp#HVf1$SeZ(2WS|-mD?bFmyTTPu{9xh;EYN;kLyDYF=4b^R_fz zNgePoJL0;b2HlaJ(pO~Xy=C1<6Ruhwue@jCTYn?O+W!FVpn=9-!o(b^FzoUXy@yeNC-KTTO=0h9r9A>t(eO~iRzJpM*l*cp-8CZWK>ImSEO09it zRh%BxMSf5TuQw4%G}ApiJ!YP#*TBii3wVP606^6t)GXK%pDUsJk|F!bN1^=>BEFrmxUlgRnrj+Vn{BxhD}DQR10`hV zr*L`^Uk8c9$xg`od=@4PNf6x3v04ZZ0_6F!XS67OP=DS(rfOSAg^UlVUa?uEJ5^MC z;aKphJ2QHAAFWhny`0~=m5U*iAMSuWvGf3LZ*yAuJTqS14OV0>5Rq($)cxrQ^*sUX zKDFy}`xq)v-R^c&jn_N=yp4NnNTEosbtE2gkK9`?+=Wj}gPgaiJ?iEDp<|}Q_Kj}f zLZoFP9J_k}E0@&#MR2!Gr+9B|)}Ve_Zl9Q-`gO@4m+Mrt-3YbQPdlAQP&hJAIpI&B z9EJJ;n&OnybbFjIq}t|_viwb<;!R@gu+l9TPPXkV{K{9AcX?5R>=Oi!_lcymw$Y{i?vJBIBA&7`1yVhWa&hgN=XH|kzf)(IU0zae z@;#~_68KtH*%q&CPo@X|02N!P))TH{x`t0o0sjESSA;F4+TbX*v;(wIhd+Z51xCv1 zaMzOY=)nj6It5b2L2iscvJ=)aX!qajyGa1^B8o%nuvAZ?>Er|CAjkJqe}#BT-^p)= zj^=yPpEi=)XOD2Azx}#c)M+~r-x>~h$ zXfa-C99^-$l+sLO3A`_9Ym@sK~2dT~h*cQkEQ`@*qsxuV8B+B~u1b>L3F zinsVwW*OMzT_XJu{{T^5s>vQPv{WqxzH_i={n1(bKQmvhUvzm}T5taVTX@*?Rmbc9 z0M@6+q}$2Lr1PKljsg6u)O@(t?x-I@P{>k0MINN$v-W+xEZqQuJ6BMjJuu5b5q+`O?kPK z2^@GYBev8)dJ=u{z!@j7HKeg=)&w=m#LEQ3r?Z5}FDXSmhTkLR3UCLX3&-pZjVy;M`dQ=;K&-pb=Q=POV z_SX?b6z>}>bB5T&e66s6*gfz_%|0o7r41Nd@twmwgZ*iwKE*7|$fSiQB|$upI;bbE zIL!rl9_F-4=QN$xqvd9}noF55(n!UK#sMeTRJL~UUf)A+JjrVut+dME>`!x!->0rA zp);RjiWxb_N~NPYt&2NR0^5F zrz-8O`Q>h2hXmr3xw?-7H1%2)Y2ad-S2>#zYDK2iiq#yFV^*g_6iO_9-RJF8#AW&5?CUc8uHb4 z?F7ph=V3p@KiMbp`c-y{9jar>oxe7D%X@ocAB|o{XdF!m*&^~A)BHj1JJp7^Td-w; zc1(F_hw*2rkK5FC?V6X|q|)DG6ee>>ReNz-k%V9}a0$bIpGrr7t8g$6>MC2gx|PbY z`OO%G82MYb70wX1BP4Vu1dN)Q6_@5#A1TH-J-t0DMM4JA(yWi6@$%kVfKrlb&l{ z&=I|W&N2COlT)-NDK{Uu!|zvS8oa4ZN-tB)#bKjT9IYN-bz>wYmf|luGtmD4ck5Y) zOSGMfz}rWsTK3ERHrQeTgDhED8CX1Q!Hx=?41zJw<6Mp3hE<7@ACbL9ew~ERQ%W^A zKQ_hWZ{nu3IEeJyh}RLgZ>ShQfvd@}Eu`vJz?GPR*boo%r3tA= z)>QmgHT3YzsLfvI$Z6U9QSM*FfC#REFSR8F z^({3n)MGN)xMuf0S;OM75`PmecUa1Q?UVli_3Ff0<;)~C^@}5Vl`4M@hNf7!ORbAo zX-7tmqS|{6MRwU-tc*IvI4aBRGBcW%YZ%LUS8=puyZ6ZHhVBMxj5od=)t6<`w&DC) z`IP%NU(UK1Z1pH2KVX%0D^Bqf^QiY2$sXVu;)Ow<-}neU&!_UPe$xK{Pw`cQYMOBJr;MuI zTlHv|jOVshx`H@AP(aLeF)&lmfJftA6Hc3G>sFe%=@Qu5PiZZb@rms22G)(a8&7ZW zJwdOTJaO<6;5?d-hL~K!#FGVTOLT7sQj6w}-tvdg36fsX_b?vda(@&x z_8hLGkx)f;h})L|hjGFD!LK#qW{+psMoUJ1b6;qYUd$qkFx;Uzjg+I4=og_r!o7wK zc5m6^!uLY*^_#^S>}t_z!0w90FmWua$n%&S0mcS5XQg`&#xIFJ6z~=pn z7PDqRWQU9iBs~t?4ZRXHdQ@O6P&rxr>>BC(zf^ z;qd7r$E#ZDyP4NBGqC{HQzw}=-kGb;xsx?LvO8LfPcRYy#*{zksW@IH_pBHc18<-d=XhCN{d{{VcS$w~f|--v~vV?v{EQ^&N4 zKF@t_&GMzfl+XKPk@<|*yJ*kmz(F}N;|KXyheK~Y&W|jXqxZIjWn6X0IUlIU<6foV zo4DqJJGh2YMOG?5xIiQF>0dQ9b#v$_y=;1Qih|1`9!6Pxh~$C%#Yf`r4nCn`HLWf@ z-RbeXimEZ@L^+l|I+X`{aCjtk7?RCAwlS+^{`7sa!<>B>aBI-CUEXYI0P@!0qsC7~ zlnkzYK{-R}3G}WB#_057?9V6Ab!exJWle=$a;(2AkU<&l3C~^!_EKohY&YL8* z(}l}RyBKrWfu23jUuxi`(=5C%;}fTpWYP82TiYd42b9E>mLNzV80E;vrYpX&vb{-O z2w?kksg)57B#gM>qdhbI5-$2&4ma;Tc!63uMBAhZGp&e`L-wn-}V7o~h1MgtA zRF0%6!Q6*ChB+SK8k^&%f>!HBv-r!W#unx&MSE^|-ZB_Yy zTJzl^EEUMFP155bR1sE=3a@j$uud20U4@v)UuxxSKZMs|X1pzQ#a!~6I%qnNt!&$_ z+zP_C`9Q7MTeq!r#azL=8#b1=nuW|(I&?p1xt*|)=L^SHV~!(U3m>2ykSpjv40vZu z@D;Dy=2ySgFIQ~$jG<0C`EhO|%Z*9kF9)jh>j+qgz2j^Tzj?8*>vAL2Fb$;%#TEtUgJo1pSsSTDnI43*+2|QP%Yg$g1 zsoFj3vqT{b{%j}9b=op=%e0Y>$0EF!!gI~y9}#`J@tS*Y4y>rGPF3$^jI@|N%rM{| zLnbv)7BX5@+AP3a3@n zBKdmbIO7>nl0UDteW@f~ZJPTp9{g9re+%c^duGLQ86sjc+@L?#{EXM%)^Vh|Vih?g za6P}zQP(y0ly*nw*q3Ru%rz)RbC0ca4ux2X@3kl}=Ztj+{Qm%ja#s-LvN**>SX@-9 zG*pSU{x#irOT~A78q~$y06a1clS1byG-s-?#xv+~k@@F@D}pL`&OPy74SE{veH9wI zBkQ-dwDAR{wf=&^w7H2A4vi7uv~D_r$Bg=Z8HZie=krH}^l~Gds2371NMde^4`N3r z(}7+W;LjWCeiFYkLHp}z@Up_k<#g}#BeCuDuX41vu#(IBPePThEwve0rIF5Ljfv(q z^lY31+;h)b`MU6Mlat)~+%~Jy=Y=hCctK97*!l9fz*@O0m(n)@^f9;=y1wW z)uoW;SzGTrdUwK(!?#|fn(-%DM^osiVWm<@wRh2fnC~Xm)=#!-(yis{@}Q61Lf`DE z>PM@709J9;^$l`ok4YQRP8wGGiaj{$eT7rgbZtw;GX19SbQ*SeQNu_FZ(&}kX>Dnx z+oiR#2*L~iIxTTda(n2HW~}MZ(Q7Zk9Oj+jTYF|(o7ekH{hCq2{UiIM>T+wN@}M0u zPjj5rd0Df&sWn`Ep}5Y`>scnc9&f)l%_d1TqD#qk{0&uoG6gJlGdHd?S2h4XNpj<{ zs$PA;$Yaxi$)%#)Am!1On$1vhjHBFQtC&;x8Hdufmh$dCVsLoD$PN6#sD9UWPF=%) zz(D?#(}!cGGN|;@#$1pRyhy^Uh#7wDt@zf{Tsx1OAC*RBJzEP`rL;ODIVGuuB3!(p zP2+Nm1_x>U#tmxQ>iXTMFy2bI=mTyalV+u9q)-fO2d@I4Hy1?ZWFtO+e}!tKle%n9 z5vZ*wr|N8{jQm3%24MOA{A2lyR)l^%)Ih}XqaRgT$YjJ|R zy9W#IcAwn)TkHSod6Si7Ws+G*X1;UI*?WJyuZ^zn9sxxeFfg1*|6)J>xz5E(ZlS(3 z*ae&|!L5<5D^#^|PXO0#l?F}Qvvn8R1Dl%8>I;wvS51_|(ZDQD1EZYs1MMK+oqB$Y zJJ9p6UHphhRAR9YIfBYfjv?;pTbuCF4Jhq z`qN8|=PQ{R>?t?>PyG+CrUwRgdX?5?mJj7}0sz1Cz5KKuqH4yrK)0#jl7Jp_=L40= z8jj;*Cz%DTMIjCe)yppcQtb4VtclX2JIyx5J4c>F)98WcIpi5OGLbf58)=IGo)s~+ zKx|^$no9}a56I5hnfTs_f9K(G;D&In=GrX1lzh`tAzzeV4HDU2Jw7U_a?+v?)+RUd z;!_p?xY-f^+Sju~Q-hjjTj{@F(g6s;>+yv(rE<&Ew7HymUC)bY|72ELR5`B%w^Xkc zVE9jmbIzte{Hpd@N4a%j<^d0IMVD_S_u{smY0>ShZ<}SFee6bbRlfAQE~vBON&@<2 zB-^ohWz+MWh6PhSEPL%j!#4{HQ)xKE^nt(jwEnGJ3yz@w^#G8ulH%JldT?P2Nn30% zj8v?z|=jb@jy;ujrr`WU#wG zAD3IqEZO@>OGv$m^s|gzz`qg7Qk*&s=J{N8{QrGMA&>;|&BhHR+A^z%P*JP@S1*rU zSYX%pf5LgZ`2)4tF4;sZPJ-b^>Pk3+MSRDZ(o&dO_}hHh20_D)knEq4iiZ{t%7UXIkR9UTY=%XCT9(9WeMAX|O<*^tF(j#uRm7PbMYPsS_v zwcy@w51)!*MexHfBK$=E0Lmy-HZ1RcWCz0LFSHgJEQkv+nA~p2k44*4+0;b*>LCPQ zeCfJ#9>HIJPTBmf+Crlabs@OBL^24+odpfHP*l`gV&X8j4g`ux^y}9(x*JVWDU6G0 z+Hp0%*8c3vpm_Ir6dOPu>gE+NE9$+zt~z+b3vPb@(j#FjRG_1iZezp%TjQ&1628PG zDRYEkFuJ}72fC7c)5=BpoUz_38x=Li2Kv}S7gNX<^%h2yn|@QjCPSP{EBQ-w${Dt-88B~trnSG)FK;X|JW97dO9=gMx2oI8EGL#}joItP?ld6DODM~Om~-bSd0 zWfFQ>HFuhF#}H(tKnL*5*Qbs$z}SIg4(eqq=8>!1_9b6BM*Ozg>SGKaX9?2M&fW>z%Ik2+2) zR-eq5^l$M)huD~Z`}y1-IRrg9e4<^b*wNLM!jV;1DVCx`bov^pT&~)a_H{pVT5N&X z=UCfQ)a+mAHe`@neWflJWIbU0U8iIWN?$Ul$H6TxIUvggCZU6J9R;pnaJNP7S7o&@ zH-S5SYOZTB*t|OeM*421tj81T#AwSlmuj#>aOAX1-Ne4AtZEybRXxT7X_~{+#(K2Gm(tBr@y>^^9>)9IG#x*depGZ0zRI%huP+lulsI#GruFR zZ3M9lO0}4IhZt;Wt*AVLMg~j6ntqE-2yy>F3(KhxgW|ZSB~nFy*ILCqUp1$895e8n zz(!Vb%;Pcj%lmbrsGwQ&!^lu!_arf@i@hMqJK-(s_*U-Ibo83)rss*dU4u>>lTwO( zhMxzZ)8alA#vhyi01%u7-sVafN~c2sf6k`=^t(2A3W~VHe)HZLZ)TGm=aN7eF+E=H z8z~eS@x;g+*9G1qn(m-!%?Xw8;tHn-3Xp}Xc7UY)bIrA&>$kn zGUc7U@u&UGtESa`*o_t6=$cwP}>(EJA$0t?;l$VASc|;u~#$1memz zrPnIHO!bIZ++D7hhueq{O|M^}(Sr0Y@x&F3iEM=Gg9Dur0W8Na4LlOwr-?oNbTyz0 zefOXpaoN%V-hEqxf6xsGJ4R=Xa;c5G2Rkuy&#{*wR#}4x7ftcH8MNPkXifhCXmfDS z{dP9)YD@k+WpYLrEMmFg*A|L&ddOxeKa(;v^h7SeQDg@*T>zIAT;m80-qpB&0B-yG zPC;!kIoF+}`>W*53eE)f+G^EB$%>83R5@#}ipMI9?33irgiXeCbVChnW84t9P;pqxgcD@cWte$aXw-G0KBx%bW1> zCDl{w@1Mlt-Hwc8Y0xdIvj!NN0lGMDdzcQ@#J0A$;IVoZK|N0^+C^UAaJ`7^cUz( zif~wcpY=Vq&xHgoKu;9sgYg&`nuRGf=IO)Tqmeq>e^b0$Upu8a@DD(yE{eO>wGlxj zK^tt2+60_zg#9wT;NY-e279!OxDG@h7k;*_8;AAF-HamRh$)^SfhECMh9DW17fjo3 zYpEuOuh_`I)yZ`fX3}FQ^oq$>wwME#<>^Tx^XlWHXEG(AZyx&5@yosT_CWS(>O7M- zeVan{80vlCkY%LVg27w8Q;#HEStPOtMVaDg{!PRl7Z9YhBPZ?`TW#j2LCo^NAb z-6tFImK)J=T}v%ReN}%xjrI)Uqjvb_dYR*mz%5`k>9um zIZ^!j4wH@8y0y?!_obrZMNKqk<*&Z*(JEe!Y{sKOn1BJ zmF{x`Zi^fDMHq1#8`^2z7}4Fj)EE`TYn-uF6fL7>4O$CCaE}JcA}_c`{1Z3zooiQ= zsu~zrUKNO$aoOdNBrd|;5mh&!ZYj;$ea=}-e6gw!rtky!D ztATp>Y+Tp==-%qPNQDALV45^8&6wRa za_Wd%GcH{JR9tl5Z?^ZED~oxIoU$-s2?n56mXv#4LDf5X6xB2>ouxQ62F=^NC!6-w z?d10p|GVU$B#Nr}Pr)l|&alqPDGETF_2l1G01FRznjHv@n>lRF){f+EaU2rfh&)Rr z57qT8a0p&udlwEciaVwCnRg+La&>e+Aa!NeHaMjCtua2>AY7jL*P!9I!KIx_gJM|LsJJG0Eue#x$24erBV8LfbGjZiqqs=ZI z3C}P5p)!~vaRh)QamwlU6fRtHq9y1rm~|6yt%Dy=z2W2oWo+rw@_8w>T(A3U2spdm zQ!o`j0><=WpL;1Ee-Cz;a6>S}!V1L-N&id)XA6TNVZo9m(XZ|%?xf8-mnkX%!0ew1 zpglV^L+q5L7Kh=aV>$9Z18L$2pxIf10F?$34Iog8rTO#NYI$S;&O61!&J)vf{%;G~ zEl4k)2Oy{|1=xb%*%-WY9HwJ?vPJXz>GqqJ%4Li0oA?jja&{~RYDN?XezbUJy>b(J zQs<(pqBV6dRc>0DJ6ww85^r+ye*ko&nRCo$h8{KeBfbPG#QX82 zKAYiWX9?X$4j@BPlNgi43BiCPG_)vQfvYp$U@Hrt!Namuv(H&3?Ty0R!lp{NdMt<~ zw@(8hDGb<4Z4nYQhq4xhDc?eSBRl$!1P>>3&d+5j@DP&O!mJFctWX0ed8Eh-%{WOw zsN{(Tgl}o5Xn-0yW%t6b;voNO*v>g7$P_Y-Zx@Yj3lLTDRfL0Ero#s6A9y09#+U*0 z>ak@IaDp2r45LibM3w?t-l7w1W69QS&48bErcw9NsTTl!{3M9+$c(*gFhXr=w5coK z7nSSRLQ8_OHm*4vQ-mtWG@0>g$kr7Pky60CZqk3?GT7Z%W^R926_#9|kto8gC&!z$ ztb%ryK*2y|h?I%w|5rWMeyDKf72fy2ld^(r`jdfUvRd)c0pxoCQse&tKNhd`siPcE zn(#>Z{;#0?qb*qY&hM@0zs2Z(`f0oWxV-<}wbyW~|94={v!mxW1^wKdSrdR>_umr- zDU8B%Qh)p5jaPcr$nefD>^gdTvfCMTV@O!_)BOwxdNK>;^{>$uOL|A?`R|7b{SP&) z)20l)rcuNo6$R;V>$DIegI2}2C;mG)wJ1|grOiBg6Z(LLOH+Xw;c#;E@rSL+;6DX@ zQ}KFg0#_quqeX4NWPhH z5M)+RQ?)|o;nq5Vcc*DuYrYF(2w(x5`r!@KHGcooi29B}tz2M?KG+w0Ssd2SpsN~H z>)52@ftLxt*ey)jJwDh!aeC(iPuT7s*8LfRB!^?r{>-;@=JsH6hxEFK95;MiqFv53 zr$C)7`1s3=qeX)rt=Kee05!e^;y(#QRJQSx(C?n#tY_mZ`Ur;*n) zjWN!Xg@h0JFX|BZda&w!VWdPs=hX< zwM8YCPNFj>$H`qoUDGT(Pi9M52zy&Htx+i+tJE=5ka4(u_3HMYlJqWFF+(VT6nTV6 z0_$3lQq;`I@07U4+D3JWhFhl(m$c2@F0ZMI@z}!D6POI` z@9Xj?ERnj8V-Nin>msF~1a*=ZpH~YX3g_>yOKF5uGM7eMbUZ~h z=8CHDj(j+he04fnBLX9=&u^03`>5%%s_(qgY`krM#Ux#`kOQqgFToUR0>qdD>As5~v4(de z4=VFcHEB{}h(*`S5$~Uf4AGdjmHFF;FSX3p_C=t9c&hdlhoEp@>u>H*6~cMLTNRBv zM-Q9p+{A1aOA1{K*V?Nqv^i08tC~g8QfT*kLs$(_oai^bqeoJEs-@AI@`chldaq@n znCprZJNR^gTQh@p{h9HtxwgzVt%)UvA`shzMQPadNAj^x34U|=I>QCR`gL0l3GEXq zLxu#AtxR59@py}mpHFLXMU?(XQEo2yt}eXa4mnR|FrgJ>@C$)3bv0Z!|4n48cf!W3 zCc90^rAvud{hanq-gQUzK$C=NhJro8PvGw9)QZ~js^lS5JU9yblrR1RoWGoS^AlYxi}laUabfglXT1Fc1;1i@aCx@9T7bQdhlWs^wrd4-T;#Wh^O_9Mg%vtVy}MB&U;_PSppB@B$!I}Z#)1)uLjJ9 z7|vx$*Vk&=>a$(9e%Swkc$B5o6gju;&ZHWr{H*)05 z@}e1$S~y_tiiR+J4gA&bT*2?dn&I}gWu^)Dve#?2#qwab3 z%;Z89UoWI&Vop~)osnZ)`D;1uyG^zt<~NTEbjp;rTiFQt#kPZy?$bN%zFF-+fmuiY zm#99T7wt<|x-KqhQFqv`ecIMx0zlcc;SgU6w1Zr->AJ!^L;tsK*P7DgiBS)!@4h< z+=F+Tw_d}{5%KAx@dgSP3Ti#zrXuZwDYMz|)=hFU5V^i`Ze1dbr5-iYe5~x*Oe?TM zp7*yeZndNAIYGqLAEY+|s;16M{?-eTI8tTnJqq2KOvW2u+F(2juwMFgE+l{Y-idd< zHNWmI_B9B&0KNFOar3&_o?wK0bD9kOWj{d_r-{50nAM^h%o_|eg32$i4P8X5=wf{X?XUj%4 zs{M$BBQhTLo6XKXF8Ug-Hx`XytcNJ;5Is-Po!fRzB1PEx zEXixsGt&(|bT>^59wSQIpIg!B)L2Ng&C6zvp0`Bb)~lcQjUBD9^gDlu+|;0xZ%#}d zorcfm+2nc%_M4%jb0@E**O86GJxH&n$9yRI_@MafQN#kHT-bi7utPo0g&31FbswC? zV#Wq;57MJ3bc~e8aKjdhjmS%i61By_m{o_*AE`sdD}3ke-7%O>^L033^hAqgc>}Rp zkPPbcQW?deRC0kubT9L$(%BLEp`!hzxB&Y(r z^%z{?goOk9B6w4>OUJ=4!PS%M5Ufps*h7BNfeL0CFIw*}H=#-ZRNDEie0h*m2~yNM z1|&x7BXIipD7XJ*h}!3^bG8c_34MZ!azHbY{-l1_FdtAx{&6`C*N@hR;t|TF<1;Tq zATnjwmzXu|rRzy5*e7|l-|_5W_^p3X>SCtq!hA|BwYsWEyv;EegB)!;*hTzRpIvQK zKbMMf7~S}I>PX7mCmPMNbY{fLq`Pnk1{%>6ZJSSNQ!ZD{pqm2maL;y<@AjOEXjPpp zFtLgYpRdwHk~&xtICVvuaw>p_{aRw38{m=`v;OLGU(daY<&V?u=il75-)xxZ++WgW zz2r;`{Xv(lICE2oZ->86N~!AV086 zsv2JU49xl89Jg@cL{6WbXJYfrf)C<;-c z_T*v0Uat%EV(q}Qb%F(B|I9t1JJo5Xl|$-u)Bc)5=_G#r7i#u~yl|2zy?=#^{r_7> z^CecB+Z4<80<5a+V0xBie1oI++r0sv^|C-KT?#K|69J6*i<5aRyByZ+$wFXNJ}PfY z=`8Fs4J41=taJb~+Jud~zr>}z8zLcwn{R9KGU_jQ}?I~C95jnInIc{)qjX-1Oy^sua2lGboQvPjn3^kY zk-EO^!+HOv*{YBz20lg8)R}8eruyg4XHk~LKi9jZ(f*t?AoQ}I=R5Pb*^(i*C{oIO z__^=D!b$m4J043;W4#=Yg=W4+Y8GXl7eyJVqH%n35z;saD<<{oXYkJzmrtT{TXR*Q zvzw99t`;=Zbkx-z!b4~g;g7f3O&8z@JTBcOEns-M5L{Gn%^}^h+>%y04E)v1utCq? z_u0>N4#i8JrlYHg+M+^>FUV8Svh9Y?a98Q3EXnQ*a%qw)IM8wUgowEWVWj6O(c(6a zR%h?R6y8p9VRqpw2k2ZF3m?)7OxFP!8u;-MEl^H|Q{n6~Uy_u?TGGdbJG0X5 zY|ZfD6rP+wuqQMtI+@jL>3`Aah|&mvxE_G#>cweqH{N}ST^n$C_a3$(CwAi2yMvgS zu(e`x-NPDHDX{-F%ZpjcjyD}c0U9KvRY1yY&-%-3omSt=jr}0{lJ9M~ZsIyBa35d~ z<7L-v{ZvwmZ2izy*3XD~eLN1ZpD6q~Bh3n=*fb~gJO=G9D~^bEK5bctJW^c$0}wGQ zR$ShyEF(j92E_-fw}q>fePHeDtb4W_KAQ2F&}gui!%*Ylh@~R>M|&d^*Rc&GqqB5B z1-a>ApvQC(wOYA_(6**_j21M9DN%EnJrhOGPnh~Re~^`&iLth9T?>dRz9C;_u?>cB zK702%E-VqRd;~E;*5nThF~CuI3srd%3%KgRE`bopFA=ZJwz-aaYs3WVIl>`S4m-~c zi=H3#AvgVeR=oP}9BV(i)gsUw+@1 z1)klb1hckH@ccny% zs%vjMt5@zm=>BjgzFY<#0eO&|Hk(Ea>BH=6Keu6D+(aUK!pIzm8BH;U$M;QN4Ij;J zbuAbhe(Bb&yd|aDaK5wkKr=5@nwgL>7XsT+UC`W>fZEbH)Fw(C%gDhhT7li zls?I{M?80VHQ4C8SPFl(As9&zN)qV2xq?R5$3W|<)&pNpA9?uc3m?khCim9N9X}2| zfg1LW4!1^VTIEg$=X$PPPo_mkkOOcV3hODjD$N1Pn$v3of@8|5GqTQr51Y719{omX zqBpoVxkiNpA`i3lek3#(Vc_O>0mLLfGNtF7w!p}m@#~nr`8yWYWg$!Tzd7bY2y^Nt zITTz$T&(@h1AJDj$!bR$p510A*ZO)WRQJ%1C_1RK|Ub%Vd-sqfa=$!6^GtW|sF$Zglt)q3!AQLEJLsmfaIy)N; zBH4*Sf9w36Jx^Z+-40xSn6ZXqYwzOg)L5fk_v1>^Xh@`BuKQ$@m8R@vJ6DgG)EO~p zr=Ov@KlELW7gd4^W2 z2oH4U`c{YhyVau-H_5}q{ng(O7PD&gP#Xk~+us{)CKk{;R|th~xzHAEs@kp}-}!Fa zFZxEyj!gcvV_(Zu*M5=Lz{4qC+B?0SKdIG|ti;ItO(0sfCIg{g%$&WKK+;~ULNVKR z<+Nk|3kBAlw;D&M!;K8Sq`)0uVz2i!{|};W_PUGRgHf=vFfD>$sP%y>cx!$xk72J~ zUB3y{T`>x)Pu2vqja9)h$8L1eGkfn|P4~g@^~G{^Y~fHS<3&GAs{c3Y68)1~Qqvro zFMpV+kaalZ7{1dwmq(^ZfSdN)N9zF8Y98cdFvqmn<~F8SleBv_4<(F>Y{^Sq-Ud;| zAk%bSq83AMe9Ozq?3koaS2FC#CRvgx39BT@Hx!fTQb{EM)(n>b2y6L-$Q#oQxgYwo z96z+rDAeoM3ruRpaM^POIz@56!GVp`nldy!2Qt_v;9(??Jfn>9O6-mIF|VP2v7xX^ zzs01PYbY$KVE>z%fMmy21;cH80Be^sQk$XMc&GpO?2C)sR=cyZ{az3uPL|A`ObuJc zcPoeOuLmP1utQ@3e`%Wv4r849cPN_R2@O-w&i!P%oQ)#m4r|ROU8EM&r$Y3$&oN~2 zw~3>R;C1KNY%7&P2M2+m`dCgyj)>G>OT=;(zzVoV-v0=NR}g-lP@xxm|4@n5zvp{D zJ#`zerLrv6a>{~&pLKyxADy!mPWPiOFxp=PF0FpqA<)k>SA@}ikY`PLcd@SX4*+aB z_E;TB=kg^;Y~~*0^ol#LLSXqf>KaC70D+4ex*)<>SK9B}&d-6stK5QVV86gliyxBd zxMff_%_0D#4Q)}Fzaj39H@=uV-)wq_Lp7b__Al&3gfy_*KEz>RCn;QTlcgkzfr1`C1lm2wN}_FayzJ2l%R?Z zp6`7-%p~GWGiLoV#(l@u!5!hy@z~U>S2=xh30t$}{@ih;)yM3}u`%uV`hM-W>P^a( z42|RsdMP1wK(9bWtouDTB9~WG3+7tj|GCAb@{o{y(wz-`?ta^<0kg7~iglauJMH zcx!pr^vDYTQIC;&rz8zma5z}rcBkKL%3^guTHuWiZSG5L&%-a!XN`JgP46{=%xN&6 zSmB1^y^FJ%2kgfgw6P<;9KX(_E8or_($qUvGwFJ?@NtUAggmrLhA%_x2u>$6G-$%L zE6+gRc-f&elRfZTi#ylb%P0H%*O5a_+ zEg-nND#5Roc`$a`bW?B>q#I3~LFkSRVFzpAe%u4um7kTc^m6#sYbW=YMSMs9#5ra# z!`ShK(0}=H#aqOyAhp+T&s09_L<7HN`ncajU|@^1(ggQ`a~$C3rV=EnS@7K}c#toS zyig>NXF}eVJQgR31oyRRXg4aF>$A9gEwE`yPcWBdjH>$h3k~Y~heG;L7cYDvA}uBv zdN&26oh1}K z&Nj~}YZ>sT-tw>hRYmn^lbm6X^Y5+*SBJhAVF`5@SF@;mu%pJQ`0vKZOw!#Ne&z1} z-p+O!@o(MdVYX21MX5a*`|pEPfZ&LzThkJ(-M0&*D4Q-?JM!<-%`&#BQQAVezvsJR zjw!ZCIlnOH1dY`xquc3MjsKkQ?`N>U2i#xrx^CD2V~%5c_Q+q-SH~pQMQ{<&rQu0H z)xN4u{$Bl{S#B zR0L>SwIw}l?F-gEr%kc1YYq{UlpiH%?=TR8fSJKQoqOq%a8Rwbs*KF2vJfP+l)?X| z|1uvdSxZ$#g7tM`vq=;TnV}s|%7gP7f1SEImF_5c;#=cm$zTunA!4=0rcl%&^!=|O z?}Ku5nOU*bV0gPxsu^Y^b;a$}A89u9k3mAMi65orM=`e!*G}^$GLlwOAJdM-kxo>; zXI*#Q=@c|;>s8oqraJww!6EMg3{+ni^ z$#RfGex(jUnaM#Q_o-7*W$1!*d;6C>w@&-T!ft9rr6WdUE_(S&CUhkY|DO zqQ1CWqDu7j%?Z)7)hX>e1~dGbsM&o9pynhfc7lKuav2sbP&ik zbFz}YyOUWps$kVjpX?bEc&elO)TBTD5UqRLy*`5Zv7X(B(T|S|ITr$bZ@0;E+NWKU z(X5sV3ihABKQrbtFdlicIxHtvP{o)DpKZhT)*bS?p?DDb(jtE{eC#iIM%N=${iChL z^Dw5WLOesWsSyvT(0H@#nt2}-u1(xWEhwCY%+I9>BJ`%8t^~a?Np!R_ZNY9b9T0&? zP(O=@`!zbC(UiJQ_b%w8-=Mo+SPA_^MGS7652uq%vKP7*DCMZ<sbCkEk2Sw_9N28L7LuQLik{RS*z0eb8Ka1n)flL+P2M@M_i~A>gHx3z}w&%G% z_GuDGZ?#tlmg^Ck?@b@rCQc|w_l>m4 z5=#y9ojy7FVfHp??!3q(M3N0d!poc?t}R0Uve&)-wU4`0lNk#fLDYIxj%!~ znOPg%Df&P=H|+@(k>WP2q^%RjsC@j@*Q0`BS2se*Prs^e2<7fvKn9uT3Ix41SNq0q z{GDp#cos;tZ|CmP?^?|!AlE1d{y*~POYKP%F|l(GV?s&jv_$QjB0AF-_~Xoz8G_oL zSjy5ekWEjOLHV-*XZ7bj5x?}~Bc7*v_QW(?t^k*=zm{}X=|UFO4~AL!6AV~Hp9oz( z5uA1a_w~WHA)AJpWWp92Et&undLXfhrxO-pvX)1mH(CBX8gHWNi)b9d74OPkn!Qv0 z_9r%{49l1xV&80kt+ZFx@A7&EHHyVNrqC1OH>7t!@S#8?48@4{l)raL$HCv8qG6^q zVu(hM5zB)zEVz9BZb~%H^|29pg0Ga@=q+aNmz_pImUSSzb@0+*Kj}_g5S68BonY=> zD^W)6eEIwXi8p@_E$;1ij@ZrMcvqi17-{~cvF8<=CH_Z(x6(1e9q?ezUX4k0ziuKC zinn7EZYul68n?+^*FmJMboe1Y{yc5wir&Yy(5H;pvO#>*7czU9#7T@kQhu9%gJwlI zH`lOgYi^U}eyAikFKbY+|7xvn*~pUVrVxo)50b+d4Utcx&FKCtC+*) zgE8uIbe_PY1P^i$iLcWCwoFT`Q1euW;8yxke*I~UXaN)xI;x0ho4ngVj>3Xa>L(_6h==7>0s}Wrr3^P3bw-mf_;N(+|%?&wA4D-tbHY0 zV<#20SxUl^lapisBLS!zBiyp5y?L~>m4j%Yuf|s7*AU!v&vo9}QHanX2Bl%Q55I`6FdkV~{iRVAb{!A!?fY6)a8_+c zHJM<#r{~d^p$AmCf{Yny;7*@&Jc_35+XQ>1l_>sb$fIAN4|6|xYWD#1aEzRKZchDHWw6TW zD((;5WqaMkaev?*|69B~EK3>R?~*C|x&5j<)aKcUs~a-ke{(hF57s%Cag&8z-h;>B z_mgH}LyfZwd0nlkrsvLHmg>D2pEDvSApzaid``l!6C%H zo+Yt_WjEg%50{Y3Lh|hle@umOSF$#{FnJ$$rkan^;d7ACICFALQ1->WIxRg59!Zow z9_RSSPEv;#;$u9M8SP_8M-iox0ZEL#@K%mdX&XBSrmn;Rf%Sdd^UPk7R30kXr?J^a zg&`GQOd!h&sLt_L>j)vlJLErs+oPf-xpdIh2HiQEw-@uMx)yX|mKRB~%II1@=Tz3` zet#DM@?9kK8QDQeJ7T8fi~Onm`@p`_z-!sv zWP24t4RQR-bfJ*m{6~$}m+ETa?~KAz9Gy>}SX-;l<|0lyh~*u1n=z;Z&ENjjH;ub= z5-UW?X%Dp=>v9G2L-W}^13?Q!ZEamx?3TJ3=a_;;JM~PN+5=k6vpIzy?d5)9?neOc zv@Hw$)#gfnSWf7tA{&L^yJ>#1@tylv=~9{}6%RkpF;Zon#?8iPf@n(iPAosC@%A&4 zyNIA)U&(BmG*!#^=00-uiK~Y8D_E`YF*n8O*7}G%4A{uCL1z5m^!H zXuff&GP2|@UDYl>)c<5zTna9fy-ViyKs$@EjyGMbb}}8jq=y$%BipK_-h7#%l7e*M zmLqoSw0X2EC3*_x^;t?Df`S-nRBBIkxYXWw?V~@3fSrS*isi z)39B*J_ZpbKkf;sbK)v4t>kI4G;Jf;V_cAjswfKuUP)8pg961nhf3cKqJD>4OMqJH~Oe%NB;9+JLHCzN0Ha(+#CnJ2>i)ApEm8vK_ z4Rz7!LGFfFt>RGPx8==Jdt6mMr6Vq5MJMtgC zS51r4q2fOksJx7w3AYlE_m7q!oFh;Ff6-0(|G7Blj1g1@~GQJu+Vh+1GmRqD3)>Y`~z@h`kf9tRK|D>|{ z>4m1jW|`==nqF!lQ9JyKZn)~#h57k&UYue&!j|p}ts5>ak*p^5mImpC0HU&n7rfipxJIwpu$e!E1k7XuLs+$P_ z>B@YCjW1SbDy9lE-q%fEw)vFMgp5a$U5d%1byY2y8Cwbc>=$(wy5fub+*CTEZk~uj z|9TM|uQwg{KCD{d{WrVUcM&+1aGU$MUxyl`zHu{Lv1|NgJd?h;o=cP4C7gO+Iux^8 z#7r;s3Pne=^B4XWLY3JOgl-FW84J>`uiMGi+k7IT9k1f4=q0k8QWN|4t@|1+kBw z{wr#8y&n5Pd4Pse>Z4ee{nmho9Q8K(qh09_wR$-U+N-^(PGv)f*2ru3so9g6>`w>C z*-)#rPcxOZzQ+-fYt#k13hbGFx&a5eU_m3Jf3J;lovm5$RKOX$B;)IJVmS1{*j}|{ zknV--Y=%x_;`bz(cg^X4ZrmD}lL8LvIT(>33}lF~i8mk_Vz6s$zrV?tsa6b5I3TRzu)WaZJ>q>p94kmeNDV%PTQ7dnoORr80uqK$<$1 zC-#xExbr@(4`V~`I*_h0)&C*>(q`-?!ou|S{H2pb+O;Zq*(;~O3tF9Q1IX3UR7cnA zl(qhIJM)5-;xb&Q<6CmVA@5bSn5^%e$TNoTgIPNCTG&Bf3hL?_E;&a{D|aOOY*kP7 zQh~z)ji5K)c@QeA(_f;^q3v#m0i14_t32k^7v@XROzdX7a$HGuH1m&sXYl8-PljUo zR*>FgJx~N!tFt;bME1As&#WMS#aeS|J9bhz#acft>lAvouC z8Y&*Gn7_CyHJi#wvbOwAs_;>>i%=NiiyYnF85_?so&AV3lEA903#fX7f$P^Gh0I?x zCigdF=FVr4LPL^LE%Q$}cQ|C^g^A2K>a|PsS zZ0tN8z>Fs1vBiM;6c9hzfYAp9q<1+o-P% zNb(lmKKJOWrC9l*$NX>&b!}Q(fx$cpi(yCEbq$H12lqY?pm>urU0#unOAj-@5pFyZ z02Xd&>a78(!|tC0;&=2{L53X`5b^sfx&@7_icw)}5hN6WJKh(|P4KFIJF5whIEGx` z4PQTMdKPh*dp7+byBPB0KX1 zpi?9f;{B#3?oYFyz!#RDiCx~6HqR4OjKrD~iyQj&nRnpVmqNw_`o%xxb*|yI{>h^=I_{Sg=YFT4 z@!aJIn3l5s+)8qauFTgXKX@?4rIcX$N-c`-AH& zLjK|lqZV$63Uc%`YWBIEdsUMJV{;b>_u;wbTGHqS@D!?^7S=MtKOreyRu|4%fzBnr zCkC}nG^-TvOi%v_5$QTjwoz*!Y&hTc?AxkGCmcaGplqUKj zL(sAaoO|opdqET}r5mSh^#c*uN_ky*dHVjDr@m6U&XcY^K!DYV;MtqmcGPnHoFDNW zb918A1e_O4-AlMEHJ8i@0GK+wQtqsvU0c$tY|q{}WAE?Dke2GC?X^m=&X*&N*Y229 zVl8RnKQ2E;Z409xv{JKPH%iCECk|nd1do`L$=;0nXg854Pt{itD$5Bnu_TFRcx1xy z5Hy&t|92VbV}yV5jT=~(qlR)?=dI;pQn0HnX&*x>Ne37oLslG;$ZoBjSl8I3DtsJ* zOjq_!&-I>3y*^zLd+iF!H*lCZEvSE!ZxA?1MKWH`<@vc--Fd9q-E@yv3o5*zG2Du? z5cN#=?&EPw^`4zG`&JTXOp;5EZz?IHW&mso9g1cZ`(bPwJTP@}!xZ7)ztB#H=h!3? zOu9x3_|W@dgw{tp0Kj!$W+6ua=&NO>a_;d3?cp=Ti)(XDwAt>pPbd(Vk0N^@Np(Ku zGDUs*ckhqI=985qj%x6pA~HPQ(vf375>T{R8E;G>0{(rVNe2;8%GCya>~eV8aOLlO z#;22d!7!<9E3asQVyQPlbB^pJb9Az=FPc;8yPVzW2hvX5%vdH#25C6DD-_wr4LGuq z_=KiVe_ZqI!*K%37KVwO?dW~?H4Lr87}h8i++*e;^BK)ylpfe|G55B^5tf1z$e{fX zkN6kExnf&-=?iMV9?7s!_4d_{PbIszQQF^))rsI!G7|vvoq(GvlMLp+bxK~50iZwV z$!OYoPr<>4uDJ;Sz9+*|pdMx4zPrcH=)`T(U#Tpp0%MK6C~@0T0iOOl>4kySV_dx3 zu9F)`zwrxtL@PAv3fk?fUn(tYWybF_*lsO?DyK;}MRWxdWh5OIK4=l17k%-mDuq+1 zH~~>clJG9mGqQ-nRn%{X8kxwmCRvmd!|Lq@nkuq=rgQmK)a&hr+p-Q36Jkzp;D$GP zW^tKBpdzAy%3N?;d_*l)G+3;^H9O<4pJDie;G8@hSBBvjFCQkc(`_~KJYAaW-j`?5 z<7h|ki_XRFy%Se7SQz^VQKJ@}{yK60iO6{$UaIw8ocdBX5!|BxmqE0KxTQ5!*!?@okVja>Kc9 zukRk#ceQJyK(>USa`AnLCu$-qBkvKv6Mo2eX#AEGX{R+&UmPBMhxQuf5&JxB^TQdU z%cV3A8~F!-$3Y%dz5R1u3MwoJ)j2GyPhSdrKj}(3@jo5gl;GQ5-UwNy(jil|?jnw0 z%oM+~Oh*#-h0mckMsu|U!#oh1n1@%ts9R!>`e-*)9U*rIE+)4iuWbC=&y`jReC~GD zaml;4^0`L!iNJ^x^lr!plL7U-O6+6jx|S?cxPf9sbu8DeXX$NsEWY}t99=3WJmIdP zhjhl{Rx8fi#`UdZk`vXYm$O0HXZMc~uS!8h;B%3ZUyRgVm9;{?JevAa+$^!nT9ydE z8kfNk_GNq-wS-ICMC$FVq|ivssX1GFVfqwbQC9&v+8p3Xv5Vd!{Aej1TymG=|?=XmC3kyhSBqmKLpMgMYJH&cZ_SDn~T1QGf;2IYe$|2cuL$~$aCqnwr z{;)J_*;wMZ^7Y5iMrI4U{BVeD$YN&E#gMki-jxM!O26B+Q)C zwA4f-DsE46C>hxFj%HSDI&VC7+oDk2oA37}(NIhVKi@dpYSbFoFU=13a8!EDxh^u- zybeQK|8?N##?DsSsGWOx*tX;coKnGo6kqEjC<;PMQ#!9Ep16H5=3ZX&gjjBX%ALGu znki7uhN|9z9Y!46`}t}w)4wPs8emKuC}te&MWC8aRn9A%h-R!CEhXCS>EzU4AP#uaZ6I4)cTC39m769{;@=rC06JZ%8n?^xpw4?tcfk6umt2gx1pkDIqEUJ0$Lc za{HQywH7|YcS$`oL!0a*aeJl`ZhL;!@P0N0o5B8#-;;uEYxMnU)LWfPXkrN>3;sjC zmM%1mHsQ$ZLl#pJaa2N@{$}6F z1xr|)&9YJooK;sT#sWxV5Wn1|{i`bWL;8w~Yf!M)B9@rgii{u%GX2*cv#QShnL9UI zRSrF)VezF=&#w_D&kY?RhOB?Z6Zt%~)FwhvOp~yR2O6W5PwstuQ+LB$=$W4iFm_DF z)@+4&ANb5DXZ@?hwV`m)Nc_oz7-zW#zMOF1k$E`@BUulqLF$mQ&;PJT%?oI{r>M(p z-m$Z%WzQI?0QzdYb@Li~JSc61^yqJ_Eh>ezX>m-uzQ^M|ayp$kT69JguiSPdZ18sl zMI!TfZC14#VC3z)bCDSzxc0GldlgK%kS`k*U42bijL{z29~;hJ2XAD=Z-)FqxJP|vQ@$Mk>O4Z?fK%xmU|E) zPF=}+obyX*O`5VXhk!{e@9j|k51In{bNGbH_`d55p}mpZ>zq|LuoF-F-AIcY$Oeat zjWaWnce|uLx6IJ`@#jNl!@k{c49uF_%KU>-!$G>#yD^d zzI?n{#yF4Sctp7Li#R3f2v%JEIk|vk}_&+777eq-DT27Eeaqf{Q{5)BOj{nH8y%`z|Lb$_J`;I>Mf z;Fh@|k6ut#1)AEu(Mh7>qE?2E(j>f`h^x{|(6&vsZ_45MH~~Lmj?`(Z8jO4>cDpl+g~Y`kK`9qRJYD>5C4TP*iV z$DCRK?+@CYcT|Z4%P=X644Yx~q_=on9E&cpIUV-V+j=xPFN+CVylm71d8guIU7vd^ zHrQ0LP`H|59PfHX8|5|iS)A?w;o$X1Me*{^v)~5k&k5L|!d?*ji9Rn;UbSG;F^EYZ z?-Ok}lyP*vo~)2er2hCvknFI49AJT5nJBZBBGH&3!y$C?u>P~Ja@D9=u^?Rl=KKm+ zwWcqk+Q?8Q{+d@$x*Gia*$Rj_jZ;8y+sW%609VD_kSW7~lP8+=*SC7sLIM>$!Jjl6 z0k)-_KN5V#>JJGdRNZ5j+E-uPZ?1Zj9SAX5o;_O&dL1|{e-=0{F5^z+{?eeYDW_=s zAZY~u9agJZQ~mDO`GM3Ii*;?JN6Rn2Bk1Csb(N*pCAl{&!lN!)H(ZB2YZL5iWfKhZBoX9i<(!=U_Dwr7ZD!tq#kz zikO%Y(``IbB#m&LapiESq#KntiP4gSzuuEhCsOBc-)|c3$Ec#^MAD}=TDiX|HII>0 zLr+lxcXoYUKFlTGuVdD=v0^RHUb5ym2t2%5xPcxSPV$A1_PtLuKYJaM&Xby|&6I#2 zGWUd*Wij&>0OVcKw;5H8RWKWr?2-$=8w@VGq9X~tIj?EBsPH@ZS)Jm@79b;ORABAE zLGqNC>>cys{jyNHUBHBidEk*zPS!h1E^`LB%$iY+tf6s5pR%?)Z|Pf)I!i%z@*RIX zJk0TO(i>{{!9D-eqO?=nJ1~axGG4__Z)ejflz4{EK!}E>cg`g5vQK>GDtey|VP?jo zvYyT8Z=NpoQnQ_=xpZEUVu0XXxd7Sa+TZO>w8?L+jpzQkHFynU`{|yw-+$0SlWEq1 zv(QsJL{3iFf=&bz$xnld^nH`1aV<19D^|U*&UetXdM{okERBd(h3L(-HQB%IDgD~# z0?laG4lf;BGo!Rhu`v^54g9f}t`m5USZA`6J7A~bY|@3Ra)LuX*5C1HBAu=rK~x}x z&BCLOcErs^R#WWHGE|CUOXL}@7Ai1q1`w@6PF`yK^CK6MmS8t{Q#xcFd=esaiZkQr zjKj}DokWl~QLb1k4O~m!^m{vhv$NJ9zW6rQ34E;Ha6)iC&ygCN{H5cXJeND;)$aHq z&+=|Izs+kqu9_f$I`gQO@CUHnHV^jA^RE^T2Qe{sdnw1U>xRnoQ_KeUiYBOCCHJa> z$a%$+`p4LNhV?q{#?)jIjFcu_ysHTM41eX$QYHkwG=XZ!W4$B$aT9M%Ezr%kr0DW! zrHk*uEuZ}=I@1C!!CWzHSHx%^=^^Z(WKUvg)=%KD_=M_YboHKfsv1ZRja9oL5FdsS zR6PIcoQ)=)V&XfCwWY+FlUH45c~n^f4Wd8H@LJ>LJtJ2onj3!2fSQal?rCbMTo-@s zL>065En_CnIcZIjC#x$(7643u&YHK0C4h`2vw<2z7mL*{!hGup2N~@2RbS8sEX3uV z3;{G5J<=8Bzxoe=M|yJA_3HN1skErUsfq#CjfT^egWF#f3!j}*!rD`A(w8yU1ZM-+ zib;tlRX&v}6yG9oWgoR*LlQ*p!(xk{%;On9w78t;mZFC4SJrz!CIA0S}mM+6YYx2qSWU7>JJVa(v7 zz(m*&FJnB@G&QoG2ASTO?w2vCh1ix}#F&gn(X@UEa^JvTJ4QsD@L-N!-}k?0SsDRE zF799>jytMyG%8twce^`%)Y6B@#s_flObsNO$`ZroEXO=zjF8q-CjUm7P8!2br0_M z?4M4WWpW6$SH3&W>!e6E!8p9#*hzXk3Q!$J$nlcO88P3NwFlJqS#u&pEx@dE(ai7w z&`7sBDqYLD*1$3qZaWjTDi8BzLl)H>IdWk{@6B5v&v85bLS7JX8Bcyw`mJm99k~@19R}@P7aXuJ1Hus~Rjq z++R2GOIm83Fxr>PWUZRNN;_#HGc#s*7p^4@le8)xhFa{eo)yljXe~${5Cz!Ddht%9I%J?0*v^8%M z+D*@SGg!|_w-&NOl>Cc_1H-j?^xy-UO#2!pIdyxg$HH2bTw1-|AK>OgE=^c!e=unz z`qKPdaaHt%m8|ZCv(}_J7;Hv`VNneuZ;5NE+3a5)x&Q5cl(P%F|2t(U6|t1)k;Q2a zC}Lxi3QY&Sm}dSraZm2Hm1$eu$&^V?dNwqBs6P44X3~Ev@lVY7&+Y8o%sJr~?6TGK zu~lp?Q$GrARk@uFh76Y9{lT?0;ZloC;3UtpG zX4fm#9Sw;uXB-~IVz?!4%kv>Wsq0ZHzYhJp{-yIvwzQ7!}PSrj-H|O$g9AuL(u#M@Vxv7dhqGl2j>thj1nUG zX7{gnl?giV1~N`V`n1RsrZ%2>25y3b6<8j%CgDG2YK~O2II_0?-TApH#8p8N<^=3- zB->vLkz5hw8GCuxJMjf6zpXbi zz6%LlY9kiNNoyhcDyX$DLwt}oCBYCkVp~Be>q4#h0MOWc686hb2CfY16@BY@;z}u9 zF|qM{Md=5YvU5hBwUV++l{R15yT7j+1%Y8SoXO}NANuS*OnAl&_p$Rzdf<3PH8l+g zB=t!Zuov2MJRBh;*xJmbkdnB#{}nagBK^dj2}pV#pScbn3GSM9(AFo7{eUgZ3E1_< zpjPo{`9*)Px|KYllc#zoM60PmRf=5e9yD!dgnEbl+KO)g$zg0 zi+=a@E&4<@|8)^acj~hI3rQ+P_SAN>&K{hSuNATn)Igi1yRK)FB9`dc7d;3I1Od?0 zdm>jGo4DTg^NvpJ^B$lPau33bA1C!=pB}5myZYwW-HPS6dc6Bfyv_5y3w(!pH-Vp{ zK7*OZPfRBd`g*+ojC`5gqX-P(1dQNtBV+t!Fm-W9+q_OIf}TJ;oH&>ba1OrS6-rJp zH+V6@=yekCWM^B&bfwJ;UoYgP0G+?61H^&*b)@Dwz(XSz+U=-&nx*Q1W9fcYAJd^K zgKEA9iSjCbr=yCN?VxueA27!gQ|8j=l;)NZHV&Y2S!ipO!SOQ3dzn(fLhT-}S#3|U zsgp4OM7Uvi5e3}UF&}S9>f~lgm?=oAbKYQ0{~AxM+u|H!#9L7C>mFMF401ioZ=!O1 zOJg_F%=-os9>NdTWQ_%Ai#xrTjFN1>xY#HhkVjSi&FOtimex+a^wd(Km$n^TPl^&{ z`tc-5Km@wn^1OR6G3cX&*~^M{oV3il&Y2l(GB|UWYT^s?$FhP*aVFC+xXev?+Vp?Urog?NV8;#jCvxtnOh@ z3wiUm?p9uiwlmLxvB-$4PIPLoW0}vI$313NiYyrmO1^QnXo5b5>LpvWHEUUku`K3Q z>aWZI0(+cw^mwOdZb9ef9T=s?KR|?QM1z$FnQCdNro}5NLKMdR8stgZC*Ue%%7Y2y zT4&gq5xwvm=03EferazEGd?cXwsgpT9MATP+3}A+@8yt#3|S<5Ye0PpCI`x%!(#WC z^5?WG?c2)V;)fDz-!8X(O9DOr4qmUtO5ZEnO+LFZ_2Aevt%*OUyMQxYDc8qo#*RN; z-0z2AkPG;tzc!Nn@|ARVA%6mgv>WQlW#{D44&;KOQ$yG1&1kV;pQ=Pi5eZZ2tTDh`$Ah68GwVREWOTIc&Y>IAOx(}uns#ES$!Poel(lDyT%vM9hT?(^R6vret3|fx;yVPbb@t8P zNugzhy>fm~a%|&a{nP)WR}gGh)Ra2D_!}VrF5(B^gN4V5m043E>}+2Q0XL!1rIY|F z3rzYC$d%%gy1|=}L3#0;c;}f~nHng+gZf}l&+4o?fcy%1aRrYw;GEq#B@9PVd7I3z z6v;Q2OBn(1qW;#(F3~{Ne~UC()47i98Pj>r^(NZL-~>h$lp~Gxu50dk(_RNiAQxJE z!jRI$<5d0`u4jE{m|ik`OnBQ7+736>wo0gHcu0sSh~nvb<;`^}%*8y)0#8v}py2U_ z@UIh69yMRvFnICi9rADZ60N?w+Et7F%0Pw2(6}%PtP9$z^VG6bb807C zX?~#OFtDPB$C%DXEW~et+=MckQyhtNiZ2p%D*aW=WT#!~b8%-{4g+>tTW3rkeZ??f zt2LVz|0d7PD|~8k&^Zyu4UaN-BAj+oQ(5i-qZ)ez#uW>jRV9|@_C!(7jE1{kzMMc9 zmGxo!%M_l&-4971^yW>0?aZ|Nr{Jm`HPT&);fXt=^zU9?n&C)c%x_+_Ex5d)`1WQg z6&WddiC5<$jH;nmU6{RJn+cFLE+53Fj&d|t{a`J|xi3pCN7EAWkdda6)}(^%__2Ud zZYRoo@%XW|vHp-#&VG1>;U|Sp2mK{{+zq>uuFUy7;?L!?BJouGG87|k?rh`3YWgp( z4z$^h=qK63Gs$u#D|J#Z^S9;I3++QrTNYg6<@DtYq#l+;yhVo5WdAR;rc4wF9MG}h*;ga;OiPBMgfIF1a6WenVSK?1`&9R=w3ILUJF z``RR%xe*i})YbwCEiUeM*p?CoT}XnEcMmU-_M5;o%-Q4P_^03iIqD}=kbpSv4EX~) zcKJM?u!8S2qQ_{ho=2bX>I-YY^+B6L$M~1@cQ$XGHxqfsFnm&S;po12N*N8UY5ue> zwbQQf^uMJHO3uGwQ(ZZXDc`QOzLvkho$ip;xXK0V?;I#Au|H$Xo8#Rddw0uC%dJHQ zjB51Vi};<#T{+lQc?`V=m*m9q%HH25_cSSW8(fI7Lnpr{H_XVD%nqM%&BqO?iyo6* ze3(-$>L}*$N49*jwlvq(XlnR86dp;W9pBB_NmMXh{D(fYgdtB#bE~X~AWWZRIN}9h zmhQh=^j;Z7xA5BU4zz#Gw7Z1jvSZ-;Zm4c>CY0kzajs6)Yljl(lo^PtKpX`lA6 z5KRPSLD3Nny9URPwOZqw(~dhnf-`qT(_pf4*%LVsCTr-`Dm*>+UYY3YVlgLFZ^F2# zqG##%F3qbp{&~HU)S9+|YwhNK7tmlcec^qQI^Vui6*i)XbXWN)Bubr_+a})XPd9{~ z*Ttd6;Ji?N3llVxGs#w8Vquo$IxJYmKKb_&d)%lOm(-<<2Fu^LKG{O{ub=kL+1vN$AV5dLL|Kt~su=y+sis_Y;FpJl|5I%Dk^3<^$cfY2huRE4Msd zUYFmP7wejA-kuYnJZKd|cXK}G;1+wXPwX2BDJhG*oMfL?hfWss!#;`;Ongh!Tx>?q z|N={nv!c=;v)LJ1&ZXFRSAI#eC)P8UKtu<0| zbN37TCKVgBQb!Rp*mJ#35gJAN71ykfY!iRe#ZrFmX;^6R}>ub}i$x zOJXz+e{txEo5kn89`>`1?ywLs$b1^IyVIL@=#hV0TM&&NDbW7WB9g!acNLQeB0|0 zlkXOO()T%qx@y+zo|X1}10MY`HT0s)K2Y#rTbbwlL(p4gaRzr%gKnMPTVXdrb#TK~ zJ5ofex=MTTQBZr&sEgn~fHmAs@0}c3JE0tE5~ip<7uqR1kvDzezhYTy5?VYL`&H%X z^H{+}zmt8zk_z@*_#kE2PZ3@Wovg#*{b3k;M8$?Mp_Q)icSY3VDzTCiS2s`9qJglI z$o>#RxS$8!MmiKBF-wTmZ8rcOE`jlt6-8gYFqJP~lAZY;Dkf#*?;&VD{j0Ak9rcHd z%Inlis{opQ<-y8k!r_9oY7)?Sib_2NI-D0a*W#V^Ev$$Z6!3!R5LD*%BS^H{L9(kF z^@0T0*Z1q4z#Uky_`|H1v{s-Cr$EQXD;(k$6|jo@OqCH?#VT}xymupTW-;n-aV{NU zx);{A;Le^t=U-f9NR}AC5A5Rl9>gO1oUfEz6L+c3X`_NIM}S;_949i(v)o|xEf%%_ z!-2Xq9)VyxeIa(8+QrU>J3H$@gMtOsD>A%ARMx$-QBhW3eQ`7ZBf+t67voYFBA(qy z-mhIhHu5dIk#3zS3Qifex{e=;npg3)j;gyqCntkw^1PMu)CK z`KHw#yeQVj6g@;;yw=*5;0tn=0dBul4l(H}75gv|NCeSHUhrS{y)X3j?ol~~raP&t zq1*N*{Lz?QeqvZ!!(Pn7&W#`&Z=93WY;>3L_XeDGI)P?s) zVRbz8WEK<{bRlnMczsRATKJF3HSE@IERNyHuUm6m1!+o^yk3^jbIK0?MNq1cp=mNQ z;lQ|J=u`+b4f!(gEko+i)#(U%iUs+jqvjpXld8#X> zDV)j{3;Tmxa?`&M^YuvfmGmPS26KNranbae`D&TBO1r&XGmmw6-pV32*tb5;1Ms89*s$dF0LE7 zvsWnQiRp&lPx}EnS3Fc$({OphQax#Au#%*&Q?g}LYO?~JuwNR_&GeO>SNwnRO|6Z<8`f z?1@mjpV&EvyNvNrMHzAXKDiXFc`Z>N9=Os#i`+Xi9g5#YbTeeZ74(g?xn;2PskU2R`@Mz?BcM(m3p^RvxGXpJj?_SBoV6c&N zVC4W?vEGD3&Bbr{s69cPibc$O=E!SnqMlOSr^U8OYmQUaJP7Aey&w+1Wcp2U1VZJZ zhLe@+o|QFbV`O0G0mcd+(p+j+hpMT^C7biHDm__Apr8K3`&7c2W^B@xzECu~?pJ8p zyT`VA>e{T_HcJ#3qWarq;J&Y6+qfAsQ7W!cmp8KT&JOPRim%I3C5QI-;%={-*ISq5 z@lp}j2tHw{(1ttwtdrtorn)9kk*(r+IG*_GBj@cWbjb9YGtW}t{F}tVTLWUy0tci~ z$nGLmhdz{-VUG)&hILy+9hp7Un+o^KPl{L32eg+khG8L^as@7QtJo)>_IOQZx;odT7(+A~x~;U617&9}jV_kv*zCi3U|W{4q0zkQwlFr6*bXdi!KyL^q# z0j6KN6rE#ZUz8GgZT$SLdHPjMd1}9n_yb++XSB~i1s$zT%7m>CLaaZpD$B-WcCY#C zZG`+&ni6w+9NLeWR?W++F%zwJg){H<{sA-_TO2Bz_^F&!Nc)HV47_GswPHn>E-Iuc z1MNMi=GwJ!W}5U3*r%$Y1v2Cp5joB+P5o4BzgpQwv%HI!N#|iye zbF})rwIs)z&r3h0g$}9J$lu#Cl_erT9xOF{`L=db3}$miIYr4iwo7FEE@g7+nr=1* zJ?ekdq)4r>l=WVvX(xoI7q5RyjwYNC@0P^{Y2dd2|4seZ?7q-Ml}Q<4d+;hohQ2Gb zDrEW3WbomC+OUZdK8Ko@gp>YO$+)cIT&hz;8Wlp5VM;|H2G;@?`Pk$dZf&C3DdCDC z4NZ0pZN=TlPVI&$a$DNDMxw!+PJ01(ncd%3UOO?X@y9U^#(_uO7E_UE+x=@q7rzSo zVEM8%o66)&$_me`cJz#WG2e~>lC)FVL)biWs+nJS0i<6$CsA&A++0RgQHh?3lCF=2 z)Zu}rF=jgc{!bgB2khX9M9H=Qdmo`+ILyNkzeK4$o`Pg$mF%FuLCNwr`MUEmh094P z4`6#`6tlm6C1x6B-N!fEORYkh1${d^*KJntcz6fAP=t4*P0BQ1xwupC6cn=y4V%kr zt-sN9rSW$q#SGxVavWW?Lsu%t=|L^GTJ@hxEf<$GXS!NNPw2se+o`dLwtoP<$^wg& zFB&RYF>6tj{K4;6WSZh!apJH>1RmC|Xa{zTX3W<|$ZRoq#;!og^&`)0C#zKK&27c`XTcJxDkEQrd`l4%rW zi>M(#OW5S#R1LPCyoI^k{DEPlb-!z2Xlo zd)co5d+Jkg$8$X$d+@+ko-gA#LV6Zdaa^|!43ISNbl=}iWOXU_dl25@V=gGB$jR~1 zZJF5A2fHsT*gRW{9Pbrd4nM^kuhjWfU{k{55oB*fjGB~BzoS8947BLWhLEd`Lia&o z$EffRX|_NVHKU~b*_y?QQc2cM;YPS{td|M#!*BQ$!_m8`TEjXewp}OXP&^mT#50v`K zq4S%%XP8l77Y0^sX~X^x@LV6Cn9Q|4mB!+Vz*E(i=lnVQ&u6aGxMJKebtR%ym++JZ zeEd{%)1z;QS}_cNApTjtMu(V!%S~fLy=-NT!F%YmY=-GxqTIu?rSH3 zD`bKODq<3PZ#;^NMpPuw(Cew$oDDvV1D#d{CZBjHOmRtXgUx`vR`~)`Mp4b=ZjaO# z3~CaddPVJ>Qwu>-=U5MD@GKDfdQ|rIt+5ks+5|QG8rO zmBs5mZ-Iwx^)_`oh90$0&P_Sm1jkN_Sv~Gp(%v5A-ZpqQG7IpWz024|TnHTr+|!dN znGNB{VMp5k)zN>>EMcfsntg$7!PwpdETS&KSc2eGPIg%scN(jyPI^v7DJti~_ePB3 zd7NHvQC7l|)p>=!eA2J_&-Wmw;LYccv}BYyxgrsON$$5s?M;1=iV@x7!>`LR`D)iw zfr23vEM7lW&#G|`V&!-T6Na}A&IA<}%!#^sWtPl%cE$SO);+vDWvJ5wz9-%OxGA zN_pY_ZXO;+ZAdZPy8y}suH6EUZxxVbU8tLxe488+dFW)}KR_$&-p$kF^LxpW@;f=N zB%~`I`_<{!gHXn3S@%|5PXV0B40-<|>-pv=HT5V~+9ZaIb$GQ2pWJhRvZ$2^fa^iL z)Gk0vH-B^CMmqe$;;@>5Nngs69uFz0j}t zyXf&YF-4&B56!QKn$?F#;RhPAvjD=gbL^GzmL7gA+`|^0U2j569N&bo0&S|o`WJ7m z-PuE8A@c&1*1$d1HvUeO~Xj5qNA!a}U`?Chz1=%)mtY0m<+=FMb>ImI%{ zr1h!NYvdNC0yZKAXvb3;MECrA+e@(T4wnu0(%+^HM;ct(#R8S9%Y~ErkI6$ z^id(_Q{10YtJx0LPad$la4--o2PU69JqqD(?80QkxsTft%56&MXh!aPPfq(0pExwt z8oJ!geVQG7=F|2*%b~5zVwXL!bVqXuelFaizfK%n@G5vv8+I7j5H-qS7w7m>FQM~= zdA@;cTB~Xs`Ze!@4GrG$a%8Cef!50P?*}uL9rRYCOr27o?YF7`JnUqTFHz3IG@pFT zJwWVbOYtWn!46Nb%hj52TtKrTjQL8rHu80JU#|!)eG4`Ty@8qSa7yFKkW7yr>aT=C zq32>igFew8)@;oU1~2wPPq`L%`&xkc1A>Mdb$m-z3wfLko>w$QcSR|PJnb`ivFT>q z(wnFP<-PcNO8O5ULh1;Mo@w>lWrE{eUJ3KG612Kbb%;H$20IlIDDGTDJ zw817t*rr=;kaU~RDasDp4o<|KZZ*W0mb&}qvQ-kk*fD6$5z3AR@_L<~4fKb0Mu<*u zeT7XGvMu+6V(q`Ub%^G_pCh^~GtcK7NqxY$HS1g2(tLSxvv>SxngC6Te)MeL|Ng63=Q>FiqoX##G zrFOJS-S-dIv@px3=Y7GkYfr{+Rwkp(l`b^tsBf%KHMA6c@E<2;!uJ27Z$JNM0RBHS zuJr%dGNHL}g)i^2b4$1#Iumm-X}wZqgunky-@gIdvQ{wb{V4fsyZNSCO-iEJgTQ6N zW7Zjl000*ak(P z<(fI8sAk{2#57zTh~jHW8~H5*TmBjQ%+~2g4ZPvRGQ5*Ev>d<|_wljR2`}1@*Xr8{ zHW(j2p`RxlqBKDl*oDSq$XVY!UmM?LI?TK2J@42VQd(OmFpRjW2yH+zK8&0&1+U|f zDdgE%)19Sf`dN$p@G?N8PM5_l>x~pKOpmX*DKHMWzo0t=dp@|0EGRXbM!jtzc<5J> z9v8mFoh#HM>V-zEx{Dc~P1oPXkZv$TDx=JCpF&@8s?8K3L@B@viy|5+rb{ag za`-{CLpQF)kfeP5=wYu|@jIIeg-SskC--R3D{ZFF3z-Y|b_q*EX$n$Vq9yc7_6)ka zTp49PV#opVGB=jM@QsY=*16AvKgG-Oufx_nTG*W*ZC3P_ri}JpqyOGlgKa5izDU)B zkhf(k$K_2T!1bSb0Rnl^@3B_^7h=JB*HGi}Wqg9c`rRkI3qHap1}D;uuH$~_8G_*3 zULik23}ek0D`fM^2od+ov?Y5BBc8Gy(2ygA1b*8?pdS2cYU@b)qCL;)&Y}u;h9zjG z&PIZom6;VzWpRO20{Y=V^NvE_!l8C~j)miW$#FtnjjjlZjLd+No9 zMJV$MZVqwgaz*!%8sl(2(NyP!9Zd+PX&99fxVnekYjHrHQcP#CJRNHr;hoz#gxH*8 zB9Hz7QfFScWQ@{G45( zTSy3ViOiJg6cVc5FI~~}n#)0Q@>`GH#E0A3dKK_|Fre3l==@pv+`%LRXyS7RZ&iNhMh4fl zz(-4h^^EacA98GK*`9A9~9?&N{m*n_K%BoXa(ClU;MbK+SxI3EKwk! z|MI(GS1kB+hz;#O0q5u8pWS+FDZWs@->*W4k-5EImm^NK(6v}j(~1&~KLsMS%O|T7 zdrx3LDHgclq%PQ zZ^<@g#qq1jL^)ys0fc{>Ygb=y6bEJy@WW!esc${Cg zm9_K$>&;$gKI0ny-Gp&g#i;T4xzX%$Fu`^DGTUs+o7Ekux9b_r5QL((n|D%KurK;q z)hYXp-|<{utVS0!rb27liiZ5`~xHC#X>{3(^c<`xA*FJ|3SzVNK&{x+D$kE%=-0T_Em_Dhh2pEM8Flyb2 zmvbLmrOqU=mkx`$3xv~Pn8~n*1|8mZ5UX zI<;`8-giHu<1_Z2a<8_XI=kt25WN1V2~1x5(F_@~DXvnOnNi8`(3MZyU6f=@Cg?nv z`1;Y7o8WS1G0T3=1#kS#+h{Qde^>ItrIPXQ>Uy+bp-6|*H-0t0->>lcqNnivZpt#u zc{rSh?F3?DONu%SNc7ad#roRuX`w>53gM-C9^e(3jFE|K7Z>;NDHI&?m;bFk7Rhb_ z_A$H&;dPo{x^Kg5FJGosqb$wJ>MX-!=~b?c8G(-NLhIbM3U?>8+{?@k&G`P04XB)5 zD~|y0{}=JX!*D1g^)jdI16&*(8|_-cYrzl2uosx)jwk|3<)*W2Pjs00qN&Embds4~ zs!1`yKZ_7zEOyDbwpxZ$xP7z9xfq$s;5_~RHG`$Y@%xH_Eplqa@il`}bB$g)TR!@3 zmxgaO9tL2n*LH^SLn2jT5QdqVjOUI%E#L`vKMiAgTUPR4>8lS3$$IH|{Dckq^oKvup75X9aOfV%O1N2_>qZBf;%B?pdbR!Ag}SMdd~mqcVdSl( zJsgnXV*WNDN$uCd3F&-|48zjz zgtau8gGQg%`gM+~ut$QV`d!*UQ>SIR3iV#k#;~gQSNFZtz723#d#r*TRpXZouVL-* zC`F13&p%7jhg^Y+UcR=2G~p);DW6v@8mfd3H~^Nc(CYM+2n&V)&|v!a8N(u-@}MK1 zvb^fBEk;OrJSr9(oaf@zk}|jWeUV(Y|IZNHQo@H&pt(;;J5gt_PQJ3rBOXKGo%MI*IgPAvGgxwkMG_M#kTbX4XPcXgu;n4X4Ys7DgWgbh4+H0~FMEmYe=2!@Wu{Ym9@t&SZKyz*F zgwkR^c11ZaLU#P>a`To-EFitnEfl3BfzT8LAvEbtnj&IoQUVfshcrM49R;O# z0|cb0R6&Z;6h+?OCB8G?H_y!c0fanxZtgv2pLO=$XYaK(l19V)Hk7YbKuA=N`k@i( z>s#LjM$;5ZZ>PSfR_MzaTKPFX{F=8(h{313wSxF|+zf5F&*H>4P(4NTWG1@qcJhxf!L*6#q1`a`8qE$5&Q$!5(#0uwJhg|lCvoU-9ufIjje4~ z5J9i31$Me-Me59kY+LPFo^Ysx;wOx(cO)cUNh_*p{0Z9~$Fp7607A{5U#;P3dUK7V zB7F;^17BpxN;5a2ID|@B$*;U@JTj$?F4b7PyZ+TW0Vhp@{(`kg>yXXUq@lUZuM3)$ z6DaBxrwPViQC)1=3A$!R=+!}gcEg~1;9 z&b}-CqIck0@_4gH^To?ywoSm~5b$!IZEkMxI7`I+#_dgO^6UMN z!kPe>vfQuxNhS0-mQL-bUw-Y`7~7Y!BXn$6xTZQ-P(dhz%mZIjP_jMd3x21!*FZc||Dt^elj^P^AWQvoIb?veDHt*+BTOzLl%33!!}u;__U5zvy$BQQMt8S)lNX+~pJI{;y3 zCGK)s%I~HX9eV?yjjRTV_-P9}FKZHG_%x;Dp|r+1ELP*K zZ4}J*pv53fVe{OJ-$qT|L9HgM45;bG!k9wO7x8UX@0=@V&>E(tI?}e$0|Q~ zIw^2aTI|?{6x#ya089G;~>? z?YFoF(Ff6=R+*lNTrrV(a%X1X)Ttrrzn;=LY|Lxr zu$(ua^-k#z-1zG~r3)==8#&?XlPmu$#s9(89vvTX19eeA2Jfo<$CtX$6Ri)Ye~%e` zTs}bG`~(y6vcTjny~RE)ZpCeiD1K1`S4-lI+w67f)s*2j9mDhlamtZAK4wj@zRZSXO|3g>33HMW)I9Hc4%)D_RSokM;bb8>h(II7x z4Z8i^BEe#d_+jI&Wb;VV2i|y0v;2kUu4m`u=qaVF+dQM*ifZ5ssBgDPSJO;}{RtUX zT&NtK?qAeL15y9b1*ZgCOoIE<#GZ5Qlsl#rKX}`Ac4N2fLDt<@Sd(M}(-N|F&oz){ zmx*-_(WilP8RYLu5OeZi@F7&MBJ>$*+%G#kg`G%KZ*{7yuoUvWQ!J)ZuvqAx(3s2i z(-t_ix~T0wcFQ0-8KIaUyPQ0uajb_pb^Vmfud4+pb-CO%T#%KyN~zbzjn+R#CR9~B zAA*kTfI4Vor~P-8Zs(@In*OhG7M_wdfAg}kb-Z#&i>uzZv8Z3SpB{Qhc?Et9yQ#ds zL!ZU=4;?H}AtGZpmmP&&_?;;ZvusLmHS0ho?%jSyT3|{yeNrb}6UM(XQ0gpM{byfi ziN0iG_e+@&A(7e7dgH?v6<`KIHo1b7m&RaeFDr>Nz8iu(V?jzin`SaTS>_VIMisnM zs&Ym99#E^7tN}If%dLbJgofO$TJbf2*R*%(O6b=S*Dh5hDfG{f@mD%NoE7o~KO$dU z9Zwg8x0G>i@lf^6Pk4_-KK|VAm8?Q*UwnyK!h#ir->Lsoz3sk7dYYXOcb(Fm7KlGBL(QJvW$YTb)~gr1$>y>Rp8g9Z7b0jps=p-##Bv0At$NG zN8a1VD%>$}?{M~d8l*M3Y*&OBtlh*&pHQeV{}XY2{^g?<1a$0ua0<6VnWEq>h|<tDKaxIwekGgx~mw?os6z-Fmr2G0&&zH%AZQ&tL0kybWPr(}8?&_+9$d zIvic|MqY08GJkWdN(6sU_^;6qUjF{74fYL`4RlYZa^y5$6uba)SIGDVkvkE*Bw+0^ zDb1#}BbQL-{?I|CP@~vKsm51Am+%_)_H{@cc1)i|!Se9J0$dzl@A`eH%(^z_;QR}%+mN2F|Sai#nqmhR~lj=|Jl~F;!C9+QjhmW_kw-P zjqiIwQqypz7o=h@YQ74`(6a-p&n`8YooNgL4=z9Tdwp(H^-HqRN9oTNh`PY0cP6%0 zb$wqaoB0iE(r=Aj5;he~s?;s^)F~BDQC+)ro?6v zHTgGr_hGqTNG` zRP>qJ#kKFav~rpwFbJQOhqtx72lX$fo*V=m-r+npi1f5ea-4VF_k3%*WH#_9R2Niy-Z!VF@G@cs4_ zXw^EW$iq(|@ST9!2TZQ~UI)1BfoyUc%Qpv&_GkPr7s6mQ!YPdpSmuQ{9h3+4J~!&b zAB@MRrm03g>8UWPuaD}k21{99e0Wz;sX{bas?;N1=g|_s+b2acQ6ryq7=DTu z4yTN)*q9}wzAU3%Rz0-52_!rx7iVAYB6|MtGS7k382|4?ro%YUsKj*X;{Es=ha82u z?Mn?BF;nM0my|crFGqQGeP{lJ+cc^W9Dau%2u}F?M?;DX_Xpp+W$WAD zJ%n{AsU_ODmMvS2H}JMn#lg-x41}jS61I`s&OUMo zrxG9~rmcYS)M70^6DJkz=9ty4;|fuc&AVYYY~4AARcu^SXL(_U=xR zQyDT-U*$Ml_$a$mQVk1sHC^H)bS0pg&Y7tIs`H3P4(O7#(>G5E9ST|mc#94iPg4m4 zS@#hNVGG%@Z62cD`tk$iBi=3&-LkRga42YhLxQTp=w5||(3Phql!kTYR*MhEbvK0; zupcYZ@i6nu0QF@y?U549v$T0(T!xY$2m;et&Ldc-jjP;)8ri<%!b>kXvDQ&*8J_MA z^|*L!)w$#JG~#XRz8P1^>| zw};)s<_;z6c0Oc-4%te&8VhkUwfKs7TUCVt`moPRz^?=tp0!v$IVH>%CN|~YKNG1~ z;waJI_tiXy(b~tBYmP|&V;!8373T-qvC{3-BxzZUz)hzgIxEeVZB?)tclb;7i7>W6 zhcLg!vtH-^$qroxXA^%^*+v#uO~?#{$UZ139U6Pq;!~o{Sx!}(DT@y?*+e)*`JgwA zJiL${;iBO{aTB$83$^iX#dtzZ)O6$OIaO`!!{@>5*p|il;%h^l33uIzy|xy>X^uv= zVmlkEVKEm#uiU}xO3L!q8B+#yk$GDW{uDn~`9T#>5UZRnO)-o=ze9BOD8OBbv#(iC z^}6|DQbGLnH&XIULMI6|PHE(Jh$04I;`a4D80}FNr77{RcTt|ZPPhq-K5*(xX+W*} zOuTiT)YUyEw$(GdQ!Y^?rP5wMX;o1ScS(b(JY*^_yNr3|keHRDw^VJ!SBIZk%QhGak`ASDtb zT_KBUG2-7V!MZ$rY~xR?{3TBKzt=o@CL$qZ)XRXOYlu%FV7ElA3FvjGKvFiSQt%n9 zy9%R}@+Q+yi@W>)(0hk-Wb(7_p6vcT1e_9fwUN@;Rh>^nM6Ky_@!v)*9124<0Q%M1 zuJ5`-a}aRjNLbt^u;X8sMLm*#q5J8#?E;=o1H2~ax7A;~v-PugB_BQ;zy>9O zhOqY^#rw_MrMP*nD+!mRe@oBD_-*!$63ct*s8d%QTJ#`a*oev>u1cPqd3XQO$61k) z6$8+d>nvdoe`cSoqDEiCY681IezmGAPU@z}U;E-mfy8V^oN-{YS4?QogZ zYYG^6tm0JfZfEt}s=FrEH-03}x8rVhor2z+s=i-n8IvZ9NzO!HF3`P0zVvpT2OyzF z?uOc2tL3^H+R#0z(b=4cK!+=?d-tsdkE^DY78@hrszYXdHax!&O1{rLjd#aB-rRin zQS290w(36n$6_Z!LJ#!oO*Yoaw1%XQ6U@IZzH{9IC@SZ3xXG~e+)Xx0%eYqU6}c(f z9NyohJr3CmLt54AJNT)iO%^)geg`$UHp^USDa%-_XeqxbRom3WWK79g-@??# z&}j;~8RupAQC~W_fmhem+!u)LAC{0=jY_>H67W3~0^hDFoX!dBS~hL?wfs2!5XvK} zsp9FvH$qbWZ{kSecO0q0Px86)Ih&`c5Krd3Pd_SDK$dd7A%S3z>$z1QL}Fx{=_YT5 zKMDU;-eo&HG)tlThb|IvJz?xb77rphpZ?2XmHM*zBmKg>Kb`T6q1FqB82D|@W<_~y zXpPADU6FkR*chVzxtqIOQMWwYqO36!nV4{(d(9zwxrga6D54%v?lf=CxMbBci*QJ` zd_I5(vlCjDGhQEMh!6cLUr@_mlUnD<^dL=3@W&VBF(qXTzGz(oiM#lnPzS+w$1ucs znDh`&>!IVjfW6;n3lLz9vP&a@`xmn|8^A1P8zoy3Hg&!rA^pf*LbmtKw34f<(`=oM z7rG>Nxjuy;f|g$&?#~O7Tq&+u-*(GtN8ZzQx|T4>QmI!5*N``5478E{f?iQTy*EgT ztE_wAa-Dqx7j7e?!&VS^FI1XK(W1fyb&?EDw0w0J#ElcSZ_U0 zqWuJrX5aw+GL{L2$*fpw#N6)%ktlZct`XzhK6if*2FqTTX3pp)hmn(HZO2BewR;HV zmz7q2jZRGEbg4 zY7CN5XW#DHp+RFtjEOeCR7E2zG0*OtiTg0eaan6nJ7{sH@P>@A;)(InR|^OU+|;%2 z!s_G{**Jn%1)ak-%iJrcXZN!Zro+-(OrUJ>W7SC(nPM{1azbBk*bErwYy3W!9p(Kw7wryG{mn1DHOkTFl4*gnkrhgmPxrq0wXQrYB zbc`Hb29^Yb8&8^{cSbjYk`wJOpW69@@`Oz7;_t~!7P05NC3`HnpI2>EZKP~j4Tt#- ziT^_vaB%1+F`)!i|GPi&S@7b1q=h#D+mLGYpO4%7lzNIYaq%}$#o&v-a-{_aiwSkH zuH%=+NA8UCBR5yR_^vqNA5WLBBUo$hxCcJ#oe3k~9Q>)V;dH?2oF?GT zv?w=N>@YIcq94}Z7LYeYw61A*ZXr~5Y!~N0PPx@7LbqI6U*M9X)c^}D4N0|Wu0`0X zPwaa%f1k}LU41SXiv7mmHM~dIE>nG^5sY>;$Y0Wp_~Y}{WXM66yRh-OvZ@gKD#R2L z_bpIv`IiS#t*(1sR8g>=)GOxD5NCAi7kV`=MX8wANV1(LN85{^V&lEkxP(v$c+L^FeU0CFO{PbEjJ0F!f>*jj z#%;Rbao*4nwZ4chX{k^Cu-*KLWrK{QRc!1`ulu^nuBWGuWxP9Y*46I5S_7$t6w~*h)1HsgExQINSWHZZ6t43qmb*ElY|{U@13oAT zkzcyWI7vy5&?8J-an0}!I{qq)f>4O!P8Ol89fr#_CH6MT(>a{i;^>UH&SN&=)ZEb2 zl(WM@P6C;~SR#%o5E7!-;HfVdA=hp#2$%KY5gkdYv%seSQm4FdmccXJm9l`bDs6P-w6m;atj~K@_~!RQUl9<&vYX z;REap#klhqRlRrkm3yM)W6a>3uz18M2L53SgDU1!C<6dp*Zls>+ro0N@_T2Id|uF1 z-5W1Wv~|rfJwWjvdSW2?sv$tHRL&6&a52e*)%1q!mLO6S9+vHyr<&Iy;XqQg8oDTA z4;3v)(m#rT(vU(0=$l@a)wf{viizJzOo;ugaWDS~%`o!2*?5Xnxx7+_nT8}F1&W$X zzC6`pE-IyuPY)|m_>h+G{M5}2bnaHer?8r<_sS=Fx1N#t?)*b10vH@JOcU^qyUMnn z6-#fJTHxl|W#DkB52)T-O5J}@lqyx~1&|`&=-2vy)~*q3^(FgK=N~!<>dTG(Ol=iL z)ZS4^qZW(R8CGYvJeTP_c$M5qda+$nYCbP2epHjB&0swT=oAz`kcAd4AdH7!D8t0= z_WULT@N>JT=$qv z+xemEIhasERhE%Q6~Q$m`-K}Pv=lp#$zx7&o$t_TCkFv>CJ~}@c3i;lr-4jM>$B2l zbKf?eJcp(3teAN701!gy@9WF`GN1t7Ndw z8Pt8iB=o0=&+l?7s#4n>gsUAmQIu!7Z_8Cq+f$Fm$TV4SnR%FAjs>59nv#o7uK!fz z3n~N+4ue+qR!KPS7NxakcYM|@6zi&1wo9vI^v^#z>ia9>n-}B_U6pau+`n<)Y~?gG z(3)Sz8w*hhdO{^w3?w7e6w9um-x35DtI)BA@H6y&sKt=!)u+jFq@+*x{P+z&KeLB8 z7&Qf+#7Y~w|46U=Wp?@W6nETd@{qxWB zURe*a08(IL`9?BDL#h$Tiw3;yuliE8p$dMI`}1V^QtFJMQ_72G(Vg*)oO8Ug$}_-g*l3G=%9j{GsL%~{bCYLK+XTn-*T zB4l3B=A!W!Pwnt@$s(uMC|rNyYiNSb(gP>;?2fxOgz)f^knmQ)L>5N!!gDh9A)*^p!P}~pD zgI+t6+b0>2a4Bz@Yh69)6upQNYZj;EPmW(vgL3R;JYI$aO=;A>5Id53-y9Q?OcpH2 z(Q$G1cxT!GKpN=y6+u~wlo^E`dtxRA9O6yC{g-;~b{vBn)xLp>tOtW<94F5*QES=; z7~PPf1w_cHCWfO3rT-dG3v=9K5%75%Pk`)!RL@C|&!%SZB4iCg5FpNwQ*(*G4gA=e z1xOmdb1pzXev1~<9H3K2ixN7sA0NG@*IFS0BDfWlYB}R2_YZH!uSze*$c@^@LBey! z248JsjjWq8#9#7)3w1)!6Mpj`%g-xX{-WJd>;pOu11_nGW&J_L_M`{Y)o(emc)9RsG|H)@?rwa290j%X zEy;!uo7`@npP+H=)AeFE1Fxhlc-Zu`Q?>u=XV3s0TxC2a@u3E?5J#6Hg#VFn3{MJ! zc|srW!afP@typQlgd(n4X=I#L+J7cz&>y!2l`mo(EH<-x23iKl*HUrx^hNqOxO9M% z`^4mk#P{gdEAEXhVvUvzw@eTJ>|9PS;(av$V@WGq?gEHYI|M!RCe|*8rull}1FJKXpZck|6 zQ{>q3FF^RVel=cDW2q43stoocPB<{Kw` zTqm-laifuea#w)IcoAC0+e^q$6T^{RX;1z_;+U^i

w6-PSXr&iBYJ@-ZJiy)?Y4 zpu4N8Erwo4FRxIrmoJqX^Pt!@$aTe}Mhne+y8*LMQ3p_L*@*_jHiZ*~BaAx(($qAD zmQ8~kMt~4Cpr^1WFS#-iB#C@gbq3XyjwIhTjL`i_iD|`0o-96T+B8$O-?mrc!JWPEG#o{n|29(ju&JH#+oK^QsE9> zG-Ixii@q57+<+f?PFCD%QtsV8O4{WbVRCGbeNe`9s;NyNDG&np*br)Tr}%Y3{6~-; zrok^4*r^$p_*ML@?=ScmJ`V$uEhT<-1{dx#q@d%Yzr=V#t4v-U)F1A;#TD&}S#c!L z%@tAAUGLU!>T_Vi0y`uCk>oRAt42qPKc;KNwRQsL61`FdUqiUv2xZW%_MO6AS+kxc zrYNvS?c{fD#FWPjiXBB8a!q3vQ3QwUC(sFcKUiR0nw*EJk)W3zbCt#$9euZa0wg^| zKpC=Dy3q9s_k62xsbKUX=`7h06K78H8R?qQzFOmEl`B|&<6JmW{cJwLLp`s2Z&c|Iz+>SC3hI|5iRMBXFY|Eq==ML3o8j_(wH zweb8zVUJopzPA}Rxpd!3^n)4AkVZ3){H-+=kiW?*;(zU72AWl@Ao>4=6|&Z`FaEM` zp=fTLp9qAZ+y4jvX>45OW%*6dn_@4{5-}^5?0-HZlXxOcF;NEE=V4d9xsQ@;`WCTC z?@dk2v!iCZzm$vOkugUYa3K$f^Gwaql_?ECM;D+ZVJHZ4>0||{#0F8z$NdEgN{$A) zkTw*R^2YPdrT=x$EYax9|4b0w-^Zn)*R>fx%%mG+u2Cd?fW8(taE7><#73IpVjVFin@#QXW7t(&` z8BG*cnrEWMX>0yA4OAUz>BUS(%PCX$Jm%l1>k!^;#9uR#AC})hOz9yKw2?<2%}7s{BZ->tuHDZVd*NuHl($){m^f-nhdCbE0wqo^Ujm zm#xtrGtADNrxL_I*^~6yl#XMss12xOkiA)tK5RpiW?9{vycauyb(wx#^3G_hX9da4 zp!@F~U`Ltnc^S|Q8Gi6L>lX9JW#Z)VLpd-BK_!6gi(#Mqi%y_4pp}fyz>SpCjKtNz zqUPVGJ~+ntgDIH${G!*?(ZUh1Ljr^uabA=fQBt1?&Yslhz%v3pJWoOfT&9-=&C$wN zN+Yq4s9Xjfmogt_7Is)ob(i!;6&p<5oLlR@YkiHWSoB7doVaW2TrsSt2=n;1mn8VY zaT3E^fg{nX3L7B9yo9}|_8oy9mCiefk{BJyG~kj+^P4nsFnp2^YPsS8?ax-BN@I3q zjF-+QT~Oj#s+ej&&sz9Zzgi8ib237J>eiFoo~d&inZ+_P7FZ5);n4aIE?fM^LL(sS zK&ZR$e{H%%rKs%Q-$%=gHmhSa!<45jo+YloPB87QznNVc+B-4W*DM-G6HW}F(*JdO zkJ)*W4gQ^m(tj84Fsz@p&CxD~S~{9x1xFRurt`E>N72l(fp)JZv|FQUPnZAoM!9wO zkEoGeyiS$=HOyL2(x#~iUYeArK-;_%X_jpm`0Fl=W1e~vu@)NUa&|rd*z@VD|nuaNw+&kyj!a?EiHUQ`&_5oiObeK38Z1_IEIij@AS1rK@*PGyq*UGR|_A9>Zb~ PexjUZruCGDe?I&V*G~fK literal 0 HcmV?d00001 diff --git a/client/dist/assets/index-OqFv3qDw.js b/client/dist/assets/index-OqFv3qDw.js new file mode 100644 index 00000000..223cb7fa --- /dev/null +++ b/client/dist/assets/index-OqFv3qDw.js @@ -0,0 +1,224 @@ +function KS(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Pp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Pr(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var $y={exports:{}},kc={},Ty={exports:{}},be={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var fa=Symbol.for("react.element"),GS=Symbol.for("react.portal"),YS=Symbol.for("react.fragment"),XS=Symbol.for("react.strict_mode"),QS=Symbol.for("react.profiler"),JS=Symbol.for("react.provider"),ZS=Symbol.for("react.context"),eC=Symbol.for("react.forward_ref"),tC=Symbol.for("react.suspense"),nC=Symbol.for("react.memo"),rC=Symbol.for("react.lazy"),Sg=Symbol.iterator;function oC(e){return e===null||typeof e!="object"?null:(e=Sg&&e[Sg]||e["@@iterator"],typeof e=="function"?e:null)}var _y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},jy=Object.assign,Oy={};function Ii(e,t,n){this.props=e,this.context=t,this.refs=Oy,this.updater=n||_y}Ii.prototype.isReactComponent={};Ii.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ii.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Iy(){}Iy.prototype=Ii.prototype;function Ep(e,t,n){this.props=e,this.context=t,this.refs=Oy,this.updater=n||_y}var $p=Ep.prototype=new Iy;$p.constructor=Ep;jy($p,Ii.prototype);$p.isPureReactComponent=!0;var Cg=Array.isArray,My=Object.prototype.hasOwnProperty,Tp={current:null},Ny={key:!0,ref:!0,__self:!0,__source:!0};function Ly(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)My.call(t,r)&&!Ny.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,X=$[G];if(0>>1;Go(ue,F))Uo(ee,ue)?($[G]=ee,$[U]=F,G=U):($[G]=ue,$[Z]=F,G=Z);else if(Uo(ee,F))$[G]=ee,$[U]=F,G=U;else break e}}return _}function o($,_){var F=$.sortIndex-_.sortIndex;return F!==0?F:$.id-_.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],c=[],d=1,f=null,h=3,b=!1,y=!1,v=!1,C=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x($){for(var _=n(c);_!==null;){if(_.callback===null)r(c);else if(_.startTime<=$)r(c),_.sortIndex=_.expirationTime,t(l,_);else break;_=n(c)}}function w($){if(v=!1,x($),!y)if(n(l)!==null)y=!0,z(k);else{var _=n(c);_!==null&&W(w,_.startTime-$)}}function k($,_){y=!1,v&&(v=!1,g(E),E=-1),b=!0;var F=h;try{for(x(_),f=n(l);f!==null&&(!(f.expirationTime>_)||$&&!O());){var G=f.callback;if(typeof G=="function"){f.callback=null,h=f.priorityLevel;var X=G(f.expirationTime<=_);_=e.unstable_now(),typeof X=="function"?f.callback=X:f===n(l)&&r(l),x(_)}else r(l);f=n(l)}if(f!==null)var ce=!0;else{var Z=n(c);Z!==null&&W(w,Z.startTime-_),ce=!1}return ce}finally{f=null,h=F,b=!1}}var P=!1,R=null,E=-1,j=5,T=-1;function O(){return!(e.unstable_now()-T$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function($){switch(h){case 1:case 2:case 3:var _=3;break;default:_=h}var F=h;h=_;try{return $()}finally{h=F}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,_){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var F=h;h=$;try{return _()}finally{h=F}},e.unstable_scheduleCallback=function($,_,F){var G=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0G?($.sortIndex=F,t(c,$),n(l)===null&&$===n(c)&&(v?(g(E),E=-1):v=!0,W(w,F-G))):($.sortIndex=X,t(l,$),y||b||(y=!0,z(k))),$},e.unstable_shouldYield=O,e.unstable_wrapCallback=function($){var _=h;return function(){var F=h;h=_;try{return $.apply(this,arguments)}finally{h=F}}}})(By);Fy.exports=By;var mC=Fy.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var gC=p,un=mC;function q(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zd=Object.prototype.hasOwnProperty,vC=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,kg={},Rg={};function yC(e){return Zd.call(Rg,e)?!0:Zd.call(kg,e)?!1:vC.test(e)?Rg[e]=!0:(kg[e]=!0,!1)}function xC(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function bC(e,t,n,r){if(t===null||typeof t>"u"||xC(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Wt(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var $t={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){$t[e]=new Wt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];$t[t]=new Wt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){$t[e]=new Wt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){$t[e]=new Wt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){$t[e]=new Wt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){$t[e]=new Wt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){$t[e]=new Wt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){$t[e]=new Wt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){$t[e]=new Wt(e,5,!1,e.toLowerCase(),null,!1,!1)});var jp=/[\-:]([a-z])/g;function Op(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(jp,Op);$t[t]=new Wt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(jp,Op);$t[t]=new Wt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(jp,Op);$t[t]=new Wt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){$t[e]=new Wt(e,1,!1,e.toLowerCase(),null,!1,!1)});$t.xlinkHref=new Wt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){$t[e]=new Wt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ip(e,t,n,r){var o=$t.hasOwnProperty(t)?$t[t]:null;(o!==null?o.type!==0:r||!(2a||o[s]!==i[a]){var l=` +`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{nd=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ms(e):""}function SC(e){switch(e.tag){case 5:return ms(e.type);case 16:return ms("Lazy");case 13:return ms("Suspense");case 19:return ms("SuspenseList");case 0:case 2:case 15:return e=rd(e.type,!1),e;case 11:return e=rd(e.type.render,!1),e;case 1:return e=rd(e.type,!0),e;default:return""}}function rf(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Xo:return"Fragment";case Yo:return"Portal";case ef:return"Profiler";case Mp:return"StrictMode";case tf:return"Suspense";case nf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Hy:return(e.displayName||"Context")+".Consumer";case Uy:return(e._context.displayName||"Context")+".Provider";case Np:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Lp:return t=e.displayName||null,t!==null?t:rf(e.type)||"Memo";case Lr:t=e._payload,e=e._init;try{return rf(e(t))}catch{}}return null}function CC(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return rf(t);case 8:return t===Mp?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Zr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function qy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function wC(e){var t=qy(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Na(e){e._valueTracker||(e._valueTracker=wC(e))}function Ky(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=qy(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Il(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function of(e,t){var n=t.checked;return et({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Eg(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Zr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Gy(e,t){t=t.checked,t!=null&&Ip(e,"checked",t,!1)}function sf(e,t){Gy(e,t);var n=Zr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?af(e,t.type,n):t.hasOwnProperty("defaultValue")&&af(e,t.type,Zr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function $g(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function af(e,t,n){(t!=="number"||Il(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var gs=Array.isArray;function li(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=La.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function As(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ss={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},kC=["Webkit","ms","Moz","O"];Object.keys(Ss).forEach(function(e){kC.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ss[t]=Ss[e]})});function Jy(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ss.hasOwnProperty(e)&&Ss[e]?(""+t).trim():t+"px"}function Zy(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Jy(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var RC=et({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function uf(e,t){if(t){if(RC[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(q(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(q(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(q(61))}if(t.style!=null&&typeof t.style!="object")throw Error(q(62))}}function df(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ff=null;function Ap(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var pf=null,ci=null,ui=null;function jg(e){if(e=ma(e)){if(typeof pf!="function")throw Error(q(280));var t=e.stateNode;t&&(t=Tc(t),pf(e.stateNode,e.type,t))}}function e1(e){ci?ui?ui.push(e):ui=[e]:ci=e}function t1(){if(ci){var e=ci,t=ui;if(ui=ci=null,jg(e),t)for(e=0;e>>=0,e===0?32:31-(LC(e)/AC|0)|0}var Aa=64,za=4194304;function vs(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Al(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=vs(a):(i&=s,i!==0&&(r=vs(i)))}else s=n&~o,s!==0?r=vs(s):i!==0&&(r=vs(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function pa(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Vn(t),e[t]=n}function BC(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=ws),Fg=" ",Bg=!1;function S1(e,t){switch(e){case"keyup":return mw.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function C1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Qo=!1;function vw(e,t){switch(e){case"compositionend":return C1(t);case"keypress":return t.which!==32?null:(Bg=!0,Fg);case"textInput":return e=t.data,e===Fg&&Bg?null:e;default:return null}}function yw(e,t){if(Qo)return e==="compositionend"||!Vp&&S1(e,t)?(e=x1(),pl=Wp=Fr=null,Qo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Vg(n)}}function P1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?P1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function E1(){for(var e=window,t=Il();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Il(e.document)}return t}function qp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Ew(e){var t=E1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&P1(n.ownerDocument.documentElement,n)){if(r!==null&&qp(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=qg(n,i);var s=qg(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Jo=null,xf=null,Rs=null,bf=!1;function Kg(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;bf||Jo==null||Jo!==Il(r)||(r=Jo,"selectionStart"in r&&qp(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Rs&&Us(Rs,r)||(Rs=r,r=Fl(xf,"onSelect"),0ti||(e.current=Pf[ti],Pf[ti]=null,ti--)}function Be(e,t){ti++,Pf[ti]=e.current,e.current=t}var eo={},It=no(eo),Kt=no(!1),Ro=eo;function yi(e,t){var n=e.type.contextTypes;if(!n)return eo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Gt(e){return e=e.childContextTypes,e!=null}function Wl(){Ue(Kt),Ue(It)}function ev(e,t,n){if(It.current!==eo)throw Error(q(168));Be(It,t),Be(Kt,n)}function L1(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(q(108,CC(e)||"Unknown",o));return et({},n,r)}function Ul(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||eo,Ro=It.current,Be(It,e),Be(Kt,Kt.current),!0}function tv(e,t,n){var r=e.stateNode;if(!r)throw Error(q(169));n?(e=L1(e,t,Ro),r.__reactInternalMemoizedMergedChildContext=e,Ue(Kt),Ue(It),Be(It,e)):Ue(Kt),Be(Kt,n)}var hr=null,_c=!1,vd=!1;function A1(e){hr===null?hr=[e]:hr.push(e)}function Dw(e){_c=!0,A1(e)}function ro(){if(!vd&&hr!==null){vd=!0;var e=0,t=Ne;try{var n=hr;for(Ne=1;e>=s,o-=s,gr=1<<32-Vn(t)+o|n<E?(j=R,R=null):j=R.sibling;var T=h(g,R,x[E],w);if(T===null){R===null&&(R=j);break}e&&R&&T.alternate===null&&t(g,R),m=i(T,m,E),P===null?k=T:P.sibling=T,P=T,R=j}if(E===x.length)return n(g,R),Ge&&fo(g,E),k;if(R===null){for(;EE?(j=R,R=null):j=R.sibling;var O=h(g,R,T.value,w);if(O===null){R===null&&(R=j);break}e&&R&&O.alternate===null&&t(g,R),m=i(O,m,E),P===null?k=O:P.sibling=O,P=O,R=j}if(T.done)return n(g,R),Ge&&fo(g,E),k;if(R===null){for(;!T.done;E++,T=x.next())T=f(g,T.value,w),T!==null&&(m=i(T,m,E),P===null?k=T:P.sibling=T,P=T);return Ge&&fo(g,E),k}for(R=r(g,R);!T.done;E++,T=x.next())T=b(R,g,E,T.value,w),T!==null&&(e&&T.alternate!==null&&R.delete(T.key===null?E:T.key),m=i(T,m,E),P===null?k=T:P.sibling=T,P=T);return e&&R.forEach(function(M){return t(g,M)}),Ge&&fo(g,E),k}function C(g,m,x,w){if(typeof x=="object"&&x!==null&&x.type===Xo&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Ma:e:{for(var k=x.key,P=m;P!==null;){if(P.key===k){if(k=x.type,k===Xo){if(P.tag===7){n(g,P.sibling),m=o(P,x.props.children),m.return=g,g=m;break e}}else if(P.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Lr&&ov(k)===P.type){n(g,P.sibling),m=o(P,x.props),m.ref=ns(g,P,x),m.return=g,g=m;break e}n(g,P);break}else t(g,P);P=P.sibling}x.type===Xo?(m=Co(x.props.children,g.mode,w,x.key),m.return=g,g=m):(w=Sl(x.type,x.key,x.props,null,g.mode,w),w.ref=ns(g,m,x),w.return=g,g=w)}return s(g);case Yo:e:{for(P=x.key;m!==null;){if(m.key===P)if(m.tag===4&&m.stateNode.containerInfo===x.containerInfo&&m.stateNode.implementation===x.implementation){n(g,m.sibling),m=o(m,x.children||[]),m.return=g,g=m;break e}else{n(g,m);break}else t(g,m);m=m.sibling}m=Rd(x,g.mode,w),m.return=g,g=m}return s(g);case Lr:return P=x._init,C(g,m,P(x._payload),w)}if(gs(x))return y(g,m,x,w);if(Qi(x))return v(g,m,x,w);Va(g,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,m!==null&&m.tag===6?(n(g,m.sibling),m=o(m,x),m.return=g,g=m):(n(g,m),m=kd(x,g.mode,w),m.return=g,g=m),s(g)):n(g,m)}return C}var bi=B1(!0),W1=B1(!1),ql=no(null),Kl=null,oi=null,Xp=null;function Qp(){Xp=oi=Kl=null}function Jp(e){var t=ql.current;Ue(ql),e._currentValue=t}function Tf(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function fi(e,t){Kl=e,Xp=oi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(qt=!0),e.firstContext=null)}function $n(e){var t=e._currentValue;if(Xp!==e)if(e={context:e,memoizedValue:t,next:null},oi===null){if(Kl===null)throw Error(q(308));oi=e,Kl.dependencies={lanes:0,firstContext:e}}else oi=oi.next=e;return t}var vo=null;function Zp(e){vo===null?vo=[e]:vo.push(e)}function U1(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Zp(t)):(n.next=o.next,o.next=n),t.interleaved=n,Cr(e,r)}function Cr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Ar=!1;function eh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function H1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function xr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Gr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,$e&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Cr(e,n)}return o=r.interleaved,o===null?(t.next=t,Zp(r)):(t.next=o.next,o.next=t),r.interleaved=t,Cr(e,n)}function ml(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Dp(e,n)}}function iv(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Gl(e,t,n,r){var o=e.updateQueue;Ar=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,c=l.next;l.next=null,s===null?i=c:s.next=c,s=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==s&&(a===null?d.firstBaseUpdate=c:a.next=c,d.lastBaseUpdate=l))}if(i!==null){var f=o.baseState;s=0,d=c=l=null,a=i;do{var h=a.lane,b=a.eventTime;if((r&h)===h){d!==null&&(d=d.next={eventTime:b,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,v=a;switch(h=t,b=n,v.tag){case 1:if(y=v.payload,typeof y=="function"){f=y.call(b,f,h);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=v.payload,h=typeof y=="function"?y.call(b,f,h):y,h==null)break e;f=et({},f,h);break e;case 2:Ar=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=o.effects,h===null?o.effects=[a]:h.push(a))}else b={eventTime:b,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(c=d=b,l=f):d=d.next=b,s|=h;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;h=a,a=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(!0);if(d===null&&(l=f),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);$o|=s,e.lanes=s,e.memoizedState=f}}function sv(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=xd.transition;xd.transition={};try{e(!1),t()}finally{Ne=n,xd.transition=r}}function ax(){return Tn().memoizedState}function Uw(e,t,n){var r=Xr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},lx(e))cx(t,n);else if(n=U1(e,t,n,r),n!==null){var o=Dt();qn(n,e,r,o),ux(n,t,r)}}function Hw(e,t,n){var r=Xr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(lx(e))cx(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,Gn(a,s)){var l=t.interleaved;l===null?(o.next=o,Zp(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=U1(e,t,o,r),n!==null&&(o=Dt(),qn(n,e,r,o),ux(n,t,r))}}function lx(e){var t=e.alternate;return e===Je||t!==null&&t===Je}function cx(e,t){Ps=Xl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ux(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Dp(e,n)}}var Ql={readContext:$n,useCallback:Tt,useContext:Tt,useEffect:Tt,useImperativeHandle:Tt,useInsertionEffect:Tt,useLayoutEffect:Tt,useMemo:Tt,useReducer:Tt,useRef:Tt,useState:Tt,useDebugValue:Tt,useDeferredValue:Tt,useTransition:Tt,useMutableSource:Tt,useSyncExternalStore:Tt,useId:Tt,unstable_isNewReconciler:!1},Vw={readContext:$n,useCallback:function(e,t){return Zn().memoizedState=[e,t===void 0?null:t],e},useContext:$n,useEffect:lv,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,vl(4194308,4,nx.bind(null,t,e),n)},useLayoutEffect:function(e,t){return vl(4194308,4,e,t)},useInsertionEffect:function(e,t){return vl(4,2,e,t)},useMemo:function(e,t){var n=Zn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Zn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Uw.bind(null,Je,e),[r.memoizedState,e]},useRef:function(e){var t=Zn();return e={current:e},t.memoizedState=e},useState:av,useDebugValue:lh,useDeferredValue:function(e){return Zn().memoizedState=e},useTransition:function(){var e=av(!1),t=e[0];return e=Ww.bind(null,e[1]),Zn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Je,o=Zn();if(Ge){if(n===void 0)throw Error(q(407));n=n()}else{if(n=t(),bt===null)throw Error(q(349));Eo&30||G1(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,lv(X1.bind(null,r,i,e),[e]),r.flags|=2048,Qs(9,Y1.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Zn(),t=bt.identifierPrefix;if(Ge){var n=vr,r=gr;n=(r&~(1<<32-Vn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ys++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[nr]=t,e[qs]=r,bx(e,t,!1,!1),t.stateNode=e;e:{switch(s=df(n,r),n){case"dialog":We("cancel",e),We("close",e),o=r;break;case"iframe":case"object":case"embed":We("load",e),o=r;break;case"video":case"audio":for(o=0;owi&&(t.flags|=128,r=!0,rs(i,!1),t.lanes=4194304)}else{if(!r)if(e=Yl(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),rs(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Ge)return _t(t),null}else 2*st()-i.renderingStartTime>wi&&n!==1073741824&&(t.flags|=128,r=!0,rs(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=st(),t.sibling=null,n=Xe.current,Be(Xe,r?n&1|2:n&1),t):(_t(t),null);case 22:case 23:return hh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?on&1073741824&&(_t(t),t.subtreeFlags&6&&(t.flags|=8192)):_t(t),null;case 24:return null;case 25:return null}throw Error(q(156,t.tag))}function Zw(e,t){switch(Gp(t),t.tag){case 1:return Gt(t.type)&&Wl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Si(),Ue(Kt),Ue(It),rh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return nh(t),null;case 13:if(Ue(Xe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(q(340));xi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ue(Xe),null;case 4:return Si(),null;case 10:return Jp(t.type._context),null;case 22:case 23:return hh(),null;case 24:return null;default:return null}}var Ka=!1,Ot=!1,ek=typeof WeakSet=="function"?WeakSet:Set,te=null;function ii(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){it(e,t,r)}else n.current=null}function zf(e,t,n){try{n()}catch(r){it(e,t,r)}}var xv=!1;function tk(e,t){if(Sf=zl,e=E1(),qp(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,c=0,d=0,f=e,h=null;t:for(;;){for(var b;f!==n||o!==0&&f.nodeType!==3||(a=s+o),f!==i||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(b=f.firstChild)!==null;)h=f,f=b;for(;;){if(f===e)break t;if(h===n&&++c===o&&(a=s),h===i&&++d===r&&(l=s),(b=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=b}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Cf={focusedElem:e,selectionRange:n},zl=!1,te=t;te!==null;)if(t=te,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,te=e;else for(;te!==null;){t=te;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var v=y.memoizedProps,C=y.memoizedState,g=t.stateNode,m=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:Fn(t.type,v),C);g.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(q(163))}}catch(w){it(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,te=e;break}te=t.return}return y=xv,xv=!1,y}function Es(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&zf(t,n,i)}o=o.next}while(o!==r)}}function Ic(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Df(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function wx(e){var t=e.alternate;t!==null&&(e.alternate=null,wx(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[nr],delete t[qs],delete t[Rf],delete t[Aw],delete t[zw])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function kx(e){return e.tag===5||e.tag===3||e.tag===4}function bv(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||kx(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ff(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Bl));else if(r!==4&&(e=e.child,e!==null))for(Ff(e,t,n),e=e.sibling;e!==null;)Ff(e,t,n),e=e.sibling}function Bf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Bf(e,t,n),e=e.sibling;e!==null;)Bf(e,t,n),e=e.sibling}var Rt=null,Bn=!1;function jr(e,t,n){for(n=n.child;n!==null;)Rx(e,t,n),n=n.sibling}function Rx(e,t,n){if(rr&&typeof rr.onCommitFiberUnmount=="function")try{rr.onCommitFiberUnmount(Rc,n)}catch{}switch(n.tag){case 5:Ot||ii(n,t);case 6:var r=Rt,o=Bn;Rt=null,jr(e,t,n),Rt=r,Bn=o,Rt!==null&&(Bn?(e=Rt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Rt.removeChild(n.stateNode));break;case 18:Rt!==null&&(Bn?(e=Rt,n=n.stateNode,e.nodeType===8?gd(e.parentNode,n):e.nodeType===1&&gd(e,n),Bs(e)):gd(Rt,n.stateNode));break;case 4:r=Rt,o=Bn,Rt=n.stateNode.containerInfo,Bn=!0,jr(e,t,n),Rt=r,Bn=o;break;case 0:case 11:case 14:case 15:if(!Ot&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&zf(n,t,s),o=o.next}while(o!==r)}jr(e,t,n);break;case 1:if(!Ot&&(ii(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){it(n,t,a)}jr(e,t,n);break;case 21:jr(e,t,n);break;case 22:n.mode&1?(Ot=(r=Ot)||n.memoizedState!==null,jr(e,t,n),Ot=r):jr(e,t,n);break;default:jr(e,t,n)}}function Sv(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ek),t.forEach(function(r){var o=uk.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Dn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=st()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*rk(r/1960))-r,10e?16:e,Br===null)var r=!1;else{if(e=Br,Br=null,ec=0,$e&6)throw Error(q(331));var o=$e;for($e|=4,te=e.current;te!==null;){var i=te,s=i.child;if(te.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lst()-fh?So(e,0):dh|=n),Yt(e,t)}function Ix(e,t){t===0&&(e.mode&1?(t=za,za<<=1,!(za&130023424)&&(za=4194304)):t=1);var n=Dt();e=Cr(e,t),e!==null&&(pa(e,t,n),Yt(e,n))}function ck(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ix(e,n)}function uk(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(q(314))}r!==null&&r.delete(t),Ix(e,n)}var Mx;Mx=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Kt.current)qt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return qt=!1,Qw(e,t,n);qt=!!(e.flags&131072)}else qt=!1,Ge&&t.flags&1048576&&z1(t,Vl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;yl(e,t),e=t.pendingProps;var o=yi(t,It.current);fi(t,n),o=ih(null,t,r,e,o,n);var i=sh();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Gt(r)?(i=!0,Ul(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,eh(t),o.updater=Oc,t.stateNode=o,o._reactInternals=t,jf(t,r,e,n),t=Mf(null,t,r,!0,i,n)):(t.tag=0,Ge&&i&&Kp(t),At(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(yl(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=fk(r),e=Fn(r,e),o){case 0:t=If(null,t,r,e,n);break e;case 1:t=gv(null,t,r,e,n);break e;case 11:t=hv(null,t,r,e,n);break e;case 14:t=mv(null,t,r,Fn(r.type,e),n);break e}throw Error(q(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Fn(r,o),If(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Fn(r,o),gv(e,t,r,o,n);case 3:e:{if(vx(t),e===null)throw Error(q(387));r=t.pendingProps,i=t.memoizedState,o=i.element,H1(e,t),Gl(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Ci(Error(q(423)),t),t=vv(e,t,r,n,o);break e}else if(r!==o){o=Ci(Error(q(424)),t),t=vv(e,t,r,n,o);break e}else for(an=Kr(t.stateNode.containerInfo.firstChild),ln=t,Ge=!0,Wn=null,n=W1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(xi(),r===o){t=wr(e,t,n);break e}At(e,t,r,n)}t=t.child}return t;case 5:return V1(t),e===null&&$f(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,wf(r,o)?s=null:i!==null&&wf(r,i)&&(t.flags|=32),gx(e,t),At(e,t,s,n),t.child;case 6:return e===null&&$f(t),null;case 13:return yx(e,t,n);case 4:return th(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=bi(t,null,r,n):At(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Fn(r,o),hv(e,t,r,o,n);case 7:return At(e,t,t.pendingProps,n),t.child;case 8:return At(e,t,t.pendingProps.children,n),t.child;case 12:return At(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,Be(ql,r._currentValue),r._currentValue=s,i!==null)if(Gn(i.value,s)){if(i.children===o.children&&!Kt.current){t=wr(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=xr(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Tf(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(q(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Tf(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}At(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,fi(t,n),o=$n(o),r=r(o),t.flags|=1,At(e,t,r,n),t.child;case 14:return r=t.type,o=Fn(r,t.pendingProps),o=Fn(r.type,o),mv(e,t,r,o,n);case 15:return hx(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Fn(r,o),yl(e,t),t.tag=1,Gt(r)?(e=!0,Ul(t)):e=!1,fi(t,n),dx(t,r,o),jf(t,r,o,n),Mf(null,t,r,!0,e,n);case 19:return xx(e,t,n);case 22:return mx(e,t,n)}throw Error(q(156,t.tag))};function Nx(e,t){return l1(e,t)}function dk(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function wn(e,t,n,r){return new dk(e,t,n,r)}function gh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function fk(e){if(typeof e=="function")return gh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Np)return 11;if(e===Lp)return 14}return 2}function Qr(e,t){var n=e.alternate;return n===null?(n=wn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Sl(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")gh(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Xo:return Co(n.children,o,i,t);case Mp:s=8,o|=8;break;case ef:return e=wn(12,n,t,o|2),e.elementType=ef,e.lanes=i,e;case tf:return e=wn(13,n,t,o),e.elementType=tf,e.lanes=i,e;case nf:return e=wn(19,n,t,o),e.elementType=nf,e.lanes=i,e;case Vy:return Nc(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Uy:s=10;break e;case Hy:s=9;break e;case Np:s=11;break e;case Lp:s=14;break e;case Lr:s=16,r=null;break e}throw Error(q(130,e==null?e:typeof e,""))}return t=wn(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Co(e,t,n,r){return e=wn(7,e,r,t),e.lanes=n,e}function Nc(e,t,n,r){return e=wn(22,e,r,t),e.elementType=Vy,e.lanes=n,e.stateNode={isHidden:!1},e}function kd(e,t,n){return e=wn(6,e,null,t),e.lanes=n,e}function Rd(e,t,n){return t=wn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function pk(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=id(0),this.expirationTimes=id(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=id(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function vh(e,t,n,r,o,i,s,a,l){return e=new pk(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=wn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},eh(i),e}function hk(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Dx)}catch(e){console.error(e)}}Dx(),Dy.exports=pn;var Sh=Dy.exports;const Xa=Pp(Sh);var Tv=Sh;Jd.createRoot=Tv.createRoot,Jd.hydrateRoot=Tv.hydrateRoot;function Fx(e,t){return function(){return e.apply(t,arguments)}}const{toString:xk}=Object.prototype,{getPrototypeOf:Ch}=Object,Fc=(e=>t=>{const n=xk.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Xn=e=>(e=e.toLowerCase(),t=>Fc(t)===e),Bc=e=>t=>typeof t===e,{isArray:Li}=Array,Zs=Bc("undefined");function bk(e){return e!==null&&!Zs(e)&&e.constructor!==null&&!Zs(e.constructor)&&Pn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Bx=Xn("ArrayBuffer");function Sk(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Bx(e.buffer),t}const Ck=Bc("string"),Pn=Bc("function"),Wx=Bc("number"),Wc=e=>e!==null&&typeof e=="object",wk=e=>e===!0||e===!1,Cl=e=>{if(Fc(e)!=="object")return!1;const t=Ch(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},kk=Xn("Date"),Rk=Xn("File"),Pk=Xn("Blob"),Ek=Xn("FileList"),$k=e=>Wc(e)&&Pn(e.pipe),Tk=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Pn(e.append)&&((t=Fc(e))==="formdata"||t==="object"&&Pn(e.toString)&&e.toString()==="[object FormData]"))},_k=Xn("URLSearchParams"),[jk,Ok,Ik,Mk]=["ReadableStream","Request","Response","Headers"].map(Xn),Nk=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function va(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Li(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Hx=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Vx=e=>!Zs(e)&&e!==Hx;function qf(){const{caseless:e}=Vx(this)&&this||{},t={},n=(r,o)=>{const i=e&&Ux(t,o)||o;Cl(t[i])&&Cl(r)?t[i]=qf(t[i],r):Cl(r)?t[i]=qf({},r):Li(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(va(t,(o,i)=>{n&&Pn(o)?e[i]=Fx(o,n):e[i]=o},{allOwnKeys:r}),e),Ak=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),zk=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Dk=(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&Ch(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Fk=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Bk=e=>{if(!e)return null;if(Li(e))return e;let t=e.length;if(!Wx(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Wk=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ch(Uint8Array)),Uk=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Hk=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Vk=Xn("HTMLFormElement"),qk=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),_v=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Kk=Xn("RegExp"),qx=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};va(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},Gk=e=>{qx(e,(t,n)=>{if(Pn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Pn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Yk=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Li(e)?r(e):r(String(e).split(t)),n},Xk=()=>{},Qk=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Pd="abcdefghijklmnopqrstuvwxyz",jv="0123456789",Kx={DIGIT:jv,ALPHA:Pd,ALPHA_DIGIT:Pd+Pd.toUpperCase()+jv},Jk=(e=16,t=Kx.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Zk(e){return!!(e&&Pn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const eR=e=>{const t=new Array(10),n=(r,o)=>{if(Wc(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=Li(r)?[]:{};return va(r,(s,a)=>{const l=n(s,o+1);!Zs(l)&&(i[a]=l)}),t[o]=void 0,i}}return r};return n(e,0)},tR=Xn("AsyncFunction"),nR=e=>e&&(Wc(e)||Pn(e))&&Pn(e.then)&&Pn(e.catch),L={isArray:Li,isArrayBuffer:Bx,isBuffer:bk,isFormData:Tk,isArrayBufferView:Sk,isString:Ck,isNumber:Wx,isBoolean:wk,isObject:Wc,isPlainObject:Cl,isReadableStream:jk,isRequest:Ok,isResponse:Ik,isHeaders:Mk,isUndefined:Zs,isDate:kk,isFile:Rk,isBlob:Pk,isRegExp:Kk,isFunction:Pn,isStream:$k,isURLSearchParams:_k,isTypedArray:Wk,isFileList:Ek,forEach:va,merge:qf,extend:Lk,trim:Nk,stripBOM:Ak,inherits:zk,toFlatObject:Dk,kindOf:Fc,kindOfTest:Xn,endsWith:Fk,toArray:Bk,forEachEntry:Uk,matchAll:Hk,isHTMLForm:Vk,hasOwnProperty:_v,hasOwnProp:_v,reduceDescriptors:qx,freezeMethods:Gk,toObjectSet:Yk,toCamelCase:qk,noop:Xk,toFiniteNumber:Qk,findKey:Ux,global:Hx,isContextDefined:Vx,ALPHABET:Kx,generateString:Jk,isSpecCompliantForm:Zk,toJSONObject:eR,isAsyncFn:tR,isThenable:nR};function me(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}L.inherits(me,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:L.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Gx=me.prototype,Yx={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Yx[e]={value:e}});Object.defineProperties(me,Yx);Object.defineProperty(Gx,"isAxiosError",{value:!0});me.from=(e,t,n,r,o,i)=>{const s=Object.create(Gx);return L.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),me.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const rR=null;function Kf(e){return L.isPlainObject(e)||L.isArray(e)}function Xx(e){return L.endsWith(e,"[]")?e.slice(0,-2):e}function Ov(e,t,n){return e?e.concat(t).map(function(o,i){return o=Xx(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function oR(e){return L.isArray(e)&&!e.some(Kf)}const iR=L.toFlatObject(L,{},null,function(t){return/^is[A-Z]/.test(t)});function Uc(e,t,n){if(!L.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=L.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,C){return!L.isUndefined(C[v])});const r=n.metaTokens,o=n.visitor||d,i=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&L.isSpecCompliantForm(t);if(!L.isFunction(o))throw new TypeError("visitor must be a function");function c(y){if(y===null)return"";if(L.isDate(y))return y.toISOString();if(!l&&L.isBlob(y))throw new me("Blob is not supported. Use a Buffer instead.");return L.isArrayBuffer(y)||L.isTypedArray(y)?l&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function d(y,v,C){let g=y;if(y&&!C&&typeof y=="object"){if(L.endsWith(v,"{}"))v=r?v:v.slice(0,-2),y=JSON.stringify(y);else if(L.isArray(y)&&oR(y)||(L.isFileList(y)||L.endsWith(v,"[]"))&&(g=L.toArray(y)))return v=Xx(v),g.forEach(function(x,w){!(L.isUndefined(x)||x===null)&&t.append(s===!0?Ov([v],w,i):s===null?v:v+"[]",c(x))}),!1}return Kf(y)?!0:(t.append(Ov(C,v,i),c(y)),!1)}const f=[],h=Object.assign(iR,{defaultVisitor:d,convertValue:c,isVisitable:Kf});function b(y,v){if(!L.isUndefined(y)){if(f.indexOf(y)!==-1)throw Error("Circular reference detected in "+v.join("."));f.push(y),L.forEach(y,function(g,m){(!(L.isUndefined(g)||g===null)&&o.call(t,g,L.isString(m)?m.trim():m,v,h))===!0&&b(g,v?v.concat(m):[m])}),f.pop()}}if(!L.isObject(e))throw new TypeError("data must be an object");return b(e),t}function Iv(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function wh(e,t){this._pairs=[],e&&Uc(e,this,t)}const Qx=wh.prototype;Qx.append=function(t,n){this._pairs.push([t,n])};Qx.toString=function(t){const n=t?function(r){return t.call(this,r,Iv)}:Iv;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function sR(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Jx(e,t,n){if(!t)return e;const r=n&&n.encode||sR,o=n&&n.serialize;let i;if(o?i=o(t,n):i=L.isURLSearchParams(t)?t.toString():new wh(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Mv{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){L.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Zx={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},aR=typeof URLSearchParams<"u"?URLSearchParams:wh,lR=typeof FormData<"u"?FormData:null,cR=typeof Blob<"u"?Blob:null,uR={isBrowser:!0,classes:{URLSearchParams:aR,FormData:lR,Blob:cR},protocols:["http","https","file","blob","url","data"]},kh=typeof window<"u"&&typeof document<"u",dR=(e=>kh&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),fR=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",pR=kh&&window.location.href||"http://localhost",hR=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:kh,hasStandardBrowserEnv:dR,hasStandardBrowserWebWorkerEnv:fR,origin:pR},Symbol.toStringTag,{value:"Module"})),Kn={...hR,...uR};function mR(e,t){return Uc(e,new Kn.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return Kn.isNode&&L.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function gR(e){return L.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function vR(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return s=!s&&L.isArray(o)?o.length:s,l?(L.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!a):((!o[s]||!L.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&L.isArray(o[s])&&(o[s]=vR(o[s])),!a)}if(L.isFormData(e)&&L.isFunction(e.entries)){const n={};return L.forEachEntry(e,(r,o)=>{t(gR(r),o,n,0)}),n}return null}function yR(e,t,n){if(L.isString(e))try{return(t||JSON.parse)(e),L.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ya={transitional:Zx,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=L.isObject(t);if(i&&L.isHTMLForm(t)&&(t=new FormData(t)),L.isFormData(t))return o?JSON.stringify(eb(t)):t;if(L.isArrayBuffer(t)||L.isBuffer(t)||L.isStream(t)||L.isFile(t)||L.isBlob(t)||L.isReadableStream(t))return t;if(L.isArrayBufferView(t))return t.buffer;if(L.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return mR(t,this.formSerializer).toString();if((a=L.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Uc(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),yR(t)):t}],transformResponse:[function(t){const n=this.transitional||ya.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(L.isResponse(t)||L.isReadableStream(t))return t;if(t&&L.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?me.from(a,me.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Kn.classes.FormData,Blob:Kn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};L.forEach(["delete","get","head","post","put","patch"],e=>{ya.headers[e]={}});const xR=L.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),bR=e=>{const t={};let n,r,o;return e&&e.split(` +`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&xR[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Nv=Symbol("internals");function is(e){return e&&String(e).trim().toLowerCase()}function wl(e){return e===!1||e==null?e:L.isArray(e)?e.map(wl):String(e)}function SR(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const CR=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ed(e,t,n,r,o){if(L.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!L.isString(t)){if(L.isString(r))return t.indexOf(r)!==-1;if(L.isRegExp(r))return r.test(t)}}function wR(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function kR(e,t){const n=L.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}class Xt{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(a,l,c){const d=is(l);if(!d)throw new Error("header name must be a non-empty string");const f=L.findKey(o,d);(!f||o[f]===void 0||c===!0||c===void 0&&o[f]!==!1)&&(o[f||l]=wl(a))}const s=(a,l)=>L.forEach(a,(c,d)=>i(c,d,l));if(L.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(L.isString(t)&&(t=t.trim())&&!CR(t))s(bR(t),n);else if(L.isHeaders(t))for(const[a,l]of t.entries())i(l,a,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=is(t),t){const r=L.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return SR(o);if(L.isFunction(n))return n.call(this,o,r);if(L.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=is(t),t){const r=L.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Ed(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(s){if(s=is(s),s){const a=L.findKey(r,s);a&&(!n||Ed(r,r[a],a,n))&&(delete r[a],o=!0)}}return L.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Ed(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return L.forEach(this,(o,i)=>{const s=L.findKey(r,i);if(s){n[s]=wl(o),delete n[i];return}const a=t?wR(i):String(i).trim();a!==i&&delete n[i],n[a]=wl(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return L.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&L.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Nv]=this[Nv]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=is(s);r[a]||(kR(o,s),r[a]=!0)}return L.isArray(t)?t.forEach(i):i(t),this}}Xt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);L.reduceDescriptors(Xt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});L.freezeMethods(Xt);function $d(e,t){const n=this||ya,r=t||n,o=Xt.from(r.headers);let i=r.data;return L.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function tb(e){return!!(e&&e.__CANCEL__)}function Ai(e,t,n){me.call(this,e??"canceled",me.ERR_CANCELED,t,n),this.name="CanceledError"}L.inherits(Ai,me,{__CANCEL__:!0});function nb(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new me("Request failed with status code "+n.status,[me.ERR_BAD_REQUEST,me.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function RR(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function PR(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),d=r[i];s||(s=c),n[o]=l,r[o]=c;let f=i,h=0;for(;f!==o;)h+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-sr)return o&&(clearTimeout(o),o=null),n=a,e.apply(null,arguments);o||(o=setTimeout(()=>(o=null,n=Date.now(),e.apply(null,arguments)),r-(a-n)))}}const rc=(e,t,n=3)=>{let r=0;const o=PR(50,250);return ER(i=>{const s=i.loaded,a=i.lengthComputable?i.total:void 0,l=s-r,c=o(l),d=s<=a;r=s;const f={loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&d?(a-s)/c:void 0,event:i,lengthComputable:a!=null};f[t?"download":"upload"]=!0,e(f)},n)},$R=Kn.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let s=i;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(s){const a=L.isString(s)?o(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}(),TR=Kn.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];L.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),L.isString(r)&&s.push("path="+r),L.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function _R(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function jR(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function rb(e,t){return e&&!_R(t)?jR(e,t):t}const Lv=e=>e instanceof Xt?{...e}:e;function _o(e,t){t=t||{};const n={};function r(c,d,f){return L.isPlainObject(c)&&L.isPlainObject(d)?L.merge.call({caseless:f},c,d):L.isPlainObject(d)?L.merge({},d):L.isArray(d)?d.slice():d}function o(c,d,f){if(L.isUndefined(d)){if(!L.isUndefined(c))return r(void 0,c,f)}else return r(c,d,f)}function i(c,d){if(!L.isUndefined(d))return r(void 0,d)}function s(c,d){if(L.isUndefined(d)){if(!L.isUndefined(c))return r(void 0,c)}else return r(void 0,d)}function a(c,d,f){if(f in t)return r(c,d);if(f in e)return r(void 0,c)}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(c,d)=>o(Lv(c),Lv(d),!0)};return L.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=l[d]||o,h=f(e[d],t[d],d);L.isUndefined(h)&&f!==a||(n[d]=h)}),n}const ob=e=>{const t=_o({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;t.headers=s=Xt.from(s),t.url=Jx(rb(t.baseURL,t.url),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(L.isFormData(n)){if(Kn.hasStandardBrowserEnv||Kn.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((l=s.getContentType())!==!1){const[c,...d]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];s.setContentType([c||"multipart/form-data",...d].join("; "))}}if(Kn.hasStandardBrowserEnv&&(r&&L.isFunction(r)&&(r=r(t)),r||r!==!1&&$R(t.url))){const c=o&&i&&TR.read(i);c&&s.set(o,c)}return t},OR=typeof XMLHttpRequest<"u",IR=OR&&function(e){return new Promise(function(n,r){const o=ob(e);let i=o.data;const s=Xt.from(o.headers).normalize();let{responseType:a}=o,l;function c(){o.cancelToken&&o.cancelToken.unsubscribe(l),o.signal&&o.signal.removeEventListener("abort",l)}let d=new XMLHttpRequest;d.open(o.method.toUpperCase(),o.url,!0),d.timeout=o.timeout;function f(){if(!d)return;const b=Xt.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),v={data:!a||a==="text"||a==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:b,config:e,request:d};nb(function(g){n(g),c()},function(g){r(g),c()},v),d=null}"onloadend"in d?d.onloadend=f:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(f)},d.onabort=function(){d&&(r(new me("Request aborted",me.ECONNABORTED,o,d)),d=null)},d.onerror=function(){r(new me("Network Error",me.ERR_NETWORK,o,d)),d=null},d.ontimeout=function(){let y=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const v=o.transitional||Zx;o.timeoutErrorMessage&&(y=o.timeoutErrorMessage),r(new me(y,v.clarifyTimeoutError?me.ETIMEDOUT:me.ECONNABORTED,o,d)),d=null},i===void 0&&s.setContentType(null),"setRequestHeader"in d&&L.forEach(s.toJSON(),function(y,v){d.setRequestHeader(v,y)}),L.isUndefined(o.withCredentials)||(d.withCredentials=!!o.withCredentials),a&&a!=="json"&&(d.responseType=o.responseType),typeof o.onDownloadProgress=="function"&&d.addEventListener("progress",rc(o.onDownloadProgress,!0)),typeof o.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",rc(o.onUploadProgress)),(o.cancelToken||o.signal)&&(l=b=>{d&&(r(!b||b.type?new Ai(null,e,d):b),d.abort(),d=null)},o.cancelToken&&o.cancelToken.subscribe(l),o.signal&&(o.signal.aborted?l():o.signal.addEventListener("abort",l)));const h=RR(o.url);if(h&&Kn.protocols.indexOf(h)===-1){r(new me("Unsupported protocol "+h+":",me.ERR_BAD_REQUEST,e));return}d.send(i||null)})},MR=(e,t)=>{let n=new AbortController,r;const o=function(l){if(!r){r=!0,s();const c=l instanceof Error?l:this.reason;n.abort(c instanceof me?c:new Ai(c instanceof Error?c.message:c))}};let i=t&&setTimeout(()=>{o(new me(`timeout ${t} of ms exceeded`,me.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",o):l.unsubscribe(o))}),e=null)};e.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",o));const{signal:a}=n;return a.unsubscribe=s,[a,()=>{i&&clearTimeout(i),i=null}]},NR=function*(e,t){let n=e.byteLength;if(!t||n{const i=LR(e,t,o);let s=0;return new ReadableStream({type:"bytes",async pull(a){const{done:l,value:c}=await i.next();if(l){a.close(),r();return}let d=c.byteLength;n&&n(s+=d),a.enqueue(new Uint8Array(c))},cancel(a){return r(a),i.return()}},{highWaterMark:2})},zv=(e,t)=>{const n=e!=null;return r=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:r}))},Hc=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ib=Hc&&typeof ReadableStream=="function",Gf=Hc&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),AR=ib&&(()=>{let e=!1;const t=new Request(Kn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),Dv=64*1024,Yf=ib&&!!(()=>{try{return L.isReadableStream(new Response("").body)}catch{}})(),oc={stream:Yf&&(e=>e.body)};Hc&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!oc[t]&&(oc[t]=L.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new me(`Response type '${t}' is not supported`,me.ERR_NOT_SUPPORT,r)})})})(new Response);const zR=async e=>{if(e==null)return 0;if(L.isBlob(e))return e.size;if(L.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(L.isArrayBufferView(e))return e.byteLength;if(L.isURLSearchParams(e)&&(e=e+""),L.isString(e))return(await Gf(e)).byteLength},DR=async(e,t)=>{const n=L.toFiniteNumber(e.getContentLength());return n??zR(t)},FR=Hc&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:d,withCredentials:f="same-origin",fetchOptions:h}=ob(e);c=c?(c+"").toLowerCase():"text";let[b,y]=o||i||s?MR([o,i],s):[],v,C;const g=()=>{!v&&setTimeout(()=>{b&&b.unsubscribe()}),v=!0};let m;try{if(l&&AR&&n!=="get"&&n!=="head"&&(m=await DR(d,r))!==0){let P=new Request(t,{method:"POST",body:r,duplex:"half"}),R;L.isFormData(r)&&(R=P.headers.get("content-type"))&&d.setContentType(R),P.body&&(r=Av(P.body,Dv,zv(m,rc(l)),null,Gf))}L.isString(f)||(f=f?"cors":"omit"),C=new Request(t,{...h,signal:b,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",withCredentials:f});let x=await fetch(C);const w=Yf&&(c==="stream"||c==="response");if(Yf&&(a||w)){const P={};["status","statusText","headers"].forEach(E=>{P[E]=x[E]});const R=L.toFiniteNumber(x.headers.get("content-length"));x=new Response(Av(x.body,Dv,a&&zv(R,rc(a,!0)),w&&g,Gf),P)}c=c||"text";let k=await oc[L.findKey(oc,c)||"text"](x,e);return!w&&g(),y&&y(),await new Promise((P,R)=>{nb(P,R,{data:k,headers:Xt.from(x.headers),status:x.status,statusText:x.statusText,config:e,request:C})})}catch(x){throw g(),x&&x.name==="TypeError"&&/fetch/i.test(x.message)?Object.assign(new me("Network Error",me.ERR_NETWORK,e,C),{cause:x.cause||x}):me.from(x,x&&x.code,e,C)}}),Xf={http:rR,xhr:IR,fetch:FR};L.forEach(Xf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Fv=e=>`- ${e}`,BR=e=>L.isFunction(e)||e===null||e===!1,sb={getAdapter:e=>{e=L.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since : +`+i.map(Fv).join(` +`):" "+Fv(i[0]):"as no adapter specified";throw new me("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:Xf};function Td(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ai(null,e)}function Bv(e){return Td(e),e.headers=Xt.from(e.headers),e.data=$d.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),sb.getAdapter(e.adapter||ya.adapter)(e).then(function(r){return Td(e),r.data=$d.call(e,e.transformResponse,r),r.headers=Xt.from(r.headers),r},function(r){return tb(r)||(Td(e),r&&r.response&&(r.response.data=$d.call(e,e.transformResponse,r.response),r.response.headers=Xt.from(r.response.headers))),Promise.reject(r)})}const ab="1.7.2",Rh={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Rh[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Wv={};Rh.transitional=function(t,n,r){function o(i,s){return"[Axios v"+ab+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,a)=>{if(t===!1)throw new me(o(s," has been removed"+(n?" in "+n:"")),me.ERR_DEPRECATED);return n&&!Wv[s]&&(Wv[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,a):!0}};function WR(e,t,n){if(typeof e!="object")throw new me("options must be an object",me.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const a=e[i],l=a===void 0||s(a,i,e);if(l!==!0)throw new me("option "+i+" must be "+l,me.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new me("Unknown option "+i,me.ERR_BAD_OPTION)}}const Qf={assertOptions:WR,validators:Rh},Or=Qf.validators;class wo{constructor(t){this.defaults=t,this.interceptors={request:new Mv,response:new Mv}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=_o(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Qf.assertOptions(r,{silentJSONParsing:Or.transitional(Or.boolean),forcedJSONParsing:Or.transitional(Or.boolean),clarifyTimeoutError:Or.transitional(Or.boolean)},!1),o!=null&&(L.isFunction(o)?n.paramsSerializer={serialize:o}:Qf.assertOptions(o,{encode:Or.function,serialize:Or.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&L.merge(i.common,i[n.method]);i&&L.forEach(["delete","get","head","post","put","patch","common"],y=>{delete i[y]}),n.headers=Xt.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(l=l&&v.synchronous,a.unshift(v.fulfilled,v.rejected))});const c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let d,f=0,h;if(!l){const y=[Bv.bind(this),void 0];for(y.unshift.apply(y,a),y.push.apply(y,c),h=y.length,d=Promise.resolve(n);f{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{r.subscribe(a),i=a}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,a){r.reason||(r.reason=new Ai(i,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Ph(function(o){t=o}),cancel:t}}}function UR(e){return function(n){return e.apply(null,n)}}function HR(e){return L.isObject(e)&&e.isAxiosError===!0}const Jf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Jf).forEach(([e,t])=>{Jf[t]=e});function lb(e){const t=new wo(e),n=Fx(wo.prototype.request,t);return L.extend(n,wo.prototype,t,{allOwnKeys:!0}),L.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return lb(_o(e,o))},n}const ye=lb(ya);ye.Axios=wo;ye.CanceledError=Ai;ye.CancelToken=Ph;ye.isCancel=tb;ye.VERSION=ab;ye.toFormData=Uc;ye.AxiosError=me;ye.Cancel=ye.CanceledError;ye.all=function(t){return Promise.all(t)};ye.spread=UR;ye.isAxiosError=HR;ye.mergeConfig=_o;ye.AxiosHeaders=Xt;ye.formToJSON=e=>eb(L.isHTMLForm(e)?new FormData(e):e);ye.getAdapter=sb.getAdapter;ye.HttpStatusCode=Jf;ye.default=ye;/** + * @remix-run/router v1.16.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function ea(){return ea=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function cb(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function qR(){return Math.random().toString(36).substr(2,8)}function Hv(e,t){return{usr:e.state,key:e.key,idx:t}}function Zf(e,t,n,r){return n===void 0&&(n=null),ea({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?zi(t):t,{state:n,key:t&&t.key||r||qR()})}function ic(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function zi(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function KR(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a=Wr.Pop,l=null,c=d();c==null&&(c=0,s.replaceState(ea({},s.state,{idx:c}),""));function d(){return(s.state||{idx:null}).idx}function f(){a=Wr.Pop;let C=d(),g=C==null?null:C-c;c=C,l&&l({action:a,location:v.location,delta:g})}function h(C,g){a=Wr.Push;let m=Zf(v.location,C,g);c=d()+1;let x=Hv(m,c),w=v.createHref(m);try{s.pushState(x,"",w)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;o.location.assign(w)}i&&l&&l({action:a,location:v.location,delta:1})}function b(C,g){a=Wr.Replace;let m=Zf(v.location,C,g);c=d();let x=Hv(m,c),w=v.createHref(m);s.replaceState(x,"",w),i&&l&&l({action:a,location:v.location,delta:0})}function y(C){let g=o.location.origin!=="null"?o.location.origin:o.location.href,m=typeof C=="string"?C:ic(C);return m=m.replace(/ $/,"%20"),Ze(g,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,g)}let v={get action(){return a},get location(){return e(o,s)},listen(C){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Uv,f),l=C,()=>{o.removeEventListener(Uv,f),l=null}},createHref(C){return t(o,C)},createURL:y,encodeLocation(C){let g=y(C);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:h,replace:b,go(C){return s.go(C)}};return v}var Vv;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Vv||(Vv={}));function GR(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?zi(t):t,o=ki(r.pathname||"/",n);if(o==null)return null;let i=ub(e);YR(i);let s=null;for(let a=0;s==null&&a{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};l.relativePath.startsWith("/")&&(Ze(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=Jr([r,l.relativePath]),d=n.concat(l);i.children&&i.children.length>0&&(Ze(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),ub(i.children,t,d,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:nP(c,i.index),routesMeta:d})};return e.forEach((i,s)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,s);else for(let l of db(i.path))o(i,s,l)}),t}function db(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=db(r.join("/")),a=[];return a.push(...s.map(l=>l===""?i:[i,l].join("/"))),o&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function YR(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:rP(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const XR=/^:[\w-]+$/,QR=3,JR=2,ZR=1,eP=10,tP=-2,qv=e=>e==="*";function nP(e,t){let n=e.split("/"),r=n.length;return n.some(qv)&&(r+=tP),t&&(r+=JR),n.filter(o=>!qv(o)).reduce((o,i)=>o+(XR.test(i)?QR:i===""?ZR:eP),r)}function rP(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function oP(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let s=0;s{let{paramName:h,isOptional:b}=d;if(h==="*"){let v=a[f]||"";s=i.slice(0,i.length-v.length).replace(/(.)\/+$/,"$1")}const y=a[f];return b&&!y?c[h]=void 0:c[h]=(y||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:s,pattern:e}}function iP(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),cb(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function sP(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return cb(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function ki(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function aP(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?zi(e):e;return{pathname:n?n.startsWith("/")?n:lP(n,t):t,search:dP(r),hash:fP(o)}}function lP(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function _d(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function cP(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Eh(e,t){let n=cP(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function $h(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=zi(e):(o=ea({},e),Ze(!o.pathname||!o.pathname.includes("?"),_d("?","pathname","search",o)),Ze(!o.pathname||!o.pathname.includes("#"),_d("#","pathname","hash",o)),Ze(!o.search||!o.search.includes("#"),_d("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,a;if(s==null)a=n;else{let f=t.length-1;if(!r&&s.startsWith("..")){let h=s.split("/");for(;h[0]==="..";)h.shift(),f-=1;o.pathname=h.join("/")}a=f>=0?t[f]:"/"}let l=aP(o,a),c=s&&s!=="/"&&s.endsWith("/"),d=(i||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}const Jr=e=>e.join("/").replace(/\/\/+/g,"/"),uP=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),dP=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,fP=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function pP(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const fb=["post","put","patch","delete"];new Set(fb);const hP=["get",...fb];new Set(hP);/** + * React Router v6.23.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function ta(){return ta=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),p.useCallback(function(c,d){if(d===void 0&&(d={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let f=$h(c,JSON.parse(s),i,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Jr([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,s,i,e])}function xa(){let{matches:e}=p.useContext(Tr),t=e[e.length-1];return t?t.params:{}}function Kc(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=p.useContext($r),{matches:o}=p.useContext(Tr),{pathname:i}=oo(),s=JSON.stringify(Eh(o,r.v7_relativeSplatPath));return p.useMemo(()=>$h(e,JSON.parse(s),i,n==="path"),[e,s,i,n])}function vP(e,t){return yP(e,t)}function yP(e,t,n,r){Di()||Ze(!1);let{navigator:o}=p.useContext($r),{matches:i}=p.useContext(Tr),s=i[i.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let c=oo(),d;if(t){var f;let C=typeof t=="string"?zi(t):t;l==="/"||(f=C.pathname)!=null&&f.startsWith(l)||Ze(!1),d=C}else d=c;let h=d.pathname||"/",b=h;if(l!=="/"){let C=l.replace(/^\//,"").split("/");b="/"+h.replace(/^\//,"").split("/").slice(C.length).join("/")}let y=GR(e,{pathname:b}),v=wP(y&&y.map(C=>Object.assign({},C,{params:Object.assign({},a,C.params),pathname:Jr([l,o.encodeLocation?o.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?l:Jr([l,o.encodeLocation?o.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),i,n,r);return t&&v?p.createElement(qc.Provider,{value:{location:ta({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Wr.Pop}},v):v}function xP(){let e=EP(),t=pP(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:o},n):null,null)}const bP=p.createElement(xP,null);class SP extends p.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?p.createElement(Tr.Provider,{value:this.props.routeContext},p.createElement(hb.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function CP(e){let{routeContext:t,match:n,children:r}=e,o=p.useContext(Vc);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),p.createElement(Tr.Provider,{value:t},r)}function wP(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let s=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let d=s.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);d>=0||Ze(!1),s=s.slice(0,Math.min(s.length,d+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?s=s.slice(0,c+1):s=[s[0]];break}}}return s.reduceRight((d,f,h)=>{let b,y=!1,v=null,C=null;n&&(b=a&&f.route.id?a[f.route.id]:void 0,v=f.route.errorElement||bP,l&&(c<0&&h===0?(y=!0,C=null):c===h&&(y=!0,C=f.route.hydrateFallbackElement||null)));let g=t.concat(s.slice(0,h+1)),m=()=>{let x;return b?x=v:y?x=C:f.route.Component?x=p.createElement(f.route.Component,null):f.route.element?x=f.route.element:x=d,p.createElement(CP,{match:f,routeContext:{outlet:d,matches:g,isDataRoute:n!=null},children:x})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?p.createElement(SP,{location:n.location,revalidation:n.revalidation,component:v,error:b,children:m(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):m()},null)}var gb=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(gb||{}),sc=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(sc||{});function kP(e){let t=p.useContext(Vc);return t||Ze(!1),t}function RP(e){let t=p.useContext(pb);return t||Ze(!1),t}function PP(e){let t=p.useContext(Tr);return t||Ze(!1),t}function vb(e){let t=PP(),n=t.matches[t.matches.length-1];return n.route.id||Ze(!1),n.route.id}function EP(){var e;let t=p.useContext(hb),n=RP(sc.UseRouteError),r=vb(sc.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function $P(){let{router:e}=kP(gb.UseNavigateStable),t=vb(sc.UseNavigateStable),n=p.useRef(!1);return mb(()=>{n.current=!0}),p.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,ta({fromRouteId:t},i)))},[e,t])}function TP(e){let{to:t,replace:n,state:r,relative:o}=e;Di()||Ze(!1);let{future:i,static:s}=p.useContext($r),{matches:a}=p.useContext(Tr),{pathname:l}=oo(),c=Ao(),d=$h(t,Eh(a,i.v7_relativeSplatPath),l,o==="path"),f=JSON.stringify(d);return p.useEffect(()=>c(JSON.parse(f),{replace:n,state:r,relative:o}),[c,f,o,n,r]),null}function rn(e){Ze(!1)}function _P(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Wr.Pop,navigator:i,static:s=!1,future:a}=e;Di()&&Ze(!1);let l=t.replace(/^\/*/,"/"),c=p.useMemo(()=>({basename:l,navigator:i,static:s,future:ta({v7_relativeSplatPath:!1},a)}),[l,a,i,s]);typeof r=="string"&&(r=zi(r));let{pathname:d="/",search:f="",hash:h="",state:b=null,key:y="default"}=r,v=p.useMemo(()=>{let C=ki(d,l);return C==null?null:{location:{pathname:C,search:f,hash:h,state:b,key:y},navigationType:o}},[l,d,f,h,b,y,o]);return v==null?null:p.createElement($r.Provider,{value:c},p.createElement(qc.Provider,{children:n,value:v}))}function jP(e){let{children:t,location:n}=e;return vP(tp(t),n)}new Promise(()=>{});function tp(e,t){t===void 0&&(t=[]);let n=[];return p.Children.forEach(e,(r,o)=>{if(!p.isValidElement(r))return;let i=[...t,o];if(r.type===p.Fragment){n.push.apply(n,tp(r.props.children,i));return}r.type!==rn&&Ze(!1),!r.props.index||!r.props.children||Ze(!1);let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=tp(r.props.children,i)),n.push(s)}),n}/** + * React Router DOM v6.23.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function ac(){return ac=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function OP(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function IP(e,t){return e.button===0&&(!t||t==="_self")&&!OP(e)}const MP=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],NP=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],LP="6";try{window.__reactRouterVersion=LP}catch{}const AP=p.createContext({isTransitioning:!1}),zP="startTransition",Kv=Ol[zP];function DP(e){let{basename:t,children:n,future:r,window:o}=e,i=p.useRef();i.current==null&&(i.current=VR({window:o,v5Compat:!0}));let s=i.current,[a,l]=p.useState({action:s.action,location:s.location}),{v7_startTransition:c}=r||{},d=p.useCallback(f=>{c&&Kv?Kv(()=>l(f)):l(f)},[l,c]);return p.useLayoutEffect(()=>s.listen(d),[s,d]),p.createElement(_P,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const FP=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",BP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xb=p.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:s,state:a,target:l,to:c,preventScrollReset:d,unstable_viewTransition:f}=t,h=yb(t,MP),{basename:b}=p.useContext($r),y,v=!1;if(typeof c=="string"&&BP.test(c)&&(y=c,FP))try{let x=new URL(window.location.href),w=c.startsWith("//")?new URL(x.protocol+c):new URL(c),k=ki(w.pathname,b);w.origin===x.origin&&k!=null?c=k+w.search+w.hash:v=!0}catch{}let C=mP(c,{relative:o}),g=HP(c,{replace:s,state:a,target:l,preventScrollReset:d,relative:o,unstable_viewTransition:f});function m(x){r&&r(x),x.defaultPrevented||g(x)}return p.createElement("a",ac({},h,{href:y||C,onClick:v||i?r:m,ref:n,target:l}))}),WP=p.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:s=!1,style:a,to:l,unstable_viewTransition:c,children:d}=t,f=yb(t,NP),h=Kc(l,{relative:f.relative}),b=oo(),y=p.useContext(pb),{navigator:v,basename:C}=p.useContext($r),g=y!=null&&VP(h)&&c===!0,m=v.encodeLocation?v.encodeLocation(h).pathname:h.pathname,x=b.pathname,w=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;o||(x=x.toLowerCase(),w=w?w.toLowerCase():null,m=m.toLowerCase()),w&&C&&(w=ki(w,C)||w);const k=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let P=x===m||!s&&x.startsWith(m)&&x.charAt(k)==="/",R=w!=null&&(w===m||!s&&w.startsWith(m)&&w.charAt(m.length)==="/"),E={isActive:P,isPending:R,isTransitioning:g},j=P?r:void 0,T;typeof i=="function"?T=i(E):T=[i,P?"active":null,R?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let O=typeof a=="function"?a(E):a;return p.createElement(xb,ac({},f,{"aria-current":j,className:T,ref:n,style:O,to:l,unstable_viewTransition:c}),typeof d=="function"?d(E):d)});var np;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(np||(np={}));var Gv;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Gv||(Gv={}));function UP(e){let t=p.useContext(Vc);return t||Ze(!1),t}function HP(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s,unstable_viewTransition:a}=t===void 0?{}:t,l=Ao(),c=oo(),d=Kc(e,{relative:s});return p.useCallback(f=>{if(IP(f,n)){f.preventDefault();let h=r!==void 0?r:ic(c)===ic(d);l(e,{replace:h,state:o,preventScrollReset:i,relative:s,unstable_viewTransition:a})}},[c,l,d,r,o,n,e,i,s,a])}function VP(e,t){t===void 0&&(t={});let n=p.useContext(AP);n==null&&Ze(!1);let{basename:r}=UP(np.useViewTransitionState),o=Kc(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=ki(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=ki(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ep(o.pathname,s)!=null||ep(o.pathname,i)!=null}const lr=p.createContext({user:null}),qP=({children:e})=>{const[t,n]=p.useState(!1),[r,o]=p.useState(null),[i,s]=p.useState(0),[a,l]=p.useState([]),c=p.useCallback(v=>{l(C=>[...C,v])},[l]),d=v=>{l(C=>C.filter((g,m)=>m!==v))},f=()=>{s(i+1)},h=Ao();p.useEffect(()=>{const v=localStorage.getItem("user");console.log("Attempting to load user:",v),v?(console.log("User found in storage:",v),o(JSON.parse(v))):console.log("No user found in storage at initialization.")},[]),p.useEffect(()=>{r?(console.log("Storing user in storage:",r),localStorage.setItem("user",JSON.stringify(r))):(console.log("Removing user from storage."),localStorage.removeItem("user"))},[r]);const b=p.useCallback(async()=>{var v;try{const C=localStorage.getItem("token");if(console.log("Logging out with token:",C),!C){console.error("No token available for logout");return}const g=await ye.post("/api/user/logout",{},{headers:{Authorization:`Bearer ${C}`}});if(g.status===200)o(null),localStorage.removeItem("token"),h("/auth");else throw new Error("Logout failed with status: "+g.status)}catch(C){console.error("Logout failed:",((v=C.response)==null?void 0:v.data)||C.message)}},[h]),y=async(v,C,g)=>{var m,x;try{const w=localStorage.getItem("token"),k=await ye.patch(`/api/user/change_password/${v}`,{current_password:C,new_password:g},{headers:{Authorization:`Bearer ${w}`}});return k.status===200?{success:!0,message:"Password updated successfully!"}:{success:!1,message:k.data.message||"Update failed!"}}catch(w){return w.response.status===403?{success:!1,message:w.response.data.message||"Incorrect current password"}:{success:!1,message:((x=(m=w.response)==null?void 0:m.data)==null?void 0:x.message)||"Network error"}}};return p.useEffect(()=>{const v=C=>{C.data&&C.data.type==="NEW_NOTIFICATION"&&(console.log("Notification received:",C.data.data),c({title:C.data.data.title,message:C.data.data.body}))};return navigator.serviceWorker.addEventListener("message",v),()=>{navigator.serviceWorker.removeEventListener("message",v)}},[c]),u.jsx(lr.Provider,{value:{user:r,setUser:o,logout:b,voiceEnabled:t,setVoiceEnabled:n,changePassword:y,incrementNotificationCount:f,notifications:a,removeNotification:d,addNotification:c},children:e})},na={black:"#000",white:"#fff"},Fo={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"},Bo={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Wo={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"},Uo={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Ho={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"},ss={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"},KP={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function jo(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n=0)continue;n[r]=e[r]}return n}function bb(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var YP=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,XP=bb(function(e){return YP.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function QP(e){if(e.sheet)return e.sheet;for(var t=0;t0?Pt(Fi,--Zt):0,Ri--,ut===10&&(Ri=1,Yc--),ut}function cn(){return ut=Zt2||oa(ut)>3?"":" "}function uE(e,t){for(;--t&&cn()&&!(ut<48||ut>102||ut>57&&ut<65||ut>70&&ut<97););return ba(e,kl()+(t<6&&ir()==32&&cn()==32))}function op(e){for(;cn();)switch(ut){case e:return Zt;case 34:case 39:e!==34&&e!==39&&op(ut);break;case 40:e===41&&op(e);break;case 92:cn();break}return Zt}function dE(e,t){for(;cn()&&e+ut!==57;)if(e+ut===84&&ir()===47)break;return"/*"+ba(t,Zt-1)+"*"+Gc(e===47?e:cn())}function fE(e){for(;!oa(ir());)cn();return ba(e,Zt)}function pE(e){return Pb(Pl("",null,null,null,[""],e=Rb(e),0,[0],e))}function Pl(e,t,n,r,o,i,s,a,l){for(var c=0,d=0,f=s,h=0,b=0,y=0,v=1,C=1,g=1,m=0,x="",w=o,k=i,P=r,R=x;C;)switch(y=m,m=cn()){case 40:if(y!=108&&Pt(R,f-1)==58){rp(R+=Ie(Rl(m),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:R+=Rl(m);break;case 9:case 10:case 13:case 32:R+=cE(y);break;case 92:R+=uE(kl()-1,7);continue;case 47:switch(ir()){case 42:case 47:Qa(hE(dE(cn(),kl()),t,n),l);break;default:R+="/"}break;case 123*v:a[c++]=er(R)*g;case 125*v:case 59:case 0:switch(m){case 0:case 125:C=0;case 59+d:g==-1&&(R=Ie(R,/\f/g,"")),b>0&&er(R)-f&&Qa(b>32?Xv(R+";",r,n,f-1):Xv(Ie(R," ","")+";",r,n,f-2),l);break;case 59:R+=";";default:if(Qa(P=Yv(R,t,n,c,d,o,a,x,w=[],k=[],f),i),m===123)if(d===0)Pl(R,t,P,P,w,i,f,a,k);else switch(h===99&&Pt(R,3)===110?100:h){case 100:case 108:case 109:case 115:Pl(e,P,P,r&&Qa(Yv(e,P,P,0,0,o,a,x,o,w=[],f),k),o,k,f,a,r?w:k);break;default:Pl(R,P,P,P,[""],k,0,a,k)}}c=d=b=0,v=g=1,x=R="",f=s;break;case 58:f=1+er(R),b=y;default:if(v<1){if(m==123)--v;else if(m==125&&v++==0&&lE()==125)continue}switch(R+=Gc(m),m*v){case 38:g=d>0?1:(R+="\f",-1);break;case 44:a[c++]=(er(R)-1)*g,g=1;break;case 64:ir()===45&&(R+=Rl(cn())),h=ir(),d=f=er(x=R+=fE(kl())),m++;break;case 45:y===45&&er(R)==2&&(v=0)}}return i}function Yv(e,t,n,r,o,i,s,a,l,c,d){for(var f=o-1,h=o===0?i:[""],b=jh(h),y=0,v=0,C=0;y0?h[g]+" "+m:Ie(m,/&\f/g,h[g])))&&(l[C++]=x);return Xc(e,t,n,o===0?Th:a,l,c,d)}function hE(e,t,n){return Xc(e,t,n,Sb,Gc(aE()),ra(e,2,-2),0)}function Xv(e,t,n,r){return Xc(e,t,n,_h,ra(e,0,r),ra(e,r+1,-1),r)}function hi(e,t){for(var n="",r=jh(e),o=0;o6)switch(Pt(e,t+1)){case 109:if(Pt(e,t+4)!==45)break;case 102:return Ie(e,/(.+:)(.+)-([^]+)/,"$1"+Oe+"$2-$3$1"+lc+(Pt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~rp(e,"stretch")?Eb(Ie(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Pt(e,t+1)!==115)break;case 6444:switch(Pt(e,er(e)-3-(~rp(e,"!important")&&10))){case 107:return Ie(e,":",":"+Oe)+e;case 101:return Ie(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Oe+(Pt(e,14)===45?"inline-":"")+"box$3$1"+Oe+"$2$3$1"+jt+"$2box$3")+e}break;case 5936:switch(Pt(e,t+11)){case 114:return Oe+e+jt+Ie(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Oe+e+jt+Ie(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Oe+e+jt+Ie(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Oe+e+jt+e+e}return e}var wE=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case _h:t.return=Eb(t.value,t.length);break;case Cb:return hi([as(t,{value:Ie(t.value,"@","@"+Oe)})],o);case Th:if(t.length)return sE(t.props,function(i){switch(iE(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return hi([as(t,{props:[Ie(i,/:(read-\w+)/,":"+lc+"$1")]})],o);case"::placeholder":return hi([as(t,{props:[Ie(i,/:(plac\w+)/,":"+Oe+"input-$1")]}),as(t,{props:[Ie(i,/:(plac\w+)/,":"+lc+"$1")]}),as(t,{props:[Ie(i,/:(plac\w+)/,jt+"input-$1")]})],o)}return""})}},kE=[wE],$b=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var C=v.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||kE,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var C=v.getAttribute("data-emotion").split(" "),g=1;g=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var LE={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},AE=/[A-Z]|^ms/g,zE=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Nb=function(t){return t.charCodeAt(1)===45},Jv=function(t){return t!=null&&typeof t!="boolean"},jd=bb(function(e){return Nb(e)?e:e.replace(AE,"-$&").toLowerCase()}),Zv=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(zE,function(r,o,i){return tr={name:o,styles:i,next:tr},o})}return LE[t]!==1&&!Nb(t)&&typeof n=="number"&&n!==0?n+"px":n};function ia(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return tr={name:n.name,styles:n.styles,next:tr},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)tr={name:r.name,styles:r.styles,next:tr},r=r.next;var o=n.styles+";";return o}return DE(e,t,n)}case"function":{if(e!==void 0){var i=tr,s=n(e);return tr=i,ia(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function DE(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?HE:VE},o0=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},qE=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Ib(n,r,o),BE(function(){return Mb(n,r,o)}),null},KE=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=o0(t,n,r),l=a||r0(o),c=!l("as");return function(){var d=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),d[0]==null||d[0].raw===void 0)f.push.apply(f,d);else{f.push(d[0][0]);for(var h=d.length,b=1;bt(t$(o)?n:o):t;return u.jsx(UE,{styles:r})}function Lh(e,t){return ip(e,t)}const Hb=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},n$=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Ub,StyledEngineProvider:e$,ThemeContext:Sa,css:au,default:Lh,internal_processStyles:Hb,keyframes:Bi},Symbol.toStringTag,{value:"Module"}));function mr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Vb(e){if(!mr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Vb(e[n])}),t}function Ft(e,t,n={clone:!0}){const r=n.clone?S({},e):e;return mr(e)&&mr(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(mr(t[o])&&o in e&&mr(e[o])?r[o]=Ft(e[o],t[o],n):n.clone?r[o]=mr(t[o])?Vb(t[o]):t[o]:r[o]=t[o])}),r}const r$=Object.freeze(Object.defineProperty({__proto__:null,default:Ft,isPlainObject:mr},Symbol.toStringTag,{value:"Module"})),o$=["values","unit","step"],i$=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>S({},n,{[r.key]:r.val}),{})};function qb(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=H(e,o$),i=i$(t),s=Object.keys(i);function a(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function l(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function c(h,b){const y=s.indexOf(b);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(y!==-1&&typeof t[s[y]]=="number"?t[s[y]]:b)-r/100}${n})`}function d(h){return s.indexOf(h)+1`@media (min-width:${Ah[e]}px)`};function Yn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||i0;return t.reduce((s,a,l)=>(s[i.up(i.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const i=r.breakpoints||i0;return Object.keys(t).reduce((s,a)=>{if(Object.keys(i.values||Ah).indexOf(a)!==-1){const l=i.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function Kb(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function Gb(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function a$(e,...t){const n=Kb(e),r=[n,...t].reduce((o,i)=>Ft(o,i),{});return Gb(Object.keys(n),r)}function l$(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i{e[o]!=null&&(n[o]=!0)}),n}function Md({values:e,breakpoints:t,base:n}){const r=n||l$(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((s,a,l)=>(Array.isArray(e)?(s[a]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(s[a]=e[a]!=null?e[a]:e[i],i=a):s[a]=e,s),{})}function A(e){if(typeof e!="string")throw new Error(jo(7));return e.charAt(0).toUpperCase()+e.slice(1)}const c$=Object.freeze(Object.defineProperty({__proto__:null,default:A},Symbol.toStringTag,{value:"Module"}));function lu(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function cc(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=lu(e,n)||r,t&&(o=t(o,r,e)),o}function at(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,c=lu(l,r)||{};return Yn(s,a,f=>{let h=cc(c,o,f);return f===h&&typeof f=="string"&&(h=cc(c,o,`${t}${f==="default"?"":A(f)}`,f)),n===!1?h:{[n]:h}})};return i.propTypes={},i.filterProps=[t],i}function u$(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const d$={m:"margin",p:"padding"},f$={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},s0={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},p$=u$(e=>{if(e.length>2)if(s0[e])e=s0[e];else return[e];const[t,n]=e.split(""),r=d$[t],o=f$[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),zh=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Dh=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...zh,...Dh];function Ca(e,t,n,r){var o;const i=(o=lu(e,t,!1))!=null?o:n;return typeof i=="number"?s=>typeof s=="string"?s:i*s:Array.isArray(i)?s=>typeof s=="string"?s:i[s]:typeof i=="function"?i:()=>{}}function Fh(e){return Ca(e,"spacing",8)}function Io(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function h$(e,t){return n=>e.reduce((r,o)=>(r[o]=Io(t,n),r),{})}function m$(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=p$(n),i=h$(o,r),s=e[n];return Yn(e,s,i)}function Yb(e,t){const n=Fh(e.theme);return Object.keys(e).map(r=>m$(e,t,r,n)).reduce(_s,{})}function rt(e){return Yb(e,zh)}rt.propTypes={};rt.filterProps=zh;function ot(e){return Yb(e,Dh)}ot.propTypes={};ot.filterProps=Dh;function g$(e=8){if(e.mui)return e;const t=Fh({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function cu(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?_s(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Cn(e){return typeof e!="number"?e:`${e}px solid`}function Mn(e,t){return at({prop:e,themeKey:"borders",transform:t})}const v$=Mn("border",Cn),y$=Mn("borderTop",Cn),x$=Mn("borderRight",Cn),b$=Mn("borderBottom",Cn),S$=Mn("borderLeft",Cn),C$=Mn("borderColor"),w$=Mn("borderTopColor"),k$=Mn("borderRightColor"),R$=Mn("borderBottomColor"),P$=Mn("borderLeftColor"),E$=Mn("outline",Cn),$$=Mn("outlineColor"),uu=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ca(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Io(t,r)});return Yn(e,e.borderRadius,n)}return null};uu.propTypes={};uu.filterProps=["borderRadius"];cu(v$,y$,x$,b$,S$,C$,w$,k$,R$,P$,uu,E$,$$);const du=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ca(e.theme,"spacing",8),n=r=>({gap:Io(t,r)});return Yn(e,e.gap,n)}return null};du.propTypes={};du.filterProps=["gap"];const fu=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ca(e.theme,"spacing",8),n=r=>({columnGap:Io(t,r)});return Yn(e,e.columnGap,n)}return null};fu.propTypes={};fu.filterProps=["columnGap"];const pu=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ca(e.theme,"spacing",8),n=r=>({rowGap:Io(t,r)});return Yn(e,e.rowGap,n)}return null};pu.propTypes={};pu.filterProps=["rowGap"];const T$=at({prop:"gridColumn"}),_$=at({prop:"gridRow"}),j$=at({prop:"gridAutoFlow"}),O$=at({prop:"gridAutoColumns"}),I$=at({prop:"gridAutoRows"}),M$=at({prop:"gridTemplateColumns"}),N$=at({prop:"gridTemplateRows"}),L$=at({prop:"gridTemplateAreas"}),A$=at({prop:"gridArea"});cu(du,fu,pu,T$,_$,j$,O$,I$,M$,N$,L$,A$);function mi(e,t){return t==="grey"?t:e}const z$=at({prop:"color",themeKey:"palette",transform:mi}),D$=at({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:mi}),F$=at({prop:"backgroundColor",themeKey:"palette",transform:mi});cu(z$,D$,F$);function sn(e){return e<=1&&e!==0?`${e*100}%`:e}const B$=at({prop:"width",transform:sn}),Bh=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Ah[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:sn(n)}};return Yn(e,e.maxWidth,t)}return null};Bh.filterProps=["maxWidth"];const W$=at({prop:"minWidth",transform:sn}),U$=at({prop:"height",transform:sn}),H$=at({prop:"maxHeight",transform:sn}),V$=at({prop:"minHeight",transform:sn});at({prop:"size",cssProperty:"width",transform:sn});at({prop:"size",cssProperty:"height",transform:sn});const q$=at({prop:"boxSizing"});cu(B$,Bh,W$,U$,H$,V$,q$);const wa={border:{themeKey:"borders",transform:Cn},borderTop:{themeKey:"borders",transform:Cn},borderRight:{themeKey:"borders",transform:Cn},borderBottom:{themeKey:"borders",transform:Cn},borderLeft:{themeKey:"borders",transform:Cn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Cn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:uu},color:{themeKey:"palette",transform:mi},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:mi},backgroundColor:{themeKey:"palette",transform:mi},p:{style:ot},pt:{style:ot},pr:{style:ot},pb:{style:ot},pl:{style:ot},px:{style:ot},py:{style:ot},padding:{style:ot},paddingTop:{style:ot},paddingRight:{style:ot},paddingBottom:{style:ot},paddingLeft:{style:ot},paddingX:{style:ot},paddingY:{style:ot},paddingInline:{style:ot},paddingInlineStart:{style:ot},paddingInlineEnd:{style:ot},paddingBlock:{style:ot},paddingBlockStart:{style:ot},paddingBlockEnd:{style:ot},m:{style:rt},mt:{style:rt},mr:{style:rt},mb:{style:rt},ml:{style:rt},mx:{style:rt},my:{style:rt},margin:{style:rt},marginTop:{style:rt},marginRight:{style:rt},marginBottom:{style:rt},marginLeft:{style:rt},marginX:{style:rt},marginY:{style:rt},marginInline:{style:rt},marginInlineStart:{style:rt},marginInlineEnd:{style:rt},marginBlock:{style:rt},marginBlockStart:{style:rt},marginBlockEnd:{style:rt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:du},rowGap:{style:pu},columnGap:{style:fu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:sn},maxWidth:{style:Bh},minWidth:{transform:sn},height:{transform:sn},maxHeight:{transform:sn},minHeight:{transform:sn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function K$(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function G$(e,t){return typeof e=="function"?e(t):e}function Xb(){function e(n,r,o,i){const s={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:d,style:f}=a;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const h=lu(o,c)||{};return f?f(s):Yn(s,r,y=>{let v=cc(h,d,y);return y===v&&typeof y=="string"&&(v=cc(h,d,`${n}${y==="default"?"":A(y)}`,y)),l===!1?v:{[l]:v}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const s=(r=i.unstable_sxConfig)!=null?r:wa;function a(l){let c=l;if(typeof l=="function")c=l(i);else if(typeof l!="object")return l;if(!c)return null;const d=Kb(i.breakpoints),f=Object.keys(d);let h=d;return Object.keys(c).forEach(b=>{const y=G$(c[b],i);if(y!=null)if(typeof y=="object")if(s[b])h=_s(h,e(b,y,i,s));else{const v=Yn({theme:i},y,C=>({[b]:C}));K$(v,y)?h[b]=t({sx:y,theme:i}):h=_s(h,v)}else h=_s(h,e(b,y,i,s))}),Gb(f,h)}return Array.isArray(o)?o.map(a):a(o)}return t}const Wi=Xb();Wi.filterProps=["sx"];function Qb(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const Y$=["breakpoints","palette","spacing","shape"];function Ui(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=H(e,Y$),a=qb(n),l=g$(o);let c=Ft({breakpoints:a,direction:"ltr",components:{},palette:S({mode:"light"},r),spacing:l,shape:S({},s$,i)},s);return c.applyStyles=Qb,c=t.reduce((d,f)=>Ft(d,f),c),c.unstable_sxConfig=S({},wa,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(f){return Wi({sx:f,theme:this})},c}const X$=Object.freeze(Object.defineProperty({__proto__:null,default:Ui,private_createBreakpoints:qb,unstable_applyStyles:Qb},Symbol.toStringTag,{value:"Module"}));function Q$(e){return Object.keys(e).length===0}function Jb(e=null){const t=p.useContext(Sa);return!t||Q$(t)?e:t}const J$=Ui();function hu(e=J$){return Jb(e)}function Z$({styles:e,themeId:t,defaultTheme:n={}}){const r=hu(n),o=typeof e=="function"?e(t&&r[t]||r):e;return u.jsx(Ub,{styles:o})}const e4=["sx"],t4=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:wa;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function mu(e){const{sx:t}=e,n=H(e,e4),{systemProps:r,otherProps:o}=t4(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return mr(a)?S({},r,a):r}:i=S({},r,t),S({},o,{sx:i})}const n4=Object.freeze(Object.defineProperty({__proto__:null,default:Wi,extendSxProp:mu,unstable_createStyleFunctionSx:Xb,unstable_defaultSxConfig:wa},Symbol.toStringTag,{value:"Module"})),a0=e=>e,r4=()=>{let e=a0;return{configure(t){e=t},generate(t){return e(t)},reset(){e=a0}}},Wh=r4();function Zb(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ta!=="theme"&&a!=="sx"&&a!=="as"})(Wi);return p.forwardRef(function(l,c){const d=hu(n),f=mu(l),{className:h,component:b="div"}=f,y=H(f,o4);return u.jsx(i,S({as:b,ref:c,className:V(h,o?o(r):r),theme:t&&d[t]||d},y))})}const e2={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function re(e,t,n="Mui"){const r=e2[t];return r?`${n}-${r}`:`${Wh.generate(e)}-${t}`}function oe(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=re(e,o,n)}),r}var t2={exports:{}},Ae={};/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Uh=Symbol.for("react.element"),Hh=Symbol.for("react.portal"),gu=Symbol.for("react.fragment"),vu=Symbol.for("react.strict_mode"),yu=Symbol.for("react.profiler"),xu=Symbol.for("react.provider"),bu=Symbol.for("react.context"),s4=Symbol.for("react.server_context"),Su=Symbol.for("react.forward_ref"),Cu=Symbol.for("react.suspense"),wu=Symbol.for("react.suspense_list"),ku=Symbol.for("react.memo"),Ru=Symbol.for("react.lazy"),a4=Symbol.for("react.offscreen"),n2;n2=Symbol.for("react.module.reference");function Nn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Uh:switch(e=e.type,e){case gu:case yu:case vu:case Cu:case wu:return e;default:switch(e=e&&e.$$typeof,e){case s4:case bu:case Su:case Ru:case ku:case xu:return e;default:return t}}case Hh:return t}}}Ae.ContextConsumer=bu;Ae.ContextProvider=xu;Ae.Element=Uh;Ae.ForwardRef=Su;Ae.Fragment=gu;Ae.Lazy=Ru;Ae.Memo=ku;Ae.Portal=Hh;Ae.Profiler=yu;Ae.StrictMode=vu;Ae.Suspense=Cu;Ae.SuspenseList=wu;Ae.isAsyncMode=function(){return!1};Ae.isConcurrentMode=function(){return!1};Ae.isContextConsumer=function(e){return Nn(e)===bu};Ae.isContextProvider=function(e){return Nn(e)===xu};Ae.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Uh};Ae.isForwardRef=function(e){return Nn(e)===Su};Ae.isFragment=function(e){return Nn(e)===gu};Ae.isLazy=function(e){return Nn(e)===Ru};Ae.isMemo=function(e){return Nn(e)===ku};Ae.isPortal=function(e){return Nn(e)===Hh};Ae.isProfiler=function(e){return Nn(e)===yu};Ae.isStrictMode=function(e){return Nn(e)===vu};Ae.isSuspense=function(e){return Nn(e)===Cu};Ae.isSuspenseList=function(e){return Nn(e)===wu};Ae.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===gu||e===yu||e===vu||e===Cu||e===wu||e===a4||typeof e=="object"&&e!==null&&(e.$$typeof===Ru||e.$$typeof===ku||e.$$typeof===xu||e.$$typeof===bu||e.$$typeof===Su||e.$$typeof===n2||e.getModuleId!==void 0)};Ae.typeOf=Nn;t2.exports=Ae;var l0=t2.exports;const l4=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function r2(e){const t=`${e}`.match(l4);return t&&t[1]||""}function o2(e,t=""){return e.displayName||e.name||r2(e)||t}function c0(e,t,n){const r=o2(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function c4(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return o2(e,"Component");if(typeof e=="object")switch(e.$$typeof){case l0.ForwardRef:return c0(e,e.render,"ForwardRef");case l0.Memo:return c0(e,e.type,"memo");default:return}}}const u4=Object.freeze(Object.defineProperty({__proto__:null,default:c4,getFunctionName:r2},Symbol.toStringTag,{value:"Module"})),d4=["ownerState"],f4=["variants"],p4=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function h4(e){return Object.keys(e).length===0}function m4(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Nd(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const g4=Ui(),v4=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Ja({defaultTheme:e,theme:t,themeId:n}){return h4(t)?e:t[n]||t}function y4(e){return e?(t,n)=>n[e]:null}function El(e,t){let{ownerState:n}=t,r=H(t,d4);const o=typeof e=="function"?e(S({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>El(i,S({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let a=H(o,f4);return i.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props(S({ownerState:n},r,n)):Object.keys(l.props).forEach(d=>{(n==null?void 0:n[d])!==l.props[d]&&r[d]!==l.props[d]&&(c=!1)}),c&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style(S({ownerState:n},r,n)):l.style))}),a}return o}function x4(e={}){const{themeId:t,defaultTheme:n=g4,rootShouldForwardProp:r=Nd,slotShouldForwardProp:o=Nd}=e,i=s=>Wi(S({},s,{theme:Ja(S({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{Hb(s,k=>k.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:d,skipSx:f,overridesResolver:h=y4(v4(c))}=a,b=H(a,p4),y=d!==void 0?d:c&&c!=="Root"&&c!=="root"||!1,v=f||!1;let C,g=Nd;c==="Root"||c==="root"?g=r:c?g=o:m4(s)&&(g=void 0);const m=Lh(s,S({shouldForwardProp:g,label:C},b)),x=k=>typeof k=="function"&&k.__emotion_real!==k||mr(k)?P=>El(k,S({},P,{theme:Ja({theme:P.theme,defaultTheme:n,themeId:t})})):k,w=(k,...P)=>{let R=x(k);const E=P?P.map(x):[];l&&h&&E.push(O=>{const M=Ja(S({},O,{defaultTheme:n,themeId:t}));if(!M.components||!M.components[l]||!M.components[l].styleOverrides)return null;const I=M.components[l].styleOverrides,N={};return Object.entries(I).forEach(([D,z])=>{N[D]=El(z,S({},O,{theme:M}))}),h(O,N)}),l&&!y&&E.push(O=>{var M;const I=Ja(S({},O,{defaultTheme:n,themeId:t})),N=I==null||(M=I.components)==null||(M=M[l])==null?void 0:M.variants;return El({variants:N},S({},O,{theme:I}))}),v||E.push(i);const j=E.length-P.length;if(Array.isArray(k)&&j>0){const O=new Array(j).fill("");R=[...k,...O],R.raw=[...k.raw,...O]}const T=m(R,...E);return s.muiName&&(T.muiName=s.muiName),T};return m.withConfig&&(w.withConfig=m.withConfig),w}}const i2=x4();function Vh(e,t){const n=S({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=S({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=S({},i),Object.keys(o).forEach(s=>{n[r][s]=Vh(o[s],i[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function b4(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Vh(t.components[n].defaultProps,r)}function qh({props:e,name:t,defaultTheme:n,themeId:r}){let o=hu(n);return r&&(o=o[r]||o),b4({theme:o,name:t,props:e})}const dn=typeof window<"u"?p.useLayoutEffect:p.useEffect;function S4(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const C4=Object.freeze(Object.defineProperty({__proto__:null,default:S4},Symbol.toStringTag,{value:"Module"}));function ap(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Hi(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function w4(e,t){return()=>null}function js(e,t){var n,r;return p.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function ft(e){return e&&e.ownerDocument||document}function _n(e){return ft(e).defaultView||window}function k4(e,t){return()=>null}function uc(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let u0=0;function R4(e){const[t,n]=p.useState(e),r=e||t;return p.useEffect(()=>{t==null&&(u0+=1,n(`mui-${u0}`))},[t]),r}const d0=Ol.useId;function ka(e){if(d0!==void 0){const t=d0();return e??t}return R4(e)}function P4(e,t,n,r,o){return null}function sa({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=p.useRef(e!==void 0),[i,s]=p.useState(t),a=o?e:i,l=p.useCallback(c=>{o||s(c)},[]);return[a,l]}function zt(e){const t=p.useRef(e);return dn(()=>{t.current=e}),p.useRef((...n)=>(0,t.current)(...n)).current}function Ye(...e){return p.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{uc(n,t)})},e)}const f0={};function E4(e,t){const n=p.useRef(f0);return n.current===f0&&(n.current=e(t)),n}const $4=[];function T4(e){p.useEffect(e,$4)}class Ra{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ra}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function xo(){const e=E4(Ra.create).current;return T4(e.disposeEffect),e}let Pu=!0,lp=!1;const _4=new Ra,j4={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 O4(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&j4[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function I4(e){e.metaKey||e.altKey||e.ctrlKey||(Pu=!0)}function Ld(){Pu=!1}function M4(){this.visibilityState==="hidden"&&lp&&(Pu=!0)}function N4(e){e.addEventListener("keydown",I4,!0),e.addEventListener("mousedown",Ld,!0),e.addEventListener("pointerdown",Ld,!0),e.addEventListener("touchstart",Ld,!0),e.addEventListener("visibilitychange",M4,!0)}function L4(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Pu||O4(t)}function Kh(){const e=p.useCallback(o=>{o!=null&&N4(o.ownerDocument)},[]),t=p.useRef(!1);function n(){return t.current?(lp=!0,_4.start(100,()=>{lp=!1}),t.current=!1,!0):!1}function r(o){return L4(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function s2(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Vo;function a2(){if(Vo)return Vo;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Vo="reverse",e.scrollLeft>0?Vo="default":(e.scrollLeft=1,e.scrollLeft===0&&(Vo="negative")),document.body.removeChild(e),Vo}function A4(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(a2()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const l2=e=>{const t=p.useRef({});return p.useEffect(()=>{t.current=e}),t.current};function ie(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,s)=>{if(s){const a=t(s);a!==""&&i.push(a),n&&n[s]&&i.push(n[s])}return i},[]).join(" ")}),r}const c2=p.createContext(null);function u2(){return p.useContext(c2)}const z4=typeof Symbol=="function"&&Symbol.for,D4=z4?Symbol.for("mui.nested"):"__THEME_NESTED__";function F4(e,t){return typeof t=="function"?t(e):S({},e,t)}function B4(e){const{children:t,theme:n}=e,r=u2(),o=p.useMemo(()=>{const i=r===null?n:F4(r,n);return i!=null&&(i[D4]=r!==null),i},[n,r]);return u.jsx(c2.Provider,{value:o,children:t})}const W4=["value"],d2=p.createContext();function U4(e){let{value:t}=e,n=H(e,W4);return u.jsx(d2.Provider,S({value:t??!0},n))}const Pa=()=>{const e=p.useContext(d2);return e??!1},p0={};function h0(e,t,n,r=!1){return p.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),s=e?S({},t,{[e]:i}):i;return r?()=>s:s}return e?S({},t,{[e]:n}):S({},t,n)},[e,t,n,r])}function H4(e){const{children:t,theme:n,themeId:r}=e,o=Jb(p0),i=u2()||p0,s=h0(r,o,n),a=h0(r,i,n,!0),l=s.direction==="rtl";return u.jsx(B4,{theme:a,children:u.jsx(Sa.Provider,{value:s,children:u.jsx(U4,{value:l,children:t})})})}const V4=["className","component","disableGutters","fixed","maxWidth","classes"],q4=Ui(),K4=i2("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${A(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),G4=e=>qh({props:e,name:"MuiContainer",defaultTheme:q4}),Y4=(e,t)=>{const n=l=>re(t,l),{classes:r,fixed:o,disableGutters:i,maxWidth:s}=e,a={root:["root",s&&`maxWidth${A(String(s))}`,o&&"fixed",i&&"disableGutters"]};return ie(a,n,r)};function X4(e={}){const{createStyledComponent:t=K4,useThemeProps:n=G4,componentName:r="MuiContainer"}=e,o=t(({theme:s,ownerState:a})=>S({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!a.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}),({theme:s,ownerState:a})=>a.fixed&&Object.keys(s.breakpoints.values).reduce((l,c)=>{const d=c,f=s.breakpoints.values[d];return f!==0&&(l[s.breakpoints.up(d)]={maxWidth:`${f}${s.breakpoints.unit}`}),l},{}),({theme:s,ownerState:a})=>S({},a.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},a.maxWidth&&a.maxWidth!=="xs"&&{[s.breakpoints.up(a.maxWidth)]:{maxWidth:`${s.breakpoints.values[a.maxWidth]}${s.breakpoints.unit}`}}));return p.forwardRef(function(a,l){const c=n(a),{className:d,component:f="div",disableGutters:h=!1,fixed:b=!1,maxWidth:y="lg"}=c,v=H(c,V4),C=S({},c,{component:f,disableGutters:h,fixed:b,maxWidth:y}),g=Y4(C,r);return u.jsx(o,S({as:f,ownerState:C,className:V(g.root,d),ref:l},v))})}const Q4=["component","direction","spacing","divider","children","className","useFlexGap"],J4=Ui(),Z4=i2("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function e5(e){return qh({props:e,name:"MuiStack",defaultTheme:J4})}function t5(e,t){const n=p.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],r5=({ownerState:e,theme:t})=>{let n=S({display:"flex",flexDirection:"column"},Yn({theme:t},Md({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=Fh(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),i=Md({values:e.direction,base:o}),s=Md({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,c,d)=>{if(!i[l]){const h=c>0?i[d[c-1]]:"column";i[l]=h}}),n=Ft(n,Yn({theme:t},s,(l,c)=>e.useFlexGap?{gap:Io(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${n5(c?i[c]:e.direction)}`]:Io(r,l)}}))}return n=a$(t.breakpoints,n),n};function o5(e={}){const{createStyledComponent:t=Z4,useThemeProps:n=e5,componentName:r="MuiStack"}=e,o=()=>ie({root:["root"]},l=>re(r,l),{}),i=t(r5);return p.forwardRef(function(l,c){const d=n(l),f=mu(d),{component:h="div",direction:b="column",spacing:y=0,divider:v,children:C,className:g,useFlexGap:m=!1}=f,x=H(f,Q4),w={direction:b,spacing:y,useFlexGap:m},k=o();return u.jsx(i,S({as:h,ownerState:w,ref:c,className:V(k.root,g)},x,{children:v?t5(C,v):C}))})}function i5(e,t){return S({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var lt={},f2={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(f2);var de=f2.exports;const s5=Pr(GP),a5=Pr(C4);var p2=de;Object.defineProperty(lt,"__esModule",{value:!0});var je=lt.alpha=v2;lt.blend=x5;lt.colorChannel=void 0;var dc=lt.darken=Yh;lt.decomposeColor=jn;var l5=lt.emphasize=y2,c5=lt.getContrastRatio=h5;lt.getLuminance=pc;lt.hexToRgb=h2;lt.hslToRgb=g2;var fc=lt.lighten=Xh;lt.private_safeAlpha=m5;lt.private_safeColorChannel=void 0;lt.private_safeDarken=g5;lt.private_safeEmphasize=y5;lt.private_safeLighten=v5;lt.recomposeColor=Vi;lt.rgbToHex=p5;var m0=p2(s5),u5=p2(a5);function Gh(e,t=0,n=1){return(0,u5.default)(e,t,n)}function h2(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function d5(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function jn(e){if(e.type)return e;if(e.charAt(0)==="#")return jn(h2(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,m0.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,m0.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const m2=e=>{const t=jn(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};lt.colorChannel=m2;const f5=(e,t)=>{try{return m2(e)}catch{return e}};lt.private_safeColorChannel=f5;function Vi(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function p5(e){if(e.indexOf("#")===0)return e;const{values:t}=jn(e);return`#${t.map((n,r)=>d5(r===3?Math.round(255*n):n)).join("")}`}function g2(e){e=jn(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(c,d=(c+n/30)%12)=>o-i*Math.max(Math.min(d-3,9-d,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),Vi({type:a,values:l})}function pc(e){e=jn(e);let t=e.type==="hsl"||e.type==="hsla"?jn(g2(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function h5(e,t){const n=pc(e),r=pc(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function v2(e,t){return e=jn(e),t=Gh(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Vi(e)}function m5(e,t,n){try{return v2(e,t)}catch{return e}}function Yh(e,t){if(e=jn(e),t=Gh(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Vi(e)}function g5(e,t,n){try{return Yh(e,t)}catch{return e}}function Xh(e,t){if(e=jn(e),t=Gh(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Vi(e)}function v5(e,t,n){try{return Xh(e,t)}catch{return e}}function y2(e,t=.15){return pc(e)>.5?Yh(e,t):Xh(e,t)}function y5(e,t,n){try{return y2(e,t)}catch{return e}}function x5(e,t,n,r=1){const o=(l,c)=>Math.round((l**(1/r)*(1-n)+c**(1/r)*n)**r),i=jn(e),s=jn(t),a=[o(i.values[0],s.values[0]),o(i.values[1],s.values[1]),o(i.values[2],s.values[2])];return Vi({type:"rgb",values:a})}const b5=["mode","contrastThreshold","tonalOffset"],g0={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:na.white,default:na.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Ad={text:{primary:na.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:na.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 v0(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=fc(e.main,o):t==="dark"&&(e.dark=dc(e.main,i)))}function S5(e="light"){return e==="dark"?{main:Wo[200],light:Wo[50],dark:Wo[400]}:{main:Wo[700],light:Wo[400],dark:Wo[800]}}function C5(e="light"){return e==="dark"?{main:Bo[200],light:Bo[50],dark:Bo[400]}:{main:Bo[500],light:Bo[300],dark:Bo[700]}}function w5(e="light"){return e==="dark"?{main:Fo[500],light:Fo[300],dark:Fo[700]}:{main:Fo[700],light:Fo[400],dark:Fo[800]}}function k5(e="light"){return e==="dark"?{main:Uo[400],light:Uo[300],dark:Uo[700]}:{main:Uo[700],light:Uo[500],dark:Uo[900]}}function R5(e="light"){return e==="dark"?{main:Ho[400],light:Ho[300],dark:Ho[700]}:{main:Ho[800],light:Ho[500],dark:Ho[900]}}function P5(e="light"){return e==="dark"?{main:ss[400],light:ss[300],dark:ss[700]}:{main:"#ed6c02",light:ss[500],dark:ss[900]}}function E5(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=H(e,b5),i=e.primary||S5(t),s=e.secondary||C5(t),a=e.error||w5(t),l=e.info||k5(t),c=e.success||R5(t),d=e.warning||P5(t);function f(v){return c5(v,Ad.text.primary)>=n?Ad.text.primary:g0.text.primary}const h=({color:v,name:C,mainShade:g=500,lightShade:m=300,darkShade:x=700})=>{if(v=S({},v),!v.main&&v[g]&&(v.main=v[g]),!v.hasOwnProperty("main"))throw new Error(jo(11,C?` (${C})`:"",g));if(typeof v.main!="string")throw new Error(jo(12,C?` (${C})`:"",JSON.stringify(v.main)));return v0(v,"light",m,r),v0(v,"dark",x,r),v.contrastText||(v.contrastText=f(v.main)),v},b={dark:Ad,light:g0};return Ft(S({common:S({},na),mode:t,primary:h({color:i,name:"primary"}),secondary:h({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:a,name:"error"}),warning:h({color:d,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:c,name:"success"}),grey:KP,contrastThreshold:n,getContrastText:f,augmentColor:h,tonalOffset:r},b[t]),o)}const $5=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function T5(e){return Math.round(e*1e5)/1e5}const y0={textTransform:"uppercase"},x0='"Roboto", "Helvetica", "Arial", sans-serif';function _5(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=x0,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:d,pxToRem:f}=n,h=H(n,$5),b=o/14,y=f||(g=>`${g/c*b}rem`),v=(g,m,x,w,k)=>S({fontFamily:r,fontWeight:g,fontSize:y(m),lineHeight:x},r===x0?{letterSpacing:`${T5(w/m)}em`}:{},k,d),C={h1:v(i,96,1.167,-1.5),h2:v(i,60,1.2,-.5),h3:v(s,48,1.167,0),h4:v(s,34,1.235,.25),h5:v(s,24,1.334,0),h6:v(a,20,1.6,.15),subtitle1:v(s,16,1.75,.15),subtitle2:v(a,14,1.57,.1),body1:v(s,16,1.5,.15),body2:v(s,14,1.43,.15),button:v(a,14,1.75,.4,y0),caption:v(s,12,1.66,.4),overline:v(s,12,2.66,1,y0),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ft(S({htmlFontSize:c,pxToRem:y,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},C),h,{clone:!1})}const j5=.2,O5=.14,I5=.12;function Ve(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${j5})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${O5})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${I5})`].join(",")}const M5=["none",Ve(0,2,1,-1,0,1,1,0,0,1,3,0),Ve(0,3,1,-2,0,2,2,0,0,1,5,0),Ve(0,3,3,-2,0,3,4,0,0,1,8,0),Ve(0,2,4,-1,0,4,5,0,0,1,10,0),Ve(0,3,5,-1,0,5,8,0,0,1,14,0),Ve(0,3,5,-1,0,6,10,0,0,1,18,0),Ve(0,4,5,-2,0,7,10,1,0,2,16,1),Ve(0,5,5,-3,0,8,10,1,0,3,14,2),Ve(0,5,6,-3,0,9,12,1,0,3,16,2),Ve(0,6,6,-3,0,10,14,1,0,4,18,3),Ve(0,6,7,-4,0,11,15,1,0,4,20,3),Ve(0,7,8,-4,0,12,17,2,0,5,22,4),Ve(0,7,8,-4,0,13,19,2,0,5,24,4),Ve(0,7,9,-4,0,14,21,2,0,5,26,4),Ve(0,8,9,-5,0,15,22,2,0,6,28,5),Ve(0,8,10,-5,0,16,24,2,0,6,30,5),Ve(0,8,11,-5,0,17,26,2,0,6,32,5),Ve(0,9,11,-5,0,18,28,2,0,7,34,6),Ve(0,9,12,-6,0,19,29,2,0,7,36,6),Ve(0,10,13,-6,0,20,31,3,0,8,38,7),Ve(0,10,13,-6,0,21,33,3,0,8,40,7),Ve(0,10,14,-6,0,22,35,3,0,8,42,7),Ve(0,11,14,-7,0,23,36,3,0,9,44,8),Ve(0,11,15,-7,0,24,38,3,0,9,46,8)],N5=["duration","easing","delay"],L5={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)"},A5={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function b0(e){return`${Math.round(e)}ms`}function z5(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function D5(e){const t=S({},L5,e.easing),n=S({},A5,e.duration);return S({getAutoHeightDuration:z5,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0}=i;return H(i,N5),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof s=="string"?s:b0(s)} ${a} ${typeof l=="string"?l:b0(l)}`).join(",")}},e,{easing:t,duration:n})}const F5={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},B5=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Ea(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,s=H(e,B5);if(e.vars)throw new Error(jo(18));const a=E5(r),l=Ui(e);let c=Ft(l,{mixins:i5(l.breakpoints,n),palette:a,shadows:M5.slice(),typography:_5(a,i),transitions:D5(o),zIndex:S({},F5)});return c=Ft(c,s),c=t.reduce((d,f)=>Ft(d,f),c),c.unstable_sxConfig=S({},wa,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(f){return Wi({sx:f,theme:this})},c}const Eu=Ea();function io(){const e=hu(Eu);return e[Oo]||e}function le({props:e,name:t}){return qh({props:e,name:t,defaultTheme:Eu,themeId:Oo})}var $a={},zd={exports:{}},S0;function W5(){return S0||(S0=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(r.indexOf(i)>=0)continue;o[i]=n[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(zd)),zd.exports}const x2=Pr(n$),U5=Pr(r$),H5=Pr(c$),V5=Pr(u4),q5=Pr(X$),K5=Pr(n4);var qi=de;Object.defineProperty($a,"__esModule",{value:!0});var G5=$a.default=aT;$a.shouldForwardProp=$l;$a.systemDefaultTheme=void 0;var yn=qi(Db()),cp=qi(W5()),C0=tT(x2),Y5=U5;qi(H5);qi(V5);var X5=qi(q5),Q5=qi(K5);const J5=["ownerState"],Z5=["variants"],eT=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function b2(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(b2=function(r){return r?n:t})(e)}function tT(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=b2(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function nT(e){return Object.keys(e).length===0}function rT(e){return typeof e=="string"&&e.charCodeAt(0)>96}function $l(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const oT=$a.systemDefaultTheme=(0,X5.default)(),iT=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Za({defaultTheme:e,theme:t,themeId:n}){return nT(t)?e:t[n]||t}function sT(e){return e?(t,n)=>n[e]:null}function Tl(e,t){let{ownerState:n}=t,r=(0,cp.default)(t,J5);const o=typeof e=="function"?e((0,yn.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Tl(i,(0,yn.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let a=(0,cp.default)(o,Z5);return i.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props((0,yn.default)({ownerState:n},r,n)):Object.keys(l.props).forEach(d=>{(n==null?void 0:n[d])!==l.props[d]&&r[d]!==l.props[d]&&(c=!1)}),c&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style((0,yn.default)({ownerState:n},r,n)):l.style))}),a}return o}function aT(e={}){const{themeId:t,defaultTheme:n=oT,rootShouldForwardProp:r=$l,slotShouldForwardProp:o=$l}=e,i=s=>(0,Q5.default)((0,yn.default)({},s,{theme:Za((0,yn.default)({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{(0,C0.internal_processStyles)(s,k=>k.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:d,skipSx:f,overridesResolver:h=sT(iT(c))}=a,b=(0,cp.default)(a,eT),y=d!==void 0?d:c&&c!=="Root"&&c!=="root"||!1,v=f||!1;let C,g=$l;c==="Root"||c==="root"?g=r:c?g=o:rT(s)&&(g=void 0);const m=(0,C0.default)(s,(0,yn.default)({shouldForwardProp:g,label:C},b)),x=k=>typeof k=="function"&&k.__emotion_real!==k||(0,Y5.isPlainObject)(k)?P=>Tl(k,(0,yn.default)({},P,{theme:Za({theme:P.theme,defaultTheme:n,themeId:t})})):k,w=(k,...P)=>{let R=x(k);const E=P?P.map(x):[];l&&h&&E.push(O=>{const M=Za((0,yn.default)({},O,{defaultTheme:n,themeId:t}));if(!M.components||!M.components[l]||!M.components[l].styleOverrides)return null;const I=M.components[l].styleOverrides,N={};return Object.entries(I).forEach(([D,z])=>{N[D]=Tl(z,(0,yn.default)({},O,{theme:M}))}),h(O,N)}),l&&!y&&E.push(O=>{var M;const I=Za((0,yn.default)({},O,{defaultTheme:n,themeId:t})),N=I==null||(M=I.components)==null||(M=M[l])==null?void 0:M.variants;return Tl({variants:N},(0,yn.default)({},O,{theme:I}))}),v||E.push(i);const j=E.length-P.length;if(Array.isArray(k)&&j>0){const O=new Array(j).fill("");R=[...k,...O],R.raw=[...k.raw,...O]}const T=m(R,...E);return s.muiName&&(T.muiName=s.muiName),T};return m.withConfig&&(w.withConfig=m.withConfig),w}}function S2(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Mt=e=>S2(e)&&e!=="classes",B=G5({themeId:Oo,defaultTheme:Eu,rootShouldForwardProp:Mt}),lT=["theme"];function Qh(e){let{theme:t}=e,n=H(e,lT);const r=t[Oo];return u.jsx(H4,S({},n,{themeId:r?Oo:void 0,theme:r||t}))}const w0=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function cT(e){return re("MuiSvgIcon",e)}oe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const uT=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],dT=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${A(t)}`,`fontSize${A(n)}`]};return ie(o,cT,r)},fT=B("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${A(n.color)}`],t[`fontSize${A(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,s,a,l,c,d,f,h,b,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(s=i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem",medium:((a=e.typography)==null||(l=a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem",large:((c=e.typography)==null||(d=c.pxToRem)==null?void 0:d.call(c,35))||"2.1875rem"}[t.fontSize],color:(f=(h=(e.vars||e).palette)==null||(h=h[t.color])==null?void 0:h.main)!=null?f:{action:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.active,disabled:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.disabled,inherit:void 0}[t.color]}}),up=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:d=!1,titleAccess:f,viewBox:h="0 0 24 24"}=r,b=H(r,uT),y=p.isValidElement(o)&&o.type==="svg",v=S({},r,{color:s,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:h,hasSvgAsChild:y}),C={};d||(C.viewBox=h);const g=dT(v);return u.jsxs(fT,S({as:a,className:V(g.root,i),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},C,b,y&&o.props,{ownerState:v,children:[y?o.props.children:o,f?u.jsx("title",{children:f}):null]}))});up.muiName="SvgIcon";function Nt(e,t){function n(r,o){return u.jsx(up,S({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=up.muiName,p.memo(p.forwardRef(n))}const pT={configure:e=>{Wh.configure(e)}},hT=Object.freeze(Object.defineProperty({__proto__:null,capitalize:A,createChainedFunction:ap,createSvgIcon:Nt,debounce:Hi,deprecatedPropType:w4,isMuiElement:js,ownerDocument:ft,ownerWindow:_n,requirePropFactory:k4,setRef:uc,unstable_ClassNameGenerator:pT,unstable_useEnhancedEffect:dn,unstable_useId:ka,unsupportedProp:P4,useControlled:sa,useEventCallback:zt,useForkRef:Ye,useIsFocusVisible:Kh},Symbol.toStringTag,{value:"Module"}));var De={};/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Jh=Symbol.for("react.element"),Zh=Symbol.for("react.portal"),$u=Symbol.for("react.fragment"),Tu=Symbol.for("react.strict_mode"),_u=Symbol.for("react.profiler"),ju=Symbol.for("react.provider"),Ou=Symbol.for("react.context"),mT=Symbol.for("react.server_context"),Iu=Symbol.for("react.forward_ref"),Mu=Symbol.for("react.suspense"),Nu=Symbol.for("react.suspense_list"),Lu=Symbol.for("react.memo"),Au=Symbol.for("react.lazy"),gT=Symbol.for("react.offscreen"),C2;C2=Symbol.for("react.module.reference");function Ln(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Jh:switch(e=e.type,e){case $u:case _u:case Tu:case Mu:case Nu:return e;default:switch(e=e&&e.$$typeof,e){case mT:case Ou:case Iu:case Au:case Lu:case ju:return e;default:return t}}case Zh:return t}}}De.ContextConsumer=Ou;De.ContextProvider=ju;De.Element=Jh;De.ForwardRef=Iu;De.Fragment=$u;De.Lazy=Au;De.Memo=Lu;De.Portal=Zh;De.Profiler=_u;De.StrictMode=Tu;De.Suspense=Mu;De.SuspenseList=Nu;De.isAsyncMode=function(){return!1};De.isConcurrentMode=function(){return!1};De.isContextConsumer=function(e){return Ln(e)===Ou};De.isContextProvider=function(e){return Ln(e)===ju};De.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Jh};De.isForwardRef=function(e){return Ln(e)===Iu};De.isFragment=function(e){return Ln(e)===$u};De.isLazy=function(e){return Ln(e)===Au};De.isMemo=function(e){return Ln(e)===Lu};De.isPortal=function(e){return Ln(e)===Zh};De.isProfiler=function(e){return Ln(e)===_u};De.isStrictMode=function(e){return Ln(e)===Tu};De.isSuspense=function(e){return Ln(e)===Mu};De.isSuspenseList=function(e){return Ln(e)===Nu};De.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===$u||e===_u||e===Tu||e===Mu||e===Nu||e===gT||typeof e=="object"&&e!==null&&(e.$$typeof===Au||e.$$typeof===Lu||e.$$typeof===ju||e.$$typeof===Ou||e.$$typeof===Iu||e.$$typeof===C2||e.getModuleId!==void 0)};De.typeOf=Ln;function zu(e){return le}function dp(e,t){return dp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},dp(e,t)}function w2(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,dp(e,t)}const k0={disabled:!1},hc=Vt.createContext(null);var vT=function(t){return t.scrollTop},xs="unmounted",ho="exited",mo="entering",Ko="entered",fp="exiting",Qn=function(e){w2(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=o,a=s&&!s.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?a?(l=ho,i.appearStatus=mo):l=Ko:r.unmountOnExit||r.mountOnEnter?l=xs:l=ho,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===xs?{status:ho}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==mo&&s!==Ko&&(i=mo):(s===mo||s===Ko)&&(i=fp)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,a;return i=s=a=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,a=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===mo){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Xa.findDOMNode(this);s&&vT(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ho&&this.setState({status:xs})},n.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[Xa.findDOMNode(this),a],c=l[0],d=l[1],f=this.getTimeouts(),h=a?f.appear:f.enter;if(!o&&!s||k0.disabled){this.safeSetState({status:Ko},function(){i.props.onEntered(c)});return}this.props.onEnter(c,d),this.safeSetState({status:mo},function(){i.props.onEntering(c,d),i.onTransitionEnd(h,function(){i.safeSetState({status:Ko},function(){i.props.onEntered(c,d)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:Xa.findDOMNode(this);if(!i||k0.disabled){this.safeSetState({status:ho},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:fp},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:ho},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:Xa.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=l[0],d=l[1];this.props.addEndListener(c,d)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===xs)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=H(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Vt.createElement(hc.Provider,{value:null},typeof s=="function"?s(o,a):Vt.cloneElement(Vt.Children.only(s),a))},t}(Vt.Component);Qn.contextType=hc;Qn.propTypes={};function qo(){}Qn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:qo,onEntering:qo,onEntered:qo,onExit:qo,onExiting:qo,onExited:qo};Qn.UNMOUNTED=xs;Qn.EXITED=ho;Qn.ENTERING=mo;Qn.ENTERED=Ko;Qn.EXITING=fp;function yT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function em(e,t){var n=function(i){return t&&p.isValidElement(i)?t(i):i},r=Object.create(null);return e&&p.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function xT(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var s,a={};for(var l in t){if(r[l])for(s=0;se.scrollTop;function Pi(e,t){var n,r;const{timeout:o,easing:i,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:s.transitionDelay}}function kT(e){return re("MuiPaper",e)}oe("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const RT=["className","component","elevation","square","variant"],PT=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return ie(i,kT,o)},ET=B("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return S({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&S({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${je("#fff",w0(t.elevation))}, ${je("#fff",w0(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),gn=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:s=1,square:a=!1,variant:l="elevation"}=r,c=H(r,RT),d=S({},r,{component:i,elevation:s,square:a,variant:l}),f=PT(d);return u.jsx(ET,S({as:i,ownerState:d,className:V(f.root,o),ref:n},c))});function Ei(e){return typeof e=="string"}function ai(e,t,n){return e===void 0||Ei(e)?t:S({},t,{ownerState:S({},t.ownerState,n)})}const $T={disableDefaultClasses:!1},TT=p.createContext($T);function _T(e){const{disableDefaultClasses:t}=p.useContext(TT);return n=>t?"":e(n)}function mc(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function k2(e,t,n){return typeof e=="function"?e(t,n):e}function R0(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function R2(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const b=V(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),y=S({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),v=S({},n,o,r);return b.length>0&&(v.className=b),Object.keys(y).length>0&&(v.style=y),{props:v,internalRef:void 0}}const s=mc(S({},o,r)),a=R0(r),l=R0(o),c=t(s),d=V(c==null?void 0:c.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),f=S({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),h=S({},c,n,l,a);return d.length>0&&(h.className=d),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:c.ref}}const jT=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function en(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,s=H(e,jT),a=i?{}:k2(r,o),{props:l,internalRef:c}=R2(S({},s,{externalSlotProps:a})),d=Ye(c,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return ai(n,S({},l,{ref:d}),o)}const OT=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],IT=["component","slots","slotProps"],MT=["component"];function pp(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,getSlotOwnerState:s,internalForwardedProps:a}=t,l=H(t,OT),{component:c,slots:d={[e]:void 0},slotProps:f={[e]:void 0}}=i,h=H(i,IT),b=d[e]||r,y=k2(f[e],o),v=R2(S({className:n},l,{externalForwardedProps:e==="root"?h:void 0,externalSlotProps:y})),{props:{component:C},internalRef:g}=v,m=H(v.props,MT),x=Ye(g,y==null?void 0:y.ref,t.ref),w=s?s(m):{},k=S({},o,w),P=e==="root"?C||c:C,R=ai(b,S({},e==="root"&&!c&&!d[e]&&a,e!=="root"&&!d[e]&&a,m,P&&{as:P},{ref:x}),k);return Object.keys(w).forEach(E=>{delete R[E]}),[b,R]}function NT(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:s,in:a,onExited:l,timeout:c}=e,[d,f]=p.useState(!1),h=V(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),b={width:s,height:s,top:-(s/2)+i,left:-(s/2)+o},y=V(n.child,d&&n.childLeaving,r&&n.childPulsate);return!a&&!d&&f(!0),p.useEffect(()=>{if(!a&&l!=null){const v=setTimeout(l,c);return()=>{clearTimeout(v)}}},[l,a,c]),u.jsx("span",{className:h,style:b,children:u.jsx("span",{className:y})})}const xn=oe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),LT=["center","classes","className"];let Du=e=>e,P0,E0,$0,T0;const hp=550,AT=80,zT=Bi(P0||(P0=Du` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),DT=Bi(E0||(E0=Du` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),FT=Bi($0||($0=Du` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),BT=B("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),WT=B(NT,{name:"MuiTouchRipple",slot:"Ripple"})(T0||(T0=Du` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),xn.rippleVisible,zT,hp,({theme:e})=>e.transitions.easing.easeInOut,xn.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,xn.child,xn.childLeaving,DT,hp,({theme:e})=>e.transitions.easing.easeInOut,xn.childPulsate,FT,({theme:e})=>e.transitions.easing.easeInOut),UT=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s}=r,a=H(r,LT),[l,c]=p.useState([]),d=p.useRef(0),f=p.useRef(null);p.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const h=p.useRef(!1),b=xo(),y=p.useRef(null),v=p.useRef(null),C=p.useCallback(w=>{const{pulsate:k,rippleX:P,rippleY:R,rippleSize:E,cb:j}=w;c(T=>[...T,u.jsx(WT,{classes:{ripple:V(i.ripple,xn.ripple),rippleVisible:V(i.rippleVisible,xn.rippleVisible),ripplePulsate:V(i.ripplePulsate,xn.ripplePulsate),child:V(i.child,xn.child),childLeaving:V(i.childLeaving,xn.childLeaving),childPulsate:V(i.childPulsate,xn.childPulsate)},timeout:hp,pulsate:k,rippleX:P,rippleY:R,rippleSize:E},d.current)]),d.current+=1,f.current=j},[i]),g=p.useCallback((w={},k={},P=()=>{})=>{const{pulsate:R=!1,center:E=o||k.pulsate,fakeElement:j=!1}=k;if((w==null?void 0:w.type)==="mousedown"&&h.current){h.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(h.current=!0);const T=j?null:v.current,O=T?T.getBoundingClientRect():{width:0,height:0,left:0,top:0};let M,I,N;if(E||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)M=Math.round(O.width/2),I=Math.round(O.height/2);else{const{clientX:D,clientY:z}=w.touches&&w.touches.length>0?w.touches[0]:w;M=Math.round(D-O.left),I=Math.round(z-O.top)}if(E)N=Math.sqrt((2*O.width**2+O.height**2)/3),N%2===0&&(N+=1);else{const D=Math.max(Math.abs((T?T.clientWidth:0)-M),M)*2+2,z=Math.max(Math.abs((T?T.clientHeight:0)-I),I)*2+2;N=Math.sqrt(D**2+z**2)}w!=null&&w.touches?y.current===null&&(y.current=()=>{C({pulsate:R,rippleX:M,rippleY:I,rippleSize:N,cb:P})},b.start(AT,()=>{y.current&&(y.current(),y.current=null)})):C({pulsate:R,rippleX:M,rippleY:I,rippleSize:N,cb:P})},[o,C,b]),m=p.useCallback(()=>{g({},{pulsate:!0})},[g]),x=p.useCallback((w,k)=>{if(b.clear(),(w==null?void 0:w.type)==="touchend"&&y.current){y.current(),y.current=null,b.start(0,()=>{x(w,k)});return}y.current=null,c(P=>P.length>0?P.slice(1):P),f.current=k},[b]);return p.useImperativeHandle(n,()=>({pulsate:m,start:g,stop:x}),[m,g,x]),u.jsx(BT,S({className:V(xn.root,i.root,s),ref:v},a,{children:u.jsx(tm,{component:null,exit:!0,children:l})}))});function HT(e){return re("MuiButtonBase",e)}const VT=oe("MuiButtonBase",["root","disabled","focusVisible"]),qT=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],KT=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=ie({root:["root",t&&"disabled",n&&"focusVisible"]},HT,o);return n&&r&&(s.root+=` ${r}`),s},GT=B("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${VT.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),kr=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:a,component:l="button",disabled:c=!1,disableRipple:d=!1,disableTouchRipple:f=!1,focusRipple:h=!1,LinkComponent:b="a",onBlur:y,onClick:v,onContextMenu:C,onDragLeave:g,onFocus:m,onFocusVisible:x,onKeyDown:w,onKeyUp:k,onMouseDown:P,onMouseLeave:R,onMouseUp:E,onTouchEnd:j,onTouchMove:T,onTouchStart:O,tabIndex:M=0,TouchRippleProps:I,touchRippleRef:N,type:D}=r,z=H(r,qT),W=p.useRef(null),$=p.useRef(null),_=Ye($,N),{isFocusVisibleRef:F,onFocus:G,onBlur:X,ref:ce}=Kh(),[Z,ue]=p.useState(!1);c&&Z&&ue(!1),p.useImperativeHandle(o,()=>({focusVisible:()=>{ue(!0),W.current.focus()}}),[]);const[U,ee]=p.useState(!1);p.useEffect(()=>{ee(!0)},[]);const K=U&&!d&&!c;p.useEffect(()=>{Z&&h&&!d&&U&&$.current.pulsate()},[d,h,Z,U]);function Q(se,tt,Ut=f){return zt(tn=>(tt&&tt(tn),!Ut&&$.current&&$.current[se](tn),!0))}const he=Q("start",P),J=Q("stop",C),fe=Q("stop",g),pe=Q("stop",E),Se=Q("stop",se=>{Z&&se.preventDefault(),R&&R(se)}),xe=Q("start",O),Ct=Q("stop",j),Fe=Q("stop",T),ze=Q("stop",se=>{X(se),F.current===!1&&ue(!1),y&&y(se)},!1),pt=zt(se=>{W.current||(W.current=se.currentTarget),G(se),F.current===!0&&(ue(!0),x&&x(se)),m&&m(se)}),Me=()=>{const se=W.current;return l&&l!=="button"&&!(se.tagName==="A"&&se.href)},ke=p.useRef(!1),ct=zt(se=>{h&&!ke.current&&Z&&$.current&&se.key===" "&&(ke.current=!0,$.current.stop(se,()=>{$.current.start(se)})),se.target===se.currentTarget&&Me()&&se.key===" "&&se.preventDefault(),w&&w(se),se.target===se.currentTarget&&Me()&&se.key==="Enter"&&!c&&(se.preventDefault(),v&&v(se))}),He=zt(se=>{h&&se.key===" "&&$.current&&Z&&!se.defaultPrevented&&(ke.current=!1,$.current.stop(se,()=>{$.current.pulsate(se)})),k&&k(se),v&&se.target===se.currentTarget&&Me()&&se.key===" "&&!se.defaultPrevented&&v(se)});let Ee=l;Ee==="button"&&(z.href||z.to)&&(Ee=b);const ht={};Ee==="button"?(ht.type=D===void 0?"button":D,ht.disabled=c):(!z.href&&!z.to&&(ht.role="button"),c&&(ht["aria-disabled"]=c));const yt=Ye(n,ce,W),wt=S({},r,{centerRipple:i,component:l,disabled:c,disableRipple:d,disableTouchRipple:f,focusRipple:h,tabIndex:M,focusVisible:Z}),Re=KT(wt);return u.jsxs(GT,S({as:Ee,className:V(Re.root,a),ownerState:wt,onBlur:ze,onClick:v,onContextMenu:J,onFocus:pt,onKeyDown:ct,onKeyUp:He,onMouseDown:he,onMouseLeave:Se,onMouseUp:pe,onDragLeave:fe,onTouchEnd:Ct,onTouchMove:Fe,onTouchStart:xe,ref:yt,tabIndex:c?-1:M,type:D},ht,z,{children:[s,K?u.jsx(UT,S({ref:_,center:i},I)):null]}))});function YT(e){return re("MuiAlert",e)}const _0=oe("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function XT(e){return re("MuiIconButton",e)}const QT=oe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),JT=["edge","children","className","color","disabled","disableFocusRipple","size"],ZT=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${A(r)}`,o&&`edge${A(o)}`,`size${A(i)}`]};return ie(s,XT,t)},e_=B(kr,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${A(n.color)}`],n.edge&&t[`edge${A(n.edge)}`],t[`size${A(n.size)}`]]}})(({theme:e,ownerState:t})=>S({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:je(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return S({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&S({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":S({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:je(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${QT.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Qe=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:a="default",disabled:l=!1,disableFocusRipple:c=!1,size:d="medium"}=r,f=H(r,JT),h=S({},r,{edge:o,color:a,disabled:l,disableFocusRipple:c,size:d}),b=ZT(h);return u.jsx(e_,S({className:V(b.root,s),centerRipple:!0,focusRipple:!c,disabled:l,ref:n},f,{ownerState:h,children:i}))}),t_=Nt(u.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),n_=Nt(u.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),r_=Nt(u.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),o_=Nt(u.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),i_=Nt(u.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),s_=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],a_=zu(),l_=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`color${A(n||r)}`,`${t}${A(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return ie(i,YT,o)},c_=B(gn,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${A(n.color||n.severity)}`]]}})(({theme:e})=>{const t=e.palette.mode==="light"?dc:fc,n=e.palette.mode==="light"?fc:dc;return S({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${_0.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${_0.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.dark).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:S({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)})}))]})}),u_=B("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),d_=B("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),j0=B("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),O0={success:u.jsx(t_,{fontSize:"inherit"}),warning:u.jsx(n_,{fontSize:"inherit"}),error:u.jsx(r_,{fontSize:"inherit"}),info:u.jsx(o_,{fontSize:"inherit"})},ur=p.forwardRef(function(t,n){const r=a_({props:t,name:"MuiAlert"}),{action:o,children:i,className:s,closeText:a="Close",color:l,components:c={},componentsProps:d={},icon:f,iconMapping:h=O0,onClose:b,role:y="alert",severity:v="success",slotProps:C={},slots:g={},variant:m="standard"}=r,x=H(r,s_),w=S({},r,{color:l,severity:v,variant:m,colorSeverity:l||v}),k=l_(w),P={slots:S({closeButton:c.CloseButton,closeIcon:c.CloseIcon},g),slotProps:S({},d,C)},[R,E]=pp("closeButton",{elementType:Qe,externalForwardedProps:P,ownerState:w}),[j,T]=pp("closeIcon",{elementType:i_,externalForwardedProps:P,ownerState:w});return u.jsxs(c_,S({role:y,elevation:0,ownerState:w,className:V(k.root,s),ref:n},x,{children:[f!==!1?u.jsx(u_,{ownerState:w,className:k.icon,children:f||h[v]||O0[v]}):null,u.jsx(d_,{ownerState:w,className:k.message,children:i}),o!=null?u.jsx(j0,{ownerState:w,className:k.action,children:o}):null,o==null&&b?u.jsx(j0,{ownerState:w,className:k.action,children:u.jsx(R,S({size:"small","aria-label":a,title:a,color:"inherit",onClick:b},E,{children:u.jsx(j,S({fontSize:"small"},T))}))}):null]}))});function f_(e){return re("MuiTypography",e)}oe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const p_=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],h_=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=e,a={root:["root",i,e.align!=="inherit"&&`align${A(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return ie(a,f_,s)},m_=B("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${A(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>S({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),I0={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},g_={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},v_=e=>g_[e]||e,ve=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiTypography"}),o=v_(r.color),i=mu(S({},r,{color:o})),{align:s="inherit",className:a,component:l,gutterBottom:c=!1,noWrap:d=!1,paragraph:f=!1,variant:h="body1",variantMapping:b=I0}=i,y=H(i,p_),v=S({},i,{align:s,color:o,className:a,component:l,gutterBottom:c,noWrap:d,paragraph:f,variant:h,variantMapping:b}),C=l||(f?"p":b[h]||I0[h])||"span",g=h_(v);return u.jsx(m_,S({as:C,ref:n,ownerState:v,className:V(g.root,a)},y))});function y_(e){return re("MuiAppBar",e)}oe("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const x_=["className","color","enableColorOnDark","position"],b_=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${A(t)}`,`position${A(n)}`]};return ie(o,y_,r)},el=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,S_=B(gn,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${A(n.position)}`],t[`color${A(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return S({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&S({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&S({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&S({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:el(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:el(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:el(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:el(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),C_=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:s=!1,position:a="fixed"}=r,l=H(r,x_),c=S({},r,{color:i,position:a,enableColorOnDark:s}),d=b_(c);return u.jsx(S_,S({square:!0,component:"header",ownerState:c,elevation:4,className:V(d.root,o,a==="fixed"&&"mui-fixed"),ref:n},l))});function w_(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=l2({badgeContent:t,max:r});let s=n;n===!1&&t===0&&!o&&(s=!0);const{badgeContent:a,max:l=r}=s?i:e,c=a&&Number(a)>l?`${l}+`:a;return{badgeContent:a,invisible:s,max:l,displayValue:c}}const P2="base";function k_(e){return`${P2}--${e}`}function R_(e,t){return`${P2}-${e}-${t}`}function E2(e,t){const n=e2[t];return n?k_(n):R_(e,t)}function P_(e,t){const n={};return t.forEach(r=>{n[r]=E2(e,r)}),n}function M0(e){return e.substring(2).toLowerCase()}function E_(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const d=Ye(t.ref,a),f=zt(y=>{const v=c.current;c.current=!1;const C=ft(a.current);if(!l.current||!a.current||"clientX"in y&&E_(y,C))return;if(s.current){s.current=!1;return}let g;y.composedPath?g=y.composedPath().indexOf(a.current)>-1:g=!C.documentElement.contains(y.target)||a.current.contains(y.target),!g&&(n||!v)&&o(y)}),h=y=>v=>{c.current=!0;const C=t.props[y];C&&C(v)},b={ref:d};return i!==!1&&(b[i]=h(i)),p.useEffect(()=>{if(i!==!1){const y=M0(i),v=ft(a.current),C=()=>{s.current=!0};return v.addEventListener(y,f),v.addEventListener("touchmove",C),()=>{v.removeEventListener(y,f),v.removeEventListener("touchmove",C)}}},[f,i]),r!==!1&&(b[r]=h(r)),p.useEffect(()=>{if(r!==!1){const y=M0(r),v=ft(a.current);return v.addEventListener(y,f),()=>{v.removeEventListener(y,f)}}},[f,r]),u.jsx(p.Fragment,{children:p.cloneElement(t,b)})}const T_=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function __(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function j_(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function O_(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||j_(e))}function I_(e){const t=[],n=[];return Array.from(e.querySelectorAll(T_)).forEach((r,o)=>{const i=__(r);i===-1||!O_(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function M_(){return!0}function N_(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=I_,isEnabled:s=M_,open:a}=e,l=p.useRef(!1),c=p.useRef(null),d=p.useRef(null),f=p.useRef(null),h=p.useRef(null),b=p.useRef(!1),y=p.useRef(null),v=Ye(t.ref,y),C=p.useRef(null);p.useEffect(()=>{!a||!y.current||(b.current=!n)},[n,a]),p.useEffect(()=>{if(!a||!y.current)return;const x=ft(y.current);return y.current.contains(x.activeElement)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex","-1"),b.current&&y.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[a]),p.useEffect(()=>{if(!a||!y.current)return;const x=ft(y.current),w=R=>{C.current=R,!(r||!s()||R.key!=="Tab")&&x.activeElement===y.current&&R.shiftKey&&(l.current=!0,d.current&&d.current.focus())},k=()=>{const R=y.current;if(R===null)return;if(!x.hasFocus()||!s()||l.current){l.current=!1;return}if(R.contains(x.activeElement)||r&&x.activeElement!==c.current&&x.activeElement!==d.current)return;if(x.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!b.current)return;let E=[];if((x.activeElement===c.current||x.activeElement===d.current)&&(E=i(y.current)),E.length>0){var j,T;const O=!!((j=C.current)!=null&&j.shiftKey&&((T=C.current)==null?void 0:T.key)==="Tab"),M=E[0],I=E[E.length-1];typeof M!="string"&&typeof I!="string"&&(O?I.focus():M.focus())}else R.focus()};x.addEventListener("focusin",k),x.addEventListener("keydown",w,!0);const P=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&k()},50);return()=>{clearInterval(P),x.removeEventListener("focusin",k),x.removeEventListener("keydown",w,!0)}},[n,r,o,s,a,i]);const g=x=>{f.current===null&&(f.current=x.relatedTarget),b.current=!0,h.current=x.target;const w=t.props.onFocus;w&&w(x)},m=x=>{f.current===null&&(f.current=x.relatedTarget),b.current=!0};return u.jsxs(p.Fragment,{children:[u.jsx("div",{tabIndex:a?0:-1,onFocus:m,ref:c,"data-testid":"sentinelStart"}),p.cloneElement(t,{ref:v,onFocus:g}),u.jsx("div",{tabIndex:a?0:-1,onFocus:m,ref:d,"data-testid":"sentinelEnd"})]})}function L_(e){return typeof e=="function"?e():e}const $2=p.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[s,a]=p.useState(null),l=Ye(p.isValidElement(r)?r.ref:null,n);if(dn(()=>{i||a(L_(o)||document.body)},[o,i]),dn(()=>{if(s&&!i)return uc(n,s),()=>{uc(n,null)}},[n,s,i]),i){if(p.isValidElement(r)){const c={ref:l};return p.cloneElement(r,c)}return u.jsx(p.Fragment,{children:r})}return u.jsx(p.Fragment,{children:s&&Sh.createPortal(r,s)})});function A_(e){const t=ft(e);return t.body===e?_n(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Os(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function N0(e){return parseInt(_n(e).getComputedStyle(e).paddingRight,10)||0}function z_(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function L0(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,s=>{const a=i.indexOf(s)===-1,l=!z_(s);a&&l&&Os(s,o)})}function Dd(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function D_(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(A_(r)){const s=s2(ft(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${N0(r)+s}px`;const a=ft(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${N0(l)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=ft(r).body;else{const s=r.parentElement,a=_n(r);i=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:s,property:a})=>{i?s.style.setProperty(a,i):s.style.removeProperty(a)})}}function F_(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class B_{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Os(t.modalRef,!1);const o=F_(n);L0(n,t.mount,t.modalRef,o,!0);const i=Dd(this.containers,s=>s.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Dd(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=D_(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Dd(this.containers,s=>s.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Os(t.modalRef,n),L0(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=i.modals[i.modals.length-1];s.modalRef&&Os(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function W_(e){return typeof e=="function"?e():e}function U_(e){return e?e.props.hasOwnProperty("in"):!1}const H_=new B_;function V_(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=H_,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:c,open:d,rootRef:f}=e,h=p.useRef({}),b=p.useRef(null),y=p.useRef(null),v=Ye(y,f),[C,g]=p.useState(!d),m=U_(l);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const w=()=>ft(b.current),k=()=>(h.current.modalRef=y.current,h.current.mount=b.current,h.current),P=()=>{o.mount(k(),{disableScrollLock:r}),y.current&&(y.current.scrollTop=0)},R=zt(()=>{const z=W_(t)||w().body;o.add(k(),z),y.current&&P()}),E=p.useCallback(()=>o.isTopModal(k()),[o]),j=zt(z=>{b.current=z,z&&(d&&E()?P():y.current&&Os(y.current,x))}),T=p.useCallback(()=>{o.remove(k(),x)},[x,o]);p.useEffect(()=>()=>{T()},[T]),p.useEffect(()=>{d?R():(!m||!i)&&T()},[d,T,m,i,R]);const O=z=>W=>{var $;($=z.onKeyDown)==null||$.call(z,W),!(W.key!=="Escape"||W.which===229||!E())&&(n||(W.stopPropagation(),c&&c(W,"escapeKeyDown")))},M=z=>W=>{var $;($=z.onClick)==null||$.call(z,W),W.target===W.currentTarget&&c&&c(W,"backdropClick")};return{getRootProps:(z={})=>{const W=mc(e);delete W.onTransitionEnter,delete W.onTransitionExited;const $=S({},W,z);return S({role:"presentation"},$,{onKeyDown:O($),ref:v})},getBackdropProps:(z={})=>{const W=z;return S({"aria-hidden":!0},W,{onClick:M(W),open:d})},getTransitionProps:()=>{const z=()=>{g(!1),s&&s()},W=()=>{g(!0),a&&a(),i&&T()};return{onEnter:ap(z,l==null?void 0:l.props.onEnter),onExited:ap(W,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:j,isTopModal:E,exited:C,hasTransition:m}}var Qt="top",On="bottom",In="right",Jt="left",rm="auto",Ta=[Qt,On,In,Jt],$i="start",aa="end",q_="clippingParents",T2="viewport",ls="popper",K_="reference",A0=Ta.reduce(function(e,t){return e.concat([t+"-"+$i,t+"-"+aa])},[]),_2=[].concat(Ta,[rm]).reduce(function(e,t){return e.concat([t,t+"-"+$i,t+"-"+aa])},[]),G_="beforeRead",Y_="read",X_="afterRead",Q_="beforeMain",J_="main",Z_="afterMain",ej="beforeWrite",tj="write",nj="afterWrite",rj=[G_,Y_,X_,Q_,J_,Z_,ej,tj,nj];function cr(e){return e?(e.nodeName||"").toLowerCase():null}function fn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Mo(e){var t=fn(e).Element;return e instanceof t||e instanceof Element}function En(e){var t=fn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function om(e){if(typeof ShadowRoot>"u")return!1;var t=fn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function oj(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!En(i)||!cr(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function ij(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(l,c){return l[c]="",l},{});!En(o)||!cr(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const sj={name:"applyStyles",enabled:!0,phase:"write",fn:oj,effect:ij,requires:["computeStyles"]};function sr(e){return e.split("-")[0]}var ko=Math.max,gc=Math.min,Ti=Math.round;function mp(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function j2(){return!/^((?!chrome|android).)*safari/i.test(mp())}function _i(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&En(e)&&(o=e.offsetWidth>0&&Ti(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ti(r.height)/e.offsetHeight||1);var s=Mo(e)?fn(e):window,a=s.visualViewport,l=!j2()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/o,d=(r.top+(l&&a?a.offsetTop:0))/i,f=r.width/o,h=r.height/i;return{width:f,height:h,top:d,right:c+f,bottom:d+h,left:c,x:c,y:d}}function im(e){var t=_i(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function O2(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&om(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Rr(e){return fn(e).getComputedStyle(e)}function aj(e){return["table","td","th"].indexOf(cr(e))>=0}function so(e){return((Mo(e)?e.ownerDocument:e.document)||window.document).documentElement}function Fu(e){return cr(e)==="html"?e:e.assignedSlot||e.parentNode||(om(e)?e.host:null)||so(e)}function z0(e){return!En(e)||Rr(e).position==="fixed"?null:e.offsetParent}function lj(e){var t=/firefox/i.test(mp()),n=/Trident/i.test(mp());if(n&&En(e)){var r=Rr(e);if(r.position==="fixed")return null}var o=Fu(e);for(om(o)&&(o=o.host);En(o)&&["html","body"].indexOf(cr(o))<0;){var i=Rr(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function _a(e){for(var t=fn(e),n=z0(e);n&&aj(n)&&Rr(n).position==="static";)n=z0(n);return n&&(cr(n)==="html"||cr(n)==="body"&&Rr(n).position==="static")?t:n||lj(e)||t}function sm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Is(e,t,n){return ko(e,gc(t,n))}function cj(e,t,n){var r=Is(e,t,n);return r>n?n:r}function I2(){return{top:0,right:0,bottom:0,left:0}}function M2(e){return Object.assign({},I2(),e)}function N2(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var uj=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,M2(typeof t!="number"?t:N2(t,Ta))};function dj(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=sr(n.placement),l=sm(a),c=[Jt,In].indexOf(a)>=0,d=c?"height":"width";if(!(!i||!s)){var f=uj(o.padding,n),h=im(i),b=l==="y"?Qt:Jt,y=l==="y"?On:In,v=n.rects.reference[d]+n.rects.reference[l]-s[l]-n.rects.popper[d],C=s[l]-n.rects.reference[l],g=_a(i),m=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,x=v/2-C/2,w=f[b],k=m-h[d]-f[y],P=m/2-h[d]/2+x,R=Is(w,P,k),E=l;n.modifiersData[r]=(t={},t[E]=R,t.centerOffset=R-P,t)}}function fj(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||O2(t.elements.popper,o)&&(t.elements.arrow=o))}const pj={name:"arrow",enabled:!0,phase:"main",fn:dj,effect:fj,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ji(e){return e.split("-")[1]}var hj={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mj(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Ti(n*o)/o||0,y:Ti(r*o)/o||0}}function D0(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,f=e.isFixed,h=s.x,b=h===void 0?0:h,y=s.y,v=y===void 0?0:y,C=typeof d=="function"?d({x:b,y:v}):{x:b,y:v};b=C.x,v=C.y;var g=s.hasOwnProperty("x"),m=s.hasOwnProperty("y"),x=Jt,w=Qt,k=window;if(c){var P=_a(n),R="clientHeight",E="clientWidth";if(P===fn(n)&&(P=so(n),Rr(P).position!=="static"&&a==="absolute"&&(R="scrollHeight",E="scrollWidth")),P=P,o===Qt||(o===Jt||o===In)&&i===aa){w=On;var j=f&&P===k&&k.visualViewport?k.visualViewport.height:P[R];v-=j-r.height,v*=l?1:-1}if(o===Jt||(o===Qt||o===On)&&i===aa){x=In;var T=f&&P===k&&k.visualViewport?k.visualViewport.width:P[E];b-=T-r.width,b*=l?1:-1}}var O=Object.assign({position:a},c&&hj),M=d===!0?mj({x:b,y:v},fn(n)):{x:b,y:v};if(b=M.x,v=M.y,l){var I;return Object.assign({},O,(I={},I[w]=m?"0":"",I[x]=g?"0":"",I.transform=(k.devicePixelRatio||1)<=1?"translate("+b+"px, "+v+"px)":"translate3d("+b+"px, "+v+"px, 0)",I))}return Object.assign({},O,(t={},t[w]=m?v+"px":"",t[x]=g?b+"px":"",t.transform="",t))}function gj(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:sr(t.placement),variation:ji(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,D0(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,D0(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const vj={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:gj,data:{}};var tl={passive:!0};function yj(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,l=fn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(d){d.addEventListener("scroll",n.update,tl)}),a&&l.addEventListener("resize",n.update,tl),function(){i&&c.forEach(function(d){d.removeEventListener("scroll",n.update,tl)}),a&&l.removeEventListener("resize",n.update,tl)}}const xj={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:yj,data:{}};var bj={left:"right",right:"left",bottom:"top",top:"bottom"};function _l(e){return e.replace(/left|right|bottom|top/g,function(t){return bj[t]})}var Sj={start:"end",end:"start"};function F0(e){return e.replace(/start|end/g,function(t){return Sj[t]})}function am(e){var t=fn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function lm(e){return _i(so(e)).left+am(e).scrollLeft}function Cj(e,t){var n=fn(e),r=so(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var c=j2();(c||!c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+lm(e),y:l}}function wj(e){var t,n=so(e),r=am(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=ko(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=ko(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+lm(e),l=-r.scrollTop;return Rr(o||n).direction==="rtl"&&(a+=ko(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function cm(e){var t=Rr(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function L2(e){return["html","body","#document"].indexOf(cr(e))>=0?e.ownerDocument.body:En(e)&&cm(e)?e:L2(Fu(e))}function Ms(e,t){var n;t===void 0&&(t=[]);var r=L2(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=fn(r),s=o?[i].concat(i.visualViewport||[],cm(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(Ms(Fu(s)))}function gp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function kj(e,t){var n=_i(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function B0(e,t,n){return t===T2?gp(Cj(e,n)):Mo(t)?kj(t,n):gp(wj(so(e)))}function Rj(e){var t=Ms(Fu(e)),n=["absolute","fixed"].indexOf(Rr(e).position)>=0,r=n&&En(e)?_a(e):e;return Mo(r)?t.filter(function(o){return Mo(o)&&O2(o,r)&&cr(o)!=="body"}):[]}function Pj(e,t,n,r){var o=t==="clippingParents"?Rj(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(l,c){var d=B0(e,c,r);return l.top=ko(d.top,l.top),l.right=gc(d.right,l.right),l.bottom=gc(d.bottom,l.bottom),l.left=ko(d.left,l.left),l},B0(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function A2(e){var t=e.reference,n=e.element,r=e.placement,o=r?sr(r):null,i=r?ji(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case Qt:l={x:s,y:t.y-n.height};break;case On:l={x:s,y:t.y+t.height};break;case In:l={x:t.x+t.width,y:a};break;case Jt:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=o?sm(o):null;if(c!=null){var d=c==="y"?"height":"width";switch(i){case $i:l[c]=l[c]-(t[d]/2-n[d]/2);break;case aa:l[c]=l[c]+(t[d]/2-n[d]/2);break}}return l}function la(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,a=n.boundary,l=a===void 0?q_:a,c=n.rootBoundary,d=c===void 0?T2:c,f=n.elementContext,h=f===void 0?ls:f,b=n.altBoundary,y=b===void 0?!1:b,v=n.padding,C=v===void 0?0:v,g=M2(typeof C!="number"?C:N2(C,Ta)),m=h===ls?K_:ls,x=e.rects.popper,w=e.elements[y?m:h],k=Pj(Mo(w)?w:w.contextElement||so(e.elements.popper),l,d,s),P=_i(e.elements.reference),R=A2({reference:P,element:x,strategy:"absolute",placement:o}),E=gp(Object.assign({},x,R)),j=h===ls?E:P,T={top:k.top-j.top+g.top,bottom:j.bottom-k.bottom+g.bottom,left:k.left-j.left+g.left,right:j.right-k.right+g.right},O=e.modifiersData.offset;if(h===ls&&O){var M=O[o];Object.keys(T).forEach(function(I){var N=[In,On].indexOf(I)>=0?1:-1,D=[Qt,On].indexOf(I)>=0?"y":"x";T[I]+=M[D]*N})}return T}function Ej(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?_2:l,d=ji(r),f=d?a?A0:A0.filter(function(y){return ji(y)===d}):Ta,h=f.filter(function(y){return c.indexOf(y)>=0});h.length===0&&(h=f);var b=h.reduce(function(y,v){return y[v]=la(e,{placement:v,boundary:o,rootBoundary:i,padding:s})[sr(v)],y},{});return Object.keys(b).sort(function(y,v){return b[y]-b[v]})}function $j(e){if(sr(e)===rm)return[];var t=_l(e);return[F0(e),t,F0(t)]}function Tj(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,d=n.boundary,f=n.rootBoundary,h=n.altBoundary,b=n.flipVariations,y=b===void 0?!0:b,v=n.allowedAutoPlacements,C=t.options.placement,g=sr(C),m=g===C,x=l||(m||!y?[_l(C)]:$j(C)),w=[C].concat(x).reduce(function(Z,ue){return Z.concat(sr(ue)===rm?Ej(t,{placement:ue,boundary:d,rootBoundary:f,padding:c,flipVariations:y,allowedAutoPlacements:v}):ue)},[]),k=t.rects.reference,P=t.rects.popper,R=new Map,E=!0,j=w[0],T=0;T=0,D=N?"width":"height",z=la(t,{placement:O,boundary:d,rootBoundary:f,altBoundary:h,padding:c}),W=N?I?In:Jt:I?On:Qt;k[D]>P[D]&&(W=_l(W));var $=_l(W),_=[];if(i&&_.push(z[M]<=0),a&&_.push(z[W]<=0,z[$]<=0),_.every(function(Z){return Z})){j=O,E=!1;break}R.set(O,_)}if(E)for(var F=y?3:1,G=function(ue){var U=w.find(function(ee){var K=R.get(ee);if(K)return K.slice(0,ue).every(function(Q){return Q})});if(U)return j=U,"break"},X=F;X>0;X--){var ce=G(X);if(ce==="break")break}t.placement!==j&&(t.modifiersData[r]._skip=!0,t.placement=j,t.reset=!0)}}const _j={name:"flip",enabled:!0,phase:"main",fn:Tj,requiresIfExists:["offset"],data:{_skip:!1}};function W0(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function U0(e){return[Qt,In,On,Jt].some(function(t){return e[t]>=0})}function jj(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=la(t,{elementContext:"reference"}),a=la(t,{altBoundary:!0}),l=W0(s,r),c=W0(a,o,i),d=U0(l),f=U0(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const Oj={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:jj};function Ij(e,t,n){var r=sr(e),o=[Jt,Qt].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[Jt,In].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function Mj(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=_2.reduce(function(d,f){return d[f]=Ij(f,t.rects,i),d},{}),a=s[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const Nj={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Mj};function Lj(e){var t=e.state,n=e.name;t.modifiersData[n]=A2({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Aj={name:"popperOffsets",enabled:!0,phase:"read",fn:Lj,data:{}};function zj(e){return e==="x"?"y":"x"}function Dj(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,f=n.padding,h=n.tether,b=h===void 0?!0:h,y=n.tetherOffset,v=y===void 0?0:y,C=la(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:d}),g=sr(t.placement),m=ji(t.placement),x=!m,w=sm(g),k=zj(w),P=t.modifiersData.popperOffsets,R=t.rects.reference,E=t.rects.popper,j=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,T=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(P){if(i){var I,N=w==="y"?Qt:Jt,D=w==="y"?On:In,z=w==="y"?"height":"width",W=P[w],$=W+C[N],_=W-C[D],F=b?-E[z]/2:0,G=m===$i?R[z]:E[z],X=m===$i?-E[z]:-R[z],ce=t.elements.arrow,Z=b&&ce?im(ce):{width:0,height:0},ue=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:I2(),U=ue[N],ee=ue[D],K=Is(0,R[z],Z[z]),Q=x?R[z]/2-F-K-U-T.mainAxis:G-K-U-T.mainAxis,he=x?-R[z]/2+F+K+ee+T.mainAxis:X+K+ee+T.mainAxis,J=t.elements.arrow&&_a(t.elements.arrow),fe=J?w==="y"?J.clientTop||0:J.clientLeft||0:0,pe=(I=O==null?void 0:O[w])!=null?I:0,Se=W+Q-pe-fe,xe=W+he-pe,Ct=Is(b?gc($,Se):$,W,b?ko(_,xe):_);P[w]=Ct,M[w]=Ct-W}if(a){var Fe,ze=w==="x"?Qt:Jt,pt=w==="x"?On:In,Me=P[k],ke=k==="y"?"height":"width",ct=Me+C[ze],He=Me-C[pt],Ee=[Qt,Jt].indexOf(g)!==-1,ht=(Fe=O==null?void 0:O[k])!=null?Fe:0,yt=Ee?ct:Me-R[ke]-E[ke]-ht+T.altAxis,wt=Ee?Me+R[ke]+E[ke]-ht-T.altAxis:He,Re=b&&Ee?cj(yt,Me,wt):Is(b?yt:ct,Me,b?wt:He);P[k]=Re,M[k]=Re-Me}t.modifiersData[r]=M}}const Fj={name:"preventOverflow",enabled:!0,phase:"main",fn:Dj,requiresIfExists:["offset"]};function Bj(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Wj(e){return e===fn(e)||!En(e)?am(e):Bj(e)}function Uj(e){var t=e.getBoundingClientRect(),n=Ti(t.width)/e.offsetWidth||1,r=Ti(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Hj(e,t,n){n===void 0&&(n=!1);var r=En(t),o=En(t)&&Uj(t),i=so(t),s=_i(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((cr(t)!=="body"||cm(i))&&(a=Wj(t)),En(t)?(l=_i(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=lm(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function Vj(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function qj(e){var t=Vj(e);return rj.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Kj(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Gj(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var H0={placement:"bottom",modifiers:[],strategy:"absolute"};function V0(){for(var e=arguments.length,t=new Array(e),n=0;nie({root:["root"]},_T(Jj)),o3={},i3=p.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:s,disablePortal:a,modifiers:l,open:c,placement:d,popperOptions:f,popperRef:h,slotProps:b={},slots:y={},TransitionProps:v}=t,C=H(t,Zj),g=p.useRef(null),m=Ye(g,n),x=p.useRef(null),w=Ye(x,h),k=p.useRef(w);dn(()=>{k.current=w},[w]),p.useImperativeHandle(h,()=>x.current,[]);const P=t3(d,s),[R,E]=p.useState(P),[j,T]=p.useState(vp(o));p.useEffect(()=>{x.current&&x.current.forceUpdate()}),p.useEffect(()=>{o&&T(vp(o))},[o]),dn(()=>{if(!j||!c)return;const D=$=>{E($.placement)};let z=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:$})=>{D($)}}];l!=null&&(z=z.concat(l)),f&&f.modifiers!=null&&(z=z.concat(f.modifiers));const W=Qj(j,g.current,S({placement:P},f,{modifiers:z}));return k.current(W),()=>{W.destroy(),k.current(null)}},[j,a,l,c,f,P]);const O={placement:R};v!==null&&(O.TransitionProps=v);const M=r3(),I=(r=y.root)!=null?r:"div",N=en({elementType:I,externalSlotProps:b.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:m},ownerState:t,className:M.root});return u.jsx(I,S({},N,{children:typeof i=="function"?i(O):i}))}),s3=p.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:s="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:d,placement:f="bottom",popperOptions:h=o3,popperRef:b,style:y,transition:v=!1,slotProps:C={},slots:g={}}=t,m=H(t,e3),[x,w]=p.useState(!0),k=()=>{w(!1)},P=()=>{w(!0)};if(!l&&!d&&(!v||x))return null;let R;if(i)R=i;else if(r){const T=vp(r);R=T&&n3(T)?ft(T).body:ft(null).body}const E=!d&&l&&(!v||x)?"none":void 0,j=v?{in:d,onEnter:k,onExited:P}:void 0;return u.jsx($2,{disablePortal:a,container:R,children:u.jsx(i3,S({anchorEl:r,direction:s,disablePortal:a,modifiers:c,ref:n,open:v?!x:d,placement:f,popperOptions:h,popperRef:b,slotProps:C,slots:g},m,{style:S({position:"fixed",top:0,left:0,display:E},y),TransitionProps:j,children:o}))})});function a3(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:i}=e,s=xo();p.useEffect(()=>{if(!o)return;function g(m){m.defaultPrevented||(m.key==="Escape"||m.key==="Esc")&&(r==null||r(m,"escapeKeyDown"))}return document.addEventListener("keydown",g),()=>{document.removeEventListener("keydown",g)}},[o,r]);const a=zt((g,m)=>{r==null||r(g,m)}),l=zt(g=>{!r||g==null||s.start(g,()=>{a(null,"timeout")})});p.useEffect(()=>(o&&l(t),s.clear),[o,t,l,s]);const c=g=>{r==null||r(g,"clickaway")},d=s.clear,f=p.useCallback(()=>{t!=null&&l(i??t*.5)},[t,i,l]),h=g=>m=>{const x=g.onBlur;x==null||x(m),f()},b=g=>m=>{const x=g.onFocus;x==null||x(m),d()},y=g=>m=>{const x=g.onMouseEnter;x==null||x(m),d()},v=g=>m=>{const x=g.onMouseLeave;x==null||x(m),f()};return p.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",f),window.addEventListener("blur",d),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",d)}},[n,o,f,d]),{getRootProps:(g={})=>{const m=S({},mc(e),mc(g));return S({role:"presentation"},g,m,{onBlur:h(m),onFocus:b(m),onMouseEnter:y(m),onMouseLeave:v(m)})},onClickAway:c}}const l3=["onChange","maxRows","minRows","style","value"];function nl(e){return parseInt(e,10)||0}const c3={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function u3(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const d3=p.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:s,value:a}=t,l=H(t,l3),{current:c}=p.useRef(a!=null),d=p.useRef(null),f=Ye(n,d),h=p.useRef(null),b=p.useCallback(()=>{const C=d.current,m=_n(C).getComputedStyle(C);if(m.width==="0px")return{outerHeightStyle:0,overflowing:!1};const x=h.current;x.style.width=m.width,x.value=C.value||t.placeholder||"x",x.value.slice(-1)===` +`&&(x.value+=" ");const w=m.boxSizing,k=nl(m.paddingBottom)+nl(m.paddingTop),P=nl(m.borderBottomWidth)+nl(m.borderTopWidth),R=x.scrollHeight;x.value="x";const E=x.scrollHeight;let j=R;i&&(j=Math.max(Number(i)*E,j)),o&&(j=Math.min(Number(o)*E,j)),j=Math.max(j,E);const T=j+(w==="border-box"?k+P:0),O=Math.abs(j-R)<=1;return{outerHeightStyle:T,overflowing:O}},[o,i,t.placeholder]),y=p.useCallback(()=>{const C=b();if(u3(C))return;const g=d.current;g.style.height=`${C.outerHeightStyle}px`,g.style.overflow=C.overflowing?"hidden":""},[b]);dn(()=>{const C=()=>{y()};let g;const m=Hi(C),x=d.current,w=_n(x);w.addEventListener("resize",m);let k;return typeof ResizeObserver<"u"&&(k=new ResizeObserver(C),k.observe(x)),()=>{m.clear(),cancelAnimationFrame(g),w.removeEventListener("resize",m),k&&k.disconnect()}},[b,y]),dn(()=>{y()});const v=C=>{c||y(),r&&r(C)};return u.jsxs(p.Fragment,{children:[u.jsx("textarea",S({value:a,onChange:v,ref:f,rows:i,style:s},l)),u.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:S({},c3.shadow,s,{paddingTop:0,paddingBottom:0})})]})});var um={};Object.defineProperty(um,"__esModule",{value:!0});var D2=um.default=void 0,f3=h3(p),p3=x2;function F2(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(F2=function(r){return r?n:t})(e)}function h3(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=F2(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function m3(e){return Object.keys(e).length===0}function g3(e=null){const t=f3.useContext(p3.ThemeContext);return!t||m3(t)?e:t}D2=um.default=g3;const v3=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],y3=B(s3,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),B2=p.forwardRef(function(t,n){var r;const o=D2(),i=le({props:t,name:"MuiPopper"}),{anchorEl:s,component:a,components:l,componentsProps:c,container:d,disablePortal:f,keepMounted:h,modifiers:b,open:y,placement:v,popperOptions:C,popperRef:g,transition:m,slots:x,slotProps:w}=i,k=H(i,v3),P=(r=x==null?void 0:x.root)!=null?r:l==null?void 0:l.Root,R=S({anchorEl:s,container:d,disablePortal:f,keepMounted:h,modifiers:b,open:y,placement:v,popperOptions:C,popperRef:g,transition:m},k);return u.jsx(y3,S({as:a,direction:o==null?void 0:o.direction,slots:{root:P},slotProps:w??c},R,{ref:n}))}),x3=Nt(u.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function b3(e){return re("MuiChip",e)}const _e=oe("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),S3=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],C3=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:s,clickable:a,variant:l}=e,c={root:["root",l,n&&"disabled",`size${A(r)}`,`color${A(o)}`,a&&"clickable",a&&`clickableColor${A(o)}`,s&&"deletable",s&&`deletableColor${A(o)}`,`${l}${A(o)}`],label:["label",`label${A(r)}`],avatar:["avatar",`avatar${A(r)}`,`avatarColor${A(o)}`],icon:["icon",`icon${A(r)}`,`iconColor${A(i)}`],deleteIcon:["deleteIcon",`deleteIcon${A(r)}`,`deleteIconColor${A(o)}`,`deleteIcon${A(l)}Color${A(o)}`]};return ie(c,b3,t)},w3=B("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:s,size:a,variant:l}=n;return[{[`& .${_e.avatar}`]:t.avatar},{[`& .${_e.avatar}`]:t[`avatar${A(a)}`]},{[`& .${_e.avatar}`]:t[`avatarColor${A(r)}`]},{[`& .${_e.icon}`]:t.icon},{[`& .${_e.icon}`]:t[`icon${A(a)}`]},{[`& .${_e.icon}`]:t[`iconColor${A(o)}`]},{[`& .${_e.deleteIcon}`]:t.deleteIcon},{[`& .${_e.deleteIcon}`]:t[`deleteIcon${A(a)}`]},{[`& .${_e.deleteIcon}`]:t[`deleteIconColor${A(r)}`]},{[`& .${_e.deleteIcon}`]:t[`deleteIcon${A(l)}Color${A(r)}`]},t.root,t[`size${A(a)}`],t[`color${A(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${A(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${A(r)}`],t[l],t[`${l}${A(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return S({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${_e.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${_e.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${_e.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${_e.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${_e.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${_e.icon}`]:S({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&S({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${_e.deleteIcon}`]:S({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:je(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:je(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:je(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${_e.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:je(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${_e.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>S({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:je(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${_e.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:je(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${_e.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>S({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${_e.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${_e.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${_e.avatar}`]:{marginLeft:4},[`& .${_e.avatarSmall}`]:{marginLeft:2},[`& .${_e.icon}`]:{marginLeft:4},[`& .${_e.iconSmall}`]:{marginLeft:2},[`& .${_e.deleteIcon}`]:{marginRight:5},[`& .${_e.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:je(e.palette[t.color].main,.7)}`,[`&.${_e.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:je(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${_e.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:je(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${_e.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:je(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),k3=B("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${A(r)}`]]}})(({ownerState:e})=>S({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function q0(e){return e.key==="Backspace"||e.key==="Delete"}const R3=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:s,color:a="default",component:l,deleteIcon:c,disabled:d=!1,icon:f,label:h,onClick:b,onDelete:y,onKeyDown:v,onKeyUp:C,size:g="medium",variant:m="filled",tabIndex:x,skipFocusWhenDisabled:w=!1}=r,k=H(r,S3),P=p.useRef(null),R=Ye(P,n),E=_=>{_.stopPropagation(),y&&y(_)},j=_=>{_.currentTarget===_.target&&q0(_)&&_.preventDefault(),v&&v(_)},T=_=>{_.currentTarget===_.target&&(y&&q0(_)?y(_):_.key==="Escape"&&P.current&&P.current.blur()),C&&C(_)},O=s!==!1&&b?!0:s,M=O||y?kr:l||"div",I=S({},r,{component:M,disabled:d,size:g,color:a,iconColor:p.isValidElement(f)&&f.props.color||a,onDelete:!!y,clickable:O,variant:m}),N=C3(I),D=M===kr?S({component:l||"div",focusVisibleClassName:N.focusVisible},y&&{disableRipple:!0}):{};let z=null;y&&(z=c&&p.isValidElement(c)?p.cloneElement(c,{className:V(c.props.className,N.deleteIcon),onClick:E}):u.jsx(x3,{className:V(N.deleteIcon),onClick:E}));let W=null;o&&p.isValidElement(o)&&(W=p.cloneElement(o,{className:V(N.avatar,o.props.className)}));let $=null;return f&&p.isValidElement(f)&&($=p.cloneElement(f,{className:V(N.icon,f.props.className)})),u.jsxs(w3,S({as:M,className:V(N.root,i),disabled:O&&d?!0:void 0,onClick:b,onKeyDown:j,onKeyUp:T,ref:R,tabIndex:w&&d?-1:x,ownerState:I},D,k,{children:[W||$,u.jsx(k3,{className:V(N.label),ownerState:I,children:h}),z]}))});function ao({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const Bu=p.createContext(void 0);function dr(){return p.useContext(Bu)}function W2(e){return u.jsx(Z$,S({},e,{defaultTheme:Eu,themeId:Oo}))}function K0(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function vc(e,t=!1){return e&&(K0(e.value)&&e.value!==""||t&&K0(e.defaultValue)&&e.defaultValue!=="")}function P3(e){return e.startAdornment}function E3(e){return re("MuiInputBase",e)}const Oi=oe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),$3=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Wu=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${A(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Uu=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},T3=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:s,formControl:a,fullWidth:l,hiddenLabel:c,multiline:d,readOnly:f,size:h,startAdornment:b,type:y}=e,v={root:["root",`color${A(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",s&&"focused",a&&"formControl",h&&h!=="medium"&&`size${A(h)}`,d&&"multiline",b&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",y==="search"&&"inputTypeSearch",d&&"inputMultiline",h==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",b&&"inputAdornedStart",i&&"inputAdornedEnd",f&&"readOnly"]};return ie(v,E3,t)},Hu=B("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Wu})(({theme:e,ownerState:t})=>S({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Oi.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&S({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Vu=B("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Uu})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=S({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return S({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Oi.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Oi.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),_3=u.jsx(W2,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),j3=p.forwardRef(function(t,n){var r;const o=le({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:s,autoFocus:a,className:l,components:c={},componentsProps:d={},defaultValue:f,disabled:h,disableInjectingGlobalStyles:b,endAdornment:y,fullWidth:v=!1,id:C,inputComponent:g="input",inputProps:m={},inputRef:x,maxRows:w,minRows:k,multiline:P=!1,name:R,onBlur:E,onChange:j,onClick:T,onFocus:O,onKeyDown:M,onKeyUp:I,placeholder:N,readOnly:D,renderSuffix:z,rows:W,slotProps:$={},slots:_={},startAdornment:F,type:G="text",value:X}=o,ce=H(o,$3),Z=m.value!=null?m.value:X,{current:ue}=p.useRef(Z!=null),U=p.useRef(),ee=p.useCallback(Re=>{},[]),K=Ye(U,x,m.ref,ee),[Q,he]=p.useState(!1),J=dr(),fe=ao({props:o,muiFormControl:J,states:["color","disabled","error","hiddenLabel","size","required","filled"]});fe.focused=J?J.focused:Q,p.useEffect(()=>{!J&&h&&Q&&(he(!1),E&&E())},[J,h,Q,E]);const pe=J&&J.onFilled,Se=J&&J.onEmpty,xe=p.useCallback(Re=>{vc(Re)?pe&&pe():Se&&Se()},[pe,Se]);dn(()=>{ue&&xe({value:Z})},[Z,xe,ue]);const Ct=Re=>{if(fe.disabled){Re.stopPropagation();return}O&&O(Re),m.onFocus&&m.onFocus(Re),J&&J.onFocus?J.onFocus(Re):he(!0)},Fe=Re=>{E&&E(Re),m.onBlur&&m.onBlur(Re),J&&J.onBlur?J.onBlur(Re):he(!1)},ze=(Re,...se)=>{if(!ue){const tt=Re.target||U.current;if(tt==null)throw new Error(jo(1));xe({value:tt.value})}m.onChange&&m.onChange(Re,...se),j&&j(Re,...se)};p.useEffect(()=>{xe(U.current)},[]);const pt=Re=>{U.current&&Re.currentTarget===Re.target&&U.current.focus(),T&&T(Re)};let Me=g,ke=m;P&&Me==="input"&&(W?ke=S({type:void 0,minRows:W,maxRows:W},ke):ke=S({type:void 0,maxRows:w,minRows:k},ke),Me=d3);const ct=Re=>{xe(Re.animationName==="mui-auto-fill-cancel"?U.current:{value:"x"})};p.useEffect(()=>{J&&J.setAdornedStart(!!F)},[J,F]);const He=S({},o,{color:fe.color||"primary",disabled:fe.disabled,endAdornment:y,error:fe.error,focused:fe.focused,formControl:J,fullWidth:v,hiddenLabel:fe.hiddenLabel,multiline:P,size:fe.size,startAdornment:F,type:G}),Ee=T3(He),ht=_.root||c.Root||Hu,yt=$.root||d.root||{},wt=_.input||c.Input||Vu;return ke=S({},ke,(r=$.input)!=null?r:d.input),u.jsxs(p.Fragment,{children:[!b&&_3,u.jsxs(ht,S({},yt,!Ei(ht)&&{ownerState:S({},He,yt.ownerState)},{ref:n,onClick:pt},ce,{className:V(Ee.root,yt.className,l,D&&"MuiInputBase-readOnly"),children:[F,u.jsx(Bu.Provider,{value:null,children:u.jsx(wt,S({ownerState:He,"aria-invalid":fe.error,"aria-describedby":i,autoComplete:s,autoFocus:a,defaultValue:f,disabled:fe.disabled,id:C,onAnimationStart:ct,name:R,placeholder:N,readOnly:D,required:fe.required,rows:W,value:Z,onKeyDown:M,onKeyUp:I,type:G},ke,!Ei(wt)&&{as:Me,ownerState:S({},He,ke.ownerState)},{ref:K,className:V(Ee.input,ke.className,D&&"MuiInputBase-readOnly"),onBlur:Fe,onChange:ze,onFocus:Ct}))}),y,z?z(S({},fe,{startAdornment:F})):null]}))]})}),dm=j3;function O3(e){return re("MuiInput",e)}const cs=S({},Oi,oe("MuiInput",["root","underline","input"]));function I3(e){return re("MuiOutlinedInput",e)}const Ir=S({},Oi,oe("MuiOutlinedInput",["root","notchedOutline","input"]));function M3(e){return re("MuiFilledInput",e)}const co=S({},Oi,oe("MuiFilledInput",["root","underline","input"])),N3=Nt(u.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),L3=Nt(u.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function A3(e){return re("MuiAvatar",e)}oe("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const z3=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],D3=zu(),F3=e=>{const{classes:t,variant:n,colorDefault:r}=e;return ie({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},A3,t)},B3=B("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:S({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:S({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),W3=B("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),U3=B(L3,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function H3({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=p.useState(!1);return p.useEffect(()=>{if(!n&&!r)return;i(!1);let s=!0;const a=new Image;return a.onload=()=>{s&&i("loaded")},a.onerror=()=>{s&&i("error")},a.crossOrigin=e,a.referrerPolicy=t,a.src=n,r&&(a.srcset=r),()=>{s=!1}},[e,t,n,r]),o}const yr=p.forwardRef(function(t,n){const r=D3({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:s,component:a="div",slots:l={},slotProps:c={},imgProps:d,sizes:f,src:h,srcSet:b,variant:y="circular"}=r,v=H(r,z3);let C=null;const g=H3(S({},d,{src:h,srcSet:b})),m=h||b,x=m&&g!=="error",w=S({},r,{colorDefault:!x,component:a,variant:y}),k=F3(w),[P,R]=pp("img",{className:k.img,elementType:W3,externalForwardedProps:{slots:l,slotProps:{img:S({},d,c.img)}},additionalProps:{alt:o,src:h,srcSet:b,sizes:f},ownerState:w});return x?C=u.jsx(P,S({},R)):i||i===0?C=i:m&&o?C=o[0]:C=u.jsx(U3,{ownerState:w,className:k.fallback}),u.jsx(B3,S({as:a,ownerState:w,className:V(k.root,s),ref:n},v,{children:C}))}),V3=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],q3={entering:{opacity:1},entered:{opacity:1}},U2=p.forwardRef(function(t,n){const r=io(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:a,easing:l,in:c,onEnter:d,onEntered:f,onEntering:h,onExit:b,onExited:y,onExiting:v,style:C,timeout:g=o,TransitionComponent:m=Qn}=t,x=H(t,V3),w=p.useRef(null),k=Ye(w,a.ref,n),P=N=>D=>{if(N){const z=w.current;D===void 0?N(z):N(z,D)}},R=P(h),E=P((N,D)=>{nm(N);const z=Pi({style:C,timeout:g,easing:l},{mode:"enter"});N.style.webkitTransition=r.transitions.create("opacity",z),N.style.transition=r.transitions.create("opacity",z),d&&d(N,D)}),j=P(f),T=P(v),O=P(N=>{const D=Pi({style:C,timeout:g,easing:l},{mode:"exit"});N.style.webkitTransition=r.transitions.create("opacity",D),N.style.transition=r.transitions.create("opacity",D),b&&b(N)}),M=P(y),I=N=>{i&&i(w.current,N)};return u.jsx(m,S({appear:s,in:c,nodeRef:w,onEnter:E,onEntered:j,onEntering:R,onExit:O,onExited:M,onExiting:T,addEndListener:I,timeout:g},x,{children:(N,D)=>p.cloneElement(a,S({style:S({opacity:0,visibility:N==="exited"&&!c?"hidden":void 0},q3[N],C,a.props.style),ref:k},D))}))});function K3(e){return re("MuiBackdrop",e)}oe("MuiBackdrop",["root","invisible"]);const G3=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Y3=e=>{const{classes:t,invisible:n}=e;return ie({root:["root",n&&"invisible"]},K3,t)},X3=B("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>S({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),H2=p.forwardRef(function(t,n){var r,o,i;const s=le({props:t,name:"MuiBackdrop"}),{children:a,className:l,component:c="div",components:d={},componentsProps:f={},invisible:h=!1,open:b,slotProps:y={},slots:v={},TransitionComponent:C=U2,transitionDuration:g}=s,m=H(s,G3),x=S({},s,{component:c,invisible:h}),w=Y3(x),k=(r=y.root)!=null?r:f.root;return u.jsx(C,S({in:b,timeout:g},m,{children:u.jsx(X3,S({"aria-hidden":!0},k,{as:(o=(i=v.root)!=null?i:d.Root)!=null?o:c,className:V(w.root,l,k==null?void 0:k.className),ownerState:S({},x,k==null?void 0:k.ownerState),classes:w,ref:n,children:a}))}))});function Q3(e){return re("MuiBadge",e)}const Mr=oe("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),J3=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Fd=10,Bd=4,Z3=zu(),eO=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:s={}}=e,a={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${A(n.vertical)}${A(n.horizontal)}`,`anchorOrigin${A(n.vertical)}${A(n.horizontal)}${A(o)}`,`overlap${A(o)}`,t!=="default"&&`color${A(t)}`]};return ie(a,Q3,s)},tO=B("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),nO=B("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${A(n.anchorOrigin.vertical)}${A(n.anchorOrigin.horizontal)}${A(n.overlap)}`],n.color!=="default"&&t[`color${A(n.color)}`],n.invisible&&t.invisible]}})(({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Fd*2,lineHeight:1,padding:"0 6px",height:Fd*2,borderRadius:Fd,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r,o;return((r=e.vars)!=null?r:e).palette[n].main&&((o=e.vars)!=null?o:e).palette[n].contrastText}).map(n=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText}})),{props:{variant:"dot"},style:{borderRadius:Bd,height:Bd*2,minWidth:Bd*2,padding:0}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Mr.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Mr.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Mr.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Mr.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Mr.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Mr.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Mr.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Mr.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}),rO=p.forwardRef(function(t,n){var r,o,i,s,a,l;const c=Z3({props:t,name:"MuiBadge"}),{anchorOrigin:d={vertical:"top",horizontal:"right"},className:f,component:h,components:b={},componentsProps:y={},children:v,overlap:C="rectangular",color:g="default",invisible:m=!1,max:x=99,badgeContent:w,slots:k,slotProps:P,showZero:R=!1,variant:E="standard"}=c,j=H(c,J3),{badgeContent:T,invisible:O,max:M,displayValue:I}=w_({max:x,invisible:m,badgeContent:w,showZero:R}),N=l2({anchorOrigin:d,color:g,overlap:C,variant:E,badgeContent:w}),D=O||T==null&&E!=="dot",{color:z=g,overlap:W=C,anchorOrigin:$=d,variant:_=E}=D?N:c,F=_!=="dot"?I:void 0,G=S({},c,{badgeContent:T,invisible:D,max:M,displayValue:F,showZero:R,anchorOrigin:$,color:z,overlap:W,variant:_}),X=eO(G),ce=(r=(o=k==null?void 0:k.root)!=null?o:b.Root)!=null?r:tO,Z=(i=(s=k==null?void 0:k.badge)!=null?s:b.Badge)!=null?i:nO,ue=(a=P==null?void 0:P.root)!=null?a:y.root,U=(l=P==null?void 0:P.badge)!=null?l:y.badge,ee=en({elementType:ce,externalSlotProps:ue,externalForwardedProps:j,additionalProps:{ref:n,as:h},ownerState:G,className:V(ue==null?void 0:ue.className,X.root,f)}),K=en({elementType:Z,externalSlotProps:U,ownerState:G,className:V(X.badge,U==null?void 0:U.className)});return u.jsxs(ce,S({},ee,{children:[v,u.jsx(Z,S({},K,{children:F}))]}))}),oO=oe("MuiBox",["root"]),iO=Ea(),Ke=i4({themeId:Oo,defaultTheme:iO,defaultClassName:oO.root,generateClassName:Wh.generate});function sO(e){return re("MuiButton",e)}const rl=oe("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),aO=p.createContext({}),lO=p.createContext(void 0),cO=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],uO=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:s}=e,a={root:["root",i,`${i}${A(t)}`,`size${A(o)}`,`${i}Size${A(o)}`,`color${A(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${A(o)}`],endIcon:["icon","endIcon",`iconSize${A(o)}`]},l=ie(a,sO,s);return S({},s,l)},V2=e=>S({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),dO=B(kr,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${A(n.color)}`],t[`size${A(n.size)}`],t[`${n.variant}Size${A(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return S({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":S({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:je(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:je(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:je(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":S({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${rl.focusVisible}`]:S({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${rl.disabled}`]:S({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${je(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${rl.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${rl.disabled}`]:{boxShadow:"none"}}),fO=B("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${A(n.size)}`]]}})(({ownerState:e})=>S({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},V2(e))),pO=B("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${A(n.size)}`]]}})(({ownerState:e})=>S({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},V2(e))),gt=p.forwardRef(function(t,n){const r=p.useContext(aO),o=p.useContext(lO),i=Vh(r,t),s=le({props:i,name:"MuiButton"}),{children:a,color:l="primary",component:c="button",className:d,disabled:f=!1,disableElevation:h=!1,disableFocusRipple:b=!1,endIcon:y,focusVisibleClassName:v,fullWidth:C=!1,size:g="medium",startIcon:m,type:x,variant:w="text"}=s,k=H(s,cO),P=S({},s,{color:l,component:c,disabled:f,disableElevation:h,disableFocusRipple:b,fullWidth:C,size:g,type:x,variant:w}),R=uO(P),E=m&&u.jsx(fO,{className:R.startIcon,ownerState:P,children:m}),j=y&&u.jsx(pO,{className:R.endIcon,ownerState:P,children:y}),T=o||"";return u.jsxs(dO,S({ownerState:P,className:V(r.className,R.root,d,T),component:c,disabled:f,focusRipple:!b,focusVisibleClassName:V(R.focusVisible,v),ref:n,type:x},k,{classes:R,children:[E,a,j]}))});function hO(e){return re("MuiCard",e)}oe("MuiCard",["root"]);const mO=["className","raised"],gO=e=>{const{classes:t}=e;return ie({root:["root"]},hO,t)},vO=B(gn,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),qu=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiCard"}),{className:o,raised:i=!1}=r,s=H(r,mO),a=S({},r,{raised:i}),l=gO(a);return u.jsx(vO,S({className:V(l.root,o),elevation:i?8:void 0,ref:n,ownerState:a},s))});function yO(e){return re("MuiCardContent",e)}oe("MuiCardContent",["root"]);const xO=["className","component"],bO=e=>{const{classes:t}=e;return ie({root:["root"]},yO,t)},SO=B("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),fm=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiCardContent"}),{className:o,component:i="div"}=r,s=H(r,xO),a=S({},r,{component:i}),l=bO(a);return u.jsx(SO,S({as:i,className:V(l.root,o),ownerState:a,ref:n},s))});function CO(e){return re("PrivateSwitchBase",e)}oe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const wO=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],kO=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${A(o)}`],input:["input"]};return ie(i,CO,t)},RO=B(kr)(({ownerState:e})=>S({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),PO=B("input",{shouldForwardProp:Mt})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),q2=p.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:s,defaultChecked:a,disabled:l,disableFocusRipple:c=!1,edge:d=!1,icon:f,id:h,inputProps:b,inputRef:y,name:v,onBlur:C,onChange:g,onFocus:m,readOnly:x,required:w=!1,tabIndex:k,type:P,value:R}=t,E=H(t,wO),[j,T]=sa({controlled:o,default:!!a,name:"SwitchBase",state:"checked"}),O=dr(),M=_=>{m&&m(_),O&&O.onFocus&&O.onFocus(_)},I=_=>{C&&C(_),O&&O.onBlur&&O.onBlur(_)},N=_=>{if(_.nativeEvent.defaultPrevented)return;const F=_.target.checked;T(F),g&&g(_,F)};let D=l;O&&typeof D>"u"&&(D=O.disabled);const z=P==="checkbox"||P==="radio",W=S({},t,{checked:j,disabled:D,disableFocusRipple:c,edge:d}),$=kO(W);return u.jsxs(RO,S({component:"span",className:V($.root,s),centerRipple:!0,focusRipple:!c,disabled:D,tabIndex:null,role:void 0,onFocus:M,onBlur:I,ownerState:W,ref:n},E,{children:[u.jsx(PO,S({autoFocus:r,checked:o,defaultChecked:a,className:$.input,disabled:D,id:z?h:void 0,name:v,onChange:N,readOnly:x,ref:y,required:w,ownerState:W,tabIndex:k,type:P},P==="checkbox"&&R===void 0?{}:{value:R},b)),j?i:f]}))}),EO=Nt(u.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),$O=Nt(u.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),TO=Nt(u.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function _O(e){return re("MuiCheckbox",e)}const Wd=oe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),jO=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],OO=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate",`color${A(r)}`,`size${A(o)}`]},s=ie(i,_O,t);return S({},t,s)},IO=B(q2,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${A(n.size)}`],n.color!=="default"&&t[`color${A(n.color)}`]]}})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:je(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Wd.checked}, &.${Wd.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Wd.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),MO=u.jsx($O,{}),NO=u.jsx(EO,{}),LO=u.jsx(TO,{}),pm=p.forwardRef(function(t,n){var r,o;const i=le({props:t,name:"MuiCheckbox"}),{checkedIcon:s=MO,color:a="primary",icon:l=NO,indeterminate:c=!1,indeterminateIcon:d=LO,inputProps:f,size:h="medium",className:b}=i,y=H(i,jO),v=c?d:l,C=c?d:s,g=S({},i,{color:a,indeterminate:c,size:h}),m=OO(g);return u.jsx(IO,S({type:"checkbox",inputProps:S({"data-indeterminate":c},f),icon:p.cloneElement(v,{fontSize:(r=v.props.fontSize)!=null?r:h}),checkedIcon:p.cloneElement(C,{fontSize:(o=C.props.fontSize)!=null?o:h}),ownerState:g,ref:n,className:V(m.root,b)},y,{classes:m}))});function AO(e){return re("MuiCircularProgress",e)}oe("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const zO=["className","color","disableShrink","size","style","thickness","value","variant"];let Ku=e=>e,G0,Y0,X0,Q0;const Nr=44,DO=Bi(G0||(G0=Ku` + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } +`)),FO=Bi(Y0||(Y0=Ku` + 0% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: 0; + } + + 50% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -15px; + } + + 100% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -125px; + } +`)),BO=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${A(r)}`],svg:["svg"],circle:["circle",`circle${A(n)}`,o&&"circleDisableShrink"]};return ie(i,AO,t)},WO=B("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${A(n.color)}`]]}})(({ownerState:e,theme:t})=>S({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&au(X0||(X0=Ku` + animation: ${0} 1.4s linear infinite; + `),DO)),UO=B("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),HO=B("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${A(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>S({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&au(Q0||(Q0=Ku` + animation: ${0} 1.4s ease-in-out infinite; + `),FO)),kn=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:s=!1,size:a=40,style:l,thickness:c=3.6,value:d=0,variant:f="indeterminate"}=r,h=H(r,zO),b=S({},r,{color:i,disableShrink:s,size:a,thickness:c,value:d,variant:f}),y=BO(b),v={},C={},g={};if(f==="determinate"){const m=2*Math.PI*((Nr-c)/2);v.strokeDasharray=m.toFixed(3),g["aria-valuenow"]=Math.round(d),v.strokeDashoffset=`${((100-d)/100*m).toFixed(3)}px`,C.transform="rotate(-90deg)"}return u.jsx(WO,S({className:V(y.root,o),style:S({width:a,height:a},C,l),ownerState:b,ref:n,role:"progressbar"},g,h,{children:u.jsx(UO,{className:y.svg,ownerState:b,viewBox:`${Nr/2} ${Nr/2} ${Nr} ${Nr}`,children:u.jsx(HO,{className:y.circle,style:v,ownerState:b,cx:Nr,cy:Nr,r:(Nr-c)/2,fill:"none",strokeWidth:c})})}))}),K2=X4({createStyledComponent:B("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${A(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>le({props:e,name:"MuiContainer"})}),VO=(e,t)=>S({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),qO=e=>S({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),KO=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,a])=>{var l;r[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(l=a.palette)==null?void 0:l.mode}});let o=S({html:VO(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:S({margin:0},qO(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const i=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return i&&(o=[o,i]),o};function hm(e){const t=le({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return u.jsxs(p.Fragment,{children:[u.jsx(W2,{styles:o=>KO(o,r)}),n]})}function GO(e){return re("MuiModal",e)}oe("MuiModal",["root","hidden","backdrop"]);const YO=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],XO=e=>{const{open:t,exited:n,classes:r}=e;return ie({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},GO,r)},QO=B("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>S({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),JO=B(H2,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),mm=p.forwardRef(function(t,n){var r,o,i,s,a,l;const c=le({name:"MuiModal",props:t}),{BackdropComponent:d=JO,BackdropProps:f,className:h,closeAfterTransition:b=!1,children:y,container:v,component:C,components:g={},componentsProps:m={},disableAutoFocus:x=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:k=!1,disablePortal:P=!1,disableRestoreFocus:R=!1,disableScrollLock:E=!1,hideBackdrop:j=!1,keepMounted:T=!1,onBackdropClick:O,open:M,slotProps:I,slots:N}=c,D=H(c,YO),z=S({},c,{closeAfterTransition:b,disableAutoFocus:x,disableEnforceFocus:w,disableEscapeKeyDown:k,disablePortal:P,disableRestoreFocus:R,disableScrollLock:E,hideBackdrop:j,keepMounted:T}),{getRootProps:W,getBackdropProps:$,getTransitionProps:_,portalRef:F,isTopModal:G,exited:X,hasTransition:ce}=V_(S({},z,{rootRef:n})),Z=S({},z,{exited:X}),ue=XO(Z),U={};if(y.props.tabIndex===void 0&&(U.tabIndex="-1"),ce){const{onEnter:pe,onExited:Se}=_();U.onEnter=pe,U.onExited=Se}const ee=(r=(o=N==null?void 0:N.root)!=null?o:g.Root)!=null?r:QO,K=(i=(s=N==null?void 0:N.backdrop)!=null?s:g.Backdrop)!=null?i:d,Q=(a=I==null?void 0:I.root)!=null?a:m.root,he=(l=I==null?void 0:I.backdrop)!=null?l:m.backdrop,J=en({elementType:ee,externalSlotProps:Q,externalForwardedProps:D,getSlotProps:W,additionalProps:{ref:n,as:C},ownerState:Z,className:V(h,Q==null?void 0:Q.className,ue==null?void 0:ue.root,!Z.open&&Z.exited&&(ue==null?void 0:ue.hidden))}),fe=en({elementType:K,externalSlotProps:he,additionalProps:f,getSlotProps:pe=>$(S({},pe,{onClick:Se=>{O&&O(Se),pe!=null&&pe.onClick&&pe.onClick(Se)}})),className:V(he==null?void 0:he.className,f==null?void 0:f.className,ue==null?void 0:ue.backdrop),ownerState:Z});return!T&&!M&&(!ce||X)?null:u.jsx($2,{ref:F,container:v,disablePortal:P,children:u.jsxs(ee,S({},J,{children:[!j&&d?u.jsx(K,S({},fe)):null,u.jsx(N_,{disableEnforceFocus:w,disableAutoFocus:x,disableRestoreFocus:R,isEnabled:G,open:M,children:p.cloneElement(y,U)})]}))})});function ZO(e){return re("MuiDialog",e)}const Ud=oe("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),G2=p.createContext({}),eI=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],tI=B(H2,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),nI=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,s={root:["root"],container:["container",`scroll${A(n)}`],paper:["paper",`paperScroll${A(n)}`,`paperWidth${A(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return ie(s,ZO,t)},rI=B(mm,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),oI=B("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${A(n.scroll)}`]]}})(({ownerState:e})=>S({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),iI=B(gn,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${A(n.scroll)}`],t[`paperWidth${A(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>S({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Ud.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${Ud.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Ud.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),yp=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiDialog"}),o=io(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,BackdropComponent:l,BackdropProps:c,children:d,className:f,disableEscapeKeyDown:h=!1,fullScreen:b=!1,fullWidth:y=!1,maxWidth:v="sm",onBackdropClick:C,onClick:g,onClose:m,open:x,PaperComponent:w=gn,PaperProps:k={},scroll:P="paper",TransitionComponent:R=U2,transitionDuration:E=i,TransitionProps:j}=r,T=H(r,eI),O=S({},r,{disableEscapeKeyDown:h,fullScreen:b,fullWidth:y,maxWidth:v,scroll:P}),M=nI(O),I=p.useRef(),N=$=>{I.current=$.target===$.currentTarget},D=$=>{g&&g($),I.current&&(I.current=null,C&&C($),m&&m($,"backdropClick"))},z=ka(a),W=p.useMemo(()=>({titleId:z}),[z]);return u.jsx(rI,S({className:V(M.root,f),closeAfterTransition:!0,components:{Backdrop:tI},componentsProps:{backdrop:S({transitionDuration:E,as:l},c)},disableEscapeKeyDown:h,onClose:m,open:x,ref:n,onClick:D,ownerState:O},T,{children:u.jsx(R,S({appear:!0,in:x,timeout:E,role:"presentation"},j,{children:u.jsx(oI,{className:V(M.container),onMouseDown:N,ownerState:O,children:u.jsx(iI,S({as:w,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":z},k,{className:V(M.paper,k.className),ownerState:O,children:u.jsx(G2.Provider,{value:W,children:d})}))})}))}))});function sI(e){return re("MuiDialogActions",e)}oe("MuiDialogActions",["root","spacing"]);const aI=["className","disableSpacing"],lI=e=>{const{classes:t,disableSpacing:n}=e;return ie({root:["root",!n&&"spacing"]},sI,t)},cI=B("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>S({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),xp=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1}=r,s=H(r,aI),a=S({},r,{disableSpacing:i}),l=lI(a);return u.jsx(cI,S({className:V(l.root,o),ownerState:a,ref:n},s))});function uI(e){return re("MuiDialogContent",e)}oe("MuiDialogContent",["root","dividers"]);function dI(e){return re("MuiDialogTitle",e)}const fI=oe("MuiDialogTitle",["root"]),pI=["className","dividers"],hI=e=>{const{classes:t,dividers:n}=e;return ie({root:["root",n&&"dividers"]},uI,t)},mI=B("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>S({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${fI.root} + &`]:{paddingTop:0}})),bp=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,s=H(r,pI),a=S({},r,{dividers:i}),l=hI(a);return u.jsx(mI,S({className:V(l.root,o),ownerState:a,ref:n},s))});function gI(e){return re("MuiDialogContentText",e)}oe("MuiDialogContentText",["root"]);const vI=["children","className"],yI=e=>{const{classes:t}=e,r=ie({root:["root"]},gI,t);return S({},t,r)},xI=B(ve,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Y2=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiDialogContentText"}),{className:o}=r,i=H(r,vI),s=yI(i);return u.jsx(xI,S({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:i,className:V(s.root,o)},r,{classes:s}))}),bI=["className","id"],SI=e=>{const{classes:t}=e;return ie({root:["root"]},dI,t)},CI=B(ve,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Sp=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiDialogTitle"}),{className:o,id:i}=r,s=H(r,bI),a=r,l=SI(a),{titleId:c=i}=p.useContext(G2);return u.jsx(CI,S({component:"h2",className:V(l.root,o),ownerState:a,ref:n,variant:"h6",id:i??c},s))});function wI(e){return re("MuiDivider",e)}const J0=oe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),kI=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],RI=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:s,textAlign:a,variant:l}=e;return ie({root:["root",t&&"absolute",l,i&&"light",s==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",a==="right"&&s!=="vertical"&&"textAlignRight",a==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},wI,r)},PI=B("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>S({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:je(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>S({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>S({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>S({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>S({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),EI=B("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>S({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),ca=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:s,component:a=i?"div":"hr",flexItem:l=!1,light:c=!1,orientation:d="horizontal",role:f=a!=="hr"?"separator":void 0,textAlign:h="center",variant:b="fullWidth"}=r,y=H(r,kI),v=S({},r,{absolute:o,component:a,flexItem:l,light:c,orientation:d,role:f,textAlign:h,variant:b}),C=RI(v);return u.jsx(PI,S({as:a,className:V(C.root,s),role:f,ref:n,ownerState:v},y,{children:i?u.jsx(EI,{className:C.wrapper,ownerState:v,children:i}):null}))});ca.muiSkipListHighlight=!0;const $I=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function TI(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=_n(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const c=i.getComputedStyle(t);s=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let a=0,l=0;if(s&&s!=="none"&&typeof s=="string"){const c=s.split("(")[1].split(")")[0].split(",");a=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?o?`translateX(${o.right+a-r.left}px)`:`translateX(${i.innerWidth+a-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-a}px)`:`translateX(-${r.left+r.width-a}px)`:e==="up"?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function _I(e){return typeof e=="function"?e():e}function ol(e,t,n){const r=_I(n),o=TI(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const jI=p.forwardRef(function(t,n){const r=io(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:l,container:c,direction:d="down",easing:f=o,in:h,onEnter:b,onEntered:y,onEntering:v,onExit:C,onExited:g,onExiting:m,style:x,timeout:w=i,TransitionComponent:k=Qn}=t,P=H(t,$I),R=p.useRef(null),E=Ye(l.ref,R,n),j=$=>_=>{$&&(_===void 0?$(R.current):$(R.current,_))},T=j(($,_)=>{ol(d,$,c),nm($),b&&b($,_)}),O=j(($,_)=>{const F=Pi({timeout:w,style:x,easing:f},{mode:"enter"});$.style.webkitTransition=r.transitions.create("-webkit-transform",S({},F)),$.style.transition=r.transitions.create("transform",S({},F)),$.style.webkitTransform="none",$.style.transform="none",v&&v($,_)}),M=j(y),I=j(m),N=j($=>{const _=Pi({timeout:w,style:x,easing:f},{mode:"exit"});$.style.webkitTransition=r.transitions.create("-webkit-transform",_),$.style.transition=r.transitions.create("transform",_),ol(d,$,c),C&&C($)}),D=j($=>{$.style.webkitTransition="",$.style.transition="",g&&g($)}),z=$=>{s&&s(R.current,$)},W=p.useCallback(()=>{R.current&&ol(d,R.current,c)},[d,c]);return p.useEffect(()=>{if(h||d==="down"||d==="right")return;const $=Hi(()=>{R.current&&ol(d,R.current,c)}),_=_n(R.current);return _.addEventListener("resize",$),()=>{$.clear(),_.removeEventListener("resize",$)}},[d,h,c]),p.useEffect(()=>{h||W()},[h,W]),u.jsx(k,S({nodeRef:R,onEnter:T,onEntered:M,onEntering:O,onExit:N,onExited:D,onExiting:I,addEndListener:z,appear:a,in:h,timeout:w},P,{children:($,_)=>p.cloneElement(l,S({ref:E,style:S({visibility:$==="exited"&&!h?"hidden":void 0},x,l.props.style)},_))}))});function OI(e){return re("MuiDrawer",e)}oe("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const II=["BackdropProps"],MI=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],X2=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},NI=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${A(n)}`,r!=="temporary"&&`paperAnchorDocked${A(n)}`]};return ie(o,OI,t)},LI=B(mm,{name:"MuiDrawer",slot:"Root",overridesResolver:X2})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),Z0=B("div",{shouldForwardProp:Mt,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:X2})({flex:"0 0 auto"}),AI=B(gn,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${A(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${A(n.anchor)}`]]}})(({theme:e,ownerState:t})=>S({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),Q2={left:"right",right:"left",top:"down",bottom:"up"};function zI(e){return["left","right"].indexOf(e)!==-1}function DI({direction:e},t){return e==="rtl"&&zI(t)?Q2[t]:t}const FI=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiDrawer"}),o=io(),i=Pa(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:a="left",BackdropProps:l,children:c,className:d,elevation:f=16,hideBackdrop:h=!1,ModalProps:{BackdropProps:b}={},onClose:y,open:v=!1,PaperProps:C={},SlideProps:g,TransitionComponent:m=jI,transitionDuration:x=s,variant:w="temporary"}=r,k=H(r.ModalProps,II),P=H(r,MI),R=p.useRef(!1);p.useEffect(()=>{R.current=!0},[]);const E=DI({direction:i?"rtl":"ltr"},a),T=S({},r,{anchor:a,elevation:f,open:v,variant:w},P),O=NI(T),M=u.jsx(AI,S({elevation:w==="temporary"?f:0,square:!0},C,{className:V(O.paper,C.className),ownerState:T,children:c}));if(w==="permanent")return u.jsx(Z0,S({className:V(O.root,O.docked,d),ownerState:T,ref:n},P,{children:M}));const I=u.jsx(m,S({in:v,direction:Q2[E],timeout:x,appear:R.current},g,{children:M}));return w==="persistent"?u.jsx(Z0,S({className:V(O.root,O.docked,d),ownerState:T,ref:n},P,{children:I})):u.jsx(LI,S({BackdropProps:S({},l,b,{transitionDuration:x}),className:V(O.root,O.modal,d),open:v,ownerState:T,onClose:y,hideBackdrop:h,ref:n},P,k,{children:I}))}),BI=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],WI=e=>{const{classes:t,disableUnderline:n}=e,o=ie({root:["root",!n&&"underline"],input:["input"]},M3,t);return S({},t,o)},UI=B(Hu,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Wu(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return S({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${co.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${co.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${co.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${co.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${co.disabled}, .${co.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${co.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&S({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),HI=B(Vu,{name:"MuiFilledInput",slot:"Input",overridesResolver:Uu})(({theme:e,ownerState:t})=>S({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),gm=p.forwardRef(function(t,n){var r,o,i,s;const a=le({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:c,fullWidth:d=!1,inputComponent:f="input",multiline:h=!1,slotProps:b,slots:y={},type:v="text"}=a,C=H(a,BI),g=S({},a,{fullWidth:d,inputComponent:f,multiline:h,type:v}),m=WI(a),x={root:{ownerState:g},input:{ownerState:g}},w=b??c?Ft(x,b??c):x,k=(r=(o=y.root)!=null?o:l.Root)!=null?r:UI,P=(i=(s=y.input)!=null?s:l.Input)!=null?i:HI;return u.jsx(dm,S({slots:{root:k,input:P},componentsProps:w,fullWidth:d,inputComponent:f,multiline:h,ref:n,type:v},C,{classes:m}))});gm.muiName="Input";function VI(e){return re("MuiFormControl",e)}oe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const qI=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],KI=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${A(n)}`,r&&"fullWidth"]};return ie(o,VI,t)},GI=B("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,t[`margin${A(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>S({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),Gu=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiFormControl"}),{children:o,className:i,color:s="primary",component:a="div",disabled:l=!1,error:c=!1,focused:d,fullWidth:f=!1,hiddenLabel:h=!1,margin:b="none",required:y=!1,size:v="medium",variant:C="outlined"}=r,g=H(r,qI),m=S({},r,{color:s,component:a,disabled:l,error:c,fullWidth:f,hiddenLabel:h,margin:b,required:y,size:v,variant:C}),x=KI(m),[w,k]=p.useState(()=>{let I=!1;return o&&p.Children.forEach(o,N=>{if(!js(N,["Input","Select"]))return;const D=js(N,["Select"])?N.props.input:N;D&&P3(D.props)&&(I=!0)}),I}),[P,R]=p.useState(()=>{let I=!1;return o&&p.Children.forEach(o,N=>{js(N,["Input","Select"])&&(vc(N.props,!0)||vc(N.props.inputProps,!0))&&(I=!0)}),I}),[E,j]=p.useState(!1);l&&E&&j(!1);const T=d!==void 0&&!l?d:E;let O;const M=p.useMemo(()=>({adornedStart:w,setAdornedStart:k,color:s,disabled:l,error:c,filled:P,focused:T,fullWidth:f,hiddenLabel:h,size:v,onBlur:()=>{j(!1)},onEmpty:()=>{R(!1)},onFilled:()=>{R(!0)},onFocus:()=>{j(!0)},registerEffect:O,required:y,variant:C}),[w,s,l,c,P,T,f,h,O,y,v,C]);return u.jsx(Bu.Provider,{value:M,children:u.jsx(GI,S({as:a,ownerState:m,className:V(x.root,i),ref:n},g,{children:o}))})}),YI=o5({createStyledComponent:B("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>le({props:e,name:"MuiStack"})});function XI(e){return re("MuiFormControlLabel",e)}const bs=oe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),QI=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],JI=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,s={root:["root",n&&"disabled",`labelPlacement${A(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return ie(s,XI,t)},ZI=B("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${bs.label}`]:t.label},t.root,t[`labelPlacement${A(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>S({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${bs.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${bs.label}`]:{[`&.${bs.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),eM=B("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${bs.error}`]:{color:(e.vars||e).palette.error.main}})),vm=p.forwardRef(function(t,n){var r,o;const i=le({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:a={},control:l,disabled:c,disableTypography:d,label:f,labelPlacement:h="end",required:b,slotProps:y={}}=i,v=H(i,QI),C=dr(),g=(r=c??l.props.disabled)!=null?r:C==null?void 0:C.disabled,m=b??l.props.required,x={disabled:g,required:m};["checked","name","onChange","value","inputRef"].forEach(j=>{typeof l.props[j]>"u"&&typeof i[j]<"u"&&(x[j]=i[j])});const w=ao({props:i,muiFormControl:C,states:["error"]}),k=S({},i,{disabled:g,labelPlacement:h,required:m,error:w.error}),P=JI(k),R=(o=y.typography)!=null?o:a.typography;let E=f;return E!=null&&E.type!==ve&&!d&&(E=u.jsx(ve,S({component:"span"},R,{className:V(P.label,R==null?void 0:R.className),children:E}))),u.jsxs(ZI,S({className:V(P.root,s),ownerState:k,ref:n},v,{children:[p.cloneElement(l,x),m?u.jsxs(YI,{display:"block",children:[E,u.jsxs(eM,{ownerState:k,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]}):E]}))});function tM(e){return re("MuiFormGroup",e)}oe("MuiFormGroup",["root","row","error"]);const nM=["className","row"],rM=e=>{const{classes:t,row:n,error:r}=e;return ie({root:["root",n&&"row",r&&"error"]},tM,t)},oM=B("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>S({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),J2=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiFormGroup"}),{className:o,row:i=!1}=r,s=H(r,nM),a=dr(),l=ao({props:r,muiFormControl:a,states:["error"]}),c=S({},r,{row:i,error:l.error}),d=rM(c);return u.jsx(oM,S({className:V(d.root,o),ownerState:c,ref:n},s))});function iM(e){return re("MuiFormHelperText",e)}const ey=oe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var ty;const sM=["children","className","component","disabled","error","filled","focused","margin","required","variant"],aM=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:s,focused:a,required:l}=e,c={root:["root",o&&"disabled",i&&"error",r&&`size${A(r)}`,n&&"contained",a&&"focused",s&&"filled",l&&"required"]};return ie(c,iM,t)},lM=B("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${A(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${ey.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ey.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),cM=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:s="p"}=r,a=H(r,sM),l=dr(),c=ao({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),d=S({},r,{component:s,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=aM(d);return u.jsx(lM,S({as:s,ownerState:d,className:V(f.root,i),ref:n},a,{children:o===" "?ty||(ty=u.jsx("span",{className:"notranslate",children:"​"})):o}))});function uM(e){return re("MuiFormLabel",e)}const Ns=oe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),dM=["children","className","color","component","disabled","error","filled","focused","required"],fM=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:s,required:a}=e,l={root:["root",`color${A(n)}`,o&&"disabled",i&&"error",s&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]};return ie(l,uM,t)},pM=B("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Ns.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Ns.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ns.error}`]:{color:(e.vars||e).palette.error.main}})),hM=B("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Ns.error}`]:{color:(e.vars||e).palette.error.main}})),mM=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:s="label"}=r,a=H(r,dM),l=dr(),c=ao({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),d=S({},r,{color:c.color||"primary",component:s,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=fM(d);return u.jsxs(pM,S({as:s,ownerState:d,className:V(f.root,i),ref:n},a,{children:[o,c.required&&u.jsxs(hM,{ownerState:d,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),gM=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Cp(e){return`scale(${e}, ${e**2})`}const vM={entering:{opacity:1,transform:Cp(1)},entered:{opacity:1,transform:"none"}},Hd=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ua=p.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:s,in:a,onEnter:l,onEntered:c,onEntering:d,onExit:f,onExited:h,onExiting:b,style:y,timeout:v="auto",TransitionComponent:C=Qn}=t,g=H(t,gM),m=xo(),x=p.useRef(),w=io(),k=p.useRef(null),P=Ye(k,i.ref,n),R=D=>z=>{if(D){const W=k.current;z===void 0?D(W):D(W,z)}},E=R(d),j=R((D,z)=>{nm(D);const{duration:W,delay:$,easing:_}=Pi({style:y,timeout:v,easing:s},{mode:"enter"});let F;v==="auto"?(F=w.transitions.getAutoHeightDuration(D.clientHeight),x.current=F):F=W,D.style.transition=[w.transitions.create("opacity",{duration:F,delay:$}),w.transitions.create("transform",{duration:Hd?F:F*.666,delay:$,easing:_})].join(","),l&&l(D,z)}),T=R(c),O=R(b),M=R(D=>{const{duration:z,delay:W,easing:$}=Pi({style:y,timeout:v,easing:s},{mode:"exit"});let _;v==="auto"?(_=w.transitions.getAutoHeightDuration(D.clientHeight),x.current=_):_=z,D.style.transition=[w.transitions.create("opacity",{duration:_,delay:W}),w.transitions.create("transform",{duration:Hd?_:_*.666,delay:Hd?W:W||_*.333,easing:$})].join(","),D.style.opacity=0,D.style.transform=Cp(.75),f&&f(D)}),I=R(h),N=D=>{v==="auto"&&m.start(x.current||0,D),r&&r(k.current,D)};return u.jsx(C,S({appear:o,in:a,nodeRef:k,onEnter:j,onEntered:T,onEntering:E,onExit:M,onExited:I,onExiting:O,addEndListener:N,timeout:v==="auto"?null:v},g,{children:(D,z)=>p.cloneElement(i,S({style:S({opacity:0,transform:Cp(.75),visibility:D==="exited"&&!a?"hidden":void 0},vM[D],y,i.props.style),ref:P},z))}))});ua.muiSupportAuto=!0;const yM=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],xM=e=>{const{classes:t,disableUnderline:n}=e,o=ie({root:["root",!n&&"underline"],input:["input"]},O3,t);return S({},t,o)},bM=B(Hu,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Wu(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),S({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${cs.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${cs.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${cs.disabled}, .${cs.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${cs.disabled}:before`]:{borderBottomStyle:"dotted"}})}),SM=B(Vu,{name:"MuiInput",slot:"Input",overridesResolver:Uu})({}),ym=p.forwardRef(function(t,n){var r,o,i,s;const a=le({props:t,name:"MuiInput"}),{disableUnderline:l,components:c={},componentsProps:d,fullWidth:f=!1,inputComponent:h="input",multiline:b=!1,slotProps:y,slots:v={},type:C="text"}=a,g=H(a,yM),m=xM(a),w={root:{ownerState:{disableUnderline:l}}},k=y??d?Ft(y??d,w):w,P=(r=(o=v.root)!=null?o:c.Root)!=null?r:bM,R=(i=(s=v.input)!=null?s:c.Input)!=null?i:SM;return u.jsx(dm,S({slots:{root:P,input:R},slotProps:k,fullWidth:f,inputComponent:h,multiline:b,ref:n,type:C},g,{classes:m}))});ym.muiName="Input";function CM(e){return re("MuiInputAdornment",e)}const ny=oe("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var ry;const wM=["children","className","component","disablePointerEvents","disableTypography","position","variant"],kM=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${A(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},RM=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:s}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${A(o)}`,s,r&&"hiddenLabel",i&&`size${A(i)}`]};return ie(a,CM,t)},PM=B("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:kM})(({theme:e,ownerState:t})=>S({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${ny.positionStart}&:not(.${ny.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),yc=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:s="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:d}=r,f=H(r,wM),h=dr()||{};let b=d;d&&h.variant,h&&!b&&(b=h.variant);const y=S({},r,{hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:a,position:c,variant:b}),v=RM(y);return u.jsx(Bu.Provider,{value:null,children:u.jsx(PM,S({as:s,ownerState:y,className:V(v.root,i),ref:n},f,{children:typeof o=="string"&&!l?u.jsx(ve,{color:"text.secondary",children:o}):u.jsxs(p.Fragment,{children:[c==="start"?ry||(ry=u.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})});function EM(e){return re("MuiInputLabel",e)}oe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const $M=["disableAnimation","margin","shrink","variant","className"],TM=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:s,required:a}=e,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${A(r)}`,s],asterisk:[a&&"asterisk"]},c=ie(l,EM,t);return S({},t,c)},_M=B(mM,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ns.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>S({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&S({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&S({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&S({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Yu=p.forwardRef(function(t,n){const r=le({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:s}=r,a=H(r,$M),l=dr();let c=i;typeof c>"u"&&l&&(c=l.filled||l.focused||l.adornedStart);const d=ao({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),f=S({},r,{disableAnimation:o,formControl:l,shrink:c,size:d.size,variant:d.variant,required:d.required,focused:d.focused}),h=TM(f);return u.jsx(_M,S({"data-shrink":c,ownerState:f,ref:n,className:V(h.root,s)},a,{classes:h}))}),ar=p.createContext({});function jM(e){return re("MuiList",e)}oe("MuiList",["root","padding","dense","subheader"]);const OM=["children","className","component","dense","disablePadding","subheader"],IM=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return ie({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},jM,t)},MM=B("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>S({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),ja=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:a=!1,disablePadding:l=!1,subheader:c}=r,d=H(r,OM),f=p.useMemo(()=>({dense:a}),[a]),h=S({},r,{component:s,dense:a,disablePadding:l}),b=IM(h);return u.jsx(ar.Provider,{value:f,children:u.jsxs(MM,S({as:s,className:V(b.root,i),ref:n,ownerState:h},d,{children:[c,o]}))})});function NM(e){return re("MuiListItem",e)}const Go=oe("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),LM=oe("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function AM(e){return re("MuiListItemSecondaryAction",e)}oe("MuiListItemSecondaryAction",["root","disableGutters"]);const zM=["className"],DM=e=>{const{disableGutters:t,classes:n}=e;return ie({root:["root",t&&"disableGutters"]},AM,n)},FM=B("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>S({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),Z2=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=H(r,zM),s=p.useContext(ar),a=S({},r,{disableGutters:s.disableGutters}),l=DM(a);return u.jsx(FM,S({className:V(l.root,o),ownerState:a,ref:n},i))});Z2.muiName="ListItemSecondaryAction";const BM=["className"],WM=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],UM=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},HM=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:s,disablePadding:a,divider:l,hasSecondaryAction:c,selected:d}=e;return ie({root:["root",o&&"dense",!s&&"gutters",!a&&"padding",l&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction",d&&"selected"],container:["container"]},NM,r)},VM=B("div",{name:"MuiListItem",slot:"Root",overridesResolver:UM})(({theme:e,ownerState:t})=>S({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&S({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${LM.root}`]:{paddingRight:48}},{[`&.${Go.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Go.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:je(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Go.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:je(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Go.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Go.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:je(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:je(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),qM=B("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),xc=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:s=!1,children:a,className:l,component:c,components:d={},componentsProps:f={},ContainerComponent:h="li",ContainerProps:{className:b}={},dense:y=!1,disabled:v=!1,disableGutters:C=!1,disablePadding:g=!1,divider:m=!1,focusVisibleClassName:x,secondaryAction:w,selected:k=!1,slotProps:P={},slots:R={}}=r,E=H(r.ContainerProps,BM),j=H(r,WM),T=p.useContext(ar),O=p.useMemo(()=>({dense:y||T.dense||!1,alignItems:o,disableGutters:C}),[o,T.dense,y,C]),M=p.useRef(null);dn(()=>{i&&M.current&&M.current.focus()},[i]);const I=p.Children.toArray(a),N=I.length&&js(I[I.length-1],["ListItemSecondaryAction"]),D=S({},r,{alignItems:o,autoFocus:i,button:s,dense:O.dense,disabled:v,disableGutters:C,disablePadding:g,divider:m,hasSecondaryAction:N,selected:k}),z=HM(D),W=Ye(M,n),$=R.root||d.Root||VM,_=P.root||f.root||{},F=S({className:V(z.root,_.className,l),disabled:v},j);let G=c||"li";return s&&(F.component=c||"div",F.focusVisibleClassName=V(Go.focusVisible,x),G=kr),N?(G=!F.component&&!c?"div":G,h==="li"&&(G==="li"?G="div":F.component==="li"&&(F.component="div")),u.jsx(ar.Provider,{value:O,children:u.jsxs(qM,S({as:h,className:V(z.container,b),ref:W,ownerState:D},E,{children:[u.jsx($,S({},_,!Ei($)&&{as:G,ownerState:S({},D,_.ownerState)},F,{children:I})),I.pop()]}))})):u.jsx(ar.Provider,{value:O,children:u.jsxs($,S({},_,{as:G,ref:W},!Ei($)&&{ownerState:S({},D,_.ownerState)},F,{children:[I,w&&u.jsx(Z2,{children:w})]}))})});function KM(e){return re("MuiListItemAvatar",e)}oe("MuiListItemAvatar",["root","alignItemsFlexStart"]);const GM=["className"],YM=e=>{const{alignItems:t,classes:n}=e;return ie({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},KM,n)},XM=B("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>S({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),QM=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiListItemAvatar"}),{className:o}=r,i=H(r,GM),s=p.useContext(ar),a=S({},r,{alignItems:s.alignItems}),l=YM(a);return u.jsx(XM,S({className:V(l.root,o),ownerState:a,ref:n},i))});function JM(e){return re("MuiListItemIcon",e)}const oy=oe("MuiListItemIcon",["root","alignItemsFlexStart"]),ZM=["className"],eN=e=>{const{alignItems:t,classes:n}=e;return ie({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},JM,n)},tN=B("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>S({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),iy=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiListItemIcon"}),{className:o}=r,i=H(r,ZM),s=p.useContext(ar),a=S({},r,{alignItems:s.alignItems}),l=eN(a);return u.jsx(tN,S({className:V(l.root,o),ownerState:a,ref:n},i))});function nN(e){return re("MuiListItemText",e)}const bc=oe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),rN=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],oN=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return ie({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},nN,t)},iN=B("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${bc.primary}`]:t.primary},{[`& .${bc.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>S({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),da=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:s=!1,inset:a=!1,primary:l,primaryTypographyProps:c,secondary:d,secondaryTypographyProps:f}=r,h=H(r,rN),{dense:b}=p.useContext(ar);let y=l??o,v=d;const C=S({},r,{disableTypography:s,inset:a,primary:!!y,secondary:!!v,dense:b}),g=oN(C);return y!=null&&y.type!==ve&&!s&&(y=u.jsx(ve,S({variant:b?"body2":"body1",className:g.primary,component:c!=null&&c.variant?void 0:"span",display:"block"},c,{children:y}))),v!=null&&v.type!==ve&&!s&&(v=u.jsx(ve,S({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},f,{children:v}))),u.jsxs(iN,S({className:V(g.root,i),ownerState:C,ref:n},h,{children:[y,v]}))}),sN=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Vd(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function sy(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function eS(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function us(e,t,n,r,o,i){let s=!1,a=o(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const l=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!eS(a,i)||l)a=o(e,a,n);else return a.focus(),!0}return!1}const aN=p.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:s,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:d,variant:f="selectedMenu"}=t,h=H(t,sN),b=p.useRef(null),y=p.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});dn(()=>{o&&b.current.focus()},[o]),p.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,{direction:w})=>{const k=!b.current.style.width;if(x.clientHeight{const w=b.current,k=x.key,P=ft(w).activeElement;if(k==="ArrowDown")x.preventDefault(),us(w,P,c,l,Vd);else if(k==="ArrowUp")x.preventDefault(),us(w,P,c,l,sy);else if(k==="Home")x.preventDefault(),us(w,null,c,l,Vd);else if(k==="End")x.preventDefault(),us(w,null,c,l,sy);else if(k.length===1){const R=y.current,E=k.toLowerCase(),j=performance.now();R.keys.length>0&&(j-R.lastTime>500?(R.keys=[],R.repeating=!0,R.previousKeyMatched=!0):R.repeating&&E!==R.keys[0]&&(R.repeating=!1)),R.lastTime=j,R.keys.push(E);const T=P&&!R.repeating&&eS(P,R);R.previousKeyMatched&&(T||us(w,P,!1,l,Vd,R))?x.preventDefault():R.previousKeyMatched=!1}d&&d(x)},C=Ye(b,n);let g=-1;p.Children.forEach(s,(x,w)=>{if(!p.isValidElement(x)){g===w&&(g+=1,g>=s.length&&(g=-1));return}x.props.disabled||(f==="selectedMenu"&&x.props.selected||g===-1)&&(g=w),g===w&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(g+=1,g>=s.length&&(g=-1))});const m=p.Children.map(s,(x,w)=>{if(w===g){const k={};return i&&(k.autoFocus=!0),x.props.tabIndex===void 0&&f==="selectedMenu"&&(k.tabIndex=0),p.cloneElement(x,k)}return x});return u.jsx(ja,S({role:"menu",ref:C,className:a,onKeyDown:v,tabIndex:o?0:-1},h,{children:m}))});function lN(e){return re("MuiPopover",e)}oe("MuiPopover",["root","paper"]);const cN=["onEntering"],uN=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],dN=["slotProps"];function ay(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function ly(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function cy(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function qd(e){return typeof e=="function"?e():e}const fN=e=>{const{classes:t}=e;return ie({root:["root"],paper:["paper"]},lN,t)},pN=B(mm,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),tS=B(gn,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),hN=p.forwardRef(function(t,n){var r,o,i;const s=le({props:t,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:f="anchorEl",children:h,className:b,container:y,elevation:v=8,marginThreshold:C=16,open:g,PaperProps:m={},slots:x,slotProps:w,transformOrigin:k={vertical:"top",horizontal:"left"},TransitionComponent:P=ua,transitionDuration:R="auto",TransitionProps:{onEntering:E}={},disableScrollLock:j=!1}=s,T=H(s.TransitionProps,cN),O=H(s,uN),M=(r=w==null?void 0:w.paper)!=null?r:m,I=p.useRef(),N=Ye(I,M.ref),D=S({},s,{anchorOrigin:c,anchorReference:f,elevation:v,marginThreshold:C,externalPaperSlotProps:M,transformOrigin:k,TransitionComponent:P,transitionDuration:R,TransitionProps:T}),z=fN(D),W=p.useCallback(()=>{if(f==="anchorPosition")return d;const pe=qd(l),xe=(pe&&pe.nodeType===1?pe:ft(I.current).body).getBoundingClientRect();return{top:xe.top+ay(xe,c.vertical),left:xe.left+ly(xe,c.horizontal)}},[l,c.horizontal,c.vertical,d,f]),$=p.useCallback(pe=>({vertical:ay(pe,k.vertical),horizontal:ly(pe,k.horizontal)}),[k.horizontal,k.vertical]),_=p.useCallback(pe=>{const Se={width:pe.offsetWidth,height:pe.offsetHeight},xe=$(Se);if(f==="none")return{top:null,left:null,transformOrigin:cy(xe)};const Ct=W();let Fe=Ct.top-xe.vertical,ze=Ct.left-xe.horizontal;const pt=Fe+Se.height,Me=ze+Se.width,ke=_n(qd(l)),ct=ke.innerHeight-C,He=ke.innerWidth-C;if(C!==null&&Fect){const Ee=pt-ct;Fe-=Ee,xe.vertical+=Ee}if(C!==null&&zeHe){const Ee=Me-He;ze-=Ee,xe.horizontal+=Ee}return{top:`${Math.round(Fe)}px`,left:`${Math.round(ze)}px`,transformOrigin:cy(xe)}},[l,f,W,$,C]),[F,G]=p.useState(g),X=p.useCallback(()=>{const pe=I.current;if(!pe)return;const Se=_(pe);Se.top!==null&&(pe.style.top=Se.top),Se.left!==null&&(pe.style.left=Se.left),pe.style.transformOrigin=Se.transformOrigin,G(!0)},[_]);p.useEffect(()=>(j&&window.addEventListener("scroll",X),()=>window.removeEventListener("scroll",X)),[l,j,X]);const ce=(pe,Se)=>{E&&E(pe,Se),X()},Z=()=>{G(!1)};p.useEffect(()=>{g&&X()}),p.useImperativeHandle(a,()=>g?{updatePosition:()=>{X()}}:null,[g,X]),p.useEffect(()=>{if(!g)return;const pe=Hi(()=>{X()}),Se=_n(l);return Se.addEventListener("resize",pe),()=>{pe.clear(),Se.removeEventListener("resize",pe)}},[l,g,X]);let ue=R;R==="auto"&&!P.muiSupportAuto&&(ue=void 0);const U=y||(l?ft(qd(l)).body:void 0),ee=(o=x==null?void 0:x.root)!=null?o:pN,K=(i=x==null?void 0:x.paper)!=null?i:tS,Q=en({elementType:K,externalSlotProps:S({},M,{style:F?M.style:S({},M.style,{opacity:0})}),additionalProps:{elevation:v,ref:N},ownerState:D,className:V(z.paper,M==null?void 0:M.className)}),he=en({elementType:ee,externalSlotProps:(w==null?void 0:w.root)||{},externalForwardedProps:O,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:U,open:g},ownerState:D,className:V(z.root,b)}),{slotProps:J}=he,fe=H(he,dN);return u.jsx(ee,S({},fe,!Ei(ee)&&{slotProps:J,disableScrollLock:j},{children:u.jsx(P,S({appear:!0,in:g,onEntering:ce,onExited:Z,timeout:ue},T,{children:u.jsx(K,S({},Q,{children:h}))}))}))});function mN(e){return re("MuiMenu",e)}oe("MuiMenu",["root","paper","list"]);const gN=["onEntering"],vN=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],yN={vertical:"top",horizontal:"right"},xN={vertical:"top",horizontal:"left"},bN=e=>{const{classes:t}=e;return ie({root:["root"],paper:["paper"],list:["list"]},mN,t)},SN=B(hN,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),CN=B(tS,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),wN=B(aN,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),nS=p.forwardRef(function(t,n){var r,o;const i=le({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:a,className:l,disableAutoFocusItem:c=!1,MenuListProps:d={},onClose:f,open:h,PaperProps:b={},PopoverClasses:y,transitionDuration:v="auto",TransitionProps:{onEntering:C}={},variant:g="selectedMenu",slots:m={},slotProps:x={}}=i,w=H(i.TransitionProps,gN),k=H(i,vN),P=Pa(),R=S({},i,{autoFocus:s,disableAutoFocusItem:c,MenuListProps:d,onEntering:C,PaperProps:b,transitionDuration:v,TransitionProps:w,variant:g}),E=bN(R),j=s&&!c&&h,T=p.useRef(null),O=($,_)=>{T.current&&T.current.adjustStyleForScrollbar($,{direction:P?"rtl":"ltr"}),C&&C($,_)},M=$=>{$.key==="Tab"&&($.preventDefault(),f&&f($,"tabKeyDown"))};let I=-1;p.Children.map(a,($,_)=>{p.isValidElement($)&&($.props.disabled||(g==="selectedMenu"&&$.props.selected||I===-1)&&(I=_))});const N=(r=m.paper)!=null?r:CN,D=(o=x.paper)!=null?o:b,z=en({elementType:m.root,externalSlotProps:x.root,ownerState:R,className:[E.root,l]}),W=en({elementType:N,externalSlotProps:D,ownerState:R,className:E.paper});return u.jsx(SN,S({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:P?"right":"left"},transformOrigin:P?yN:xN,slots:{paper:N,root:m.root},slotProps:{root:z,paper:W},open:h,ref:n,transitionDuration:v,TransitionProps:S({onEntering:O},w),ownerState:R},k,{classes:y,children:u.jsx(wN,S({onKeyDown:M,actions:T,autoFocus:s&&(I===-1||c),autoFocusItem:j,variant:g},d,{className:V(E.list,d.className),children:a}))}))});function kN(e){return re("MuiMenuItem",e)}const ds=oe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),RN=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],PN=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},EN=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:s}=e,l=ie({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},kN,s);return S({},s,l)},$N=B(kr,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:PN})(({theme:e,ownerState:t})=>S({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ds.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:je(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ds.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:je(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ds.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:je(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:je(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ds.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ds.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${J0.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${J0.inset}`]:{marginLeft:52},[`& .${bc.root}`]:{marginTop:0,marginBottom:0},[`& .${bc.inset}`]:{paddingLeft:36},[`& .${oy.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&S({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${oy.root} svg`]:{fontSize:"1.25rem"}}))),Un=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:s=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:c,role:d="menuitem",tabIndex:f,className:h}=r,b=H(r,RN),y=p.useContext(ar),v=p.useMemo(()=>({dense:s||y.dense||!1,disableGutters:l}),[y.dense,s,l]),C=p.useRef(null);dn(()=>{o&&C.current&&C.current.focus()},[o]);const g=S({},r,{dense:v.dense,divider:a,disableGutters:l}),m=EN(r),x=Ye(C,n);let w;return r.disabled||(w=f!==void 0?f:-1),u.jsx(ar.Provider,{value:v,children:u.jsx($N,S({ref:x,role:d,tabIndex:w,component:i,focusVisibleClassName:V(m.focusVisible,c),className:V(m.root,h)},b,{ownerState:g,classes:m}))})});function TN(e){return re("MuiNativeSelect",e)}const xm=oe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),_N=["className","disabled","error","IconComponent","inputRef","variant"],jN=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${A(n)}`,i&&"iconOpen",r&&"disabled"]};return ie(a,TN,t)},rS=({ownerState:e,theme:t})=>S({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":S({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${xm.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),ON=B("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Mt,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${xm.multiple}`]:t.multiple}]}})(rS),oS=({ownerState:e,theme:t})=>S({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${xm.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),IN=B("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${A(n.variant)}`],n.open&&t.iconOpen]}})(oS),MN=p.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:s,inputRef:a,variant:l="standard"}=t,c=H(t,_N),d=S({},t,{disabled:o,variant:l,error:i}),f=jN(d);return u.jsxs(p.Fragment,{children:[u.jsx(ON,S({ownerState:d,className:V(f.select,r),disabled:o,ref:a||n},c)),t.multiple?null:u.jsx(IN,{as:s,ownerState:d,className:f.icon})]})});var uy;const NN=["children","classes","className","label","notched"],LN=B("fieldset",{shouldForwardProp:Mt})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),AN=B("legend",{shouldForwardProp:Mt})(({ownerState:e,theme:t})=>S({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&S({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function zN(e){const{className:t,label:n,notched:r}=e,o=H(e,NN),i=n!=null&&n!=="",s=S({},e,{notched:r,withLabel:i});return u.jsx(LN,S({"aria-hidden":!0,className:t,ownerState:s},o,{children:u.jsx(AN,{ownerState:s,children:i?u.jsx("span",{children:n}):uy||(uy=u.jsx("span",{className:"notranslate",children:"​"}))})}))}const DN=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],FN=e=>{const{classes:t}=e,r=ie({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},I3,t);return S({},t,r)},BN=B(Hu,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Wu})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return S({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ir.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ir.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Ir.focused} .${Ir.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Ir.error} .${Ir.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ir.disabled} .${Ir.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&S({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),WN=B(zN,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),UN=B(Vu,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Uu})(({theme:e,ownerState:t})=>S({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),bm=p.forwardRef(function(t,n){var r,o,i,s,a;const l=le({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:d=!1,inputComponent:f="input",label:h,multiline:b=!1,notched:y,slots:v={},type:C="text"}=l,g=H(l,DN),m=FN(l),x=dr(),w=ao({props:l,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),k=S({},l,{color:w.color||"primary",disabled:w.disabled,error:w.error,focused:w.focused,formControl:x,fullWidth:d,hiddenLabel:w.hiddenLabel,multiline:b,size:w.size,type:C}),P=(r=(o=v.root)!=null?o:c.Root)!=null?r:BN,R=(i=(s=v.input)!=null?s:c.Input)!=null?i:UN;return u.jsx(dm,S({slots:{root:P,input:R},renderSuffix:E=>u.jsx(WN,{ownerState:k,className:m.notchedOutline,label:h!=null&&h!==""&&w.required?a||(a=u.jsxs(p.Fragment,{children:[h," ","*"]})):h,notched:typeof y<"u"?y:!!(E.startAdornment||E.filled||E.focused)}),fullWidth:d,inputComponent:f,multiline:b,ref:n,type:C},g,{classes:S({},m,{notchedOutline:null})}))});bm.muiName="Input";function HN(e){return re("MuiSelect",e)}const fs=oe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var dy;const VN=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],qN=B("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${fs.select}`]:t.select},{[`&.${fs.select}`]:t[n.variant]},{[`&.${fs.error}`]:t.error},{[`&.${fs.multiple}`]:t.multiple}]}})(rS,{[`&.${fs.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),KN=B("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${A(n.variant)}`],n.open&&t.iconOpen]}})(oS),GN=B("input",{shouldForwardProp:e=>S2(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function fy(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function YN(e){return e==null||typeof e=="string"&&!e.trim()}const XN=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${A(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return ie(a,HN,t)},QN=p.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":i,autoFocus:s,autoWidth:a,children:l,className:c,defaultOpen:d,defaultValue:f,disabled:h,displayEmpty:b,error:y=!1,IconComponent:v,inputRef:C,labelId:g,MenuProps:m={},multiple:x,name:w,onBlur:k,onChange:P,onClose:R,onFocus:E,onOpen:j,open:T,readOnly:O,renderValue:M,SelectDisplayProps:I={},tabIndex:N,value:D,variant:z="standard"}=t,W=H(t,VN),[$,_]=sa({controlled:D,default:f,name:"Select"}),[F,G]=sa({controlled:T,default:d,name:"Select"}),X=p.useRef(null),ce=p.useRef(null),[Z,ue]=p.useState(null),{current:U}=p.useRef(T!=null),[ee,K]=p.useState(),Q=Ye(n,C),he=p.useCallback(ae=>{ce.current=ae,ae&&ue(ae)},[]),J=Z==null?void 0:Z.parentNode;p.useImperativeHandle(Q,()=>({focus:()=>{ce.current.focus()},node:X.current,value:$}),[$]),p.useEffect(()=>{d&&F&&Z&&!U&&(K(a?null:J.clientWidth),ce.current.focus())},[Z,a]),p.useEffect(()=>{s&&ce.current.focus()},[s]),p.useEffect(()=>{if(!g)return;const ae=ft(ce.current).getElementById(g);if(ae){const Te=()=>{getSelection().isCollapsed&&ce.current.focus()};return ae.addEventListener("click",Te),()=>{ae.removeEventListener("click",Te)}}},[g]);const fe=(ae,Te)=>{ae?j&&j(Te):R&&R(Te),U||(K(a?null:J.clientWidth),G(ae))},pe=ae=>{ae.button===0&&(ae.preventDefault(),ce.current.focus(),fe(!0,ae))},Se=ae=>{fe(!1,ae)},xe=p.Children.toArray(l),Ct=ae=>{const Te=xe.find(Y=>Y.props.value===ae.target.value);Te!==void 0&&(_(Te.props.value),P&&P(ae,Te))},Fe=ae=>Te=>{let Y;if(Te.currentTarget.hasAttribute("tabindex")){if(x){Y=Array.isArray($)?$.slice():[];const ne=$.indexOf(ae.props.value);ne===-1?Y.push(ae.props.value):Y.splice(ne,1)}else Y=ae.props.value;if(ae.props.onClick&&ae.props.onClick(Te),$!==Y&&(_(Y),P)){const ne=Te.nativeEvent||Te,Ce=new ne.constructor(ne.type,ne);Object.defineProperty(Ce,"target",{writable:!0,value:{value:Y,name:w}}),P(Ce,ae)}x||fe(!1,Te)}},ze=ae=>{O||[" ","ArrowUp","ArrowDown","Enter"].indexOf(ae.key)!==-1&&(ae.preventDefault(),fe(!0,ae))},pt=Z!==null&&F,Me=ae=>{!pt&&k&&(Object.defineProperty(ae,"target",{writable:!0,value:{value:$,name:w}}),k(ae))};delete W["aria-invalid"];let ke,ct;const He=[];let Ee=!1;(vc({value:$})||b)&&(M?ke=M($):Ee=!0);const ht=xe.map(ae=>{if(!p.isValidElement(ae))return null;let Te;if(x){if(!Array.isArray($))throw new Error(jo(2));Te=$.some(Y=>fy(Y,ae.props.value)),Te&&Ee&&He.push(ae.props.children)}else Te=fy($,ae.props.value),Te&&Ee&&(ct=ae.props.children);return p.cloneElement(ae,{"aria-selected":Te?"true":"false",onClick:Fe(ae),onKeyUp:Y=>{Y.key===" "&&Y.preventDefault(),ae.props.onKeyUp&&ae.props.onKeyUp(Y)},role:"option",selected:Te,value:void 0,"data-value":ae.props.value})});Ee&&(x?He.length===0?ke=null:ke=He.reduce((ae,Te,Y)=>(ae.push(Te),Y{const{classes:t}=e;return t},Sm={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Mt(e)&&e!=="variant",slot:"Root"},t6=B(ym,Sm)(""),n6=B(bm,Sm)(""),r6=B(gm,Sm)(""),Oa=p.forwardRef(function(t,n){const r=le({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:s={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:d=N3,id:f,input:h,inputProps:b,label:y,labelId:v,MenuProps:C,multiple:g=!1,native:m=!1,onClose:x,onOpen:w,open:k,renderValue:P,SelectDisplayProps:R,variant:E="outlined"}=r,j=H(r,JN),T=m?MN:QN,O=dr(),M=ao({props:r,muiFormControl:O,states:["variant","error"]}),I=M.variant||E,N=S({},r,{variant:I,classes:s}),D=e6(N),z=H(D,ZN),W=h||{standard:u.jsx(t6,{ownerState:N}),outlined:u.jsx(n6,{label:y,ownerState:N}),filled:u.jsx(r6,{ownerState:N})}[I],$=Ye(n,W.ref);return u.jsx(p.Fragment,{children:p.cloneElement(W,S({inputComponent:T,inputProps:S({children:i,error:M.error,IconComponent:d,variant:I,type:void 0,multiple:g},m?{id:f}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:v,MenuProps:C,onClose:x,onOpen:w,open:k,renderValue:P,SelectDisplayProps:S({id:f},R)},b,{classes:b?Ft(z,b.classes):z},h?h.props.inputProps:{})},(g&&m||c)&&I==="outlined"?{notched:!0}:{},{ref:$,className:V(W.props.className,a,D.root)},!h&&{variant:I},j))})});Oa.muiName="Select";function o6(e){return re("MuiSnackbarContent",e)}oe("MuiSnackbarContent",["root","message","action"]);const i6=["action","className","message","role"],s6=e=>{const{classes:t}=e;return ie({root:["root"],action:["action"],message:["message"]},o6,t)},a6=B(gn,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=l5(e.palette.background.default,t);return S({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),l6=B("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),c6=B("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),u6=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiSnackbarContent"}),{action:o,className:i,message:s,role:a="alert"}=r,l=H(r,i6),c=r,d=s6(c);return u.jsxs(a6,S({role:a,square:!0,elevation:6,className:V(d.root,i),ownerState:c,ref:n},l,{children:[u.jsx(l6,{className:d.message,ownerState:c,children:s}),o?u.jsx(c6,{className:d.action,ownerState:c,children:o}):null]}))});function d6(e){return re("MuiSnackbar",e)}oe("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const f6=["onEnter","onExited"],p6=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],h6=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${A(n.vertical)}${A(n.horizontal)}`]};return ie(r,d6,t)},py=B("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${A(n.anchorOrigin.vertical)}${A(n.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const n={left:"50%",right:"auto",transform:"translateX(-50%)"};return S({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:S({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&n,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),lo=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiSnackbar"}),o=io(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:a,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:d,className:f,ClickAwayListenerProps:h,ContentProps:b,disableWindowBlurListener:y=!1,message:v,open:C,TransitionComponent:g=ua,transitionDuration:m=i,TransitionProps:{onEnter:x,onExited:w}={}}=r,k=H(r.TransitionProps,f6),P=H(r,p6),R=S({},r,{anchorOrigin:{vertical:a,horizontal:l},autoHideDuration:c,disableWindowBlurListener:y,TransitionComponent:g,transitionDuration:m}),E=h6(R),{getRootProps:j,onClickAway:T}=a3(S({},R)),[O,M]=p.useState(!0),I=en({elementType:py,getSlotProps:j,externalForwardedProps:P,ownerState:R,additionalProps:{ref:n},className:[E.root,f]}),N=z=>{M(!0),w&&w(z)},D=(z,W)=>{M(!1),x&&x(z,W)};return!C&&O?null:u.jsx($_,S({onClickAway:T},h,{children:u.jsx(py,S({},I,{children:u.jsx(g,S({appear:!0,in:C,timeout:m,direction:a==="top"?"down":"up",onEnter:D,onExited:N},k,{children:d||u.jsx(u6,S({message:v,action:s},b))}))}))}))});function m6(e){return re("MuiTooltip",e)}const Ur=oe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),g6=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function v6(e){return Math.round(e*1e5)/1e5}const y6=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${A(i.split("-")[0])}`],arrow:["arrow"]};return ie(s,m6,t)},x6=B(B2,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>S({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Ur.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Ur.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Ur.arrow}`]:S({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Ur.arrow}`]:S({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),b6=B("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${A(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>S({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:je(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${v6(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Ur.popper}[data-popper-placement*="left"] &`]:S({transformOrigin:"right center"},t.isRtl?S({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):S({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Ur.popper}[data-popper-placement*="right"] &`]:S({transformOrigin:"left center"},t.isRtl?S({marginRight:"14px"},t.touch&&{marginRight:"24px"}):S({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Ur.popper}[data-popper-placement*="top"] &`]:S({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Ur.popper}[data-popper-placement*="bottom"] &`]:S({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),S6=B("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:je(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let il=!1;const hy=new Ra;let ps={x:0,y:0};function sl(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Hn=p.forwardRef(function(t,n){var r,o,i,s,a,l,c,d,f,h,b,y,v,C,g,m,x,w,k;const P=le({props:t,name:"MuiTooltip"}),{arrow:R=!1,children:E,components:j={},componentsProps:T={},describeChild:O=!1,disableFocusListener:M=!1,disableHoverListener:I=!1,disableInteractive:N=!1,disableTouchListener:D=!1,enterDelay:z=100,enterNextDelay:W=0,enterTouchDelay:$=700,followCursor:_=!1,id:F,leaveDelay:G=0,leaveTouchDelay:X=1500,onClose:ce,onOpen:Z,open:ue,placement:U="bottom",PopperComponent:ee,PopperProps:K={},slotProps:Q={},slots:he={},title:J,TransitionComponent:fe=ua,TransitionProps:pe}=P,Se=H(P,g6),xe=p.isValidElement(E)?E:u.jsx("span",{children:E}),Ct=io(),Fe=Pa(),[ze,pt]=p.useState(),[Me,ke]=p.useState(null),ct=p.useRef(!1),He=N||_,Ee=xo(),ht=xo(),yt=xo(),wt=xo(),[Re,se]=sa({controlled:ue,default:!1,name:"Tooltip",state:"open"});let tt=Re;const Ut=ka(F),tn=p.useRef(),ae=zt(()=>{tn.current!==void 0&&(document.body.style.WebkitUserSelect=tn.current,tn.current=void 0),wt.clear()});p.useEffect(()=>ae,[ae]);const Te=we=>{hy.clear(),il=!0,se(!0),Z&&!tt&&Z(we)},Y=zt(we=>{hy.start(800+G,()=>{il=!1}),se(!1),ce&&tt&&ce(we),Ee.start(Ct.transitions.duration.shortest,()=>{ct.current=!1})}),ne=we=>{ct.current&&we.type!=="touchstart"||(ze&&ze.removeAttribute("title"),ht.clear(),yt.clear(),z||il&&W?ht.start(il?W:z,()=>{Te(we)}):Te(we))},Ce=we=>{ht.clear(),yt.start(G,()=>{Y(we)})},{isFocusVisibleRef:Pe,onBlur:nt,onFocus:kt,ref:vn}=Kh(),[,_r]=p.useState(!1),An=we=>{nt(we),Pe.current===!1&&(_r(!1),Ce(we))},zo=we=>{ze||pt(we.currentTarget),kt(we),Pe.current===!0&&(_r(!0),ne(we))},gg=we=>{ct.current=!0;const nn=xe.props;nn.onTouchStart&&nn.onTouchStart(we)},zS=we=>{gg(we),yt.clear(),Ee.clear(),ae(),tn.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",wt.start($,()=>{document.body.style.WebkitUserSelect=tn.current,ne(we)})},DS=we=>{xe.props.onTouchEnd&&xe.props.onTouchEnd(we),ae(),yt.start(X,()=>{Y(we)})};p.useEffect(()=>{if(!tt)return;function we(nn){(nn.key==="Escape"||nn.key==="Esc")&&Y(nn)}return document.addEventListener("keydown",we),()=>{document.removeEventListener("keydown",we)}},[Y,tt]);const FS=Ye(xe.ref,vn,pt,n);!J&&J!==0&&(tt=!1);const Qu=p.useRef(),BS=we=>{const nn=xe.props;nn.onMouseMove&&nn.onMouseMove(we),ps={x:we.clientX,y:we.clientY},Qu.current&&Qu.current.update()},Gi={},Ju=typeof J=="string";O?(Gi.title=!tt&&Ju&&!I?J:null,Gi["aria-describedby"]=tt?Ut:null):(Gi["aria-label"]=Ju?J:null,Gi["aria-labelledby"]=tt&&!Ju?Ut:null);const zn=S({},Gi,Se,xe.props,{className:V(Se.className,xe.props.className),onTouchStart:gg,ref:FS},_?{onMouseMove:BS}:{}),Yi={};D||(zn.onTouchStart=zS,zn.onTouchEnd=DS),I||(zn.onMouseOver=sl(ne,zn.onMouseOver),zn.onMouseLeave=sl(Ce,zn.onMouseLeave),He||(Yi.onMouseOver=ne,Yi.onMouseLeave=Ce)),M||(zn.onFocus=sl(zo,zn.onFocus),zn.onBlur=sl(An,zn.onBlur),He||(Yi.onFocus=zo,Yi.onBlur=An));const WS=p.useMemo(()=>{var we;let nn=[{name:"arrow",enabled:!!Me,options:{element:Me,padding:4}}];return(we=K.popperOptions)!=null&&we.modifiers&&(nn=nn.concat(K.popperOptions.modifiers)),S({},K.popperOptions,{modifiers:nn})},[Me,K]),Xi=S({},P,{isRtl:Fe,arrow:R,disableInteractive:He,placement:U,PopperComponentProp:ee,touch:ct.current}),Zu=y6(Xi),vg=(r=(o=he.popper)!=null?o:j.Popper)!=null?r:x6,yg=(i=(s=(a=he.transition)!=null?a:j.Transition)!=null?s:fe)!=null?i:ua,xg=(l=(c=he.tooltip)!=null?c:j.Tooltip)!=null?l:b6,bg=(d=(f=he.arrow)!=null?f:j.Arrow)!=null?d:S6,US=ai(vg,S({},K,(h=Q.popper)!=null?h:T.popper,{className:V(Zu.popper,K==null?void 0:K.className,(b=(y=Q.popper)!=null?y:T.popper)==null?void 0:b.className)}),Xi),HS=ai(yg,S({},pe,(v=Q.transition)!=null?v:T.transition),Xi),VS=ai(xg,S({},(C=Q.tooltip)!=null?C:T.tooltip,{className:V(Zu.tooltip,(g=(m=Q.tooltip)!=null?m:T.tooltip)==null?void 0:g.className)}),Xi),qS=ai(bg,S({},(x=Q.arrow)!=null?x:T.arrow,{className:V(Zu.arrow,(w=(k=Q.arrow)!=null?k:T.arrow)==null?void 0:w.className)}),Xi);return u.jsxs(p.Fragment,{children:[p.cloneElement(xe,zn),u.jsx(vg,S({as:ee??B2,placement:U,anchorEl:_?{getBoundingClientRect:()=>({top:ps.y,left:ps.x,right:ps.x,bottom:ps.y,width:0,height:0})}:ze,popperRef:Qu,open:ze?tt:!1,id:Ut,transition:!0},Yi,US,{popperOptions:WS,children:({TransitionProps:we})=>u.jsx(yg,S({timeout:Ct.transitions.duration.shorter},we,HS,{children:u.jsxs(xg,S({},VS,{children:[J,R?u.jsx(bg,S({},qS,{ref:ke})):null]}))}))}))]})});function C6(e){return re("MuiSwitch",e)}const Lt=oe("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),w6=["className","color","edge","size","sx"],k6=zu(),R6=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:s}=e,a={root:["root",n&&`edge${A(n)}`,`size${A(r)}`],switchBase:["switchBase",`color${A(o)}`,i&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=ie(a,C6,t);return S({},t,l)},P6=B("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${A(n.edge)}`],t[`size${A(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Lt.thumb}`]:{width:16,height:16},[`& .${Lt.switchBase}`]:{padding:4,[`&.${Lt.checked}`]:{transform:"translateX(16px)"}}}}]}),E6=B(q2,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Lt.input}`]:t.input},n.color!=="default"&&t[`color${A(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Lt.checked}`]:{transform:"translateX(20px)"},[`&.${Lt.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Lt.checked} + .${Lt.track}`]:{opacity:.5},[`&.${Lt.disabled} + .${Lt.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Lt.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:je(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${Lt.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:je(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Lt.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?fc(e.palette[t].main,.62):dc(e.palette[t].main,.55)}`}},[`&.${Lt.checked} + .${Lt.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),$6=B("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),T6=B("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),_6=p.forwardRef(function(t,n){const r=k6({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:s=!1,size:a="medium",sx:l}=r,c=H(r,w6),d=S({},r,{color:i,edge:s,size:a}),f=R6(d),h=u.jsx(T6,{className:f.thumb,ownerState:d});return u.jsxs(P6,{className:V(f.root,o),sx:l,ownerState:d,children:[u.jsx(E6,S({type:"checkbox",icon:h,checkedIcon:h,ref:n,ownerState:d},c,{classes:S({},f,{root:f.switchBase})})),u.jsx($6,{className:f.track,ownerState:d})]})});function j6(e){return re("MuiTab",e)}const uo=oe("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),O6=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],I6=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:s,selected:a,disabled:l}=e,c={root:["root",i&&s&&"labelIcon",`textColor${A(n)}`,r&&"fullWidth",o&&"wrapped",a&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return ie(c,j6,t)},M6=B(kr,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${A(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>S({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${uo.iconWrapper}`]:S({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${uo.selected}`]:{opacity:1},[`&.${uo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${uo.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${uo.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${uo.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${uo.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),jl=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:s=!1,fullWidth:a,icon:l,iconPosition:c="top",indicator:d,label:f,onChange:h,onClick:b,onFocus:y,selected:v,selectionFollowsFocus:C,textColor:g="inherit",value:m,wrapped:x=!1}=r,w=H(r,O6),k=S({},r,{disabled:i,disableFocusRipple:s,selected:v,icon:!!l,iconPosition:c,label:!!f,fullWidth:a,textColor:g,wrapped:x}),P=I6(k),R=l&&f&&p.isValidElement(l)?p.cloneElement(l,{className:V(P.iconWrapper,l.props.className)}):l,E=T=>{!v&&h&&h(T,m),b&&b(T)},j=T=>{C&&!v&&h&&h(T,m),y&&y(T)};return u.jsxs(M6,S({focusRipple:!s,className:V(P.root,o),ref:n,role:"tab","aria-selected":v,disabled:i,onClick:E,onFocus:j,ownerState:k,tabIndex:v?0:-1},w,{children:[c==="top"||c==="start"?u.jsxs(p.Fragment,{children:[R,f]}):u.jsxs(p.Fragment,{children:[f,R]}),d]}))});function N6(e){return re("MuiToolbar",e)}oe("MuiToolbar",["root","gutters","regular","dense"]);const L6=["className","component","disableGutters","variant"],A6=e=>{const{classes:t,disableGutters:n,variant:r}=e;return ie({root:["root",!n&&"gutters",r]},N6,t)},z6=B("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>S({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),D6=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:s=!1,variant:a="regular"}=r,l=H(r,L6),c=S({},r,{component:i,disableGutters:s,variant:a}),d=A6(c);return u.jsx(z6,S({as:i,className:V(d.root,o),ref:n,ownerState:c},l))}),F6=Nt(u.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),B6=Nt(u.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function W6(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function U6(e,t,n,r={},o=()=>{}){const{ease:i=W6,duration:s=300}=r;let a=null;const l=t[e];let c=!1;const d=()=>{c=!0},f=h=>{if(c){o(new Error("Animation cancelled"));return}a===null&&(a=h);const b=Math.min(1,(h-a)/s);if(t[e]=i(b)*(n-l)+l,b>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(f)};return l===n?(o(new Error("Element already at target position")),d):(requestAnimationFrame(f),d)}const H6=["onChange"],V6={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function q6(e){const{onChange:t}=e,n=H(e,H6),r=p.useRef(),o=p.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return dn(()=>{const s=Hi(()=>{const l=r.current;i(),l!==r.current&&t(r.current)}),a=_n(o.current);return a.addEventListener("resize",s),()=>{s.clear(),a.removeEventListener("resize",s)}},[t]),p.useEffect(()=>{i(),t(r.current)},[t]),u.jsx("div",S({style:V6,ref:o},n))}function K6(e){return re("MuiTabScrollButton",e)}const G6=oe("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Y6=["className","slots","slotProps","direction","orientation","disabled"],X6=e=>{const{classes:t,orientation:n,disabled:r}=e;return ie({root:["root",n,r&&"disabled"]},K6,t)},Q6=B(kr,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>S({width:40,flexShrink:0,opacity:.8,[`&.${G6.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),J6=p.forwardRef(function(t,n){var r,o;const i=le({props:t,name:"MuiTabScrollButton"}),{className:s,slots:a={},slotProps:l={},direction:c}=i,d=H(i,Y6),f=Pa(),h=S({isRtl:f},i),b=X6(h),y=(r=a.StartScrollButtonIcon)!=null?r:F6,v=(o=a.EndScrollButtonIcon)!=null?o:B6,C=en({elementType:y,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),g=en({elementType:v,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return u.jsx(Q6,S({component:"div",className:V(b.root,s),ref:n,role:null,ownerState:h,tabIndex:null},d,{children:c==="left"?u.jsx(y,S({},C)):u.jsx(v,S({},g))}))});function Z6(e){return re("MuiTabs",e)}const Kd=oe("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),eL=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],my=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,gy=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,al=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const i=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||i)o=n(e,o);else{o.focus();return}}},tL=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:s,scrollButtonsHideMobile:a,classes:l}=e;return ie({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},Z6,l)},nL=B("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Kd.scrollButtons}`]:t.scrollButtons},{[`& .${Kd.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>S({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Kd.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),rL=B("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>S({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),oL=B("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>S({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),iL=B("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>S({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),sL=B(q6)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),vy={},iS=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiTabs"}),o=io(),i=Pa(),{"aria-label":s,"aria-labelledby":a,action:l,centered:c=!1,children:d,className:f,component:h="div",allowScrollButtonsMobile:b=!1,indicatorColor:y="primary",onChange:v,orientation:C="horizontal",ScrollButtonComponent:g=J6,scrollButtons:m="auto",selectionFollowsFocus:x,slots:w={},slotProps:k={},TabIndicatorProps:P={},TabScrollButtonProps:R={},textColor:E="primary",value:j,variant:T="standard",visibleScrollbar:O=!1}=r,M=H(r,eL),I=T==="scrollable",N=C==="vertical",D=N?"scrollTop":"scrollLeft",z=N?"top":"left",W=N?"bottom":"right",$=N?"clientHeight":"clientWidth",_=N?"height":"width",F=S({},r,{component:h,allowScrollButtonsMobile:b,indicatorColor:y,orientation:C,vertical:N,scrollButtons:m,textColor:E,variant:T,visibleScrollbar:O,fixed:!I,hideScrollbar:I&&!O,scrollableX:I&&!N,scrollableY:I&&N,centered:c&&!I,scrollButtonsHideMobile:!b}),G=tL(F),X=en({elementType:w.StartScrollButtonIcon,externalSlotProps:k.startScrollButtonIcon,ownerState:F}),ce=en({elementType:w.EndScrollButtonIcon,externalSlotProps:k.endScrollButtonIcon,ownerState:F}),[Z,ue]=p.useState(!1),[U,ee]=p.useState(vy),[K,Q]=p.useState(!1),[he,J]=p.useState(!1),[fe,pe]=p.useState(!1),[Se,xe]=p.useState({overflow:"hidden",scrollbarWidth:0}),Ct=new Map,Fe=p.useRef(null),ze=p.useRef(null),pt=()=>{const Y=Fe.current;let ne;if(Y){const Pe=Y.getBoundingClientRect();ne={clientWidth:Y.clientWidth,scrollLeft:Y.scrollLeft,scrollTop:Y.scrollTop,scrollLeftNormalized:A4(Y,i?"rtl":"ltr"),scrollWidth:Y.scrollWidth,top:Pe.top,bottom:Pe.bottom,left:Pe.left,right:Pe.right}}let Ce;if(Y&&j!==!1){const Pe=ze.current.children;if(Pe.length>0){const nt=Pe[Ct.get(j)];Ce=nt?nt.getBoundingClientRect():null}}return{tabsMeta:ne,tabMeta:Ce}},Me=zt(()=>{const{tabsMeta:Y,tabMeta:ne}=pt();let Ce=0,Pe;if(N)Pe="top",ne&&Y&&(Ce=ne.top-Y.top+Y.scrollTop);else if(Pe=i?"right":"left",ne&&Y){const kt=i?Y.scrollLeftNormalized+Y.clientWidth-Y.scrollWidth:Y.scrollLeft;Ce=(i?-1:1)*(ne[Pe]-Y[Pe]+kt)}const nt={[Pe]:Ce,[_]:ne?ne[_]:0};if(isNaN(U[Pe])||isNaN(U[_]))ee(nt);else{const kt=Math.abs(U[Pe]-nt[Pe]),vn=Math.abs(U[_]-nt[_]);(kt>=1||vn>=1)&&ee(nt)}}),ke=(Y,{animation:ne=!0}={})=>{ne?U6(D,Fe.current,Y,{duration:o.transitions.duration.standard}):Fe.current[D]=Y},ct=Y=>{let ne=Fe.current[D];N?ne+=Y:(ne+=Y*(i?-1:1),ne*=i&&a2()==="reverse"?-1:1),ke(ne)},He=()=>{const Y=Fe.current[$];let ne=0;const Ce=Array.from(ze.current.children);for(let Pe=0;PeY){Pe===0&&(ne=Y);break}ne+=nt[$]}return ne},Ee=()=>{ct(-1*He())},ht=()=>{ct(He())},yt=p.useCallback(Y=>{xe({overflow:null,scrollbarWidth:Y})},[]),wt=()=>{const Y={};Y.scrollbarSizeListener=I?u.jsx(sL,{onChange:yt,className:V(G.scrollableX,G.hideScrollbar)}):null;const Ce=I&&(m==="auto"&&(K||he)||m===!0);return Y.scrollButtonStart=Ce?u.jsx(g,S({slots:{StartScrollButtonIcon:w.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:X},orientation:C,direction:i?"right":"left",onClick:Ee,disabled:!K},R,{className:V(G.scrollButtons,R.className)})):null,Y.scrollButtonEnd=Ce?u.jsx(g,S({slots:{EndScrollButtonIcon:w.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:ce},orientation:C,direction:i?"left":"right",onClick:ht,disabled:!he},R,{className:V(G.scrollButtons,R.className)})):null,Y},Re=zt(Y=>{const{tabsMeta:ne,tabMeta:Ce}=pt();if(!(!Ce||!ne)){if(Ce[z]ne[W]){const Pe=ne[D]+(Ce[W]-ne[W]);ke(Pe,{animation:Y})}}}),se=zt(()=>{I&&m!==!1&&pe(!fe)});p.useEffect(()=>{const Y=Hi(()=>{Fe.current&&Me()});let ne;const Ce=kt=>{kt.forEach(vn=>{vn.removedNodes.forEach(_r=>{var An;(An=ne)==null||An.unobserve(_r)}),vn.addedNodes.forEach(_r=>{var An;(An=ne)==null||An.observe(_r)})}),Y(),se()},Pe=_n(Fe.current);Pe.addEventListener("resize",Y);let nt;return typeof ResizeObserver<"u"&&(ne=new ResizeObserver(Y),Array.from(ze.current.children).forEach(kt=>{ne.observe(kt)})),typeof MutationObserver<"u"&&(nt=new MutationObserver(Ce),nt.observe(ze.current,{childList:!0})),()=>{var kt,vn;Y.clear(),Pe.removeEventListener("resize",Y),(kt=nt)==null||kt.disconnect(),(vn=ne)==null||vn.disconnect()}},[Me,se]),p.useEffect(()=>{const Y=Array.from(ze.current.children),ne=Y.length;if(typeof IntersectionObserver<"u"&&ne>0&&I&&m!==!1){const Ce=Y[0],Pe=Y[ne-1],nt={root:Fe.current,threshold:.99},kt=zo=>{Q(!zo[0].isIntersecting)},vn=new IntersectionObserver(kt,nt);vn.observe(Ce);const _r=zo=>{J(!zo[0].isIntersecting)},An=new IntersectionObserver(_r,nt);return An.observe(Pe),()=>{vn.disconnect(),An.disconnect()}}},[I,m,fe,d==null?void 0:d.length]),p.useEffect(()=>{ue(!0)},[]),p.useEffect(()=>{Me()}),p.useEffect(()=>{Re(vy!==U)},[Re,U]),p.useImperativeHandle(l,()=>({updateIndicator:Me,updateScrollButtons:se}),[Me,se]);const tt=u.jsx(iL,S({},P,{className:V(G.indicator,P.className),ownerState:F,style:S({},U,P.style)}));let Ut=0;const tn=p.Children.map(d,Y=>{if(!p.isValidElement(Y))return null;const ne=Y.props.value===void 0?Ut:Y.props.value;Ct.set(ne,Ut);const Ce=ne===j;return Ut+=1,p.cloneElement(Y,S({fullWidth:T==="fullWidth",indicator:Ce&&!Z&&tt,selected:Ce,selectionFollowsFocus:x,onChange:v,textColor:E,value:ne},Ut===1&&j===!1&&!Y.props.tabIndex?{tabIndex:0}:{}))}),ae=Y=>{const ne=ze.current,Ce=ft(ne).activeElement;if(Ce.getAttribute("role")!=="tab")return;let nt=C==="horizontal"?"ArrowLeft":"ArrowUp",kt=C==="horizontal"?"ArrowRight":"ArrowDown";switch(C==="horizontal"&&i&&(nt="ArrowRight",kt="ArrowLeft"),Y.key){case nt:Y.preventDefault(),al(ne,Ce,gy);break;case kt:Y.preventDefault(),al(ne,Ce,my);break;case"Home":Y.preventDefault(),al(ne,null,my);break;case"End":Y.preventDefault(),al(ne,null,gy);break}},Te=wt();return u.jsxs(nL,S({className:V(G.root,f),ownerState:F,ref:n,as:h},M,{children:[Te.scrollButtonStart,Te.scrollbarSizeListener,u.jsxs(rL,{className:G.scroller,ownerState:F,style:{overflow:Se.overflow,[N?`margin${i?"Left":"Right"}`:"marginBottom"]:O?void 0:-Se.scrollbarWidth},ref:Fe,children:[u.jsx(oL,{"aria-label":s,"aria-labelledby":a,"aria-orientation":C==="vertical"?"vertical":null,className:G.flexContainer,ownerState:F,onKeyDown:ae,ref:ze,role:"tablist",children:tn}),Z&&tt]}),Te.scrollButtonEnd]}))});function aL(e){return re("MuiTextField",e)}oe("MuiTextField",["root"]);const lL=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],cL={standard:ym,filled:gm,outlined:bm},uL=e=>{const{classes:t}=e;return ie({root:["root"]},aL,t)},dL=B(Gu,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),qe=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:s,className:a,color:l="primary",defaultValue:c,disabled:d=!1,error:f=!1,FormHelperTextProps:h,fullWidth:b=!1,helperText:y,id:v,InputLabelProps:C,inputProps:g,InputProps:m,inputRef:x,label:w,maxRows:k,minRows:P,multiline:R=!1,name:E,onBlur:j,onChange:T,onFocus:O,placeholder:M,required:I=!1,rows:N,select:D=!1,SelectProps:z,type:W,value:$,variant:_="outlined"}=r,F=H(r,lL),G=S({},r,{autoFocus:i,color:l,disabled:d,error:f,fullWidth:b,multiline:R,required:I,select:D,variant:_}),X=uL(G),ce={};_==="outlined"&&(C&&typeof C.shrink<"u"&&(ce.notched=C.shrink),ce.label=w),D&&((!z||!z.native)&&(ce.id=void 0),ce["aria-describedby"]=void 0);const Z=ka(v),ue=y&&Z?`${Z}-helper-text`:void 0,U=w&&Z?`${Z}-label`:void 0,ee=cL[_],K=u.jsx(ee,S({"aria-describedby":ue,autoComplete:o,autoFocus:i,defaultValue:c,fullWidth:b,multiline:R,name:E,rows:N,maxRows:k,minRows:P,type:W,value:$,id:Z,inputRef:x,onBlur:j,onChange:T,onFocus:O,placeholder:M,inputProps:g},ce,m));return u.jsxs(dL,S({className:V(X.root,a),disabled:d,error:f,fullWidth:b,ref:n,required:I,color:l,variant:_,ownerState:G},F,{children:[w!=null&&w!==""&&u.jsx(Yu,S({htmlFor:Z,id:U},C,{children:w})),D?u.jsx(Oa,S({"aria-describedby":ue,id:Z,labelId:U,value:$,input:K},z,{children:s})):K,y&&u.jsx(cM,S({id:ue},h,{children:y}))]}))});var Cm={},Gd={};const fL=Pr(hT);var yy;function ge(){return yy||(yy=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=fL}(Gd)),Gd}var pL=de;Object.defineProperty(Cm,"__esModule",{value:!0});var Ki=Cm.default=void 0,hL=pL(ge()),mL=u;Ki=Cm.default=(0,hL.default)((0,mL.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");var wm={},gL=de;Object.defineProperty(wm,"__esModule",{value:!0});var km=wm.default=void 0,vL=gL(ge()),yL=u;km=wm.default=(0,vL.default)((0,yL.jsx)("path",{d:"M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3m5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72z"}),"Mic");var Rm={},xL=de;Object.defineProperty(Rm,"__esModule",{value:!0});var Pm=Rm.default=void 0,bL=xL(ge()),SL=u;Pm=Rm.default=(0,bL.default)((0,SL.jsx)("path",{d:"M19 11h-1.7c0 .74-.16 1.43-.43 2.05l1.23 1.23c.56-.98.9-2.09.9-3.28m-4.02.17c0-.06.02-.11.02-.17V5c0-1.66-1.34-3-3-3S9 3.34 9 5v.18zM4.27 3 3 4.27l6.01 6.01V11c0 1.66 1.33 3 2.99 3 .22 0 .44-.03.65-.08l1.66 1.66c-.71.33-1.5.52-2.31.52-2.76 0-5.3-2.1-5.3-5.1H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c.91-.13 1.77-.45 2.54-.9L19.73 21 21 19.73z"}),"MicOff");var Em={},CL=de;Object.defineProperty(Em,"__esModule",{value:!0});var Xu=Em.default=void 0,wL=CL(ge()),kL=u;Xu=Em.default=(0,wL.default)((0,kL.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"Person");var $m={},RL=de;Object.defineProperty($m,"__esModule",{value:!0});var Sc=$m.default=void 0,PL=RL(ge()),EL=u;Sc=$m.default=(0,PL.default)((0,EL.jsx)("path",{d:"M3 9v6h4l5 5V4L7 9zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02M14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77"}),"VolumeUp");var Tm={},$L=de;Object.defineProperty(Tm,"__esModule",{value:!0});var Cc=Tm.default=void 0,TL=$L(ge()),_L=u;Cc=Tm.default=(0,TL.default)((0,_L.jsx)("path",{d:"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63m2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71M4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9zM12 4 9.91 6.09 12 8.18z"}),"VolumeOff");var _m={},jL=de;Object.defineProperty(_m,"__esModule",{value:!0});var jm=_m.default=void 0,OL=jL(ge()),IL=u;jm=_m.default=(0,OL.default)((0,IL.jsx)("path",{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-1 9h-4v4h-2v-4H9V9h4V5h2v4h4z"}),"LibraryAdd");const gi="/assets/Aria-BMTE8U_Y.jpg",ML=()=>u.jsxs(Ke,{sx:{display:"flex",alignItems:"center",color:"text.secondary"},children:[u.jsx(yr,{src:gi,sx:{width:24,height:24,marginRight:1},alt:"Aria"}),u.jsxs("div",{style:{display:"flex"},children:[u.jsx("div",{style:{animation:"blink 1.4s infinite",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),u.jsx("div",{style:{animation:"blink 1.4s infinite 0.2s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),u.jsx("div",{style:{animation:"blink 1.4s infinite 0.4s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor"}})]})]}),NL=()=>{const{user:e,voiceEnabled:t,setVoiceEnabled:n}=p.useContext(lr),r=e==null?void 0:e.userId,[o,i]=p.useState(null),[s,a]=p.useState(0),[l,c]=p.useState(""),[d,f]=p.useState([]),[h,b]=p.useState(!1),[y,v]=p.useState(null),C=p.useRef([]),[g,m]=p.useState(!1),[x,w]=p.useState(""),[k,P]=p.useState(!1),[R,E]=p.useState(!1),[j,T]=p.useState(""),[O,M]=p.useState("info"),[I,N]=p.useState(null),D=U=>{U.preventDefault(),n(!t)},z=U=>{if(!t||U===I){N(null),window.speechSynthesis.cancel();return}const ee=window.speechSynthesis,K=new SpeechSynthesisUtterance(U),Q=()=>{const he=ee.getVoices();console.log(he.map(fe=>`${fe.name} - ${fe.lang} - ${fe.gender}`));const J=he.find(fe=>fe.name.includes("Microsoft Zira - English (United States)"));J?K.voice=J:console.log("No female voice found"),K.onend=()=>{N(null)},N(U),ee.speak(K)};ee.getVoices().length===0?ee.onvoiceschanged=Q:Q()},W=p.useCallback(async()=>{if(r){m(!0),P(!0);try{const U=await fetch(`/api/ai/mental_health/welcome/${r}`,{method:"POST",headers:{"Content-Type":"application/json"}}),ee=await U.json();console.log(ee),U.ok?(w(ee.message),t&&ee.message&&z(ee.message),i(ee.chat_id),console.log(ee.chat_id)):(console.error("Failed to fetch welcome message:",ee),w("Error fetching welcome message."))}catch(U){console.error("Network or server error:",U)}finally{m(!1),P(!1)}}},[r]);p.useEffect(()=>{W()},[]);const $=(U,ee)=>{ee!=="clickaway"&&E(!1)},_=p.useCallback(async()=>{if(o!==null){m(!0);try{const U=await fetch(`/api/ai/mental_health/finalize/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"}}),ee=await U.json();U.ok?(T("Chat finalized successfully"),M("success"),i(null),a(0),f([]),W()):(T("Failed to finalize chat"),M("error"))}catch{T("Error finalizing chat"),M("error")}finally{m(!1),E(!0)}}},[r,o,W]),F=p.useCallback(async()=>{if(!(!l.trim()||o===void 0)){console.log(o),m(!0);try{const U=JSON.stringify({prompt:l,turn_id:s}),ee=await fetch(`/api/ai/mental_health/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"},body:U}),K=await ee.json();console.log(K),ee.ok?(f(Q=>[...Q,{message:l,sender:"user"},{message:K,sender:"agent"}]),t&&K&&z(K),a(Q=>Q+1),c("")):(console.error("Failed to send message:",K.error||"Unknown error occurred"),T(K.error||"An error occurred while sending the message."),M("error"),E(!0))}catch(U){console.error("Failed to send message:",U),T("Network or server error occurred."),M("error"),E(!0)}finally{m(!1)}}},[l,r,o,s]),G=()=>{navigator.mediaDevices.getUserMedia({audio:!0}).then(U=>{C.current=[];const ee={mimeType:"audio/webm"},K=new MediaRecorder(U,ee);K.ondataavailable=Q=>{console.log("Data available:",Q.data.size),C.current.push(Q.data)},K.start(),v(K),b(!0)}).catch(console.error)},X=()=>{y&&(y.onstop=()=>{ce(C.current),b(!1),v(null)},y.stop())},ce=U=>{console.log("Audio chunks size:",U.reduce((Q,he)=>Q+he.size,0));const ee=new Blob(U,{type:"audio/webm"});if(ee.size===0){console.error("Audio Blob is empty");return}console.log(`Sending audio blob of size: ${ee.size} bytes`);const K=new FormData;K.append("audio",ee),m(!0),ye.post("/api/ai/mental_health/voice-to-text",K,{headers:{"Content-Type":"multipart/form-data"}}).then(Q=>{const{message:he}=Q.data;c(he),F()}).catch(Q=>{console.error("Error uploading audio:",Q),E(!0),T("Error processing voice input: "+Q.message),M("error")}).finally(()=>{m(!1)})},Z=p.useCallback(U=>{const ee=U.target.value;ee.split(/\s+/).length>200?(c(Q=>Q.split(/\s+/).slice(0,200).join(" ")),T("Word limit reached. Only 200 words allowed."),M("warning"),E(!0)):c(ee)},[]),ue=U=>U===I?u.jsx(Cc,{}):u.jsx(Sc,{});return u.jsxs(u.Fragment,{children:[u.jsx("style",{children:` + @keyframes blink { + 0%, 100% { opacity: 0; } + 50% { opacity: 1; } + } + @media (max-width: 720px) { + .new-chat-button { + + top: 5px; + right: 5px; + padding: 4px 8px; /* Smaller padding */ + font-size: 0.8rem; /* Smaller font size */ + } + } + `}),u.jsxs(Ke,{sx:{maxWidth:"100%",mx:"auto",my:2,display:"flex",flexDirection:"column",height:"91vh",borderRadius:2,boxShadow:1},children:[u.jsxs(qu,{sx:{display:"flex",flexDirection:"column",height:"100%",borderRadius:2,boxShadow:3},children:[u.jsxs(fm,{sx:{flexGrow:1,overflow:"auto",padding:3,position:"relative"},children:[u.jsxs(Ke,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",position:"relative",marginBottom:"5px"},children:[u.jsx(Hn,{title:"Toggle voice responses",children:u.jsx(Qe,{color:"inherit",onClick:D,sx:{padding:0},children:u.jsx(_6,{checked:t,onChange:U=>n(U.target.checked),icon:u.jsx(Cc,{}),checkedIcon:u.jsx(Sc,{}),inputProps:{"aria-label":"Voice response toggle"},color:"default",sx:{height:42,"& .MuiSwitch-switchBase":{padding:"9px"},"& .MuiSwitch-switchBase.Mui-checked":{color:"white",transform:"translateX(16px)","& + .MuiSwitch-track":{backgroundColor:"primary.main"}}}})})}),u.jsx(Hn,{title:"Start a new chat",placement:"top",arrow:!0,children:u.jsx(Qe,{"aria-label":"new chat",color:"primary",onClick:_,disabled:g,sx:{"&:hover":{backgroundColor:"primary.main",color:"common.white"}},children:u.jsx(jm,{})})})]}),u.jsx(ca,{sx:{marginBottom:"10px"}}),x.length===0&&u.jsxs(Ke,{sx:{display:"flex",marginBottom:2,marginTop:3},children:[u.jsx(yr,{src:gi,sx:{width:44,height:44,marginRight:2},alt:"Aria"}),u.jsx(ve,{variant:"h4",component:"h1",gutterBottom:!0,children:"Welcome to Mental Health Companion"})]}),k?u.jsx(ML,{}):d.length===0&&u.jsxs(Ke,{sx:{display:"flex"},children:[u.jsx(yr,{src:gi,sx:{width:36,height:36,marginRight:1},alt:"Aria"}),u.jsxs(ve,{variant:"body1",gutterBottom:!0,sx:{bgcolor:"grey.200",borderRadius:"16px",px:2,py:1,display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap"},children:[x,t&&x&&u.jsx(Qe,{onClick:()=>z(x),size:"small",sx:{ml:1},children:ue(x)})]})]}),u.jsx(ja,{sx:{maxHeight:"100%",overflow:"auto"},children:d.map((U,ee)=>u.jsx(xc,{sx:{display:"flex",flexDirection:"column",alignItems:U.sender==="user"?"flex-end":"flex-start",borderRadius:2,mb:.5,p:1,border:"none","&:before":{display:"none"},"&:after":{display:"none"}},children:u.jsxs(Ke,{sx:{display:"flex",alignItems:"center",color:U.sender==="user"?"common.white":"text.primary",borderRadius:"16px"},children:[U.sender==="agent"&&u.jsx(yr,{src:gi,sx:{width:36,height:36,mr:1},alt:"Aria"}),u.jsx(da,{primary:u.jsxs(Ke,{sx:{display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap"},children:[U.message,t&&U.sender==="agent"&&u.jsx(Qe,{onClick:()=>z(U.message),size:"small",sx:{ml:1},children:ue(U.message)})]}),primaryTypographyProps:{sx:{color:U.sender==="user"?"common.white":"text.primary",bgcolor:U.sender==="user"?"primary.main":"grey.200",borderRadius:"16px",px:2,py:1,display:"inline-block"}}}),U.sender==="user"&&u.jsx(yr,{sx:{width:36,height:36,ml:1},children:u.jsx(Xu,{})})]})},ee))})]}),u.jsx(ca,{}),u.jsxs(Ke,{sx:{p:2,pb:1,display:"flex",alignItems:"center",bgcolor:"background.paper"},children:[u.jsx(qe,{fullWidth:!0,variant:"outlined",placeholder:"Type your message here...",value:l,onChange:Z,disabled:g,sx:{mr:1,flexGrow:1},InputProps:{endAdornment:u.jsx(yc,{position:"end",children:u.jsxs(Qe,{onClick:h?X:G,color:"primary.main","aria-label":h?"Stop recording":"Start recording",size:"large",edge:"end",disabled:g,children:[h?u.jsx(Pm,{size:"small"}):u.jsx(km,{size:"small"}),h&&u.jsx(kn,{size:30,sx:{color:"primary.main",position:"absolute",zIndex:1}})]})})}}),g?u.jsx(kn,{size:24}):u.jsx(gt,{variant:"contained",color:"primary",onClick:F,disabled:g||!l.trim(),endIcon:u.jsx(Ki,{}),children:"Send"})]})]}),u.jsx(lo,{open:R,autoHideDuration:6e3,onClose:$,children:u.jsx(ur,{elevation:6,variant:"filled",onClose:$,severity:O,children:j})})]})]})};var Om={},LL=de;Object.defineProperty(Om,"__esModule",{value:!0});var sS=Om.default=void 0,AL=LL(ge()),zL=u;sS=Om.default=(0,AL.default)((0,zL.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2M9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9zm9 14H6V10h12zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2"}),"LockOutlined");var Im={},DL=de;Object.defineProperty(Im,"__esModule",{value:!0});var aS=Im.default=void 0,FL=DL(ge()),BL=u;aS=Im.default=(0,FL.default)((0,BL.jsx)("path",{d:"M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m-9-2V7H4v3H1v2h3v3h2v-3h3v-2zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"PersonAdd");var Mm={},WL=de;Object.defineProperty(Mm,"__esModule",{value:!0});var wc=Mm.default=void 0,UL=WL(ge()),HL=u;wc=Mm.default=(0,UL.default)((0,HL.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");const xy=Nt(u.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),by=Nt(u.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");var Nm={},VL=de;Object.defineProperty(Nm,"__esModule",{value:!0});var Lm=Nm.default=void 0,qL=VL(ge()),KL=u;Lm=Nm.default=(0,qL.default)((0,KL.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info");const Yd=Ea({palette:{primary:{main:"#556cd6"},secondary:{main:"#19857b"},background:{default:"linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)",paper:"#fff"}},typography:{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif',h5:{fontWeight:600,color:"#444"},button:{textTransform:"none",fontWeight:"bold"}},components:{MuiButton:{styleOverrides:{root:{margin:"8px"}}}}}),GL=B(gn)(({theme:e})=>({marginTop:e.spacing(12),display:"flex",flexDirection:"column",alignItems:"center",padding:e.spacing(4),borderRadius:e.shape.borderRadius,boxShadow:e.shadows[10],width:"90%",maxWidth:"450px",opacity:.98,backdropFilter:"blur(10px)"}));function YL(){const e=Ao(),[t,n]=p.useState(!1),{setUser:r}=p.useContext(lr),[o,i]=p.useState(0),[s,a]=p.useState(""),[l,c]=p.useState(""),[d,f]=p.useState(!1),[h,b]=p.useState(""),[y,v]=p.useState(!1),[C,g]=p.useState(""),[m,x]=p.useState(""),[w,k]=p.useState(""),[P,R]=p.useState(""),[E,j]=p.useState(""),[T,O]=p.useState(!1),[M,I]=p.useState(!1),[N,D]=p.useState(""),[z,W]=p.useState("info"),$=[{id:"job_search",name:"Stress from job search"},{id:"classwork",name:"Stress from classwork"},{id:"social_anxiety",name:"Social anxiety"},{id:"impostor_syndrome",name:"Impostor Syndrome"},{id:"career_drift",name:"Career Drift"}],[_,F]=p.useState([]),G=K=>{const Q=K.target.value,he=_.includes(Q)?_.filter(J=>J!==Q):[..._,Q];F(he)},X=async K=>{var Q,he;K.preventDefault(),O(!0);try{const J=await ye.post("/api/user/login",{username:s,password:h});if(J&&J.data){const fe=J.data.userId;localStorage.setItem("token",J.data.access_token),console.log("Token stored:",localStorage.getItem("token")),D("Login successful!"),W("success"),n(!0),r({userId:fe}),e("/"),console.log("User logged in:",fe)}else throw new Error("Invalid response from server")}catch(J){console.error("Login failed:",J),D("Login failed: "+(((he=(Q=J.response)==null?void 0:Q.data)==null?void 0:he.msg)||"Unknown error")),W("error"),f(!0)}I(!0),O(!1)},ce=async K=>{var Q,he;K.preventDefault(),O(!0);try{const J=await ye.post("/api/user/signup",{username:s,email:l,password:h,name:C,age:m,gender:w,placeOfResidence:P,fieldOfWork:E,mental_health_concerns:_});if(J&&J.data){const fe=J.data.userId;localStorage.setItem("token",J.data.access_token),console.log("Token stored:",localStorage.getItem("token")),D("User registered successfully!"),W("success"),n(!0),r({userId:fe}),e("/"),console.log("User registered:",fe)}else throw new Error("Invalid response from server")}catch(J){console.error("Signup failed:",J),D(((he=(Q=J.response)==null?void 0:Q.data)==null?void 0:he.error)||"Failed to register user."),W("error")}O(!1),I(!0)},Z=async K=>{var Q,he;K.preventDefault(),O(!0);try{const J=await ye.post("/api/user/anonymous_signin");if(J&&J.data)localStorage.setItem("token",J.data.access_token),console.log("Token stored:",localStorage.getItem("token")),D("Anonymous sign-in successful!"),W("success"),n(!0),r({userId:null}),e("/");else throw new Error("Invalid response from server")}catch(J){console.error("Anonymous sign-in failed:",J),D("Anonymous sign-in failed: "+(((he=(Q=J.response)==null?void 0:Q.data)==null?void 0:he.msg)||"Unknown error")),W("error")}O(!1),I(!0)},ue=(K,Q)=>{i(Q)},U=(K,Q)=>{Q!=="clickaway"&&I(!1)},ee=()=>{v(!y)};return u.jsxs(Qh,{theme:Yd,children:[u.jsx(hm,{}),u.jsx(Ke,{sx:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",background:Yd.palette.background.default},children:u.jsxs(GL,{children:[u.jsxs(iS,{value:o,onChange:ue,variant:"fullWidth",centered:!0,indicatorColor:"primary",textColor:"primary",children:[u.jsx(jl,{icon:u.jsx(sS,{}),label:"Login"}),u.jsx(jl,{icon:u.jsx(aS,{}),label:"Sign Up"}),u.jsx(jl,{icon:u.jsx(wc,{}),label:"Anonymous"})]}),u.jsxs(Ke,{sx:{mt:3,width:"100%",px:3},children:[o===0&&u.jsxs("form",{onSubmit:X,children:[u.jsx(qe,{label:"Username",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:s,onChange:K=>a(K.target.value)}),u.jsx(qe,{label:"Password",type:y?"text":"password",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:h,onChange:K=>b(K.target.value),InputProps:{endAdornment:u.jsx(Qe,{onClick:ee,edge:"end",children:y?u.jsx(by,{}):u.jsx(xy,{})})}}),u.jsxs(gt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,sx:{mt:2,maxWidth:"325px"},disabled:T,children:[T?u.jsx(kn,{size:24}):"Login"," "]}),d&&u.jsxs(ve,{variant:"body2",textAlign:"center",sx:{mt:2},children:["Forgot your password? ",u.jsx(xb,{to:"/request_reset",style:{textDecoration:"none",color:Yd.palette.secondary.main},children:"Reset it here"})]})]}),o===1&&u.jsxs("form",{onSubmit:ce,children:[u.jsx(qe,{label:"Username",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:s,onChange:K=>a(K.target.value)}),u.jsx(qe,{label:"Email",type:"email",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:l,onChange:K=>c(K.target.value)}),u.jsx(qe,{label:"Password",type:y?"text":"password",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:h,onChange:K=>b(K.target.value),InputProps:{endAdornment:u.jsx(Qe,{onClick:ee,edge:"end",children:y?u.jsx(by,{}):u.jsx(xy,{})})}}),u.jsx(qe,{label:"Name",variant:"outlined",margin:"normal",fullWidth:!0,value:C,onChange:K=>g(K.target.value)}),u.jsx(qe,{label:"Age",type:"number",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:m,onChange:K=>x(K.target.value)}),u.jsxs(Gu,{required:!0,fullWidth:!0,margin:"normal",children:[u.jsx(Yu,{children:"Gender"}),u.jsxs(Oa,{value:w,label:"Gender",onChange:K=>k(K.target.value),children:[u.jsx(Un,{value:"",children:"Select Gender"}),u.jsx(Un,{value:"male",children:"Male"}),u.jsx(Un,{value:"female",children:"Female"}),u.jsx(Un,{value:"other",children:"Other"})]})]}),u.jsx(qe,{label:"Place of Residence",variant:"outlined",margin:"normal",fullWidth:!0,value:P,onChange:K=>R(K.target.value)}),u.jsx(qe,{label:"Field of Work",variant:"outlined",margin:"normal",fullWidth:!0,value:E,onChange:K=>j(K.target.value)}),u.jsxs(J2,{sx:{marginTop:"10px"},children:[u.jsx(ve,{variant:"body1",gutterBottom:!0,children:"Select any mental stressors you are currently experiencing to help us better tailor your therapy sessions."}),$.map(K=>u.jsx(vm,{control:u.jsx(pm,{checked:_.includes(K.id),onChange:G,value:K.id}),label:u.jsxs(Ke,{display:"flex",alignItems:"center",children:[K.name,u.jsx(Hn,{title:u.jsx(ve,{variant:"body2",children:XL(K.id)}),arrow:!0,placement:"right",children:u.jsx(Lm,{color:"action",style:{marginLeft:4,fontSize:20}})})]})},K.id))]}),u.jsx(gt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,sx:{mt:2},disabled:T,children:T?u.jsx(kn,{size:24}):"Sign Up"})]}),o===2&&u.jsx("form",{onSubmit:Z,children:u.jsx(gt,{type:"submit",variant:"outlined",color:"secondary",fullWidth:!0,sx:{mt:2},disabled:T,children:T?u.jsx(kn,{size:24}):"Anonymous Sign-In"})})]}),u.jsx(lo,{open:M,autoHideDuration:6e3,onClose:U,children:u.jsx(ur,{onClose:U,severity:z,sx:{width:"100%"},children:N})})]})})]})}function XL(e){switch(e){case"job_search":return"Feelings of stress stemming from the job search process.";case"classwork":return"Stress related to managing coursework and academic responsibilities.";case"social_anxiety":return"Anxiety experienced during social interactions or in anticipation of social interactions.";case"impostor_syndrome":return"Persistent doubt concerning one's abilities or accomplishments coupled with a fear of being exposed as a fraud.";case"career_drift":return"Stress from uncertainty or dissatisfaction with one's career path or progress.";default:return"No description available."}}var Am={},QL=de;Object.defineProperty(Am,"__esModule",{value:!0});var lS=Am.default=void 0,JL=QL(ge()),ZL=u;lS=Am.default=(0,JL.default)((0,ZL.jsx)("path",{d:"M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"}),"VpnKey");var zm={},eA=de;Object.defineProperty(zm,"__esModule",{value:!0});var cS=zm.default=void 0,tA=eA(ge()),nA=u;cS=zm.default=(0,tA.default)((0,nA.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");const Sy=Ea({palette:{primary:{main:"#3F51B5"},secondary:{main:"#F6AE2D"}}}),rA=()=>{const{changePassword:e}=p.useContext(lr),[t,n]=p.useState(""),[r,o]=p.useState(""),[i,s]=p.useState(!1),[a,l]=p.useState(""),[c,d]=p.useState("success"),{userId:f}=xa(),h=async b=>{b.preventDefault();const y=await e(f,t,r);l(y.message),d(y.success?"success":"error"),s(!0)};return u.jsx(Qh,{theme:Sy,children:u.jsx(K2,{component:"main",maxWidth:"xs",sx:{background:"#fff",borderRadius:"8px",boxShadow:"0px 2px 4px rgba(0,0,0,0.2)"},children:u.jsxs(Ke,{sx:{marginTop:8,display:"flex",flexDirection:"column",alignItems:"center"},children:[u.jsx(ve,{component:"h1",variant:"h5",children:"Update Password"}),u.jsxs("form",{onSubmit:h,style:{width:"100%",marginTop:Sy.spacing(1)},children:[u.jsx(qe,{variant:"outlined",margin:"normal",required:!0,fullWidth:!0,id:"current-password",label:"Current Password",name:"currentPassword",autoComplete:"current-password",type:"password",value:t,onChange:b=>n(b.target.value),InputProps:{startAdornment:u.jsx(cS,{color:"primary",style:{marginRight:"10px"}})}}),u.jsx(qe,{variant:"outlined",margin:"normal",required:!0,fullWidth:!0,id:"new-password",label:"New Password",name:"newPassword",autoComplete:"new-password",type:"password",value:r,onChange:b=>o(b.target.value),InputProps:{startAdornment:u.jsx(lS,{color:"secondary",style:{marginRight:"10px"}})}}),u.jsx(gt,{type:"submit",fullWidth:!0,variant:"contained",color:"primary",sx:{mt:3,mb:2},children:"Update Password"})]}),u.jsx(lo,{open:i,autoHideDuration:6e3,onClose:()=>s(!1),children:u.jsx(ur,{onClose:()=>s(!1),severity:c,sx:{width:"100%"},children:a})})]})})})};var Dm={},oA=de;Object.defineProperty(Dm,"__esModule",{value:!0});var uS=Dm.default=void 0,iA=oA(ge()),sA=u;uS=Dm.default=(0,iA.default)((0,sA.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"}),"Email");var Fm={},aA=de;Object.defineProperty(Fm,"__esModule",{value:!0});var dS=Fm.default=void 0,lA=aA(ge()),cA=u;dS=Fm.default=(0,lA.default)((0,cA.jsx)("path",{d:"M12 6c1.11 0 2-.9 2-2 0-.38-.1-.73-.29-1.03L12 0l-1.71 2.97c-.19.3-.29.65-.29 1.03 0 1.1.9 2 2 2m4.6 9.99-1.07-1.07-1.08 1.07c-1.3 1.3-3.58 1.31-4.89 0l-1.07-1.07-1.09 1.07C6.75 16.64 5.88 17 4.96 17c-.73 0-1.4-.23-1.96-.61V21c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-4.61c-.56.38-1.23.61-1.96.61-.92 0-1.79-.36-2.44-1.01M18 9h-5V7h-2v2H6c-1.66 0-3 1.34-3 3v1.54c0 1.08.88 1.96 1.96 1.96.52 0 1.02-.2 1.38-.57l2.14-2.13 2.13 2.13c.74.74 2.03.74 2.77 0l2.14-2.13 2.13 2.13c.37.37.86.57 1.38.57 1.08 0 1.96-.88 1.96-1.96V12C21 10.34 19.66 9 18 9"}),"Cake");var Bm={},uA=de;Object.defineProperty(Bm,"__esModule",{value:!0});var fS=Bm.default=void 0,dA=uA(ge()),fA=u;fS=Bm.default=(0,dA.default)((0,fA.jsx)("path",{d:"M5.5 22v-7.5H4V9c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2v5.5H9.5V22zM18 22v-6h3l-2.54-7.63C18.18 7.55 17.42 7 16.56 7h-.12c-.86 0-1.63.55-1.9 1.37L12 16h3v6zM7.5 6c1.11 0 2-.89 2-2s-.89-2-2-2-2 .89-2 2 .89 2 2 2m9 0c1.11 0 2-.89 2-2s-.89-2-2-2-2 .89-2 2 .89 2 2 2"}),"Wc");var Wm={},pA=de;Object.defineProperty(Wm,"__esModule",{value:!0});var pS=Wm.default=void 0,hA=pA(ge()),mA=u;pS=Wm.default=(0,hA.default)((0,mA.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home");var Um={},gA=de;Object.defineProperty(Um,"__esModule",{value:!0});var hS=Um.default=void 0,vA=gA(ge()),yA=u;hS=Um.default=(0,vA.default)((0,yA.jsx)("path",{d:"M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-6 0h-4V4h4z"}),"Work");var Hm={},xA=de;Object.defineProperty(Hm,"__esModule",{value:!0});var Vm=Hm.default=void 0,bA=xA(ge()),SA=u;Vm=Hm.default=(0,bA.default)((0,SA.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 4c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6m0 14c-2.03 0-4.43-.82-6.14-2.88C7.55 15.8 9.68 15 12 15s4.45.8 6.14 2.12C16.43 19.18 14.03 20 12 20"}),"AccountCircle");var qm={},CA=de;Object.defineProperty(qm,"__esModule",{value:!0});var mS=qm.default=void 0,wA=CA(ge()),kA=u;mS=qm.default=(0,wA.default)((0,kA.jsx)("path",{d:"M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8z"}),"Update");const RA=B(iS)({background:"#fff",borderRadius:"8px",boxShadow:"0 2px 4px rgba(0,0,0,0.1)",margin:"20px 0",maxWidth:"100%",overflow:"hidden"}),Cy=B(jl)({fontSize:"1rem",fontWeight:"bold",color:"#3F51B5",marginRight:"4px",marginLeft:"4px",flex:1,maxWidth:"none","&.Mui-selected":{color:"#F6AE2D",background:"#e0e0e0"},"&:hover":{background:"#f4f4f4",transition:"background-color 0.3s"},"@media (max-width: 720px)":{padding:"6px 12px",fontSize:"0.8rem"}}),PA=Ea({palette:{primary:{main:"#3F51B5"},secondary:{main:"#F6AE2D"},background:{default:"#e0e0e0"}},typography:{fontFamily:'"Open Sans", "Helvetica", "Arial", sans-serif',button:{textTransform:"none",fontWeight:"bold"}},components:{MuiButton:{styleOverrides:{root:{boxShadow:"none",borderRadius:8,"&:hover":{boxShadow:"0px 2px 4px rgba(0,0,0,0.2)"}}}},MuiPaper:{styleOverrides:{root:{padding:"20px",borderRadius:"10px",boxShadow:"0px 4px 12px rgba(0,0,0,0.1)"}}}}}),EA=B(gn)(({theme:e})=>({marginTop:e.spacing(2),padding:e.spacing(2),display:"flex",flexDirection:"column",alignItems:"center",gap:e.spacing(2),boxShadow:e.shadows[3]}));function $A(){const{userId:e}=xa(),[t,n]=p.useState({username:"",name:"",email:"",age:"",gender:"",placeOfResidence:"",fieldOfWork:"",mental_health_concerns:[]}),[r,o]=p.useState(0),i=(g,m)=>{o(m)},[s,a]=p.useState(""),[l,c]=p.useState(!1),[d,f]=p.useState("info");p.useEffect(()=>{if(!e){console.error("User ID is undefined");return}(async()=>{try{const m=await ye.get(`/api/user/profile/${e}`);console.log("Fetched data:",m.data);const x={username:m.data.username||"",name:m.data.name||"",email:m.data.email||"",age:m.data.age||"",gender:m.data.gender||"",placeOfResidence:m.data.placeOfResidence||"Not specified",fieldOfWork:m.data.fieldOfWork||"Not specified",mental_health_concerns:m.data.mental_health_concerns||[]};console.log("Formatted data:",x),n(x)}catch{a("Failed to fetch user data"),f("error"),c(!0)}})()},[e]);const h=[{label:"Stress from Job Search",value:"job_search"},{label:"Stress from Classwork",value:"classwork"},{label:"Social Anxiety",value:"social_anxiety"},{label:"Impostor Syndrome",value:"impostor_syndrome"},{label:"Career Drift",value:"career_drift"}];console.log("current mental health concerns: ",t.mental_health_concerns);const b=g=>{const{name:m,checked:x}=g.target;n(w=>{const k=x?[...w.mental_health_concerns,m]:w.mental_health_concerns.filter(P=>P!==m);return{...w,mental_health_concerns:k}})},y=g=>{const{name:m,value:x}=g.target;n(w=>({...w,[m]:x}))},v=async g=>{g.preventDefault();try{await ye.patch(`/api/user/profile/${e}`,t),a("Profile updated successfully!"),f("success")}catch{a("Failed to update profile"),f("error")}c(!0)},C=()=>{c(!1)};return u.jsxs(Qh,{theme:PA,children:[u.jsx(hm,{}),u.jsxs(K2,{component:"main",maxWidth:"md",children:[u.jsxs(RA,{value:r,onChange:i,centered:!0,children:[u.jsx(Cy,{label:"Profile"}),u.jsx(Cy,{label:"Update Password"})]}),r===0&&u.jsxs(EA,{component:"form",onSubmit:v,sx:{maxHeight:"81vh",overflow:"auto"},children:[u.jsxs(ve,{variant:"h5",style:{fontWeight:700},children:[u.jsx(Vm,{style:{marginRight:"10px"}})," ",t.username]}),u.jsx(qe,{fullWidth:!0,label:"Name",variant:"outlined",name:"name",value:t.name||"",onChange:y,InputProps:{startAdornment:u.jsx(Qe,{position:"start",children:u.jsx(Xu,{})})}}),u.jsx(qe,{fullWidth:!0,label:"Email",variant:"outlined",name:"email",value:t.email||"",onChange:y,InputProps:{startAdornment:u.jsx(Qe,{position:"start",children:u.jsx(uS,{})})}}),u.jsx(qe,{fullWidth:!0,label:"Age",variant:"outlined",name:"age",type:"number",value:t.age||"",onChange:y,InputProps:{startAdornment:u.jsx(Qe,{children:u.jsx(dS,{})})}}),u.jsxs(Gu,{fullWidth:!0,children:[u.jsx(Yu,{children:"Gender"}),u.jsxs(Oa,{name:"gender",value:t.gender||"",label:"Gender",onChange:y,startAdornment:u.jsx(Qe,{children:u.jsx(fS,{})}),children:[u.jsx(Un,{value:"male",children:"Male"}),u.jsx(Un,{value:"female",children:"Female"}),u.jsx(Un,{value:"other",children:"Other"})]})]}),u.jsx(qe,{fullWidth:!0,label:"Place of Residence",variant:"outlined",name:"placeOfResidence",value:t.placeOfResidence||"",onChange:y,InputProps:{startAdornment:u.jsx(Qe,{children:u.jsx(pS,{})})}}),u.jsx(qe,{fullWidth:!0,label:"Field of Work",variant:"outlined",name:"fieldOfWork",value:t.fieldOfWork||"",onChange:y,InputProps:{startAdornment:u.jsx(Qe,{position:"start",children:u.jsx(hS,{})})}}),u.jsx(J2,{children:h.map((g,m)=>(console.log(`Is "${g.label}" checked?`,t.mental_health_concerns.includes(g.value)),u.jsx(vm,{control:u.jsx(pm,{checked:t.mental_health_concerns.includes(g.value),onChange:b,name:g.value}),label:u.jsxs(Ke,{display:"flex",alignItems:"center",children:[g.label,u.jsx(Hn,{title:u.jsx(ve,{variant:"body2",children:TA(g.value)}),arrow:!0,placement:"right",children:u.jsx(Lm,{color:"action",style:{marginLeft:4,fontSize:20}})})]})},m)))}),u.jsxs(gt,{type:"submit",color:"primary",variant:"contained",children:[u.jsx(mS,{style:{marginRight:"10px"}}),"Update Profile"]})]}),r===1&&u.jsx(rA,{userId:e}),u.jsx(lo,{open:l,autoHideDuration:6e3,onClose:C,children:u.jsx(ur,{onClose:C,severity:d,sx:{width:"100%"},children:s})})]})]})}function TA(e){switch(e){case"job_search":return"Feelings of stress stemming from the job search process.";case"classwork":return"Stress related to managing coursework and academic responsibilities.";case"social_anxiety":return"Anxiety experienced during social interactions or in anticipation of social interactions.";case"impostor_syndrome":return"Persistent doubt concerning one's abilities or accomplishments coupled with a fear of being exposed as a fraud.";case"career_drift":return"Stress from uncertainty or dissatisfaction with one's career path or progress.";default:return"No description available."}}var Km={},_A=de;Object.defineProperty(Km,"__esModule",{value:!0});var gS=Km.default=void 0,jA=_A(ge()),wy=u;gS=Km.default=(0,jA.default)([(0,wy.jsx)("path",{d:"M22 9 12 2 2 9h9v13h2V9z"},"0"),(0,wy.jsx)("path",{d:"m4.14 12-1.96.37.82 4.37V22h2l.02-4H7v4h2v-6H4.9zm14.96 4H15v6h2v-4h1.98l.02 4h2v-5.26l.82-4.37-1.96-.37z"},"1")],"Deck");var Gm={},OA=de;Object.defineProperty(Gm,"__esModule",{value:!0});var vS=Gm.default=void 0,IA=OA(ge()),MA=u;vS=Gm.default=(0,IA.default)((0,MA.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5m-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11m3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5"}),"InsertEmoticon");var Ym={},NA=de;Object.defineProperty(Ym,"__esModule",{value:!0});var Xm=Ym.default=void 0,LA=NA(ge()),AA=u;Xm=Ym.default=(0,LA.default)((0,AA.jsx)("path",{d:"M19 5v14H5V5zm1.1-2H3.9c-.5 0-.9.4-.9.9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9M11 7h6v2h-6zm0 4h6v2h-6zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7z"}),"ListAlt");var Qm={},zA=de;Object.defineProperty(Qm,"__esModule",{value:!0});var yS=Qm.default=void 0,DA=zA(ge()),FA=u;yS=Qm.default=(0,DA.default)((0,FA.jsx)("path",{d:"M10.09 15.59 11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"ExitToApp");var Jm={},BA=de;Object.defineProperty(Jm,"__esModule",{value:!0});var xS=Jm.default=void 0,WA=BA(ge()),UA=u;xS=Jm.default=(0,WA.default)((0,UA.jsx)("path",{d:"M16.53 11.06 15.47 10l-4.88 4.88-2.12-2.12-1.06 1.06L10.59 17zM19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V8h14z"}),"EventAvailable");var Zm={},HA=de;Object.defineProperty(Zm,"__esModule",{value:!0});var bS=Zm.default=void 0,VA=HA(ge()),ky=u;bS=Zm.default=(0,VA.default)([(0,ky.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,ky.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"Schedule");var eg={},qA=de;Object.defineProperty(eg,"__esModule",{value:!0});var SS=eg.default=void 0,KA=qA(ge()),GA=u;SS=eg.default=(0,KA.default)((0,GA.jsx)("path",{d:"m22.69 18.37 1.14-1-1-1.73-1.45.49c-.32-.27-.68-.48-1.08-.63L20 14h-2l-.3 1.49c-.4.15-.76.36-1.08.63l-1.45-.49-1 1.73 1.14 1c-.08.5-.08.76 0 1.26l-1.14 1 1 1.73 1.45-.49c.32.27.68.48 1.08.63L18 24h2l.3-1.49c.4-.15.76-.36 1.08-.63l1.45.49 1-1.73-1.14-1c.08-.51.08-.77 0-1.27M19 21c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2M11 7v5.41l2.36 2.36 1.04-1.79-1.4-1.39V7zm10 5c0-4.97-4.03-9-9-9-2.83 0-5.35 1.32-7 3.36V4H3v6h6V8H6.26C7.53 6.19 9.63 5 12 5c3.86 0 7 3.14 7 7zm-10.14 6.91c-2.99-.49-5.35-2.9-5.78-5.91H3.06c.5 4.5 4.31 8 8.94 8h.07z"}),"ManageHistory");const Ry=230;function YA(){const{logout:e,user:t}=p.useContext(lr),n=oo(),r=i=>n.pathname===i,o=[{text:"Mind Chat",icon:u.jsx(gS,{}),path:"/"},...t!=null&&t.userId?[{text:"Track Your Vibes",icon:u.jsx(vS,{}),path:"/user/mood_logging"},{text:"Mood Logs",icon:u.jsx(Xm,{}),path:"/user/mood_logs"},{text:"Schedule Check-In",icon:u.jsx(bS,{}),path:"/user/check_in"},{text:"Check-In Reporting",icon:u.jsx(xS,{}),path:`/user/check_ins/${t==null?void 0:t.userId}`},{text:"Chat Log Manager",icon:u.jsx(SS,{}),path:"/user/chat_log_Manager"}]:[]];return u.jsx(FI,{sx:{width:Ry,flexShrink:0,mt:8,"& .MuiDrawer-paper":{width:Ry,boxSizing:"border-box",position:"relative",height:"91vh",top:0,overflowX:"hidden",borderRadius:2,boxShadow:1}},variant:"permanent",anchor:"left",children:u.jsxs(ja,{children:[o.map(i=>u.jsx(WP,{to:i.path,style:{textDecoration:"none",color:"inherit"},children:u.jsxs(xc,{button:!0,sx:{backgroundColor:r(i.path)?"rgba(25, 118, 210, 0.5)":"inherit","&:hover":{bgcolor:"grey.200"}},children:[u.jsx(iy,{children:i.icon}),u.jsx(da,{primary:i.text})]})},i.text)),u.jsxs(xc,{button:!0,onClick:e,children:[u.jsx(iy,{children:u.jsx(yS,{})}),u.jsx(da,{primary:"Logout"})]})]})})}var tg={},XA=de;Object.defineProperty(tg,"__esModule",{value:!0});var CS=tg.default=void 0,QA=XA(ge()),JA=u;CS=tg.default=(0,QA.default)((0,JA.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");var ng={},ZA=de;Object.defineProperty(ng,"__esModule",{value:!0});var wS=ng.default=void 0,ez=ZA(ge()),tz=u;wS=ng.default=(0,ez.default)((0,tz.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2m6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1z"}),"Notifications");var rg={},nz=de;Object.defineProperty(rg,"__esModule",{value:!0});var kS=rg.default=void 0,rz=nz(ge()),oz=u;kS=rg.default=(0,rz.default)((0,oz.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel");function iz({toggleSidebar:e}){const{incrementNotificationCount:t,notifications:n,addNotification:r,removeNotification:o}=p.useContext(lr),i=Ao(),{user:s}=p.useContext(lr),[a,l]=p.useState(null),c=localStorage.getItem("token"),d=s==null?void 0:s.userId;console.log("User ID:",d),p.useEffect(()=>{d?f():console.error("No user ID available from URL parameters.")},[d]);const f=async()=>{if(!d){console.error("User ID is missing in context");return}try{const C=(await ye.get(`/api/check-in/missed?user_id=${d}`,{headers:{Authorization:`Bearer ${c}`}})).data;console.log("Missed check-ins:",C),C.length>0?C.forEach(g=>{r({title:`Missed Check-in on ${new Date(g.check_in_time).toLocaleString()}`,message:"Please complete your check-in."})}):r({title:"You have no missed check-ins.",message:""})}catch(v){console.error("Failed to fetch missed check-ins:",v),r({title:"Failed to fetch missed check-ins. Please check the console for more details.",message:""})}},h=v=>{l(v.currentTarget)},b=v=>{l(null),o(v)},y=()=>{s&&s.userId?i(`/user/profile/${s.userId}`):console.error("User ID not found")};return p.useEffect(()=>{const v=C=>{C.data&&C.data.msg==="updateCount"&&(console.log("Received message from service worker:",C.data),r({title:C.data.title,message:C.data.body}),t())};return navigator.serviceWorker.addEventListener("message",v),()=>{navigator.serviceWorker.removeEventListener("message",v)}},[]),u.jsx(C_,{position:"fixed",sx:{zIndex:v=>v.zIndex.drawer+1},children:u.jsxs(D6,{children:[u.jsx(Qe,{onClick:e,color:"inherit",edge:"start",sx:{marginRight:2},children:u.jsx(CS,{})}),u.jsx(ve,{variant:"h6",noWrap:!0,component:"div",sx:{flexGrow:1},children:"Dashboard"}),(s==null?void 0:s.userId)&&u.jsx(Qe,{color:"inherit",onClick:h,children:u.jsx(rO,{badgeContent:n.length,color:"secondary",children:u.jsx(wS,{})})}),u.jsx(nS,{anchorEl:a,open:!!a,onClose:()=>b(null),children:n.map((v,C)=>u.jsx(Un,{onClick:()=>b(C),sx:{whiteSpace:"normal",maxWidth:350,padding:1},children:u.jsxs(qu,{elevation:2,sx:{display:"flex",alignItems:"center",width:"100%"},children:[u.jsx(kS,{color:"error"}),u.jsxs(fm,{sx:{flex:"1 1 auto"},children:[u.jsx(ve,{variant:"subtitle1",sx:{fontWeight:"bold"},children:v.title}),u.jsx(ve,{variant:"body2",color:"text.secondary",children:v.message})]})]})},C))}),(s==null?void 0:s.userId)&&u.jsx(Qe,{color:"inherit",onClick:y,children:u.jsx(Vm,{})})]})})}var og={},sz=de;Object.defineProperty(og,"__esModule",{value:!0});var RS=og.default=void 0,az=sz(ge()),lz=u;RS=og.default=(0,az.default)((0,lz.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M17 13l-5 5-5-5h3V9h4v4z"}),"CloudDownload");var ig={},cz=de;Object.defineProperty(ig,"__esModule",{value:!0});var wp=ig.default=void 0,uz=cz(ge()),dz=u;wp=ig.default=(0,uz.default)((0,dz.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"DeleteForever");var sg={},fz=de;Object.defineProperty(sg,"__esModule",{value:!0});var PS=sg.default=void 0,pz=fz(ge()),hz=u;PS=sg.default=(0,pz.default)((0,hz.jsx)("path",{d:"M9 11H7v2h2zm4 0h-2v2h2zm4 0h-2v2h2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 16H5V9h14z"}),"DateRange");const mz=B(gn)(({theme:e})=>({padding:e.spacing(3),borderRadius:e.shape.borderRadius,boxShadow:1,maxWidth:"100%",margin:"auto",marginTop:e.spacing(2),backgroundColor:"#fff",overflow:"auto"})),ll=B(gt)(({theme:e})=>({margin:e.spacing(0),paddingLeft:e.spacing(1),paddingRight:e.spacing(3)}));function gz(){const[e,t]=Vt.useState(!1),[n,r]=p.useState(!1),[o,i]=Vt.useState(""),[s,a]=Vt.useState("info"),[l,c]=p.useState(!1),[d,f]=p.useState(""),[h,b]=p.useState(""),[y,v]=p.useState(!1),C=(k,P)=>{P!=="clickaway"&&t(!1)},g=()=>{r(!1)},m=k=>{v(k),r(!0)},x=async(k=!1)=>{var P,R;c(!0);try{const E=k?"/api/user/download_chat_logs/range":"/api/user/download_chat_logs",j=k?{params:{start_date:d,end_date:h}}:{},T=await ye.get(E,{...j,headers:{Authorization:`Bearer ${localStorage.getItem("token")}`},responseType:"blob"}),O=window.URL.createObjectURL(new Blob([T.data])),M=document.createElement("a");M.href=O,M.setAttribute("download",k?"chat_logs_range.csv":"chat_logs.csv"),document.body.appendChild(M),M.click(),i("Chat logs downloaded successfully."),a("success")}catch(E){i(`Failed to download chat logs: ${((R=(P=E.response)==null?void 0:P.data)==null?void 0:R.error)||E.message}`),a("error")}finally{c(!1)}t(!0)},w=async()=>{var k,P;r(!1),c(!0);try{const R=y?"/api/user/delete_chat_logs/range":"/api/user/delete_chat_logs",E=y?{params:{start_date:d,end_date:h}}:{},j=await ye.delete(R,{...E,headers:{Authorization:`Bearer ${localStorage.getItem("token")}`}});i(j.data.message),a("success")}catch(R){i(`Failed to delete chat logs: ${((P=(k=R.response)==null?void 0:k.data)==null?void 0:P.error)||R.message}`),a("error")}finally{c(!1)}t(!0)};return u.jsxs(mz,{sx:{height:"91vh"},children:[u.jsx(ve,{variant:"h4",gutterBottom:!0,children:"Manage Your Chat Logs"}),u.jsx(ve,{variant:"body1",paragraph:!0,children:"Manage your chat logs efficiently by downloading or deleting entries for specific dates or entire ranges. Please be cautious as deletion is permanent."}),u.jsxs("div",{style:{display:"flex",justifyContent:"center",flexDirection:"column",alignItems:"center",gap:20},children:[u.jsxs("div",{style:{display:"flex",gap:10,marginBottom:20},children:[u.jsx(qe,{label:"Start Date",type:"date",value:d,onChange:k=>f(k.target.value),InputLabelProps:{shrink:!0}}),u.jsx(qe,{label:"End Date",type:"date",value:h,onChange:k=>b(k.target.value),InputLabelProps:{shrink:!0}})]}),u.jsx(ve,{variant:"body1",paragraph:!0,children:"Here you can download your chat logs as a CSV file, which includes details like chat IDs, content, type, and additional information for each session."}),u.jsx(Hn,{title:"Download chat logs for selected date range",children:u.jsx(ll,{variant:"outlined",startIcon:u.jsx(PS,{}),onClick:()=>x(!0),disabled:l||!d||!h,children:l?u.jsx(kn,{size:24,color:"inherit"}):"Download Range"})}),u.jsx(Hn,{title:"Download your chat logs as a CSV file",children:u.jsx(ll,{variant:"contained",color:"primary",startIcon:u.jsx(RS,{}),onClick:()=>x(!1),disabled:l,children:l?u.jsx(kn,{size:24,color:"inherit"}):"Download Chat Logs"})}),u.jsx(ve,{variant:"body1",paragraph:!0,children:"If you need to clear your history for privacy or other reasons, you can also permanently delete your chat logs from the server."}),u.jsx(Hn,{title:"Delete chat logs for selected date range",children:u.jsx(ll,{variant:"outlined",color:"warning",startIcon:u.jsx(wp,{}),onClick:()=>m(!0),disabled:l||!d||!h,children:l?u.jsx(kn,{size:24,color:"inherit"}):"Delete Range"})}),u.jsx(Hn,{title:"Permanently delete all your chat logs",children:u.jsx(ll,{variant:"contained",color:"secondary",startIcon:u.jsx(wp,{}),onClick:()=>m(!1),disabled:l,children:l?u.jsx(kn,{size:24,color:"inherit"}):"Delete Chat Logs"})}),u.jsx(ve,{variant:"body1",paragraph:!0,children:"Please use these options carefully as deleting your chat logs is irreversible."})]}),u.jsxs(yp,{open:n,onClose:g,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[u.jsx(Sp,{id:"alert-dialog-title",children:"Confirm Deletion"}),u.jsx(bp,{children:u.jsx(Y2,{id:"alert-dialog-description",children:"Are you sure you want to delete these chat logs? This action cannot be undone."})}),u.jsxs(xp,{children:[u.jsx(gt,{onClick:g,color:"primary",children:"Cancel"}),u.jsx(gt,{onClick:()=>w(),color:"secondary",autoFocus:!0,children:"Confirm"})]})]}),u.jsx(lo,{open:e,autoHideDuration:6e3,onClose:C,children:u.jsx(ur,{onClose:C,severity:s,sx:{width:"100%"},children:o})})]})}const Py=()=>{const{user:e,voiceEnabled:t}=p.useContext(lr),n=e==null?void 0:e.userId,[r,o]=p.useState(0),[i,s]=p.useState(0),[a,l]=p.useState(""),[c,d]=p.useState([]),[f,h]=p.useState(!1),[b,y]=p.useState(null),v=p.useRef([]),[C,g]=p.useState(!1),[m,x]=p.useState(!1),[w,k]=p.useState(""),[P,R]=p.useState("info"),[E,j]=p.useState(null),T=_=>{if(!t||_===E){j(null),window.speechSynthesis.cancel();return}const F=window.speechSynthesis,G=new SpeechSynthesisUtterance(_),X=F.getVoices();console.log(X.map(Z=>`${Z.name} - ${Z.lang} - ${Z.gender}`));const ce=X.find(Z=>Z.name.includes("Microsoft Zira - English (United States)"));ce?G.voice=ce:console.log("No female voice found"),G.onend=()=>{j(null)},j(_),F.speak(G)},O=(_,F)=>{F!=="clickaway"&&x(!1)},M=p.useCallback(async()=>{if(r!==null){g(!0);try{const _=await fetch(`/api/ai/mental_health/finalize/${n}/${r}`,{method:"POST",headers:{"Content-Type":"application/json"}}),F=await _.json();_.ok?(k("Chat finalized successfully"),R("success"),o(null),s(0),d([])):(k("Failed to finalize chat"),R("error"))}catch{k("Error finalizing chat"),R("error")}finally{g(!1),x(!0)}}},[n,r]),I=p.useCallback(async()=>{if(a.trim()){console.log(r),g(!0);try{const _=JSON.stringify({prompt:a,turn_id:i}),F=await fetch(`/api/ai/mental_health/${n}/${r}`,{method:"POST",headers:{"Content-Type":"application/json"},body:_}),G=await F.json();console.log(G),F.ok?(d(X=>[...X,{message:a,sender:"user"},{message:G,sender:"agent"}]),s(X=>X+1),l("")):(console.error("Failed to send message:",G),k(G.error||"An error occurred while sending the message."),R("error"),x(!0))}catch(_){console.error("Failed to send message:",_),k("Network or server error occurred."),R("error"),x(!0)}finally{g(!1)}}},[a,n,r,i]),N=()=>{navigator.mediaDevices.getUserMedia({audio:!0}).then(_=>{v.current=[];const F={mimeType:"audio/webm"},G=new MediaRecorder(_,F);G.ondataavailable=X=>{console.log("Data available:",X.data.size),v.current.push(X.data)},G.start(),y(G),h(!0)}).catch(console.error)},D=()=>{b&&(b.onstop=()=>{z(v.current),h(!1),y(null)},b.stop())},z=_=>{console.log("Audio chunks size:",_.reduce((X,ce)=>X+ce.size,0));const F=new Blob(_,{type:"audio/webm"});if(F.size===0){console.error("Audio Blob is empty");return}console.log(`Sending audio blob of size: ${F.size} bytes`);const G=new FormData;G.append("audio",F),g(!0),ye.post("/api/ai/mental_health/voice-to-text",G,{headers:{"Content-Type":"multipart/form-data"}}).then(X=>{const{message:ce}=X.data;l(ce),I()}).catch(X=>{console.error("Error uploading audio:",X),x(!0),k("Error processing voice input: "+X.message),R("error")}).finally(()=>{g(!1)})},W=p.useCallback(_=>{l(_.target.value)},[]),$=_=>_===E?u.jsx(Cc,{}):u.jsx(Sc,{});return u.jsxs(u.Fragment,{children:[u.jsx("style",{children:` + @keyframes blink { + 0%, 100% { opacity: 0; } + 50% { opacity: 1; } + } + @media (max-width: 720px) { + .new-chat-button { + + top: 5px; + right: 5px; + padding: 4px 8px; /* Smaller padding */ + font-size: 0.8rem; /* Smaller font size */ + } + } + `}),u.jsxs(Ke,{sx:{maxWidth:"100%",mx:"auto",my:2,display:"flex",flexDirection:"column",height:"91vh",borderRadius:2,boxShadow:1},children:[u.jsxs(qu,{sx:{display:"flex",flexDirection:"column",height:"100%",borderRadius:2,boxShadow:3},children:[u.jsxs(fm,{sx:{flexGrow:1,overflow:"auto",padding:3,position:"relative"},children:[u.jsx(Hn,{title:"Start a new chat",placement:"top",arrow:!0,children:u.jsx(Qe,{"aria-label":"new chat",color:"primary",onClick:M,disabled:C,sx:{position:"absolute",top:5,right:5,"&:hover":{backgroundColor:"primary.main",color:"common.white"}},children:u.jsx(jm,{})})}),c.length===0&&u.jsxs(Ke,{sx:{display:"flex",marginBottom:2,marginTop:3},children:[u.jsx(yr,{src:gi,sx:{width:44,height:44,marginRight:2},alt:"Aria"}),u.jsx(ve,{variant:"h4",component:"h1",gutterBottom:!0,children:"Welcome to Mental Health Companion"})]}),u.jsx(ja,{sx:{maxHeight:"100%",overflow:"auto"},children:c.map((_,F)=>u.jsx(xc,{sx:{display:"flex",flexDirection:"column",alignItems:_.sender==="user"?"flex-end":"flex-start",borderRadius:2,mb:.5,p:1,border:"none","&:before":{display:"none"},"&:after":{display:"none"}},children:u.jsxs(Ke,{sx:{display:"flex",alignItems:"center",color:_.sender==="user"?"common.white":"text.primary",borderRadius:"16px"},children:[_.sender==="agent"&&u.jsx(yr,{src:gi,sx:{width:36,height:36,mr:1},alt:"Aria"}),u.jsx(da,{primary:u.jsxs(Ke,{sx:{display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap"},children:[_.message,t&&_.sender==="agent"&&u.jsx(Qe,{onClick:()=>T(_.message),size:"small",sx:{ml:1},children:$(_.message)})]}),primaryTypographyProps:{sx:{color:_.sender==="user"?"common.white":"text.primary",bgcolor:_.sender==="user"?"primary.main":"grey.200",borderRadius:"16px",px:2,py:1,display:"inline-block"}}}),_.sender==="user"&&u.jsx(yr,{sx:{width:36,height:36,ml:1},children:u.jsx(Xu,{})})]})},F))})]}),u.jsx(ca,{}),u.jsxs(Ke,{sx:{p:2,pb:1,display:"flex",alignItems:"center",bgcolor:"background.paper"},children:[u.jsx(qe,{fullWidth:!0,variant:"outlined",placeholder:"Type your message here...",value:a,onChange:W,disabled:C,sx:{mr:1,flexGrow:1},InputProps:{endAdornment:u.jsx(yc,{position:"end",children:u.jsxs(Qe,{onClick:f?D:N,color:"primary.main","aria-label":f?"Stop recording":"Start recording",size:"large",edge:"end",disabled:C,children:[f?u.jsx(Pm,{size:"small"}):u.jsx(km,{size:"small"}),f&&u.jsx(kn,{size:30,sx:{color:"primary.main",position:"absolute",zIndex:1}})]})})}}),C?u.jsx(kn,{size:24}):u.jsx(gt,{variant:"contained",color:"primary",onClick:I,disabled:C||!a.trim(),endIcon:u.jsx(Ki,{}),children:"Send"})]})]}),u.jsx(lo,{open:m,autoHideDuration:6e3,onClose:O,children:u.jsx(ur,{elevation:6,variant:"filled",onClose:O,severity:P,children:w})})]})]})};var ag={},vz=de;Object.defineProperty(ag,"__esModule",{value:!0});var ES=ag.default=void 0,yz=vz(ge()),xz=u;ES=ag.default=(0,yz.default)((0,xz.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5m-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11m3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5"}),"Mood");function bz(){const[e,t]=p.useState(""),[n,r]=p.useState(""),[o,i]=p.useState(""),s=async()=>{const a=localStorage.getItem("token");if(!e||!n){i("Both mood and activities are required.");return}if(!a){i("You are not logged in.");return}try{const l=await ye.post("/api/user/log_mood",{mood:e,activities:n},{headers:{Authorization:`Bearer ${a}`}});i(l.data.message)}catch(l){i(l.response.data.error)}};return u.jsxs("div",{className:"mood-logging-container",children:[u.jsxs("h1",{children:[u.jsx(ES,{fontSize:"large"})," Track Your Vibes "]}),u.jsxs("div",{className:"mood-logging",children:[u.jsxs("div",{className:"input-group",children:[u.jsx("label",{htmlFor:"mood-input",children:"Mood:"}),u.jsx("input",{id:"mood-input",type:"text",value:e,onChange:a=>t(a.target.value),placeholder:"Enter your current mood"}),u.jsx("label",{htmlFor:"activities-input",children:"Activities:"}),u.jsx("input",{id:"activities-input",type:"text",value:n,onChange:a=>r(a.target.value),placeholder:"What are you doing?"})]}),u.jsx(gt,{variant:"contained",className:"submit-button",onClick:s,startIcon:u.jsx(Ki,{}),children:"Log Mood"}),o&&u.jsx("div",{className:"message",children:o})]})]})}function Sz(){const[e,t]=p.useState([]),[n,r]=p.useState("");p.useEffect(()=>{(async()=>{const s=localStorage.getItem("token");if(!s){r("You are not logged in.");return}try{const a=await ye.get("/api/user/get_mood_logs",{headers:{Authorization:`Bearer ${s}`}});console.log("Received data:",a.data),t(a.data.mood_logs||[])}catch(a){r(a.response.data.error)}})()},[]);const o=i=>{const s={year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"};try{const a=i.$date;return new Date(a).toLocaleDateString("en-US",s)}catch(a){return console.error("Date parsing error:",a),"Invalid Date"}};return u.jsxs("div",{className:"mood-logs",children:[u.jsxs("h2",{children:[u.jsx(Xm,{className:"icon-large"}),"Your Mood Journey"]}),n?u.jsx("div",{className:"error",children:n}):u.jsx("ul",{children:e.map((i,s)=>u.jsxs("li",{children:[u.jsxs("div",{children:[u.jsx("strong",{children:"Mood:"})," ",i.mood]}),u.jsxs("div",{children:[u.jsx("strong",{children:"Activities:"})," ",i.activities]}),u.jsxs("div",{children:[u.jsx("strong",{children:"Timestamp:"})," ",o(i.timestamp)]})]},s))})]})}function Cz(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}const $S=6e4,TS=36e5;function Xd(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}function wz(e,t){const n=Cz(e);if(isNaN(n.getTime()))throw new RangeError("Invalid time value");const r=(t==null?void 0:t.format)??"extended";let o="";const i=r==="extended"?"-":"";{const s=Xd(n.getDate(),2),a=Xd(n.getMonth()+1,2);o=`${Xd(n.getFullYear(),4)}${i}${a}${i}${s}`}return o}function kz(e,t){const r=$z(e);let o;if(r.date){const l=Tz(r.date,2);o=_z(l.restDateString,l.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);const i=o.getTime();let s=0,a;if(r.time&&(s=jz(r.time),isNaN(s)))return new Date(NaN);if(r.timezone){if(a=Oz(r.timezone),isNaN(a))return new Date(NaN)}else{const l=new Date(i+s),c=new Date(0);return c.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),c.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),c}return new Date(i+s+a)}const cl={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Rz=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Pz=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Ez=/^([+-])(\d{2})(?::?(\d{2}))?$/;function $z(e){const t={},n=e.split(cl.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],cl.timeZoneDelimiter.test(t.date)&&(t.date=e.split(cl.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const o=cl.timezone.exec(r);o?(t.time=r.replace(o[1],""),t.timezone=o[1]):t.time=r}return t}function Tz(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?o:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function _z(e,t){if(t===null)return new Date(NaN);const n=e.match(Rz);if(!n)return new Date(NaN);const r=!!n[4],o=hs(n[1]),i=hs(n[2])-1,s=hs(n[3]),a=hs(n[4]),l=hs(n[5])-1;if(r)return Az(t,a,l)?Iz(t,a,l):new Date(NaN);{const c=new Date(0);return!Nz(t,i,s)||!Lz(t,o)?new Date(NaN):(c.setUTCFullYear(t,i,Math.max(o,s)),c)}}function hs(e){return e?parseInt(e):1}function jz(e){const t=e.match(Pz);if(!t)return NaN;const n=Qd(t[1]),r=Qd(t[2]),o=Qd(t[3]);return zz(n,r,o)?n*TS+r*$S+o*1e3:NaN}function Qd(e){return e&&parseFloat(e.replace(",","."))||0}function Oz(e){if(e==="Z")return 0;const t=e.match(Ez);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return Dz(r,o)?n*(r*TS+o*$S):NaN}function Iz(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,i=(t-1)*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}const Mz=[31,null,31,30,31,30,31,31,30,31,30,31];function _S(e){return e%400===0||e%4===0&&e%100!==0}function Nz(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Mz[t]||(_S(e)?29:28))}function Lz(e,t){return t>=1&&t<=(_S(e)?366:365)}function Az(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function zz(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Dz(e,t){return t>=0&&t<=59}function kp({userId:e,update:t}){const[n,r]=p.useState(""),[o,i]=p.useState("daily"),[s,a]=p.useState(!1),{checkInId:l}=xa(),[c,d]=p.useState(!1),[f,h]=p.useState({open:!1,message:"",severity:"info"}),b=localStorage.getItem("token");p.useEffect(()=>{t&&l&&(d(!0),ye.get(`/api/check-in/${l}`,{headers:{Authorization:`Bearer ${b}`}}).then(C=>{const g=C.data;console.log("Fetched check-in data:",g);const m=wz(kz(g.check_in_time),{representation:"date"});r(m.slice(0,16)),i(g.frequency),a(g.notify),d(!1)}).catch(C=>{console.error("Failed to fetch check-in details:",C),d(!1)}))},[t,l]);const y=async C=>{var R,E,j;if(C.preventDefault(),new Date(n)<=new Date){h({open:!0,message:"Cannot schedule check-in in the past. Please choose a future time.",severity:"error"});return}const x=t?`/api/check-in/${l}`:"/api/check-in/schedule",w={headers:{Authorization:`Bearer ${b}`,"Content-Type":"application/json"}};console.log("URL:",x);const k=t?"patch":"post",P={user_id:e,check_in_time:n,frequency:o,notify:s};console.log("Submitting:",P);try{const T=await ye[k](x,P,w);console.log("Success:",T.data.message),h({open:!0,message:T.data.message,severity:"success"})}catch(T){console.error("Error:",((R=T.response)==null?void 0:R.data)||T);const O=((j=(E=T.response)==null?void 0:E.data)==null?void 0:j.error)||"An unexpected error occurred";h({open:!0,message:O,severity:"error"})}},v=(C,g)=>{g!=="clickaway"&&h({...f,open:!1})};return c?u.jsx(ve,{children:"Loading..."}):u.jsxs(Ke,{component:"form",onSubmit:y,noValidate:!0,sx:{mt:4,padding:3,borderRadius:2,boxShadow:3},children:[u.jsx(qe,{id:"datetime-local",label:"Check-in Time",type:"datetime-local",fullWidth:!0,value:n,onChange:C=>r(C.target.value),sx:{marginBottom:3},InputLabelProps:{shrink:!0},required:!0,helperText:"Select the date and time for your check-in."}),u.jsxs(Gu,{fullWidth:!0,sx:{marginBottom:3},children:[u.jsx(Yu,{id:"frequency-label",children:"Frequency"}),u.jsxs(Oa,{labelId:"frequency-label",id:"frequency",value:o,label:"Frequency",onChange:C=>i(C.target.value),children:[u.jsx(Un,{value:"daily",children:"Daily"}),u.jsx(Un,{value:"weekly",children:"Weekly"}),u.jsx(Un,{value:"monthly",children:"Monthly"})]}),u.jsx(Hn,{title:"Choose how often you want the check-ins to occur",children:u.jsx("i",{className:"fas fa-info-circle"})})]}),u.jsx(vm,{control:u.jsx(pm,{checked:s,onChange:C=>a(C.target.checked),color:"primary"}),label:"Notify me",sx:{marginBottom:2}}),u.jsx(gt,{type:"submit",fullWidth:!0,variant:"contained",color:"primary",sx:{mt:2,mb:2,padding:"10px 0"},children:t?"Update Check-In":"Schedule Check-In"}),u.jsx(lo,{open:f.open,autoHideDuration:6e3,onClose:v,children:u.jsx(ur,{onClose:v,severity:f.severity,children:f.message})})]})}kp.propTypes={userId:Id.string.isRequired,checkInId:Id.string,update:Id.bool.isRequired};var lg={},Fz=de;Object.defineProperty(lg,"__esModule",{value:!0});var jS=lg.default=void 0,Bz=Fz(ge()),Ey=u;jS=lg.default=(0,Bz.default)([(0,Ey.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,Ey.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");var cg={},Wz=de;Object.defineProperty(cg,"__esModule",{value:!0});var OS=cg.default=void 0,Uz=Wz(ge()),Hz=u;OS=cg.default=(0,Uz.default)((0,Hz.jsx)("path",{d:"M7 7h10v3l4-4-4-4v3H5v6h2zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2z"}),"Repeat");var ug={},Vz=de;Object.defineProperty(ug,"__esModule",{value:!0});var IS=ug.default=void 0,qz=Vz(ge()),Kz=u;IS=ug.default=(0,qz.default)((0,Kz.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert");var dg={},Gz=de;Object.defineProperty(dg,"__esModule",{value:!0});var MS=dg.default=void 0,Yz=Gz(ge()),Xz=u;MS=dg.default=(0,Yz.default)((0,Xz.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");var fg={},Qz=de;Object.defineProperty(fg,"__esModule",{value:!0});var NS=fg.default=void 0,Jz=Qz(ge()),Zz=u;NS=fg.default=(0,Jz.default)((0,Zz.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");const eD=B(qu)(({theme:e})=>({marginBottom:e.spacing(2),padding:e.spacing(2),display:"flex",alignItems:"center",justifyContent:"space-between",transition:"transform 0.1s ease-in-out","&:hover":{transform:"scale(1.01)",boxShadow:e.shadows[3]}})),tD=Vt.forwardRef(function(t,n){return u.jsx(ur,{elevation:6,ref:n,variant:"filled",...t})});function nD(){const{userId:e}=xa(),t=Ao(),[n,r]=p.useState([]),[o,i]=p.useState(null),[s,a]=p.useState(!1),[l,c]=p.useState(!1),[d,f]=p.useState(!1),[h,b]=p.useState(""),[y,v]=p.useState(!1),[C,g]=p.useState(""),[m,x]=p.useState("info"),w=localStorage.getItem("token");p.useEffect(()=>{k()},[e]);const k=async()=>{if(!e){b("User not logged in");return}if(!w){b("No token found, please log in again");return}f(!0);try{const M=await ye.get(`/api/check-in/all?user_id=${e}`,{headers:{Authorization:`Bearer ${w}`}});if(console.log("API Response:",M.data),Array.isArray(M.data)&&M.data.every(I=>I._id&&I._id.$oid&&I.check_in_time&&I.check_in_time.$date)){const I=M.data.map(N=>({...N,_id:N._id.$oid,check_in_time:new Date(N.check_in_time.$date).toLocaleString()}));r(I)}else console.error("Data received is not in expected array format:",M.data),b("Unexpected data format");f(!1)}catch(M){console.error("Error during fetch:",M),b(M.message),f(!1)}},P=M=>{const I=n.find(N=>N._id===M);I&&(i(I),console.log("Selected check-in for details or update:",I),a(!0))},R=()=>{a(!1),c(!1)},E=async()=>{if(o){try{await ye.delete(`/api/check-in/${o._id}`,{headers:{Authorization:`Bearer ${w}`}}),g("Check-in deleted successfully"),x("success"),k(),R()}catch{g("Failed to delete check-in"),x("error")}v(!0)}},j=()=>{t(`/user/check_in/${o._id}`),console.log("Redirecting to update check-in form",o._id)},T=(M,I)=>{I!=="clickaway"&&v(!1)},O=()=>{c(!0)};return e?d?u.jsx(ve,{variant:"h6",children:"Loading..."}):h?u.jsxs(ve,{variant:"h6",children:["Error: ",h]}):u.jsxs(Ke,{sx:{margin:3,maxWidth:600,mx:"auto",maxHeight:"91vh",overflow:"auto"},children:[u.jsx(ve,{variant:"h4",gutterBottom:!0,children:"Track Your Commitments"}),u.jsx(ca,{sx:{mb:2}}),n.length>0?u.jsx(ja,{children:n.map(M=>u.jsxs(eD,{children:[u.jsx(QM,{children:u.jsx(yr,{sx:{bgcolor:"primary.main"},children:u.jsx(jS,{})})}),u.jsx(da,{primary:`Check-In: ${M.check_in_time}`,secondary:u.jsx(R3,{label:M.frequency,icon:u.jsx(OS,{}),size:"small"})}),u.jsx(Hn,{title:"More options",children:u.jsx(Qe,{onClick:()=>P(M._id),children:u.jsx(IS,{})})})]},M._id))}):u.jsx(ve,{variant:"subtitle1",children:"No check-ins found."}),u.jsxs(yp,{open:s,onClose:R,children:[u.jsx(Sp,{children:"Check-In Details"}),u.jsx(bp,{children:u.jsxs(ve,{component:"div",children:[u.jsxs(ve,{variant:"body1",children:[u.jsx("strong",{children:"Time:"})," ",o==null?void 0:o.check_in_time]}),u.jsxs(ve,{variant:"body1",children:[u.jsx("strong",{children:"Frequency:"})," ",o==null?void 0:o.frequency]}),u.jsxs(ve,{variant:"body1",children:[u.jsx("strong",{children:"Status:"})," ",o==null?void 0:o.status]}),u.jsxs(ve,{variant:"body1",children:[u.jsx("strong",{children:"Notify:"})," ",o!=null&&o.notify?"Yes":"No"]})]})}),u.jsxs(xp,{children:[u.jsx(gt,{onClick:j,startIcon:u.jsx(NS,{}),children:"Update"}),u.jsx(gt,{onClick:O,startIcon:u.jsx(MS,{}),color:"error",children:"Delete"}),u.jsx(gt,{onClick:R,children:"Close"})]})]}),u.jsxs(yp,{open:l,onClose:R,children:[u.jsx(Sp,{children:"Confirm Deletion"}),u.jsx(bp,{children:u.jsx(Y2,{children:"Are you sure you want to delete this check-in? This action cannot be undone."})}),u.jsxs(xp,{children:[u.jsx(gt,{onClick:E,color:"error",children:"Delete"}),u.jsx(gt,{onClick:R,children:"Cancel"})]})]}),u.jsx(lo,{open:y,autoHideDuration:6e3,onClose:T,children:u.jsx(tD,{onClose:T,severity:m,children:C})})]}):u.jsx(ve,{variant:"h6",children:"Please log in to see your check-ins."})}const fr=({children:e})=>{const t=localStorage.getItem("token");return console.log("isAuthenticated:",t),t?e:u.jsx(TP,{to:"/auth",replace:!0})};var pg={},rD=de;Object.defineProperty(pg,"__esModule",{value:!0});var LS=pg.default=void 0,oD=rD(ge()),iD=u;LS=pg.default=(0,oD.default)((0,iD.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 14H4V8l8 5 8-5zm-8-7L4 6h16z"}),"MailOutline");function sD(){const[e,t]=p.useState(""),[n,r]=p.useState(""),[o,i]=p.useState(!1),[s,a]=p.useState(!1),l=async c=>{var d,f;c.preventDefault(),a(!0);try{const h=await ye.post("/api/user/request_reset",{email:e});r(h.data.message),i(!1)}catch(h){r(((f=(d=h.response)==null?void 0:d.data)==null?void 0:f.message)||"Failed to send reset link. Please try again."),i(!0)}a(!1)};return u.jsx(Ke,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",sx:{background:"linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)","& .MuiPaper-root":{background:"#fff",padding:"30px",width:"400px",textAlign:"center"}},children:u.jsxs(gn,{elevation:3,style:{padding:"30px",width:"400px",textAlign:"center"},children:[u.jsx(ve,{variant:"h5",component:"h1",marginBottom:"20px",children:"Reset Your Password"}),u.jsxs("form",{onSubmit:l,children:[u.jsx(qe,{label:"Email Address",type:"email",value:e,onChange:c=>t(c.target.value),variant:"outlined",fullWidth:!0,required:!0,margin:"normal",InputProps:{endAdornment:u.jsx(LS,{})}}),u.jsx(gt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,disabled:s,endIcon:s?null:u.jsx(Ki,{}),children:s?u.jsx(kn,{size:24}):"Send Reset Link"})]}),n&&u.jsx(ur,{severity:o?"error":"success",sx:{maxWidth:"325px",mt:2},children:n})]})})}var hg={},aD=de;Object.defineProperty(hg,"__esModule",{value:!0});var Rp=hg.default=void 0,lD=aD(ge()),cD=u;Rp=hg.default=(0,lD.default)((0,cD.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");var mg={},uD=de;Object.defineProperty(mg,"__esModule",{value:!0});var AS=mg.default=void 0,dD=uD(ge()),fD=u;AS=mg.default=(0,dD.default)((0,fD.jsx)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l4 4 4-4H6c0-3.86 3.14-7 7-7s7 3.14 7 7-3.14 7-7 7c-1.9 0-3.62-.76-4.88-1.99L6.7 18.42C8.32 20.01 10.55 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m2 8v-1c0-1.1-.9-2-2-2s-2 .9-2 2v1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1m-1 0h-2v-1c0-.55.45-1 1-1s1 .45 1 1z"}),"LockReset");function pD(){const e=Ao(),{token:t}=xa(),[n,r]=p.useState(""),[o,i]=p.useState(""),[s,a]=p.useState(!1),[l,c]=p.useState(""),[d,f]=p.useState(!1),h=async y=>{if(y.preventDefault(),n!==o){c("Passwords do not match."),f(!0);return}try{const v=await ye.post(`/api/user/reset_password/${t}`,{password:n});c(v.data.message),f(!1),setTimeout(()=>e("/auth"),2e3)}catch(v){c(v.response.data.error),f(!0)}},b=()=>{a(!s)};return u.jsx(Ke,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",sx:{background:"linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)","& .MuiPaper-root":{padding:"40px",width:"400px",textAlign:"center",marginTop:"20px",borderRadius:"10px"}},children:u.jsxs(gn,{elevation:6,children:[u.jsxs(ve,{variant:"h5",component:"h1",marginBottom:"2",children:["Reset Your Password ",u.jsx(AS,{})]}),u.jsxs("form",{onSubmit:h,children:[u.jsx(qe,{label:"New Password",type:s?"text":"password",value:n,onChange:y=>r(y.target.value),variant:"outlined",fullWidth:!0,required:!0,margin:"normal",InputProps:{endAdornment:u.jsx(yc,{position:"end",children:u.jsx(Qe,{"aria-label":"toggle password visibility",onClick:b,children:s?u.jsx(Rp,{}):u.jsx(wc,{})})})}}),u.jsx(qe,{label:"Confirm New Password",type:s?"text":"password",value:o,onChange:y=>i(y.target.value),variant:"outlined",fullWidth:!0,required:!0,margin:"normal",InputProps:{endAdornment:u.jsx(yc,{position:"end",children:u.jsx(Qe,{"aria-label":"toggle password visibility",onClick:b,children:s?u.jsx(Rp,{}):u.jsx(wc,{})})})}}),u.jsx(gt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,sx:{mt:2},endIcon:u.jsx(Ki,{}),children:"Reset Password"})]}),l&&u.jsx(ur,{severity:d?"error":"success",sx:{mt:2,maxWidth:"325px"},children:l})]})})}function hD(){const{user:e}=p.useContext(lr);return p.useEffect(()=>{document.body.style.backgroundColor="#f5f5f5"},[]),u.jsx(mD,{children:u.jsxs(jP,{children:[u.jsx(rn,{path:"/",element:u.jsx(fr,{children:e!=null&&e.userId?u.jsx(NL,{}):u.jsx(Py,{})})}),u.jsx(rn,{path:"/chat",element:u.jsx(fr,{children:u.jsx(Py,{})})}),u.jsx(rn,{path:"/reset_password/:token",element:u.jsx(pD,{})}),u.jsx(rn,{path:"/request_reset",element:u.jsx(sD,{})}),u.jsx(rn,{path:"/auth",element:u.jsx(YL,{})}),u.jsx(rn,{path:"/user/profile/:userId",element:u.jsx(fr,{children:u.jsx($A,{})})}),u.jsx(rn,{path:"/user/mood_logging",element:u.jsx(fr,{children:u.jsx(bz,{})})}),u.jsx(rn,{path:"/user/mood_logs",element:u.jsx(fr,{children:u.jsx(Sz,{})})}),u.jsx(rn,{path:"/user/check_in",element:u.jsx(fr,{children:u.jsx(kp,{userId:e==null?void 0:e.userId,checkInId:"",update:!1})})}),u.jsx(rn,{path:"/user/check_in/:checkInId",element:u.jsx(fr,{children:u.jsx(kp,{userId:e==null?void 0:e.userId,update:!0})})}),u.jsx(rn,{path:"/user/chat_log_Manager",element:u.jsx(fr,{children:u.jsx(gz,{})})}),u.jsx(rn,{path:"/user/check_ins/:userId",element:u.jsx(fr,{children:u.jsx(nD,{})})})]})})}function mD({children:e}){p.useContext(lr);const t=oo(),r=!["/auth","/request_reset",new RegExp("^/reset_password/[^/]+$")].some(l=>typeof l=="string"?l===t.pathname:l.test(t.pathname)),o=r?6:0,[i,s]=p.useState(!0),a=()=>{s(!i)};return u.jsxs(Ke,{sx:{display:"flex",maxHeight:"100vh"},children:[u.jsx(hm,{}),r&&u.jsx(iz,{toggleSidebar:a}),r&&i&&u.jsx(YA,{}),u.jsx(Ke,{component:"main",sx:{flexGrow:1,p:o},children:e})]})}function gD(e){const t="=".repeat((4-e.length%4)%4),n=(e+t).replace(/-/g,"+").replace(/_/g,"/"),r=window.atob(n),o=new Uint8Array(r.length);for(let i=0;i{if(t!=="granted")throw new Error("Permission not granted for Notification");return e.pushManager.getSubscription()}).then(function(t){return t||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:gD(yD)})}).then(function(t){console.log("Subscription:",t);const n={p256dh:btoa(String.fromCharCode.apply(null,new Uint8Array(t.getKey("p256dh")))),auth:btoa(String.fromCharCode.apply(null,new Uint8Array(t.getKey("auth"))))};if(console.log("Subscription keys:",n),!n.p256dh||!n.auth)throw console.error("Subscription object:",t),new Error("Subscription keys are missing");const r={endpoint:t.endpoint,keys:n},o=vD();if(!o)throw new Error("No token found");return fetch("/api/subscribe",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`},body:JSON.stringify(r)})}).then(t=>t.json()).then(t=>console.log("Subscription response:",t)).catch(t=>console.error("Subscription failed:",t))}).catch(function(e){console.error("Service Worker registration failed:",e)})});Jd.createRoot(document.getElementById("root")).render(u.jsx(DP,{children:u.jsx(qP,{children:u.jsx(hD,{})})})); diff --git a/client/dist/assets/index-lS-_zLkx.css b/client/dist/assets/index-lS-_zLkx.css new file mode 100644 index 00000000..10ee0be8 --- /dev/null +++ b/client/dist/assets/index-lS-_zLkx.css @@ -0,0 +1 @@ +.mood-logging-container{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;font-family:Arial,sans-serif}.mood-logging{width:90%;max-width:500px;padding:25px;border-radius:10px;box-shadow:0 10px 25px #0000001a;transition:box-shadow .3s ease-in-out}.mood-logging:hover{box-shadow:0 20px 45px #00000026}.input-group{display:flex;flex-direction:column}input[type=text]{padding:12px 20px;margin:10px 0;border:2px solid #ccc;border-radius:5px;box-sizing:border-box;font-size:16px;transition:border-color .3s ease-in-out}input[type=text]:focus{border-color:#007bff;outline:none}.submit-button{display:flex;align-items:center;justify-content:center;width:100%;background-color:#007bff;color:#fff;padding:12px 20px;border:none;border-radius:5px;cursor:pointer;font-size:18px;margin-top:20px;transition:background-color .3s ease-in-out}.submit-button:hover{background-color:#0056b3}.message{text-align:center;margin-top:15px;padding:10px;font-size:16px;color:#2c3e50;border-radius:5px;background-color:#e0e0e0}.mood-logs{max-width:600px;margin:50px auto;padding:20px;box-shadow:0 4px 8px #0000001a;border-radius:8px;background-color:#fff}h2{display:flex;align-items:center;font-size:24px}.icon-large{font-size:40px;margin-right:7px}.mood-logs h2{text-align:center;color:#333}ul{list-style-type:none;padding:0}li{padding:10px;border-bottom:1px solid #ccc}li:last-child{border-bottom:none}.error{color:red;text-align:center} diff --git a/client/dist/index.html b/client/dist/index.html new file mode 100644 index 00000000..46961f03 --- /dev/null +++ b/client/dist/index.html @@ -0,0 +1,19 @@ + + + + + + + + + Mental Health App + + + + +

+ + \ No newline at end of file From bd0222cf214841fde6d753e1947272c4b5961ebd Mon Sep 17 00:00:00 2001 From: DHRUMIL PATEL <123137675+dhrumilp12@users.noreply.github.com> Date: Tue, 25 Jun 2024 01:31:36 -0400 Subject: [PATCH 12/38] ci: add Azure Static Web Apps workflow file on-behalf-of: @Azure opensource@microsoft.com --- ...e-static-web-apps-green-sand-04b157b0f.yml | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/azure-static-web-apps-green-sand-04b157b0f.yml diff --git a/.github/workflows/azure-static-web-apps-green-sand-04b157b0f.yml b/.github/workflows/azure-static-web-apps-green-sand-04b157b0f.yml new file mode 100644 index 00000000..09ba7a8a --- /dev/null +++ b/.github/workflows/azure-static-web-apps-green-sand-04b157b0f.yml @@ -0,0 +1,46 @@ +name: Azure Static Web Apps CI/CD + +on: + push: + branches: + - dev + pull_request: + types: [opened, synchronize, reopened, closed] + branches: + - dev + +jobs: + build_and_deploy_job: + if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed') + runs-on: ubuntu-latest + name: Build and Deploy Job + steps: + - uses: actions/checkout@v3 + with: + submodules: true + lfs: false + - name: Build And Deploy + id: builddeploy + uses: Azure/static-web-apps-deploy@v1 + with: + azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_GREEN_SAND_04B157B0F }} + repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments) + action: "upload" + ###### Repository/Build Configurations - These values can be configured to match your app requirements. ###### + # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig + app_location: "./client" # App source code path + api_location: "" # Api source code path - optional + output_location: "dist" # Built app content directory - optional + ###### End of Repository/Build Configurations ###### + + close_pull_request_job: + if: github.event_name == 'pull_request' && github.event.action == 'closed' + runs-on: ubuntu-latest + name: Close Pull Request Job + steps: + - name: Close Pull Request + id: closepullrequest + uses: Azure/static-web-apps-deploy@v1 + with: + azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_GREEN_SAND_04B157B0F }} + action: "close" From 952bb9528a347659a052d8fb1e4f6255ea604876 Mon Sep 17 00:00:00 2001 From: DHRUMIL PATEL <123137675+dhrumilp12@users.noreply.github.com> Date: Tue, 25 Jun 2024 01:32:28 -0400 Subject: [PATCH 13/38] Merge branch 'main' of https://github.com/dhrumilp12/Mental-Health-Companion --- server/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/app.py b/server/app.py index 0eeccd32..f570477e 100644 --- a/server/app.py +++ b/server/app.py @@ -42,7 +42,7 @@ def run_app(): jwt = JWTManager(app) cors_config = { r"/api/*": { - "origins": ["https://lemon-forest-0b12e820f.5.azurestaticapps.net"], + "origins": ["https://green-sand-04b157b0f.5.azurestaticapps.net"], "methods": ["GET", "POST", "PUT", "DELETE", "OPTIONS"], "allow_headers": [ "Authorization", From eb776c1b5b4a1015bf842678031d6055626968ba Mon Sep 17 00:00:00 2001 From: DHRUMIL PATEL <123137675+dhrumilp12@users.noreply.github.com> Date: Tue, 25 Jun 2024 01:38:53 -0400 Subject: [PATCH 14/38] . --- client/.env.production | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/.env.production b/client/.env.production index 78a72c85..588f48b0 100644 --- a/client/.env.production +++ b/client/.env.production @@ -1 +1 @@ -VITE_API_URL=https://earlent.thankfulpebble-55902899.westus2.azurecontainerapps.io/api \ No newline at end of file +VITE_API_URL=https://earlent.thankfulpebble-55902899.westus2.azurecontainerapps.io \ No newline at end of file From 70a1cf510977847f676d074d577e1439b3763032 Mon Sep 17 00:00:00 2001 From: DHRUMIL PATEL <123137675+dhrumilp12@users.noreply.github.com> Date: Tue, 25 Jun 2024 01:46:56 -0400 Subject: [PATCH 15/38] . --- client/.env.production | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/.env.production b/client/.env.production index 588f48b0..78a72c85 100644 --- a/client/.env.production +++ b/client/.env.production @@ -1 +1 @@ -VITE_API_URL=https://earlent.thankfulpebble-55902899.westus2.azurecontainerapps.io \ No newline at end of file +VITE_API_URL=https://earlent.thankfulpebble-55902899.westus2.azurecontainerapps.io/api \ No newline at end of file From a720b71ec9c4ff6978403e71fc6131875ca9a583 Mon Sep 17 00:00:00 2001 From: DHRUMIL PATEL <123137675+dhrumilp12@users.noreply.github.com> Date: Tue, 25 Jun 2024 03:40:33 -0400 Subject: [PATCH 16/38] . --- server/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/Dockerfile b/server/Dockerfile index f202035c..16ea6fef 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -23,4 +23,4 @@ COPY . ./ RUN mv .env.production .env # # Execute Flask -CMD poetry run gunicorn -b ${FLASK_RUN_HOST}:${FLASK_RUN_PORT} app:app \ No newline at end of file +CMD ["poetry", "run", "gunicorn", "-b", "0.0.0.0:8000", "app:app"] From cf2bd6af6ddf8310945462f9eb8e5437854c6eb5 Mon Sep 17 00:00:00 2001 From: Josue Santana Date: Tue, 25 Jun 2024 12:38:58 -0400 Subject: [PATCH 17/38] chore: Update CORS configuration for app.py and bump version to 1.1.0 in pyproject.toml --- server/app.py | 14 +++++++++++++- server/pyproject.toml | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/server/app.py b/server/app.py index a7671922..4cef5755 100644 --- a/server/app.py +++ b/server/app.py @@ -40,7 +40,19 @@ def run_app(): mail = Mail(app) jwt = JWTManager(app) - CORS(app) + cors_config = { + r"*": { + "origins": ["https://mental-health-app-web.azurewebsites.net", "127.0.0.1"], + "methods": ["GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"], + "allow_headers": [ + "Authorization", + "Content-Type", + "X-Requested-With", + "X-CSRF-Token" + ] + } + } + CORS(app, resources=cors_config) # Register routes app.register_blueprint(user_routes) diff --git a/server/pyproject.toml b/server/pyproject.toml index 9df13e76..788d1916 100644 --- a/server/pyproject.toml +++ b/server/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "earlent-server" -version = "1.0.0" +version = "1.1.0" description = "An application meant to help students and professionals with stress and anxiety." authors = ["Dhrumil Patel ", "Anthony Santana "] readme = "README.md" From 972cca7aaa4a9fea1040cffddcf7606723c99193 Mon Sep 17 00:00:00 2001 From: DHRUMIL PATEL <123137675+dhrumilp12@users.noreply.github.com> Date: Tue, 25 Jun 2024 13:08:17 -0400 Subject: [PATCH 18/38] check-in list enhanced design. --- client/src/Components/checkInsList.jsx | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/client/src/Components/checkInsList.jsx b/client/src/Components/checkInsList.jsx index a5888724..d6d3cc78 100644 --- a/client/src/Components/checkInsList.jsx +++ b/client/src/Components/checkInsList.jsx @@ -144,7 +144,7 @@ function CheckInsList() { if (!userId) return Please log in to see your check-ins.; if (loading) return Loading...; - if (error) return Error: {error}; + return ( @@ -172,7 +172,23 @@ function CheckInsList() { ))} ) : ( - No check-ins found. + + No check-ins found. + + )} {/* Dialog for Check-In Details */} From 2c5491bf7b4b45d1ea6235e802b4fde477db34dc Mon Sep 17 00:00:00 2001 From: DHRUMIL PATEL <123137675+dhrumilp12@users.noreply.github.com> Date: Tue, 25 Jun 2024 13:08:37 -0400 Subject: [PATCH 19/38] . --- .../assets/{index-OqFv3qDw.js => index-D9yk9kGM.js} | 12 ++++++------ client/dist/index.html | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) rename client/dist/assets/{index-OqFv3qDw.js => index-D9yk9kGM.js} (97%) diff --git a/client/dist/assets/index-OqFv3qDw.js b/client/dist/assets/index-D9yk9kGM.js similarity index 97% rename from client/dist/assets/index-OqFv3qDw.js rename to client/dist/assets/index-D9yk9kGM.js index 223cb7fa..f2e5271c 100644 --- a/client/dist/assets/index-OqFv3qDw.js +++ b/client/dist/assets/index-D9yk9kGM.js @@ -42,7 +42,7 @@ Error generating stack: `+i.message+` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Nv]=this[Nv]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=is(s);r[a]||(kR(o,s),r[a]=!0)}return L.isArray(t)?t.forEach(i):i(t),this}}Xt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);L.reduceDescriptors(Xt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});L.freezeMethods(Xt);function $d(e,t){const n=this||ya,r=t||n,o=Xt.from(r.headers);let i=r.data;return L.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function tb(e){return!!(e&&e.__CANCEL__)}function Ai(e,t,n){me.call(this,e??"canceled",me.ERR_CANCELED,t,n),this.name="CanceledError"}L.inherits(Ai,me,{__CANCEL__:!0});function nb(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new me("Request failed with status code "+n.status,[me.ERR_BAD_REQUEST,me.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function RR(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function PR(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),d=r[i];s||(s=c),n[o]=l,r[o]=c;let f=i,h=0;for(;f!==o;)h+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-sr)return o&&(clearTimeout(o),o=null),n=a,e.apply(null,arguments);o||(o=setTimeout(()=>(o=null,n=Date.now(),e.apply(null,arguments)),r-(a-n)))}}const rc=(e,t,n=3)=>{let r=0;const o=PR(50,250);return ER(i=>{const s=i.loaded,a=i.lengthComputable?i.total:void 0,l=s-r,c=o(l),d=s<=a;r=s;const f={loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&d?(a-s)/c:void 0,event:i,lengthComputable:a!=null};f[t?"download":"upload"]=!0,e(f)},n)},$R=Kn.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let s=i;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(s){const a=L.isString(s)?o(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}(),TR=Kn.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];L.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),L.isString(r)&&s.push("path="+r),L.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function _R(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function jR(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function rb(e,t){return e&&!_R(t)?jR(e,t):t}const Lv=e=>e instanceof Xt?{...e}:e;function _o(e,t){t=t||{};const n={};function r(c,d,f){return L.isPlainObject(c)&&L.isPlainObject(d)?L.merge.call({caseless:f},c,d):L.isPlainObject(d)?L.merge({},d):L.isArray(d)?d.slice():d}function o(c,d,f){if(L.isUndefined(d)){if(!L.isUndefined(c))return r(void 0,c,f)}else return r(c,d,f)}function i(c,d){if(!L.isUndefined(d))return r(void 0,d)}function s(c,d){if(L.isUndefined(d)){if(!L.isUndefined(c))return r(void 0,c)}else return r(void 0,d)}function a(c,d,f){if(f in t)return r(c,d);if(f in e)return r(void 0,c)}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(c,d)=>o(Lv(c),Lv(d),!0)};return L.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=l[d]||o,h=f(e[d],t[d],d);L.isUndefined(h)&&f!==a||(n[d]=h)}),n}const ob=e=>{const t=_o({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;t.headers=s=Xt.from(s),t.url=Jx(rb(t.baseURL,t.url),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(L.isFormData(n)){if(Kn.hasStandardBrowserEnv||Kn.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((l=s.getContentType())!==!1){const[c,...d]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];s.setContentType([c||"multipart/form-data",...d].join("; "))}}if(Kn.hasStandardBrowserEnv&&(r&&L.isFunction(r)&&(r=r(t)),r||r!==!1&&$R(t.url))){const c=o&&i&&TR.read(i);c&&s.set(o,c)}return t},OR=typeof XMLHttpRequest<"u",IR=OR&&function(e){return new Promise(function(n,r){const o=ob(e);let i=o.data;const s=Xt.from(o.headers).normalize();let{responseType:a}=o,l;function c(){o.cancelToken&&o.cancelToken.unsubscribe(l),o.signal&&o.signal.removeEventListener("abort",l)}let d=new XMLHttpRequest;d.open(o.method.toUpperCase(),o.url,!0),d.timeout=o.timeout;function f(){if(!d)return;const b=Xt.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),v={data:!a||a==="text"||a==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:b,config:e,request:d};nb(function(g){n(g),c()},function(g){r(g),c()},v),d=null}"onloadend"in d?d.onloadend=f:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(f)},d.onabort=function(){d&&(r(new me("Request aborted",me.ECONNABORTED,o,d)),d=null)},d.onerror=function(){r(new me("Network Error",me.ERR_NETWORK,o,d)),d=null},d.ontimeout=function(){let y=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const v=o.transitional||Zx;o.timeoutErrorMessage&&(y=o.timeoutErrorMessage),r(new me(y,v.clarifyTimeoutError?me.ETIMEDOUT:me.ECONNABORTED,o,d)),d=null},i===void 0&&s.setContentType(null),"setRequestHeader"in d&&L.forEach(s.toJSON(),function(y,v){d.setRequestHeader(v,y)}),L.isUndefined(o.withCredentials)||(d.withCredentials=!!o.withCredentials),a&&a!=="json"&&(d.responseType=o.responseType),typeof o.onDownloadProgress=="function"&&d.addEventListener("progress",rc(o.onDownloadProgress,!0)),typeof o.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",rc(o.onUploadProgress)),(o.cancelToken||o.signal)&&(l=b=>{d&&(r(!b||b.type?new Ai(null,e,d):b),d.abort(),d=null)},o.cancelToken&&o.cancelToken.subscribe(l),o.signal&&(o.signal.aborted?l():o.signal.addEventListener("abort",l)));const h=RR(o.url);if(h&&Kn.protocols.indexOf(h)===-1){r(new me("Unsupported protocol "+h+":",me.ERR_BAD_REQUEST,e));return}d.send(i||null)})},MR=(e,t)=>{let n=new AbortController,r;const o=function(l){if(!r){r=!0,s();const c=l instanceof Error?l:this.reason;n.abort(c instanceof me?c:new Ai(c instanceof Error?c.message:c))}};let i=t&&setTimeout(()=>{o(new me(`timeout ${t} of ms exceeded`,me.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",o):l.unsubscribe(o))}),e=null)};e.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",o));const{signal:a}=n;return a.unsubscribe=s,[a,()=>{i&&clearTimeout(i),i=null}]},NR=function*(e,t){let n=e.byteLength;if(!t||n{const i=LR(e,t,o);let s=0;return new ReadableStream({type:"bytes",async pull(a){const{done:l,value:c}=await i.next();if(l){a.close(),r();return}let d=c.byteLength;n&&n(s+=d),a.enqueue(new Uint8Array(c))},cancel(a){return r(a),i.return()}},{highWaterMark:2})},zv=(e,t)=>{const n=e!=null;return r=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:r}))},Hc=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ib=Hc&&typeof ReadableStream=="function",Gf=Hc&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),AR=ib&&(()=>{let e=!1;const t=new Request(Kn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),Dv=64*1024,Yf=ib&&!!(()=>{try{return L.isReadableStream(new Response("").body)}catch{}})(),oc={stream:Yf&&(e=>e.body)};Hc&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!oc[t]&&(oc[t]=L.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new me(`Response type '${t}' is not supported`,me.ERR_NOT_SUPPORT,r)})})})(new Response);const zR=async e=>{if(e==null)return 0;if(L.isBlob(e))return e.size;if(L.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(L.isArrayBufferView(e))return e.byteLength;if(L.isURLSearchParams(e)&&(e=e+""),L.isString(e))return(await Gf(e)).byteLength},DR=async(e,t)=>{const n=L.toFiniteNumber(e.getContentLength());return n??zR(t)},FR=Hc&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:d,withCredentials:f="same-origin",fetchOptions:h}=ob(e);c=c?(c+"").toLowerCase():"text";let[b,y]=o||i||s?MR([o,i],s):[],v,C;const g=()=>{!v&&setTimeout(()=>{b&&b.unsubscribe()}),v=!0};let m;try{if(l&&AR&&n!=="get"&&n!=="head"&&(m=await DR(d,r))!==0){let P=new Request(t,{method:"POST",body:r,duplex:"half"}),R;L.isFormData(r)&&(R=P.headers.get("content-type"))&&d.setContentType(R),P.body&&(r=Av(P.body,Dv,zv(m,rc(l)),null,Gf))}L.isString(f)||(f=f?"cors":"omit"),C=new Request(t,{...h,signal:b,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",withCredentials:f});let x=await fetch(C);const w=Yf&&(c==="stream"||c==="response");if(Yf&&(a||w)){const P={};["status","statusText","headers"].forEach(E=>{P[E]=x[E]});const R=L.toFiniteNumber(x.headers.get("content-length"));x=new Response(Av(x.body,Dv,a&&zv(R,rc(a,!0)),w&&g,Gf),P)}c=c||"text";let k=await oc[L.findKey(oc,c)||"text"](x,e);return!w&&g(),y&&y(),await new Promise((P,R)=>{nb(P,R,{data:k,headers:Xt.from(x.headers),status:x.status,statusText:x.statusText,config:e,request:C})})}catch(x){throw g(),x&&x.name==="TypeError"&&/fetch/i.test(x.message)?Object.assign(new me("Network Error",me.ERR_NETWORK,e,C),{cause:x.cause||x}):me.from(x,x&&x.code,e,C)}}),Xf={http:rR,xhr:IR,fetch:FR};L.forEach(Xf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Fv=e=>`- ${e}`,BR=e=>L.isFunction(e)||e===null||e===!1,sb={getAdapter:e=>{e=L.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since : `+i.map(Fv).join(` `):" "+Fv(i[0]):"as no adapter specified";throw new me("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:Xf};function Td(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ai(null,e)}function Bv(e){return Td(e),e.headers=Xt.from(e.headers),e.data=$d.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),sb.getAdapter(e.adapter||ya.adapter)(e).then(function(r){return Td(e),r.data=$d.call(e,e.transformResponse,r),r.headers=Xt.from(r.headers),r},function(r){return tb(r)||(Td(e),r&&r.response&&(r.response.data=$d.call(e,e.transformResponse,r.response),r.response.headers=Xt.from(r.response.headers))),Promise.reject(r)})}const ab="1.7.2",Rh={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Rh[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Wv={};Rh.transitional=function(t,n,r){function o(i,s){return"[Axios v"+ab+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,a)=>{if(t===!1)throw new me(o(s," has been removed"+(n?" in "+n:"")),me.ERR_DEPRECATED);return n&&!Wv[s]&&(Wv[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,a):!0}};function WR(e,t,n){if(typeof e!="object")throw new me("options must be an object",me.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const a=e[i],l=a===void 0||s(a,i,e);if(l!==!0)throw new me("option "+i+" must be "+l,me.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new me("Unknown option "+i,me.ERR_BAD_OPTION)}}const Qf={assertOptions:WR,validators:Rh},Or=Qf.validators;class wo{constructor(t){this.defaults=t,this.interceptors={request:new Mv,response:new Mv}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=_o(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Qf.assertOptions(r,{silentJSONParsing:Or.transitional(Or.boolean),forcedJSONParsing:Or.transitional(Or.boolean),clarifyTimeoutError:Or.transitional(Or.boolean)},!1),o!=null&&(L.isFunction(o)?n.paramsSerializer={serialize:o}:Qf.assertOptions(o,{encode:Or.function,serialize:Or.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&L.merge(i.common,i[n.method]);i&&L.forEach(["delete","get","head","post","put","patch","common"],y=>{delete i[y]}),n.headers=Xt.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(l=l&&v.synchronous,a.unshift(v.fulfilled,v.rejected))});const c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let d,f=0,h;if(!l){const y=[Bv.bind(this),void 0];for(y.unshift.apply(y,a),y.push.apply(y,c),h=y.length,d=Promise.resolve(n);f{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{r.subscribe(a),i=a}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,a){r.reason||(r.reason=new Ai(i,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Ph(function(o){t=o}),cancel:t}}}function UR(e){return function(n){return e.apply(null,n)}}function HR(e){return L.isObject(e)&&e.isAxiosError===!0}const Jf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Jf).forEach(([e,t])=>{Jf[t]=e});function lb(e){const t=new wo(e),n=Fx(wo.prototype.request,t);return L.extend(n,wo.prototype,t,{allOwnKeys:!0}),L.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return lb(_o(e,o))},n}const ye=lb(ya);ye.Axios=wo;ye.CanceledError=Ai;ye.CancelToken=Ph;ye.isCancel=tb;ye.VERSION=ab;ye.toFormData=Uc;ye.AxiosError=me;ye.Cancel=ye.CanceledError;ye.all=function(t){return Promise.all(t)};ye.spread=UR;ye.isAxiosError=HR;ye.mergeConfig=_o;ye.AxiosHeaders=Xt;ye.formToJSON=e=>eb(L.isHTMLForm(e)?new FormData(e):e);ye.getAdapter=sb.getAdapter;ye.HttpStatusCode=Jf;ye.default=ye;/** +`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=_o(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Qf.assertOptions(r,{silentJSONParsing:Or.transitional(Or.boolean),forcedJSONParsing:Or.transitional(Or.boolean),clarifyTimeoutError:Or.transitional(Or.boolean)},!1),o!=null&&(L.isFunction(o)?n.paramsSerializer={serialize:o}:Qf.assertOptions(o,{encode:Or.function,serialize:Or.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&L.merge(i.common,i[n.method]);i&&L.forEach(["delete","get","head","post","put","patch","common"],y=>{delete i[y]}),n.headers=Xt.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(l=l&&v.synchronous,a.unshift(v.fulfilled,v.rejected))});const c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let d,f=0,h;if(!l){const y=[Bv.bind(this),void 0];for(y.unshift.apply(y,a),y.push.apply(y,c),h=y.length,d=Promise.resolve(n);f{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{r.subscribe(a),i=a}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,a){r.reason||(r.reason=new Ai(i,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Ph(function(o){t=o}),cancel:t}}}function UR(e){return function(n){return e.apply(null,n)}}function HR(e){return L.isObject(e)&&e.isAxiosError===!0}const Jf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Jf).forEach(([e,t])=>{Jf[t]=e});function lb(e){const t=new wo(e),n=Fx(wo.prototype.request,t);return L.extend(n,wo.prototype,t,{allOwnKeys:!0}),L.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return lb(_o(e,o))},n}const ve=lb(ya);ve.Axios=wo;ve.CanceledError=Ai;ve.CancelToken=Ph;ve.isCancel=tb;ve.VERSION=ab;ve.toFormData=Uc;ve.AxiosError=me;ve.Cancel=ve.CanceledError;ve.all=function(t){return Promise.all(t)};ve.spread=UR;ve.isAxiosError=HR;ve.mergeConfig=_o;ve.AxiosHeaders=Xt;ve.formToJSON=e=>eb(L.isHTMLForm(e)?new FormData(e):e);ve.getAdapter=sb.getAdapter;ve.HttpStatusCode=Jf;ve.default=ve;/** * @remix-run/router v1.16.1 * * Copyright (c) Remix Software Inc. @@ -69,7 +69,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function ac(){return ac=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function OP(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function IP(e,t){return e.button===0&&(!t||t==="_self")&&!OP(e)}const MP=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],NP=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],LP="6";try{window.__reactRouterVersion=LP}catch{}const AP=p.createContext({isTransitioning:!1}),zP="startTransition",Kv=Ol[zP];function DP(e){let{basename:t,children:n,future:r,window:o}=e,i=p.useRef();i.current==null&&(i.current=VR({window:o,v5Compat:!0}));let s=i.current,[a,l]=p.useState({action:s.action,location:s.location}),{v7_startTransition:c}=r||{},d=p.useCallback(f=>{c&&Kv?Kv(()=>l(f)):l(f)},[l,c]);return p.useLayoutEffect(()=>s.listen(d),[s,d]),p.createElement(_P,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const FP=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",BP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xb=p.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:s,state:a,target:l,to:c,preventScrollReset:d,unstable_viewTransition:f}=t,h=yb(t,MP),{basename:b}=p.useContext($r),y,v=!1;if(typeof c=="string"&&BP.test(c)&&(y=c,FP))try{let x=new URL(window.location.href),w=c.startsWith("//")?new URL(x.protocol+c):new URL(c),k=ki(w.pathname,b);w.origin===x.origin&&k!=null?c=k+w.search+w.hash:v=!0}catch{}let C=mP(c,{relative:o}),g=HP(c,{replace:s,state:a,target:l,preventScrollReset:d,relative:o,unstable_viewTransition:f});function m(x){r&&r(x),x.defaultPrevented||g(x)}return p.createElement("a",ac({},h,{href:y||C,onClick:v||i?r:m,ref:n,target:l}))}),WP=p.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:s=!1,style:a,to:l,unstable_viewTransition:c,children:d}=t,f=yb(t,NP),h=Kc(l,{relative:f.relative}),b=oo(),y=p.useContext(pb),{navigator:v,basename:C}=p.useContext($r),g=y!=null&&VP(h)&&c===!0,m=v.encodeLocation?v.encodeLocation(h).pathname:h.pathname,x=b.pathname,w=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;o||(x=x.toLowerCase(),w=w?w.toLowerCase():null,m=m.toLowerCase()),w&&C&&(w=ki(w,C)||w);const k=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let P=x===m||!s&&x.startsWith(m)&&x.charAt(k)==="/",R=w!=null&&(w===m||!s&&w.startsWith(m)&&w.charAt(m.length)==="/"),E={isActive:P,isPending:R,isTransitioning:g},j=P?r:void 0,T;typeof i=="function"?T=i(E):T=[i,P?"active":null,R?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let O=typeof a=="function"?a(E):a;return p.createElement(xb,ac({},f,{"aria-current":j,className:T,ref:n,style:O,to:l,unstable_viewTransition:c}),typeof d=="function"?d(E):d)});var np;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(np||(np={}));var Gv;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Gv||(Gv={}));function UP(e){let t=p.useContext(Vc);return t||Ze(!1),t}function HP(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s,unstable_viewTransition:a}=t===void 0?{}:t,l=Ao(),c=oo(),d=Kc(e,{relative:s});return p.useCallback(f=>{if(IP(f,n)){f.preventDefault();let h=r!==void 0?r:ic(c)===ic(d);l(e,{replace:h,state:o,preventScrollReset:i,relative:s,unstable_viewTransition:a})}},[c,l,d,r,o,n,e,i,s,a])}function VP(e,t){t===void 0&&(t={});let n=p.useContext(AP);n==null&&Ze(!1);let{basename:r}=UP(np.useViewTransitionState),o=Kc(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=ki(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=ki(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ep(o.pathname,s)!=null||ep(o.pathname,i)!=null}const lr=p.createContext({user:null}),qP=({children:e})=>{const[t,n]=p.useState(!1),[r,o]=p.useState(null),[i,s]=p.useState(0),[a,l]=p.useState([]),c=p.useCallback(v=>{l(C=>[...C,v])},[l]),d=v=>{l(C=>C.filter((g,m)=>m!==v))},f=()=>{s(i+1)},h=Ao();p.useEffect(()=>{const v=localStorage.getItem("user");console.log("Attempting to load user:",v),v?(console.log("User found in storage:",v),o(JSON.parse(v))):console.log("No user found in storage at initialization.")},[]),p.useEffect(()=>{r?(console.log("Storing user in storage:",r),localStorage.setItem("user",JSON.stringify(r))):(console.log("Removing user from storage."),localStorage.removeItem("user"))},[r]);const b=p.useCallback(async()=>{var v;try{const C=localStorage.getItem("token");if(console.log("Logging out with token:",C),!C){console.error("No token available for logout");return}const g=await ye.post("/api/user/logout",{},{headers:{Authorization:`Bearer ${C}`}});if(g.status===200)o(null),localStorage.removeItem("token"),h("/auth");else throw new Error("Logout failed with status: "+g.status)}catch(C){console.error("Logout failed:",((v=C.response)==null?void 0:v.data)||C.message)}},[h]),y=async(v,C,g)=>{var m,x;try{const w=localStorage.getItem("token"),k=await ye.patch(`/api/user/change_password/${v}`,{current_password:C,new_password:g},{headers:{Authorization:`Bearer ${w}`}});return k.status===200?{success:!0,message:"Password updated successfully!"}:{success:!1,message:k.data.message||"Update failed!"}}catch(w){return w.response.status===403?{success:!1,message:w.response.data.message||"Incorrect current password"}:{success:!1,message:((x=(m=w.response)==null?void 0:m.data)==null?void 0:x.message)||"Network error"}}};return p.useEffect(()=>{const v=C=>{C.data&&C.data.type==="NEW_NOTIFICATION"&&(console.log("Notification received:",C.data.data),c({title:C.data.data.title,message:C.data.data.body}))};return navigator.serviceWorker.addEventListener("message",v),()=>{navigator.serviceWorker.removeEventListener("message",v)}},[c]),u.jsx(lr.Provider,{value:{user:r,setUser:o,logout:b,voiceEnabled:t,setVoiceEnabled:n,changePassword:y,incrementNotificationCount:f,notifications:a,removeNotification:d,addNotification:c},children:e})},na={black:"#000",white:"#fff"},Fo={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"},Bo={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Wo={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"},Uo={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Ho={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"},ss={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"},KP={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function jo(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n=0)continue;n[r]=e[r]}return n}function bb(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var YP=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,XP=bb(function(e){return YP.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function QP(e){if(e.sheet)return e.sheet;for(var t=0;t0?Pt(Fi,--Zt):0,Ri--,ut===10&&(Ri=1,Yc--),ut}function cn(){return ut=Zt2||oa(ut)>3?"":" "}function uE(e,t){for(;--t&&cn()&&!(ut<48||ut>102||ut>57&&ut<65||ut>70&&ut<97););return ba(e,kl()+(t<6&&ir()==32&&cn()==32))}function op(e){for(;cn();)switch(ut){case e:return Zt;case 34:case 39:e!==34&&e!==39&&op(ut);break;case 40:e===41&&op(e);break;case 92:cn();break}return Zt}function dE(e,t){for(;cn()&&e+ut!==57;)if(e+ut===84&&ir()===47)break;return"/*"+ba(t,Zt-1)+"*"+Gc(e===47?e:cn())}function fE(e){for(;!oa(ir());)cn();return ba(e,Zt)}function pE(e){return Pb(Pl("",null,null,null,[""],e=Rb(e),0,[0],e))}function Pl(e,t,n,r,o,i,s,a,l){for(var c=0,d=0,f=s,h=0,b=0,y=0,v=1,C=1,g=1,m=0,x="",w=o,k=i,P=r,R=x;C;)switch(y=m,m=cn()){case 40:if(y!=108&&Pt(R,f-1)==58){rp(R+=Ie(Rl(m),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:R+=Rl(m);break;case 9:case 10:case 13:case 32:R+=cE(y);break;case 92:R+=uE(kl()-1,7);continue;case 47:switch(ir()){case 42:case 47:Qa(hE(dE(cn(),kl()),t,n),l);break;default:R+="/"}break;case 123*v:a[c++]=er(R)*g;case 125*v:case 59:case 0:switch(m){case 0:case 125:C=0;case 59+d:g==-1&&(R=Ie(R,/\f/g,"")),b>0&&er(R)-f&&Qa(b>32?Xv(R+";",r,n,f-1):Xv(Ie(R," ","")+";",r,n,f-2),l);break;case 59:R+=";";default:if(Qa(P=Yv(R,t,n,c,d,o,a,x,w=[],k=[],f),i),m===123)if(d===0)Pl(R,t,P,P,w,i,f,a,k);else switch(h===99&&Pt(R,3)===110?100:h){case 100:case 108:case 109:case 115:Pl(e,P,P,r&&Qa(Yv(e,P,P,0,0,o,a,x,o,w=[],f),k),o,k,f,a,r?w:k);break;default:Pl(R,P,P,P,[""],k,0,a,k)}}c=d=b=0,v=g=1,x=R="",f=s;break;case 58:f=1+er(R),b=y;default:if(v<1){if(m==123)--v;else if(m==125&&v++==0&&lE()==125)continue}switch(R+=Gc(m),m*v){case 38:g=d>0?1:(R+="\f",-1);break;case 44:a[c++]=(er(R)-1)*g,g=1;break;case 64:ir()===45&&(R+=Rl(cn())),h=ir(),d=f=er(x=R+=fE(kl())),m++;break;case 45:y===45&&er(R)==2&&(v=0)}}return i}function Yv(e,t,n,r,o,i,s,a,l,c,d){for(var f=o-1,h=o===0?i:[""],b=jh(h),y=0,v=0,C=0;y0?h[g]+" "+m:Ie(m,/&\f/g,h[g])))&&(l[C++]=x);return Xc(e,t,n,o===0?Th:a,l,c,d)}function hE(e,t,n){return Xc(e,t,n,Sb,Gc(aE()),ra(e,2,-2),0)}function Xv(e,t,n,r){return Xc(e,t,n,_h,ra(e,0,r),ra(e,r+1,-1),r)}function hi(e,t){for(var n="",r=jh(e),o=0;o6)switch(Pt(e,t+1)){case 109:if(Pt(e,t+4)!==45)break;case 102:return Ie(e,/(.+:)(.+)-([^]+)/,"$1"+Oe+"$2-$3$1"+lc+(Pt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~rp(e,"stretch")?Eb(Ie(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Pt(e,t+1)!==115)break;case 6444:switch(Pt(e,er(e)-3-(~rp(e,"!important")&&10))){case 107:return Ie(e,":",":"+Oe)+e;case 101:return Ie(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Oe+(Pt(e,14)===45?"inline-":"")+"box$3$1"+Oe+"$2$3$1"+jt+"$2box$3")+e}break;case 5936:switch(Pt(e,t+11)){case 114:return Oe+e+jt+Ie(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Oe+e+jt+Ie(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Oe+e+jt+Ie(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Oe+e+jt+e+e}return e}var wE=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case _h:t.return=Eb(t.value,t.length);break;case Cb:return hi([as(t,{value:Ie(t.value,"@","@"+Oe)})],o);case Th:if(t.length)return sE(t.props,function(i){switch(iE(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return hi([as(t,{props:[Ie(i,/:(read-\w+)/,":"+lc+"$1")]})],o);case"::placeholder":return hi([as(t,{props:[Ie(i,/:(plac\w+)/,":"+Oe+"input-$1")]}),as(t,{props:[Ie(i,/:(plac\w+)/,":"+lc+"$1")]}),as(t,{props:[Ie(i,/:(plac\w+)/,jt+"input-$1")]})],o)}return""})}},kE=[wE],$b=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var C=v.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||kE,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var C=v.getAttribute("data-emotion").split(" "),g=1;g=0)&&(n[o]=e[o]);return n}function OP(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function IP(e,t){return e.button===0&&(!t||t==="_self")&&!OP(e)}const MP=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],NP=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],LP="6";try{window.__reactRouterVersion=LP}catch{}const AP=p.createContext({isTransitioning:!1}),zP="startTransition",Kv=Ol[zP];function DP(e){let{basename:t,children:n,future:r,window:o}=e,i=p.useRef();i.current==null&&(i.current=VR({window:o,v5Compat:!0}));let s=i.current,[a,l]=p.useState({action:s.action,location:s.location}),{v7_startTransition:c}=r||{},d=p.useCallback(f=>{c&&Kv?Kv(()=>l(f)):l(f)},[l,c]);return p.useLayoutEffect(()=>s.listen(d),[s,d]),p.createElement(_P,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const FP=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",BP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xb=p.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:s,state:a,target:l,to:c,preventScrollReset:d,unstable_viewTransition:f}=t,h=yb(t,MP),{basename:b}=p.useContext($r),y,v=!1;if(typeof c=="string"&&BP.test(c)&&(y=c,FP))try{let x=new URL(window.location.href),w=c.startsWith("//")?new URL(x.protocol+c):new URL(c),k=ki(w.pathname,b);w.origin===x.origin&&k!=null?c=k+w.search+w.hash:v=!0}catch{}let C=mP(c,{relative:o}),g=HP(c,{replace:s,state:a,target:l,preventScrollReset:d,relative:o,unstable_viewTransition:f});function m(x){r&&r(x),x.defaultPrevented||g(x)}return p.createElement("a",ac({},h,{href:y||C,onClick:v||i?r:m,ref:n,target:l}))}),WP=p.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:s=!1,style:a,to:l,unstable_viewTransition:c,children:d}=t,f=yb(t,NP),h=Kc(l,{relative:f.relative}),b=oo(),y=p.useContext(pb),{navigator:v,basename:C}=p.useContext($r),g=y!=null&&VP(h)&&c===!0,m=v.encodeLocation?v.encodeLocation(h).pathname:h.pathname,x=b.pathname,w=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;o||(x=x.toLowerCase(),w=w?w.toLowerCase():null,m=m.toLowerCase()),w&&C&&(w=ki(w,C)||w);const k=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let P=x===m||!s&&x.startsWith(m)&&x.charAt(k)==="/",R=w!=null&&(w===m||!s&&w.startsWith(m)&&w.charAt(m.length)==="/"),E={isActive:P,isPending:R,isTransitioning:g},j=P?r:void 0,T;typeof i=="function"?T=i(E):T=[i,P?"active":null,R?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let O=typeof a=="function"?a(E):a;return p.createElement(xb,ac({},f,{"aria-current":j,className:T,ref:n,style:O,to:l,unstable_viewTransition:c}),typeof d=="function"?d(E):d)});var np;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(np||(np={}));var Gv;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Gv||(Gv={}));function UP(e){let t=p.useContext(Vc);return t||Ze(!1),t}function HP(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s,unstable_viewTransition:a}=t===void 0?{}:t,l=Ao(),c=oo(),d=Kc(e,{relative:s});return p.useCallback(f=>{if(IP(f,n)){f.preventDefault();let h=r!==void 0?r:ic(c)===ic(d);l(e,{replace:h,state:o,preventScrollReset:i,relative:s,unstable_viewTransition:a})}},[c,l,d,r,o,n,e,i,s,a])}function VP(e,t){t===void 0&&(t={});let n=p.useContext(AP);n==null&&Ze(!1);let{basename:r}=UP(np.useViewTransitionState),o=Kc(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=ki(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=ki(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ep(o.pathname,s)!=null||ep(o.pathname,i)!=null}const lr=p.createContext({user:null}),qP=({children:e})=>{const[t,n]=p.useState(!1),[r,o]=p.useState(null),[i,s]=p.useState(0),[a,l]=p.useState([]),c=p.useCallback(v=>{l(C=>[...C,v])},[l]),d=v=>{l(C=>C.filter((g,m)=>m!==v))},f=()=>{s(i+1)},h=Ao();p.useEffect(()=>{const v=localStorage.getItem("user");console.log("Attempting to load user:",v),v?(console.log("User found in storage:",v),o(JSON.parse(v))):console.log("No user found in storage at initialization.")},[]),p.useEffect(()=>{r?(console.log("Storing user in storage:",r),localStorage.setItem("user",JSON.stringify(r))):(console.log("Removing user from storage."),localStorage.removeItem("user"))},[r]);const b=p.useCallback(async()=>{var v;try{const C=localStorage.getItem("token");if(console.log("Logging out with token:",C),!C){console.error("No token available for logout");return}const g=await ve.post("/api/user/logout",{},{headers:{Authorization:`Bearer ${C}`}});if(g.status===200)o(null),localStorage.removeItem("token"),h("/auth");else throw new Error("Logout failed with status: "+g.status)}catch(C){console.error("Logout failed:",((v=C.response)==null?void 0:v.data)||C.message)}},[h]),y=async(v,C,g)=>{var m,x;try{const w=localStorage.getItem("token"),k=await ve.patch(`/api/user/change_password/${v}`,{current_password:C,new_password:g},{headers:{Authorization:`Bearer ${w}`}});return k.status===200?{success:!0,message:"Password updated successfully!"}:{success:!1,message:k.data.message||"Update failed!"}}catch(w){return w.response.status===403?{success:!1,message:w.response.data.message||"Incorrect current password"}:{success:!1,message:((x=(m=w.response)==null?void 0:m.data)==null?void 0:x.message)||"Network error"}}};return p.useEffect(()=>{const v=C=>{C.data&&C.data.type==="NEW_NOTIFICATION"&&(console.log("Notification received:",C.data.data),c({title:C.data.data.title,message:C.data.data.body}))};return navigator.serviceWorker.addEventListener("message",v),()=>{navigator.serviceWorker.removeEventListener("message",v)}},[c]),u.jsx(lr.Provider,{value:{user:r,setUser:o,logout:b,voiceEnabled:t,setVoiceEnabled:n,changePassword:y,incrementNotificationCount:f,notifications:a,removeNotification:d,addNotification:c},children:e})},na={black:"#000",white:"#fff"},Fo={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"},Bo={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Wo={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"},Uo={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Ho={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"},ss={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"},KP={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function jo(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n=0)continue;n[r]=e[r]}return n}function bb(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var YP=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,XP=bb(function(e){return YP.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function QP(e){if(e.sheet)return e.sheet;for(var t=0;t0?Pt(Fi,--Zt):0,Ri--,ut===10&&(Ri=1,Yc--),ut}function cn(){return ut=Zt2||oa(ut)>3?"":" "}function uE(e,t){for(;--t&&cn()&&!(ut<48||ut>102||ut>57&&ut<65||ut>70&&ut<97););return ba(e,kl()+(t<6&&ir()==32&&cn()==32))}function op(e){for(;cn();)switch(ut){case e:return Zt;case 34:case 39:e!==34&&e!==39&&op(ut);break;case 40:e===41&&op(e);break;case 92:cn();break}return Zt}function dE(e,t){for(;cn()&&e+ut!==57;)if(e+ut===84&&ir()===47)break;return"/*"+ba(t,Zt-1)+"*"+Gc(e===47?e:cn())}function fE(e){for(;!oa(ir());)cn();return ba(e,Zt)}function pE(e){return Pb(Pl("",null,null,null,[""],e=Rb(e),0,[0],e))}function Pl(e,t,n,r,o,i,s,a,l){for(var c=0,d=0,f=s,h=0,b=0,y=0,v=1,C=1,g=1,m=0,x="",w=o,k=i,P=r,R=x;C;)switch(y=m,m=cn()){case 40:if(y!=108&&Pt(R,f-1)==58){rp(R+=Ie(Rl(m),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:R+=Rl(m);break;case 9:case 10:case 13:case 32:R+=cE(y);break;case 92:R+=uE(kl()-1,7);continue;case 47:switch(ir()){case 42:case 47:Qa(hE(dE(cn(),kl()),t,n),l);break;default:R+="/"}break;case 123*v:a[c++]=er(R)*g;case 125*v:case 59:case 0:switch(m){case 0:case 125:C=0;case 59+d:g==-1&&(R=Ie(R,/\f/g,"")),b>0&&er(R)-f&&Qa(b>32?Xv(R+";",r,n,f-1):Xv(Ie(R," ","")+";",r,n,f-2),l);break;case 59:R+=";";default:if(Qa(P=Yv(R,t,n,c,d,o,a,x,w=[],k=[],f),i),m===123)if(d===0)Pl(R,t,P,P,w,i,f,a,k);else switch(h===99&&Pt(R,3)===110?100:h){case 100:case 108:case 109:case 115:Pl(e,P,P,r&&Qa(Yv(e,P,P,0,0,o,a,x,o,w=[],f),k),o,k,f,a,r?w:k);break;default:Pl(R,P,P,P,[""],k,0,a,k)}}c=d=b=0,v=g=1,x=R="",f=s;break;case 58:f=1+er(R),b=y;default:if(v<1){if(m==123)--v;else if(m==125&&v++==0&&lE()==125)continue}switch(R+=Gc(m),m*v){case 38:g=d>0?1:(R+="\f",-1);break;case 44:a[c++]=(er(R)-1)*g,g=1;break;case 64:ir()===45&&(R+=Rl(cn())),h=ir(),d=f=er(x=R+=fE(kl())),m++;break;case 45:y===45&&er(R)==2&&(v=0)}}return i}function Yv(e,t,n,r,o,i,s,a,l,c,d){for(var f=o-1,h=o===0?i:[""],b=jh(h),y=0,v=0,C=0;y0?h[g]+" "+m:Ie(m,/&\f/g,h[g])))&&(l[C++]=x);return Xc(e,t,n,o===0?Th:a,l,c,d)}function hE(e,t,n){return Xc(e,t,n,Sb,Gc(aE()),ra(e,2,-2),0)}function Xv(e,t,n,r){return Xc(e,t,n,_h,ra(e,0,r),ra(e,r+1,-1),r)}function hi(e,t){for(var n="",r=jh(e),o=0;o6)switch(Pt(e,t+1)){case 109:if(Pt(e,t+4)!==45)break;case 102:return Ie(e,/(.+:)(.+)-([^]+)/,"$1"+Oe+"$2-$3$1"+lc+(Pt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~rp(e,"stretch")?Eb(Ie(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Pt(e,t+1)!==115)break;case 6444:switch(Pt(e,er(e)-3-(~rp(e,"!important")&&10))){case 107:return Ie(e,":",":"+Oe)+e;case 101:return Ie(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Oe+(Pt(e,14)===45?"inline-":"")+"box$3$1"+Oe+"$2$3$1"+jt+"$2box$3")+e}break;case 5936:switch(Pt(e,t+11)){case 114:return Oe+e+jt+Ie(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Oe+e+jt+Ie(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Oe+e+jt+Ie(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Oe+e+jt+e+e}return e}var wE=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case _h:t.return=Eb(t.value,t.length);break;case Cb:return hi([as(t,{value:Ie(t.value,"@","@"+Oe)})],o);case Th:if(t.length)return sE(t.props,function(i){switch(iE(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return hi([as(t,{props:[Ie(i,/:(read-\w+)/,":"+lc+"$1")]})],o);case"::placeholder":return hi([as(t,{props:[Ie(i,/:(plac\w+)/,":"+Oe+"input-$1")]}),as(t,{props:[Ie(i,/:(plac\w+)/,":"+lc+"$1")]}),as(t,{props:[Ie(i,/:(plac\w+)/,jt+"input-$1")]})],o)}return""})}},kE=[wE],$b=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var C=v.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||kE,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var C=v.getAttribute("data-emotion").split(" "),g=1;ge.transitions.easing.easeInOut,xn.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,xn.child,xn.childLeaving,DT,hp,({theme:e})=>e.transitions.easing.easeInOut,xn.childPulsate,FT,({theme:e})=>e.transitions.easing.easeInOut),UT=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s}=r,a=H(r,LT),[l,c]=p.useState([]),d=p.useRef(0),f=p.useRef(null);p.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const h=p.useRef(!1),b=xo(),y=p.useRef(null),v=p.useRef(null),C=p.useCallback(w=>{const{pulsate:k,rippleX:P,rippleY:R,rippleSize:E,cb:j}=w;c(T=>[...T,u.jsx(WT,{classes:{ripple:V(i.ripple,xn.ripple),rippleVisible:V(i.rippleVisible,xn.rippleVisible),ripplePulsate:V(i.ripplePulsate,xn.ripplePulsate),child:V(i.child,xn.child),childLeaving:V(i.childLeaving,xn.childLeaving),childPulsate:V(i.childPulsate,xn.childPulsate)},timeout:hp,pulsate:k,rippleX:P,rippleY:R,rippleSize:E},d.current)]),d.current+=1,f.current=j},[i]),g=p.useCallback((w={},k={},P=()=>{})=>{const{pulsate:R=!1,center:E=o||k.pulsate,fakeElement:j=!1}=k;if((w==null?void 0:w.type)==="mousedown"&&h.current){h.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(h.current=!0);const T=j?null:v.current,O=T?T.getBoundingClientRect():{width:0,height:0,left:0,top:0};let M,I,N;if(E||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)M=Math.round(O.width/2),I=Math.round(O.height/2);else{const{clientX:D,clientY:z}=w.touches&&w.touches.length>0?w.touches[0]:w;M=Math.round(D-O.left),I=Math.round(z-O.top)}if(E)N=Math.sqrt((2*O.width**2+O.height**2)/3),N%2===0&&(N+=1);else{const D=Math.max(Math.abs((T?T.clientWidth:0)-M),M)*2+2,z=Math.max(Math.abs((T?T.clientHeight:0)-I),I)*2+2;N=Math.sqrt(D**2+z**2)}w!=null&&w.touches?y.current===null&&(y.current=()=>{C({pulsate:R,rippleX:M,rippleY:I,rippleSize:N,cb:P})},b.start(AT,()=>{y.current&&(y.current(),y.current=null)})):C({pulsate:R,rippleX:M,rippleY:I,rippleSize:N,cb:P})},[o,C,b]),m=p.useCallback(()=>{g({},{pulsate:!0})},[g]),x=p.useCallback((w,k)=>{if(b.clear(),(w==null?void 0:w.type)==="touchend"&&y.current){y.current(),y.current=null,b.start(0,()=>{x(w,k)});return}y.current=null,c(P=>P.length>0?P.slice(1):P),f.current=k},[b]);return p.useImperativeHandle(n,()=>({pulsate:m,start:g,stop:x}),[m,g,x]),u.jsx(BT,S({className:V(xn.root,i.root,s),ref:v},a,{children:u.jsx(tm,{component:null,exit:!0,children:l})}))});function HT(e){return re("MuiButtonBase",e)}const VT=oe("MuiButtonBase",["root","disabled","focusVisible"]),qT=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],KT=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=ie({root:["root",t&&"disabled",n&&"focusVisible"]},HT,o);return n&&r&&(s.root+=` ${r}`),s},GT=B("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${VT.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),kr=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:a,component:l="button",disabled:c=!1,disableRipple:d=!1,disableTouchRipple:f=!1,focusRipple:h=!1,LinkComponent:b="a",onBlur:y,onClick:v,onContextMenu:C,onDragLeave:g,onFocus:m,onFocusVisible:x,onKeyDown:w,onKeyUp:k,onMouseDown:P,onMouseLeave:R,onMouseUp:E,onTouchEnd:j,onTouchMove:T,onTouchStart:O,tabIndex:M=0,TouchRippleProps:I,touchRippleRef:N,type:D}=r,z=H(r,qT),W=p.useRef(null),$=p.useRef(null),_=Ye($,N),{isFocusVisibleRef:F,onFocus:G,onBlur:X,ref:ce}=Kh(),[Z,ue]=p.useState(!1);c&&Z&&ue(!1),p.useImperativeHandle(o,()=>({focusVisible:()=>{ue(!0),W.current.focus()}}),[]);const[U,ee]=p.useState(!1);p.useEffect(()=>{ee(!0)},[]);const K=U&&!d&&!c;p.useEffect(()=>{Z&&h&&!d&&U&&$.current.pulsate()},[d,h,Z,U]);function Q(se,tt,Ut=f){return zt(tn=>(tt&&tt(tn),!Ut&&$.current&&$.current[se](tn),!0))}const he=Q("start",P),J=Q("stop",C),fe=Q("stop",g),pe=Q("stop",E),Se=Q("stop",se=>{Z&&se.preventDefault(),R&&R(se)}),xe=Q("start",O),Ct=Q("stop",j),Fe=Q("stop",T),ze=Q("stop",se=>{X(se),F.current===!1&&ue(!1),y&&y(se)},!1),pt=zt(se=>{W.current||(W.current=se.currentTarget),G(se),F.current===!0&&(ue(!0),x&&x(se)),m&&m(se)}),Me=()=>{const se=W.current;return l&&l!=="button"&&!(se.tagName==="A"&&se.href)},ke=p.useRef(!1),ct=zt(se=>{h&&!ke.current&&Z&&$.current&&se.key===" "&&(ke.current=!0,$.current.stop(se,()=>{$.current.start(se)})),se.target===se.currentTarget&&Me()&&se.key===" "&&se.preventDefault(),w&&w(se),se.target===se.currentTarget&&Me()&&se.key==="Enter"&&!c&&(se.preventDefault(),v&&v(se))}),He=zt(se=>{h&&se.key===" "&&$.current&&Z&&!se.defaultPrevented&&(ke.current=!1,$.current.stop(se,()=>{$.current.pulsate(se)})),k&&k(se),v&&se.target===se.currentTarget&&Me()&&se.key===" "&&!se.defaultPrevented&&v(se)});let Ee=l;Ee==="button"&&(z.href||z.to)&&(Ee=b);const ht={};Ee==="button"?(ht.type=D===void 0?"button":D,ht.disabled=c):(!z.href&&!z.to&&(ht.role="button"),c&&(ht["aria-disabled"]=c));const yt=Ye(n,ce,W),wt=S({},r,{centerRipple:i,component:l,disabled:c,disableRipple:d,disableTouchRipple:f,focusRipple:h,tabIndex:M,focusVisible:Z}),Re=KT(wt);return u.jsxs(GT,S({as:Ee,className:V(Re.root,a),ownerState:wt,onBlur:ze,onClick:v,onContextMenu:J,onFocus:pt,onKeyDown:ct,onKeyUp:He,onMouseDown:he,onMouseLeave:Se,onMouseUp:pe,onDragLeave:fe,onTouchEnd:Ct,onTouchMove:Fe,onTouchStart:xe,ref:yt,tabIndex:c?-1:M,type:D},ht,z,{children:[s,K?u.jsx(UT,S({ref:_,center:i},I)):null]}))});function YT(e){return re("MuiAlert",e)}const _0=oe("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function XT(e){return re("MuiIconButton",e)}const QT=oe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),JT=["edge","children","className","color","disabled","disableFocusRipple","size"],ZT=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${A(r)}`,o&&`edge${A(o)}`,`size${A(i)}`]};return ie(s,XT,t)},e_=B(kr,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${A(n.color)}`],n.edge&&t[`edge${A(n.edge)}`],t[`size${A(n.size)}`]]}})(({theme:e,ownerState:t})=>S({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:je(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return S({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&S({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":S({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:je(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${QT.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Qe=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:a="default",disabled:l=!1,disableFocusRipple:c=!1,size:d="medium"}=r,f=H(r,JT),h=S({},r,{edge:o,color:a,disabled:l,disableFocusRipple:c,size:d}),b=ZT(h);return u.jsx(e_,S({className:V(b.root,s),centerRipple:!0,focusRipple:!c,disabled:l,ref:n},f,{ownerState:h,children:i}))}),t_=Nt(u.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),n_=Nt(u.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),r_=Nt(u.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),o_=Nt(u.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),i_=Nt(u.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),s_=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],a_=zu(),l_=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`color${A(n||r)}`,`${t}${A(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return ie(i,YT,o)},c_=B(gn,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${A(n.color||n.severity)}`]]}})(({theme:e})=>{const t=e.palette.mode==="light"?dc:fc,n=e.palette.mode==="light"?fc:dc;return S({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${_0.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${_0.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.dark).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:S({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)})}))]})}),u_=B("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),d_=B("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),j0=B("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),O0={success:u.jsx(t_,{fontSize:"inherit"}),warning:u.jsx(n_,{fontSize:"inherit"}),error:u.jsx(r_,{fontSize:"inherit"}),info:u.jsx(o_,{fontSize:"inherit"})},ur=p.forwardRef(function(t,n){const r=a_({props:t,name:"MuiAlert"}),{action:o,children:i,className:s,closeText:a="Close",color:l,components:c={},componentsProps:d={},icon:f,iconMapping:h=O0,onClose:b,role:y="alert",severity:v="success",slotProps:C={},slots:g={},variant:m="standard"}=r,x=H(r,s_),w=S({},r,{color:l,severity:v,variant:m,colorSeverity:l||v}),k=l_(w),P={slots:S({closeButton:c.CloseButton,closeIcon:c.CloseIcon},g),slotProps:S({},d,C)},[R,E]=pp("closeButton",{elementType:Qe,externalForwardedProps:P,ownerState:w}),[j,T]=pp("closeIcon",{elementType:i_,externalForwardedProps:P,ownerState:w});return u.jsxs(c_,S({role:y,elevation:0,ownerState:w,className:V(k.root,s),ref:n},x,{children:[f!==!1?u.jsx(u_,{ownerState:w,className:k.icon,children:f||h[v]||O0[v]}):null,u.jsx(d_,{ownerState:w,className:k.message,children:i}),o!=null?u.jsx(j0,{ownerState:w,className:k.action,children:o}):null,o==null&&b?u.jsx(j0,{ownerState:w,className:k.action,children:u.jsx(R,S({size:"small","aria-label":a,title:a,color:"inherit",onClick:b},E,{children:u.jsx(j,S({fontSize:"small"},T))}))}):null]}))});function f_(e){return re("MuiTypography",e)}oe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const p_=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],h_=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=e,a={root:["root",i,e.align!=="inherit"&&`align${A(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return ie(a,f_,s)},m_=B("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${A(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>S({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),I0={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},g_={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},v_=e=>g_[e]||e,ve=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiTypography"}),o=v_(r.color),i=mu(S({},r,{color:o})),{align:s="inherit",className:a,component:l,gutterBottom:c=!1,noWrap:d=!1,paragraph:f=!1,variant:h="body1",variantMapping:b=I0}=i,y=H(i,p_),v=S({},i,{align:s,color:o,className:a,component:l,gutterBottom:c,noWrap:d,paragraph:f,variant:h,variantMapping:b}),C=l||(f?"p":b[h]||I0[h])||"span",g=h_(v);return u.jsx(m_,S({as:C,ref:n,ownerState:v,className:V(g.root,a)},y))});function y_(e){return re("MuiAppBar",e)}oe("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const x_=["className","color","enableColorOnDark","position"],b_=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${A(t)}`,`position${A(n)}`]};return ie(o,y_,r)},el=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,S_=B(gn,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${A(n.position)}`],t[`color${A(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return S({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&S({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&S({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&S({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:el(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:el(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:el(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:el(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),C_=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:s=!1,position:a="fixed"}=r,l=H(r,x_),c=S({},r,{color:i,position:a,enableColorOnDark:s}),d=b_(c);return u.jsx(S_,S({square:!0,component:"header",ownerState:c,elevation:4,className:V(d.root,o,a==="fixed"&&"mui-fixed"),ref:n},l))});function w_(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=l2({badgeContent:t,max:r});let s=n;n===!1&&t===0&&!o&&(s=!0);const{badgeContent:a,max:l=r}=s?i:e,c=a&&Number(a)>l?`${l}+`:a;return{badgeContent:a,invisible:s,max:l,displayValue:c}}const P2="base";function k_(e){return`${P2}--${e}`}function R_(e,t){return`${P2}-${e}-${t}`}function E2(e,t){const n=e2[t];return n?k_(n):R_(e,t)}function P_(e,t){const n={};return t.forEach(r=>{n[r]=E2(e,r)}),n}function M0(e){return e.substring(2).toLowerCase()}function E_(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const d=Ye(t.ref,a),f=zt(y=>{const v=c.current;c.current=!1;const C=ft(a.current);if(!l.current||!a.current||"clientX"in y&&E_(y,C))return;if(s.current){s.current=!1;return}let g;y.composedPath?g=y.composedPath().indexOf(a.current)>-1:g=!C.documentElement.contains(y.target)||a.current.contains(y.target),!g&&(n||!v)&&o(y)}),h=y=>v=>{c.current=!0;const C=t.props[y];C&&C(v)},b={ref:d};return i!==!1&&(b[i]=h(i)),p.useEffect(()=>{if(i!==!1){const y=M0(i),v=ft(a.current),C=()=>{s.current=!0};return v.addEventListener(y,f),v.addEventListener("touchmove",C),()=>{v.removeEventListener(y,f),v.removeEventListener("touchmove",C)}}},[f,i]),r!==!1&&(b[r]=h(r)),p.useEffect(()=>{if(r!==!1){const y=M0(r),v=ft(a.current);return v.addEventListener(y,f),()=>{v.removeEventListener(y,f)}}},[f,r]),u.jsx(p.Fragment,{children:p.cloneElement(t,b)})}const T_=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function __(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function j_(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function O_(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||j_(e))}function I_(e){const t=[],n=[];return Array.from(e.querySelectorAll(T_)).forEach((r,o)=>{const i=__(r);i===-1||!O_(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function M_(){return!0}function N_(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=I_,isEnabled:s=M_,open:a}=e,l=p.useRef(!1),c=p.useRef(null),d=p.useRef(null),f=p.useRef(null),h=p.useRef(null),b=p.useRef(!1),y=p.useRef(null),v=Ye(t.ref,y),C=p.useRef(null);p.useEffect(()=>{!a||!y.current||(b.current=!n)},[n,a]),p.useEffect(()=>{if(!a||!y.current)return;const x=ft(y.current);return y.current.contains(x.activeElement)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex","-1"),b.current&&y.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[a]),p.useEffect(()=>{if(!a||!y.current)return;const x=ft(y.current),w=R=>{C.current=R,!(r||!s()||R.key!=="Tab")&&x.activeElement===y.current&&R.shiftKey&&(l.current=!0,d.current&&d.current.focus())},k=()=>{const R=y.current;if(R===null)return;if(!x.hasFocus()||!s()||l.current){l.current=!1;return}if(R.contains(x.activeElement)||r&&x.activeElement!==c.current&&x.activeElement!==d.current)return;if(x.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!b.current)return;let E=[];if((x.activeElement===c.current||x.activeElement===d.current)&&(E=i(y.current)),E.length>0){var j,T;const O=!!((j=C.current)!=null&&j.shiftKey&&((T=C.current)==null?void 0:T.key)==="Tab"),M=E[0],I=E[E.length-1];typeof M!="string"&&typeof I!="string"&&(O?I.focus():M.focus())}else R.focus()};x.addEventListener("focusin",k),x.addEventListener("keydown",w,!0);const P=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&k()},50);return()=>{clearInterval(P),x.removeEventListener("focusin",k),x.removeEventListener("keydown",w,!0)}},[n,r,o,s,a,i]);const g=x=>{f.current===null&&(f.current=x.relatedTarget),b.current=!0,h.current=x.target;const w=t.props.onFocus;w&&w(x)},m=x=>{f.current===null&&(f.current=x.relatedTarget),b.current=!0};return u.jsxs(p.Fragment,{children:[u.jsx("div",{tabIndex:a?0:-1,onFocus:m,ref:c,"data-testid":"sentinelStart"}),p.cloneElement(t,{ref:v,onFocus:g}),u.jsx("div",{tabIndex:a?0:-1,onFocus:m,ref:d,"data-testid":"sentinelEnd"})]})}function L_(e){return typeof e=="function"?e():e}const $2=p.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[s,a]=p.useState(null),l=Ye(p.isValidElement(r)?r.ref:null,n);if(dn(()=>{i||a(L_(o)||document.body)},[o,i]),dn(()=>{if(s&&!i)return uc(n,s),()=>{uc(n,null)}},[n,s,i]),i){if(p.isValidElement(r)){const c={ref:l};return p.cloneElement(r,c)}return u.jsx(p.Fragment,{children:r})}return u.jsx(p.Fragment,{children:s&&Sh.createPortal(r,s)})});function A_(e){const t=ft(e);return t.body===e?_n(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Os(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function N0(e){return parseInt(_n(e).getComputedStyle(e).paddingRight,10)||0}function z_(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function L0(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,s=>{const a=i.indexOf(s)===-1,l=!z_(s);a&&l&&Os(s,o)})}function Dd(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function D_(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(A_(r)){const s=s2(ft(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${N0(r)+s}px`;const a=ft(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${N0(l)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=ft(r).body;else{const s=r.parentElement,a=_n(r);i=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:s,property:a})=>{i?s.style.setProperty(a,i):s.style.removeProperty(a)})}}function F_(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class B_{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Os(t.modalRef,!1);const o=F_(n);L0(n,t.mount,t.modalRef,o,!0);const i=Dd(this.containers,s=>s.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Dd(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=D_(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Dd(this.containers,s=>s.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Os(t.modalRef,n),L0(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=i.modals[i.modals.length-1];s.modalRef&&Os(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function W_(e){return typeof e=="function"?e():e}function U_(e){return e?e.props.hasOwnProperty("in"):!1}const H_=new B_;function V_(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=H_,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:c,open:d,rootRef:f}=e,h=p.useRef({}),b=p.useRef(null),y=p.useRef(null),v=Ye(y,f),[C,g]=p.useState(!d),m=U_(l);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const w=()=>ft(b.current),k=()=>(h.current.modalRef=y.current,h.current.mount=b.current,h.current),P=()=>{o.mount(k(),{disableScrollLock:r}),y.current&&(y.current.scrollTop=0)},R=zt(()=>{const z=W_(t)||w().body;o.add(k(),z),y.current&&P()}),E=p.useCallback(()=>o.isTopModal(k()),[o]),j=zt(z=>{b.current=z,z&&(d&&E()?P():y.current&&Os(y.current,x))}),T=p.useCallback(()=>{o.remove(k(),x)},[x,o]);p.useEffect(()=>()=>{T()},[T]),p.useEffect(()=>{d?R():(!m||!i)&&T()},[d,T,m,i,R]);const O=z=>W=>{var $;($=z.onKeyDown)==null||$.call(z,W),!(W.key!=="Escape"||W.which===229||!E())&&(n||(W.stopPropagation(),c&&c(W,"escapeKeyDown")))},M=z=>W=>{var $;($=z.onClick)==null||$.call(z,W),W.target===W.currentTarget&&c&&c(W,"backdropClick")};return{getRootProps:(z={})=>{const W=mc(e);delete W.onTransitionEnter,delete W.onTransitionExited;const $=S({},W,z);return S({role:"presentation"},$,{onKeyDown:O($),ref:v})},getBackdropProps:(z={})=>{const W=z;return S({"aria-hidden":!0},W,{onClick:M(W),open:d})},getTransitionProps:()=>{const z=()=>{g(!1),s&&s()},W=()=>{g(!0),a&&a(),i&&T()};return{onEnter:ap(z,l==null?void 0:l.props.onEnter),onExited:ap(W,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:j,isTopModal:E,exited:C,hasTransition:m}}var Qt="top",On="bottom",In="right",Jt="left",rm="auto",Ta=[Qt,On,In,Jt],$i="start",aa="end",q_="clippingParents",T2="viewport",ls="popper",K_="reference",A0=Ta.reduce(function(e,t){return e.concat([t+"-"+$i,t+"-"+aa])},[]),_2=[].concat(Ta,[rm]).reduce(function(e,t){return e.concat([t,t+"-"+$i,t+"-"+aa])},[]),G_="beforeRead",Y_="read",X_="afterRead",Q_="beforeMain",J_="main",Z_="afterMain",ej="beforeWrite",tj="write",nj="afterWrite",rj=[G_,Y_,X_,Q_,J_,Z_,ej,tj,nj];function cr(e){return e?(e.nodeName||"").toLowerCase():null}function fn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Mo(e){var t=fn(e).Element;return e instanceof t||e instanceof Element}function En(e){var t=fn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function om(e){if(typeof ShadowRoot>"u")return!1;var t=fn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function oj(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!En(i)||!cr(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function ij(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(l,c){return l[c]="",l},{});!En(o)||!cr(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const sj={name:"applyStyles",enabled:!0,phase:"write",fn:oj,effect:ij,requires:["computeStyles"]};function sr(e){return e.split("-")[0]}var ko=Math.max,gc=Math.min,Ti=Math.round;function mp(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function j2(){return!/^((?!chrome|android).)*safari/i.test(mp())}function _i(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&En(e)&&(o=e.offsetWidth>0&&Ti(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ti(r.height)/e.offsetHeight||1);var s=Mo(e)?fn(e):window,a=s.visualViewport,l=!j2()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/o,d=(r.top+(l&&a?a.offsetTop:0))/i,f=r.width/o,h=r.height/i;return{width:f,height:h,top:d,right:c+f,bottom:d+h,left:c,x:c,y:d}}function im(e){var t=_i(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function O2(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&om(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Rr(e){return fn(e).getComputedStyle(e)}function aj(e){return["table","td","th"].indexOf(cr(e))>=0}function so(e){return((Mo(e)?e.ownerDocument:e.document)||window.document).documentElement}function Fu(e){return cr(e)==="html"?e:e.assignedSlot||e.parentNode||(om(e)?e.host:null)||so(e)}function z0(e){return!En(e)||Rr(e).position==="fixed"?null:e.offsetParent}function lj(e){var t=/firefox/i.test(mp()),n=/Trident/i.test(mp());if(n&&En(e)){var r=Rr(e);if(r.position==="fixed")return null}var o=Fu(e);for(om(o)&&(o=o.host);En(o)&&["html","body"].indexOf(cr(o))<0;){var i=Rr(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function _a(e){for(var t=fn(e),n=z0(e);n&&aj(n)&&Rr(n).position==="static";)n=z0(n);return n&&(cr(n)==="html"||cr(n)==="body"&&Rr(n).position==="static")?t:n||lj(e)||t}function sm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Is(e,t,n){return ko(e,gc(t,n))}function cj(e,t,n){var r=Is(e,t,n);return r>n?n:r}function I2(){return{top:0,right:0,bottom:0,left:0}}function M2(e){return Object.assign({},I2(),e)}function N2(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var uj=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,M2(typeof t!="number"?t:N2(t,Ta))};function dj(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=sr(n.placement),l=sm(a),c=[Jt,In].indexOf(a)>=0,d=c?"height":"width";if(!(!i||!s)){var f=uj(o.padding,n),h=im(i),b=l==="y"?Qt:Jt,y=l==="y"?On:In,v=n.rects.reference[d]+n.rects.reference[l]-s[l]-n.rects.popper[d],C=s[l]-n.rects.reference[l],g=_a(i),m=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,x=v/2-C/2,w=f[b],k=m-h[d]-f[y],P=m/2-h[d]/2+x,R=Is(w,P,k),E=l;n.modifiersData[r]=(t={},t[E]=R,t.centerOffset=R-P,t)}}function fj(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||O2(t.elements.popper,o)&&(t.elements.arrow=o))}const pj={name:"arrow",enabled:!0,phase:"main",fn:dj,effect:fj,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ji(e){return e.split("-")[1]}var hj={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mj(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Ti(n*o)/o||0,y:Ti(r*o)/o||0}}function D0(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,f=e.isFixed,h=s.x,b=h===void 0?0:h,y=s.y,v=y===void 0?0:y,C=typeof d=="function"?d({x:b,y:v}):{x:b,y:v};b=C.x,v=C.y;var g=s.hasOwnProperty("x"),m=s.hasOwnProperty("y"),x=Jt,w=Qt,k=window;if(c){var P=_a(n),R="clientHeight",E="clientWidth";if(P===fn(n)&&(P=so(n),Rr(P).position!=="static"&&a==="absolute"&&(R="scrollHeight",E="scrollWidth")),P=P,o===Qt||(o===Jt||o===In)&&i===aa){w=On;var j=f&&P===k&&k.visualViewport?k.visualViewport.height:P[R];v-=j-r.height,v*=l?1:-1}if(o===Jt||(o===Qt||o===On)&&i===aa){x=In;var T=f&&P===k&&k.visualViewport?k.visualViewport.width:P[E];b-=T-r.width,b*=l?1:-1}}var O=Object.assign({position:a},c&&hj),M=d===!0?mj({x:b,y:v},fn(n)):{x:b,y:v};if(b=M.x,v=M.y,l){var I;return Object.assign({},O,(I={},I[w]=m?"0":"",I[x]=g?"0":"",I.transform=(k.devicePixelRatio||1)<=1?"translate("+b+"px, "+v+"px)":"translate3d("+b+"px, "+v+"px, 0)",I))}return Object.assign({},O,(t={},t[w]=m?v+"px":"",t[x]=g?b+"px":"",t.transform="",t))}function gj(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:sr(t.placement),variation:ji(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,D0(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,D0(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const vj={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:gj,data:{}};var tl={passive:!0};function yj(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,l=fn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(d){d.addEventListener("scroll",n.update,tl)}),a&&l.addEventListener("resize",n.update,tl),function(){i&&c.forEach(function(d){d.removeEventListener("scroll",n.update,tl)}),a&&l.removeEventListener("resize",n.update,tl)}}const xj={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:yj,data:{}};var bj={left:"right",right:"left",bottom:"top",top:"bottom"};function _l(e){return e.replace(/left|right|bottom|top/g,function(t){return bj[t]})}var Sj={start:"end",end:"start"};function F0(e){return e.replace(/start|end/g,function(t){return Sj[t]})}function am(e){var t=fn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function lm(e){return _i(so(e)).left+am(e).scrollLeft}function Cj(e,t){var n=fn(e),r=so(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var c=j2();(c||!c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+lm(e),y:l}}function wj(e){var t,n=so(e),r=am(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=ko(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=ko(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+lm(e),l=-r.scrollTop;return Rr(o||n).direction==="rtl"&&(a+=ko(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function cm(e){var t=Rr(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function L2(e){return["html","body","#document"].indexOf(cr(e))>=0?e.ownerDocument.body:En(e)&&cm(e)?e:L2(Fu(e))}function Ms(e,t){var n;t===void 0&&(t=[]);var r=L2(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=fn(r),s=o?[i].concat(i.visualViewport||[],cm(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(Ms(Fu(s)))}function gp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function kj(e,t){var n=_i(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function B0(e,t,n){return t===T2?gp(Cj(e,n)):Mo(t)?kj(t,n):gp(wj(so(e)))}function Rj(e){var t=Ms(Fu(e)),n=["absolute","fixed"].indexOf(Rr(e).position)>=0,r=n&&En(e)?_a(e):e;return Mo(r)?t.filter(function(o){return Mo(o)&&O2(o,r)&&cr(o)!=="body"}):[]}function Pj(e,t,n,r){var o=t==="clippingParents"?Rj(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(l,c){var d=B0(e,c,r);return l.top=ko(d.top,l.top),l.right=gc(d.right,l.right),l.bottom=gc(d.bottom,l.bottom),l.left=ko(d.left,l.left),l},B0(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function A2(e){var t=e.reference,n=e.element,r=e.placement,o=r?sr(r):null,i=r?ji(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case Qt:l={x:s,y:t.y-n.height};break;case On:l={x:s,y:t.y+t.height};break;case In:l={x:t.x+t.width,y:a};break;case Jt:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=o?sm(o):null;if(c!=null){var d=c==="y"?"height":"width";switch(i){case $i:l[c]=l[c]-(t[d]/2-n[d]/2);break;case aa:l[c]=l[c]+(t[d]/2-n[d]/2);break}}return l}function la(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,a=n.boundary,l=a===void 0?q_:a,c=n.rootBoundary,d=c===void 0?T2:c,f=n.elementContext,h=f===void 0?ls:f,b=n.altBoundary,y=b===void 0?!1:b,v=n.padding,C=v===void 0?0:v,g=M2(typeof C!="number"?C:N2(C,Ta)),m=h===ls?K_:ls,x=e.rects.popper,w=e.elements[y?m:h],k=Pj(Mo(w)?w:w.contextElement||so(e.elements.popper),l,d,s),P=_i(e.elements.reference),R=A2({reference:P,element:x,strategy:"absolute",placement:o}),E=gp(Object.assign({},x,R)),j=h===ls?E:P,T={top:k.top-j.top+g.top,bottom:j.bottom-k.bottom+g.bottom,left:k.left-j.left+g.left,right:j.right-k.right+g.right},O=e.modifiersData.offset;if(h===ls&&O){var M=O[o];Object.keys(T).forEach(function(I){var N=[In,On].indexOf(I)>=0?1:-1,D=[Qt,On].indexOf(I)>=0?"y":"x";T[I]+=M[D]*N})}return T}function Ej(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?_2:l,d=ji(r),f=d?a?A0:A0.filter(function(y){return ji(y)===d}):Ta,h=f.filter(function(y){return c.indexOf(y)>=0});h.length===0&&(h=f);var b=h.reduce(function(y,v){return y[v]=la(e,{placement:v,boundary:o,rootBoundary:i,padding:s})[sr(v)],y},{});return Object.keys(b).sort(function(y,v){return b[y]-b[v]})}function $j(e){if(sr(e)===rm)return[];var t=_l(e);return[F0(e),t,F0(t)]}function Tj(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,d=n.boundary,f=n.rootBoundary,h=n.altBoundary,b=n.flipVariations,y=b===void 0?!0:b,v=n.allowedAutoPlacements,C=t.options.placement,g=sr(C),m=g===C,x=l||(m||!y?[_l(C)]:$j(C)),w=[C].concat(x).reduce(function(Z,ue){return Z.concat(sr(ue)===rm?Ej(t,{placement:ue,boundary:d,rootBoundary:f,padding:c,flipVariations:y,allowedAutoPlacements:v}):ue)},[]),k=t.rects.reference,P=t.rects.popper,R=new Map,E=!0,j=w[0],T=0;T=0,D=N?"width":"height",z=la(t,{placement:O,boundary:d,rootBoundary:f,altBoundary:h,padding:c}),W=N?I?In:Jt:I?On:Qt;k[D]>P[D]&&(W=_l(W));var $=_l(W),_=[];if(i&&_.push(z[M]<=0),a&&_.push(z[W]<=0,z[$]<=0),_.every(function(Z){return Z})){j=O,E=!1;break}R.set(O,_)}if(E)for(var F=y?3:1,G=function(ue){var U=w.find(function(ee){var K=R.get(ee);if(K)return K.slice(0,ue).every(function(Q){return Q})});if(U)return j=U,"break"},X=F;X>0;X--){var ce=G(X);if(ce==="break")break}t.placement!==j&&(t.modifiersData[r]._skip=!0,t.placement=j,t.reset=!0)}}const _j={name:"flip",enabled:!0,phase:"main",fn:Tj,requiresIfExists:["offset"],data:{_skip:!1}};function W0(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function U0(e){return[Qt,In,On,Jt].some(function(t){return e[t]>=0})}function jj(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=la(t,{elementContext:"reference"}),a=la(t,{altBoundary:!0}),l=W0(s,r),c=W0(a,o,i),d=U0(l),f=U0(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const Oj={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:jj};function Ij(e,t,n){var r=sr(e),o=[Jt,Qt].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[Jt,In].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function Mj(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=_2.reduce(function(d,f){return d[f]=Ij(f,t.rects,i),d},{}),a=s[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const Nj={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Mj};function Lj(e){var t=e.state,n=e.name;t.modifiersData[n]=A2({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Aj={name:"popperOffsets",enabled:!0,phase:"read",fn:Lj,data:{}};function zj(e){return e==="x"?"y":"x"}function Dj(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,f=n.padding,h=n.tether,b=h===void 0?!0:h,y=n.tetherOffset,v=y===void 0?0:y,C=la(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:d}),g=sr(t.placement),m=ji(t.placement),x=!m,w=sm(g),k=zj(w),P=t.modifiersData.popperOffsets,R=t.rects.reference,E=t.rects.popper,j=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,T=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(P){if(i){var I,N=w==="y"?Qt:Jt,D=w==="y"?On:In,z=w==="y"?"height":"width",W=P[w],$=W+C[N],_=W-C[D],F=b?-E[z]/2:0,G=m===$i?R[z]:E[z],X=m===$i?-E[z]:-R[z],ce=t.elements.arrow,Z=b&&ce?im(ce):{width:0,height:0},ue=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:I2(),U=ue[N],ee=ue[D],K=Is(0,R[z],Z[z]),Q=x?R[z]/2-F-K-U-T.mainAxis:G-K-U-T.mainAxis,he=x?-R[z]/2+F+K+ee+T.mainAxis:X+K+ee+T.mainAxis,J=t.elements.arrow&&_a(t.elements.arrow),fe=J?w==="y"?J.clientTop||0:J.clientLeft||0:0,pe=(I=O==null?void 0:O[w])!=null?I:0,Se=W+Q-pe-fe,xe=W+he-pe,Ct=Is(b?gc($,Se):$,W,b?ko(_,xe):_);P[w]=Ct,M[w]=Ct-W}if(a){var Fe,ze=w==="x"?Qt:Jt,pt=w==="x"?On:In,Me=P[k],ke=k==="y"?"height":"width",ct=Me+C[ze],He=Me-C[pt],Ee=[Qt,Jt].indexOf(g)!==-1,ht=(Fe=O==null?void 0:O[k])!=null?Fe:0,yt=Ee?ct:Me-R[ke]-E[ke]-ht+T.altAxis,wt=Ee?Me+R[ke]+E[ke]-ht-T.altAxis:He,Re=b&&Ee?cj(yt,Me,wt):Is(b?yt:ct,Me,b?wt:He);P[k]=Re,M[k]=Re-Me}t.modifiersData[r]=M}}const Fj={name:"preventOverflow",enabled:!0,phase:"main",fn:Dj,requiresIfExists:["offset"]};function Bj(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Wj(e){return e===fn(e)||!En(e)?am(e):Bj(e)}function Uj(e){var t=e.getBoundingClientRect(),n=Ti(t.width)/e.offsetWidth||1,r=Ti(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Hj(e,t,n){n===void 0&&(n=!1);var r=En(t),o=En(t)&&Uj(t),i=so(t),s=_i(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((cr(t)!=="body"||cm(i))&&(a=Wj(t)),En(t)?(l=_i(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=lm(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function Vj(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function qj(e){var t=Vj(e);return rj.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Kj(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Gj(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var H0={placement:"bottom",modifiers:[],strategy:"absolute"};function V0(){for(var e=arguments.length,t=new Array(e),n=0;nie({root:["root"]},_T(Jj)),o3={},i3=p.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:s,disablePortal:a,modifiers:l,open:c,placement:d,popperOptions:f,popperRef:h,slotProps:b={},slots:y={},TransitionProps:v}=t,C=H(t,Zj),g=p.useRef(null),m=Ye(g,n),x=p.useRef(null),w=Ye(x,h),k=p.useRef(w);dn(()=>{k.current=w},[w]),p.useImperativeHandle(h,()=>x.current,[]);const P=t3(d,s),[R,E]=p.useState(P),[j,T]=p.useState(vp(o));p.useEffect(()=>{x.current&&x.current.forceUpdate()}),p.useEffect(()=>{o&&T(vp(o))},[o]),dn(()=>{if(!j||!c)return;const D=$=>{E($.placement)};let z=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:$})=>{D($)}}];l!=null&&(z=z.concat(l)),f&&f.modifiers!=null&&(z=z.concat(f.modifiers));const W=Qj(j,g.current,S({placement:P},f,{modifiers:z}));return k.current(W),()=>{W.destroy(),k.current(null)}},[j,a,l,c,f,P]);const O={placement:R};v!==null&&(O.TransitionProps=v);const M=r3(),I=(r=y.root)!=null?r:"div",N=en({elementType:I,externalSlotProps:b.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:m},ownerState:t,className:M.root});return u.jsx(I,S({},N,{children:typeof i=="function"?i(O):i}))}),s3=p.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:s="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:d,placement:f="bottom",popperOptions:h=o3,popperRef:b,style:y,transition:v=!1,slotProps:C={},slots:g={}}=t,m=H(t,e3),[x,w]=p.useState(!0),k=()=>{w(!1)},P=()=>{w(!0)};if(!l&&!d&&(!v||x))return null;let R;if(i)R=i;else if(r){const T=vp(r);R=T&&n3(T)?ft(T).body:ft(null).body}const E=!d&&l&&(!v||x)?"none":void 0,j=v?{in:d,onEnter:k,onExited:P}:void 0;return u.jsx($2,{disablePortal:a,container:R,children:u.jsx(i3,S({anchorEl:r,direction:s,disablePortal:a,modifiers:c,ref:n,open:v?!x:d,placement:f,popperOptions:h,popperRef:b,slotProps:C,slots:g},m,{style:S({position:"fixed",top:0,left:0,display:E},y),TransitionProps:j,children:o}))})});function a3(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:i}=e,s=xo();p.useEffect(()=>{if(!o)return;function g(m){m.defaultPrevented||(m.key==="Escape"||m.key==="Esc")&&(r==null||r(m,"escapeKeyDown"))}return document.addEventListener("keydown",g),()=>{document.removeEventListener("keydown",g)}},[o,r]);const a=zt((g,m)=>{r==null||r(g,m)}),l=zt(g=>{!r||g==null||s.start(g,()=>{a(null,"timeout")})});p.useEffect(()=>(o&&l(t),s.clear),[o,t,l,s]);const c=g=>{r==null||r(g,"clickaway")},d=s.clear,f=p.useCallback(()=>{t!=null&&l(i??t*.5)},[t,i,l]),h=g=>m=>{const x=g.onBlur;x==null||x(m),f()},b=g=>m=>{const x=g.onFocus;x==null||x(m),d()},y=g=>m=>{const x=g.onMouseEnter;x==null||x(m),d()},v=g=>m=>{const x=g.onMouseLeave;x==null||x(m),f()};return p.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",f),window.addEventListener("blur",d),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",d)}},[n,o,f,d]),{getRootProps:(g={})=>{const m=S({},mc(e),mc(g));return S({role:"presentation"},g,m,{onBlur:h(m),onFocus:b(m),onMouseEnter:y(m),onMouseLeave:v(m)})},onClickAway:c}}const l3=["onChange","maxRows","minRows","style","value"];function nl(e){return parseInt(e,10)||0}const c3={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function u3(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const d3=p.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:s,value:a}=t,l=H(t,l3),{current:c}=p.useRef(a!=null),d=p.useRef(null),f=Ye(n,d),h=p.useRef(null),b=p.useCallback(()=>{const C=d.current,m=_n(C).getComputedStyle(C);if(m.width==="0px")return{outerHeightStyle:0,overflowing:!1};const x=h.current;x.style.width=m.width,x.value=C.value||t.placeholder||"x",x.value.slice(-1)===` +`),xn.rippleVisible,zT,hp,({theme:e})=>e.transitions.easing.easeInOut,xn.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,xn.child,xn.childLeaving,DT,hp,({theme:e})=>e.transitions.easing.easeInOut,xn.childPulsate,FT,({theme:e})=>e.transitions.easing.easeInOut),UT=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s}=r,a=H(r,LT),[l,c]=p.useState([]),d=p.useRef(0),f=p.useRef(null);p.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const h=p.useRef(!1),b=xo(),y=p.useRef(null),v=p.useRef(null),C=p.useCallback(w=>{const{pulsate:k,rippleX:P,rippleY:R,rippleSize:E,cb:j}=w;c(T=>[...T,u.jsx(WT,{classes:{ripple:V(i.ripple,xn.ripple),rippleVisible:V(i.rippleVisible,xn.rippleVisible),ripplePulsate:V(i.ripplePulsate,xn.ripplePulsate),child:V(i.child,xn.child),childLeaving:V(i.childLeaving,xn.childLeaving),childPulsate:V(i.childPulsate,xn.childPulsate)},timeout:hp,pulsate:k,rippleX:P,rippleY:R,rippleSize:E},d.current)]),d.current+=1,f.current=j},[i]),g=p.useCallback((w={},k={},P=()=>{})=>{const{pulsate:R=!1,center:E=o||k.pulsate,fakeElement:j=!1}=k;if((w==null?void 0:w.type)==="mousedown"&&h.current){h.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(h.current=!0);const T=j?null:v.current,O=T?T.getBoundingClientRect():{width:0,height:0,left:0,top:0};let M,I,N;if(E||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)M=Math.round(O.width/2),I=Math.round(O.height/2);else{const{clientX:D,clientY:z}=w.touches&&w.touches.length>0?w.touches[0]:w;M=Math.round(D-O.left),I=Math.round(z-O.top)}if(E)N=Math.sqrt((2*O.width**2+O.height**2)/3),N%2===0&&(N+=1);else{const D=Math.max(Math.abs((T?T.clientWidth:0)-M),M)*2+2,z=Math.max(Math.abs((T?T.clientHeight:0)-I),I)*2+2;N=Math.sqrt(D**2+z**2)}w!=null&&w.touches?y.current===null&&(y.current=()=>{C({pulsate:R,rippleX:M,rippleY:I,rippleSize:N,cb:P})},b.start(AT,()=>{y.current&&(y.current(),y.current=null)})):C({pulsate:R,rippleX:M,rippleY:I,rippleSize:N,cb:P})},[o,C,b]),m=p.useCallback(()=>{g({},{pulsate:!0})},[g]),x=p.useCallback((w,k)=>{if(b.clear(),(w==null?void 0:w.type)==="touchend"&&y.current){y.current(),y.current=null,b.start(0,()=>{x(w,k)});return}y.current=null,c(P=>P.length>0?P.slice(1):P),f.current=k},[b]);return p.useImperativeHandle(n,()=>({pulsate:m,start:g,stop:x}),[m,g,x]),u.jsx(BT,S({className:V(xn.root,i.root,s),ref:v},a,{children:u.jsx(tm,{component:null,exit:!0,children:l})}))});function HT(e){return re("MuiButtonBase",e)}const VT=oe("MuiButtonBase",["root","disabled","focusVisible"]),qT=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],KT=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=ie({root:["root",t&&"disabled",n&&"focusVisible"]},HT,o);return n&&r&&(s.root+=` ${r}`),s},GT=B("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${VT.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),kr=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:a,component:l="button",disabled:c=!1,disableRipple:d=!1,disableTouchRipple:f=!1,focusRipple:h=!1,LinkComponent:b="a",onBlur:y,onClick:v,onContextMenu:C,onDragLeave:g,onFocus:m,onFocusVisible:x,onKeyDown:w,onKeyUp:k,onMouseDown:P,onMouseLeave:R,onMouseUp:E,onTouchEnd:j,onTouchMove:T,onTouchStart:O,tabIndex:M=0,TouchRippleProps:I,touchRippleRef:N,type:D}=r,z=H(r,qT),W=p.useRef(null),$=p.useRef(null),_=Ye($,N),{isFocusVisibleRef:F,onFocus:G,onBlur:X,ref:ce}=Kh(),[Z,ue]=p.useState(!1);c&&Z&&ue(!1),p.useImperativeHandle(o,()=>({focusVisible:()=>{ue(!0),W.current.focus()}}),[]);const[U,ee]=p.useState(!1);p.useEffect(()=>{ee(!0)},[]);const K=U&&!d&&!c;p.useEffect(()=>{Z&&h&&!d&&U&&$.current.pulsate()},[d,h,Z,U]);function Q(se,tt,Ut=f){return zt(tn=>(tt&&tt(tn),!Ut&&$.current&&$.current[se](tn),!0))}const he=Q("start",P),J=Q("stop",C),fe=Q("stop",g),pe=Q("stop",E),Se=Q("stop",se=>{Z&&se.preventDefault(),R&&R(se)}),xe=Q("start",O),Ct=Q("stop",j),Fe=Q("stop",T),ze=Q("stop",se=>{X(se),F.current===!1&&ue(!1),y&&y(se)},!1),pt=zt(se=>{W.current||(W.current=se.currentTarget),G(se),F.current===!0&&(ue(!0),x&&x(se)),m&&m(se)}),Me=()=>{const se=W.current;return l&&l!=="button"&&!(se.tagName==="A"&&se.href)},ke=p.useRef(!1),ct=zt(se=>{h&&!ke.current&&Z&&$.current&&se.key===" "&&(ke.current=!0,$.current.stop(se,()=>{$.current.start(se)})),se.target===se.currentTarget&&Me()&&se.key===" "&&se.preventDefault(),w&&w(se),se.target===se.currentTarget&&Me()&&se.key==="Enter"&&!c&&(se.preventDefault(),v&&v(se))}),He=zt(se=>{h&&se.key===" "&&$.current&&Z&&!se.defaultPrevented&&(ke.current=!1,$.current.stop(se,()=>{$.current.pulsate(se)})),k&&k(se),v&&se.target===se.currentTarget&&Me()&&se.key===" "&&!se.defaultPrevented&&v(se)});let Ee=l;Ee==="button"&&(z.href||z.to)&&(Ee=b);const ht={};Ee==="button"?(ht.type=D===void 0?"button":D,ht.disabled=c):(!z.href&&!z.to&&(ht.role="button"),c&&(ht["aria-disabled"]=c));const yt=Ye(n,ce,W),wt=S({},r,{centerRipple:i,component:l,disabled:c,disableRipple:d,disableTouchRipple:f,focusRipple:h,tabIndex:M,focusVisible:Z}),Re=KT(wt);return u.jsxs(GT,S({as:Ee,className:V(Re.root,a),ownerState:wt,onBlur:ze,onClick:v,onContextMenu:J,onFocus:pt,onKeyDown:ct,onKeyUp:He,onMouseDown:he,onMouseLeave:Se,onMouseUp:pe,onDragLeave:fe,onTouchEnd:Ct,onTouchMove:Fe,onTouchStart:xe,ref:yt,tabIndex:c?-1:M,type:D},ht,z,{children:[s,K?u.jsx(UT,S({ref:_,center:i},I)):null]}))});function YT(e){return re("MuiAlert",e)}const _0=oe("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function XT(e){return re("MuiIconButton",e)}const QT=oe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),JT=["edge","children","className","color","disabled","disableFocusRipple","size"],ZT=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${A(r)}`,o&&`edge${A(o)}`,`size${A(i)}`]};return ie(s,XT,t)},e_=B(kr,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${A(n.color)}`],n.edge&&t[`edge${A(n.edge)}`],t[`size${A(n.size)}`]]}})(({theme:e,ownerState:t})=>S({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:je(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return S({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&S({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":S({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:je(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${QT.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Qe=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:a="default",disabled:l=!1,disableFocusRipple:c=!1,size:d="medium"}=r,f=H(r,JT),h=S({},r,{edge:o,color:a,disabled:l,disableFocusRipple:c,size:d}),b=ZT(h);return u.jsx(e_,S({className:V(b.root,s),centerRipple:!0,focusRipple:!c,disabled:l,ref:n},f,{ownerState:h,children:i}))}),t_=Nt(u.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),n_=Nt(u.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),r_=Nt(u.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),o_=Nt(u.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),i_=Nt(u.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),s_=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],a_=zu(),l_=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`color${A(n||r)}`,`${t}${A(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return ie(i,YT,o)},c_=B(gn,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${A(n.color||n.severity)}`]]}})(({theme:e})=>{const t=e.palette.mode==="light"?dc:fc,n=e.palette.mode==="light"?fc:dc;return S({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${_0.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${_0.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.dark).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:S({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)})}))]})}),u_=B("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),d_=B("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),j0=B("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),O0={success:u.jsx(t_,{fontSize:"inherit"}),warning:u.jsx(n_,{fontSize:"inherit"}),error:u.jsx(r_,{fontSize:"inherit"}),info:u.jsx(o_,{fontSize:"inherit"})},ur=p.forwardRef(function(t,n){const r=a_({props:t,name:"MuiAlert"}),{action:o,children:i,className:s,closeText:a="Close",color:l,components:c={},componentsProps:d={},icon:f,iconMapping:h=O0,onClose:b,role:y="alert",severity:v="success",slotProps:C={},slots:g={},variant:m="standard"}=r,x=H(r,s_),w=S({},r,{color:l,severity:v,variant:m,colorSeverity:l||v}),k=l_(w),P={slots:S({closeButton:c.CloseButton,closeIcon:c.CloseIcon},g),slotProps:S({},d,C)},[R,E]=pp("closeButton",{elementType:Qe,externalForwardedProps:P,ownerState:w}),[j,T]=pp("closeIcon",{elementType:i_,externalForwardedProps:P,ownerState:w});return u.jsxs(c_,S({role:y,elevation:0,ownerState:w,className:V(k.root,s),ref:n},x,{children:[f!==!1?u.jsx(u_,{ownerState:w,className:k.icon,children:f||h[v]||O0[v]}):null,u.jsx(d_,{ownerState:w,className:k.message,children:i}),o!=null?u.jsx(j0,{ownerState:w,className:k.action,children:o}):null,o==null&&b?u.jsx(j0,{ownerState:w,className:k.action,children:u.jsx(R,S({size:"small","aria-label":a,title:a,color:"inherit",onClick:b},E,{children:u.jsx(j,S({fontSize:"small"},T))}))}):null]}))});function f_(e){return re("MuiTypography",e)}oe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const p_=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],h_=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=e,a={root:["root",i,e.align!=="inherit"&&`align${A(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return ie(a,f_,s)},m_=B("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${A(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>S({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),I0={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},g_={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},v_=e=>g_[e]||e,ye=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiTypography"}),o=v_(r.color),i=mu(S({},r,{color:o})),{align:s="inherit",className:a,component:l,gutterBottom:c=!1,noWrap:d=!1,paragraph:f=!1,variant:h="body1",variantMapping:b=I0}=i,y=H(i,p_),v=S({},i,{align:s,color:o,className:a,component:l,gutterBottom:c,noWrap:d,paragraph:f,variant:h,variantMapping:b}),C=l||(f?"p":b[h]||I0[h])||"span",g=h_(v);return u.jsx(m_,S({as:C,ref:n,ownerState:v,className:V(g.root,a)},y))});function y_(e){return re("MuiAppBar",e)}oe("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const x_=["className","color","enableColorOnDark","position"],b_=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${A(t)}`,`position${A(n)}`]};return ie(o,y_,r)},el=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,S_=B(gn,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${A(n.position)}`],t[`color${A(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return S({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&S({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&S({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&S({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:el(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:el(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:el(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:el(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),C_=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:s=!1,position:a="fixed"}=r,l=H(r,x_),c=S({},r,{color:i,position:a,enableColorOnDark:s}),d=b_(c);return u.jsx(S_,S({square:!0,component:"header",ownerState:c,elevation:4,className:V(d.root,o,a==="fixed"&&"mui-fixed"),ref:n},l))});function w_(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=l2({badgeContent:t,max:r});let s=n;n===!1&&t===0&&!o&&(s=!0);const{badgeContent:a,max:l=r}=s?i:e,c=a&&Number(a)>l?`${l}+`:a;return{badgeContent:a,invisible:s,max:l,displayValue:c}}const P2="base";function k_(e){return`${P2}--${e}`}function R_(e,t){return`${P2}-${e}-${t}`}function E2(e,t){const n=e2[t];return n?k_(n):R_(e,t)}function P_(e,t){const n={};return t.forEach(r=>{n[r]=E2(e,r)}),n}function M0(e){return e.substring(2).toLowerCase()}function E_(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const d=Ye(t.ref,a),f=zt(y=>{const v=c.current;c.current=!1;const C=ft(a.current);if(!l.current||!a.current||"clientX"in y&&E_(y,C))return;if(s.current){s.current=!1;return}let g;y.composedPath?g=y.composedPath().indexOf(a.current)>-1:g=!C.documentElement.contains(y.target)||a.current.contains(y.target),!g&&(n||!v)&&o(y)}),h=y=>v=>{c.current=!0;const C=t.props[y];C&&C(v)},b={ref:d};return i!==!1&&(b[i]=h(i)),p.useEffect(()=>{if(i!==!1){const y=M0(i),v=ft(a.current),C=()=>{s.current=!0};return v.addEventListener(y,f),v.addEventListener("touchmove",C),()=>{v.removeEventListener(y,f),v.removeEventListener("touchmove",C)}}},[f,i]),r!==!1&&(b[r]=h(r)),p.useEffect(()=>{if(r!==!1){const y=M0(r),v=ft(a.current);return v.addEventListener(y,f),()=>{v.removeEventListener(y,f)}}},[f,r]),u.jsx(p.Fragment,{children:p.cloneElement(t,b)})}const T_=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function __(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function j_(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function O_(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||j_(e))}function I_(e){const t=[],n=[];return Array.from(e.querySelectorAll(T_)).forEach((r,o)=>{const i=__(r);i===-1||!O_(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function M_(){return!0}function N_(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=I_,isEnabled:s=M_,open:a}=e,l=p.useRef(!1),c=p.useRef(null),d=p.useRef(null),f=p.useRef(null),h=p.useRef(null),b=p.useRef(!1),y=p.useRef(null),v=Ye(t.ref,y),C=p.useRef(null);p.useEffect(()=>{!a||!y.current||(b.current=!n)},[n,a]),p.useEffect(()=>{if(!a||!y.current)return;const x=ft(y.current);return y.current.contains(x.activeElement)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex","-1"),b.current&&y.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[a]),p.useEffect(()=>{if(!a||!y.current)return;const x=ft(y.current),w=R=>{C.current=R,!(r||!s()||R.key!=="Tab")&&x.activeElement===y.current&&R.shiftKey&&(l.current=!0,d.current&&d.current.focus())},k=()=>{const R=y.current;if(R===null)return;if(!x.hasFocus()||!s()||l.current){l.current=!1;return}if(R.contains(x.activeElement)||r&&x.activeElement!==c.current&&x.activeElement!==d.current)return;if(x.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!b.current)return;let E=[];if((x.activeElement===c.current||x.activeElement===d.current)&&(E=i(y.current)),E.length>0){var j,T;const O=!!((j=C.current)!=null&&j.shiftKey&&((T=C.current)==null?void 0:T.key)==="Tab"),M=E[0],I=E[E.length-1];typeof M!="string"&&typeof I!="string"&&(O?I.focus():M.focus())}else R.focus()};x.addEventListener("focusin",k),x.addEventListener("keydown",w,!0);const P=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&k()},50);return()=>{clearInterval(P),x.removeEventListener("focusin",k),x.removeEventListener("keydown",w,!0)}},[n,r,o,s,a,i]);const g=x=>{f.current===null&&(f.current=x.relatedTarget),b.current=!0,h.current=x.target;const w=t.props.onFocus;w&&w(x)},m=x=>{f.current===null&&(f.current=x.relatedTarget),b.current=!0};return u.jsxs(p.Fragment,{children:[u.jsx("div",{tabIndex:a?0:-1,onFocus:m,ref:c,"data-testid":"sentinelStart"}),p.cloneElement(t,{ref:v,onFocus:g}),u.jsx("div",{tabIndex:a?0:-1,onFocus:m,ref:d,"data-testid":"sentinelEnd"})]})}function L_(e){return typeof e=="function"?e():e}const $2=p.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[s,a]=p.useState(null),l=Ye(p.isValidElement(r)?r.ref:null,n);if(dn(()=>{i||a(L_(o)||document.body)},[o,i]),dn(()=>{if(s&&!i)return uc(n,s),()=>{uc(n,null)}},[n,s,i]),i){if(p.isValidElement(r)){const c={ref:l};return p.cloneElement(r,c)}return u.jsx(p.Fragment,{children:r})}return u.jsx(p.Fragment,{children:s&&Sh.createPortal(r,s)})});function A_(e){const t=ft(e);return t.body===e?_n(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Os(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function N0(e){return parseInt(_n(e).getComputedStyle(e).paddingRight,10)||0}function z_(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function L0(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,s=>{const a=i.indexOf(s)===-1,l=!z_(s);a&&l&&Os(s,o)})}function Dd(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function D_(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(A_(r)){const s=s2(ft(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${N0(r)+s}px`;const a=ft(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${N0(l)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=ft(r).body;else{const s=r.parentElement,a=_n(r);i=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:s,property:a})=>{i?s.style.setProperty(a,i):s.style.removeProperty(a)})}}function F_(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class B_{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Os(t.modalRef,!1);const o=F_(n);L0(n,t.mount,t.modalRef,o,!0);const i=Dd(this.containers,s=>s.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Dd(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=D_(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Dd(this.containers,s=>s.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Os(t.modalRef,n),L0(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=i.modals[i.modals.length-1];s.modalRef&&Os(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function W_(e){return typeof e=="function"?e():e}function U_(e){return e?e.props.hasOwnProperty("in"):!1}const H_=new B_;function V_(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=H_,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:c,open:d,rootRef:f}=e,h=p.useRef({}),b=p.useRef(null),y=p.useRef(null),v=Ye(y,f),[C,g]=p.useState(!d),m=U_(l);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const w=()=>ft(b.current),k=()=>(h.current.modalRef=y.current,h.current.mount=b.current,h.current),P=()=>{o.mount(k(),{disableScrollLock:r}),y.current&&(y.current.scrollTop=0)},R=zt(()=>{const z=W_(t)||w().body;o.add(k(),z),y.current&&P()}),E=p.useCallback(()=>o.isTopModal(k()),[o]),j=zt(z=>{b.current=z,z&&(d&&E()?P():y.current&&Os(y.current,x))}),T=p.useCallback(()=>{o.remove(k(),x)},[x,o]);p.useEffect(()=>()=>{T()},[T]),p.useEffect(()=>{d?R():(!m||!i)&&T()},[d,T,m,i,R]);const O=z=>W=>{var $;($=z.onKeyDown)==null||$.call(z,W),!(W.key!=="Escape"||W.which===229||!E())&&(n||(W.stopPropagation(),c&&c(W,"escapeKeyDown")))},M=z=>W=>{var $;($=z.onClick)==null||$.call(z,W),W.target===W.currentTarget&&c&&c(W,"backdropClick")};return{getRootProps:(z={})=>{const W=mc(e);delete W.onTransitionEnter,delete W.onTransitionExited;const $=S({},W,z);return S({role:"presentation"},$,{onKeyDown:O($),ref:v})},getBackdropProps:(z={})=>{const W=z;return S({"aria-hidden":!0},W,{onClick:M(W),open:d})},getTransitionProps:()=>{const z=()=>{g(!1),s&&s()},W=()=>{g(!0),a&&a(),i&&T()};return{onEnter:ap(z,l==null?void 0:l.props.onEnter),onExited:ap(W,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:j,isTopModal:E,exited:C,hasTransition:m}}var Qt="top",On="bottom",In="right",Jt="left",rm="auto",Ta=[Qt,On,In,Jt],$i="start",aa="end",q_="clippingParents",T2="viewport",ls="popper",K_="reference",A0=Ta.reduce(function(e,t){return e.concat([t+"-"+$i,t+"-"+aa])},[]),_2=[].concat(Ta,[rm]).reduce(function(e,t){return e.concat([t,t+"-"+$i,t+"-"+aa])},[]),G_="beforeRead",Y_="read",X_="afterRead",Q_="beforeMain",J_="main",Z_="afterMain",ej="beforeWrite",tj="write",nj="afterWrite",rj=[G_,Y_,X_,Q_,J_,Z_,ej,tj,nj];function cr(e){return e?(e.nodeName||"").toLowerCase():null}function fn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Mo(e){var t=fn(e).Element;return e instanceof t||e instanceof Element}function En(e){var t=fn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function om(e){if(typeof ShadowRoot>"u")return!1;var t=fn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function oj(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!En(i)||!cr(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function ij(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(l,c){return l[c]="",l},{});!En(o)||!cr(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const sj={name:"applyStyles",enabled:!0,phase:"write",fn:oj,effect:ij,requires:["computeStyles"]};function sr(e){return e.split("-")[0]}var ko=Math.max,gc=Math.min,Ti=Math.round;function mp(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function j2(){return!/^((?!chrome|android).)*safari/i.test(mp())}function _i(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&En(e)&&(o=e.offsetWidth>0&&Ti(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ti(r.height)/e.offsetHeight||1);var s=Mo(e)?fn(e):window,a=s.visualViewport,l=!j2()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/o,d=(r.top+(l&&a?a.offsetTop:0))/i,f=r.width/o,h=r.height/i;return{width:f,height:h,top:d,right:c+f,bottom:d+h,left:c,x:c,y:d}}function im(e){var t=_i(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function O2(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&om(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Rr(e){return fn(e).getComputedStyle(e)}function aj(e){return["table","td","th"].indexOf(cr(e))>=0}function so(e){return((Mo(e)?e.ownerDocument:e.document)||window.document).documentElement}function Fu(e){return cr(e)==="html"?e:e.assignedSlot||e.parentNode||(om(e)?e.host:null)||so(e)}function z0(e){return!En(e)||Rr(e).position==="fixed"?null:e.offsetParent}function lj(e){var t=/firefox/i.test(mp()),n=/Trident/i.test(mp());if(n&&En(e)){var r=Rr(e);if(r.position==="fixed")return null}var o=Fu(e);for(om(o)&&(o=o.host);En(o)&&["html","body"].indexOf(cr(o))<0;){var i=Rr(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function _a(e){for(var t=fn(e),n=z0(e);n&&aj(n)&&Rr(n).position==="static";)n=z0(n);return n&&(cr(n)==="html"||cr(n)==="body"&&Rr(n).position==="static")?t:n||lj(e)||t}function sm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Is(e,t,n){return ko(e,gc(t,n))}function cj(e,t,n){var r=Is(e,t,n);return r>n?n:r}function I2(){return{top:0,right:0,bottom:0,left:0}}function M2(e){return Object.assign({},I2(),e)}function N2(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var uj=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,M2(typeof t!="number"?t:N2(t,Ta))};function dj(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=sr(n.placement),l=sm(a),c=[Jt,In].indexOf(a)>=0,d=c?"height":"width";if(!(!i||!s)){var f=uj(o.padding,n),h=im(i),b=l==="y"?Qt:Jt,y=l==="y"?On:In,v=n.rects.reference[d]+n.rects.reference[l]-s[l]-n.rects.popper[d],C=s[l]-n.rects.reference[l],g=_a(i),m=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,x=v/2-C/2,w=f[b],k=m-h[d]-f[y],P=m/2-h[d]/2+x,R=Is(w,P,k),E=l;n.modifiersData[r]=(t={},t[E]=R,t.centerOffset=R-P,t)}}function fj(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||O2(t.elements.popper,o)&&(t.elements.arrow=o))}const pj={name:"arrow",enabled:!0,phase:"main",fn:dj,effect:fj,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ji(e){return e.split("-")[1]}var hj={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mj(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Ti(n*o)/o||0,y:Ti(r*o)/o||0}}function D0(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,f=e.isFixed,h=s.x,b=h===void 0?0:h,y=s.y,v=y===void 0?0:y,C=typeof d=="function"?d({x:b,y:v}):{x:b,y:v};b=C.x,v=C.y;var g=s.hasOwnProperty("x"),m=s.hasOwnProperty("y"),x=Jt,w=Qt,k=window;if(c){var P=_a(n),R="clientHeight",E="clientWidth";if(P===fn(n)&&(P=so(n),Rr(P).position!=="static"&&a==="absolute"&&(R="scrollHeight",E="scrollWidth")),P=P,o===Qt||(o===Jt||o===In)&&i===aa){w=On;var j=f&&P===k&&k.visualViewport?k.visualViewport.height:P[R];v-=j-r.height,v*=l?1:-1}if(o===Jt||(o===Qt||o===On)&&i===aa){x=In;var T=f&&P===k&&k.visualViewport?k.visualViewport.width:P[E];b-=T-r.width,b*=l?1:-1}}var O=Object.assign({position:a},c&&hj),M=d===!0?mj({x:b,y:v},fn(n)):{x:b,y:v};if(b=M.x,v=M.y,l){var I;return Object.assign({},O,(I={},I[w]=m?"0":"",I[x]=g?"0":"",I.transform=(k.devicePixelRatio||1)<=1?"translate("+b+"px, "+v+"px)":"translate3d("+b+"px, "+v+"px, 0)",I))}return Object.assign({},O,(t={},t[w]=m?v+"px":"",t[x]=g?b+"px":"",t.transform="",t))}function gj(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:sr(t.placement),variation:ji(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,D0(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,D0(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const vj={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:gj,data:{}};var tl={passive:!0};function yj(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,l=fn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(d){d.addEventListener("scroll",n.update,tl)}),a&&l.addEventListener("resize",n.update,tl),function(){i&&c.forEach(function(d){d.removeEventListener("scroll",n.update,tl)}),a&&l.removeEventListener("resize",n.update,tl)}}const xj={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:yj,data:{}};var bj={left:"right",right:"left",bottom:"top",top:"bottom"};function _l(e){return e.replace(/left|right|bottom|top/g,function(t){return bj[t]})}var Sj={start:"end",end:"start"};function F0(e){return e.replace(/start|end/g,function(t){return Sj[t]})}function am(e){var t=fn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function lm(e){return _i(so(e)).left+am(e).scrollLeft}function Cj(e,t){var n=fn(e),r=so(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var c=j2();(c||!c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+lm(e),y:l}}function wj(e){var t,n=so(e),r=am(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=ko(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=ko(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+lm(e),l=-r.scrollTop;return Rr(o||n).direction==="rtl"&&(a+=ko(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function cm(e){var t=Rr(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function L2(e){return["html","body","#document"].indexOf(cr(e))>=0?e.ownerDocument.body:En(e)&&cm(e)?e:L2(Fu(e))}function Ms(e,t){var n;t===void 0&&(t=[]);var r=L2(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=fn(r),s=o?[i].concat(i.visualViewport||[],cm(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(Ms(Fu(s)))}function gp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function kj(e,t){var n=_i(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function B0(e,t,n){return t===T2?gp(Cj(e,n)):Mo(t)?kj(t,n):gp(wj(so(e)))}function Rj(e){var t=Ms(Fu(e)),n=["absolute","fixed"].indexOf(Rr(e).position)>=0,r=n&&En(e)?_a(e):e;return Mo(r)?t.filter(function(o){return Mo(o)&&O2(o,r)&&cr(o)!=="body"}):[]}function Pj(e,t,n,r){var o=t==="clippingParents"?Rj(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(l,c){var d=B0(e,c,r);return l.top=ko(d.top,l.top),l.right=gc(d.right,l.right),l.bottom=gc(d.bottom,l.bottom),l.left=ko(d.left,l.left),l},B0(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function A2(e){var t=e.reference,n=e.element,r=e.placement,o=r?sr(r):null,i=r?ji(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case Qt:l={x:s,y:t.y-n.height};break;case On:l={x:s,y:t.y+t.height};break;case In:l={x:t.x+t.width,y:a};break;case Jt:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=o?sm(o):null;if(c!=null){var d=c==="y"?"height":"width";switch(i){case $i:l[c]=l[c]-(t[d]/2-n[d]/2);break;case aa:l[c]=l[c]+(t[d]/2-n[d]/2);break}}return l}function la(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,a=n.boundary,l=a===void 0?q_:a,c=n.rootBoundary,d=c===void 0?T2:c,f=n.elementContext,h=f===void 0?ls:f,b=n.altBoundary,y=b===void 0?!1:b,v=n.padding,C=v===void 0?0:v,g=M2(typeof C!="number"?C:N2(C,Ta)),m=h===ls?K_:ls,x=e.rects.popper,w=e.elements[y?m:h],k=Pj(Mo(w)?w:w.contextElement||so(e.elements.popper),l,d,s),P=_i(e.elements.reference),R=A2({reference:P,element:x,strategy:"absolute",placement:o}),E=gp(Object.assign({},x,R)),j=h===ls?E:P,T={top:k.top-j.top+g.top,bottom:j.bottom-k.bottom+g.bottom,left:k.left-j.left+g.left,right:j.right-k.right+g.right},O=e.modifiersData.offset;if(h===ls&&O){var M=O[o];Object.keys(T).forEach(function(I){var N=[In,On].indexOf(I)>=0?1:-1,D=[Qt,On].indexOf(I)>=0?"y":"x";T[I]+=M[D]*N})}return T}function Ej(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?_2:l,d=ji(r),f=d?a?A0:A0.filter(function(y){return ji(y)===d}):Ta,h=f.filter(function(y){return c.indexOf(y)>=0});h.length===0&&(h=f);var b=h.reduce(function(y,v){return y[v]=la(e,{placement:v,boundary:o,rootBoundary:i,padding:s})[sr(v)],y},{});return Object.keys(b).sort(function(y,v){return b[y]-b[v]})}function $j(e){if(sr(e)===rm)return[];var t=_l(e);return[F0(e),t,F0(t)]}function Tj(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,d=n.boundary,f=n.rootBoundary,h=n.altBoundary,b=n.flipVariations,y=b===void 0?!0:b,v=n.allowedAutoPlacements,C=t.options.placement,g=sr(C),m=g===C,x=l||(m||!y?[_l(C)]:$j(C)),w=[C].concat(x).reduce(function(Z,ue){return Z.concat(sr(ue)===rm?Ej(t,{placement:ue,boundary:d,rootBoundary:f,padding:c,flipVariations:y,allowedAutoPlacements:v}):ue)},[]),k=t.rects.reference,P=t.rects.popper,R=new Map,E=!0,j=w[0],T=0;T=0,D=N?"width":"height",z=la(t,{placement:O,boundary:d,rootBoundary:f,altBoundary:h,padding:c}),W=N?I?In:Jt:I?On:Qt;k[D]>P[D]&&(W=_l(W));var $=_l(W),_=[];if(i&&_.push(z[M]<=0),a&&_.push(z[W]<=0,z[$]<=0),_.every(function(Z){return Z})){j=O,E=!1;break}R.set(O,_)}if(E)for(var F=y?3:1,G=function(ue){var U=w.find(function(ee){var K=R.get(ee);if(K)return K.slice(0,ue).every(function(Q){return Q})});if(U)return j=U,"break"},X=F;X>0;X--){var ce=G(X);if(ce==="break")break}t.placement!==j&&(t.modifiersData[r]._skip=!0,t.placement=j,t.reset=!0)}}const _j={name:"flip",enabled:!0,phase:"main",fn:Tj,requiresIfExists:["offset"],data:{_skip:!1}};function W0(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function U0(e){return[Qt,In,On,Jt].some(function(t){return e[t]>=0})}function jj(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=la(t,{elementContext:"reference"}),a=la(t,{altBoundary:!0}),l=W0(s,r),c=W0(a,o,i),d=U0(l),f=U0(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const Oj={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:jj};function Ij(e,t,n){var r=sr(e),o=[Jt,Qt].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[Jt,In].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function Mj(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=_2.reduce(function(d,f){return d[f]=Ij(f,t.rects,i),d},{}),a=s[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const Nj={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Mj};function Lj(e){var t=e.state,n=e.name;t.modifiersData[n]=A2({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Aj={name:"popperOffsets",enabled:!0,phase:"read",fn:Lj,data:{}};function zj(e){return e==="x"?"y":"x"}function Dj(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,f=n.padding,h=n.tether,b=h===void 0?!0:h,y=n.tetherOffset,v=y===void 0?0:y,C=la(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:d}),g=sr(t.placement),m=ji(t.placement),x=!m,w=sm(g),k=zj(w),P=t.modifiersData.popperOffsets,R=t.rects.reference,E=t.rects.popper,j=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,T=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(P){if(i){var I,N=w==="y"?Qt:Jt,D=w==="y"?On:In,z=w==="y"?"height":"width",W=P[w],$=W+C[N],_=W-C[D],F=b?-E[z]/2:0,G=m===$i?R[z]:E[z],X=m===$i?-E[z]:-R[z],ce=t.elements.arrow,Z=b&&ce?im(ce):{width:0,height:0},ue=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:I2(),U=ue[N],ee=ue[D],K=Is(0,R[z],Z[z]),Q=x?R[z]/2-F-K-U-T.mainAxis:G-K-U-T.mainAxis,he=x?-R[z]/2+F+K+ee+T.mainAxis:X+K+ee+T.mainAxis,J=t.elements.arrow&&_a(t.elements.arrow),fe=J?w==="y"?J.clientTop||0:J.clientLeft||0:0,pe=(I=O==null?void 0:O[w])!=null?I:0,Se=W+Q-pe-fe,xe=W+he-pe,Ct=Is(b?gc($,Se):$,W,b?ko(_,xe):_);P[w]=Ct,M[w]=Ct-W}if(a){var Fe,ze=w==="x"?Qt:Jt,pt=w==="x"?On:In,Me=P[k],ke=k==="y"?"height":"width",ct=Me+C[ze],He=Me-C[pt],Ee=[Qt,Jt].indexOf(g)!==-1,ht=(Fe=O==null?void 0:O[k])!=null?Fe:0,yt=Ee?ct:Me-R[ke]-E[ke]-ht+T.altAxis,wt=Ee?Me+R[ke]+E[ke]-ht-T.altAxis:He,Re=b&&Ee?cj(yt,Me,wt):Is(b?yt:ct,Me,b?wt:He);P[k]=Re,M[k]=Re-Me}t.modifiersData[r]=M}}const Fj={name:"preventOverflow",enabled:!0,phase:"main",fn:Dj,requiresIfExists:["offset"]};function Bj(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Wj(e){return e===fn(e)||!En(e)?am(e):Bj(e)}function Uj(e){var t=e.getBoundingClientRect(),n=Ti(t.width)/e.offsetWidth||1,r=Ti(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Hj(e,t,n){n===void 0&&(n=!1);var r=En(t),o=En(t)&&Uj(t),i=so(t),s=_i(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((cr(t)!=="body"||cm(i))&&(a=Wj(t)),En(t)?(l=_i(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=lm(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function Vj(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function qj(e){var t=Vj(e);return rj.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Kj(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Gj(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var H0={placement:"bottom",modifiers:[],strategy:"absolute"};function V0(){for(var e=arguments.length,t=new Array(e),n=0;nie({root:["root"]},_T(Jj)),o3={},i3=p.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:s,disablePortal:a,modifiers:l,open:c,placement:d,popperOptions:f,popperRef:h,slotProps:b={},slots:y={},TransitionProps:v}=t,C=H(t,Zj),g=p.useRef(null),m=Ye(g,n),x=p.useRef(null),w=Ye(x,h),k=p.useRef(w);dn(()=>{k.current=w},[w]),p.useImperativeHandle(h,()=>x.current,[]);const P=t3(d,s),[R,E]=p.useState(P),[j,T]=p.useState(vp(o));p.useEffect(()=>{x.current&&x.current.forceUpdate()}),p.useEffect(()=>{o&&T(vp(o))},[o]),dn(()=>{if(!j||!c)return;const D=$=>{E($.placement)};let z=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:$})=>{D($)}}];l!=null&&(z=z.concat(l)),f&&f.modifiers!=null&&(z=z.concat(f.modifiers));const W=Qj(j,g.current,S({placement:P},f,{modifiers:z}));return k.current(W),()=>{W.destroy(),k.current(null)}},[j,a,l,c,f,P]);const O={placement:R};v!==null&&(O.TransitionProps=v);const M=r3(),I=(r=y.root)!=null?r:"div",N=en({elementType:I,externalSlotProps:b.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:m},ownerState:t,className:M.root});return u.jsx(I,S({},N,{children:typeof i=="function"?i(O):i}))}),s3=p.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:s="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:d,placement:f="bottom",popperOptions:h=o3,popperRef:b,style:y,transition:v=!1,slotProps:C={},slots:g={}}=t,m=H(t,e3),[x,w]=p.useState(!0),k=()=>{w(!1)},P=()=>{w(!0)};if(!l&&!d&&(!v||x))return null;let R;if(i)R=i;else if(r){const T=vp(r);R=T&&n3(T)?ft(T).body:ft(null).body}const E=!d&&l&&(!v||x)?"none":void 0,j=v?{in:d,onEnter:k,onExited:P}:void 0;return u.jsx($2,{disablePortal:a,container:R,children:u.jsx(i3,S({anchorEl:r,direction:s,disablePortal:a,modifiers:c,ref:n,open:v?!x:d,placement:f,popperOptions:h,popperRef:b,slotProps:C,slots:g},m,{style:S({position:"fixed",top:0,left:0,display:E},y),TransitionProps:j,children:o}))})});function a3(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:i}=e,s=xo();p.useEffect(()=>{if(!o)return;function g(m){m.defaultPrevented||(m.key==="Escape"||m.key==="Esc")&&(r==null||r(m,"escapeKeyDown"))}return document.addEventListener("keydown",g),()=>{document.removeEventListener("keydown",g)}},[o,r]);const a=zt((g,m)=>{r==null||r(g,m)}),l=zt(g=>{!r||g==null||s.start(g,()=>{a(null,"timeout")})});p.useEffect(()=>(o&&l(t),s.clear),[o,t,l,s]);const c=g=>{r==null||r(g,"clickaway")},d=s.clear,f=p.useCallback(()=>{t!=null&&l(i??t*.5)},[t,i,l]),h=g=>m=>{const x=g.onBlur;x==null||x(m),f()},b=g=>m=>{const x=g.onFocus;x==null||x(m),d()},y=g=>m=>{const x=g.onMouseEnter;x==null||x(m),d()},v=g=>m=>{const x=g.onMouseLeave;x==null||x(m),f()};return p.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",f),window.addEventListener("blur",d),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",d)}},[n,o,f,d]),{getRootProps:(g={})=>{const m=S({},mc(e),mc(g));return S({role:"presentation"},g,m,{onBlur:h(m),onFocus:b(m),onMouseEnter:y(m),onMouseLeave:v(m)})},onClickAway:c}}const l3=["onChange","maxRows","minRows","style","value"];function nl(e){return parseInt(e,10)||0}const c3={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function u3(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const d3=p.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:s,value:a}=t,l=H(t,l3),{current:c}=p.useRef(a!=null),d=p.useRef(null),f=Ye(n,d),h=p.useRef(null),b=p.useCallback(()=>{const C=d.current,m=_n(C).getComputedStyle(C);if(m.width==="0px")return{outerHeightStyle:0,overflowing:!1};const x=h.current;x.style.width=m.width,x.value=C.value||t.placeholder||"x",x.value.slice(-1)===` `&&(x.value+=" ");const w=m.boxSizing,k=nl(m.paddingBottom)+nl(m.paddingTop),P=nl(m.borderBottomWidth)+nl(m.borderTopWidth),R=x.scrollHeight;x.value="x";const E=x.scrollHeight;let j=R;i&&(j=Math.max(Number(i)*E,j)),o&&(j=Math.min(Number(o)*E,j)),j=Math.max(j,E);const T=j+(w==="border-box"?k+P:0),O=Math.abs(j-R)<=1;return{outerHeightStyle:T,overflowing:O}},[o,i,t.placeholder]),y=p.useCallback(()=>{const C=b();if(u3(C))return;const g=d.current;g.style.height=`${C.outerHeightStyle}px`,g.style.overflow=C.overflowing?"hidden":""},[b]);dn(()=>{const C=()=>{y()};let g;const m=Hi(C),x=d.current,w=_n(x);w.addEventListener("resize",m);let k;return typeof ResizeObserver<"u"&&(k=new ResizeObserver(C),k.observe(x)),()=>{m.clear(),cancelAnimationFrame(g),w.removeEventListener("resize",m),k&&k.disconnect()}},[b,y]),dn(()=>{y()});const v=C=>{c||y(),r&&r(C)};return u.jsxs(p.Fragment,{children:[u.jsx("textarea",S({value:a,onChange:v,ref:f,rows:i,style:s},l)),u.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:S({},c3.shadow,s,{paddingTop:0,paddingBottom:0})})]})});var um={};Object.defineProperty(um,"__esModule",{value:!0});var D2=um.default=void 0,f3=h3(p),p3=x2;function F2(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(F2=function(r){return r?n:t})(e)}function h3(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=F2(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function m3(e){return Object.keys(e).length===0}function g3(e=null){const t=f3.useContext(p3.ThemeContext);return!t||m3(t)?e:t}D2=um.default=g3;const v3=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],y3=B(s3,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),B2=p.forwardRef(function(t,n){var r;const o=D2(),i=le({props:t,name:"MuiPopper"}),{anchorEl:s,component:a,components:l,componentsProps:c,container:d,disablePortal:f,keepMounted:h,modifiers:b,open:y,placement:v,popperOptions:C,popperRef:g,transition:m,slots:x,slotProps:w}=i,k=H(i,v3),P=(r=x==null?void 0:x.root)!=null?r:l==null?void 0:l.Root,R=S({anchorEl:s,container:d,disablePortal:f,keepMounted:h,modifiers:b,open:y,placement:v,popperOptions:C,popperRef:g,transition:m},k);return u.jsx(y3,S({as:a,direction:o==null?void 0:o.direction,slots:{root:P},slotProps:w??c},R,{ref:n}))}),x3=Nt(u.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function b3(e){return re("MuiChip",e)}const _e=oe("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),S3=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],C3=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:s,clickable:a,variant:l}=e,c={root:["root",l,n&&"disabled",`size${A(r)}`,`color${A(o)}`,a&&"clickable",a&&`clickableColor${A(o)}`,s&&"deletable",s&&`deletableColor${A(o)}`,`${l}${A(o)}`],label:["label",`label${A(r)}`],avatar:["avatar",`avatar${A(r)}`,`avatarColor${A(o)}`],icon:["icon",`icon${A(r)}`,`iconColor${A(i)}`],deleteIcon:["deleteIcon",`deleteIcon${A(r)}`,`deleteIconColor${A(o)}`,`deleteIcon${A(l)}Color${A(o)}`]};return ie(c,b3,t)},w3=B("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:s,size:a,variant:l}=n;return[{[`& .${_e.avatar}`]:t.avatar},{[`& .${_e.avatar}`]:t[`avatar${A(a)}`]},{[`& .${_e.avatar}`]:t[`avatarColor${A(r)}`]},{[`& .${_e.icon}`]:t.icon},{[`& .${_e.icon}`]:t[`icon${A(a)}`]},{[`& .${_e.icon}`]:t[`iconColor${A(o)}`]},{[`& .${_e.deleteIcon}`]:t.deleteIcon},{[`& .${_e.deleteIcon}`]:t[`deleteIcon${A(a)}`]},{[`& .${_e.deleteIcon}`]:t[`deleteIconColor${A(r)}`]},{[`& .${_e.deleteIcon}`]:t[`deleteIcon${A(l)}Color${A(r)}`]},t.root,t[`size${A(a)}`],t[`color${A(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${A(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${A(r)}`],t[l],t[`${l}${A(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return S({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${_e.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${_e.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${_e.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${_e.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${_e.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${_e.icon}`]:S({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&S({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${_e.deleteIcon}`]:S({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:je(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:je(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:je(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${_e.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:je(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${_e.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>S({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:je(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${_e.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:je(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${_e.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>S({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${_e.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${_e.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${_e.avatar}`]:{marginLeft:4},[`& .${_e.avatarSmall}`]:{marginLeft:2},[`& .${_e.icon}`]:{marginLeft:4},[`& .${_e.iconSmall}`]:{marginLeft:2},[`& .${_e.deleteIcon}`]:{marginRight:5},[`& .${_e.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:je(e.palette[t.color].main,.7)}`,[`&.${_e.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:je(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${_e.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:je(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${_e.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:je(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),k3=B("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${A(r)}`]]}})(({ownerState:e})=>S({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function q0(e){return e.key==="Backspace"||e.key==="Delete"}const R3=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:s,color:a="default",component:l,deleteIcon:c,disabled:d=!1,icon:f,label:h,onClick:b,onDelete:y,onKeyDown:v,onKeyUp:C,size:g="medium",variant:m="filled",tabIndex:x,skipFocusWhenDisabled:w=!1}=r,k=H(r,S3),P=p.useRef(null),R=Ye(P,n),E=_=>{_.stopPropagation(),y&&y(_)},j=_=>{_.currentTarget===_.target&&q0(_)&&_.preventDefault(),v&&v(_)},T=_=>{_.currentTarget===_.target&&(y&&q0(_)?y(_):_.key==="Escape"&&P.current&&P.current.blur()),C&&C(_)},O=s!==!1&&b?!0:s,M=O||y?kr:l||"div",I=S({},r,{component:M,disabled:d,size:g,color:a,iconColor:p.isValidElement(f)&&f.props.color||a,onDelete:!!y,clickable:O,variant:m}),N=C3(I),D=M===kr?S({component:l||"div",focusVisibleClassName:N.focusVisible},y&&{disableRipple:!0}):{};let z=null;y&&(z=c&&p.isValidElement(c)?p.cloneElement(c,{className:V(c.props.className,N.deleteIcon),onClick:E}):u.jsx(x3,{className:V(N.deleteIcon),onClick:E}));let W=null;o&&p.isValidElement(o)&&(W=p.cloneElement(o,{className:V(N.avatar,o.props.className)}));let $=null;return f&&p.isValidElement(f)&&($=p.cloneElement(f,{className:V(N.icon,f.props.className)})),u.jsxs(w3,S({as:M,className:V(N.root,i),disabled:O&&d?!0:void 0,onClick:b,onKeyDown:j,onKeyUp:T,ref:R,tabIndex:w&&d?-1:x,ownerState:I},D,k,{children:[W||$,u.jsx(k3,{className:V(N.label),ownerState:I,children:h}),z]}))});function ao({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const Bu=p.createContext(void 0);function dr(){return p.useContext(Bu)}function W2(e){return u.jsx(Z$,S({},e,{defaultTheme:Eu,themeId:Oo}))}function K0(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function vc(e,t=!1){return e&&(K0(e.value)&&e.value!==""||t&&K0(e.defaultValue)&&e.defaultValue!=="")}function P3(e){return e.startAdornment}function E3(e){return re("MuiInputBase",e)}const Oi=oe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),$3=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Wu=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${A(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Uu=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},T3=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:s,formControl:a,fullWidth:l,hiddenLabel:c,multiline:d,readOnly:f,size:h,startAdornment:b,type:y}=e,v={root:["root",`color${A(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",s&&"focused",a&&"formControl",h&&h!=="medium"&&`size${A(h)}`,d&&"multiline",b&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",y==="search"&&"inputTypeSearch",d&&"inputMultiline",h==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",b&&"inputAdornedStart",i&&"inputAdornedEnd",f&&"readOnly"]};return ie(v,E3,t)},Hu=B("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Wu})(({theme:e,ownerState:t})=>S({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Oi.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&S({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Vu=B("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Uu})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=S({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return S({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Oi.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Oi.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),_3=u.jsx(W2,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),j3=p.forwardRef(function(t,n){var r;const o=le({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:s,autoFocus:a,className:l,components:c={},componentsProps:d={},defaultValue:f,disabled:h,disableInjectingGlobalStyles:b,endAdornment:y,fullWidth:v=!1,id:C,inputComponent:g="input",inputProps:m={},inputRef:x,maxRows:w,minRows:k,multiline:P=!1,name:R,onBlur:E,onChange:j,onClick:T,onFocus:O,onKeyDown:M,onKeyUp:I,placeholder:N,readOnly:D,renderSuffix:z,rows:W,slotProps:$={},slots:_={},startAdornment:F,type:G="text",value:X}=o,ce=H(o,$3),Z=m.value!=null?m.value:X,{current:ue}=p.useRef(Z!=null),U=p.useRef(),ee=p.useCallback(Re=>{},[]),K=Ye(U,x,m.ref,ee),[Q,he]=p.useState(!1),J=dr(),fe=ao({props:o,muiFormControl:J,states:["color","disabled","error","hiddenLabel","size","required","filled"]});fe.focused=J?J.focused:Q,p.useEffect(()=>{!J&&h&&Q&&(he(!1),E&&E())},[J,h,Q,E]);const pe=J&&J.onFilled,Se=J&&J.onEmpty,xe=p.useCallback(Re=>{vc(Re)?pe&&pe():Se&&Se()},[pe,Se]);dn(()=>{ue&&xe({value:Z})},[Z,xe,ue]);const Ct=Re=>{if(fe.disabled){Re.stopPropagation();return}O&&O(Re),m.onFocus&&m.onFocus(Re),J&&J.onFocus?J.onFocus(Re):he(!0)},Fe=Re=>{E&&E(Re),m.onBlur&&m.onBlur(Re),J&&J.onBlur?J.onBlur(Re):he(!1)},ze=(Re,...se)=>{if(!ue){const tt=Re.target||U.current;if(tt==null)throw new Error(jo(1));xe({value:tt.value})}m.onChange&&m.onChange(Re,...se),j&&j(Re,...se)};p.useEffect(()=>{xe(U.current)},[]);const pt=Re=>{U.current&&Re.currentTarget===Re.target&&U.current.focus(),T&&T(Re)};let Me=g,ke=m;P&&Me==="input"&&(W?ke=S({type:void 0,minRows:W,maxRows:W},ke):ke=S({type:void 0,maxRows:w,minRows:k},ke),Me=d3);const ct=Re=>{xe(Re.animationName==="mui-auto-fill-cancel"?U.current:{value:"x"})};p.useEffect(()=>{J&&J.setAdornedStart(!!F)},[J,F]);const He=S({},o,{color:fe.color||"primary",disabled:fe.disabled,endAdornment:y,error:fe.error,focused:fe.focused,formControl:J,fullWidth:v,hiddenLabel:fe.hiddenLabel,multiline:P,size:fe.size,startAdornment:F,type:G}),Ee=T3(He),ht=_.root||c.Root||Hu,yt=$.root||d.root||{},wt=_.input||c.Input||Vu;return ke=S({},ke,(r=$.input)!=null?r:d.input),u.jsxs(p.Fragment,{children:[!b&&_3,u.jsxs(ht,S({},yt,!Ei(ht)&&{ownerState:S({},He,yt.ownerState)},{ref:n,onClick:pt},ce,{className:V(Ee.root,yt.className,l,D&&"MuiInputBase-readOnly"),children:[F,u.jsx(Bu.Provider,{value:null,children:u.jsx(wt,S({ownerState:He,"aria-invalid":fe.error,"aria-describedby":i,autoComplete:s,autoFocus:a,defaultValue:f,disabled:fe.disabled,id:C,onAnimationStart:ct,name:R,placeholder:N,readOnly:D,required:fe.required,rows:W,value:Z,onKeyDown:M,onKeyUp:I,type:G},ke,!Ei(wt)&&{as:Me,ownerState:S({},He,ke.ownerState)},{ref:K,className:V(Ee.input,ke.className,D&&"MuiInputBase-readOnly"),onBlur:Fe,onChange:ze,onFocus:Ct}))}),y,z?z(S({},fe,{startAdornment:F})):null]}))]})}),dm=j3;function O3(e){return re("MuiInput",e)}const cs=S({},Oi,oe("MuiInput",["root","underline","input"]));function I3(e){return re("MuiOutlinedInput",e)}const Ir=S({},Oi,oe("MuiOutlinedInput",["root","notchedOutline","input"]));function M3(e){return re("MuiFilledInput",e)}const co=S({},Oi,oe("MuiFilledInput",["root","underline","input"])),N3=Nt(u.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),L3=Nt(u.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function A3(e){return re("MuiAvatar",e)}oe("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const z3=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],D3=zu(),F3=e=>{const{classes:t,variant:n,colorDefault:r}=e;return ie({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},A3,t)},B3=B("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:S({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:S({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),W3=B("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),U3=B(L3,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function H3({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=p.useState(!1);return p.useEffect(()=>{if(!n&&!r)return;i(!1);let s=!0;const a=new Image;return a.onload=()=>{s&&i("loaded")},a.onerror=()=>{s&&i("error")},a.crossOrigin=e,a.referrerPolicy=t,a.src=n,r&&(a.srcset=r),()=>{s=!1}},[e,t,n,r]),o}const yr=p.forwardRef(function(t,n){const r=D3({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:s,component:a="div",slots:l={},slotProps:c={},imgProps:d,sizes:f,src:h,srcSet:b,variant:y="circular"}=r,v=H(r,z3);let C=null;const g=H3(S({},d,{src:h,srcSet:b})),m=h||b,x=m&&g!=="error",w=S({},r,{colorDefault:!x,component:a,variant:y}),k=F3(w),[P,R]=pp("img",{className:k.img,elementType:W3,externalForwardedProps:{slots:l,slotProps:{img:S({},d,c.img)}},additionalProps:{alt:o,src:h,srcSet:b,sizes:f},ownerState:w});return x?C=u.jsx(P,S({},R)):i||i===0?C=i:m&&o?C=o[0]:C=u.jsx(U3,{ownerState:w,className:k.fallback}),u.jsx(B3,S({as:a,ownerState:w,className:V(k.root,s),ref:n},v,{children:C}))}),V3=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],q3={entering:{opacity:1},entered:{opacity:1}},U2=p.forwardRef(function(t,n){const r=io(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:a,easing:l,in:c,onEnter:d,onEntered:f,onEntering:h,onExit:b,onExited:y,onExiting:v,style:C,timeout:g=o,TransitionComponent:m=Qn}=t,x=H(t,V3),w=p.useRef(null),k=Ye(w,a.ref,n),P=N=>D=>{if(N){const z=w.current;D===void 0?N(z):N(z,D)}},R=P(h),E=P((N,D)=>{nm(N);const z=Pi({style:C,timeout:g,easing:l},{mode:"enter"});N.style.webkitTransition=r.transitions.create("opacity",z),N.style.transition=r.transitions.create("opacity",z),d&&d(N,D)}),j=P(f),T=P(v),O=P(N=>{const D=Pi({style:C,timeout:g,easing:l},{mode:"exit"});N.style.webkitTransition=r.transitions.create("opacity",D),N.style.transition=r.transitions.create("opacity",D),b&&b(N)}),M=P(y),I=N=>{i&&i(w.current,N)};return u.jsx(m,S({appear:s,in:c,nodeRef:w,onEnter:E,onEntered:j,onEntering:R,onExit:O,onExited:M,onExiting:T,addEndListener:I,timeout:g},x,{children:(N,D)=>p.cloneElement(a,S({style:S({opacity:0,visibility:N==="exited"&&!c?"hidden":void 0},q3[N],C,a.props.style),ref:k},D))}))});function K3(e){return re("MuiBackdrop",e)}oe("MuiBackdrop",["root","invisible"]);const G3=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Y3=e=>{const{classes:t,invisible:n}=e;return ie({root:["root",n&&"invisible"]},K3,t)},X3=B("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>S({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),H2=p.forwardRef(function(t,n){var r,o,i;const s=le({props:t,name:"MuiBackdrop"}),{children:a,className:l,component:c="div",components:d={},componentsProps:f={},invisible:h=!1,open:b,slotProps:y={},slots:v={},TransitionComponent:C=U2,transitionDuration:g}=s,m=H(s,G3),x=S({},s,{component:c,invisible:h}),w=Y3(x),k=(r=y.root)!=null?r:f.root;return u.jsx(C,S({in:b,timeout:g},m,{children:u.jsx(X3,S({"aria-hidden":!0},k,{as:(o=(i=v.root)!=null?i:d.Root)!=null?o:c,className:V(w.root,l,k==null?void 0:k.className),ownerState:S({},x,k==null?void 0:k.ownerState),classes:w,ref:n,children:a}))}))});function Q3(e){return re("MuiBadge",e)}const Mr=oe("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),J3=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Fd=10,Bd=4,Z3=zu(),eO=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:s={}}=e,a={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${A(n.vertical)}${A(n.horizontal)}`,`anchorOrigin${A(n.vertical)}${A(n.horizontal)}${A(o)}`,`overlap${A(o)}`,t!=="default"&&`color${A(t)}`]};return ie(a,Q3,s)},tO=B("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),nO=B("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${A(n.anchorOrigin.vertical)}${A(n.anchorOrigin.horizontal)}${A(n.overlap)}`],n.color!=="default"&&t[`color${A(n.color)}`],n.invisible&&t.invisible]}})(({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Fd*2,lineHeight:1,padding:"0 6px",height:Fd*2,borderRadius:Fd,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r,o;return((r=e.vars)!=null?r:e).palette[n].main&&((o=e.vars)!=null?o:e).palette[n].contrastText}).map(n=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText}})),{props:{variant:"dot"},style:{borderRadius:Bd,height:Bd*2,minWidth:Bd*2,padding:0}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Mr.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Mr.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Mr.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Mr.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Mr.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Mr.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Mr.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Mr.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}),rO=p.forwardRef(function(t,n){var r,o,i,s,a,l;const c=Z3({props:t,name:"MuiBadge"}),{anchorOrigin:d={vertical:"top",horizontal:"right"},className:f,component:h,components:b={},componentsProps:y={},children:v,overlap:C="rectangular",color:g="default",invisible:m=!1,max:x=99,badgeContent:w,slots:k,slotProps:P,showZero:R=!1,variant:E="standard"}=c,j=H(c,J3),{badgeContent:T,invisible:O,max:M,displayValue:I}=w_({max:x,invisible:m,badgeContent:w,showZero:R}),N=l2({anchorOrigin:d,color:g,overlap:C,variant:E,badgeContent:w}),D=O||T==null&&E!=="dot",{color:z=g,overlap:W=C,anchorOrigin:$=d,variant:_=E}=D?N:c,F=_!=="dot"?I:void 0,G=S({},c,{badgeContent:T,invisible:D,max:M,displayValue:F,showZero:R,anchorOrigin:$,color:z,overlap:W,variant:_}),X=eO(G),ce=(r=(o=k==null?void 0:k.root)!=null?o:b.Root)!=null?r:tO,Z=(i=(s=k==null?void 0:k.badge)!=null?s:b.Badge)!=null?i:nO,ue=(a=P==null?void 0:P.root)!=null?a:y.root,U=(l=P==null?void 0:P.badge)!=null?l:y.badge,ee=en({elementType:ce,externalSlotProps:ue,externalForwardedProps:j,additionalProps:{ref:n,as:h},ownerState:G,className:V(ue==null?void 0:ue.className,X.root,f)}),K=en({elementType:Z,externalSlotProps:U,ownerState:G,className:V(X.badge,U==null?void 0:U.className)});return u.jsxs(ce,S({},ee,{children:[v,u.jsx(Z,S({},K,{children:F}))]}))}),oO=oe("MuiBox",["root"]),iO=Ea(),Ke=i4({themeId:Oo,defaultTheme:iO,defaultClassName:oO.root,generateClassName:Wh.generate});function sO(e){return re("MuiButton",e)}const rl=oe("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),aO=p.createContext({}),lO=p.createContext(void 0),cO=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],uO=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:s}=e,a={root:["root",i,`${i}${A(t)}`,`size${A(o)}`,`${i}Size${A(o)}`,`color${A(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${A(o)}`],endIcon:["icon","endIcon",`iconSize${A(o)}`]},l=ie(a,sO,s);return S({},s,l)},V2=e=>S({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),dO=B(kr,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${A(n.color)}`],t[`size${A(n.size)}`],t[`${n.variant}Size${A(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return S({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":S({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:je(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:je(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:je(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":S({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${rl.focusVisible}`]:S({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${rl.disabled}`]:S({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${je(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${rl.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${rl.disabled}`]:{boxShadow:"none"}}),fO=B("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${A(n.size)}`]]}})(({ownerState:e})=>S({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},V2(e))),pO=B("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${A(n.size)}`]]}})(({ownerState:e})=>S({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},V2(e))),gt=p.forwardRef(function(t,n){const r=p.useContext(aO),o=p.useContext(lO),i=Vh(r,t),s=le({props:i,name:"MuiButton"}),{children:a,color:l="primary",component:c="button",className:d,disabled:f=!1,disableElevation:h=!1,disableFocusRipple:b=!1,endIcon:y,focusVisibleClassName:v,fullWidth:C=!1,size:g="medium",startIcon:m,type:x,variant:w="text"}=s,k=H(s,cO),P=S({},s,{color:l,component:c,disabled:f,disableElevation:h,disableFocusRipple:b,fullWidth:C,size:g,type:x,variant:w}),R=uO(P),E=m&&u.jsx(fO,{className:R.startIcon,ownerState:P,children:m}),j=y&&u.jsx(pO,{className:R.endIcon,ownerState:P,children:y}),T=o||"";return u.jsxs(dO,S({ownerState:P,className:V(r.className,R.root,d,T),component:c,disabled:f,focusRipple:!b,focusVisibleClassName:V(R.focusVisible,v),ref:n,type:x},k,{classes:R,children:[E,a,j]}))});function hO(e){return re("MuiCard",e)}oe("MuiCard",["root"]);const mO=["className","raised"],gO=e=>{const{classes:t}=e;return ie({root:["root"]},hO,t)},vO=B(gn,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),qu=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiCard"}),{className:o,raised:i=!1}=r,s=H(r,mO),a=S({},r,{raised:i}),l=gO(a);return u.jsx(vO,S({className:V(l.root,o),elevation:i?8:void 0,ref:n,ownerState:a},s))});function yO(e){return re("MuiCardContent",e)}oe("MuiCardContent",["root"]);const xO=["className","component"],bO=e=>{const{classes:t}=e;return ie({root:["root"]},yO,t)},SO=B("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),fm=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiCardContent"}),{className:o,component:i="div"}=r,s=H(r,xO),a=S({},r,{component:i}),l=bO(a);return u.jsx(SO,S({as:i,className:V(l.root,o),ownerState:a,ref:n},s))});function CO(e){return re("PrivateSwitchBase",e)}oe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const wO=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],kO=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${A(o)}`],input:["input"]};return ie(i,CO,t)},RO=B(kr)(({ownerState:e})=>S({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),PO=B("input",{shouldForwardProp:Mt})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),q2=p.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:s,defaultChecked:a,disabled:l,disableFocusRipple:c=!1,edge:d=!1,icon:f,id:h,inputProps:b,inputRef:y,name:v,onBlur:C,onChange:g,onFocus:m,readOnly:x,required:w=!1,tabIndex:k,type:P,value:R}=t,E=H(t,wO),[j,T]=sa({controlled:o,default:!!a,name:"SwitchBase",state:"checked"}),O=dr(),M=_=>{m&&m(_),O&&O.onFocus&&O.onFocus(_)},I=_=>{C&&C(_),O&&O.onBlur&&O.onBlur(_)},N=_=>{if(_.nativeEvent.defaultPrevented)return;const F=_.target.checked;T(F),g&&g(_,F)};let D=l;O&&typeof D>"u"&&(D=O.disabled);const z=P==="checkbox"||P==="radio",W=S({},t,{checked:j,disabled:D,disableFocusRipple:c,edge:d}),$=kO(W);return u.jsxs(RO,S({component:"span",className:V($.root,s),centerRipple:!0,focusRipple:!c,disabled:D,tabIndex:null,role:void 0,onFocus:M,onBlur:I,ownerState:W,ref:n},E,{children:[u.jsx(PO,S({autoFocus:r,checked:o,defaultChecked:a,className:$.input,disabled:D,id:z?h:void 0,name:v,onChange:N,readOnly:x,ref:y,required:w,ownerState:W,tabIndex:k,type:P},P==="checkbox"&&R===void 0?{}:{value:R},b)),j?i:f]}))}),EO=Nt(u.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),$O=Nt(u.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),TO=Nt(u.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function _O(e){return re("MuiCheckbox",e)}const Wd=oe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),jO=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],OO=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate",`color${A(r)}`,`size${A(o)}`]},s=ie(i,_O,t);return S({},t,s)},IO=B(q2,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${A(n.size)}`],n.color!=="default"&&t[`color${A(n.color)}`]]}})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:je(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Wd.checked}, &.${Wd.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Wd.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),MO=u.jsx($O,{}),NO=u.jsx(EO,{}),LO=u.jsx(TO,{}),pm=p.forwardRef(function(t,n){var r,o;const i=le({props:t,name:"MuiCheckbox"}),{checkedIcon:s=MO,color:a="primary",icon:l=NO,indeterminate:c=!1,indeterminateIcon:d=LO,inputProps:f,size:h="medium",className:b}=i,y=H(i,jO),v=c?d:l,C=c?d:s,g=S({},i,{color:a,indeterminate:c,size:h}),m=OO(g);return u.jsx(IO,S({type:"checkbox",inputProps:S({"data-indeterminate":c},f),icon:p.cloneElement(v,{fontSize:(r=v.props.fontSize)!=null?r:h}),checkedIcon:p.cloneElement(C,{fontSize:(o=C.props.fontSize)!=null?o:h}),ownerState:g,ref:n,className:V(m.root,b)},y,{classes:m}))});function AO(e){return re("MuiCircularProgress",e)}oe("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const zO=["className","color","disableShrink","size","style","thickness","value","variant"];let Ku=e=>e,G0,Y0,X0,Q0;const Nr=44,DO=Bi(G0||(G0=Ku` 0% { transform: rotate(0deg); @@ -193,7 +193,7 @@ Error generating stack: `+i.message+` animation: ${0} 1.4s linear infinite; `),DO)),UO=B("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),HO=B("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${A(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>S({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&au(Q0||(Q0=Ku` animation: ${0} 1.4s ease-in-out infinite; - `),FO)),kn=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:s=!1,size:a=40,style:l,thickness:c=3.6,value:d=0,variant:f="indeterminate"}=r,h=H(r,zO),b=S({},r,{color:i,disableShrink:s,size:a,thickness:c,value:d,variant:f}),y=BO(b),v={},C={},g={};if(f==="determinate"){const m=2*Math.PI*((Nr-c)/2);v.strokeDasharray=m.toFixed(3),g["aria-valuenow"]=Math.round(d),v.strokeDashoffset=`${((100-d)/100*m).toFixed(3)}px`,C.transform="rotate(-90deg)"}return u.jsx(WO,S({className:V(y.root,o),style:S({width:a,height:a},C,l),ownerState:b,ref:n,role:"progressbar"},g,h,{children:u.jsx(UO,{className:y.svg,ownerState:b,viewBox:`${Nr/2} ${Nr/2} ${Nr} ${Nr}`,children:u.jsx(HO,{className:y.circle,style:v,ownerState:b,cx:Nr,cy:Nr,r:(Nr-c)/2,fill:"none",strokeWidth:c})})}))}),K2=X4({createStyledComponent:B("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${A(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>le({props:e,name:"MuiContainer"})}),VO=(e,t)=>S({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),qO=e=>S({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),KO=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,a])=>{var l;r[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(l=a.palette)==null?void 0:l.mode}});let o=S({html:VO(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:S({margin:0},qO(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const i=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return i&&(o=[o,i]),o};function hm(e){const t=le({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return u.jsxs(p.Fragment,{children:[u.jsx(W2,{styles:o=>KO(o,r)}),n]})}function GO(e){return re("MuiModal",e)}oe("MuiModal",["root","hidden","backdrop"]);const YO=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],XO=e=>{const{open:t,exited:n,classes:r}=e;return ie({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},GO,r)},QO=B("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>S({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),JO=B(H2,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),mm=p.forwardRef(function(t,n){var r,o,i,s,a,l;const c=le({name:"MuiModal",props:t}),{BackdropComponent:d=JO,BackdropProps:f,className:h,closeAfterTransition:b=!1,children:y,container:v,component:C,components:g={},componentsProps:m={},disableAutoFocus:x=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:k=!1,disablePortal:P=!1,disableRestoreFocus:R=!1,disableScrollLock:E=!1,hideBackdrop:j=!1,keepMounted:T=!1,onBackdropClick:O,open:M,slotProps:I,slots:N}=c,D=H(c,YO),z=S({},c,{closeAfterTransition:b,disableAutoFocus:x,disableEnforceFocus:w,disableEscapeKeyDown:k,disablePortal:P,disableRestoreFocus:R,disableScrollLock:E,hideBackdrop:j,keepMounted:T}),{getRootProps:W,getBackdropProps:$,getTransitionProps:_,portalRef:F,isTopModal:G,exited:X,hasTransition:ce}=V_(S({},z,{rootRef:n})),Z=S({},z,{exited:X}),ue=XO(Z),U={};if(y.props.tabIndex===void 0&&(U.tabIndex="-1"),ce){const{onEnter:pe,onExited:Se}=_();U.onEnter=pe,U.onExited=Se}const ee=(r=(o=N==null?void 0:N.root)!=null?o:g.Root)!=null?r:QO,K=(i=(s=N==null?void 0:N.backdrop)!=null?s:g.Backdrop)!=null?i:d,Q=(a=I==null?void 0:I.root)!=null?a:m.root,he=(l=I==null?void 0:I.backdrop)!=null?l:m.backdrop,J=en({elementType:ee,externalSlotProps:Q,externalForwardedProps:D,getSlotProps:W,additionalProps:{ref:n,as:C},ownerState:Z,className:V(h,Q==null?void 0:Q.className,ue==null?void 0:ue.root,!Z.open&&Z.exited&&(ue==null?void 0:ue.hidden))}),fe=en({elementType:K,externalSlotProps:he,additionalProps:f,getSlotProps:pe=>$(S({},pe,{onClick:Se=>{O&&O(Se),pe!=null&&pe.onClick&&pe.onClick(Se)}})),className:V(he==null?void 0:he.className,f==null?void 0:f.className,ue==null?void 0:ue.backdrop),ownerState:Z});return!T&&!M&&(!ce||X)?null:u.jsx($2,{ref:F,container:v,disablePortal:P,children:u.jsxs(ee,S({},J,{children:[!j&&d?u.jsx(K,S({},fe)):null,u.jsx(N_,{disableEnforceFocus:w,disableAutoFocus:x,disableRestoreFocus:R,isEnabled:G,open:M,children:p.cloneElement(y,U)})]}))})});function ZO(e){return re("MuiDialog",e)}const Ud=oe("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),G2=p.createContext({}),eI=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],tI=B(H2,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),nI=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,s={root:["root"],container:["container",`scroll${A(n)}`],paper:["paper",`paperScroll${A(n)}`,`paperWidth${A(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return ie(s,ZO,t)},rI=B(mm,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),oI=B("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${A(n.scroll)}`]]}})(({ownerState:e})=>S({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),iI=B(gn,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${A(n.scroll)}`],t[`paperWidth${A(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>S({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Ud.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${Ud.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Ud.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),yp=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiDialog"}),o=io(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,BackdropComponent:l,BackdropProps:c,children:d,className:f,disableEscapeKeyDown:h=!1,fullScreen:b=!1,fullWidth:y=!1,maxWidth:v="sm",onBackdropClick:C,onClick:g,onClose:m,open:x,PaperComponent:w=gn,PaperProps:k={},scroll:P="paper",TransitionComponent:R=U2,transitionDuration:E=i,TransitionProps:j}=r,T=H(r,eI),O=S({},r,{disableEscapeKeyDown:h,fullScreen:b,fullWidth:y,maxWidth:v,scroll:P}),M=nI(O),I=p.useRef(),N=$=>{I.current=$.target===$.currentTarget},D=$=>{g&&g($),I.current&&(I.current=null,C&&C($),m&&m($,"backdropClick"))},z=ka(a),W=p.useMemo(()=>({titleId:z}),[z]);return u.jsx(rI,S({className:V(M.root,f),closeAfterTransition:!0,components:{Backdrop:tI},componentsProps:{backdrop:S({transitionDuration:E,as:l},c)},disableEscapeKeyDown:h,onClose:m,open:x,ref:n,onClick:D,ownerState:O},T,{children:u.jsx(R,S({appear:!0,in:x,timeout:E,role:"presentation"},j,{children:u.jsx(oI,{className:V(M.container),onMouseDown:N,ownerState:O,children:u.jsx(iI,S({as:w,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":z},k,{className:V(M.paper,k.className),ownerState:O,children:u.jsx(G2.Provider,{value:W,children:d})}))})}))}))});function sI(e){return re("MuiDialogActions",e)}oe("MuiDialogActions",["root","spacing"]);const aI=["className","disableSpacing"],lI=e=>{const{classes:t,disableSpacing:n}=e;return ie({root:["root",!n&&"spacing"]},sI,t)},cI=B("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>S({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),xp=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1}=r,s=H(r,aI),a=S({},r,{disableSpacing:i}),l=lI(a);return u.jsx(cI,S({className:V(l.root,o),ownerState:a,ref:n},s))});function uI(e){return re("MuiDialogContent",e)}oe("MuiDialogContent",["root","dividers"]);function dI(e){return re("MuiDialogTitle",e)}const fI=oe("MuiDialogTitle",["root"]),pI=["className","dividers"],hI=e=>{const{classes:t,dividers:n}=e;return ie({root:["root",n&&"dividers"]},uI,t)},mI=B("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>S({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${fI.root} + &`]:{paddingTop:0}})),bp=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,s=H(r,pI),a=S({},r,{dividers:i}),l=hI(a);return u.jsx(mI,S({className:V(l.root,o),ownerState:a,ref:n},s))});function gI(e){return re("MuiDialogContentText",e)}oe("MuiDialogContentText",["root"]);const vI=["children","className"],yI=e=>{const{classes:t}=e,r=ie({root:["root"]},gI,t);return S({},t,r)},xI=B(ve,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Y2=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiDialogContentText"}),{className:o}=r,i=H(r,vI),s=yI(i);return u.jsx(xI,S({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:i,className:V(s.root,o)},r,{classes:s}))}),bI=["className","id"],SI=e=>{const{classes:t}=e;return ie({root:["root"]},dI,t)},CI=B(ve,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Sp=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiDialogTitle"}),{className:o,id:i}=r,s=H(r,bI),a=r,l=SI(a),{titleId:c=i}=p.useContext(G2);return u.jsx(CI,S({component:"h2",className:V(l.root,o),ownerState:a,ref:n,variant:"h6",id:i??c},s))});function wI(e){return re("MuiDivider",e)}const J0=oe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),kI=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],RI=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:s,textAlign:a,variant:l}=e;return ie({root:["root",t&&"absolute",l,i&&"light",s==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",a==="right"&&s!=="vertical"&&"textAlignRight",a==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},wI,r)},PI=B("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>S({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:je(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>S({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>S({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>S({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>S({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),EI=B("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>S({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),ca=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:s,component:a=i?"div":"hr",flexItem:l=!1,light:c=!1,orientation:d="horizontal",role:f=a!=="hr"?"separator":void 0,textAlign:h="center",variant:b="fullWidth"}=r,y=H(r,kI),v=S({},r,{absolute:o,component:a,flexItem:l,light:c,orientation:d,role:f,textAlign:h,variant:b}),C=RI(v);return u.jsx(PI,S({as:a,className:V(C.root,s),role:f,ref:n,ownerState:v},y,{children:i?u.jsx(EI,{className:C.wrapper,ownerState:v,children:i}):null}))});ca.muiSkipListHighlight=!0;const $I=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function TI(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=_n(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const c=i.getComputedStyle(t);s=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let a=0,l=0;if(s&&s!=="none"&&typeof s=="string"){const c=s.split("(")[1].split(")")[0].split(",");a=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?o?`translateX(${o.right+a-r.left}px)`:`translateX(${i.innerWidth+a-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-a}px)`:`translateX(-${r.left+r.width-a}px)`:e==="up"?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function _I(e){return typeof e=="function"?e():e}function ol(e,t,n){const r=_I(n),o=TI(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const jI=p.forwardRef(function(t,n){const r=io(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:l,container:c,direction:d="down",easing:f=o,in:h,onEnter:b,onEntered:y,onEntering:v,onExit:C,onExited:g,onExiting:m,style:x,timeout:w=i,TransitionComponent:k=Qn}=t,P=H(t,$I),R=p.useRef(null),E=Ye(l.ref,R,n),j=$=>_=>{$&&(_===void 0?$(R.current):$(R.current,_))},T=j(($,_)=>{ol(d,$,c),nm($),b&&b($,_)}),O=j(($,_)=>{const F=Pi({timeout:w,style:x,easing:f},{mode:"enter"});$.style.webkitTransition=r.transitions.create("-webkit-transform",S({},F)),$.style.transition=r.transitions.create("transform",S({},F)),$.style.webkitTransform="none",$.style.transform="none",v&&v($,_)}),M=j(y),I=j(m),N=j($=>{const _=Pi({timeout:w,style:x,easing:f},{mode:"exit"});$.style.webkitTransition=r.transitions.create("-webkit-transform",_),$.style.transition=r.transitions.create("transform",_),ol(d,$,c),C&&C($)}),D=j($=>{$.style.webkitTransition="",$.style.transition="",g&&g($)}),z=$=>{s&&s(R.current,$)},W=p.useCallback(()=>{R.current&&ol(d,R.current,c)},[d,c]);return p.useEffect(()=>{if(h||d==="down"||d==="right")return;const $=Hi(()=>{R.current&&ol(d,R.current,c)}),_=_n(R.current);return _.addEventListener("resize",$),()=>{$.clear(),_.removeEventListener("resize",$)}},[d,h,c]),p.useEffect(()=>{h||W()},[h,W]),u.jsx(k,S({nodeRef:R,onEnter:T,onEntered:M,onEntering:O,onExit:N,onExited:D,onExiting:I,addEndListener:z,appear:a,in:h,timeout:w},P,{children:($,_)=>p.cloneElement(l,S({ref:E,style:S({visibility:$==="exited"&&!h?"hidden":void 0},x,l.props.style)},_))}))});function OI(e){return re("MuiDrawer",e)}oe("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const II=["BackdropProps"],MI=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],X2=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},NI=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${A(n)}`,r!=="temporary"&&`paperAnchorDocked${A(n)}`]};return ie(o,OI,t)},LI=B(mm,{name:"MuiDrawer",slot:"Root",overridesResolver:X2})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),Z0=B("div",{shouldForwardProp:Mt,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:X2})({flex:"0 0 auto"}),AI=B(gn,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${A(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${A(n.anchor)}`]]}})(({theme:e,ownerState:t})=>S({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),Q2={left:"right",right:"left",top:"down",bottom:"up"};function zI(e){return["left","right"].indexOf(e)!==-1}function DI({direction:e},t){return e==="rtl"&&zI(t)?Q2[t]:t}const FI=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiDrawer"}),o=io(),i=Pa(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:a="left",BackdropProps:l,children:c,className:d,elevation:f=16,hideBackdrop:h=!1,ModalProps:{BackdropProps:b}={},onClose:y,open:v=!1,PaperProps:C={},SlideProps:g,TransitionComponent:m=jI,transitionDuration:x=s,variant:w="temporary"}=r,k=H(r.ModalProps,II),P=H(r,MI),R=p.useRef(!1);p.useEffect(()=>{R.current=!0},[]);const E=DI({direction:i?"rtl":"ltr"},a),T=S({},r,{anchor:a,elevation:f,open:v,variant:w},P),O=NI(T),M=u.jsx(AI,S({elevation:w==="temporary"?f:0,square:!0},C,{className:V(O.paper,C.className),ownerState:T,children:c}));if(w==="permanent")return u.jsx(Z0,S({className:V(O.root,O.docked,d),ownerState:T,ref:n},P,{children:M}));const I=u.jsx(m,S({in:v,direction:Q2[E],timeout:x,appear:R.current},g,{children:M}));return w==="persistent"?u.jsx(Z0,S({className:V(O.root,O.docked,d),ownerState:T,ref:n},P,{children:I})):u.jsx(LI,S({BackdropProps:S({},l,b,{transitionDuration:x}),className:V(O.root,O.modal,d),open:v,ownerState:T,onClose:y,hideBackdrop:h,ref:n},P,k,{children:I}))}),BI=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],WI=e=>{const{classes:t,disableUnderline:n}=e,o=ie({root:["root",!n&&"underline"],input:["input"]},M3,t);return S({},t,o)},UI=B(Hu,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Wu(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return S({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${co.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${co.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${co.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${co.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${co.disabled}, .${co.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${co.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&S({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),HI=B(Vu,{name:"MuiFilledInput",slot:"Input",overridesResolver:Uu})(({theme:e,ownerState:t})=>S({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),gm=p.forwardRef(function(t,n){var r,o,i,s;const a=le({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:c,fullWidth:d=!1,inputComponent:f="input",multiline:h=!1,slotProps:b,slots:y={},type:v="text"}=a,C=H(a,BI),g=S({},a,{fullWidth:d,inputComponent:f,multiline:h,type:v}),m=WI(a),x={root:{ownerState:g},input:{ownerState:g}},w=b??c?Ft(x,b??c):x,k=(r=(o=y.root)!=null?o:l.Root)!=null?r:UI,P=(i=(s=y.input)!=null?s:l.Input)!=null?i:HI;return u.jsx(dm,S({slots:{root:k,input:P},componentsProps:w,fullWidth:d,inputComponent:f,multiline:h,ref:n,type:v},C,{classes:m}))});gm.muiName="Input";function VI(e){return re("MuiFormControl",e)}oe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const qI=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],KI=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${A(n)}`,r&&"fullWidth"]};return ie(o,VI,t)},GI=B("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,t[`margin${A(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>S({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),Gu=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiFormControl"}),{children:o,className:i,color:s="primary",component:a="div",disabled:l=!1,error:c=!1,focused:d,fullWidth:f=!1,hiddenLabel:h=!1,margin:b="none",required:y=!1,size:v="medium",variant:C="outlined"}=r,g=H(r,qI),m=S({},r,{color:s,component:a,disabled:l,error:c,fullWidth:f,hiddenLabel:h,margin:b,required:y,size:v,variant:C}),x=KI(m),[w,k]=p.useState(()=>{let I=!1;return o&&p.Children.forEach(o,N=>{if(!js(N,["Input","Select"]))return;const D=js(N,["Select"])?N.props.input:N;D&&P3(D.props)&&(I=!0)}),I}),[P,R]=p.useState(()=>{let I=!1;return o&&p.Children.forEach(o,N=>{js(N,["Input","Select"])&&(vc(N.props,!0)||vc(N.props.inputProps,!0))&&(I=!0)}),I}),[E,j]=p.useState(!1);l&&E&&j(!1);const T=d!==void 0&&!l?d:E;let O;const M=p.useMemo(()=>({adornedStart:w,setAdornedStart:k,color:s,disabled:l,error:c,filled:P,focused:T,fullWidth:f,hiddenLabel:h,size:v,onBlur:()=>{j(!1)},onEmpty:()=>{R(!1)},onFilled:()=>{R(!0)},onFocus:()=>{j(!0)},registerEffect:O,required:y,variant:C}),[w,s,l,c,P,T,f,h,O,y,v,C]);return u.jsx(Bu.Provider,{value:M,children:u.jsx(GI,S({as:a,ownerState:m,className:V(x.root,i),ref:n},g,{children:o}))})}),YI=o5({createStyledComponent:B("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>le({props:e,name:"MuiStack"})});function XI(e){return re("MuiFormControlLabel",e)}const bs=oe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),QI=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],JI=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,s={root:["root",n&&"disabled",`labelPlacement${A(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return ie(s,XI,t)},ZI=B("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${bs.label}`]:t.label},t.root,t[`labelPlacement${A(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>S({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${bs.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${bs.label}`]:{[`&.${bs.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),eM=B("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${bs.error}`]:{color:(e.vars||e).palette.error.main}})),vm=p.forwardRef(function(t,n){var r,o;const i=le({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:a={},control:l,disabled:c,disableTypography:d,label:f,labelPlacement:h="end",required:b,slotProps:y={}}=i,v=H(i,QI),C=dr(),g=(r=c??l.props.disabled)!=null?r:C==null?void 0:C.disabled,m=b??l.props.required,x={disabled:g,required:m};["checked","name","onChange","value","inputRef"].forEach(j=>{typeof l.props[j]>"u"&&typeof i[j]<"u"&&(x[j]=i[j])});const w=ao({props:i,muiFormControl:C,states:["error"]}),k=S({},i,{disabled:g,labelPlacement:h,required:m,error:w.error}),P=JI(k),R=(o=y.typography)!=null?o:a.typography;let E=f;return E!=null&&E.type!==ve&&!d&&(E=u.jsx(ve,S({component:"span"},R,{className:V(P.label,R==null?void 0:R.className),children:E}))),u.jsxs(ZI,S({className:V(P.root,s),ownerState:k,ref:n},v,{children:[p.cloneElement(l,x),m?u.jsxs(YI,{display:"block",children:[E,u.jsxs(eM,{ownerState:k,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]}):E]}))});function tM(e){return re("MuiFormGroup",e)}oe("MuiFormGroup",["root","row","error"]);const nM=["className","row"],rM=e=>{const{classes:t,row:n,error:r}=e;return ie({root:["root",n&&"row",r&&"error"]},tM,t)},oM=B("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>S({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),J2=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiFormGroup"}),{className:o,row:i=!1}=r,s=H(r,nM),a=dr(),l=ao({props:r,muiFormControl:a,states:["error"]}),c=S({},r,{row:i,error:l.error}),d=rM(c);return u.jsx(oM,S({className:V(d.root,o),ownerState:c,ref:n},s))});function iM(e){return re("MuiFormHelperText",e)}const ey=oe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var ty;const sM=["children","className","component","disabled","error","filled","focused","margin","required","variant"],aM=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:s,focused:a,required:l}=e,c={root:["root",o&&"disabled",i&&"error",r&&`size${A(r)}`,n&&"contained",a&&"focused",s&&"filled",l&&"required"]};return ie(c,iM,t)},lM=B("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${A(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${ey.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ey.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),cM=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:s="p"}=r,a=H(r,sM),l=dr(),c=ao({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),d=S({},r,{component:s,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=aM(d);return u.jsx(lM,S({as:s,ownerState:d,className:V(f.root,i),ref:n},a,{children:o===" "?ty||(ty=u.jsx("span",{className:"notranslate",children:"​"})):o}))});function uM(e){return re("MuiFormLabel",e)}const Ns=oe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),dM=["children","className","color","component","disabled","error","filled","focused","required"],fM=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:s,required:a}=e,l={root:["root",`color${A(n)}`,o&&"disabled",i&&"error",s&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]};return ie(l,uM,t)},pM=B("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Ns.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Ns.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ns.error}`]:{color:(e.vars||e).palette.error.main}})),hM=B("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Ns.error}`]:{color:(e.vars||e).palette.error.main}})),mM=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:s="label"}=r,a=H(r,dM),l=dr(),c=ao({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),d=S({},r,{color:c.color||"primary",component:s,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=fM(d);return u.jsxs(pM,S({as:s,ownerState:d,className:V(f.root,i),ref:n},a,{children:[o,c.required&&u.jsxs(hM,{ownerState:d,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),gM=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Cp(e){return`scale(${e}, ${e**2})`}const vM={entering:{opacity:1,transform:Cp(1)},entered:{opacity:1,transform:"none"}},Hd=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ua=p.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:s,in:a,onEnter:l,onEntered:c,onEntering:d,onExit:f,onExited:h,onExiting:b,style:y,timeout:v="auto",TransitionComponent:C=Qn}=t,g=H(t,gM),m=xo(),x=p.useRef(),w=io(),k=p.useRef(null),P=Ye(k,i.ref,n),R=D=>z=>{if(D){const W=k.current;z===void 0?D(W):D(W,z)}},E=R(d),j=R((D,z)=>{nm(D);const{duration:W,delay:$,easing:_}=Pi({style:y,timeout:v,easing:s},{mode:"enter"});let F;v==="auto"?(F=w.transitions.getAutoHeightDuration(D.clientHeight),x.current=F):F=W,D.style.transition=[w.transitions.create("opacity",{duration:F,delay:$}),w.transitions.create("transform",{duration:Hd?F:F*.666,delay:$,easing:_})].join(","),l&&l(D,z)}),T=R(c),O=R(b),M=R(D=>{const{duration:z,delay:W,easing:$}=Pi({style:y,timeout:v,easing:s},{mode:"exit"});let _;v==="auto"?(_=w.transitions.getAutoHeightDuration(D.clientHeight),x.current=_):_=z,D.style.transition=[w.transitions.create("opacity",{duration:_,delay:W}),w.transitions.create("transform",{duration:Hd?_:_*.666,delay:Hd?W:W||_*.333,easing:$})].join(","),D.style.opacity=0,D.style.transform=Cp(.75),f&&f(D)}),I=R(h),N=D=>{v==="auto"&&m.start(x.current||0,D),r&&r(k.current,D)};return u.jsx(C,S({appear:o,in:a,nodeRef:k,onEnter:j,onEntered:T,onEntering:E,onExit:M,onExited:I,onExiting:O,addEndListener:N,timeout:v==="auto"?null:v},g,{children:(D,z)=>p.cloneElement(i,S({style:S({opacity:0,transform:Cp(.75),visibility:D==="exited"&&!a?"hidden":void 0},vM[D],y,i.props.style),ref:P},z))}))});ua.muiSupportAuto=!0;const yM=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],xM=e=>{const{classes:t,disableUnderline:n}=e,o=ie({root:["root",!n&&"underline"],input:["input"]},O3,t);return S({},t,o)},bM=B(Hu,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Wu(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),S({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${cs.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${cs.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${cs.disabled}, .${cs.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${cs.disabled}:before`]:{borderBottomStyle:"dotted"}})}),SM=B(Vu,{name:"MuiInput",slot:"Input",overridesResolver:Uu})({}),ym=p.forwardRef(function(t,n){var r,o,i,s;const a=le({props:t,name:"MuiInput"}),{disableUnderline:l,components:c={},componentsProps:d,fullWidth:f=!1,inputComponent:h="input",multiline:b=!1,slotProps:y,slots:v={},type:C="text"}=a,g=H(a,yM),m=xM(a),w={root:{ownerState:{disableUnderline:l}}},k=y??d?Ft(y??d,w):w,P=(r=(o=v.root)!=null?o:c.Root)!=null?r:bM,R=(i=(s=v.input)!=null?s:c.Input)!=null?i:SM;return u.jsx(dm,S({slots:{root:P,input:R},slotProps:k,fullWidth:f,inputComponent:h,multiline:b,ref:n,type:C},g,{classes:m}))});ym.muiName="Input";function CM(e){return re("MuiInputAdornment",e)}const ny=oe("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var ry;const wM=["children","className","component","disablePointerEvents","disableTypography","position","variant"],kM=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${A(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},RM=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:s}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${A(o)}`,s,r&&"hiddenLabel",i&&`size${A(i)}`]};return ie(a,CM,t)},PM=B("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:kM})(({theme:e,ownerState:t})=>S({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${ny.positionStart}&:not(.${ny.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),yc=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:s="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:d}=r,f=H(r,wM),h=dr()||{};let b=d;d&&h.variant,h&&!b&&(b=h.variant);const y=S({},r,{hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:a,position:c,variant:b}),v=RM(y);return u.jsx(Bu.Provider,{value:null,children:u.jsx(PM,S({as:s,ownerState:y,className:V(v.root,i),ref:n},f,{children:typeof o=="string"&&!l?u.jsx(ve,{color:"text.secondary",children:o}):u.jsxs(p.Fragment,{children:[c==="start"?ry||(ry=u.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})});function EM(e){return re("MuiInputLabel",e)}oe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const $M=["disableAnimation","margin","shrink","variant","className"],TM=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:s,required:a}=e,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${A(r)}`,s],asterisk:[a&&"asterisk"]},c=ie(l,EM,t);return S({},t,c)},_M=B(mM,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ns.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>S({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&S({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&S({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&S({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Yu=p.forwardRef(function(t,n){const r=le({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:s}=r,a=H(r,$M),l=dr();let c=i;typeof c>"u"&&l&&(c=l.filled||l.focused||l.adornedStart);const d=ao({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),f=S({},r,{disableAnimation:o,formControl:l,shrink:c,size:d.size,variant:d.variant,required:d.required,focused:d.focused}),h=TM(f);return u.jsx(_M,S({"data-shrink":c,ownerState:f,ref:n,className:V(h.root,s)},a,{classes:h}))}),ar=p.createContext({});function jM(e){return re("MuiList",e)}oe("MuiList",["root","padding","dense","subheader"]);const OM=["children","className","component","dense","disablePadding","subheader"],IM=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return ie({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},jM,t)},MM=B("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>S({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),ja=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:a=!1,disablePadding:l=!1,subheader:c}=r,d=H(r,OM),f=p.useMemo(()=>({dense:a}),[a]),h=S({},r,{component:s,dense:a,disablePadding:l}),b=IM(h);return u.jsx(ar.Provider,{value:f,children:u.jsxs(MM,S({as:s,className:V(b.root,i),ref:n,ownerState:h},d,{children:[c,o]}))})});function NM(e){return re("MuiListItem",e)}const Go=oe("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),LM=oe("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function AM(e){return re("MuiListItemSecondaryAction",e)}oe("MuiListItemSecondaryAction",["root","disableGutters"]);const zM=["className"],DM=e=>{const{disableGutters:t,classes:n}=e;return ie({root:["root",t&&"disableGutters"]},AM,n)},FM=B("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>S({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),Z2=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=H(r,zM),s=p.useContext(ar),a=S({},r,{disableGutters:s.disableGutters}),l=DM(a);return u.jsx(FM,S({className:V(l.root,o),ownerState:a,ref:n},i))});Z2.muiName="ListItemSecondaryAction";const BM=["className"],WM=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],UM=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},HM=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:s,disablePadding:a,divider:l,hasSecondaryAction:c,selected:d}=e;return ie({root:["root",o&&"dense",!s&&"gutters",!a&&"padding",l&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction",d&&"selected"],container:["container"]},NM,r)},VM=B("div",{name:"MuiListItem",slot:"Root",overridesResolver:UM})(({theme:e,ownerState:t})=>S({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&S({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${LM.root}`]:{paddingRight:48}},{[`&.${Go.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Go.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:je(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Go.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:je(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Go.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Go.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:je(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:je(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),qM=B("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),xc=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:s=!1,children:a,className:l,component:c,components:d={},componentsProps:f={},ContainerComponent:h="li",ContainerProps:{className:b}={},dense:y=!1,disabled:v=!1,disableGutters:C=!1,disablePadding:g=!1,divider:m=!1,focusVisibleClassName:x,secondaryAction:w,selected:k=!1,slotProps:P={},slots:R={}}=r,E=H(r.ContainerProps,BM),j=H(r,WM),T=p.useContext(ar),O=p.useMemo(()=>({dense:y||T.dense||!1,alignItems:o,disableGutters:C}),[o,T.dense,y,C]),M=p.useRef(null);dn(()=>{i&&M.current&&M.current.focus()},[i]);const I=p.Children.toArray(a),N=I.length&&js(I[I.length-1],["ListItemSecondaryAction"]),D=S({},r,{alignItems:o,autoFocus:i,button:s,dense:O.dense,disabled:v,disableGutters:C,disablePadding:g,divider:m,hasSecondaryAction:N,selected:k}),z=HM(D),W=Ye(M,n),$=R.root||d.Root||VM,_=P.root||f.root||{},F=S({className:V(z.root,_.className,l),disabled:v},j);let G=c||"li";return s&&(F.component=c||"div",F.focusVisibleClassName=V(Go.focusVisible,x),G=kr),N?(G=!F.component&&!c?"div":G,h==="li"&&(G==="li"?G="div":F.component==="li"&&(F.component="div")),u.jsx(ar.Provider,{value:O,children:u.jsxs(qM,S({as:h,className:V(z.container,b),ref:W,ownerState:D},E,{children:[u.jsx($,S({},_,!Ei($)&&{as:G,ownerState:S({},D,_.ownerState)},F,{children:I})),I.pop()]}))})):u.jsx(ar.Provider,{value:O,children:u.jsxs($,S({},_,{as:G,ref:W},!Ei($)&&{ownerState:S({},D,_.ownerState)},F,{children:[I,w&&u.jsx(Z2,{children:w})]}))})});function KM(e){return re("MuiListItemAvatar",e)}oe("MuiListItemAvatar",["root","alignItemsFlexStart"]);const GM=["className"],YM=e=>{const{alignItems:t,classes:n}=e;return ie({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},KM,n)},XM=B("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>S({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),QM=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiListItemAvatar"}),{className:o}=r,i=H(r,GM),s=p.useContext(ar),a=S({},r,{alignItems:s.alignItems}),l=YM(a);return u.jsx(XM,S({className:V(l.root,o),ownerState:a,ref:n},i))});function JM(e){return re("MuiListItemIcon",e)}const oy=oe("MuiListItemIcon",["root","alignItemsFlexStart"]),ZM=["className"],eN=e=>{const{alignItems:t,classes:n}=e;return ie({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},JM,n)},tN=B("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>S({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),iy=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiListItemIcon"}),{className:o}=r,i=H(r,ZM),s=p.useContext(ar),a=S({},r,{alignItems:s.alignItems}),l=eN(a);return u.jsx(tN,S({className:V(l.root,o),ownerState:a,ref:n},i))});function nN(e){return re("MuiListItemText",e)}const bc=oe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),rN=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],oN=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return ie({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},nN,t)},iN=B("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${bc.primary}`]:t.primary},{[`& .${bc.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>S({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),da=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:s=!1,inset:a=!1,primary:l,primaryTypographyProps:c,secondary:d,secondaryTypographyProps:f}=r,h=H(r,rN),{dense:b}=p.useContext(ar);let y=l??o,v=d;const C=S({},r,{disableTypography:s,inset:a,primary:!!y,secondary:!!v,dense:b}),g=oN(C);return y!=null&&y.type!==ve&&!s&&(y=u.jsx(ve,S({variant:b?"body2":"body1",className:g.primary,component:c!=null&&c.variant?void 0:"span",display:"block"},c,{children:y}))),v!=null&&v.type!==ve&&!s&&(v=u.jsx(ve,S({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},f,{children:v}))),u.jsxs(iN,S({className:V(g.root,i),ownerState:C,ref:n},h,{children:[y,v]}))}),sN=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Vd(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function sy(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function eS(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function us(e,t,n,r,o,i){let s=!1,a=o(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const l=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!eS(a,i)||l)a=o(e,a,n);else return a.focus(),!0}return!1}const aN=p.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:s,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:d,variant:f="selectedMenu"}=t,h=H(t,sN),b=p.useRef(null),y=p.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});dn(()=>{o&&b.current.focus()},[o]),p.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,{direction:w})=>{const k=!b.current.style.width;if(x.clientHeight{const w=b.current,k=x.key,P=ft(w).activeElement;if(k==="ArrowDown")x.preventDefault(),us(w,P,c,l,Vd);else if(k==="ArrowUp")x.preventDefault(),us(w,P,c,l,sy);else if(k==="Home")x.preventDefault(),us(w,null,c,l,Vd);else if(k==="End")x.preventDefault(),us(w,null,c,l,sy);else if(k.length===1){const R=y.current,E=k.toLowerCase(),j=performance.now();R.keys.length>0&&(j-R.lastTime>500?(R.keys=[],R.repeating=!0,R.previousKeyMatched=!0):R.repeating&&E!==R.keys[0]&&(R.repeating=!1)),R.lastTime=j,R.keys.push(E);const T=P&&!R.repeating&&eS(P,R);R.previousKeyMatched&&(T||us(w,P,!1,l,Vd,R))?x.preventDefault():R.previousKeyMatched=!1}d&&d(x)},C=Ye(b,n);let g=-1;p.Children.forEach(s,(x,w)=>{if(!p.isValidElement(x)){g===w&&(g+=1,g>=s.length&&(g=-1));return}x.props.disabled||(f==="selectedMenu"&&x.props.selected||g===-1)&&(g=w),g===w&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(g+=1,g>=s.length&&(g=-1))});const m=p.Children.map(s,(x,w)=>{if(w===g){const k={};return i&&(k.autoFocus=!0),x.props.tabIndex===void 0&&f==="selectedMenu"&&(k.tabIndex=0),p.cloneElement(x,k)}return x});return u.jsx(ja,S({role:"menu",ref:C,className:a,onKeyDown:v,tabIndex:o?0:-1},h,{children:m}))});function lN(e){return re("MuiPopover",e)}oe("MuiPopover",["root","paper"]);const cN=["onEntering"],uN=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],dN=["slotProps"];function ay(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function ly(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function cy(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function qd(e){return typeof e=="function"?e():e}const fN=e=>{const{classes:t}=e;return ie({root:["root"],paper:["paper"]},lN,t)},pN=B(mm,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),tS=B(gn,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),hN=p.forwardRef(function(t,n){var r,o,i;const s=le({props:t,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:f="anchorEl",children:h,className:b,container:y,elevation:v=8,marginThreshold:C=16,open:g,PaperProps:m={},slots:x,slotProps:w,transformOrigin:k={vertical:"top",horizontal:"left"},TransitionComponent:P=ua,transitionDuration:R="auto",TransitionProps:{onEntering:E}={},disableScrollLock:j=!1}=s,T=H(s.TransitionProps,cN),O=H(s,uN),M=(r=w==null?void 0:w.paper)!=null?r:m,I=p.useRef(),N=Ye(I,M.ref),D=S({},s,{anchorOrigin:c,anchorReference:f,elevation:v,marginThreshold:C,externalPaperSlotProps:M,transformOrigin:k,TransitionComponent:P,transitionDuration:R,TransitionProps:T}),z=fN(D),W=p.useCallback(()=>{if(f==="anchorPosition")return d;const pe=qd(l),xe=(pe&&pe.nodeType===1?pe:ft(I.current).body).getBoundingClientRect();return{top:xe.top+ay(xe,c.vertical),left:xe.left+ly(xe,c.horizontal)}},[l,c.horizontal,c.vertical,d,f]),$=p.useCallback(pe=>({vertical:ay(pe,k.vertical),horizontal:ly(pe,k.horizontal)}),[k.horizontal,k.vertical]),_=p.useCallback(pe=>{const Se={width:pe.offsetWidth,height:pe.offsetHeight},xe=$(Se);if(f==="none")return{top:null,left:null,transformOrigin:cy(xe)};const Ct=W();let Fe=Ct.top-xe.vertical,ze=Ct.left-xe.horizontal;const pt=Fe+Se.height,Me=ze+Se.width,ke=_n(qd(l)),ct=ke.innerHeight-C,He=ke.innerWidth-C;if(C!==null&&Fect){const Ee=pt-ct;Fe-=Ee,xe.vertical+=Ee}if(C!==null&&zeHe){const Ee=Me-He;ze-=Ee,xe.horizontal+=Ee}return{top:`${Math.round(Fe)}px`,left:`${Math.round(ze)}px`,transformOrigin:cy(xe)}},[l,f,W,$,C]),[F,G]=p.useState(g),X=p.useCallback(()=>{const pe=I.current;if(!pe)return;const Se=_(pe);Se.top!==null&&(pe.style.top=Se.top),Se.left!==null&&(pe.style.left=Se.left),pe.style.transformOrigin=Se.transformOrigin,G(!0)},[_]);p.useEffect(()=>(j&&window.addEventListener("scroll",X),()=>window.removeEventListener("scroll",X)),[l,j,X]);const ce=(pe,Se)=>{E&&E(pe,Se),X()},Z=()=>{G(!1)};p.useEffect(()=>{g&&X()}),p.useImperativeHandle(a,()=>g?{updatePosition:()=>{X()}}:null,[g,X]),p.useEffect(()=>{if(!g)return;const pe=Hi(()=>{X()}),Se=_n(l);return Se.addEventListener("resize",pe),()=>{pe.clear(),Se.removeEventListener("resize",pe)}},[l,g,X]);let ue=R;R==="auto"&&!P.muiSupportAuto&&(ue=void 0);const U=y||(l?ft(qd(l)).body:void 0),ee=(o=x==null?void 0:x.root)!=null?o:pN,K=(i=x==null?void 0:x.paper)!=null?i:tS,Q=en({elementType:K,externalSlotProps:S({},M,{style:F?M.style:S({},M.style,{opacity:0})}),additionalProps:{elevation:v,ref:N},ownerState:D,className:V(z.paper,M==null?void 0:M.className)}),he=en({elementType:ee,externalSlotProps:(w==null?void 0:w.root)||{},externalForwardedProps:O,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:U,open:g},ownerState:D,className:V(z.root,b)}),{slotProps:J}=he,fe=H(he,dN);return u.jsx(ee,S({},fe,!Ei(ee)&&{slotProps:J,disableScrollLock:j},{children:u.jsx(P,S({appear:!0,in:g,onEntering:ce,onExited:Z,timeout:ue},T,{children:u.jsx(K,S({},Q,{children:h}))}))}))});function mN(e){return re("MuiMenu",e)}oe("MuiMenu",["root","paper","list"]);const gN=["onEntering"],vN=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],yN={vertical:"top",horizontal:"right"},xN={vertical:"top",horizontal:"left"},bN=e=>{const{classes:t}=e;return ie({root:["root"],paper:["paper"],list:["list"]},mN,t)},SN=B(hN,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),CN=B(tS,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),wN=B(aN,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),nS=p.forwardRef(function(t,n){var r,o;const i=le({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:a,className:l,disableAutoFocusItem:c=!1,MenuListProps:d={},onClose:f,open:h,PaperProps:b={},PopoverClasses:y,transitionDuration:v="auto",TransitionProps:{onEntering:C}={},variant:g="selectedMenu",slots:m={},slotProps:x={}}=i,w=H(i.TransitionProps,gN),k=H(i,vN),P=Pa(),R=S({},i,{autoFocus:s,disableAutoFocusItem:c,MenuListProps:d,onEntering:C,PaperProps:b,transitionDuration:v,TransitionProps:w,variant:g}),E=bN(R),j=s&&!c&&h,T=p.useRef(null),O=($,_)=>{T.current&&T.current.adjustStyleForScrollbar($,{direction:P?"rtl":"ltr"}),C&&C($,_)},M=$=>{$.key==="Tab"&&($.preventDefault(),f&&f($,"tabKeyDown"))};let I=-1;p.Children.map(a,($,_)=>{p.isValidElement($)&&($.props.disabled||(g==="selectedMenu"&&$.props.selected||I===-1)&&(I=_))});const N=(r=m.paper)!=null?r:CN,D=(o=x.paper)!=null?o:b,z=en({elementType:m.root,externalSlotProps:x.root,ownerState:R,className:[E.root,l]}),W=en({elementType:N,externalSlotProps:D,ownerState:R,className:E.paper});return u.jsx(SN,S({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:P?"right":"left"},transformOrigin:P?yN:xN,slots:{paper:N,root:m.root},slotProps:{root:z,paper:W},open:h,ref:n,transitionDuration:v,TransitionProps:S({onEntering:O},w),ownerState:R},k,{classes:y,children:u.jsx(wN,S({onKeyDown:M,actions:T,autoFocus:s&&(I===-1||c),autoFocusItem:j,variant:g},d,{className:V(E.list,d.className),children:a}))}))});function kN(e){return re("MuiMenuItem",e)}const ds=oe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),RN=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],PN=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},EN=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:s}=e,l=ie({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},kN,s);return S({},s,l)},$N=B(kr,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:PN})(({theme:e,ownerState:t})=>S({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ds.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:je(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ds.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:je(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ds.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:je(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:je(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ds.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ds.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${J0.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${J0.inset}`]:{marginLeft:52},[`& .${bc.root}`]:{marginTop:0,marginBottom:0},[`& .${bc.inset}`]:{paddingLeft:36},[`& .${oy.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&S({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${oy.root} svg`]:{fontSize:"1.25rem"}}))),Un=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:s=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:c,role:d="menuitem",tabIndex:f,className:h}=r,b=H(r,RN),y=p.useContext(ar),v=p.useMemo(()=>({dense:s||y.dense||!1,disableGutters:l}),[y.dense,s,l]),C=p.useRef(null);dn(()=>{o&&C.current&&C.current.focus()},[o]);const g=S({},r,{dense:v.dense,divider:a,disableGutters:l}),m=EN(r),x=Ye(C,n);let w;return r.disabled||(w=f!==void 0?f:-1),u.jsx(ar.Provider,{value:v,children:u.jsx($N,S({ref:x,role:d,tabIndex:w,component:i,focusVisibleClassName:V(m.focusVisible,c),className:V(m.root,h)},b,{ownerState:g,classes:m}))})});function TN(e){return re("MuiNativeSelect",e)}const xm=oe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),_N=["className","disabled","error","IconComponent","inputRef","variant"],jN=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${A(n)}`,i&&"iconOpen",r&&"disabled"]};return ie(a,TN,t)},rS=({ownerState:e,theme:t})=>S({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":S({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${xm.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),ON=B("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Mt,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${xm.multiple}`]:t.multiple}]}})(rS),oS=({ownerState:e,theme:t})=>S({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${xm.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),IN=B("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${A(n.variant)}`],n.open&&t.iconOpen]}})(oS),MN=p.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:s,inputRef:a,variant:l="standard"}=t,c=H(t,_N),d=S({},t,{disabled:o,variant:l,error:i}),f=jN(d);return u.jsxs(p.Fragment,{children:[u.jsx(ON,S({ownerState:d,className:V(f.select,r),disabled:o,ref:a||n},c)),t.multiple?null:u.jsx(IN,{as:s,ownerState:d,className:f.icon})]})});var uy;const NN=["children","classes","className","label","notched"],LN=B("fieldset",{shouldForwardProp:Mt})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),AN=B("legend",{shouldForwardProp:Mt})(({ownerState:e,theme:t})=>S({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&S({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function zN(e){const{className:t,label:n,notched:r}=e,o=H(e,NN),i=n!=null&&n!=="",s=S({},e,{notched:r,withLabel:i});return u.jsx(LN,S({"aria-hidden":!0,className:t,ownerState:s},o,{children:u.jsx(AN,{ownerState:s,children:i?u.jsx("span",{children:n}):uy||(uy=u.jsx("span",{className:"notranslate",children:"​"}))})}))}const DN=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],FN=e=>{const{classes:t}=e,r=ie({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},I3,t);return S({},t,r)},BN=B(Hu,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Wu})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return S({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ir.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ir.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Ir.focused} .${Ir.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Ir.error} .${Ir.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ir.disabled} .${Ir.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&S({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),WN=B(zN,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),UN=B(Vu,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Uu})(({theme:e,ownerState:t})=>S({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),bm=p.forwardRef(function(t,n){var r,o,i,s,a;const l=le({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:d=!1,inputComponent:f="input",label:h,multiline:b=!1,notched:y,slots:v={},type:C="text"}=l,g=H(l,DN),m=FN(l),x=dr(),w=ao({props:l,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),k=S({},l,{color:w.color||"primary",disabled:w.disabled,error:w.error,focused:w.focused,formControl:x,fullWidth:d,hiddenLabel:w.hiddenLabel,multiline:b,size:w.size,type:C}),P=(r=(o=v.root)!=null?o:c.Root)!=null?r:BN,R=(i=(s=v.input)!=null?s:c.Input)!=null?i:UN;return u.jsx(dm,S({slots:{root:P,input:R},renderSuffix:E=>u.jsx(WN,{ownerState:k,className:m.notchedOutline,label:h!=null&&h!==""&&w.required?a||(a=u.jsxs(p.Fragment,{children:[h," ","*"]})):h,notched:typeof y<"u"?y:!!(E.startAdornment||E.filled||E.focused)}),fullWidth:d,inputComponent:f,multiline:b,ref:n,type:C},g,{classes:S({},m,{notchedOutline:null})}))});bm.muiName="Input";function HN(e){return re("MuiSelect",e)}const fs=oe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var dy;const VN=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],qN=B("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${fs.select}`]:t.select},{[`&.${fs.select}`]:t[n.variant]},{[`&.${fs.error}`]:t.error},{[`&.${fs.multiple}`]:t.multiple}]}})(rS,{[`&.${fs.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),KN=B("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${A(n.variant)}`],n.open&&t.iconOpen]}})(oS),GN=B("input",{shouldForwardProp:e=>S2(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function fy(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function YN(e){return e==null||typeof e=="string"&&!e.trim()}const XN=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${A(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return ie(a,HN,t)},QN=p.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":i,autoFocus:s,autoWidth:a,children:l,className:c,defaultOpen:d,defaultValue:f,disabled:h,displayEmpty:b,error:y=!1,IconComponent:v,inputRef:C,labelId:g,MenuProps:m={},multiple:x,name:w,onBlur:k,onChange:P,onClose:R,onFocus:E,onOpen:j,open:T,readOnly:O,renderValue:M,SelectDisplayProps:I={},tabIndex:N,value:D,variant:z="standard"}=t,W=H(t,VN),[$,_]=sa({controlled:D,default:f,name:"Select"}),[F,G]=sa({controlled:T,default:d,name:"Select"}),X=p.useRef(null),ce=p.useRef(null),[Z,ue]=p.useState(null),{current:U}=p.useRef(T!=null),[ee,K]=p.useState(),Q=Ye(n,C),he=p.useCallback(ae=>{ce.current=ae,ae&&ue(ae)},[]),J=Z==null?void 0:Z.parentNode;p.useImperativeHandle(Q,()=>({focus:()=>{ce.current.focus()},node:X.current,value:$}),[$]),p.useEffect(()=>{d&&F&&Z&&!U&&(K(a?null:J.clientWidth),ce.current.focus())},[Z,a]),p.useEffect(()=>{s&&ce.current.focus()},[s]),p.useEffect(()=>{if(!g)return;const ae=ft(ce.current).getElementById(g);if(ae){const Te=()=>{getSelection().isCollapsed&&ce.current.focus()};return ae.addEventListener("click",Te),()=>{ae.removeEventListener("click",Te)}}},[g]);const fe=(ae,Te)=>{ae?j&&j(Te):R&&R(Te),U||(K(a?null:J.clientWidth),G(ae))},pe=ae=>{ae.button===0&&(ae.preventDefault(),ce.current.focus(),fe(!0,ae))},Se=ae=>{fe(!1,ae)},xe=p.Children.toArray(l),Ct=ae=>{const Te=xe.find(Y=>Y.props.value===ae.target.value);Te!==void 0&&(_(Te.props.value),P&&P(ae,Te))},Fe=ae=>Te=>{let Y;if(Te.currentTarget.hasAttribute("tabindex")){if(x){Y=Array.isArray($)?$.slice():[];const ne=$.indexOf(ae.props.value);ne===-1?Y.push(ae.props.value):Y.splice(ne,1)}else Y=ae.props.value;if(ae.props.onClick&&ae.props.onClick(Te),$!==Y&&(_(Y),P)){const ne=Te.nativeEvent||Te,Ce=new ne.constructor(ne.type,ne);Object.defineProperty(Ce,"target",{writable:!0,value:{value:Y,name:w}}),P(Ce,ae)}x||fe(!1,Te)}},ze=ae=>{O||[" ","ArrowUp","ArrowDown","Enter"].indexOf(ae.key)!==-1&&(ae.preventDefault(),fe(!0,ae))},pt=Z!==null&&F,Me=ae=>{!pt&&k&&(Object.defineProperty(ae,"target",{writable:!0,value:{value:$,name:w}}),k(ae))};delete W["aria-invalid"];let ke,ct;const He=[];let Ee=!1;(vc({value:$})||b)&&(M?ke=M($):Ee=!0);const ht=xe.map(ae=>{if(!p.isValidElement(ae))return null;let Te;if(x){if(!Array.isArray($))throw new Error(jo(2));Te=$.some(Y=>fy(Y,ae.props.value)),Te&&Ee&&He.push(ae.props.children)}else Te=fy($,ae.props.value),Te&&Ee&&(ct=ae.props.children);return p.cloneElement(ae,{"aria-selected":Te?"true":"false",onClick:Fe(ae),onKeyUp:Y=>{Y.key===" "&&Y.preventDefault(),ae.props.onKeyUp&&ae.props.onKeyUp(Y)},role:"option",selected:Te,value:void 0,"data-value":ae.props.value})});Ee&&(x?He.length===0?ke=null:ke=He.reduce((ae,Te,Y)=>(ae.push(Te),Y{const{classes:t}=e;return t},Sm={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Mt(e)&&e!=="variant",slot:"Root"},t6=B(ym,Sm)(""),n6=B(bm,Sm)(""),r6=B(gm,Sm)(""),Oa=p.forwardRef(function(t,n){const r=le({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:s={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:d=N3,id:f,input:h,inputProps:b,label:y,labelId:v,MenuProps:C,multiple:g=!1,native:m=!1,onClose:x,onOpen:w,open:k,renderValue:P,SelectDisplayProps:R,variant:E="outlined"}=r,j=H(r,JN),T=m?MN:QN,O=dr(),M=ao({props:r,muiFormControl:O,states:["variant","error"]}),I=M.variant||E,N=S({},r,{variant:I,classes:s}),D=e6(N),z=H(D,ZN),W=h||{standard:u.jsx(t6,{ownerState:N}),outlined:u.jsx(n6,{label:y,ownerState:N}),filled:u.jsx(r6,{ownerState:N})}[I],$=Ye(n,W.ref);return u.jsx(p.Fragment,{children:p.cloneElement(W,S({inputComponent:T,inputProps:S({children:i,error:M.error,IconComponent:d,variant:I,type:void 0,multiple:g},m?{id:f}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:v,MenuProps:C,onClose:x,onOpen:w,open:k,renderValue:P,SelectDisplayProps:S({id:f},R)},b,{classes:b?Ft(z,b.classes):z},h?h.props.inputProps:{})},(g&&m||c)&&I==="outlined"?{notched:!0}:{},{ref:$,className:V(W.props.className,a,D.root)},!h&&{variant:I},j))})});Oa.muiName="Select";function o6(e){return re("MuiSnackbarContent",e)}oe("MuiSnackbarContent",["root","message","action"]);const i6=["action","className","message","role"],s6=e=>{const{classes:t}=e;return ie({root:["root"],action:["action"],message:["message"]},o6,t)},a6=B(gn,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=l5(e.palette.background.default,t);return S({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),l6=B("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),c6=B("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),u6=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiSnackbarContent"}),{action:o,className:i,message:s,role:a="alert"}=r,l=H(r,i6),c=r,d=s6(c);return u.jsxs(a6,S({role:a,square:!0,elevation:6,className:V(d.root,i),ownerState:c,ref:n},l,{children:[u.jsx(l6,{className:d.message,ownerState:c,children:s}),o?u.jsx(c6,{className:d.action,ownerState:c,children:o}):null]}))});function d6(e){return re("MuiSnackbar",e)}oe("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const f6=["onEnter","onExited"],p6=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],h6=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${A(n.vertical)}${A(n.horizontal)}`]};return ie(r,d6,t)},py=B("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${A(n.anchorOrigin.vertical)}${A(n.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const n={left:"50%",right:"auto",transform:"translateX(-50%)"};return S({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:S({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&n,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),lo=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiSnackbar"}),o=io(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:a,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:d,className:f,ClickAwayListenerProps:h,ContentProps:b,disableWindowBlurListener:y=!1,message:v,open:C,TransitionComponent:g=ua,transitionDuration:m=i,TransitionProps:{onEnter:x,onExited:w}={}}=r,k=H(r.TransitionProps,f6),P=H(r,p6),R=S({},r,{anchorOrigin:{vertical:a,horizontal:l},autoHideDuration:c,disableWindowBlurListener:y,TransitionComponent:g,transitionDuration:m}),E=h6(R),{getRootProps:j,onClickAway:T}=a3(S({},R)),[O,M]=p.useState(!0),I=en({elementType:py,getSlotProps:j,externalForwardedProps:P,ownerState:R,additionalProps:{ref:n},className:[E.root,f]}),N=z=>{M(!0),w&&w(z)},D=(z,W)=>{M(!1),x&&x(z,W)};return!C&&O?null:u.jsx($_,S({onClickAway:T},h,{children:u.jsx(py,S({},I,{children:u.jsx(g,S({appear:!0,in:C,timeout:m,direction:a==="top"?"down":"up",onEnter:D,onExited:N},k,{children:d||u.jsx(u6,S({message:v,action:s},b))}))}))}))});function m6(e){return re("MuiTooltip",e)}const Ur=oe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),g6=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function v6(e){return Math.round(e*1e5)/1e5}const y6=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${A(i.split("-")[0])}`],arrow:["arrow"]};return ie(s,m6,t)},x6=B(B2,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>S({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Ur.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Ur.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Ur.arrow}`]:S({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Ur.arrow}`]:S({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),b6=B("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${A(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>S({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:je(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${v6(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Ur.popper}[data-popper-placement*="left"] &`]:S({transformOrigin:"right center"},t.isRtl?S({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):S({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Ur.popper}[data-popper-placement*="right"] &`]:S({transformOrigin:"left center"},t.isRtl?S({marginRight:"14px"},t.touch&&{marginRight:"24px"}):S({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Ur.popper}[data-popper-placement*="top"] &`]:S({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Ur.popper}[data-popper-placement*="bottom"] &`]:S({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),S6=B("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:je(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let il=!1;const hy=new Ra;let ps={x:0,y:0};function sl(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Hn=p.forwardRef(function(t,n){var r,o,i,s,a,l,c,d,f,h,b,y,v,C,g,m,x,w,k;const P=le({props:t,name:"MuiTooltip"}),{arrow:R=!1,children:E,components:j={},componentsProps:T={},describeChild:O=!1,disableFocusListener:M=!1,disableHoverListener:I=!1,disableInteractive:N=!1,disableTouchListener:D=!1,enterDelay:z=100,enterNextDelay:W=0,enterTouchDelay:$=700,followCursor:_=!1,id:F,leaveDelay:G=0,leaveTouchDelay:X=1500,onClose:ce,onOpen:Z,open:ue,placement:U="bottom",PopperComponent:ee,PopperProps:K={},slotProps:Q={},slots:he={},title:J,TransitionComponent:fe=ua,TransitionProps:pe}=P,Se=H(P,g6),xe=p.isValidElement(E)?E:u.jsx("span",{children:E}),Ct=io(),Fe=Pa(),[ze,pt]=p.useState(),[Me,ke]=p.useState(null),ct=p.useRef(!1),He=N||_,Ee=xo(),ht=xo(),yt=xo(),wt=xo(),[Re,se]=sa({controlled:ue,default:!1,name:"Tooltip",state:"open"});let tt=Re;const Ut=ka(F),tn=p.useRef(),ae=zt(()=>{tn.current!==void 0&&(document.body.style.WebkitUserSelect=tn.current,tn.current=void 0),wt.clear()});p.useEffect(()=>ae,[ae]);const Te=we=>{hy.clear(),il=!0,se(!0),Z&&!tt&&Z(we)},Y=zt(we=>{hy.start(800+G,()=>{il=!1}),se(!1),ce&&tt&&ce(we),Ee.start(Ct.transitions.duration.shortest,()=>{ct.current=!1})}),ne=we=>{ct.current&&we.type!=="touchstart"||(ze&&ze.removeAttribute("title"),ht.clear(),yt.clear(),z||il&&W?ht.start(il?W:z,()=>{Te(we)}):Te(we))},Ce=we=>{ht.clear(),yt.start(G,()=>{Y(we)})},{isFocusVisibleRef:Pe,onBlur:nt,onFocus:kt,ref:vn}=Kh(),[,_r]=p.useState(!1),An=we=>{nt(we),Pe.current===!1&&(_r(!1),Ce(we))},zo=we=>{ze||pt(we.currentTarget),kt(we),Pe.current===!0&&(_r(!0),ne(we))},gg=we=>{ct.current=!0;const nn=xe.props;nn.onTouchStart&&nn.onTouchStart(we)},zS=we=>{gg(we),yt.clear(),Ee.clear(),ae(),tn.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",wt.start($,()=>{document.body.style.WebkitUserSelect=tn.current,ne(we)})},DS=we=>{xe.props.onTouchEnd&&xe.props.onTouchEnd(we),ae(),yt.start(X,()=>{Y(we)})};p.useEffect(()=>{if(!tt)return;function we(nn){(nn.key==="Escape"||nn.key==="Esc")&&Y(nn)}return document.addEventListener("keydown",we),()=>{document.removeEventListener("keydown",we)}},[Y,tt]);const FS=Ye(xe.ref,vn,pt,n);!J&&J!==0&&(tt=!1);const Qu=p.useRef(),BS=we=>{const nn=xe.props;nn.onMouseMove&&nn.onMouseMove(we),ps={x:we.clientX,y:we.clientY},Qu.current&&Qu.current.update()},Gi={},Ju=typeof J=="string";O?(Gi.title=!tt&&Ju&&!I?J:null,Gi["aria-describedby"]=tt?Ut:null):(Gi["aria-label"]=Ju?J:null,Gi["aria-labelledby"]=tt&&!Ju?Ut:null);const zn=S({},Gi,Se,xe.props,{className:V(Se.className,xe.props.className),onTouchStart:gg,ref:FS},_?{onMouseMove:BS}:{}),Yi={};D||(zn.onTouchStart=zS,zn.onTouchEnd=DS),I||(zn.onMouseOver=sl(ne,zn.onMouseOver),zn.onMouseLeave=sl(Ce,zn.onMouseLeave),He||(Yi.onMouseOver=ne,Yi.onMouseLeave=Ce)),M||(zn.onFocus=sl(zo,zn.onFocus),zn.onBlur=sl(An,zn.onBlur),He||(Yi.onFocus=zo,Yi.onBlur=An));const WS=p.useMemo(()=>{var we;let nn=[{name:"arrow",enabled:!!Me,options:{element:Me,padding:4}}];return(we=K.popperOptions)!=null&&we.modifiers&&(nn=nn.concat(K.popperOptions.modifiers)),S({},K.popperOptions,{modifiers:nn})},[Me,K]),Xi=S({},P,{isRtl:Fe,arrow:R,disableInteractive:He,placement:U,PopperComponentProp:ee,touch:ct.current}),Zu=y6(Xi),vg=(r=(o=he.popper)!=null?o:j.Popper)!=null?r:x6,yg=(i=(s=(a=he.transition)!=null?a:j.Transition)!=null?s:fe)!=null?i:ua,xg=(l=(c=he.tooltip)!=null?c:j.Tooltip)!=null?l:b6,bg=(d=(f=he.arrow)!=null?f:j.Arrow)!=null?d:S6,US=ai(vg,S({},K,(h=Q.popper)!=null?h:T.popper,{className:V(Zu.popper,K==null?void 0:K.className,(b=(y=Q.popper)!=null?y:T.popper)==null?void 0:b.className)}),Xi),HS=ai(yg,S({},pe,(v=Q.transition)!=null?v:T.transition),Xi),VS=ai(xg,S({},(C=Q.tooltip)!=null?C:T.tooltip,{className:V(Zu.tooltip,(g=(m=Q.tooltip)!=null?m:T.tooltip)==null?void 0:g.className)}),Xi),qS=ai(bg,S({},(x=Q.arrow)!=null?x:T.arrow,{className:V(Zu.arrow,(w=(k=Q.arrow)!=null?k:T.arrow)==null?void 0:w.className)}),Xi);return u.jsxs(p.Fragment,{children:[p.cloneElement(xe,zn),u.jsx(vg,S({as:ee??B2,placement:U,anchorEl:_?{getBoundingClientRect:()=>({top:ps.y,left:ps.x,right:ps.x,bottom:ps.y,width:0,height:0})}:ze,popperRef:Qu,open:ze?tt:!1,id:Ut,transition:!0},Yi,US,{popperOptions:WS,children:({TransitionProps:we})=>u.jsx(yg,S({timeout:Ct.transitions.duration.shorter},we,HS,{children:u.jsxs(xg,S({},VS,{children:[J,R?u.jsx(bg,S({},qS,{ref:ke})):null]}))}))}))]})});function C6(e){return re("MuiSwitch",e)}const Lt=oe("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),w6=["className","color","edge","size","sx"],k6=zu(),R6=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:s}=e,a={root:["root",n&&`edge${A(n)}`,`size${A(r)}`],switchBase:["switchBase",`color${A(o)}`,i&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=ie(a,C6,t);return S({},t,l)},P6=B("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${A(n.edge)}`],t[`size${A(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Lt.thumb}`]:{width:16,height:16},[`& .${Lt.switchBase}`]:{padding:4,[`&.${Lt.checked}`]:{transform:"translateX(16px)"}}}}]}),E6=B(q2,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Lt.input}`]:t.input},n.color!=="default"&&t[`color${A(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Lt.checked}`]:{transform:"translateX(20px)"},[`&.${Lt.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Lt.checked} + .${Lt.track}`]:{opacity:.5},[`&.${Lt.disabled} + .${Lt.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Lt.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:je(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${Lt.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:je(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Lt.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?fc(e.palette[t].main,.62):dc(e.palette[t].main,.55)}`}},[`&.${Lt.checked} + .${Lt.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),$6=B("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),T6=B("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),_6=p.forwardRef(function(t,n){const r=k6({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:s=!1,size:a="medium",sx:l}=r,c=H(r,w6),d=S({},r,{color:i,edge:s,size:a}),f=R6(d),h=u.jsx(T6,{className:f.thumb,ownerState:d});return u.jsxs(P6,{className:V(f.root,o),sx:l,ownerState:d,children:[u.jsx(E6,S({type:"checkbox",icon:h,checkedIcon:h,ref:n,ownerState:d},c,{classes:S({},f,{root:f.switchBase})})),u.jsx($6,{className:f.track,ownerState:d})]})});function j6(e){return re("MuiTab",e)}const uo=oe("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),O6=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],I6=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:s,selected:a,disabled:l}=e,c={root:["root",i&&s&&"labelIcon",`textColor${A(n)}`,r&&"fullWidth",o&&"wrapped",a&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return ie(c,j6,t)},M6=B(kr,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${A(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>S({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${uo.iconWrapper}`]:S({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${uo.selected}`]:{opacity:1},[`&.${uo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${uo.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${uo.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${uo.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${uo.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),jl=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:s=!1,fullWidth:a,icon:l,iconPosition:c="top",indicator:d,label:f,onChange:h,onClick:b,onFocus:y,selected:v,selectionFollowsFocus:C,textColor:g="inherit",value:m,wrapped:x=!1}=r,w=H(r,O6),k=S({},r,{disabled:i,disableFocusRipple:s,selected:v,icon:!!l,iconPosition:c,label:!!f,fullWidth:a,textColor:g,wrapped:x}),P=I6(k),R=l&&f&&p.isValidElement(l)?p.cloneElement(l,{className:V(P.iconWrapper,l.props.className)}):l,E=T=>{!v&&h&&h(T,m),b&&b(T)},j=T=>{C&&!v&&h&&h(T,m),y&&y(T)};return u.jsxs(M6,S({focusRipple:!s,className:V(P.root,o),ref:n,role:"tab","aria-selected":v,disabled:i,onClick:E,onFocus:j,ownerState:k,tabIndex:v?0:-1},w,{children:[c==="top"||c==="start"?u.jsxs(p.Fragment,{children:[R,f]}):u.jsxs(p.Fragment,{children:[f,R]}),d]}))});function N6(e){return re("MuiToolbar",e)}oe("MuiToolbar",["root","gutters","regular","dense"]);const L6=["className","component","disableGutters","variant"],A6=e=>{const{classes:t,disableGutters:n,variant:r}=e;return ie({root:["root",!n&&"gutters",r]},N6,t)},z6=B("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>S({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),D6=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:s=!1,variant:a="regular"}=r,l=H(r,L6),c=S({},r,{component:i,disableGutters:s,variant:a}),d=A6(c);return u.jsx(z6,S({as:i,className:V(d.root,o),ref:n,ownerState:c},l))}),F6=Nt(u.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),B6=Nt(u.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function W6(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function U6(e,t,n,r={},o=()=>{}){const{ease:i=W6,duration:s=300}=r;let a=null;const l=t[e];let c=!1;const d=()=>{c=!0},f=h=>{if(c){o(new Error("Animation cancelled"));return}a===null&&(a=h);const b=Math.min(1,(h-a)/s);if(t[e]=i(b)*(n-l)+l,b>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(f)};return l===n?(o(new Error("Element already at target position")),d):(requestAnimationFrame(f),d)}const H6=["onChange"],V6={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function q6(e){const{onChange:t}=e,n=H(e,H6),r=p.useRef(),o=p.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return dn(()=>{const s=Hi(()=>{const l=r.current;i(),l!==r.current&&t(r.current)}),a=_n(o.current);return a.addEventListener("resize",s),()=>{s.clear(),a.removeEventListener("resize",s)}},[t]),p.useEffect(()=>{i(),t(r.current)},[t]),u.jsx("div",S({style:V6,ref:o},n))}function K6(e){return re("MuiTabScrollButton",e)}const G6=oe("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Y6=["className","slots","slotProps","direction","orientation","disabled"],X6=e=>{const{classes:t,orientation:n,disabled:r}=e;return ie({root:["root",n,r&&"disabled"]},K6,t)},Q6=B(kr,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>S({width:40,flexShrink:0,opacity:.8,[`&.${G6.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),J6=p.forwardRef(function(t,n){var r,o;const i=le({props:t,name:"MuiTabScrollButton"}),{className:s,slots:a={},slotProps:l={},direction:c}=i,d=H(i,Y6),f=Pa(),h=S({isRtl:f},i),b=X6(h),y=(r=a.StartScrollButtonIcon)!=null?r:F6,v=(o=a.EndScrollButtonIcon)!=null?o:B6,C=en({elementType:y,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),g=en({elementType:v,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return u.jsx(Q6,S({component:"div",className:V(b.root,s),ref:n,role:null,ownerState:h,tabIndex:null},d,{children:c==="left"?u.jsx(y,S({},C)):u.jsx(v,S({},g))}))});function Z6(e){return re("MuiTabs",e)}const Kd=oe("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),eL=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],my=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,gy=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,al=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const i=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||i)o=n(e,o);else{o.focus();return}}},tL=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:s,scrollButtonsHideMobile:a,classes:l}=e;return ie({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},Z6,l)},nL=B("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Kd.scrollButtons}`]:t.scrollButtons},{[`& .${Kd.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>S({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Kd.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),rL=B("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>S({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),oL=B("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>S({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),iL=B("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>S({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),sL=B(q6)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),vy={},iS=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiTabs"}),o=io(),i=Pa(),{"aria-label":s,"aria-labelledby":a,action:l,centered:c=!1,children:d,className:f,component:h="div",allowScrollButtonsMobile:b=!1,indicatorColor:y="primary",onChange:v,orientation:C="horizontal",ScrollButtonComponent:g=J6,scrollButtons:m="auto",selectionFollowsFocus:x,slots:w={},slotProps:k={},TabIndicatorProps:P={},TabScrollButtonProps:R={},textColor:E="primary",value:j,variant:T="standard",visibleScrollbar:O=!1}=r,M=H(r,eL),I=T==="scrollable",N=C==="vertical",D=N?"scrollTop":"scrollLeft",z=N?"top":"left",W=N?"bottom":"right",$=N?"clientHeight":"clientWidth",_=N?"height":"width",F=S({},r,{component:h,allowScrollButtonsMobile:b,indicatorColor:y,orientation:C,vertical:N,scrollButtons:m,textColor:E,variant:T,visibleScrollbar:O,fixed:!I,hideScrollbar:I&&!O,scrollableX:I&&!N,scrollableY:I&&N,centered:c&&!I,scrollButtonsHideMobile:!b}),G=tL(F),X=en({elementType:w.StartScrollButtonIcon,externalSlotProps:k.startScrollButtonIcon,ownerState:F}),ce=en({elementType:w.EndScrollButtonIcon,externalSlotProps:k.endScrollButtonIcon,ownerState:F}),[Z,ue]=p.useState(!1),[U,ee]=p.useState(vy),[K,Q]=p.useState(!1),[he,J]=p.useState(!1),[fe,pe]=p.useState(!1),[Se,xe]=p.useState({overflow:"hidden",scrollbarWidth:0}),Ct=new Map,Fe=p.useRef(null),ze=p.useRef(null),pt=()=>{const Y=Fe.current;let ne;if(Y){const Pe=Y.getBoundingClientRect();ne={clientWidth:Y.clientWidth,scrollLeft:Y.scrollLeft,scrollTop:Y.scrollTop,scrollLeftNormalized:A4(Y,i?"rtl":"ltr"),scrollWidth:Y.scrollWidth,top:Pe.top,bottom:Pe.bottom,left:Pe.left,right:Pe.right}}let Ce;if(Y&&j!==!1){const Pe=ze.current.children;if(Pe.length>0){const nt=Pe[Ct.get(j)];Ce=nt?nt.getBoundingClientRect():null}}return{tabsMeta:ne,tabMeta:Ce}},Me=zt(()=>{const{tabsMeta:Y,tabMeta:ne}=pt();let Ce=0,Pe;if(N)Pe="top",ne&&Y&&(Ce=ne.top-Y.top+Y.scrollTop);else if(Pe=i?"right":"left",ne&&Y){const kt=i?Y.scrollLeftNormalized+Y.clientWidth-Y.scrollWidth:Y.scrollLeft;Ce=(i?-1:1)*(ne[Pe]-Y[Pe]+kt)}const nt={[Pe]:Ce,[_]:ne?ne[_]:0};if(isNaN(U[Pe])||isNaN(U[_]))ee(nt);else{const kt=Math.abs(U[Pe]-nt[Pe]),vn=Math.abs(U[_]-nt[_]);(kt>=1||vn>=1)&&ee(nt)}}),ke=(Y,{animation:ne=!0}={})=>{ne?U6(D,Fe.current,Y,{duration:o.transitions.duration.standard}):Fe.current[D]=Y},ct=Y=>{let ne=Fe.current[D];N?ne+=Y:(ne+=Y*(i?-1:1),ne*=i&&a2()==="reverse"?-1:1),ke(ne)},He=()=>{const Y=Fe.current[$];let ne=0;const Ce=Array.from(ze.current.children);for(let Pe=0;PeY){Pe===0&&(ne=Y);break}ne+=nt[$]}return ne},Ee=()=>{ct(-1*He())},ht=()=>{ct(He())},yt=p.useCallback(Y=>{xe({overflow:null,scrollbarWidth:Y})},[]),wt=()=>{const Y={};Y.scrollbarSizeListener=I?u.jsx(sL,{onChange:yt,className:V(G.scrollableX,G.hideScrollbar)}):null;const Ce=I&&(m==="auto"&&(K||he)||m===!0);return Y.scrollButtonStart=Ce?u.jsx(g,S({slots:{StartScrollButtonIcon:w.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:X},orientation:C,direction:i?"right":"left",onClick:Ee,disabled:!K},R,{className:V(G.scrollButtons,R.className)})):null,Y.scrollButtonEnd=Ce?u.jsx(g,S({slots:{EndScrollButtonIcon:w.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:ce},orientation:C,direction:i?"left":"right",onClick:ht,disabled:!he},R,{className:V(G.scrollButtons,R.className)})):null,Y},Re=zt(Y=>{const{tabsMeta:ne,tabMeta:Ce}=pt();if(!(!Ce||!ne)){if(Ce[z]ne[W]){const Pe=ne[D]+(Ce[W]-ne[W]);ke(Pe,{animation:Y})}}}),se=zt(()=>{I&&m!==!1&&pe(!fe)});p.useEffect(()=>{const Y=Hi(()=>{Fe.current&&Me()});let ne;const Ce=kt=>{kt.forEach(vn=>{vn.removedNodes.forEach(_r=>{var An;(An=ne)==null||An.unobserve(_r)}),vn.addedNodes.forEach(_r=>{var An;(An=ne)==null||An.observe(_r)})}),Y(),se()},Pe=_n(Fe.current);Pe.addEventListener("resize",Y);let nt;return typeof ResizeObserver<"u"&&(ne=new ResizeObserver(Y),Array.from(ze.current.children).forEach(kt=>{ne.observe(kt)})),typeof MutationObserver<"u"&&(nt=new MutationObserver(Ce),nt.observe(ze.current,{childList:!0})),()=>{var kt,vn;Y.clear(),Pe.removeEventListener("resize",Y),(kt=nt)==null||kt.disconnect(),(vn=ne)==null||vn.disconnect()}},[Me,se]),p.useEffect(()=>{const Y=Array.from(ze.current.children),ne=Y.length;if(typeof IntersectionObserver<"u"&&ne>0&&I&&m!==!1){const Ce=Y[0],Pe=Y[ne-1],nt={root:Fe.current,threshold:.99},kt=zo=>{Q(!zo[0].isIntersecting)},vn=new IntersectionObserver(kt,nt);vn.observe(Ce);const _r=zo=>{J(!zo[0].isIntersecting)},An=new IntersectionObserver(_r,nt);return An.observe(Pe),()=>{vn.disconnect(),An.disconnect()}}},[I,m,fe,d==null?void 0:d.length]),p.useEffect(()=>{ue(!0)},[]),p.useEffect(()=>{Me()}),p.useEffect(()=>{Re(vy!==U)},[Re,U]),p.useImperativeHandle(l,()=>({updateIndicator:Me,updateScrollButtons:se}),[Me,se]);const tt=u.jsx(iL,S({},P,{className:V(G.indicator,P.className),ownerState:F,style:S({},U,P.style)}));let Ut=0;const tn=p.Children.map(d,Y=>{if(!p.isValidElement(Y))return null;const ne=Y.props.value===void 0?Ut:Y.props.value;Ct.set(ne,Ut);const Ce=ne===j;return Ut+=1,p.cloneElement(Y,S({fullWidth:T==="fullWidth",indicator:Ce&&!Z&&tt,selected:Ce,selectionFollowsFocus:x,onChange:v,textColor:E,value:ne},Ut===1&&j===!1&&!Y.props.tabIndex?{tabIndex:0}:{}))}),ae=Y=>{const ne=ze.current,Ce=ft(ne).activeElement;if(Ce.getAttribute("role")!=="tab")return;let nt=C==="horizontal"?"ArrowLeft":"ArrowUp",kt=C==="horizontal"?"ArrowRight":"ArrowDown";switch(C==="horizontal"&&i&&(nt="ArrowRight",kt="ArrowLeft"),Y.key){case nt:Y.preventDefault(),al(ne,Ce,gy);break;case kt:Y.preventDefault(),al(ne,Ce,my);break;case"Home":Y.preventDefault(),al(ne,null,my);break;case"End":Y.preventDefault(),al(ne,null,gy);break}},Te=wt();return u.jsxs(nL,S({className:V(G.root,f),ownerState:F,ref:n,as:h},M,{children:[Te.scrollButtonStart,Te.scrollbarSizeListener,u.jsxs(rL,{className:G.scroller,ownerState:F,style:{overflow:Se.overflow,[N?`margin${i?"Left":"Right"}`:"marginBottom"]:O?void 0:-Se.scrollbarWidth},ref:Fe,children:[u.jsx(oL,{"aria-label":s,"aria-labelledby":a,"aria-orientation":C==="vertical"?"vertical":null,className:G.flexContainer,ownerState:F,onKeyDown:ae,ref:ze,role:"tablist",children:tn}),Z&&tt]}),Te.scrollButtonEnd]}))});function aL(e){return re("MuiTextField",e)}oe("MuiTextField",["root"]);const lL=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],cL={standard:ym,filled:gm,outlined:bm},uL=e=>{const{classes:t}=e;return ie({root:["root"]},aL,t)},dL=B(Gu,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),qe=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:s,className:a,color:l="primary",defaultValue:c,disabled:d=!1,error:f=!1,FormHelperTextProps:h,fullWidth:b=!1,helperText:y,id:v,InputLabelProps:C,inputProps:g,InputProps:m,inputRef:x,label:w,maxRows:k,minRows:P,multiline:R=!1,name:E,onBlur:j,onChange:T,onFocus:O,placeholder:M,required:I=!1,rows:N,select:D=!1,SelectProps:z,type:W,value:$,variant:_="outlined"}=r,F=H(r,lL),G=S({},r,{autoFocus:i,color:l,disabled:d,error:f,fullWidth:b,multiline:R,required:I,select:D,variant:_}),X=uL(G),ce={};_==="outlined"&&(C&&typeof C.shrink<"u"&&(ce.notched=C.shrink),ce.label=w),D&&((!z||!z.native)&&(ce.id=void 0),ce["aria-describedby"]=void 0);const Z=ka(v),ue=y&&Z?`${Z}-helper-text`:void 0,U=w&&Z?`${Z}-label`:void 0,ee=cL[_],K=u.jsx(ee,S({"aria-describedby":ue,autoComplete:o,autoFocus:i,defaultValue:c,fullWidth:b,multiline:R,name:E,rows:N,maxRows:k,minRows:P,type:W,value:$,id:Z,inputRef:x,onBlur:j,onChange:T,onFocus:O,placeholder:M,inputProps:g},ce,m));return u.jsxs(dL,S({className:V(X.root,a),disabled:d,error:f,fullWidth:b,ref:n,required:I,color:l,variant:_,ownerState:G},F,{children:[w!=null&&w!==""&&u.jsx(Yu,S({htmlFor:Z,id:U},C,{children:w})),D?u.jsx(Oa,S({"aria-describedby":ue,id:Z,labelId:U,value:$,input:K},z,{children:s})):K,y&&u.jsx(cM,S({id:ue},h,{children:y}))]}))});var Cm={},Gd={};const fL=Pr(hT);var yy;function ge(){return yy||(yy=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=fL}(Gd)),Gd}var pL=de;Object.defineProperty(Cm,"__esModule",{value:!0});var Ki=Cm.default=void 0,hL=pL(ge()),mL=u;Ki=Cm.default=(0,hL.default)((0,mL.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");var wm={},gL=de;Object.defineProperty(wm,"__esModule",{value:!0});var km=wm.default=void 0,vL=gL(ge()),yL=u;km=wm.default=(0,vL.default)((0,yL.jsx)("path",{d:"M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3m5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72z"}),"Mic");var Rm={},xL=de;Object.defineProperty(Rm,"__esModule",{value:!0});var Pm=Rm.default=void 0,bL=xL(ge()),SL=u;Pm=Rm.default=(0,bL.default)((0,SL.jsx)("path",{d:"M19 11h-1.7c0 .74-.16 1.43-.43 2.05l1.23 1.23c.56-.98.9-2.09.9-3.28m-4.02.17c0-.06.02-.11.02-.17V5c0-1.66-1.34-3-3-3S9 3.34 9 5v.18zM4.27 3 3 4.27l6.01 6.01V11c0 1.66 1.33 3 2.99 3 .22 0 .44-.03.65-.08l1.66 1.66c-.71.33-1.5.52-2.31.52-2.76 0-5.3-2.1-5.3-5.1H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c.91-.13 1.77-.45 2.54-.9L19.73 21 21 19.73z"}),"MicOff");var Em={},CL=de;Object.defineProperty(Em,"__esModule",{value:!0});var Xu=Em.default=void 0,wL=CL(ge()),kL=u;Xu=Em.default=(0,wL.default)((0,kL.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"Person");var $m={},RL=de;Object.defineProperty($m,"__esModule",{value:!0});var Sc=$m.default=void 0,PL=RL(ge()),EL=u;Sc=$m.default=(0,PL.default)((0,EL.jsx)("path",{d:"M3 9v6h4l5 5V4L7 9zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02M14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77"}),"VolumeUp");var Tm={},$L=de;Object.defineProperty(Tm,"__esModule",{value:!0});var Cc=Tm.default=void 0,TL=$L(ge()),_L=u;Cc=Tm.default=(0,TL.default)((0,_L.jsx)("path",{d:"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63m2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71M4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9zM12 4 9.91 6.09 12 8.18z"}),"VolumeOff");var _m={},jL=de;Object.defineProperty(_m,"__esModule",{value:!0});var jm=_m.default=void 0,OL=jL(ge()),IL=u;jm=_m.default=(0,OL.default)((0,IL.jsx)("path",{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-1 9h-4v4h-2v-4H9V9h4V5h2v4h4z"}),"LibraryAdd");const gi="/assets/Aria-BMTE8U_Y.jpg",ML=()=>u.jsxs(Ke,{sx:{display:"flex",alignItems:"center",color:"text.secondary"},children:[u.jsx(yr,{src:gi,sx:{width:24,height:24,marginRight:1},alt:"Aria"}),u.jsxs("div",{style:{display:"flex"},children:[u.jsx("div",{style:{animation:"blink 1.4s infinite",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),u.jsx("div",{style:{animation:"blink 1.4s infinite 0.2s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),u.jsx("div",{style:{animation:"blink 1.4s infinite 0.4s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor"}})]})]}),NL=()=>{const{user:e,voiceEnabled:t,setVoiceEnabled:n}=p.useContext(lr),r=e==null?void 0:e.userId,[o,i]=p.useState(null),[s,a]=p.useState(0),[l,c]=p.useState(""),[d,f]=p.useState([]),[h,b]=p.useState(!1),[y,v]=p.useState(null),C=p.useRef([]),[g,m]=p.useState(!1),[x,w]=p.useState(""),[k,P]=p.useState(!1),[R,E]=p.useState(!1),[j,T]=p.useState(""),[O,M]=p.useState("info"),[I,N]=p.useState(null),D=U=>{U.preventDefault(),n(!t)},z=U=>{if(!t||U===I){N(null),window.speechSynthesis.cancel();return}const ee=window.speechSynthesis,K=new SpeechSynthesisUtterance(U),Q=()=>{const he=ee.getVoices();console.log(he.map(fe=>`${fe.name} - ${fe.lang} - ${fe.gender}`));const J=he.find(fe=>fe.name.includes("Microsoft Zira - English (United States)"));J?K.voice=J:console.log("No female voice found"),K.onend=()=>{N(null)},N(U),ee.speak(K)};ee.getVoices().length===0?ee.onvoiceschanged=Q:Q()},W=p.useCallback(async()=>{if(r){m(!0),P(!0);try{const U=await fetch(`/api/ai/mental_health/welcome/${r}`,{method:"POST",headers:{"Content-Type":"application/json"}}),ee=await U.json();console.log(ee),U.ok?(w(ee.message),t&&ee.message&&z(ee.message),i(ee.chat_id),console.log(ee.chat_id)):(console.error("Failed to fetch welcome message:",ee),w("Error fetching welcome message."))}catch(U){console.error("Network or server error:",U)}finally{m(!1),P(!1)}}},[r]);p.useEffect(()=>{W()},[]);const $=(U,ee)=>{ee!=="clickaway"&&E(!1)},_=p.useCallback(async()=>{if(o!==null){m(!0);try{const U=await fetch(`/api/ai/mental_health/finalize/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"}}),ee=await U.json();U.ok?(T("Chat finalized successfully"),M("success"),i(null),a(0),f([]),W()):(T("Failed to finalize chat"),M("error"))}catch{T("Error finalizing chat"),M("error")}finally{m(!1),E(!0)}}},[r,o,W]),F=p.useCallback(async()=>{if(!(!l.trim()||o===void 0)){console.log(o),m(!0);try{const U=JSON.stringify({prompt:l,turn_id:s}),ee=await fetch(`/api/ai/mental_health/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"},body:U}),K=await ee.json();console.log(K),ee.ok?(f(Q=>[...Q,{message:l,sender:"user"},{message:K,sender:"agent"}]),t&&K&&z(K),a(Q=>Q+1),c("")):(console.error("Failed to send message:",K.error||"Unknown error occurred"),T(K.error||"An error occurred while sending the message."),M("error"),E(!0))}catch(U){console.error("Failed to send message:",U),T("Network or server error occurred."),M("error"),E(!0)}finally{m(!1)}}},[l,r,o,s]),G=()=>{navigator.mediaDevices.getUserMedia({audio:!0}).then(U=>{C.current=[];const ee={mimeType:"audio/webm"},K=new MediaRecorder(U,ee);K.ondataavailable=Q=>{console.log("Data available:",Q.data.size),C.current.push(Q.data)},K.start(),v(K),b(!0)}).catch(console.error)},X=()=>{y&&(y.onstop=()=>{ce(C.current),b(!1),v(null)},y.stop())},ce=U=>{console.log("Audio chunks size:",U.reduce((Q,he)=>Q+he.size,0));const ee=new Blob(U,{type:"audio/webm"});if(ee.size===0){console.error("Audio Blob is empty");return}console.log(`Sending audio blob of size: ${ee.size} bytes`);const K=new FormData;K.append("audio",ee),m(!0),ye.post("/api/ai/mental_health/voice-to-text",K,{headers:{"Content-Type":"multipart/form-data"}}).then(Q=>{const{message:he}=Q.data;c(he),F()}).catch(Q=>{console.error("Error uploading audio:",Q),E(!0),T("Error processing voice input: "+Q.message),M("error")}).finally(()=>{m(!1)})},Z=p.useCallback(U=>{const ee=U.target.value;ee.split(/\s+/).length>200?(c(Q=>Q.split(/\s+/).slice(0,200).join(" ")),T("Word limit reached. Only 200 words allowed."),M("warning"),E(!0)):c(ee)},[]),ue=U=>U===I?u.jsx(Cc,{}):u.jsx(Sc,{});return u.jsxs(u.Fragment,{children:[u.jsx("style",{children:` + `),FO)),kn=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:s=!1,size:a=40,style:l,thickness:c=3.6,value:d=0,variant:f="indeterminate"}=r,h=H(r,zO),b=S({},r,{color:i,disableShrink:s,size:a,thickness:c,value:d,variant:f}),y=BO(b),v={},C={},g={};if(f==="determinate"){const m=2*Math.PI*((Nr-c)/2);v.strokeDasharray=m.toFixed(3),g["aria-valuenow"]=Math.round(d),v.strokeDashoffset=`${((100-d)/100*m).toFixed(3)}px`,C.transform="rotate(-90deg)"}return u.jsx(WO,S({className:V(y.root,o),style:S({width:a,height:a},C,l),ownerState:b,ref:n,role:"progressbar"},g,h,{children:u.jsx(UO,{className:y.svg,ownerState:b,viewBox:`${Nr/2} ${Nr/2} ${Nr} ${Nr}`,children:u.jsx(HO,{className:y.circle,style:v,ownerState:b,cx:Nr,cy:Nr,r:(Nr-c)/2,fill:"none",strokeWidth:c})})}))}),K2=X4({createStyledComponent:B("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${A(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>le({props:e,name:"MuiContainer"})}),VO=(e,t)=>S({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),qO=e=>S({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),KO=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,a])=>{var l;r[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(l=a.palette)==null?void 0:l.mode}});let o=S({html:VO(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:S({margin:0},qO(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const i=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return i&&(o=[o,i]),o};function hm(e){const t=le({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return u.jsxs(p.Fragment,{children:[u.jsx(W2,{styles:o=>KO(o,r)}),n]})}function GO(e){return re("MuiModal",e)}oe("MuiModal",["root","hidden","backdrop"]);const YO=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],XO=e=>{const{open:t,exited:n,classes:r}=e;return ie({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},GO,r)},QO=B("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>S({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),JO=B(H2,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),mm=p.forwardRef(function(t,n){var r,o,i,s,a,l;const c=le({name:"MuiModal",props:t}),{BackdropComponent:d=JO,BackdropProps:f,className:h,closeAfterTransition:b=!1,children:y,container:v,component:C,components:g={},componentsProps:m={},disableAutoFocus:x=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:k=!1,disablePortal:P=!1,disableRestoreFocus:R=!1,disableScrollLock:E=!1,hideBackdrop:j=!1,keepMounted:T=!1,onBackdropClick:O,open:M,slotProps:I,slots:N}=c,D=H(c,YO),z=S({},c,{closeAfterTransition:b,disableAutoFocus:x,disableEnforceFocus:w,disableEscapeKeyDown:k,disablePortal:P,disableRestoreFocus:R,disableScrollLock:E,hideBackdrop:j,keepMounted:T}),{getRootProps:W,getBackdropProps:$,getTransitionProps:_,portalRef:F,isTopModal:G,exited:X,hasTransition:ce}=V_(S({},z,{rootRef:n})),Z=S({},z,{exited:X}),ue=XO(Z),U={};if(y.props.tabIndex===void 0&&(U.tabIndex="-1"),ce){const{onEnter:pe,onExited:Se}=_();U.onEnter=pe,U.onExited=Se}const ee=(r=(o=N==null?void 0:N.root)!=null?o:g.Root)!=null?r:QO,K=(i=(s=N==null?void 0:N.backdrop)!=null?s:g.Backdrop)!=null?i:d,Q=(a=I==null?void 0:I.root)!=null?a:m.root,he=(l=I==null?void 0:I.backdrop)!=null?l:m.backdrop,J=en({elementType:ee,externalSlotProps:Q,externalForwardedProps:D,getSlotProps:W,additionalProps:{ref:n,as:C},ownerState:Z,className:V(h,Q==null?void 0:Q.className,ue==null?void 0:ue.root,!Z.open&&Z.exited&&(ue==null?void 0:ue.hidden))}),fe=en({elementType:K,externalSlotProps:he,additionalProps:f,getSlotProps:pe=>$(S({},pe,{onClick:Se=>{O&&O(Se),pe!=null&&pe.onClick&&pe.onClick(Se)}})),className:V(he==null?void 0:he.className,f==null?void 0:f.className,ue==null?void 0:ue.backdrop),ownerState:Z});return!T&&!M&&(!ce||X)?null:u.jsx($2,{ref:F,container:v,disablePortal:P,children:u.jsxs(ee,S({},J,{children:[!j&&d?u.jsx(K,S({},fe)):null,u.jsx(N_,{disableEnforceFocus:w,disableAutoFocus:x,disableRestoreFocus:R,isEnabled:G,open:M,children:p.cloneElement(y,U)})]}))})});function ZO(e){return re("MuiDialog",e)}const Ud=oe("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),G2=p.createContext({}),eI=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],tI=B(H2,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),nI=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,s={root:["root"],container:["container",`scroll${A(n)}`],paper:["paper",`paperScroll${A(n)}`,`paperWidth${A(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return ie(s,ZO,t)},rI=B(mm,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),oI=B("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${A(n.scroll)}`]]}})(({ownerState:e})=>S({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),iI=B(gn,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${A(n.scroll)}`],t[`paperWidth${A(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>S({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Ud.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${Ud.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Ud.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),yp=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiDialog"}),o=io(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,BackdropComponent:l,BackdropProps:c,children:d,className:f,disableEscapeKeyDown:h=!1,fullScreen:b=!1,fullWidth:y=!1,maxWidth:v="sm",onBackdropClick:C,onClick:g,onClose:m,open:x,PaperComponent:w=gn,PaperProps:k={},scroll:P="paper",TransitionComponent:R=U2,transitionDuration:E=i,TransitionProps:j}=r,T=H(r,eI),O=S({},r,{disableEscapeKeyDown:h,fullScreen:b,fullWidth:y,maxWidth:v,scroll:P}),M=nI(O),I=p.useRef(),N=$=>{I.current=$.target===$.currentTarget},D=$=>{g&&g($),I.current&&(I.current=null,C&&C($),m&&m($,"backdropClick"))},z=ka(a),W=p.useMemo(()=>({titleId:z}),[z]);return u.jsx(rI,S({className:V(M.root,f),closeAfterTransition:!0,components:{Backdrop:tI},componentsProps:{backdrop:S({transitionDuration:E,as:l},c)},disableEscapeKeyDown:h,onClose:m,open:x,ref:n,onClick:D,ownerState:O},T,{children:u.jsx(R,S({appear:!0,in:x,timeout:E,role:"presentation"},j,{children:u.jsx(oI,{className:V(M.container),onMouseDown:N,ownerState:O,children:u.jsx(iI,S({as:w,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":z},k,{className:V(M.paper,k.className),ownerState:O,children:u.jsx(G2.Provider,{value:W,children:d})}))})}))}))});function sI(e){return re("MuiDialogActions",e)}oe("MuiDialogActions",["root","spacing"]);const aI=["className","disableSpacing"],lI=e=>{const{classes:t,disableSpacing:n}=e;return ie({root:["root",!n&&"spacing"]},sI,t)},cI=B("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>S({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),xp=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1}=r,s=H(r,aI),a=S({},r,{disableSpacing:i}),l=lI(a);return u.jsx(cI,S({className:V(l.root,o),ownerState:a,ref:n},s))});function uI(e){return re("MuiDialogContent",e)}oe("MuiDialogContent",["root","dividers"]);function dI(e){return re("MuiDialogTitle",e)}const fI=oe("MuiDialogTitle",["root"]),pI=["className","dividers"],hI=e=>{const{classes:t,dividers:n}=e;return ie({root:["root",n&&"dividers"]},uI,t)},mI=B("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>S({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${fI.root} + &`]:{paddingTop:0}})),bp=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,s=H(r,pI),a=S({},r,{dividers:i}),l=hI(a);return u.jsx(mI,S({className:V(l.root,o),ownerState:a,ref:n},s))});function gI(e){return re("MuiDialogContentText",e)}oe("MuiDialogContentText",["root"]);const vI=["children","className"],yI=e=>{const{classes:t}=e,r=ie({root:["root"]},gI,t);return S({},t,r)},xI=B(ye,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Y2=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiDialogContentText"}),{className:o}=r,i=H(r,vI),s=yI(i);return u.jsx(xI,S({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:i,className:V(s.root,o)},r,{classes:s}))}),bI=["className","id"],SI=e=>{const{classes:t}=e;return ie({root:["root"]},dI,t)},CI=B(ye,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Sp=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiDialogTitle"}),{className:o,id:i}=r,s=H(r,bI),a=r,l=SI(a),{titleId:c=i}=p.useContext(G2);return u.jsx(CI,S({component:"h2",className:V(l.root,o),ownerState:a,ref:n,variant:"h6",id:i??c},s))});function wI(e){return re("MuiDivider",e)}const J0=oe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),kI=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],RI=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:s,textAlign:a,variant:l}=e;return ie({root:["root",t&&"absolute",l,i&&"light",s==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",a==="right"&&s!=="vertical"&&"textAlignRight",a==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},wI,r)},PI=B("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>S({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:je(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>S({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>S({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>S({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>S({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),EI=B("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>S({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),ca=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:s,component:a=i?"div":"hr",flexItem:l=!1,light:c=!1,orientation:d="horizontal",role:f=a!=="hr"?"separator":void 0,textAlign:h="center",variant:b="fullWidth"}=r,y=H(r,kI),v=S({},r,{absolute:o,component:a,flexItem:l,light:c,orientation:d,role:f,textAlign:h,variant:b}),C=RI(v);return u.jsx(PI,S({as:a,className:V(C.root,s),role:f,ref:n,ownerState:v},y,{children:i?u.jsx(EI,{className:C.wrapper,ownerState:v,children:i}):null}))});ca.muiSkipListHighlight=!0;const $I=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function TI(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=_n(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const c=i.getComputedStyle(t);s=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let a=0,l=0;if(s&&s!=="none"&&typeof s=="string"){const c=s.split("(")[1].split(")")[0].split(",");a=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?o?`translateX(${o.right+a-r.left}px)`:`translateX(${i.innerWidth+a-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-a}px)`:`translateX(-${r.left+r.width-a}px)`:e==="up"?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function _I(e){return typeof e=="function"?e():e}function ol(e,t,n){const r=_I(n),o=TI(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const jI=p.forwardRef(function(t,n){const r=io(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:l,container:c,direction:d="down",easing:f=o,in:h,onEnter:b,onEntered:y,onEntering:v,onExit:C,onExited:g,onExiting:m,style:x,timeout:w=i,TransitionComponent:k=Qn}=t,P=H(t,$I),R=p.useRef(null),E=Ye(l.ref,R,n),j=$=>_=>{$&&(_===void 0?$(R.current):$(R.current,_))},T=j(($,_)=>{ol(d,$,c),nm($),b&&b($,_)}),O=j(($,_)=>{const F=Pi({timeout:w,style:x,easing:f},{mode:"enter"});$.style.webkitTransition=r.transitions.create("-webkit-transform",S({},F)),$.style.transition=r.transitions.create("transform",S({},F)),$.style.webkitTransform="none",$.style.transform="none",v&&v($,_)}),M=j(y),I=j(m),N=j($=>{const _=Pi({timeout:w,style:x,easing:f},{mode:"exit"});$.style.webkitTransition=r.transitions.create("-webkit-transform",_),$.style.transition=r.transitions.create("transform",_),ol(d,$,c),C&&C($)}),D=j($=>{$.style.webkitTransition="",$.style.transition="",g&&g($)}),z=$=>{s&&s(R.current,$)},W=p.useCallback(()=>{R.current&&ol(d,R.current,c)},[d,c]);return p.useEffect(()=>{if(h||d==="down"||d==="right")return;const $=Hi(()=>{R.current&&ol(d,R.current,c)}),_=_n(R.current);return _.addEventListener("resize",$),()=>{$.clear(),_.removeEventListener("resize",$)}},[d,h,c]),p.useEffect(()=>{h||W()},[h,W]),u.jsx(k,S({nodeRef:R,onEnter:T,onEntered:M,onEntering:O,onExit:N,onExited:D,onExiting:I,addEndListener:z,appear:a,in:h,timeout:w},P,{children:($,_)=>p.cloneElement(l,S({ref:E,style:S({visibility:$==="exited"&&!h?"hidden":void 0},x,l.props.style)},_))}))});function OI(e){return re("MuiDrawer",e)}oe("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const II=["BackdropProps"],MI=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],X2=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},NI=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${A(n)}`,r!=="temporary"&&`paperAnchorDocked${A(n)}`]};return ie(o,OI,t)},LI=B(mm,{name:"MuiDrawer",slot:"Root",overridesResolver:X2})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),Z0=B("div",{shouldForwardProp:Mt,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:X2})({flex:"0 0 auto"}),AI=B(gn,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${A(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${A(n.anchor)}`]]}})(({theme:e,ownerState:t})=>S({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),Q2={left:"right",right:"left",top:"down",bottom:"up"};function zI(e){return["left","right"].indexOf(e)!==-1}function DI({direction:e},t){return e==="rtl"&&zI(t)?Q2[t]:t}const FI=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiDrawer"}),o=io(),i=Pa(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:a="left",BackdropProps:l,children:c,className:d,elevation:f=16,hideBackdrop:h=!1,ModalProps:{BackdropProps:b}={},onClose:y,open:v=!1,PaperProps:C={},SlideProps:g,TransitionComponent:m=jI,transitionDuration:x=s,variant:w="temporary"}=r,k=H(r.ModalProps,II),P=H(r,MI),R=p.useRef(!1);p.useEffect(()=>{R.current=!0},[]);const E=DI({direction:i?"rtl":"ltr"},a),T=S({},r,{anchor:a,elevation:f,open:v,variant:w},P),O=NI(T),M=u.jsx(AI,S({elevation:w==="temporary"?f:0,square:!0},C,{className:V(O.paper,C.className),ownerState:T,children:c}));if(w==="permanent")return u.jsx(Z0,S({className:V(O.root,O.docked,d),ownerState:T,ref:n},P,{children:M}));const I=u.jsx(m,S({in:v,direction:Q2[E],timeout:x,appear:R.current},g,{children:M}));return w==="persistent"?u.jsx(Z0,S({className:V(O.root,O.docked,d),ownerState:T,ref:n},P,{children:I})):u.jsx(LI,S({BackdropProps:S({},l,b,{transitionDuration:x}),className:V(O.root,O.modal,d),open:v,ownerState:T,onClose:y,hideBackdrop:h,ref:n},P,k,{children:I}))}),BI=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],WI=e=>{const{classes:t,disableUnderline:n}=e,o=ie({root:["root",!n&&"underline"],input:["input"]},M3,t);return S({},t,o)},UI=B(Hu,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Wu(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return S({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${co.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${co.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${co.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${co.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${co.disabled}, .${co.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${co.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&S({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),HI=B(Vu,{name:"MuiFilledInput",slot:"Input",overridesResolver:Uu})(({theme:e,ownerState:t})=>S({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),gm=p.forwardRef(function(t,n){var r,o,i,s;const a=le({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:c,fullWidth:d=!1,inputComponent:f="input",multiline:h=!1,slotProps:b,slots:y={},type:v="text"}=a,C=H(a,BI),g=S({},a,{fullWidth:d,inputComponent:f,multiline:h,type:v}),m=WI(a),x={root:{ownerState:g},input:{ownerState:g}},w=b??c?Ft(x,b??c):x,k=(r=(o=y.root)!=null?o:l.Root)!=null?r:UI,P=(i=(s=y.input)!=null?s:l.Input)!=null?i:HI;return u.jsx(dm,S({slots:{root:k,input:P},componentsProps:w,fullWidth:d,inputComponent:f,multiline:h,ref:n,type:v},C,{classes:m}))});gm.muiName="Input";function VI(e){return re("MuiFormControl",e)}oe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const qI=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],KI=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${A(n)}`,r&&"fullWidth"]};return ie(o,VI,t)},GI=B("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,t[`margin${A(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>S({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),Gu=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiFormControl"}),{children:o,className:i,color:s="primary",component:a="div",disabled:l=!1,error:c=!1,focused:d,fullWidth:f=!1,hiddenLabel:h=!1,margin:b="none",required:y=!1,size:v="medium",variant:C="outlined"}=r,g=H(r,qI),m=S({},r,{color:s,component:a,disabled:l,error:c,fullWidth:f,hiddenLabel:h,margin:b,required:y,size:v,variant:C}),x=KI(m),[w,k]=p.useState(()=>{let I=!1;return o&&p.Children.forEach(o,N=>{if(!js(N,["Input","Select"]))return;const D=js(N,["Select"])?N.props.input:N;D&&P3(D.props)&&(I=!0)}),I}),[P,R]=p.useState(()=>{let I=!1;return o&&p.Children.forEach(o,N=>{js(N,["Input","Select"])&&(vc(N.props,!0)||vc(N.props.inputProps,!0))&&(I=!0)}),I}),[E,j]=p.useState(!1);l&&E&&j(!1);const T=d!==void 0&&!l?d:E;let O;const M=p.useMemo(()=>({adornedStart:w,setAdornedStart:k,color:s,disabled:l,error:c,filled:P,focused:T,fullWidth:f,hiddenLabel:h,size:v,onBlur:()=>{j(!1)},onEmpty:()=>{R(!1)},onFilled:()=>{R(!0)},onFocus:()=>{j(!0)},registerEffect:O,required:y,variant:C}),[w,s,l,c,P,T,f,h,O,y,v,C]);return u.jsx(Bu.Provider,{value:M,children:u.jsx(GI,S({as:a,ownerState:m,className:V(x.root,i),ref:n},g,{children:o}))})}),YI=o5({createStyledComponent:B("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>le({props:e,name:"MuiStack"})});function XI(e){return re("MuiFormControlLabel",e)}const bs=oe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),QI=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],JI=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,s={root:["root",n&&"disabled",`labelPlacement${A(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return ie(s,XI,t)},ZI=B("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${bs.label}`]:t.label},t.root,t[`labelPlacement${A(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>S({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${bs.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${bs.label}`]:{[`&.${bs.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),eM=B("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${bs.error}`]:{color:(e.vars||e).palette.error.main}})),vm=p.forwardRef(function(t,n){var r,o;const i=le({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:a={},control:l,disabled:c,disableTypography:d,label:f,labelPlacement:h="end",required:b,slotProps:y={}}=i,v=H(i,QI),C=dr(),g=(r=c??l.props.disabled)!=null?r:C==null?void 0:C.disabled,m=b??l.props.required,x={disabled:g,required:m};["checked","name","onChange","value","inputRef"].forEach(j=>{typeof l.props[j]>"u"&&typeof i[j]<"u"&&(x[j]=i[j])});const w=ao({props:i,muiFormControl:C,states:["error"]}),k=S({},i,{disabled:g,labelPlacement:h,required:m,error:w.error}),P=JI(k),R=(o=y.typography)!=null?o:a.typography;let E=f;return E!=null&&E.type!==ye&&!d&&(E=u.jsx(ye,S({component:"span"},R,{className:V(P.label,R==null?void 0:R.className),children:E}))),u.jsxs(ZI,S({className:V(P.root,s),ownerState:k,ref:n},v,{children:[p.cloneElement(l,x),m?u.jsxs(YI,{display:"block",children:[E,u.jsxs(eM,{ownerState:k,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]}):E]}))});function tM(e){return re("MuiFormGroup",e)}oe("MuiFormGroup",["root","row","error"]);const nM=["className","row"],rM=e=>{const{classes:t,row:n,error:r}=e;return ie({root:["root",n&&"row",r&&"error"]},tM,t)},oM=B("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>S({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),J2=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiFormGroup"}),{className:o,row:i=!1}=r,s=H(r,nM),a=dr(),l=ao({props:r,muiFormControl:a,states:["error"]}),c=S({},r,{row:i,error:l.error}),d=rM(c);return u.jsx(oM,S({className:V(d.root,o),ownerState:c,ref:n},s))});function iM(e){return re("MuiFormHelperText",e)}const ey=oe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var ty;const sM=["children","className","component","disabled","error","filled","focused","margin","required","variant"],aM=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:s,focused:a,required:l}=e,c={root:["root",o&&"disabled",i&&"error",r&&`size${A(r)}`,n&&"contained",a&&"focused",s&&"filled",l&&"required"]};return ie(c,iM,t)},lM=B("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${A(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${ey.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ey.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),cM=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:s="p"}=r,a=H(r,sM),l=dr(),c=ao({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),d=S({},r,{component:s,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=aM(d);return u.jsx(lM,S({as:s,ownerState:d,className:V(f.root,i),ref:n},a,{children:o===" "?ty||(ty=u.jsx("span",{className:"notranslate",children:"​"})):o}))});function uM(e){return re("MuiFormLabel",e)}const Ns=oe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),dM=["children","className","color","component","disabled","error","filled","focused","required"],fM=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:s,required:a}=e,l={root:["root",`color${A(n)}`,o&&"disabled",i&&"error",s&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]};return ie(l,uM,t)},pM=B("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Ns.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Ns.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ns.error}`]:{color:(e.vars||e).palette.error.main}})),hM=B("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Ns.error}`]:{color:(e.vars||e).palette.error.main}})),mM=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:s="label"}=r,a=H(r,dM),l=dr(),c=ao({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),d=S({},r,{color:c.color||"primary",component:s,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=fM(d);return u.jsxs(pM,S({as:s,ownerState:d,className:V(f.root,i),ref:n},a,{children:[o,c.required&&u.jsxs(hM,{ownerState:d,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),gM=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Cp(e){return`scale(${e}, ${e**2})`}const vM={entering:{opacity:1,transform:Cp(1)},entered:{opacity:1,transform:"none"}},Hd=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ua=p.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:s,in:a,onEnter:l,onEntered:c,onEntering:d,onExit:f,onExited:h,onExiting:b,style:y,timeout:v="auto",TransitionComponent:C=Qn}=t,g=H(t,gM),m=xo(),x=p.useRef(),w=io(),k=p.useRef(null),P=Ye(k,i.ref,n),R=D=>z=>{if(D){const W=k.current;z===void 0?D(W):D(W,z)}},E=R(d),j=R((D,z)=>{nm(D);const{duration:W,delay:$,easing:_}=Pi({style:y,timeout:v,easing:s},{mode:"enter"});let F;v==="auto"?(F=w.transitions.getAutoHeightDuration(D.clientHeight),x.current=F):F=W,D.style.transition=[w.transitions.create("opacity",{duration:F,delay:$}),w.transitions.create("transform",{duration:Hd?F:F*.666,delay:$,easing:_})].join(","),l&&l(D,z)}),T=R(c),O=R(b),M=R(D=>{const{duration:z,delay:W,easing:$}=Pi({style:y,timeout:v,easing:s},{mode:"exit"});let _;v==="auto"?(_=w.transitions.getAutoHeightDuration(D.clientHeight),x.current=_):_=z,D.style.transition=[w.transitions.create("opacity",{duration:_,delay:W}),w.transitions.create("transform",{duration:Hd?_:_*.666,delay:Hd?W:W||_*.333,easing:$})].join(","),D.style.opacity=0,D.style.transform=Cp(.75),f&&f(D)}),I=R(h),N=D=>{v==="auto"&&m.start(x.current||0,D),r&&r(k.current,D)};return u.jsx(C,S({appear:o,in:a,nodeRef:k,onEnter:j,onEntered:T,onEntering:E,onExit:M,onExited:I,onExiting:O,addEndListener:N,timeout:v==="auto"?null:v},g,{children:(D,z)=>p.cloneElement(i,S({style:S({opacity:0,transform:Cp(.75),visibility:D==="exited"&&!a?"hidden":void 0},vM[D],y,i.props.style),ref:P},z))}))});ua.muiSupportAuto=!0;const yM=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],xM=e=>{const{classes:t,disableUnderline:n}=e,o=ie({root:["root",!n&&"underline"],input:["input"]},O3,t);return S({},t,o)},bM=B(Hu,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Wu(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),S({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${cs.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${cs.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${cs.disabled}, .${cs.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${cs.disabled}:before`]:{borderBottomStyle:"dotted"}})}),SM=B(Vu,{name:"MuiInput",slot:"Input",overridesResolver:Uu})({}),ym=p.forwardRef(function(t,n){var r,o,i,s;const a=le({props:t,name:"MuiInput"}),{disableUnderline:l,components:c={},componentsProps:d,fullWidth:f=!1,inputComponent:h="input",multiline:b=!1,slotProps:y,slots:v={},type:C="text"}=a,g=H(a,yM),m=xM(a),w={root:{ownerState:{disableUnderline:l}}},k=y??d?Ft(y??d,w):w,P=(r=(o=v.root)!=null?o:c.Root)!=null?r:bM,R=(i=(s=v.input)!=null?s:c.Input)!=null?i:SM;return u.jsx(dm,S({slots:{root:P,input:R},slotProps:k,fullWidth:f,inputComponent:h,multiline:b,ref:n,type:C},g,{classes:m}))});ym.muiName="Input";function CM(e){return re("MuiInputAdornment",e)}const ny=oe("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var ry;const wM=["children","className","component","disablePointerEvents","disableTypography","position","variant"],kM=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${A(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},RM=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:s}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${A(o)}`,s,r&&"hiddenLabel",i&&`size${A(i)}`]};return ie(a,CM,t)},PM=B("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:kM})(({theme:e,ownerState:t})=>S({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${ny.positionStart}&:not(.${ny.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),yc=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:s="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:d}=r,f=H(r,wM),h=dr()||{};let b=d;d&&h.variant,h&&!b&&(b=h.variant);const y=S({},r,{hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:a,position:c,variant:b}),v=RM(y);return u.jsx(Bu.Provider,{value:null,children:u.jsx(PM,S({as:s,ownerState:y,className:V(v.root,i),ref:n},f,{children:typeof o=="string"&&!l?u.jsx(ye,{color:"text.secondary",children:o}):u.jsxs(p.Fragment,{children:[c==="start"?ry||(ry=u.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})});function EM(e){return re("MuiInputLabel",e)}oe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const $M=["disableAnimation","margin","shrink","variant","className"],TM=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:s,required:a}=e,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${A(r)}`,s],asterisk:[a&&"asterisk"]},c=ie(l,EM,t);return S({},t,c)},_M=B(mM,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ns.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>S({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&S({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&S({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&S({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Yu=p.forwardRef(function(t,n){const r=le({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:s}=r,a=H(r,$M),l=dr();let c=i;typeof c>"u"&&l&&(c=l.filled||l.focused||l.adornedStart);const d=ao({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),f=S({},r,{disableAnimation:o,formControl:l,shrink:c,size:d.size,variant:d.variant,required:d.required,focused:d.focused}),h=TM(f);return u.jsx(_M,S({"data-shrink":c,ownerState:f,ref:n,className:V(h.root,s)},a,{classes:h}))}),ar=p.createContext({});function jM(e){return re("MuiList",e)}oe("MuiList",["root","padding","dense","subheader"]);const OM=["children","className","component","dense","disablePadding","subheader"],IM=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return ie({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},jM,t)},MM=B("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>S({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),ja=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:a=!1,disablePadding:l=!1,subheader:c}=r,d=H(r,OM),f=p.useMemo(()=>({dense:a}),[a]),h=S({},r,{component:s,dense:a,disablePadding:l}),b=IM(h);return u.jsx(ar.Provider,{value:f,children:u.jsxs(MM,S({as:s,className:V(b.root,i),ref:n,ownerState:h},d,{children:[c,o]}))})});function NM(e){return re("MuiListItem",e)}const Go=oe("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),LM=oe("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function AM(e){return re("MuiListItemSecondaryAction",e)}oe("MuiListItemSecondaryAction",["root","disableGutters"]);const zM=["className"],DM=e=>{const{disableGutters:t,classes:n}=e;return ie({root:["root",t&&"disableGutters"]},AM,n)},FM=B("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>S({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),Z2=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=H(r,zM),s=p.useContext(ar),a=S({},r,{disableGutters:s.disableGutters}),l=DM(a);return u.jsx(FM,S({className:V(l.root,o),ownerState:a,ref:n},i))});Z2.muiName="ListItemSecondaryAction";const BM=["className"],WM=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],UM=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},HM=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:s,disablePadding:a,divider:l,hasSecondaryAction:c,selected:d}=e;return ie({root:["root",o&&"dense",!s&&"gutters",!a&&"padding",l&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction",d&&"selected"],container:["container"]},NM,r)},VM=B("div",{name:"MuiListItem",slot:"Root",overridesResolver:UM})(({theme:e,ownerState:t})=>S({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&S({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${LM.root}`]:{paddingRight:48}},{[`&.${Go.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Go.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:je(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Go.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:je(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Go.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Go.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:je(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:je(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),qM=B("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),xc=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:s=!1,children:a,className:l,component:c,components:d={},componentsProps:f={},ContainerComponent:h="li",ContainerProps:{className:b}={},dense:y=!1,disabled:v=!1,disableGutters:C=!1,disablePadding:g=!1,divider:m=!1,focusVisibleClassName:x,secondaryAction:w,selected:k=!1,slotProps:P={},slots:R={}}=r,E=H(r.ContainerProps,BM),j=H(r,WM),T=p.useContext(ar),O=p.useMemo(()=>({dense:y||T.dense||!1,alignItems:o,disableGutters:C}),[o,T.dense,y,C]),M=p.useRef(null);dn(()=>{i&&M.current&&M.current.focus()},[i]);const I=p.Children.toArray(a),N=I.length&&js(I[I.length-1],["ListItemSecondaryAction"]),D=S({},r,{alignItems:o,autoFocus:i,button:s,dense:O.dense,disabled:v,disableGutters:C,disablePadding:g,divider:m,hasSecondaryAction:N,selected:k}),z=HM(D),W=Ye(M,n),$=R.root||d.Root||VM,_=P.root||f.root||{},F=S({className:V(z.root,_.className,l),disabled:v},j);let G=c||"li";return s&&(F.component=c||"div",F.focusVisibleClassName=V(Go.focusVisible,x),G=kr),N?(G=!F.component&&!c?"div":G,h==="li"&&(G==="li"?G="div":F.component==="li"&&(F.component="div")),u.jsx(ar.Provider,{value:O,children:u.jsxs(qM,S({as:h,className:V(z.container,b),ref:W,ownerState:D},E,{children:[u.jsx($,S({},_,!Ei($)&&{as:G,ownerState:S({},D,_.ownerState)},F,{children:I})),I.pop()]}))})):u.jsx(ar.Provider,{value:O,children:u.jsxs($,S({},_,{as:G,ref:W},!Ei($)&&{ownerState:S({},D,_.ownerState)},F,{children:[I,w&&u.jsx(Z2,{children:w})]}))})});function KM(e){return re("MuiListItemAvatar",e)}oe("MuiListItemAvatar",["root","alignItemsFlexStart"]);const GM=["className"],YM=e=>{const{alignItems:t,classes:n}=e;return ie({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},KM,n)},XM=B("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>S({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),QM=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiListItemAvatar"}),{className:o}=r,i=H(r,GM),s=p.useContext(ar),a=S({},r,{alignItems:s.alignItems}),l=YM(a);return u.jsx(XM,S({className:V(l.root,o),ownerState:a,ref:n},i))});function JM(e){return re("MuiListItemIcon",e)}const oy=oe("MuiListItemIcon",["root","alignItemsFlexStart"]),ZM=["className"],eN=e=>{const{alignItems:t,classes:n}=e;return ie({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},JM,n)},tN=B("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>S({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),iy=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiListItemIcon"}),{className:o}=r,i=H(r,ZM),s=p.useContext(ar),a=S({},r,{alignItems:s.alignItems}),l=eN(a);return u.jsx(tN,S({className:V(l.root,o),ownerState:a,ref:n},i))});function nN(e){return re("MuiListItemText",e)}const bc=oe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),rN=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],oN=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return ie({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},nN,t)},iN=B("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${bc.primary}`]:t.primary},{[`& .${bc.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>S({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),da=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:s=!1,inset:a=!1,primary:l,primaryTypographyProps:c,secondary:d,secondaryTypographyProps:f}=r,h=H(r,rN),{dense:b}=p.useContext(ar);let y=l??o,v=d;const C=S({},r,{disableTypography:s,inset:a,primary:!!y,secondary:!!v,dense:b}),g=oN(C);return y!=null&&y.type!==ye&&!s&&(y=u.jsx(ye,S({variant:b?"body2":"body1",className:g.primary,component:c!=null&&c.variant?void 0:"span",display:"block"},c,{children:y}))),v!=null&&v.type!==ye&&!s&&(v=u.jsx(ye,S({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},f,{children:v}))),u.jsxs(iN,S({className:V(g.root,i),ownerState:C,ref:n},h,{children:[y,v]}))}),sN=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Vd(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function sy(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function eS(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function us(e,t,n,r,o,i){let s=!1,a=o(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const l=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!eS(a,i)||l)a=o(e,a,n);else return a.focus(),!0}return!1}const aN=p.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:s,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:d,variant:f="selectedMenu"}=t,h=H(t,sN),b=p.useRef(null),y=p.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});dn(()=>{o&&b.current.focus()},[o]),p.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,{direction:w})=>{const k=!b.current.style.width;if(x.clientHeight{const w=b.current,k=x.key,P=ft(w).activeElement;if(k==="ArrowDown")x.preventDefault(),us(w,P,c,l,Vd);else if(k==="ArrowUp")x.preventDefault(),us(w,P,c,l,sy);else if(k==="Home")x.preventDefault(),us(w,null,c,l,Vd);else if(k==="End")x.preventDefault(),us(w,null,c,l,sy);else if(k.length===1){const R=y.current,E=k.toLowerCase(),j=performance.now();R.keys.length>0&&(j-R.lastTime>500?(R.keys=[],R.repeating=!0,R.previousKeyMatched=!0):R.repeating&&E!==R.keys[0]&&(R.repeating=!1)),R.lastTime=j,R.keys.push(E);const T=P&&!R.repeating&&eS(P,R);R.previousKeyMatched&&(T||us(w,P,!1,l,Vd,R))?x.preventDefault():R.previousKeyMatched=!1}d&&d(x)},C=Ye(b,n);let g=-1;p.Children.forEach(s,(x,w)=>{if(!p.isValidElement(x)){g===w&&(g+=1,g>=s.length&&(g=-1));return}x.props.disabled||(f==="selectedMenu"&&x.props.selected||g===-1)&&(g=w),g===w&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(g+=1,g>=s.length&&(g=-1))});const m=p.Children.map(s,(x,w)=>{if(w===g){const k={};return i&&(k.autoFocus=!0),x.props.tabIndex===void 0&&f==="selectedMenu"&&(k.tabIndex=0),p.cloneElement(x,k)}return x});return u.jsx(ja,S({role:"menu",ref:C,className:a,onKeyDown:v,tabIndex:o?0:-1},h,{children:m}))});function lN(e){return re("MuiPopover",e)}oe("MuiPopover",["root","paper"]);const cN=["onEntering"],uN=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],dN=["slotProps"];function ay(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function ly(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function cy(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function qd(e){return typeof e=="function"?e():e}const fN=e=>{const{classes:t}=e;return ie({root:["root"],paper:["paper"]},lN,t)},pN=B(mm,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),tS=B(gn,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),hN=p.forwardRef(function(t,n){var r,o,i;const s=le({props:t,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:f="anchorEl",children:h,className:b,container:y,elevation:v=8,marginThreshold:C=16,open:g,PaperProps:m={},slots:x,slotProps:w,transformOrigin:k={vertical:"top",horizontal:"left"},TransitionComponent:P=ua,transitionDuration:R="auto",TransitionProps:{onEntering:E}={},disableScrollLock:j=!1}=s,T=H(s.TransitionProps,cN),O=H(s,uN),M=(r=w==null?void 0:w.paper)!=null?r:m,I=p.useRef(),N=Ye(I,M.ref),D=S({},s,{anchorOrigin:c,anchorReference:f,elevation:v,marginThreshold:C,externalPaperSlotProps:M,transformOrigin:k,TransitionComponent:P,transitionDuration:R,TransitionProps:T}),z=fN(D),W=p.useCallback(()=>{if(f==="anchorPosition")return d;const pe=qd(l),xe=(pe&&pe.nodeType===1?pe:ft(I.current).body).getBoundingClientRect();return{top:xe.top+ay(xe,c.vertical),left:xe.left+ly(xe,c.horizontal)}},[l,c.horizontal,c.vertical,d,f]),$=p.useCallback(pe=>({vertical:ay(pe,k.vertical),horizontal:ly(pe,k.horizontal)}),[k.horizontal,k.vertical]),_=p.useCallback(pe=>{const Se={width:pe.offsetWidth,height:pe.offsetHeight},xe=$(Se);if(f==="none")return{top:null,left:null,transformOrigin:cy(xe)};const Ct=W();let Fe=Ct.top-xe.vertical,ze=Ct.left-xe.horizontal;const pt=Fe+Se.height,Me=ze+Se.width,ke=_n(qd(l)),ct=ke.innerHeight-C,He=ke.innerWidth-C;if(C!==null&&Fect){const Ee=pt-ct;Fe-=Ee,xe.vertical+=Ee}if(C!==null&&zeHe){const Ee=Me-He;ze-=Ee,xe.horizontal+=Ee}return{top:`${Math.round(Fe)}px`,left:`${Math.round(ze)}px`,transformOrigin:cy(xe)}},[l,f,W,$,C]),[F,G]=p.useState(g),X=p.useCallback(()=>{const pe=I.current;if(!pe)return;const Se=_(pe);Se.top!==null&&(pe.style.top=Se.top),Se.left!==null&&(pe.style.left=Se.left),pe.style.transformOrigin=Se.transformOrigin,G(!0)},[_]);p.useEffect(()=>(j&&window.addEventListener("scroll",X),()=>window.removeEventListener("scroll",X)),[l,j,X]);const ce=(pe,Se)=>{E&&E(pe,Se),X()},Z=()=>{G(!1)};p.useEffect(()=>{g&&X()}),p.useImperativeHandle(a,()=>g?{updatePosition:()=>{X()}}:null,[g,X]),p.useEffect(()=>{if(!g)return;const pe=Hi(()=>{X()}),Se=_n(l);return Se.addEventListener("resize",pe),()=>{pe.clear(),Se.removeEventListener("resize",pe)}},[l,g,X]);let ue=R;R==="auto"&&!P.muiSupportAuto&&(ue=void 0);const U=y||(l?ft(qd(l)).body:void 0),ee=(o=x==null?void 0:x.root)!=null?o:pN,K=(i=x==null?void 0:x.paper)!=null?i:tS,Q=en({elementType:K,externalSlotProps:S({},M,{style:F?M.style:S({},M.style,{opacity:0})}),additionalProps:{elevation:v,ref:N},ownerState:D,className:V(z.paper,M==null?void 0:M.className)}),he=en({elementType:ee,externalSlotProps:(w==null?void 0:w.root)||{},externalForwardedProps:O,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:U,open:g},ownerState:D,className:V(z.root,b)}),{slotProps:J}=he,fe=H(he,dN);return u.jsx(ee,S({},fe,!Ei(ee)&&{slotProps:J,disableScrollLock:j},{children:u.jsx(P,S({appear:!0,in:g,onEntering:ce,onExited:Z,timeout:ue},T,{children:u.jsx(K,S({},Q,{children:h}))}))}))});function mN(e){return re("MuiMenu",e)}oe("MuiMenu",["root","paper","list"]);const gN=["onEntering"],vN=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],yN={vertical:"top",horizontal:"right"},xN={vertical:"top",horizontal:"left"},bN=e=>{const{classes:t}=e;return ie({root:["root"],paper:["paper"],list:["list"]},mN,t)},SN=B(hN,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),CN=B(tS,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),wN=B(aN,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),nS=p.forwardRef(function(t,n){var r,o;const i=le({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:a,className:l,disableAutoFocusItem:c=!1,MenuListProps:d={},onClose:f,open:h,PaperProps:b={},PopoverClasses:y,transitionDuration:v="auto",TransitionProps:{onEntering:C}={},variant:g="selectedMenu",slots:m={},slotProps:x={}}=i,w=H(i.TransitionProps,gN),k=H(i,vN),P=Pa(),R=S({},i,{autoFocus:s,disableAutoFocusItem:c,MenuListProps:d,onEntering:C,PaperProps:b,transitionDuration:v,TransitionProps:w,variant:g}),E=bN(R),j=s&&!c&&h,T=p.useRef(null),O=($,_)=>{T.current&&T.current.adjustStyleForScrollbar($,{direction:P?"rtl":"ltr"}),C&&C($,_)},M=$=>{$.key==="Tab"&&($.preventDefault(),f&&f($,"tabKeyDown"))};let I=-1;p.Children.map(a,($,_)=>{p.isValidElement($)&&($.props.disabled||(g==="selectedMenu"&&$.props.selected||I===-1)&&(I=_))});const N=(r=m.paper)!=null?r:CN,D=(o=x.paper)!=null?o:b,z=en({elementType:m.root,externalSlotProps:x.root,ownerState:R,className:[E.root,l]}),W=en({elementType:N,externalSlotProps:D,ownerState:R,className:E.paper});return u.jsx(SN,S({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:P?"right":"left"},transformOrigin:P?yN:xN,slots:{paper:N,root:m.root},slotProps:{root:z,paper:W},open:h,ref:n,transitionDuration:v,TransitionProps:S({onEntering:O},w),ownerState:R},k,{classes:y,children:u.jsx(wN,S({onKeyDown:M,actions:T,autoFocus:s&&(I===-1||c),autoFocusItem:j,variant:g},d,{className:V(E.list,d.className),children:a}))}))});function kN(e){return re("MuiMenuItem",e)}const ds=oe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),RN=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],PN=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},EN=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:s}=e,l=ie({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},kN,s);return S({},s,l)},$N=B(kr,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:PN})(({theme:e,ownerState:t})=>S({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ds.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:je(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ds.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:je(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ds.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:je(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:je(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ds.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ds.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${J0.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${J0.inset}`]:{marginLeft:52},[`& .${bc.root}`]:{marginTop:0,marginBottom:0},[`& .${bc.inset}`]:{paddingLeft:36},[`& .${oy.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&S({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${oy.root} svg`]:{fontSize:"1.25rem"}}))),Un=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:s=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:c,role:d="menuitem",tabIndex:f,className:h}=r,b=H(r,RN),y=p.useContext(ar),v=p.useMemo(()=>({dense:s||y.dense||!1,disableGutters:l}),[y.dense,s,l]),C=p.useRef(null);dn(()=>{o&&C.current&&C.current.focus()},[o]);const g=S({},r,{dense:v.dense,divider:a,disableGutters:l}),m=EN(r),x=Ye(C,n);let w;return r.disabled||(w=f!==void 0?f:-1),u.jsx(ar.Provider,{value:v,children:u.jsx($N,S({ref:x,role:d,tabIndex:w,component:i,focusVisibleClassName:V(m.focusVisible,c),className:V(m.root,h)},b,{ownerState:g,classes:m}))})});function TN(e){return re("MuiNativeSelect",e)}const xm=oe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),_N=["className","disabled","error","IconComponent","inputRef","variant"],jN=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${A(n)}`,i&&"iconOpen",r&&"disabled"]};return ie(a,TN,t)},rS=({ownerState:e,theme:t})=>S({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":S({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${xm.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),ON=B("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Mt,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${xm.multiple}`]:t.multiple}]}})(rS),oS=({ownerState:e,theme:t})=>S({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${xm.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),IN=B("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${A(n.variant)}`],n.open&&t.iconOpen]}})(oS),MN=p.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:s,inputRef:a,variant:l="standard"}=t,c=H(t,_N),d=S({},t,{disabled:o,variant:l,error:i}),f=jN(d);return u.jsxs(p.Fragment,{children:[u.jsx(ON,S({ownerState:d,className:V(f.select,r),disabled:o,ref:a||n},c)),t.multiple?null:u.jsx(IN,{as:s,ownerState:d,className:f.icon})]})});var uy;const NN=["children","classes","className","label","notched"],LN=B("fieldset",{shouldForwardProp:Mt})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),AN=B("legend",{shouldForwardProp:Mt})(({ownerState:e,theme:t})=>S({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&S({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function zN(e){const{className:t,label:n,notched:r}=e,o=H(e,NN),i=n!=null&&n!=="",s=S({},e,{notched:r,withLabel:i});return u.jsx(LN,S({"aria-hidden":!0,className:t,ownerState:s},o,{children:u.jsx(AN,{ownerState:s,children:i?u.jsx("span",{children:n}):uy||(uy=u.jsx("span",{className:"notranslate",children:"​"}))})}))}const DN=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],FN=e=>{const{classes:t}=e,r=ie({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},I3,t);return S({},t,r)},BN=B(Hu,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Wu})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return S({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ir.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ir.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Ir.focused} .${Ir.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Ir.error} .${Ir.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ir.disabled} .${Ir.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&S({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),WN=B(zN,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),UN=B(Vu,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Uu})(({theme:e,ownerState:t})=>S({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),bm=p.forwardRef(function(t,n){var r,o,i,s,a;const l=le({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:d=!1,inputComponent:f="input",label:h,multiline:b=!1,notched:y,slots:v={},type:C="text"}=l,g=H(l,DN),m=FN(l),x=dr(),w=ao({props:l,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),k=S({},l,{color:w.color||"primary",disabled:w.disabled,error:w.error,focused:w.focused,formControl:x,fullWidth:d,hiddenLabel:w.hiddenLabel,multiline:b,size:w.size,type:C}),P=(r=(o=v.root)!=null?o:c.Root)!=null?r:BN,R=(i=(s=v.input)!=null?s:c.Input)!=null?i:UN;return u.jsx(dm,S({slots:{root:P,input:R},renderSuffix:E=>u.jsx(WN,{ownerState:k,className:m.notchedOutline,label:h!=null&&h!==""&&w.required?a||(a=u.jsxs(p.Fragment,{children:[h," ","*"]})):h,notched:typeof y<"u"?y:!!(E.startAdornment||E.filled||E.focused)}),fullWidth:d,inputComponent:f,multiline:b,ref:n,type:C},g,{classes:S({},m,{notchedOutline:null})}))});bm.muiName="Input";function HN(e){return re("MuiSelect",e)}const fs=oe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var dy;const VN=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],qN=B("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${fs.select}`]:t.select},{[`&.${fs.select}`]:t[n.variant]},{[`&.${fs.error}`]:t.error},{[`&.${fs.multiple}`]:t.multiple}]}})(rS,{[`&.${fs.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),KN=B("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${A(n.variant)}`],n.open&&t.iconOpen]}})(oS),GN=B("input",{shouldForwardProp:e=>S2(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function fy(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function YN(e){return e==null||typeof e=="string"&&!e.trim()}const XN=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${A(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return ie(a,HN,t)},QN=p.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":i,autoFocus:s,autoWidth:a,children:l,className:c,defaultOpen:d,defaultValue:f,disabled:h,displayEmpty:b,error:y=!1,IconComponent:v,inputRef:C,labelId:g,MenuProps:m={},multiple:x,name:w,onBlur:k,onChange:P,onClose:R,onFocus:E,onOpen:j,open:T,readOnly:O,renderValue:M,SelectDisplayProps:I={},tabIndex:N,value:D,variant:z="standard"}=t,W=H(t,VN),[$,_]=sa({controlled:D,default:f,name:"Select"}),[F,G]=sa({controlled:T,default:d,name:"Select"}),X=p.useRef(null),ce=p.useRef(null),[Z,ue]=p.useState(null),{current:U}=p.useRef(T!=null),[ee,K]=p.useState(),Q=Ye(n,C),he=p.useCallback(ae=>{ce.current=ae,ae&&ue(ae)},[]),J=Z==null?void 0:Z.parentNode;p.useImperativeHandle(Q,()=>({focus:()=>{ce.current.focus()},node:X.current,value:$}),[$]),p.useEffect(()=>{d&&F&&Z&&!U&&(K(a?null:J.clientWidth),ce.current.focus())},[Z,a]),p.useEffect(()=>{s&&ce.current.focus()},[s]),p.useEffect(()=>{if(!g)return;const ae=ft(ce.current).getElementById(g);if(ae){const Te=()=>{getSelection().isCollapsed&&ce.current.focus()};return ae.addEventListener("click",Te),()=>{ae.removeEventListener("click",Te)}}},[g]);const fe=(ae,Te)=>{ae?j&&j(Te):R&&R(Te),U||(K(a?null:J.clientWidth),G(ae))},pe=ae=>{ae.button===0&&(ae.preventDefault(),ce.current.focus(),fe(!0,ae))},Se=ae=>{fe(!1,ae)},xe=p.Children.toArray(l),Ct=ae=>{const Te=xe.find(Y=>Y.props.value===ae.target.value);Te!==void 0&&(_(Te.props.value),P&&P(ae,Te))},Fe=ae=>Te=>{let Y;if(Te.currentTarget.hasAttribute("tabindex")){if(x){Y=Array.isArray($)?$.slice():[];const ne=$.indexOf(ae.props.value);ne===-1?Y.push(ae.props.value):Y.splice(ne,1)}else Y=ae.props.value;if(ae.props.onClick&&ae.props.onClick(Te),$!==Y&&(_(Y),P)){const ne=Te.nativeEvent||Te,Ce=new ne.constructor(ne.type,ne);Object.defineProperty(Ce,"target",{writable:!0,value:{value:Y,name:w}}),P(Ce,ae)}x||fe(!1,Te)}},ze=ae=>{O||[" ","ArrowUp","ArrowDown","Enter"].indexOf(ae.key)!==-1&&(ae.preventDefault(),fe(!0,ae))},pt=Z!==null&&F,Me=ae=>{!pt&&k&&(Object.defineProperty(ae,"target",{writable:!0,value:{value:$,name:w}}),k(ae))};delete W["aria-invalid"];let ke,ct;const He=[];let Ee=!1;(vc({value:$})||b)&&(M?ke=M($):Ee=!0);const ht=xe.map(ae=>{if(!p.isValidElement(ae))return null;let Te;if(x){if(!Array.isArray($))throw new Error(jo(2));Te=$.some(Y=>fy(Y,ae.props.value)),Te&&Ee&&He.push(ae.props.children)}else Te=fy($,ae.props.value),Te&&Ee&&(ct=ae.props.children);return p.cloneElement(ae,{"aria-selected":Te?"true":"false",onClick:Fe(ae),onKeyUp:Y=>{Y.key===" "&&Y.preventDefault(),ae.props.onKeyUp&&ae.props.onKeyUp(Y)},role:"option",selected:Te,value:void 0,"data-value":ae.props.value})});Ee&&(x?He.length===0?ke=null:ke=He.reduce((ae,Te,Y)=>(ae.push(Te),Y{const{classes:t}=e;return t},Sm={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Mt(e)&&e!=="variant",slot:"Root"},t6=B(ym,Sm)(""),n6=B(bm,Sm)(""),r6=B(gm,Sm)(""),Oa=p.forwardRef(function(t,n){const r=le({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:s={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:d=N3,id:f,input:h,inputProps:b,label:y,labelId:v,MenuProps:C,multiple:g=!1,native:m=!1,onClose:x,onOpen:w,open:k,renderValue:P,SelectDisplayProps:R,variant:E="outlined"}=r,j=H(r,JN),T=m?MN:QN,O=dr(),M=ao({props:r,muiFormControl:O,states:["variant","error"]}),I=M.variant||E,N=S({},r,{variant:I,classes:s}),D=e6(N),z=H(D,ZN),W=h||{standard:u.jsx(t6,{ownerState:N}),outlined:u.jsx(n6,{label:y,ownerState:N}),filled:u.jsx(r6,{ownerState:N})}[I],$=Ye(n,W.ref);return u.jsx(p.Fragment,{children:p.cloneElement(W,S({inputComponent:T,inputProps:S({children:i,error:M.error,IconComponent:d,variant:I,type:void 0,multiple:g},m?{id:f}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:v,MenuProps:C,onClose:x,onOpen:w,open:k,renderValue:P,SelectDisplayProps:S({id:f},R)},b,{classes:b?Ft(z,b.classes):z},h?h.props.inputProps:{})},(g&&m||c)&&I==="outlined"?{notched:!0}:{},{ref:$,className:V(W.props.className,a,D.root)},!h&&{variant:I},j))})});Oa.muiName="Select";function o6(e){return re("MuiSnackbarContent",e)}oe("MuiSnackbarContent",["root","message","action"]);const i6=["action","className","message","role"],s6=e=>{const{classes:t}=e;return ie({root:["root"],action:["action"],message:["message"]},o6,t)},a6=B(gn,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=l5(e.palette.background.default,t);return S({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),l6=B("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),c6=B("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),u6=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiSnackbarContent"}),{action:o,className:i,message:s,role:a="alert"}=r,l=H(r,i6),c=r,d=s6(c);return u.jsxs(a6,S({role:a,square:!0,elevation:6,className:V(d.root,i),ownerState:c,ref:n},l,{children:[u.jsx(l6,{className:d.message,ownerState:c,children:s}),o?u.jsx(c6,{className:d.action,ownerState:c,children:o}):null]}))});function d6(e){return re("MuiSnackbar",e)}oe("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const f6=["onEnter","onExited"],p6=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],h6=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${A(n.vertical)}${A(n.horizontal)}`]};return ie(r,d6,t)},py=B("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${A(n.anchorOrigin.vertical)}${A(n.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const n={left:"50%",right:"auto",transform:"translateX(-50%)"};return S({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:S({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&n,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),lo=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiSnackbar"}),o=io(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:a,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:d,className:f,ClickAwayListenerProps:h,ContentProps:b,disableWindowBlurListener:y=!1,message:v,open:C,TransitionComponent:g=ua,transitionDuration:m=i,TransitionProps:{onEnter:x,onExited:w}={}}=r,k=H(r.TransitionProps,f6),P=H(r,p6),R=S({},r,{anchorOrigin:{vertical:a,horizontal:l},autoHideDuration:c,disableWindowBlurListener:y,TransitionComponent:g,transitionDuration:m}),E=h6(R),{getRootProps:j,onClickAway:T}=a3(S({},R)),[O,M]=p.useState(!0),I=en({elementType:py,getSlotProps:j,externalForwardedProps:P,ownerState:R,additionalProps:{ref:n},className:[E.root,f]}),N=z=>{M(!0),w&&w(z)},D=(z,W)=>{M(!1),x&&x(z,W)};return!C&&O?null:u.jsx($_,S({onClickAway:T},h,{children:u.jsx(py,S({},I,{children:u.jsx(g,S({appear:!0,in:C,timeout:m,direction:a==="top"?"down":"up",onEnter:D,onExited:N},k,{children:d||u.jsx(u6,S({message:v,action:s},b))}))}))}))});function m6(e){return re("MuiTooltip",e)}const Ur=oe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),g6=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function v6(e){return Math.round(e*1e5)/1e5}const y6=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${A(i.split("-")[0])}`],arrow:["arrow"]};return ie(s,m6,t)},x6=B(B2,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>S({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Ur.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Ur.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Ur.arrow}`]:S({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Ur.arrow}`]:S({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),b6=B("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${A(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>S({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:je(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${v6(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Ur.popper}[data-popper-placement*="left"] &`]:S({transformOrigin:"right center"},t.isRtl?S({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):S({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Ur.popper}[data-popper-placement*="right"] &`]:S({transformOrigin:"left center"},t.isRtl?S({marginRight:"14px"},t.touch&&{marginRight:"24px"}):S({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Ur.popper}[data-popper-placement*="top"] &`]:S({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Ur.popper}[data-popper-placement*="bottom"] &`]:S({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),S6=B("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:je(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let il=!1;const hy=new Ra;let ps={x:0,y:0};function sl(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Hn=p.forwardRef(function(t,n){var r,o,i,s,a,l,c,d,f,h,b,y,v,C,g,m,x,w,k;const P=le({props:t,name:"MuiTooltip"}),{arrow:R=!1,children:E,components:j={},componentsProps:T={},describeChild:O=!1,disableFocusListener:M=!1,disableHoverListener:I=!1,disableInteractive:N=!1,disableTouchListener:D=!1,enterDelay:z=100,enterNextDelay:W=0,enterTouchDelay:$=700,followCursor:_=!1,id:F,leaveDelay:G=0,leaveTouchDelay:X=1500,onClose:ce,onOpen:Z,open:ue,placement:U="bottom",PopperComponent:ee,PopperProps:K={},slotProps:Q={},slots:he={},title:J,TransitionComponent:fe=ua,TransitionProps:pe}=P,Se=H(P,g6),xe=p.isValidElement(E)?E:u.jsx("span",{children:E}),Ct=io(),Fe=Pa(),[ze,pt]=p.useState(),[Me,ke]=p.useState(null),ct=p.useRef(!1),He=N||_,Ee=xo(),ht=xo(),yt=xo(),wt=xo(),[Re,se]=sa({controlled:ue,default:!1,name:"Tooltip",state:"open"});let tt=Re;const Ut=ka(F),tn=p.useRef(),ae=zt(()=>{tn.current!==void 0&&(document.body.style.WebkitUserSelect=tn.current,tn.current=void 0),wt.clear()});p.useEffect(()=>ae,[ae]);const Te=we=>{hy.clear(),il=!0,se(!0),Z&&!tt&&Z(we)},Y=zt(we=>{hy.start(800+G,()=>{il=!1}),se(!1),ce&&tt&&ce(we),Ee.start(Ct.transitions.duration.shortest,()=>{ct.current=!1})}),ne=we=>{ct.current&&we.type!=="touchstart"||(ze&&ze.removeAttribute("title"),ht.clear(),yt.clear(),z||il&&W?ht.start(il?W:z,()=>{Te(we)}):Te(we))},Ce=we=>{ht.clear(),yt.start(G,()=>{Y(we)})},{isFocusVisibleRef:Pe,onBlur:nt,onFocus:kt,ref:vn}=Kh(),[,_r]=p.useState(!1),An=we=>{nt(we),Pe.current===!1&&(_r(!1),Ce(we))},zo=we=>{ze||pt(we.currentTarget),kt(we),Pe.current===!0&&(_r(!0),ne(we))},gg=we=>{ct.current=!0;const nn=xe.props;nn.onTouchStart&&nn.onTouchStart(we)},zS=we=>{gg(we),yt.clear(),Ee.clear(),ae(),tn.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",wt.start($,()=>{document.body.style.WebkitUserSelect=tn.current,ne(we)})},DS=we=>{xe.props.onTouchEnd&&xe.props.onTouchEnd(we),ae(),yt.start(X,()=>{Y(we)})};p.useEffect(()=>{if(!tt)return;function we(nn){(nn.key==="Escape"||nn.key==="Esc")&&Y(nn)}return document.addEventListener("keydown",we),()=>{document.removeEventListener("keydown",we)}},[Y,tt]);const FS=Ye(xe.ref,vn,pt,n);!J&&J!==0&&(tt=!1);const Qu=p.useRef(),BS=we=>{const nn=xe.props;nn.onMouseMove&&nn.onMouseMove(we),ps={x:we.clientX,y:we.clientY},Qu.current&&Qu.current.update()},Gi={},Ju=typeof J=="string";O?(Gi.title=!tt&&Ju&&!I?J:null,Gi["aria-describedby"]=tt?Ut:null):(Gi["aria-label"]=Ju?J:null,Gi["aria-labelledby"]=tt&&!Ju?Ut:null);const zn=S({},Gi,Se,xe.props,{className:V(Se.className,xe.props.className),onTouchStart:gg,ref:FS},_?{onMouseMove:BS}:{}),Yi={};D||(zn.onTouchStart=zS,zn.onTouchEnd=DS),I||(zn.onMouseOver=sl(ne,zn.onMouseOver),zn.onMouseLeave=sl(Ce,zn.onMouseLeave),He||(Yi.onMouseOver=ne,Yi.onMouseLeave=Ce)),M||(zn.onFocus=sl(zo,zn.onFocus),zn.onBlur=sl(An,zn.onBlur),He||(Yi.onFocus=zo,Yi.onBlur=An));const WS=p.useMemo(()=>{var we;let nn=[{name:"arrow",enabled:!!Me,options:{element:Me,padding:4}}];return(we=K.popperOptions)!=null&&we.modifiers&&(nn=nn.concat(K.popperOptions.modifiers)),S({},K.popperOptions,{modifiers:nn})},[Me,K]),Xi=S({},P,{isRtl:Fe,arrow:R,disableInteractive:He,placement:U,PopperComponentProp:ee,touch:ct.current}),Zu=y6(Xi),vg=(r=(o=he.popper)!=null?o:j.Popper)!=null?r:x6,yg=(i=(s=(a=he.transition)!=null?a:j.Transition)!=null?s:fe)!=null?i:ua,xg=(l=(c=he.tooltip)!=null?c:j.Tooltip)!=null?l:b6,bg=(d=(f=he.arrow)!=null?f:j.Arrow)!=null?d:S6,US=ai(vg,S({},K,(h=Q.popper)!=null?h:T.popper,{className:V(Zu.popper,K==null?void 0:K.className,(b=(y=Q.popper)!=null?y:T.popper)==null?void 0:b.className)}),Xi),HS=ai(yg,S({},pe,(v=Q.transition)!=null?v:T.transition),Xi),VS=ai(xg,S({},(C=Q.tooltip)!=null?C:T.tooltip,{className:V(Zu.tooltip,(g=(m=Q.tooltip)!=null?m:T.tooltip)==null?void 0:g.className)}),Xi),qS=ai(bg,S({},(x=Q.arrow)!=null?x:T.arrow,{className:V(Zu.arrow,(w=(k=Q.arrow)!=null?k:T.arrow)==null?void 0:w.className)}),Xi);return u.jsxs(p.Fragment,{children:[p.cloneElement(xe,zn),u.jsx(vg,S({as:ee??B2,placement:U,anchorEl:_?{getBoundingClientRect:()=>({top:ps.y,left:ps.x,right:ps.x,bottom:ps.y,width:0,height:0})}:ze,popperRef:Qu,open:ze?tt:!1,id:Ut,transition:!0},Yi,US,{popperOptions:WS,children:({TransitionProps:we})=>u.jsx(yg,S({timeout:Ct.transitions.duration.shorter},we,HS,{children:u.jsxs(xg,S({},VS,{children:[J,R?u.jsx(bg,S({},qS,{ref:ke})):null]}))}))}))]})});function C6(e){return re("MuiSwitch",e)}const Lt=oe("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),w6=["className","color","edge","size","sx"],k6=zu(),R6=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:s}=e,a={root:["root",n&&`edge${A(n)}`,`size${A(r)}`],switchBase:["switchBase",`color${A(o)}`,i&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=ie(a,C6,t);return S({},t,l)},P6=B("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${A(n.edge)}`],t[`size${A(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Lt.thumb}`]:{width:16,height:16},[`& .${Lt.switchBase}`]:{padding:4,[`&.${Lt.checked}`]:{transform:"translateX(16px)"}}}}]}),E6=B(q2,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Lt.input}`]:t.input},n.color!=="default"&&t[`color${A(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Lt.checked}`]:{transform:"translateX(20px)"},[`&.${Lt.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Lt.checked} + .${Lt.track}`]:{opacity:.5},[`&.${Lt.disabled} + .${Lt.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Lt.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:je(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${Lt.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:je(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Lt.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?fc(e.palette[t].main,.62):dc(e.palette[t].main,.55)}`}},[`&.${Lt.checked} + .${Lt.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),$6=B("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),T6=B("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),_6=p.forwardRef(function(t,n){const r=k6({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:s=!1,size:a="medium",sx:l}=r,c=H(r,w6),d=S({},r,{color:i,edge:s,size:a}),f=R6(d),h=u.jsx(T6,{className:f.thumb,ownerState:d});return u.jsxs(P6,{className:V(f.root,o),sx:l,ownerState:d,children:[u.jsx(E6,S({type:"checkbox",icon:h,checkedIcon:h,ref:n,ownerState:d},c,{classes:S({},f,{root:f.switchBase})})),u.jsx($6,{className:f.track,ownerState:d})]})});function j6(e){return re("MuiTab",e)}const uo=oe("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),O6=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],I6=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:s,selected:a,disabled:l}=e,c={root:["root",i&&s&&"labelIcon",`textColor${A(n)}`,r&&"fullWidth",o&&"wrapped",a&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return ie(c,j6,t)},M6=B(kr,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${A(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>S({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${uo.iconWrapper}`]:S({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${uo.selected}`]:{opacity:1},[`&.${uo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${uo.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${uo.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${uo.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${uo.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),jl=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:s=!1,fullWidth:a,icon:l,iconPosition:c="top",indicator:d,label:f,onChange:h,onClick:b,onFocus:y,selected:v,selectionFollowsFocus:C,textColor:g="inherit",value:m,wrapped:x=!1}=r,w=H(r,O6),k=S({},r,{disabled:i,disableFocusRipple:s,selected:v,icon:!!l,iconPosition:c,label:!!f,fullWidth:a,textColor:g,wrapped:x}),P=I6(k),R=l&&f&&p.isValidElement(l)?p.cloneElement(l,{className:V(P.iconWrapper,l.props.className)}):l,E=T=>{!v&&h&&h(T,m),b&&b(T)},j=T=>{C&&!v&&h&&h(T,m),y&&y(T)};return u.jsxs(M6,S({focusRipple:!s,className:V(P.root,o),ref:n,role:"tab","aria-selected":v,disabled:i,onClick:E,onFocus:j,ownerState:k,tabIndex:v?0:-1},w,{children:[c==="top"||c==="start"?u.jsxs(p.Fragment,{children:[R,f]}):u.jsxs(p.Fragment,{children:[f,R]}),d]}))});function N6(e){return re("MuiToolbar",e)}oe("MuiToolbar",["root","gutters","regular","dense"]);const L6=["className","component","disableGutters","variant"],A6=e=>{const{classes:t,disableGutters:n,variant:r}=e;return ie({root:["root",!n&&"gutters",r]},N6,t)},z6=B("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>S({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),D6=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:s=!1,variant:a="regular"}=r,l=H(r,L6),c=S({},r,{component:i,disableGutters:s,variant:a}),d=A6(c);return u.jsx(z6,S({as:i,className:V(d.root,o),ref:n,ownerState:c},l))}),F6=Nt(u.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),B6=Nt(u.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function W6(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function U6(e,t,n,r={},o=()=>{}){const{ease:i=W6,duration:s=300}=r;let a=null;const l=t[e];let c=!1;const d=()=>{c=!0},f=h=>{if(c){o(new Error("Animation cancelled"));return}a===null&&(a=h);const b=Math.min(1,(h-a)/s);if(t[e]=i(b)*(n-l)+l,b>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(f)};return l===n?(o(new Error("Element already at target position")),d):(requestAnimationFrame(f),d)}const H6=["onChange"],V6={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function q6(e){const{onChange:t}=e,n=H(e,H6),r=p.useRef(),o=p.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return dn(()=>{const s=Hi(()=>{const l=r.current;i(),l!==r.current&&t(r.current)}),a=_n(o.current);return a.addEventListener("resize",s),()=>{s.clear(),a.removeEventListener("resize",s)}},[t]),p.useEffect(()=>{i(),t(r.current)},[t]),u.jsx("div",S({style:V6,ref:o},n))}function K6(e){return re("MuiTabScrollButton",e)}const G6=oe("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Y6=["className","slots","slotProps","direction","orientation","disabled"],X6=e=>{const{classes:t,orientation:n,disabled:r}=e;return ie({root:["root",n,r&&"disabled"]},K6,t)},Q6=B(kr,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>S({width:40,flexShrink:0,opacity:.8,[`&.${G6.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),J6=p.forwardRef(function(t,n){var r,o;const i=le({props:t,name:"MuiTabScrollButton"}),{className:s,slots:a={},slotProps:l={},direction:c}=i,d=H(i,Y6),f=Pa(),h=S({isRtl:f},i),b=X6(h),y=(r=a.StartScrollButtonIcon)!=null?r:F6,v=(o=a.EndScrollButtonIcon)!=null?o:B6,C=en({elementType:y,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),g=en({elementType:v,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return u.jsx(Q6,S({component:"div",className:V(b.root,s),ref:n,role:null,ownerState:h,tabIndex:null},d,{children:c==="left"?u.jsx(y,S({},C)):u.jsx(v,S({},g))}))});function Z6(e){return re("MuiTabs",e)}const Kd=oe("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),eL=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],my=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,gy=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,al=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const i=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||i)o=n(e,o);else{o.focus();return}}},tL=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:s,scrollButtonsHideMobile:a,classes:l}=e;return ie({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},Z6,l)},nL=B("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Kd.scrollButtons}`]:t.scrollButtons},{[`& .${Kd.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>S({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Kd.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),rL=B("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>S({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),oL=B("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>S({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),iL=B("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>S({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),sL=B(q6)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),vy={},iS=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiTabs"}),o=io(),i=Pa(),{"aria-label":s,"aria-labelledby":a,action:l,centered:c=!1,children:d,className:f,component:h="div",allowScrollButtonsMobile:b=!1,indicatorColor:y="primary",onChange:v,orientation:C="horizontal",ScrollButtonComponent:g=J6,scrollButtons:m="auto",selectionFollowsFocus:x,slots:w={},slotProps:k={},TabIndicatorProps:P={},TabScrollButtonProps:R={},textColor:E="primary",value:j,variant:T="standard",visibleScrollbar:O=!1}=r,M=H(r,eL),I=T==="scrollable",N=C==="vertical",D=N?"scrollTop":"scrollLeft",z=N?"top":"left",W=N?"bottom":"right",$=N?"clientHeight":"clientWidth",_=N?"height":"width",F=S({},r,{component:h,allowScrollButtonsMobile:b,indicatorColor:y,orientation:C,vertical:N,scrollButtons:m,textColor:E,variant:T,visibleScrollbar:O,fixed:!I,hideScrollbar:I&&!O,scrollableX:I&&!N,scrollableY:I&&N,centered:c&&!I,scrollButtonsHideMobile:!b}),G=tL(F),X=en({elementType:w.StartScrollButtonIcon,externalSlotProps:k.startScrollButtonIcon,ownerState:F}),ce=en({elementType:w.EndScrollButtonIcon,externalSlotProps:k.endScrollButtonIcon,ownerState:F}),[Z,ue]=p.useState(!1),[U,ee]=p.useState(vy),[K,Q]=p.useState(!1),[he,J]=p.useState(!1),[fe,pe]=p.useState(!1),[Se,xe]=p.useState({overflow:"hidden",scrollbarWidth:0}),Ct=new Map,Fe=p.useRef(null),ze=p.useRef(null),pt=()=>{const Y=Fe.current;let ne;if(Y){const Pe=Y.getBoundingClientRect();ne={clientWidth:Y.clientWidth,scrollLeft:Y.scrollLeft,scrollTop:Y.scrollTop,scrollLeftNormalized:A4(Y,i?"rtl":"ltr"),scrollWidth:Y.scrollWidth,top:Pe.top,bottom:Pe.bottom,left:Pe.left,right:Pe.right}}let Ce;if(Y&&j!==!1){const Pe=ze.current.children;if(Pe.length>0){const nt=Pe[Ct.get(j)];Ce=nt?nt.getBoundingClientRect():null}}return{tabsMeta:ne,tabMeta:Ce}},Me=zt(()=>{const{tabsMeta:Y,tabMeta:ne}=pt();let Ce=0,Pe;if(N)Pe="top",ne&&Y&&(Ce=ne.top-Y.top+Y.scrollTop);else if(Pe=i?"right":"left",ne&&Y){const kt=i?Y.scrollLeftNormalized+Y.clientWidth-Y.scrollWidth:Y.scrollLeft;Ce=(i?-1:1)*(ne[Pe]-Y[Pe]+kt)}const nt={[Pe]:Ce,[_]:ne?ne[_]:0};if(isNaN(U[Pe])||isNaN(U[_]))ee(nt);else{const kt=Math.abs(U[Pe]-nt[Pe]),vn=Math.abs(U[_]-nt[_]);(kt>=1||vn>=1)&&ee(nt)}}),ke=(Y,{animation:ne=!0}={})=>{ne?U6(D,Fe.current,Y,{duration:o.transitions.duration.standard}):Fe.current[D]=Y},ct=Y=>{let ne=Fe.current[D];N?ne+=Y:(ne+=Y*(i?-1:1),ne*=i&&a2()==="reverse"?-1:1),ke(ne)},He=()=>{const Y=Fe.current[$];let ne=0;const Ce=Array.from(ze.current.children);for(let Pe=0;PeY){Pe===0&&(ne=Y);break}ne+=nt[$]}return ne},Ee=()=>{ct(-1*He())},ht=()=>{ct(He())},yt=p.useCallback(Y=>{xe({overflow:null,scrollbarWidth:Y})},[]),wt=()=>{const Y={};Y.scrollbarSizeListener=I?u.jsx(sL,{onChange:yt,className:V(G.scrollableX,G.hideScrollbar)}):null;const Ce=I&&(m==="auto"&&(K||he)||m===!0);return Y.scrollButtonStart=Ce?u.jsx(g,S({slots:{StartScrollButtonIcon:w.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:X},orientation:C,direction:i?"right":"left",onClick:Ee,disabled:!K},R,{className:V(G.scrollButtons,R.className)})):null,Y.scrollButtonEnd=Ce?u.jsx(g,S({slots:{EndScrollButtonIcon:w.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:ce},orientation:C,direction:i?"left":"right",onClick:ht,disabled:!he},R,{className:V(G.scrollButtons,R.className)})):null,Y},Re=zt(Y=>{const{tabsMeta:ne,tabMeta:Ce}=pt();if(!(!Ce||!ne)){if(Ce[z]ne[W]){const Pe=ne[D]+(Ce[W]-ne[W]);ke(Pe,{animation:Y})}}}),se=zt(()=>{I&&m!==!1&&pe(!fe)});p.useEffect(()=>{const Y=Hi(()=>{Fe.current&&Me()});let ne;const Ce=kt=>{kt.forEach(vn=>{vn.removedNodes.forEach(_r=>{var An;(An=ne)==null||An.unobserve(_r)}),vn.addedNodes.forEach(_r=>{var An;(An=ne)==null||An.observe(_r)})}),Y(),se()},Pe=_n(Fe.current);Pe.addEventListener("resize",Y);let nt;return typeof ResizeObserver<"u"&&(ne=new ResizeObserver(Y),Array.from(ze.current.children).forEach(kt=>{ne.observe(kt)})),typeof MutationObserver<"u"&&(nt=new MutationObserver(Ce),nt.observe(ze.current,{childList:!0})),()=>{var kt,vn;Y.clear(),Pe.removeEventListener("resize",Y),(kt=nt)==null||kt.disconnect(),(vn=ne)==null||vn.disconnect()}},[Me,se]),p.useEffect(()=>{const Y=Array.from(ze.current.children),ne=Y.length;if(typeof IntersectionObserver<"u"&&ne>0&&I&&m!==!1){const Ce=Y[0],Pe=Y[ne-1],nt={root:Fe.current,threshold:.99},kt=zo=>{Q(!zo[0].isIntersecting)},vn=new IntersectionObserver(kt,nt);vn.observe(Ce);const _r=zo=>{J(!zo[0].isIntersecting)},An=new IntersectionObserver(_r,nt);return An.observe(Pe),()=>{vn.disconnect(),An.disconnect()}}},[I,m,fe,d==null?void 0:d.length]),p.useEffect(()=>{ue(!0)},[]),p.useEffect(()=>{Me()}),p.useEffect(()=>{Re(vy!==U)},[Re,U]),p.useImperativeHandle(l,()=>({updateIndicator:Me,updateScrollButtons:se}),[Me,se]);const tt=u.jsx(iL,S({},P,{className:V(G.indicator,P.className),ownerState:F,style:S({},U,P.style)}));let Ut=0;const tn=p.Children.map(d,Y=>{if(!p.isValidElement(Y))return null;const ne=Y.props.value===void 0?Ut:Y.props.value;Ct.set(ne,Ut);const Ce=ne===j;return Ut+=1,p.cloneElement(Y,S({fullWidth:T==="fullWidth",indicator:Ce&&!Z&&tt,selected:Ce,selectionFollowsFocus:x,onChange:v,textColor:E,value:ne},Ut===1&&j===!1&&!Y.props.tabIndex?{tabIndex:0}:{}))}),ae=Y=>{const ne=ze.current,Ce=ft(ne).activeElement;if(Ce.getAttribute("role")!=="tab")return;let nt=C==="horizontal"?"ArrowLeft":"ArrowUp",kt=C==="horizontal"?"ArrowRight":"ArrowDown";switch(C==="horizontal"&&i&&(nt="ArrowRight",kt="ArrowLeft"),Y.key){case nt:Y.preventDefault(),al(ne,Ce,gy);break;case kt:Y.preventDefault(),al(ne,Ce,my);break;case"Home":Y.preventDefault(),al(ne,null,my);break;case"End":Y.preventDefault(),al(ne,null,gy);break}},Te=wt();return u.jsxs(nL,S({className:V(G.root,f),ownerState:F,ref:n,as:h},M,{children:[Te.scrollButtonStart,Te.scrollbarSizeListener,u.jsxs(rL,{className:G.scroller,ownerState:F,style:{overflow:Se.overflow,[N?`margin${i?"Left":"Right"}`:"marginBottom"]:O?void 0:-Se.scrollbarWidth},ref:Fe,children:[u.jsx(oL,{"aria-label":s,"aria-labelledby":a,"aria-orientation":C==="vertical"?"vertical":null,className:G.flexContainer,ownerState:F,onKeyDown:ae,ref:ze,role:"tablist",children:tn}),Z&&tt]}),Te.scrollButtonEnd]}))});function aL(e){return re("MuiTextField",e)}oe("MuiTextField",["root"]);const lL=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],cL={standard:ym,filled:gm,outlined:bm},uL=e=>{const{classes:t}=e;return ie({root:["root"]},aL,t)},dL=B(Gu,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),qe=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:s,className:a,color:l="primary",defaultValue:c,disabled:d=!1,error:f=!1,FormHelperTextProps:h,fullWidth:b=!1,helperText:y,id:v,InputLabelProps:C,inputProps:g,InputProps:m,inputRef:x,label:w,maxRows:k,minRows:P,multiline:R=!1,name:E,onBlur:j,onChange:T,onFocus:O,placeholder:M,required:I=!1,rows:N,select:D=!1,SelectProps:z,type:W,value:$,variant:_="outlined"}=r,F=H(r,lL),G=S({},r,{autoFocus:i,color:l,disabled:d,error:f,fullWidth:b,multiline:R,required:I,select:D,variant:_}),X=uL(G),ce={};_==="outlined"&&(C&&typeof C.shrink<"u"&&(ce.notched=C.shrink),ce.label=w),D&&((!z||!z.native)&&(ce.id=void 0),ce["aria-describedby"]=void 0);const Z=ka(v),ue=y&&Z?`${Z}-helper-text`:void 0,U=w&&Z?`${Z}-label`:void 0,ee=cL[_],K=u.jsx(ee,S({"aria-describedby":ue,autoComplete:o,autoFocus:i,defaultValue:c,fullWidth:b,multiline:R,name:E,rows:N,maxRows:k,minRows:P,type:W,value:$,id:Z,inputRef:x,onBlur:j,onChange:T,onFocus:O,placeholder:M,inputProps:g},ce,m));return u.jsxs(dL,S({className:V(X.root,a),disabled:d,error:f,fullWidth:b,ref:n,required:I,color:l,variant:_,ownerState:G},F,{children:[w!=null&&w!==""&&u.jsx(Yu,S({htmlFor:Z,id:U},C,{children:w})),D?u.jsx(Oa,S({"aria-describedby":ue,id:Z,labelId:U,value:$,input:K},z,{children:s})):K,y&&u.jsx(cM,S({id:ue},h,{children:y}))]}))});var Cm={},Gd={};const fL=Pr(hT);var yy;function ge(){return yy||(yy=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=fL}(Gd)),Gd}var pL=de;Object.defineProperty(Cm,"__esModule",{value:!0});var Ki=Cm.default=void 0,hL=pL(ge()),mL=u;Ki=Cm.default=(0,hL.default)((0,mL.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");var wm={},gL=de;Object.defineProperty(wm,"__esModule",{value:!0});var km=wm.default=void 0,vL=gL(ge()),yL=u;km=wm.default=(0,vL.default)((0,yL.jsx)("path",{d:"M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3m5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72z"}),"Mic");var Rm={},xL=de;Object.defineProperty(Rm,"__esModule",{value:!0});var Pm=Rm.default=void 0,bL=xL(ge()),SL=u;Pm=Rm.default=(0,bL.default)((0,SL.jsx)("path",{d:"M19 11h-1.7c0 .74-.16 1.43-.43 2.05l1.23 1.23c.56-.98.9-2.09.9-3.28m-4.02.17c0-.06.02-.11.02-.17V5c0-1.66-1.34-3-3-3S9 3.34 9 5v.18zM4.27 3 3 4.27l6.01 6.01V11c0 1.66 1.33 3 2.99 3 .22 0 .44-.03.65-.08l1.66 1.66c-.71.33-1.5.52-2.31.52-2.76 0-5.3-2.1-5.3-5.1H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c.91-.13 1.77-.45 2.54-.9L19.73 21 21 19.73z"}),"MicOff");var Em={},CL=de;Object.defineProperty(Em,"__esModule",{value:!0});var Xu=Em.default=void 0,wL=CL(ge()),kL=u;Xu=Em.default=(0,wL.default)((0,kL.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"Person");var $m={},RL=de;Object.defineProperty($m,"__esModule",{value:!0});var Sc=$m.default=void 0,PL=RL(ge()),EL=u;Sc=$m.default=(0,PL.default)((0,EL.jsx)("path",{d:"M3 9v6h4l5 5V4L7 9zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02M14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77"}),"VolumeUp");var Tm={},$L=de;Object.defineProperty(Tm,"__esModule",{value:!0});var Cc=Tm.default=void 0,TL=$L(ge()),_L=u;Cc=Tm.default=(0,TL.default)((0,_L.jsx)("path",{d:"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63m2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71M4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9zM12 4 9.91 6.09 12 8.18z"}),"VolumeOff");var _m={},jL=de;Object.defineProperty(_m,"__esModule",{value:!0});var jm=_m.default=void 0,OL=jL(ge()),IL=u;jm=_m.default=(0,OL.default)((0,IL.jsx)("path",{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-1 9h-4v4h-2v-4H9V9h4V5h2v4h4z"}),"LibraryAdd");const gi="/assets/Aria-BMTE8U_Y.jpg",ML=()=>u.jsxs(Ke,{sx:{display:"flex",alignItems:"center",color:"text.secondary"},children:[u.jsx(yr,{src:gi,sx:{width:24,height:24,marginRight:1},alt:"Aria"}),u.jsxs("div",{style:{display:"flex"},children:[u.jsx("div",{style:{animation:"blink 1.4s infinite",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),u.jsx("div",{style:{animation:"blink 1.4s infinite 0.2s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),u.jsx("div",{style:{animation:"blink 1.4s infinite 0.4s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor"}})]})]}),NL=()=>{const{user:e,voiceEnabled:t,setVoiceEnabled:n}=p.useContext(lr),r=e==null?void 0:e.userId,[o,i]=p.useState(null),[s,a]=p.useState(0),[l,c]=p.useState(""),[d,f]=p.useState([]),[h,b]=p.useState(!1),[y,v]=p.useState(null),C=p.useRef([]),[g,m]=p.useState(!1),[x,w]=p.useState(""),[k,P]=p.useState(!1),[R,E]=p.useState(!1),[j,T]=p.useState(""),[O,M]=p.useState("info"),[I,N]=p.useState(null),D=U=>{U.preventDefault(),n(!t)},z=U=>{if(!t||U===I){N(null),window.speechSynthesis.cancel();return}const ee=window.speechSynthesis,K=new SpeechSynthesisUtterance(U),Q=()=>{const he=ee.getVoices();console.log(he.map(fe=>`${fe.name} - ${fe.lang} - ${fe.gender}`));const J=he.find(fe=>fe.name.includes("Microsoft Zira - English (United States)"));J?K.voice=J:console.log("No female voice found"),K.onend=()=>{N(null)},N(U),ee.speak(K)};ee.getVoices().length===0?ee.onvoiceschanged=Q:Q()},W=p.useCallback(async()=>{if(r){m(!0),P(!0);try{const U=await fetch(`/api/ai/mental_health/welcome/${r}`,{method:"POST",headers:{"Content-Type":"application/json"}}),ee=await U.json();console.log(ee),U.ok?(w(ee.message),t&&ee.message&&z(ee.message),i(ee.chat_id),console.log(ee.chat_id)):(console.error("Failed to fetch welcome message:",ee),w("Error fetching welcome message."))}catch(U){console.error("Network or server error:",U)}finally{m(!1),P(!1)}}},[r]);p.useEffect(()=>{W()},[]);const $=(U,ee)=>{ee!=="clickaway"&&E(!1)},_=p.useCallback(async()=>{if(o!==null){m(!0);try{const U=await fetch(`/api/ai/mental_health/finalize/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"}}),ee=await U.json();U.ok?(T("Chat finalized successfully"),M("success"),i(null),a(0),f([]),W()):(T("Failed to finalize chat"),M("error"))}catch{T("Error finalizing chat"),M("error")}finally{m(!1),E(!0)}}},[r,o,W]),F=p.useCallback(async()=>{if(!(!l.trim()||o===void 0)){console.log(o),m(!0);try{const U=JSON.stringify({prompt:l,turn_id:s}),ee=await fetch(`/api/ai/mental_health/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"},body:U}),K=await ee.json();console.log(K),ee.ok?(f(Q=>[...Q,{message:l,sender:"user"},{message:K,sender:"agent"}]),t&&K&&z(K),a(Q=>Q+1),c("")):(console.error("Failed to send message:",K.error||"Unknown error occurred"),T(K.error||"An error occurred while sending the message."),M("error"),E(!0))}catch(U){console.error("Failed to send message:",U),T("Network or server error occurred."),M("error"),E(!0)}finally{m(!1)}}},[l,r,o,s]),G=()=>{navigator.mediaDevices.getUserMedia({audio:!0}).then(U=>{C.current=[];const ee={mimeType:"audio/webm"},K=new MediaRecorder(U,ee);K.ondataavailable=Q=>{console.log("Data available:",Q.data.size),C.current.push(Q.data)},K.start(),v(K),b(!0)}).catch(console.error)},X=()=>{y&&(y.onstop=()=>{ce(C.current),b(!1),v(null)},y.stop())},ce=U=>{console.log("Audio chunks size:",U.reduce((Q,he)=>Q+he.size,0));const ee=new Blob(U,{type:"audio/webm"});if(ee.size===0){console.error("Audio Blob is empty");return}console.log(`Sending audio blob of size: ${ee.size} bytes`);const K=new FormData;K.append("audio",ee),m(!0),ve.post("/api/ai/mental_health/voice-to-text",K,{headers:{"Content-Type":"multipart/form-data"}}).then(Q=>{const{message:he}=Q.data;c(he),F()}).catch(Q=>{console.error("Error uploading audio:",Q),E(!0),T("Error processing voice input: "+Q.message),M("error")}).finally(()=>{m(!1)})},Z=p.useCallback(U=>{const ee=U.target.value;ee.split(/\s+/).length>200?(c(Q=>Q.split(/\s+/).slice(0,200).join(" ")),T("Word limit reached. Only 200 words allowed."),M("warning"),E(!0)):c(ee)},[]),ue=U=>U===I?u.jsx(Cc,{}):u.jsx(Sc,{});return u.jsxs(u.Fragment,{children:[u.jsx("style",{children:` @keyframes blink { 0%, 100% { opacity: 0; } 50% { opacity: 1; } @@ -207,7 +207,7 @@ Error generating stack: `+i.message+` font-size: 0.8rem; /* Smaller font size */ } } - `}),u.jsxs(Ke,{sx:{maxWidth:"100%",mx:"auto",my:2,display:"flex",flexDirection:"column",height:"91vh",borderRadius:2,boxShadow:1},children:[u.jsxs(qu,{sx:{display:"flex",flexDirection:"column",height:"100%",borderRadius:2,boxShadow:3},children:[u.jsxs(fm,{sx:{flexGrow:1,overflow:"auto",padding:3,position:"relative"},children:[u.jsxs(Ke,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",position:"relative",marginBottom:"5px"},children:[u.jsx(Hn,{title:"Toggle voice responses",children:u.jsx(Qe,{color:"inherit",onClick:D,sx:{padding:0},children:u.jsx(_6,{checked:t,onChange:U=>n(U.target.checked),icon:u.jsx(Cc,{}),checkedIcon:u.jsx(Sc,{}),inputProps:{"aria-label":"Voice response toggle"},color:"default",sx:{height:42,"& .MuiSwitch-switchBase":{padding:"9px"},"& .MuiSwitch-switchBase.Mui-checked":{color:"white",transform:"translateX(16px)","& + .MuiSwitch-track":{backgroundColor:"primary.main"}}}})})}),u.jsx(Hn,{title:"Start a new chat",placement:"top",arrow:!0,children:u.jsx(Qe,{"aria-label":"new chat",color:"primary",onClick:_,disabled:g,sx:{"&:hover":{backgroundColor:"primary.main",color:"common.white"}},children:u.jsx(jm,{})})})]}),u.jsx(ca,{sx:{marginBottom:"10px"}}),x.length===0&&u.jsxs(Ke,{sx:{display:"flex",marginBottom:2,marginTop:3},children:[u.jsx(yr,{src:gi,sx:{width:44,height:44,marginRight:2},alt:"Aria"}),u.jsx(ve,{variant:"h4",component:"h1",gutterBottom:!0,children:"Welcome to Mental Health Companion"})]}),k?u.jsx(ML,{}):d.length===0&&u.jsxs(Ke,{sx:{display:"flex"},children:[u.jsx(yr,{src:gi,sx:{width:36,height:36,marginRight:1},alt:"Aria"}),u.jsxs(ve,{variant:"body1",gutterBottom:!0,sx:{bgcolor:"grey.200",borderRadius:"16px",px:2,py:1,display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap"},children:[x,t&&x&&u.jsx(Qe,{onClick:()=>z(x),size:"small",sx:{ml:1},children:ue(x)})]})]}),u.jsx(ja,{sx:{maxHeight:"100%",overflow:"auto"},children:d.map((U,ee)=>u.jsx(xc,{sx:{display:"flex",flexDirection:"column",alignItems:U.sender==="user"?"flex-end":"flex-start",borderRadius:2,mb:.5,p:1,border:"none","&:before":{display:"none"},"&:after":{display:"none"}},children:u.jsxs(Ke,{sx:{display:"flex",alignItems:"center",color:U.sender==="user"?"common.white":"text.primary",borderRadius:"16px"},children:[U.sender==="agent"&&u.jsx(yr,{src:gi,sx:{width:36,height:36,mr:1},alt:"Aria"}),u.jsx(da,{primary:u.jsxs(Ke,{sx:{display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap"},children:[U.message,t&&U.sender==="agent"&&u.jsx(Qe,{onClick:()=>z(U.message),size:"small",sx:{ml:1},children:ue(U.message)})]}),primaryTypographyProps:{sx:{color:U.sender==="user"?"common.white":"text.primary",bgcolor:U.sender==="user"?"primary.main":"grey.200",borderRadius:"16px",px:2,py:1,display:"inline-block"}}}),U.sender==="user"&&u.jsx(yr,{sx:{width:36,height:36,ml:1},children:u.jsx(Xu,{})})]})},ee))})]}),u.jsx(ca,{}),u.jsxs(Ke,{sx:{p:2,pb:1,display:"flex",alignItems:"center",bgcolor:"background.paper"},children:[u.jsx(qe,{fullWidth:!0,variant:"outlined",placeholder:"Type your message here...",value:l,onChange:Z,disabled:g,sx:{mr:1,flexGrow:1},InputProps:{endAdornment:u.jsx(yc,{position:"end",children:u.jsxs(Qe,{onClick:h?X:G,color:"primary.main","aria-label":h?"Stop recording":"Start recording",size:"large",edge:"end",disabled:g,children:[h?u.jsx(Pm,{size:"small"}):u.jsx(km,{size:"small"}),h&&u.jsx(kn,{size:30,sx:{color:"primary.main",position:"absolute",zIndex:1}})]})})}}),g?u.jsx(kn,{size:24}):u.jsx(gt,{variant:"contained",color:"primary",onClick:F,disabled:g||!l.trim(),endIcon:u.jsx(Ki,{}),children:"Send"})]})]}),u.jsx(lo,{open:R,autoHideDuration:6e3,onClose:$,children:u.jsx(ur,{elevation:6,variant:"filled",onClose:$,severity:O,children:j})})]})]})};var Om={},LL=de;Object.defineProperty(Om,"__esModule",{value:!0});var sS=Om.default=void 0,AL=LL(ge()),zL=u;sS=Om.default=(0,AL.default)((0,zL.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2M9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9zm9 14H6V10h12zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2"}),"LockOutlined");var Im={},DL=de;Object.defineProperty(Im,"__esModule",{value:!0});var aS=Im.default=void 0,FL=DL(ge()),BL=u;aS=Im.default=(0,FL.default)((0,BL.jsx)("path",{d:"M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m-9-2V7H4v3H1v2h3v3h2v-3h3v-2zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"PersonAdd");var Mm={},WL=de;Object.defineProperty(Mm,"__esModule",{value:!0});var wc=Mm.default=void 0,UL=WL(ge()),HL=u;wc=Mm.default=(0,UL.default)((0,HL.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");const xy=Nt(u.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),by=Nt(u.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");var Nm={},VL=de;Object.defineProperty(Nm,"__esModule",{value:!0});var Lm=Nm.default=void 0,qL=VL(ge()),KL=u;Lm=Nm.default=(0,qL.default)((0,KL.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info");const Yd=Ea({palette:{primary:{main:"#556cd6"},secondary:{main:"#19857b"},background:{default:"linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)",paper:"#fff"}},typography:{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif',h5:{fontWeight:600,color:"#444"},button:{textTransform:"none",fontWeight:"bold"}},components:{MuiButton:{styleOverrides:{root:{margin:"8px"}}}}}),GL=B(gn)(({theme:e})=>({marginTop:e.spacing(12),display:"flex",flexDirection:"column",alignItems:"center",padding:e.spacing(4),borderRadius:e.shape.borderRadius,boxShadow:e.shadows[10],width:"90%",maxWidth:"450px",opacity:.98,backdropFilter:"blur(10px)"}));function YL(){const e=Ao(),[t,n]=p.useState(!1),{setUser:r}=p.useContext(lr),[o,i]=p.useState(0),[s,a]=p.useState(""),[l,c]=p.useState(""),[d,f]=p.useState(!1),[h,b]=p.useState(""),[y,v]=p.useState(!1),[C,g]=p.useState(""),[m,x]=p.useState(""),[w,k]=p.useState(""),[P,R]=p.useState(""),[E,j]=p.useState(""),[T,O]=p.useState(!1),[M,I]=p.useState(!1),[N,D]=p.useState(""),[z,W]=p.useState("info"),$=[{id:"job_search",name:"Stress from job search"},{id:"classwork",name:"Stress from classwork"},{id:"social_anxiety",name:"Social anxiety"},{id:"impostor_syndrome",name:"Impostor Syndrome"},{id:"career_drift",name:"Career Drift"}],[_,F]=p.useState([]),G=K=>{const Q=K.target.value,he=_.includes(Q)?_.filter(J=>J!==Q):[..._,Q];F(he)},X=async K=>{var Q,he;K.preventDefault(),O(!0);try{const J=await ye.post("/api/user/login",{username:s,password:h});if(J&&J.data){const fe=J.data.userId;localStorage.setItem("token",J.data.access_token),console.log("Token stored:",localStorage.getItem("token")),D("Login successful!"),W("success"),n(!0),r({userId:fe}),e("/"),console.log("User logged in:",fe)}else throw new Error("Invalid response from server")}catch(J){console.error("Login failed:",J),D("Login failed: "+(((he=(Q=J.response)==null?void 0:Q.data)==null?void 0:he.msg)||"Unknown error")),W("error"),f(!0)}I(!0),O(!1)},ce=async K=>{var Q,he;K.preventDefault(),O(!0);try{const J=await ye.post("/api/user/signup",{username:s,email:l,password:h,name:C,age:m,gender:w,placeOfResidence:P,fieldOfWork:E,mental_health_concerns:_});if(J&&J.data){const fe=J.data.userId;localStorage.setItem("token",J.data.access_token),console.log("Token stored:",localStorage.getItem("token")),D("User registered successfully!"),W("success"),n(!0),r({userId:fe}),e("/"),console.log("User registered:",fe)}else throw new Error("Invalid response from server")}catch(J){console.error("Signup failed:",J),D(((he=(Q=J.response)==null?void 0:Q.data)==null?void 0:he.error)||"Failed to register user."),W("error")}O(!1),I(!0)},Z=async K=>{var Q,he;K.preventDefault(),O(!0);try{const J=await ye.post("/api/user/anonymous_signin");if(J&&J.data)localStorage.setItem("token",J.data.access_token),console.log("Token stored:",localStorage.getItem("token")),D("Anonymous sign-in successful!"),W("success"),n(!0),r({userId:null}),e("/");else throw new Error("Invalid response from server")}catch(J){console.error("Anonymous sign-in failed:",J),D("Anonymous sign-in failed: "+(((he=(Q=J.response)==null?void 0:Q.data)==null?void 0:he.msg)||"Unknown error")),W("error")}O(!1),I(!0)},ue=(K,Q)=>{i(Q)},U=(K,Q)=>{Q!=="clickaway"&&I(!1)},ee=()=>{v(!y)};return u.jsxs(Qh,{theme:Yd,children:[u.jsx(hm,{}),u.jsx(Ke,{sx:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",background:Yd.palette.background.default},children:u.jsxs(GL,{children:[u.jsxs(iS,{value:o,onChange:ue,variant:"fullWidth",centered:!0,indicatorColor:"primary",textColor:"primary",children:[u.jsx(jl,{icon:u.jsx(sS,{}),label:"Login"}),u.jsx(jl,{icon:u.jsx(aS,{}),label:"Sign Up"}),u.jsx(jl,{icon:u.jsx(wc,{}),label:"Anonymous"})]}),u.jsxs(Ke,{sx:{mt:3,width:"100%",px:3},children:[o===0&&u.jsxs("form",{onSubmit:X,children:[u.jsx(qe,{label:"Username",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:s,onChange:K=>a(K.target.value)}),u.jsx(qe,{label:"Password",type:y?"text":"password",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:h,onChange:K=>b(K.target.value),InputProps:{endAdornment:u.jsx(Qe,{onClick:ee,edge:"end",children:y?u.jsx(by,{}):u.jsx(xy,{})})}}),u.jsxs(gt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,sx:{mt:2,maxWidth:"325px"},disabled:T,children:[T?u.jsx(kn,{size:24}):"Login"," "]}),d&&u.jsxs(ve,{variant:"body2",textAlign:"center",sx:{mt:2},children:["Forgot your password? ",u.jsx(xb,{to:"/request_reset",style:{textDecoration:"none",color:Yd.palette.secondary.main},children:"Reset it here"})]})]}),o===1&&u.jsxs("form",{onSubmit:ce,children:[u.jsx(qe,{label:"Username",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:s,onChange:K=>a(K.target.value)}),u.jsx(qe,{label:"Email",type:"email",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:l,onChange:K=>c(K.target.value)}),u.jsx(qe,{label:"Password",type:y?"text":"password",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:h,onChange:K=>b(K.target.value),InputProps:{endAdornment:u.jsx(Qe,{onClick:ee,edge:"end",children:y?u.jsx(by,{}):u.jsx(xy,{})})}}),u.jsx(qe,{label:"Name",variant:"outlined",margin:"normal",fullWidth:!0,value:C,onChange:K=>g(K.target.value)}),u.jsx(qe,{label:"Age",type:"number",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:m,onChange:K=>x(K.target.value)}),u.jsxs(Gu,{required:!0,fullWidth:!0,margin:"normal",children:[u.jsx(Yu,{children:"Gender"}),u.jsxs(Oa,{value:w,label:"Gender",onChange:K=>k(K.target.value),children:[u.jsx(Un,{value:"",children:"Select Gender"}),u.jsx(Un,{value:"male",children:"Male"}),u.jsx(Un,{value:"female",children:"Female"}),u.jsx(Un,{value:"other",children:"Other"})]})]}),u.jsx(qe,{label:"Place of Residence",variant:"outlined",margin:"normal",fullWidth:!0,value:P,onChange:K=>R(K.target.value)}),u.jsx(qe,{label:"Field of Work",variant:"outlined",margin:"normal",fullWidth:!0,value:E,onChange:K=>j(K.target.value)}),u.jsxs(J2,{sx:{marginTop:"10px"},children:[u.jsx(ve,{variant:"body1",gutterBottom:!0,children:"Select any mental stressors you are currently experiencing to help us better tailor your therapy sessions."}),$.map(K=>u.jsx(vm,{control:u.jsx(pm,{checked:_.includes(K.id),onChange:G,value:K.id}),label:u.jsxs(Ke,{display:"flex",alignItems:"center",children:[K.name,u.jsx(Hn,{title:u.jsx(ve,{variant:"body2",children:XL(K.id)}),arrow:!0,placement:"right",children:u.jsx(Lm,{color:"action",style:{marginLeft:4,fontSize:20}})})]})},K.id))]}),u.jsx(gt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,sx:{mt:2},disabled:T,children:T?u.jsx(kn,{size:24}):"Sign Up"})]}),o===2&&u.jsx("form",{onSubmit:Z,children:u.jsx(gt,{type:"submit",variant:"outlined",color:"secondary",fullWidth:!0,sx:{mt:2},disabled:T,children:T?u.jsx(kn,{size:24}):"Anonymous Sign-In"})})]}),u.jsx(lo,{open:M,autoHideDuration:6e3,onClose:U,children:u.jsx(ur,{onClose:U,severity:z,sx:{width:"100%"},children:N})})]})})]})}function XL(e){switch(e){case"job_search":return"Feelings of stress stemming from the job search process.";case"classwork":return"Stress related to managing coursework and academic responsibilities.";case"social_anxiety":return"Anxiety experienced during social interactions or in anticipation of social interactions.";case"impostor_syndrome":return"Persistent doubt concerning one's abilities or accomplishments coupled with a fear of being exposed as a fraud.";case"career_drift":return"Stress from uncertainty or dissatisfaction with one's career path or progress.";default:return"No description available."}}var Am={},QL=de;Object.defineProperty(Am,"__esModule",{value:!0});var lS=Am.default=void 0,JL=QL(ge()),ZL=u;lS=Am.default=(0,JL.default)((0,ZL.jsx)("path",{d:"M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"}),"VpnKey");var zm={},eA=de;Object.defineProperty(zm,"__esModule",{value:!0});var cS=zm.default=void 0,tA=eA(ge()),nA=u;cS=zm.default=(0,tA.default)((0,nA.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");const Sy=Ea({palette:{primary:{main:"#3F51B5"},secondary:{main:"#F6AE2D"}}}),rA=()=>{const{changePassword:e}=p.useContext(lr),[t,n]=p.useState(""),[r,o]=p.useState(""),[i,s]=p.useState(!1),[a,l]=p.useState(""),[c,d]=p.useState("success"),{userId:f}=xa(),h=async b=>{b.preventDefault();const y=await e(f,t,r);l(y.message),d(y.success?"success":"error"),s(!0)};return u.jsx(Qh,{theme:Sy,children:u.jsx(K2,{component:"main",maxWidth:"xs",sx:{background:"#fff",borderRadius:"8px",boxShadow:"0px 2px 4px rgba(0,0,0,0.2)"},children:u.jsxs(Ke,{sx:{marginTop:8,display:"flex",flexDirection:"column",alignItems:"center"},children:[u.jsx(ve,{component:"h1",variant:"h5",children:"Update Password"}),u.jsxs("form",{onSubmit:h,style:{width:"100%",marginTop:Sy.spacing(1)},children:[u.jsx(qe,{variant:"outlined",margin:"normal",required:!0,fullWidth:!0,id:"current-password",label:"Current Password",name:"currentPassword",autoComplete:"current-password",type:"password",value:t,onChange:b=>n(b.target.value),InputProps:{startAdornment:u.jsx(cS,{color:"primary",style:{marginRight:"10px"}})}}),u.jsx(qe,{variant:"outlined",margin:"normal",required:!0,fullWidth:!0,id:"new-password",label:"New Password",name:"newPassword",autoComplete:"new-password",type:"password",value:r,onChange:b=>o(b.target.value),InputProps:{startAdornment:u.jsx(lS,{color:"secondary",style:{marginRight:"10px"}})}}),u.jsx(gt,{type:"submit",fullWidth:!0,variant:"contained",color:"primary",sx:{mt:3,mb:2},children:"Update Password"})]}),u.jsx(lo,{open:i,autoHideDuration:6e3,onClose:()=>s(!1),children:u.jsx(ur,{onClose:()=>s(!1),severity:c,sx:{width:"100%"},children:a})})]})})})};var Dm={},oA=de;Object.defineProperty(Dm,"__esModule",{value:!0});var uS=Dm.default=void 0,iA=oA(ge()),sA=u;uS=Dm.default=(0,iA.default)((0,sA.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"}),"Email");var Fm={},aA=de;Object.defineProperty(Fm,"__esModule",{value:!0});var dS=Fm.default=void 0,lA=aA(ge()),cA=u;dS=Fm.default=(0,lA.default)((0,cA.jsx)("path",{d:"M12 6c1.11 0 2-.9 2-2 0-.38-.1-.73-.29-1.03L12 0l-1.71 2.97c-.19.3-.29.65-.29 1.03 0 1.1.9 2 2 2m4.6 9.99-1.07-1.07-1.08 1.07c-1.3 1.3-3.58 1.31-4.89 0l-1.07-1.07-1.09 1.07C6.75 16.64 5.88 17 4.96 17c-.73 0-1.4-.23-1.96-.61V21c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-4.61c-.56.38-1.23.61-1.96.61-.92 0-1.79-.36-2.44-1.01M18 9h-5V7h-2v2H6c-1.66 0-3 1.34-3 3v1.54c0 1.08.88 1.96 1.96 1.96.52 0 1.02-.2 1.38-.57l2.14-2.13 2.13 2.13c.74.74 2.03.74 2.77 0l2.14-2.13 2.13 2.13c.37.37.86.57 1.38.57 1.08 0 1.96-.88 1.96-1.96V12C21 10.34 19.66 9 18 9"}),"Cake");var Bm={},uA=de;Object.defineProperty(Bm,"__esModule",{value:!0});var fS=Bm.default=void 0,dA=uA(ge()),fA=u;fS=Bm.default=(0,dA.default)((0,fA.jsx)("path",{d:"M5.5 22v-7.5H4V9c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2v5.5H9.5V22zM18 22v-6h3l-2.54-7.63C18.18 7.55 17.42 7 16.56 7h-.12c-.86 0-1.63.55-1.9 1.37L12 16h3v6zM7.5 6c1.11 0 2-.89 2-2s-.89-2-2-2-2 .89-2 2 .89 2 2 2m9 0c1.11 0 2-.89 2-2s-.89-2-2-2-2 .89-2 2 .89 2 2 2"}),"Wc");var Wm={},pA=de;Object.defineProperty(Wm,"__esModule",{value:!0});var pS=Wm.default=void 0,hA=pA(ge()),mA=u;pS=Wm.default=(0,hA.default)((0,mA.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home");var Um={},gA=de;Object.defineProperty(Um,"__esModule",{value:!0});var hS=Um.default=void 0,vA=gA(ge()),yA=u;hS=Um.default=(0,vA.default)((0,yA.jsx)("path",{d:"M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-6 0h-4V4h4z"}),"Work");var Hm={},xA=de;Object.defineProperty(Hm,"__esModule",{value:!0});var Vm=Hm.default=void 0,bA=xA(ge()),SA=u;Vm=Hm.default=(0,bA.default)((0,SA.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 4c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6m0 14c-2.03 0-4.43-.82-6.14-2.88C7.55 15.8 9.68 15 12 15s4.45.8 6.14 2.12C16.43 19.18 14.03 20 12 20"}),"AccountCircle");var qm={},CA=de;Object.defineProperty(qm,"__esModule",{value:!0});var mS=qm.default=void 0,wA=CA(ge()),kA=u;mS=qm.default=(0,wA.default)((0,kA.jsx)("path",{d:"M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8z"}),"Update");const RA=B(iS)({background:"#fff",borderRadius:"8px",boxShadow:"0 2px 4px rgba(0,0,0,0.1)",margin:"20px 0",maxWidth:"100%",overflow:"hidden"}),Cy=B(jl)({fontSize:"1rem",fontWeight:"bold",color:"#3F51B5",marginRight:"4px",marginLeft:"4px",flex:1,maxWidth:"none","&.Mui-selected":{color:"#F6AE2D",background:"#e0e0e0"},"&:hover":{background:"#f4f4f4",transition:"background-color 0.3s"},"@media (max-width: 720px)":{padding:"6px 12px",fontSize:"0.8rem"}}),PA=Ea({palette:{primary:{main:"#3F51B5"},secondary:{main:"#F6AE2D"},background:{default:"#e0e0e0"}},typography:{fontFamily:'"Open Sans", "Helvetica", "Arial", sans-serif',button:{textTransform:"none",fontWeight:"bold"}},components:{MuiButton:{styleOverrides:{root:{boxShadow:"none",borderRadius:8,"&:hover":{boxShadow:"0px 2px 4px rgba(0,0,0,0.2)"}}}},MuiPaper:{styleOverrides:{root:{padding:"20px",borderRadius:"10px",boxShadow:"0px 4px 12px rgba(0,0,0,0.1)"}}}}}),EA=B(gn)(({theme:e})=>({marginTop:e.spacing(2),padding:e.spacing(2),display:"flex",flexDirection:"column",alignItems:"center",gap:e.spacing(2),boxShadow:e.shadows[3]}));function $A(){const{userId:e}=xa(),[t,n]=p.useState({username:"",name:"",email:"",age:"",gender:"",placeOfResidence:"",fieldOfWork:"",mental_health_concerns:[]}),[r,o]=p.useState(0),i=(g,m)=>{o(m)},[s,a]=p.useState(""),[l,c]=p.useState(!1),[d,f]=p.useState("info");p.useEffect(()=>{if(!e){console.error("User ID is undefined");return}(async()=>{try{const m=await ye.get(`/api/user/profile/${e}`);console.log("Fetched data:",m.data);const x={username:m.data.username||"",name:m.data.name||"",email:m.data.email||"",age:m.data.age||"",gender:m.data.gender||"",placeOfResidence:m.data.placeOfResidence||"Not specified",fieldOfWork:m.data.fieldOfWork||"Not specified",mental_health_concerns:m.data.mental_health_concerns||[]};console.log("Formatted data:",x),n(x)}catch{a("Failed to fetch user data"),f("error"),c(!0)}})()},[e]);const h=[{label:"Stress from Job Search",value:"job_search"},{label:"Stress from Classwork",value:"classwork"},{label:"Social Anxiety",value:"social_anxiety"},{label:"Impostor Syndrome",value:"impostor_syndrome"},{label:"Career Drift",value:"career_drift"}];console.log("current mental health concerns: ",t.mental_health_concerns);const b=g=>{const{name:m,checked:x}=g.target;n(w=>{const k=x?[...w.mental_health_concerns,m]:w.mental_health_concerns.filter(P=>P!==m);return{...w,mental_health_concerns:k}})},y=g=>{const{name:m,value:x}=g.target;n(w=>({...w,[m]:x}))},v=async g=>{g.preventDefault();try{await ye.patch(`/api/user/profile/${e}`,t),a("Profile updated successfully!"),f("success")}catch{a("Failed to update profile"),f("error")}c(!0)},C=()=>{c(!1)};return u.jsxs(Qh,{theme:PA,children:[u.jsx(hm,{}),u.jsxs(K2,{component:"main",maxWidth:"md",children:[u.jsxs(RA,{value:r,onChange:i,centered:!0,children:[u.jsx(Cy,{label:"Profile"}),u.jsx(Cy,{label:"Update Password"})]}),r===0&&u.jsxs(EA,{component:"form",onSubmit:v,sx:{maxHeight:"81vh",overflow:"auto"},children:[u.jsxs(ve,{variant:"h5",style:{fontWeight:700},children:[u.jsx(Vm,{style:{marginRight:"10px"}})," ",t.username]}),u.jsx(qe,{fullWidth:!0,label:"Name",variant:"outlined",name:"name",value:t.name||"",onChange:y,InputProps:{startAdornment:u.jsx(Qe,{position:"start",children:u.jsx(Xu,{})})}}),u.jsx(qe,{fullWidth:!0,label:"Email",variant:"outlined",name:"email",value:t.email||"",onChange:y,InputProps:{startAdornment:u.jsx(Qe,{position:"start",children:u.jsx(uS,{})})}}),u.jsx(qe,{fullWidth:!0,label:"Age",variant:"outlined",name:"age",type:"number",value:t.age||"",onChange:y,InputProps:{startAdornment:u.jsx(Qe,{children:u.jsx(dS,{})})}}),u.jsxs(Gu,{fullWidth:!0,children:[u.jsx(Yu,{children:"Gender"}),u.jsxs(Oa,{name:"gender",value:t.gender||"",label:"Gender",onChange:y,startAdornment:u.jsx(Qe,{children:u.jsx(fS,{})}),children:[u.jsx(Un,{value:"male",children:"Male"}),u.jsx(Un,{value:"female",children:"Female"}),u.jsx(Un,{value:"other",children:"Other"})]})]}),u.jsx(qe,{fullWidth:!0,label:"Place of Residence",variant:"outlined",name:"placeOfResidence",value:t.placeOfResidence||"",onChange:y,InputProps:{startAdornment:u.jsx(Qe,{children:u.jsx(pS,{})})}}),u.jsx(qe,{fullWidth:!0,label:"Field of Work",variant:"outlined",name:"fieldOfWork",value:t.fieldOfWork||"",onChange:y,InputProps:{startAdornment:u.jsx(Qe,{position:"start",children:u.jsx(hS,{})})}}),u.jsx(J2,{children:h.map((g,m)=>(console.log(`Is "${g.label}" checked?`,t.mental_health_concerns.includes(g.value)),u.jsx(vm,{control:u.jsx(pm,{checked:t.mental_health_concerns.includes(g.value),onChange:b,name:g.value}),label:u.jsxs(Ke,{display:"flex",alignItems:"center",children:[g.label,u.jsx(Hn,{title:u.jsx(ve,{variant:"body2",children:TA(g.value)}),arrow:!0,placement:"right",children:u.jsx(Lm,{color:"action",style:{marginLeft:4,fontSize:20}})})]})},m)))}),u.jsxs(gt,{type:"submit",color:"primary",variant:"contained",children:[u.jsx(mS,{style:{marginRight:"10px"}}),"Update Profile"]})]}),r===1&&u.jsx(rA,{userId:e}),u.jsx(lo,{open:l,autoHideDuration:6e3,onClose:C,children:u.jsx(ur,{onClose:C,severity:d,sx:{width:"100%"},children:s})})]})]})}function TA(e){switch(e){case"job_search":return"Feelings of stress stemming from the job search process.";case"classwork":return"Stress related to managing coursework and academic responsibilities.";case"social_anxiety":return"Anxiety experienced during social interactions or in anticipation of social interactions.";case"impostor_syndrome":return"Persistent doubt concerning one's abilities or accomplishments coupled with a fear of being exposed as a fraud.";case"career_drift":return"Stress from uncertainty or dissatisfaction with one's career path or progress.";default:return"No description available."}}var Km={},_A=de;Object.defineProperty(Km,"__esModule",{value:!0});var gS=Km.default=void 0,jA=_A(ge()),wy=u;gS=Km.default=(0,jA.default)([(0,wy.jsx)("path",{d:"M22 9 12 2 2 9h9v13h2V9z"},"0"),(0,wy.jsx)("path",{d:"m4.14 12-1.96.37.82 4.37V22h2l.02-4H7v4h2v-6H4.9zm14.96 4H15v6h2v-4h1.98l.02 4h2v-5.26l.82-4.37-1.96-.37z"},"1")],"Deck");var Gm={},OA=de;Object.defineProperty(Gm,"__esModule",{value:!0});var vS=Gm.default=void 0,IA=OA(ge()),MA=u;vS=Gm.default=(0,IA.default)((0,MA.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5m-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11m3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5"}),"InsertEmoticon");var Ym={},NA=de;Object.defineProperty(Ym,"__esModule",{value:!0});var Xm=Ym.default=void 0,LA=NA(ge()),AA=u;Xm=Ym.default=(0,LA.default)((0,AA.jsx)("path",{d:"M19 5v14H5V5zm1.1-2H3.9c-.5 0-.9.4-.9.9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9M11 7h6v2h-6zm0 4h6v2h-6zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7z"}),"ListAlt");var Qm={},zA=de;Object.defineProperty(Qm,"__esModule",{value:!0});var yS=Qm.default=void 0,DA=zA(ge()),FA=u;yS=Qm.default=(0,DA.default)((0,FA.jsx)("path",{d:"M10.09 15.59 11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"ExitToApp");var Jm={},BA=de;Object.defineProperty(Jm,"__esModule",{value:!0});var xS=Jm.default=void 0,WA=BA(ge()),UA=u;xS=Jm.default=(0,WA.default)((0,UA.jsx)("path",{d:"M16.53 11.06 15.47 10l-4.88 4.88-2.12-2.12-1.06 1.06L10.59 17zM19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V8h14z"}),"EventAvailable");var Zm={},HA=de;Object.defineProperty(Zm,"__esModule",{value:!0});var bS=Zm.default=void 0,VA=HA(ge()),ky=u;bS=Zm.default=(0,VA.default)([(0,ky.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,ky.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"Schedule");var eg={},qA=de;Object.defineProperty(eg,"__esModule",{value:!0});var SS=eg.default=void 0,KA=qA(ge()),GA=u;SS=eg.default=(0,KA.default)((0,GA.jsx)("path",{d:"m22.69 18.37 1.14-1-1-1.73-1.45.49c-.32-.27-.68-.48-1.08-.63L20 14h-2l-.3 1.49c-.4.15-.76.36-1.08.63l-1.45-.49-1 1.73 1.14 1c-.08.5-.08.76 0 1.26l-1.14 1 1 1.73 1.45-.49c.32.27.68.48 1.08.63L18 24h2l.3-1.49c.4-.15.76-.36 1.08-.63l1.45.49 1-1.73-1.14-1c.08-.51.08-.77 0-1.27M19 21c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2M11 7v5.41l2.36 2.36 1.04-1.79-1.4-1.39V7zm10 5c0-4.97-4.03-9-9-9-2.83 0-5.35 1.32-7 3.36V4H3v6h6V8H6.26C7.53 6.19 9.63 5 12 5c3.86 0 7 3.14 7 7zm-10.14 6.91c-2.99-.49-5.35-2.9-5.78-5.91H3.06c.5 4.5 4.31 8 8.94 8h.07z"}),"ManageHistory");const Ry=230;function YA(){const{logout:e,user:t}=p.useContext(lr),n=oo(),r=i=>n.pathname===i,o=[{text:"Mind Chat",icon:u.jsx(gS,{}),path:"/"},...t!=null&&t.userId?[{text:"Track Your Vibes",icon:u.jsx(vS,{}),path:"/user/mood_logging"},{text:"Mood Logs",icon:u.jsx(Xm,{}),path:"/user/mood_logs"},{text:"Schedule Check-In",icon:u.jsx(bS,{}),path:"/user/check_in"},{text:"Check-In Reporting",icon:u.jsx(xS,{}),path:`/user/check_ins/${t==null?void 0:t.userId}`},{text:"Chat Log Manager",icon:u.jsx(SS,{}),path:"/user/chat_log_Manager"}]:[]];return u.jsx(FI,{sx:{width:Ry,flexShrink:0,mt:8,"& .MuiDrawer-paper":{width:Ry,boxSizing:"border-box",position:"relative",height:"91vh",top:0,overflowX:"hidden",borderRadius:2,boxShadow:1}},variant:"permanent",anchor:"left",children:u.jsxs(ja,{children:[o.map(i=>u.jsx(WP,{to:i.path,style:{textDecoration:"none",color:"inherit"},children:u.jsxs(xc,{button:!0,sx:{backgroundColor:r(i.path)?"rgba(25, 118, 210, 0.5)":"inherit","&:hover":{bgcolor:"grey.200"}},children:[u.jsx(iy,{children:i.icon}),u.jsx(da,{primary:i.text})]})},i.text)),u.jsxs(xc,{button:!0,onClick:e,children:[u.jsx(iy,{children:u.jsx(yS,{})}),u.jsx(da,{primary:"Logout"})]})]})})}var tg={},XA=de;Object.defineProperty(tg,"__esModule",{value:!0});var CS=tg.default=void 0,QA=XA(ge()),JA=u;CS=tg.default=(0,QA.default)((0,JA.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");var ng={},ZA=de;Object.defineProperty(ng,"__esModule",{value:!0});var wS=ng.default=void 0,ez=ZA(ge()),tz=u;wS=ng.default=(0,ez.default)((0,tz.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2m6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1z"}),"Notifications");var rg={},nz=de;Object.defineProperty(rg,"__esModule",{value:!0});var kS=rg.default=void 0,rz=nz(ge()),oz=u;kS=rg.default=(0,rz.default)((0,oz.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel");function iz({toggleSidebar:e}){const{incrementNotificationCount:t,notifications:n,addNotification:r,removeNotification:o}=p.useContext(lr),i=Ao(),{user:s}=p.useContext(lr),[a,l]=p.useState(null),c=localStorage.getItem("token"),d=s==null?void 0:s.userId;console.log("User ID:",d),p.useEffect(()=>{d?f():console.error("No user ID available from URL parameters.")},[d]);const f=async()=>{if(!d){console.error("User ID is missing in context");return}try{const C=(await ye.get(`/api/check-in/missed?user_id=${d}`,{headers:{Authorization:`Bearer ${c}`}})).data;console.log("Missed check-ins:",C),C.length>0?C.forEach(g=>{r({title:`Missed Check-in on ${new Date(g.check_in_time).toLocaleString()}`,message:"Please complete your check-in."})}):r({title:"You have no missed check-ins.",message:""})}catch(v){console.error("Failed to fetch missed check-ins:",v),r({title:"Failed to fetch missed check-ins. Please check the console for more details.",message:""})}},h=v=>{l(v.currentTarget)},b=v=>{l(null),o(v)},y=()=>{s&&s.userId?i(`/user/profile/${s.userId}`):console.error("User ID not found")};return p.useEffect(()=>{const v=C=>{C.data&&C.data.msg==="updateCount"&&(console.log("Received message from service worker:",C.data),r({title:C.data.title,message:C.data.body}),t())};return navigator.serviceWorker.addEventListener("message",v),()=>{navigator.serviceWorker.removeEventListener("message",v)}},[]),u.jsx(C_,{position:"fixed",sx:{zIndex:v=>v.zIndex.drawer+1},children:u.jsxs(D6,{children:[u.jsx(Qe,{onClick:e,color:"inherit",edge:"start",sx:{marginRight:2},children:u.jsx(CS,{})}),u.jsx(ve,{variant:"h6",noWrap:!0,component:"div",sx:{flexGrow:1},children:"Dashboard"}),(s==null?void 0:s.userId)&&u.jsx(Qe,{color:"inherit",onClick:h,children:u.jsx(rO,{badgeContent:n.length,color:"secondary",children:u.jsx(wS,{})})}),u.jsx(nS,{anchorEl:a,open:!!a,onClose:()=>b(null),children:n.map((v,C)=>u.jsx(Un,{onClick:()=>b(C),sx:{whiteSpace:"normal",maxWidth:350,padding:1},children:u.jsxs(qu,{elevation:2,sx:{display:"flex",alignItems:"center",width:"100%"},children:[u.jsx(kS,{color:"error"}),u.jsxs(fm,{sx:{flex:"1 1 auto"},children:[u.jsx(ve,{variant:"subtitle1",sx:{fontWeight:"bold"},children:v.title}),u.jsx(ve,{variant:"body2",color:"text.secondary",children:v.message})]})]})},C))}),(s==null?void 0:s.userId)&&u.jsx(Qe,{color:"inherit",onClick:y,children:u.jsx(Vm,{})})]})})}var og={},sz=de;Object.defineProperty(og,"__esModule",{value:!0});var RS=og.default=void 0,az=sz(ge()),lz=u;RS=og.default=(0,az.default)((0,lz.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M17 13l-5 5-5-5h3V9h4v4z"}),"CloudDownload");var ig={},cz=de;Object.defineProperty(ig,"__esModule",{value:!0});var wp=ig.default=void 0,uz=cz(ge()),dz=u;wp=ig.default=(0,uz.default)((0,dz.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"DeleteForever");var sg={},fz=de;Object.defineProperty(sg,"__esModule",{value:!0});var PS=sg.default=void 0,pz=fz(ge()),hz=u;PS=sg.default=(0,pz.default)((0,hz.jsx)("path",{d:"M9 11H7v2h2zm4 0h-2v2h2zm4 0h-2v2h2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 16H5V9h14z"}),"DateRange");const mz=B(gn)(({theme:e})=>({padding:e.spacing(3),borderRadius:e.shape.borderRadius,boxShadow:1,maxWidth:"100%",margin:"auto",marginTop:e.spacing(2),backgroundColor:"#fff",overflow:"auto"})),ll=B(gt)(({theme:e})=>({margin:e.spacing(0),paddingLeft:e.spacing(1),paddingRight:e.spacing(3)}));function gz(){const[e,t]=Vt.useState(!1),[n,r]=p.useState(!1),[o,i]=Vt.useState(""),[s,a]=Vt.useState("info"),[l,c]=p.useState(!1),[d,f]=p.useState(""),[h,b]=p.useState(""),[y,v]=p.useState(!1),C=(k,P)=>{P!=="clickaway"&&t(!1)},g=()=>{r(!1)},m=k=>{v(k),r(!0)},x=async(k=!1)=>{var P,R;c(!0);try{const E=k?"/api/user/download_chat_logs/range":"/api/user/download_chat_logs",j=k?{params:{start_date:d,end_date:h}}:{},T=await ye.get(E,{...j,headers:{Authorization:`Bearer ${localStorage.getItem("token")}`},responseType:"blob"}),O=window.URL.createObjectURL(new Blob([T.data])),M=document.createElement("a");M.href=O,M.setAttribute("download",k?"chat_logs_range.csv":"chat_logs.csv"),document.body.appendChild(M),M.click(),i("Chat logs downloaded successfully."),a("success")}catch(E){i(`Failed to download chat logs: ${((R=(P=E.response)==null?void 0:P.data)==null?void 0:R.error)||E.message}`),a("error")}finally{c(!1)}t(!0)},w=async()=>{var k,P;r(!1),c(!0);try{const R=y?"/api/user/delete_chat_logs/range":"/api/user/delete_chat_logs",E=y?{params:{start_date:d,end_date:h}}:{},j=await ye.delete(R,{...E,headers:{Authorization:`Bearer ${localStorage.getItem("token")}`}});i(j.data.message),a("success")}catch(R){i(`Failed to delete chat logs: ${((P=(k=R.response)==null?void 0:k.data)==null?void 0:P.error)||R.message}`),a("error")}finally{c(!1)}t(!0)};return u.jsxs(mz,{sx:{height:"91vh"},children:[u.jsx(ve,{variant:"h4",gutterBottom:!0,children:"Manage Your Chat Logs"}),u.jsx(ve,{variant:"body1",paragraph:!0,children:"Manage your chat logs efficiently by downloading or deleting entries for specific dates or entire ranges. Please be cautious as deletion is permanent."}),u.jsxs("div",{style:{display:"flex",justifyContent:"center",flexDirection:"column",alignItems:"center",gap:20},children:[u.jsxs("div",{style:{display:"flex",gap:10,marginBottom:20},children:[u.jsx(qe,{label:"Start Date",type:"date",value:d,onChange:k=>f(k.target.value),InputLabelProps:{shrink:!0}}),u.jsx(qe,{label:"End Date",type:"date",value:h,onChange:k=>b(k.target.value),InputLabelProps:{shrink:!0}})]}),u.jsx(ve,{variant:"body1",paragraph:!0,children:"Here you can download your chat logs as a CSV file, which includes details like chat IDs, content, type, and additional information for each session."}),u.jsx(Hn,{title:"Download chat logs for selected date range",children:u.jsx(ll,{variant:"outlined",startIcon:u.jsx(PS,{}),onClick:()=>x(!0),disabled:l||!d||!h,children:l?u.jsx(kn,{size:24,color:"inherit"}):"Download Range"})}),u.jsx(Hn,{title:"Download your chat logs as a CSV file",children:u.jsx(ll,{variant:"contained",color:"primary",startIcon:u.jsx(RS,{}),onClick:()=>x(!1),disabled:l,children:l?u.jsx(kn,{size:24,color:"inherit"}):"Download Chat Logs"})}),u.jsx(ve,{variant:"body1",paragraph:!0,children:"If you need to clear your history for privacy or other reasons, you can also permanently delete your chat logs from the server."}),u.jsx(Hn,{title:"Delete chat logs for selected date range",children:u.jsx(ll,{variant:"outlined",color:"warning",startIcon:u.jsx(wp,{}),onClick:()=>m(!0),disabled:l||!d||!h,children:l?u.jsx(kn,{size:24,color:"inherit"}):"Delete Range"})}),u.jsx(Hn,{title:"Permanently delete all your chat logs",children:u.jsx(ll,{variant:"contained",color:"secondary",startIcon:u.jsx(wp,{}),onClick:()=>m(!1),disabled:l,children:l?u.jsx(kn,{size:24,color:"inherit"}):"Delete Chat Logs"})}),u.jsx(ve,{variant:"body1",paragraph:!0,children:"Please use these options carefully as deleting your chat logs is irreversible."})]}),u.jsxs(yp,{open:n,onClose:g,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[u.jsx(Sp,{id:"alert-dialog-title",children:"Confirm Deletion"}),u.jsx(bp,{children:u.jsx(Y2,{id:"alert-dialog-description",children:"Are you sure you want to delete these chat logs? This action cannot be undone."})}),u.jsxs(xp,{children:[u.jsx(gt,{onClick:g,color:"primary",children:"Cancel"}),u.jsx(gt,{onClick:()=>w(),color:"secondary",autoFocus:!0,children:"Confirm"})]})]}),u.jsx(lo,{open:e,autoHideDuration:6e3,onClose:C,children:u.jsx(ur,{onClose:C,severity:s,sx:{width:"100%"},children:o})})]})}const Py=()=>{const{user:e,voiceEnabled:t}=p.useContext(lr),n=e==null?void 0:e.userId,[r,o]=p.useState(0),[i,s]=p.useState(0),[a,l]=p.useState(""),[c,d]=p.useState([]),[f,h]=p.useState(!1),[b,y]=p.useState(null),v=p.useRef([]),[C,g]=p.useState(!1),[m,x]=p.useState(!1),[w,k]=p.useState(""),[P,R]=p.useState("info"),[E,j]=p.useState(null),T=_=>{if(!t||_===E){j(null),window.speechSynthesis.cancel();return}const F=window.speechSynthesis,G=new SpeechSynthesisUtterance(_),X=F.getVoices();console.log(X.map(Z=>`${Z.name} - ${Z.lang} - ${Z.gender}`));const ce=X.find(Z=>Z.name.includes("Microsoft Zira - English (United States)"));ce?G.voice=ce:console.log("No female voice found"),G.onend=()=>{j(null)},j(_),F.speak(G)},O=(_,F)=>{F!=="clickaway"&&x(!1)},M=p.useCallback(async()=>{if(r!==null){g(!0);try{const _=await fetch(`/api/ai/mental_health/finalize/${n}/${r}`,{method:"POST",headers:{"Content-Type":"application/json"}}),F=await _.json();_.ok?(k("Chat finalized successfully"),R("success"),o(null),s(0),d([])):(k("Failed to finalize chat"),R("error"))}catch{k("Error finalizing chat"),R("error")}finally{g(!1),x(!0)}}},[n,r]),I=p.useCallback(async()=>{if(a.trim()){console.log(r),g(!0);try{const _=JSON.stringify({prompt:a,turn_id:i}),F=await fetch(`/api/ai/mental_health/${n}/${r}`,{method:"POST",headers:{"Content-Type":"application/json"},body:_}),G=await F.json();console.log(G),F.ok?(d(X=>[...X,{message:a,sender:"user"},{message:G,sender:"agent"}]),s(X=>X+1),l("")):(console.error("Failed to send message:",G),k(G.error||"An error occurred while sending the message."),R("error"),x(!0))}catch(_){console.error("Failed to send message:",_),k("Network or server error occurred."),R("error"),x(!0)}finally{g(!1)}}},[a,n,r,i]),N=()=>{navigator.mediaDevices.getUserMedia({audio:!0}).then(_=>{v.current=[];const F={mimeType:"audio/webm"},G=new MediaRecorder(_,F);G.ondataavailable=X=>{console.log("Data available:",X.data.size),v.current.push(X.data)},G.start(),y(G),h(!0)}).catch(console.error)},D=()=>{b&&(b.onstop=()=>{z(v.current),h(!1),y(null)},b.stop())},z=_=>{console.log("Audio chunks size:",_.reduce((X,ce)=>X+ce.size,0));const F=new Blob(_,{type:"audio/webm"});if(F.size===0){console.error("Audio Blob is empty");return}console.log(`Sending audio blob of size: ${F.size} bytes`);const G=new FormData;G.append("audio",F),g(!0),ye.post("/api/ai/mental_health/voice-to-text",G,{headers:{"Content-Type":"multipart/form-data"}}).then(X=>{const{message:ce}=X.data;l(ce),I()}).catch(X=>{console.error("Error uploading audio:",X),x(!0),k("Error processing voice input: "+X.message),R("error")}).finally(()=>{g(!1)})},W=p.useCallback(_=>{l(_.target.value)},[]),$=_=>_===E?u.jsx(Cc,{}):u.jsx(Sc,{});return u.jsxs(u.Fragment,{children:[u.jsx("style",{children:` + `}),u.jsxs(Ke,{sx:{maxWidth:"100%",mx:"auto",my:2,display:"flex",flexDirection:"column",height:"91vh",borderRadius:2,boxShadow:1},children:[u.jsxs(qu,{sx:{display:"flex",flexDirection:"column",height:"100%",borderRadius:2,boxShadow:3},children:[u.jsxs(fm,{sx:{flexGrow:1,overflow:"auto",padding:3,position:"relative"},children:[u.jsxs(Ke,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",position:"relative",marginBottom:"5px"},children:[u.jsx(Hn,{title:"Toggle voice responses",children:u.jsx(Qe,{color:"inherit",onClick:D,sx:{padding:0},children:u.jsx(_6,{checked:t,onChange:U=>n(U.target.checked),icon:u.jsx(Cc,{}),checkedIcon:u.jsx(Sc,{}),inputProps:{"aria-label":"Voice response toggle"},color:"default",sx:{height:42,"& .MuiSwitch-switchBase":{padding:"9px"},"& .MuiSwitch-switchBase.Mui-checked":{color:"white",transform:"translateX(16px)","& + .MuiSwitch-track":{backgroundColor:"primary.main"}}}})})}),u.jsx(Hn,{title:"Start a new chat",placement:"top",arrow:!0,children:u.jsx(Qe,{"aria-label":"new chat",color:"primary",onClick:_,disabled:g,sx:{"&:hover":{backgroundColor:"primary.main",color:"common.white"}},children:u.jsx(jm,{})})})]}),u.jsx(ca,{sx:{marginBottom:"10px"}}),x.length===0&&u.jsxs(Ke,{sx:{display:"flex",marginBottom:2,marginTop:3},children:[u.jsx(yr,{src:gi,sx:{width:44,height:44,marginRight:2},alt:"Aria"}),u.jsx(ye,{variant:"h4",component:"h1",gutterBottom:!0,children:"Welcome to Mental Health Companion"})]}),k?u.jsx(ML,{}):d.length===0&&u.jsxs(Ke,{sx:{display:"flex"},children:[u.jsx(yr,{src:gi,sx:{width:36,height:36,marginRight:1},alt:"Aria"}),u.jsxs(ye,{variant:"body1",gutterBottom:!0,sx:{bgcolor:"grey.200",borderRadius:"16px",px:2,py:1,display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap"},children:[x,t&&x&&u.jsx(Qe,{onClick:()=>z(x),size:"small",sx:{ml:1},children:ue(x)})]})]}),u.jsx(ja,{sx:{maxHeight:"100%",overflow:"auto"},children:d.map((U,ee)=>u.jsx(xc,{sx:{display:"flex",flexDirection:"column",alignItems:U.sender==="user"?"flex-end":"flex-start",borderRadius:2,mb:.5,p:1,border:"none","&:before":{display:"none"},"&:after":{display:"none"}},children:u.jsxs(Ke,{sx:{display:"flex",alignItems:"center",color:U.sender==="user"?"common.white":"text.primary",borderRadius:"16px"},children:[U.sender==="agent"&&u.jsx(yr,{src:gi,sx:{width:36,height:36,mr:1},alt:"Aria"}),u.jsx(da,{primary:u.jsxs(Ke,{sx:{display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap"},children:[U.message,t&&U.sender==="agent"&&u.jsx(Qe,{onClick:()=>z(U.message),size:"small",sx:{ml:1},children:ue(U.message)})]}),primaryTypographyProps:{sx:{color:U.sender==="user"?"common.white":"text.primary",bgcolor:U.sender==="user"?"primary.main":"grey.200",borderRadius:"16px",px:2,py:1,display:"inline-block"}}}),U.sender==="user"&&u.jsx(yr,{sx:{width:36,height:36,ml:1},children:u.jsx(Xu,{})})]})},ee))})]}),u.jsx(ca,{}),u.jsxs(Ke,{sx:{p:2,pb:1,display:"flex",alignItems:"center",bgcolor:"background.paper"},children:[u.jsx(qe,{fullWidth:!0,variant:"outlined",placeholder:"Type your message here...",value:l,onChange:Z,disabled:g,sx:{mr:1,flexGrow:1},InputProps:{endAdornment:u.jsx(yc,{position:"end",children:u.jsxs(Qe,{onClick:h?X:G,color:"primary.main","aria-label":h?"Stop recording":"Start recording",size:"large",edge:"end",disabled:g,children:[h?u.jsx(Pm,{size:"small"}):u.jsx(km,{size:"small"}),h&&u.jsx(kn,{size:30,sx:{color:"primary.main",position:"absolute",zIndex:1}})]})})}}),g?u.jsx(kn,{size:24}):u.jsx(gt,{variant:"contained",color:"primary",onClick:F,disabled:g||!l.trim(),endIcon:u.jsx(Ki,{}),children:"Send"})]})]}),u.jsx(lo,{open:R,autoHideDuration:6e3,onClose:$,children:u.jsx(ur,{elevation:6,variant:"filled",onClose:$,severity:O,children:j})})]})]})};var Om={},LL=de;Object.defineProperty(Om,"__esModule",{value:!0});var sS=Om.default=void 0,AL=LL(ge()),zL=u;sS=Om.default=(0,AL.default)((0,zL.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2M9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9zm9 14H6V10h12zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2"}),"LockOutlined");var Im={},DL=de;Object.defineProperty(Im,"__esModule",{value:!0});var aS=Im.default=void 0,FL=DL(ge()),BL=u;aS=Im.default=(0,FL.default)((0,BL.jsx)("path",{d:"M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m-9-2V7H4v3H1v2h3v3h2v-3h3v-2zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"PersonAdd");var Mm={},WL=de;Object.defineProperty(Mm,"__esModule",{value:!0});var wc=Mm.default=void 0,UL=WL(ge()),HL=u;wc=Mm.default=(0,UL.default)((0,HL.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");const xy=Nt(u.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),by=Nt(u.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");var Nm={},VL=de;Object.defineProperty(Nm,"__esModule",{value:!0});var Lm=Nm.default=void 0,qL=VL(ge()),KL=u;Lm=Nm.default=(0,qL.default)((0,KL.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info");const Yd=Ea({palette:{primary:{main:"#556cd6"},secondary:{main:"#19857b"},background:{default:"linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)",paper:"#fff"}},typography:{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif',h5:{fontWeight:600,color:"#444"},button:{textTransform:"none",fontWeight:"bold"}},components:{MuiButton:{styleOverrides:{root:{margin:"8px"}}}}}),GL=B(gn)(({theme:e})=>({marginTop:e.spacing(12),display:"flex",flexDirection:"column",alignItems:"center",padding:e.spacing(4),borderRadius:e.shape.borderRadius,boxShadow:e.shadows[10],width:"90%",maxWidth:"450px",opacity:.98,backdropFilter:"blur(10px)"}));function YL(){const e=Ao(),[t,n]=p.useState(!1),{setUser:r}=p.useContext(lr),[o,i]=p.useState(0),[s,a]=p.useState(""),[l,c]=p.useState(""),[d,f]=p.useState(!1),[h,b]=p.useState(""),[y,v]=p.useState(!1),[C,g]=p.useState(""),[m,x]=p.useState(""),[w,k]=p.useState(""),[P,R]=p.useState(""),[E,j]=p.useState(""),[T,O]=p.useState(!1),[M,I]=p.useState(!1),[N,D]=p.useState(""),[z,W]=p.useState("info"),$=[{id:"job_search",name:"Stress from job search"},{id:"classwork",name:"Stress from classwork"},{id:"social_anxiety",name:"Social anxiety"},{id:"impostor_syndrome",name:"Impostor Syndrome"},{id:"career_drift",name:"Career Drift"}],[_,F]=p.useState([]),G=K=>{const Q=K.target.value,he=_.includes(Q)?_.filter(J=>J!==Q):[..._,Q];F(he)},X=async K=>{var Q,he;K.preventDefault(),O(!0);try{const J=await ve.post("/api/user/login",{username:s,password:h});if(J&&J.data){const fe=J.data.userId;localStorage.setItem("token",J.data.access_token),console.log("Token stored:",localStorage.getItem("token")),D("Login successful!"),W("success"),n(!0),r({userId:fe}),e("/"),console.log("User logged in:",fe)}else throw new Error("Invalid response from server")}catch(J){console.error("Login failed:",J),D("Login failed: "+(((he=(Q=J.response)==null?void 0:Q.data)==null?void 0:he.msg)||"Unknown error")),W("error"),f(!0)}I(!0),O(!1)},ce=async K=>{var Q,he;K.preventDefault(),O(!0);try{const J=await ve.post("/api/user/signup",{username:s,email:l,password:h,name:C,age:m,gender:w,placeOfResidence:P,fieldOfWork:E,mental_health_concerns:_});if(J&&J.data){const fe=J.data.userId;localStorage.setItem("token",J.data.access_token),console.log("Token stored:",localStorage.getItem("token")),D("User registered successfully!"),W("success"),n(!0),r({userId:fe}),e("/"),console.log("User registered:",fe)}else throw new Error("Invalid response from server")}catch(J){console.error("Signup failed:",J),D(((he=(Q=J.response)==null?void 0:Q.data)==null?void 0:he.error)||"Failed to register user."),W("error")}O(!1),I(!0)},Z=async K=>{var Q,he;K.preventDefault(),O(!0);try{const J=await ve.post("/api/user/anonymous_signin");if(J&&J.data)localStorage.setItem("token",J.data.access_token),console.log("Token stored:",localStorage.getItem("token")),D("Anonymous sign-in successful!"),W("success"),n(!0),r({userId:null}),e("/");else throw new Error("Invalid response from server")}catch(J){console.error("Anonymous sign-in failed:",J),D("Anonymous sign-in failed: "+(((he=(Q=J.response)==null?void 0:Q.data)==null?void 0:he.msg)||"Unknown error")),W("error")}O(!1),I(!0)},ue=(K,Q)=>{i(Q)},U=(K,Q)=>{Q!=="clickaway"&&I(!1)},ee=()=>{v(!y)};return u.jsxs(Qh,{theme:Yd,children:[u.jsx(hm,{}),u.jsx(Ke,{sx:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",background:Yd.palette.background.default},children:u.jsxs(GL,{children:[u.jsxs(iS,{value:o,onChange:ue,variant:"fullWidth",centered:!0,indicatorColor:"primary",textColor:"primary",children:[u.jsx(jl,{icon:u.jsx(sS,{}),label:"Login"}),u.jsx(jl,{icon:u.jsx(aS,{}),label:"Sign Up"}),u.jsx(jl,{icon:u.jsx(wc,{}),label:"Anonymous"})]}),u.jsxs(Ke,{sx:{mt:3,width:"100%",px:3},children:[o===0&&u.jsxs("form",{onSubmit:X,children:[u.jsx(qe,{label:"Username",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:s,onChange:K=>a(K.target.value)}),u.jsx(qe,{label:"Password",type:y?"text":"password",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:h,onChange:K=>b(K.target.value),InputProps:{endAdornment:u.jsx(Qe,{onClick:ee,edge:"end",children:y?u.jsx(by,{}):u.jsx(xy,{})})}}),u.jsxs(gt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,sx:{mt:2,maxWidth:"325px"},disabled:T,children:[T?u.jsx(kn,{size:24}):"Login"," "]}),d&&u.jsxs(ye,{variant:"body2",textAlign:"center",sx:{mt:2},children:["Forgot your password? ",u.jsx(xb,{to:"/request_reset",style:{textDecoration:"none",color:Yd.palette.secondary.main},children:"Reset it here"})]})]}),o===1&&u.jsxs("form",{onSubmit:ce,children:[u.jsx(qe,{label:"Username",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:s,onChange:K=>a(K.target.value)}),u.jsx(qe,{label:"Email",type:"email",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:l,onChange:K=>c(K.target.value)}),u.jsx(qe,{label:"Password",type:y?"text":"password",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:h,onChange:K=>b(K.target.value),InputProps:{endAdornment:u.jsx(Qe,{onClick:ee,edge:"end",children:y?u.jsx(by,{}):u.jsx(xy,{})})}}),u.jsx(qe,{label:"Name",variant:"outlined",margin:"normal",fullWidth:!0,value:C,onChange:K=>g(K.target.value)}),u.jsx(qe,{label:"Age",type:"number",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:m,onChange:K=>x(K.target.value)}),u.jsxs(Gu,{required:!0,fullWidth:!0,margin:"normal",children:[u.jsx(Yu,{children:"Gender"}),u.jsxs(Oa,{value:w,label:"Gender",onChange:K=>k(K.target.value),children:[u.jsx(Un,{value:"",children:"Select Gender"}),u.jsx(Un,{value:"male",children:"Male"}),u.jsx(Un,{value:"female",children:"Female"}),u.jsx(Un,{value:"other",children:"Other"})]})]}),u.jsx(qe,{label:"Place of Residence",variant:"outlined",margin:"normal",fullWidth:!0,value:P,onChange:K=>R(K.target.value)}),u.jsx(qe,{label:"Field of Work",variant:"outlined",margin:"normal",fullWidth:!0,value:E,onChange:K=>j(K.target.value)}),u.jsxs(J2,{sx:{marginTop:"10px"},children:[u.jsx(ye,{variant:"body1",gutterBottom:!0,children:"Select any mental stressors you are currently experiencing to help us better tailor your therapy sessions."}),$.map(K=>u.jsx(vm,{control:u.jsx(pm,{checked:_.includes(K.id),onChange:G,value:K.id}),label:u.jsxs(Ke,{display:"flex",alignItems:"center",children:[K.name,u.jsx(Hn,{title:u.jsx(ye,{variant:"body2",children:XL(K.id)}),arrow:!0,placement:"right",children:u.jsx(Lm,{color:"action",style:{marginLeft:4,fontSize:20}})})]})},K.id))]}),u.jsx(gt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,sx:{mt:2},disabled:T,children:T?u.jsx(kn,{size:24}):"Sign Up"})]}),o===2&&u.jsx("form",{onSubmit:Z,children:u.jsx(gt,{type:"submit",variant:"outlined",color:"secondary",fullWidth:!0,sx:{mt:2},disabled:T,children:T?u.jsx(kn,{size:24}):"Anonymous Sign-In"})})]}),u.jsx(lo,{open:M,autoHideDuration:6e3,onClose:U,children:u.jsx(ur,{onClose:U,severity:z,sx:{width:"100%"},children:N})})]})})]})}function XL(e){switch(e){case"job_search":return"Feelings of stress stemming from the job search process.";case"classwork":return"Stress related to managing coursework and academic responsibilities.";case"social_anxiety":return"Anxiety experienced during social interactions or in anticipation of social interactions.";case"impostor_syndrome":return"Persistent doubt concerning one's abilities or accomplishments coupled with a fear of being exposed as a fraud.";case"career_drift":return"Stress from uncertainty or dissatisfaction with one's career path or progress.";default:return"No description available."}}var Am={},QL=de;Object.defineProperty(Am,"__esModule",{value:!0});var lS=Am.default=void 0,JL=QL(ge()),ZL=u;lS=Am.default=(0,JL.default)((0,ZL.jsx)("path",{d:"M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"}),"VpnKey");var zm={},eA=de;Object.defineProperty(zm,"__esModule",{value:!0});var cS=zm.default=void 0,tA=eA(ge()),nA=u;cS=zm.default=(0,tA.default)((0,nA.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");const Sy=Ea({palette:{primary:{main:"#3F51B5"},secondary:{main:"#F6AE2D"}}}),rA=()=>{const{changePassword:e}=p.useContext(lr),[t,n]=p.useState(""),[r,o]=p.useState(""),[i,s]=p.useState(!1),[a,l]=p.useState(""),[c,d]=p.useState("success"),{userId:f}=xa(),h=async b=>{b.preventDefault();const y=await e(f,t,r);l(y.message),d(y.success?"success":"error"),s(!0)};return u.jsx(Qh,{theme:Sy,children:u.jsx(K2,{component:"main",maxWidth:"xs",sx:{background:"#fff",borderRadius:"8px",boxShadow:"0px 2px 4px rgba(0,0,0,0.2)"},children:u.jsxs(Ke,{sx:{marginTop:8,display:"flex",flexDirection:"column",alignItems:"center"},children:[u.jsx(ye,{component:"h1",variant:"h5",children:"Update Password"}),u.jsxs("form",{onSubmit:h,style:{width:"100%",marginTop:Sy.spacing(1)},children:[u.jsx(qe,{variant:"outlined",margin:"normal",required:!0,fullWidth:!0,id:"current-password",label:"Current Password",name:"currentPassword",autoComplete:"current-password",type:"password",value:t,onChange:b=>n(b.target.value),InputProps:{startAdornment:u.jsx(cS,{color:"primary",style:{marginRight:"10px"}})}}),u.jsx(qe,{variant:"outlined",margin:"normal",required:!0,fullWidth:!0,id:"new-password",label:"New Password",name:"newPassword",autoComplete:"new-password",type:"password",value:r,onChange:b=>o(b.target.value),InputProps:{startAdornment:u.jsx(lS,{color:"secondary",style:{marginRight:"10px"}})}}),u.jsx(gt,{type:"submit",fullWidth:!0,variant:"contained",color:"primary",sx:{mt:3,mb:2},children:"Update Password"})]}),u.jsx(lo,{open:i,autoHideDuration:6e3,onClose:()=>s(!1),children:u.jsx(ur,{onClose:()=>s(!1),severity:c,sx:{width:"100%"},children:a})})]})})})};var Dm={},oA=de;Object.defineProperty(Dm,"__esModule",{value:!0});var uS=Dm.default=void 0,iA=oA(ge()),sA=u;uS=Dm.default=(0,iA.default)((0,sA.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"}),"Email");var Fm={},aA=de;Object.defineProperty(Fm,"__esModule",{value:!0});var dS=Fm.default=void 0,lA=aA(ge()),cA=u;dS=Fm.default=(0,lA.default)((0,cA.jsx)("path",{d:"M12 6c1.11 0 2-.9 2-2 0-.38-.1-.73-.29-1.03L12 0l-1.71 2.97c-.19.3-.29.65-.29 1.03 0 1.1.9 2 2 2m4.6 9.99-1.07-1.07-1.08 1.07c-1.3 1.3-3.58 1.31-4.89 0l-1.07-1.07-1.09 1.07C6.75 16.64 5.88 17 4.96 17c-.73 0-1.4-.23-1.96-.61V21c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-4.61c-.56.38-1.23.61-1.96.61-.92 0-1.79-.36-2.44-1.01M18 9h-5V7h-2v2H6c-1.66 0-3 1.34-3 3v1.54c0 1.08.88 1.96 1.96 1.96.52 0 1.02-.2 1.38-.57l2.14-2.13 2.13 2.13c.74.74 2.03.74 2.77 0l2.14-2.13 2.13 2.13c.37.37.86.57 1.38.57 1.08 0 1.96-.88 1.96-1.96V12C21 10.34 19.66 9 18 9"}),"Cake");var Bm={},uA=de;Object.defineProperty(Bm,"__esModule",{value:!0});var fS=Bm.default=void 0,dA=uA(ge()),fA=u;fS=Bm.default=(0,dA.default)((0,fA.jsx)("path",{d:"M5.5 22v-7.5H4V9c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2v5.5H9.5V22zM18 22v-6h3l-2.54-7.63C18.18 7.55 17.42 7 16.56 7h-.12c-.86 0-1.63.55-1.9 1.37L12 16h3v6zM7.5 6c1.11 0 2-.89 2-2s-.89-2-2-2-2 .89-2 2 .89 2 2 2m9 0c1.11 0 2-.89 2-2s-.89-2-2-2-2 .89-2 2 .89 2 2 2"}),"Wc");var Wm={},pA=de;Object.defineProperty(Wm,"__esModule",{value:!0});var pS=Wm.default=void 0,hA=pA(ge()),mA=u;pS=Wm.default=(0,hA.default)((0,mA.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home");var Um={},gA=de;Object.defineProperty(Um,"__esModule",{value:!0});var hS=Um.default=void 0,vA=gA(ge()),yA=u;hS=Um.default=(0,vA.default)((0,yA.jsx)("path",{d:"M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-6 0h-4V4h4z"}),"Work");var Hm={},xA=de;Object.defineProperty(Hm,"__esModule",{value:!0});var Vm=Hm.default=void 0,bA=xA(ge()),SA=u;Vm=Hm.default=(0,bA.default)((0,SA.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 4c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6m0 14c-2.03 0-4.43-.82-6.14-2.88C7.55 15.8 9.68 15 12 15s4.45.8 6.14 2.12C16.43 19.18 14.03 20 12 20"}),"AccountCircle");var qm={},CA=de;Object.defineProperty(qm,"__esModule",{value:!0});var mS=qm.default=void 0,wA=CA(ge()),kA=u;mS=qm.default=(0,wA.default)((0,kA.jsx)("path",{d:"M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8z"}),"Update");const RA=B(iS)({background:"#fff",borderRadius:"8px",boxShadow:"0 2px 4px rgba(0,0,0,0.1)",margin:"20px 0",maxWidth:"100%",overflow:"hidden"}),Cy=B(jl)({fontSize:"1rem",fontWeight:"bold",color:"#3F51B5",marginRight:"4px",marginLeft:"4px",flex:1,maxWidth:"none","&.Mui-selected":{color:"#F6AE2D",background:"#e0e0e0"},"&:hover":{background:"#f4f4f4",transition:"background-color 0.3s"},"@media (max-width: 720px)":{padding:"6px 12px",fontSize:"0.8rem"}}),PA=Ea({palette:{primary:{main:"#3F51B5"},secondary:{main:"#F6AE2D"},background:{default:"#e0e0e0"}},typography:{fontFamily:'"Open Sans", "Helvetica", "Arial", sans-serif',button:{textTransform:"none",fontWeight:"bold"}},components:{MuiButton:{styleOverrides:{root:{boxShadow:"none",borderRadius:8,"&:hover":{boxShadow:"0px 2px 4px rgba(0,0,0,0.2)"}}}},MuiPaper:{styleOverrides:{root:{padding:"20px",borderRadius:"10px",boxShadow:"0px 4px 12px rgba(0,0,0,0.1)"}}}}}),EA=B(gn)(({theme:e})=>({marginTop:e.spacing(2),padding:e.spacing(2),display:"flex",flexDirection:"column",alignItems:"center",gap:e.spacing(2),boxShadow:e.shadows[3]}));function $A(){const{userId:e}=xa(),[t,n]=p.useState({username:"",name:"",email:"",age:"",gender:"",placeOfResidence:"",fieldOfWork:"",mental_health_concerns:[]}),[r,o]=p.useState(0),i=(g,m)=>{o(m)},[s,a]=p.useState(""),[l,c]=p.useState(!1),[d,f]=p.useState("info");p.useEffect(()=>{if(!e){console.error("User ID is undefined");return}(async()=>{try{const m=await ve.get(`/api/user/profile/${e}`);console.log("Fetched data:",m.data);const x={username:m.data.username||"",name:m.data.name||"",email:m.data.email||"",age:m.data.age||"",gender:m.data.gender||"",placeOfResidence:m.data.placeOfResidence||"Not specified",fieldOfWork:m.data.fieldOfWork||"Not specified",mental_health_concerns:m.data.mental_health_concerns||[]};console.log("Formatted data:",x),n(x)}catch{a("Failed to fetch user data"),f("error"),c(!0)}})()},[e]);const h=[{label:"Stress from Job Search",value:"job_search"},{label:"Stress from Classwork",value:"classwork"},{label:"Social Anxiety",value:"social_anxiety"},{label:"Impostor Syndrome",value:"impostor_syndrome"},{label:"Career Drift",value:"career_drift"}];console.log("current mental health concerns: ",t.mental_health_concerns);const b=g=>{const{name:m,checked:x}=g.target;n(w=>{const k=x?[...w.mental_health_concerns,m]:w.mental_health_concerns.filter(P=>P!==m);return{...w,mental_health_concerns:k}})},y=g=>{const{name:m,value:x}=g.target;n(w=>({...w,[m]:x}))},v=async g=>{g.preventDefault();try{await ve.patch(`/api/user/profile/${e}`,t),a("Profile updated successfully!"),f("success")}catch{a("Failed to update profile"),f("error")}c(!0)},C=()=>{c(!1)};return u.jsxs(Qh,{theme:PA,children:[u.jsx(hm,{}),u.jsxs(K2,{component:"main",maxWidth:"md",children:[u.jsxs(RA,{value:r,onChange:i,centered:!0,children:[u.jsx(Cy,{label:"Profile"}),u.jsx(Cy,{label:"Update Password"})]}),r===0&&u.jsxs(EA,{component:"form",onSubmit:v,sx:{maxHeight:"81vh",overflow:"auto"},children:[u.jsxs(ye,{variant:"h5",style:{fontWeight:700},children:[u.jsx(Vm,{style:{marginRight:"10px"}})," ",t.username]}),u.jsx(qe,{fullWidth:!0,label:"Name",variant:"outlined",name:"name",value:t.name||"",onChange:y,InputProps:{startAdornment:u.jsx(Qe,{position:"start",children:u.jsx(Xu,{})})}}),u.jsx(qe,{fullWidth:!0,label:"Email",variant:"outlined",name:"email",value:t.email||"",onChange:y,InputProps:{startAdornment:u.jsx(Qe,{position:"start",children:u.jsx(uS,{})})}}),u.jsx(qe,{fullWidth:!0,label:"Age",variant:"outlined",name:"age",type:"number",value:t.age||"",onChange:y,InputProps:{startAdornment:u.jsx(Qe,{children:u.jsx(dS,{})})}}),u.jsxs(Gu,{fullWidth:!0,children:[u.jsx(Yu,{children:"Gender"}),u.jsxs(Oa,{name:"gender",value:t.gender||"",label:"Gender",onChange:y,startAdornment:u.jsx(Qe,{children:u.jsx(fS,{})}),children:[u.jsx(Un,{value:"male",children:"Male"}),u.jsx(Un,{value:"female",children:"Female"}),u.jsx(Un,{value:"other",children:"Other"})]})]}),u.jsx(qe,{fullWidth:!0,label:"Place of Residence",variant:"outlined",name:"placeOfResidence",value:t.placeOfResidence||"",onChange:y,InputProps:{startAdornment:u.jsx(Qe,{children:u.jsx(pS,{})})}}),u.jsx(qe,{fullWidth:!0,label:"Field of Work",variant:"outlined",name:"fieldOfWork",value:t.fieldOfWork||"",onChange:y,InputProps:{startAdornment:u.jsx(Qe,{position:"start",children:u.jsx(hS,{})})}}),u.jsx(J2,{children:h.map((g,m)=>(console.log(`Is "${g.label}" checked?`,t.mental_health_concerns.includes(g.value)),u.jsx(vm,{control:u.jsx(pm,{checked:t.mental_health_concerns.includes(g.value),onChange:b,name:g.value}),label:u.jsxs(Ke,{display:"flex",alignItems:"center",children:[g.label,u.jsx(Hn,{title:u.jsx(ye,{variant:"body2",children:TA(g.value)}),arrow:!0,placement:"right",children:u.jsx(Lm,{color:"action",style:{marginLeft:4,fontSize:20}})})]})},m)))}),u.jsxs(gt,{type:"submit",color:"primary",variant:"contained",children:[u.jsx(mS,{style:{marginRight:"10px"}}),"Update Profile"]})]}),r===1&&u.jsx(rA,{userId:e}),u.jsx(lo,{open:l,autoHideDuration:6e3,onClose:C,children:u.jsx(ur,{onClose:C,severity:d,sx:{width:"100%"},children:s})})]})]})}function TA(e){switch(e){case"job_search":return"Feelings of stress stemming from the job search process.";case"classwork":return"Stress related to managing coursework and academic responsibilities.";case"social_anxiety":return"Anxiety experienced during social interactions or in anticipation of social interactions.";case"impostor_syndrome":return"Persistent doubt concerning one's abilities or accomplishments coupled with a fear of being exposed as a fraud.";case"career_drift":return"Stress from uncertainty or dissatisfaction with one's career path or progress.";default:return"No description available."}}var Km={},_A=de;Object.defineProperty(Km,"__esModule",{value:!0});var gS=Km.default=void 0,jA=_A(ge()),wy=u;gS=Km.default=(0,jA.default)([(0,wy.jsx)("path",{d:"M22 9 12 2 2 9h9v13h2V9z"},"0"),(0,wy.jsx)("path",{d:"m4.14 12-1.96.37.82 4.37V22h2l.02-4H7v4h2v-6H4.9zm14.96 4H15v6h2v-4h1.98l.02 4h2v-5.26l.82-4.37-1.96-.37z"},"1")],"Deck");var Gm={},OA=de;Object.defineProperty(Gm,"__esModule",{value:!0});var vS=Gm.default=void 0,IA=OA(ge()),MA=u;vS=Gm.default=(0,IA.default)((0,MA.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5m-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11m3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5"}),"InsertEmoticon");var Ym={},NA=de;Object.defineProperty(Ym,"__esModule",{value:!0});var Xm=Ym.default=void 0,LA=NA(ge()),AA=u;Xm=Ym.default=(0,LA.default)((0,AA.jsx)("path",{d:"M19 5v14H5V5zm1.1-2H3.9c-.5 0-.9.4-.9.9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9M11 7h6v2h-6zm0 4h6v2h-6zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7z"}),"ListAlt");var Qm={},zA=de;Object.defineProperty(Qm,"__esModule",{value:!0});var yS=Qm.default=void 0,DA=zA(ge()),FA=u;yS=Qm.default=(0,DA.default)((0,FA.jsx)("path",{d:"M10.09 15.59 11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"ExitToApp");var Jm={},BA=de;Object.defineProperty(Jm,"__esModule",{value:!0});var xS=Jm.default=void 0,WA=BA(ge()),UA=u;xS=Jm.default=(0,WA.default)((0,UA.jsx)("path",{d:"M16.53 11.06 15.47 10l-4.88 4.88-2.12-2.12-1.06 1.06L10.59 17zM19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V8h14z"}),"EventAvailable");var Zm={},HA=de;Object.defineProperty(Zm,"__esModule",{value:!0});var bS=Zm.default=void 0,VA=HA(ge()),ky=u;bS=Zm.default=(0,VA.default)([(0,ky.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,ky.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"Schedule");var eg={},qA=de;Object.defineProperty(eg,"__esModule",{value:!0});var SS=eg.default=void 0,KA=qA(ge()),GA=u;SS=eg.default=(0,KA.default)((0,GA.jsx)("path",{d:"m22.69 18.37 1.14-1-1-1.73-1.45.49c-.32-.27-.68-.48-1.08-.63L20 14h-2l-.3 1.49c-.4.15-.76.36-1.08.63l-1.45-.49-1 1.73 1.14 1c-.08.5-.08.76 0 1.26l-1.14 1 1 1.73 1.45-.49c.32.27.68.48 1.08.63L18 24h2l.3-1.49c.4-.15.76-.36 1.08-.63l1.45.49 1-1.73-1.14-1c.08-.51.08-.77 0-1.27M19 21c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2M11 7v5.41l2.36 2.36 1.04-1.79-1.4-1.39V7zm10 5c0-4.97-4.03-9-9-9-2.83 0-5.35 1.32-7 3.36V4H3v6h6V8H6.26C7.53 6.19 9.63 5 12 5c3.86 0 7 3.14 7 7zm-10.14 6.91c-2.99-.49-5.35-2.9-5.78-5.91H3.06c.5 4.5 4.31 8 8.94 8h.07z"}),"ManageHistory");const Ry=230;function YA(){const{logout:e,user:t}=p.useContext(lr),n=oo(),r=i=>n.pathname===i,o=[{text:"Mind Chat",icon:u.jsx(gS,{}),path:"/"},...t!=null&&t.userId?[{text:"Track Your Vibes",icon:u.jsx(vS,{}),path:"/user/mood_logging"},{text:"Mood Logs",icon:u.jsx(Xm,{}),path:"/user/mood_logs"},{text:"Schedule Check-In",icon:u.jsx(bS,{}),path:"/user/check_in"},{text:"Check-In Reporting",icon:u.jsx(xS,{}),path:`/user/check_ins/${t==null?void 0:t.userId}`},{text:"Chat Log Manager",icon:u.jsx(SS,{}),path:"/user/chat_log_Manager"}]:[]];return u.jsx(FI,{sx:{width:Ry,flexShrink:0,mt:8,"& .MuiDrawer-paper":{width:Ry,boxSizing:"border-box",position:"relative",height:"91vh",top:0,overflowX:"hidden",borderRadius:2,boxShadow:1}},variant:"permanent",anchor:"left",children:u.jsxs(ja,{children:[o.map(i=>u.jsx(WP,{to:i.path,style:{textDecoration:"none",color:"inherit"},children:u.jsxs(xc,{button:!0,sx:{backgroundColor:r(i.path)?"rgba(25, 118, 210, 0.5)":"inherit","&:hover":{bgcolor:"grey.200"}},children:[u.jsx(iy,{children:i.icon}),u.jsx(da,{primary:i.text})]})},i.text)),u.jsxs(xc,{button:!0,onClick:e,children:[u.jsx(iy,{children:u.jsx(yS,{})}),u.jsx(da,{primary:"Logout"})]})]})})}var tg={},XA=de;Object.defineProperty(tg,"__esModule",{value:!0});var CS=tg.default=void 0,QA=XA(ge()),JA=u;CS=tg.default=(0,QA.default)((0,JA.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");var ng={},ZA=de;Object.defineProperty(ng,"__esModule",{value:!0});var wS=ng.default=void 0,ez=ZA(ge()),tz=u;wS=ng.default=(0,ez.default)((0,tz.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2m6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1z"}),"Notifications");var rg={},nz=de;Object.defineProperty(rg,"__esModule",{value:!0});var kS=rg.default=void 0,rz=nz(ge()),oz=u;kS=rg.default=(0,rz.default)((0,oz.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel");function iz({toggleSidebar:e}){const{incrementNotificationCount:t,notifications:n,addNotification:r,removeNotification:o}=p.useContext(lr),i=Ao(),{user:s}=p.useContext(lr),[a,l]=p.useState(null),c=localStorage.getItem("token"),d=s==null?void 0:s.userId;console.log("User ID:",d),p.useEffect(()=>{d?f():console.error("No user ID available from URL parameters.")},[d]);const f=async()=>{if(!d){console.error("User ID is missing in context");return}try{const C=(await ve.get(`/api/check-in/missed?user_id=${d}`,{headers:{Authorization:`Bearer ${c}`}})).data;console.log("Missed check-ins:",C),C.length>0?C.forEach(g=>{r({title:`Missed Check-in on ${new Date(g.check_in_time).toLocaleString()}`,message:"Please complete your check-in."})}):r({title:"You have no missed check-ins.",message:""})}catch(v){console.error("Failed to fetch missed check-ins:",v),r({title:"Failed to fetch missed check-ins. Please check the console for more details.",message:""})}},h=v=>{l(v.currentTarget)},b=v=>{l(null),o(v)},y=()=>{s&&s.userId?i(`/user/profile/${s.userId}`):console.error("User ID not found")};return p.useEffect(()=>{const v=C=>{C.data&&C.data.msg==="updateCount"&&(console.log("Received message from service worker:",C.data),r({title:C.data.title,message:C.data.body}),t())};return navigator.serviceWorker.addEventListener("message",v),()=>{navigator.serviceWorker.removeEventListener("message",v)}},[]),u.jsx(C_,{position:"fixed",sx:{zIndex:v=>v.zIndex.drawer+1},children:u.jsxs(D6,{children:[u.jsx(Qe,{onClick:e,color:"inherit",edge:"start",sx:{marginRight:2},children:u.jsx(CS,{})}),u.jsx(ye,{variant:"h6",noWrap:!0,component:"div",sx:{flexGrow:1},children:"Dashboard"}),(s==null?void 0:s.userId)&&u.jsx(Qe,{color:"inherit",onClick:h,children:u.jsx(rO,{badgeContent:n.length,color:"secondary",children:u.jsx(wS,{})})}),u.jsx(nS,{anchorEl:a,open:!!a,onClose:()=>b(null),children:n.map((v,C)=>u.jsx(Un,{onClick:()=>b(C),sx:{whiteSpace:"normal",maxWidth:350,padding:1},children:u.jsxs(qu,{elevation:2,sx:{display:"flex",alignItems:"center",width:"100%"},children:[u.jsx(kS,{color:"error"}),u.jsxs(fm,{sx:{flex:"1 1 auto"},children:[u.jsx(ye,{variant:"subtitle1",sx:{fontWeight:"bold"},children:v.title}),u.jsx(ye,{variant:"body2",color:"text.secondary",children:v.message})]})]})},C))}),(s==null?void 0:s.userId)&&u.jsx(Qe,{color:"inherit",onClick:y,children:u.jsx(Vm,{})})]})})}var og={},sz=de;Object.defineProperty(og,"__esModule",{value:!0});var RS=og.default=void 0,az=sz(ge()),lz=u;RS=og.default=(0,az.default)((0,lz.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M17 13l-5 5-5-5h3V9h4v4z"}),"CloudDownload");var ig={},cz=de;Object.defineProperty(ig,"__esModule",{value:!0});var wp=ig.default=void 0,uz=cz(ge()),dz=u;wp=ig.default=(0,uz.default)((0,dz.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"DeleteForever");var sg={},fz=de;Object.defineProperty(sg,"__esModule",{value:!0});var PS=sg.default=void 0,pz=fz(ge()),hz=u;PS=sg.default=(0,pz.default)((0,hz.jsx)("path",{d:"M9 11H7v2h2zm4 0h-2v2h2zm4 0h-2v2h2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 16H5V9h14z"}),"DateRange");const mz=B(gn)(({theme:e})=>({padding:e.spacing(3),borderRadius:e.shape.borderRadius,boxShadow:1,maxWidth:"100%",margin:"auto",marginTop:e.spacing(2),backgroundColor:"#fff",overflow:"auto"})),ll=B(gt)(({theme:e})=>({margin:e.spacing(0),paddingLeft:e.spacing(1),paddingRight:e.spacing(3)}));function gz(){const[e,t]=Vt.useState(!1),[n,r]=p.useState(!1),[o,i]=Vt.useState(""),[s,a]=Vt.useState("info"),[l,c]=p.useState(!1),[d,f]=p.useState(""),[h,b]=p.useState(""),[y,v]=p.useState(!1),C=(k,P)=>{P!=="clickaway"&&t(!1)},g=()=>{r(!1)},m=k=>{v(k),r(!0)},x=async(k=!1)=>{var P,R;c(!0);try{const E=k?"/api/user/download_chat_logs/range":"/api/user/download_chat_logs",j=k?{params:{start_date:d,end_date:h}}:{},T=await ve.get(E,{...j,headers:{Authorization:`Bearer ${localStorage.getItem("token")}`},responseType:"blob"}),O=window.URL.createObjectURL(new Blob([T.data])),M=document.createElement("a");M.href=O,M.setAttribute("download",k?"chat_logs_range.csv":"chat_logs.csv"),document.body.appendChild(M),M.click(),i("Chat logs downloaded successfully."),a("success")}catch(E){i(`Failed to download chat logs: ${((R=(P=E.response)==null?void 0:P.data)==null?void 0:R.error)||E.message}`),a("error")}finally{c(!1)}t(!0)},w=async()=>{var k,P;r(!1),c(!0);try{const R=y?"/api/user/delete_chat_logs/range":"/api/user/delete_chat_logs",E=y?{params:{start_date:d,end_date:h}}:{},j=await ve.delete(R,{...E,headers:{Authorization:`Bearer ${localStorage.getItem("token")}`}});i(j.data.message),a("success")}catch(R){i(`Failed to delete chat logs: ${((P=(k=R.response)==null?void 0:k.data)==null?void 0:P.error)||R.message}`),a("error")}finally{c(!1)}t(!0)};return u.jsxs(mz,{sx:{height:"91vh"},children:[u.jsx(ye,{variant:"h4",gutterBottom:!0,children:"Manage Your Chat Logs"}),u.jsx(ye,{variant:"body1",paragraph:!0,children:"Manage your chat logs efficiently by downloading or deleting entries for specific dates or entire ranges. Please be cautious as deletion is permanent."}),u.jsxs("div",{style:{display:"flex",justifyContent:"center",flexDirection:"column",alignItems:"center",gap:20},children:[u.jsxs("div",{style:{display:"flex",gap:10,marginBottom:20},children:[u.jsx(qe,{label:"Start Date",type:"date",value:d,onChange:k=>f(k.target.value),InputLabelProps:{shrink:!0}}),u.jsx(qe,{label:"End Date",type:"date",value:h,onChange:k=>b(k.target.value),InputLabelProps:{shrink:!0}})]}),u.jsx(ye,{variant:"body1",paragraph:!0,children:"Here you can download your chat logs as a CSV file, which includes details like chat IDs, content, type, and additional information for each session."}),u.jsx(Hn,{title:"Download chat logs for selected date range",children:u.jsx(ll,{variant:"outlined",startIcon:u.jsx(PS,{}),onClick:()=>x(!0),disabled:l||!d||!h,children:l?u.jsx(kn,{size:24,color:"inherit"}):"Download Range"})}),u.jsx(Hn,{title:"Download your chat logs as a CSV file",children:u.jsx(ll,{variant:"contained",color:"primary",startIcon:u.jsx(RS,{}),onClick:()=>x(!1),disabled:l,children:l?u.jsx(kn,{size:24,color:"inherit"}):"Download Chat Logs"})}),u.jsx(ye,{variant:"body1",paragraph:!0,children:"If you need to clear your history for privacy or other reasons, you can also permanently delete your chat logs from the server."}),u.jsx(Hn,{title:"Delete chat logs for selected date range",children:u.jsx(ll,{variant:"outlined",color:"warning",startIcon:u.jsx(wp,{}),onClick:()=>m(!0),disabled:l||!d||!h,children:l?u.jsx(kn,{size:24,color:"inherit"}):"Delete Range"})}),u.jsx(Hn,{title:"Permanently delete all your chat logs",children:u.jsx(ll,{variant:"contained",color:"secondary",startIcon:u.jsx(wp,{}),onClick:()=>m(!1),disabled:l,children:l?u.jsx(kn,{size:24,color:"inherit"}):"Delete Chat Logs"})}),u.jsx(ye,{variant:"body1",paragraph:!0,children:"Please use these options carefully as deleting your chat logs is irreversible."})]}),u.jsxs(yp,{open:n,onClose:g,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[u.jsx(Sp,{id:"alert-dialog-title",children:"Confirm Deletion"}),u.jsx(bp,{children:u.jsx(Y2,{id:"alert-dialog-description",children:"Are you sure you want to delete these chat logs? This action cannot be undone."})}),u.jsxs(xp,{children:[u.jsx(gt,{onClick:g,color:"primary",children:"Cancel"}),u.jsx(gt,{onClick:()=>w(),color:"secondary",autoFocus:!0,children:"Confirm"})]})]}),u.jsx(lo,{open:e,autoHideDuration:6e3,onClose:C,children:u.jsx(ur,{onClose:C,severity:s,sx:{width:"100%"},children:o})})]})}const Py=()=>{const{user:e,voiceEnabled:t}=p.useContext(lr),n=e==null?void 0:e.userId,[r,o]=p.useState(0),[i,s]=p.useState(0),[a,l]=p.useState(""),[c,d]=p.useState([]),[f,h]=p.useState(!1),[b,y]=p.useState(null),v=p.useRef([]),[C,g]=p.useState(!1),[m,x]=p.useState(!1),[w,k]=p.useState(""),[P,R]=p.useState("info"),[E,j]=p.useState(null),T=_=>{if(!t||_===E){j(null),window.speechSynthesis.cancel();return}const F=window.speechSynthesis,G=new SpeechSynthesisUtterance(_),X=F.getVoices();console.log(X.map(Z=>`${Z.name} - ${Z.lang} - ${Z.gender}`));const ce=X.find(Z=>Z.name.includes("Microsoft Zira - English (United States)"));ce?G.voice=ce:console.log("No female voice found"),G.onend=()=>{j(null)},j(_),F.speak(G)},O=(_,F)=>{F!=="clickaway"&&x(!1)},M=p.useCallback(async()=>{if(r!==null){g(!0);try{const _=await fetch(`/api/ai/mental_health/finalize/${n}/${r}`,{method:"POST",headers:{"Content-Type":"application/json"}}),F=await _.json();_.ok?(k("Chat finalized successfully"),R("success"),o(null),s(0),d([])):(k("Failed to finalize chat"),R("error"))}catch{k("Error finalizing chat"),R("error")}finally{g(!1),x(!0)}}},[n,r]),I=p.useCallback(async()=>{if(a.trim()){console.log(r),g(!0);try{const _=JSON.stringify({prompt:a,turn_id:i}),F=await fetch(`/api/ai/mental_health/${n}/${r}`,{method:"POST",headers:{"Content-Type":"application/json"},body:_}),G=await F.json();console.log(G),F.ok?(d(X=>[...X,{message:a,sender:"user"},{message:G,sender:"agent"}]),s(X=>X+1),l("")):(console.error("Failed to send message:",G),k(G.error||"An error occurred while sending the message."),R("error"),x(!0))}catch(_){console.error("Failed to send message:",_),k("Network or server error occurred."),R("error"),x(!0)}finally{g(!1)}}},[a,n,r,i]),N=()=>{navigator.mediaDevices.getUserMedia({audio:!0}).then(_=>{v.current=[];const F={mimeType:"audio/webm"},G=new MediaRecorder(_,F);G.ondataavailable=X=>{console.log("Data available:",X.data.size),v.current.push(X.data)},G.start(),y(G),h(!0)}).catch(console.error)},D=()=>{b&&(b.onstop=()=>{z(v.current),h(!1),y(null)},b.stop())},z=_=>{console.log("Audio chunks size:",_.reduce((X,ce)=>X+ce.size,0));const F=new Blob(_,{type:"audio/webm"});if(F.size===0){console.error("Audio Blob is empty");return}console.log(`Sending audio blob of size: ${F.size} bytes`);const G=new FormData;G.append("audio",F),g(!0),ve.post("/api/ai/mental_health/voice-to-text",G,{headers:{"Content-Type":"multipart/form-data"}}).then(X=>{const{message:ce}=X.data;l(ce),I()}).catch(X=>{console.error("Error uploading audio:",X),x(!0),k("Error processing voice input: "+X.message),R("error")}).finally(()=>{g(!1)})},W=p.useCallback(_=>{l(_.target.value)},[]),$=_=>_===E?u.jsx(Cc,{}):u.jsx(Sc,{});return u.jsxs(u.Fragment,{children:[u.jsx("style",{children:` @keyframes blink { 0%, 100% { opacity: 0; } 50% { opacity: 1; } @@ -221,4 +221,4 @@ Error generating stack: `+i.message+` font-size: 0.8rem; /* Smaller font size */ } } - `}),u.jsxs(Ke,{sx:{maxWidth:"100%",mx:"auto",my:2,display:"flex",flexDirection:"column",height:"91vh",borderRadius:2,boxShadow:1},children:[u.jsxs(qu,{sx:{display:"flex",flexDirection:"column",height:"100%",borderRadius:2,boxShadow:3},children:[u.jsxs(fm,{sx:{flexGrow:1,overflow:"auto",padding:3,position:"relative"},children:[u.jsx(Hn,{title:"Start a new chat",placement:"top",arrow:!0,children:u.jsx(Qe,{"aria-label":"new chat",color:"primary",onClick:M,disabled:C,sx:{position:"absolute",top:5,right:5,"&:hover":{backgroundColor:"primary.main",color:"common.white"}},children:u.jsx(jm,{})})}),c.length===0&&u.jsxs(Ke,{sx:{display:"flex",marginBottom:2,marginTop:3},children:[u.jsx(yr,{src:gi,sx:{width:44,height:44,marginRight:2},alt:"Aria"}),u.jsx(ve,{variant:"h4",component:"h1",gutterBottom:!0,children:"Welcome to Mental Health Companion"})]}),u.jsx(ja,{sx:{maxHeight:"100%",overflow:"auto"},children:c.map((_,F)=>u.jsx(xc,{sx:{display:"flex",flexDirection:"column",alignItems:_.sender==="user"?"flex-end":"flex-start",borderRadius:2,mb:.5,p:1,border:"none","&:before":{display:"none"},"&:after":{display:"none"}},children:u.jsxs(Ke,{sx:{display:"flex",alignItems:"center",color:_.sender==="user"?"common.white":"text.primary",borderRadius:"16px"},children:[_.sender==="agent"&&u.jsx(yr,{src:gi,sx:{width:36,height:36,mr:1},alt:"Aria"}),u.jsx(da,{primary:u.jsxs(Ke,{sx:{display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap"},children:[_.message,t&&_.sender==="agent"&&u.jsx(Qe,{onClick:()=>T(_.message),size:"small",sx:{ml:1},children:$(_.message)})]}),primaryTypographyProps:{sx:{color:_.sender==="user"?"common.white":"text.primary",bgcolor:_.sender==="user"?"primary.main":"grey.200",borderRadius:"16px",px:2,py:1,display:"inline-block"}}}),_.sender==="user"&&u.jsx(yr,{sx:{width:36,height:36,ml:1},children:u.jsx(Xu,{})})]})},F))})]}),u.jsx(ca,{}),u.jsxs(Ke,{sx:{p:2,pb:1,display:"flex",alignItems:"center",bgcolor:"background.paper"},children:[u.jsx(qe,{fullWidth:!0,variant:"outlined",placeholder:"Type your message here...",value:a,onChange:W,disabled:C,sx:{mr:1,flexGrow:1},InputProps:{endAdornment:u.jsx(yc,{position:"end",children:u.jsxs(Qe,{onClick:f?D:N,color:"primary.main","aria-label":f?"Stop recording":"Start recording",size:"large",edge:"end",disabled:C,children:[f?u.jsx(Pm,{size:"small"}):u.jsx(km,{size:"small"}),f&&u.jsx(kn,{size:30,sx:{color:"primary.main",position:"absolute",zIndex:1}})]})})}}),C?u.jsx(kn,{size:24}):u.jsx(gt,{variant:"contained",color:"primary",onClick:I,disabled:C||!a.trim(),endIcon:u.jsx(Ki,{}),children:"Send"})]})]}),u.jsx(lo,{open:m,autoHideDuration:6e3,onClose:O,children:u.jsx(ur,{elevation:6,variant:"filled",onClose:O,severity:P,children:w})})]})]})};var ag={},vz=de;Object.defineProperty(ag,"__esModule",{value:!0});var ES=ag.default=void 0,yz=vz(ge()),xz=u;ES=ag.default=(0,yz.default)((0,xz.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5m-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11m3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5"}),"Mood");function bz(){const[e,t]=p.useState(""),[n,r]=p.useState(""),[o,i]=p.useState(""),s=async()=>{const a=localStorage.getItem("token");if(!e||!n){i("Both mood and activities are required.");return}if(!a){i("You are not logged in.");return}try{const l=await ye.post("/api/user/log_mood",{mood:e,activities:n},{headers:{Authorization:`Bearer ${a}`}});i(l.data.message)}catch(l){i(l.response.data.error)}};return u.jsxs("div",{className:"mood-logging-container",children:[u.jsxs("h1",{children:[u.jsx(ES,{fontSize:"large"})," Track Your Vibes "]}),u.jsxs("div",{className:"mood-logging",children:[u.jsxs("div",{className:"input-group",children:[u.jsx("label",{htmlFor:"mood-input",children:"Mood:"}),u.jsx("input",{id:"mood-input",type:"text",value:e,onChange:a=>t(a.target.value),placeholder:"Enter your current mood"}),u.jsx("label",{htmlFor:"activities-input",children:"Activities:"}),u.jsx("input",{id:"activities-input",type:"text",value:n,onChange:a=>r(a.target.value),placeholder:"What are you doing?"})]}),u.jsx(gt,{variant:"contained",className:"submit-button",onClick:s,startIcon:u.jsx(Ki,{}),children:"Log Mood"}),o&&u.jsx("div",{className:"message",children:o})]})]})}function Sz(){const[e,t]=p.useState([]),[n,r]=p.useState("");p.useEffect(()=>{(async()=>{const s=localStorage.getItem("token");if(!s){r("You are not logged in.");return}try{const a=await ye.get("/api/user/get_mood_logs",{headers:{Authorization:`Bearer ${s}`}});console.log("Received data:",a.data),t(a.data.mood_logs||[])}catch(a){r(a.response.data.error)}})()},[]);const o=i=>{const s={year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"};try{const a=i.$date;return new Date(a).toLocaleDateString("en-US",s)}catch(a){return console.error("Date parsing error:",a),"Invalid Date"}};return u.jsxs("div",{className:"mood-logs",children:[u.jsxs("h2",{children:[u.jsx(Xm,{className:"icon-large"}),"Your Mood Journey"]}),n?u.jsx("div",{className:"error",children:n}):u.jsx("ul",{children:e.map((i,s)=>u.jsxs("li",{children:[u.jsxs("div",{children:[u.jsx("strong",{children:"Mood:"})," ",i.mood]}),u.jsxs("div",{children:[u.jsx("strong",{children:"Activities:"})," ",i.activities]}),u.jsxs("div",{children:[u.jsx("strong",{children:"Timestamp:"})," ",o(i.timestamp)]})]},s))})]})}function Cz(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}const $S=6e4,TS=36e5;function Xd(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}function wz(e,t){const n=Cz(e);if(isNaN(n.getTime()))throw new RangeError("Invalid time value");const r=(t==null?void 0:t.format)??"extended";let o="";const i=r==="extended"?"-":"";{const s=Xd(n.getDate(),2),a=Xd(n.getMonth()+1,2);o=`${Xd(n.getFullYear(),4)}${i}${a}${i}${s}`}return o}function kz(e,t){const r=$z(e);let o;if(r.date){const l=Tz(r.date,2);o=_z(l.restDateString,l.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);const i=o.getTime();let s=0,a;if(r.time&&(s=jz(r.time),isNaN(s)))return new Date(NaN);if(r.timezone){if(a=Oz(r.timezone),isNaN(a))return new Date(NaN)}else{const l=new Date(i+s),c=new Date(0);return c.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),c.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),c}return new Date(i+s+a)}const cl={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Rz=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Pz=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Ez=/^([+-])(\d{2})(?::?(\d{2}))?$/;function $z(e){const t={},n=e.split(cl.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],cl.timeZoneDelimiter.test(t.date)&&(t.date=e.split(cl.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const o=cl.timezone.exec(r);o?(t.time=r.replace(o[1],""),t.timezone=o[1]):t.time=r}return t}function Tz(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?o:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function _z(e,t){if(t===null)return new Date(NaN);const n=e.match(Rz);if(!n)return new Date(NaN);const r=!!n[4],o=hs(n[1]),i=hs(n[2])-1,s=hs(n[3]),a=hs(n[4]),l=hs(n[5])-1;if(r)return Az(t,a,l)?Iz(t,a,l):new Date(NaN);{const c=new Date(0);return!Nz(t,i,s)||!Lz(t,o)?new Date(NaN):(c.setUTCFullYear(t,i,Math.max(o,s)),c)}}function hs(e){return e?parseInt(e):1}function jz(e){const t=e.match(Pz);if(!t)return NaN;const n=Qd(t[1]),r=Qd(t[2]),o=Qd(t[3]);return zz(n,r,o)?n*TS+r*$S+o*1e3:NaN}function Qd(e){return e&&parseFloat(e.replace(",","."))||0}function Oz(e){if(e==="Z")return 0;const t=e.match(Ez);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return Dz(r,o)?n*(r*TS+o*$S):NaN}function Iz(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,i=(t-1)*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}const Mz=[31,null,31,30,31,30,31,31,30,31,30,31];function _S(e){return e%400===0||e%4===0&&e%100!==0}function Nz(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Mz[t]||(_S(e)?29:28))}function Lz(e,t){return t>=1&&t<=(_S(e)?366:365)}function Az(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function zz(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Dz(e,t){return t>=0&&t<=59}function kp({userId:e,update:t}){const[n,r]=p.useState(""),[o,i]=p.useState("daily"),[s,a]=p.useState(!1),{checkInId:l}=xa(),[c,d]=p.useState(!1),[f,h]=p.useState({open:!1,message:"",severity:"info"}),b=localStorage.getItem("token");p.useEffect(()=>{t&&l&&(d(!0),ye.get(`/api/check-in/${l}`,{headers:{Authorization:`Bearer ${b}`}}).then(C=>{const g=C.data;console.log("Fetched check-in data:",g);const m=wz(kz(g.check_in_time),{representation:"date"});r(m.slice(0,16)),i(g.frequency),a(g.notify),d(!1)}).catch(C=>{console.error("Failed to fetch check-in details:",C),d(!1)}))},[t,l]);const y=async C=>{var R,E,j;if(C.preventDefault(),new Date(n)<=new Date){h({open:!0,message:"Cannot schedule check-in in the past. Please choose a future time.",severity:"error"});return}const x=t?`/api/check-in/${l}`:"/api/check-in/schedule",w={headers:{Authorization:`Bearer ${b}`,"Content-Type":"application/json"}};console.log("URL:",x);const k=t?"patch":"post",P={user_id:e,check_in_time:n,frequency:o,notify:s};console.log("Submitting:",P);try{const T=await ye[k](x,P,w);console.log("Success:",T.data.message),h({open:!0,message:T.data.message,severity:"success"})}catch(T){console.error("Error:",((R=T.response)==null?void 0:R.data)||T);const O=((j=(E=T.response)==null?void 0:E.data)==null?void 0:j.error)||"An unexpected error occurred";h({open:!0,message:O,severity:"error"})}},v=(C,g)=>{g!=="clickaway"&&h({...f,open:!1})};return c?u.jsx(ve,{children:"Loading..."}):u.jsxs(Ke,{component:"form",onSubmit:y,noValidate:!0,sx:{mt:4,padding:3,borderRadius:2,boxShadow:3},children:[u.jsx(qe,{id:"datetime-local",label:"Check-in Time",type:"datetime-local",fullWidth:!0,value:n,onChange:C=>r(C.target.value),sx:{marginBottom:3},InputLabelProps:{shrink:!0},required:!0,helperText:"Select the date and time for your check-in."}),u.jsxs(Gu,{fullWidth:!0,sx:{marginBottom:3},children:[u.jsx(Yu,{id:"frequency-label",children:"Frequency"}),u.jsxs(Oa,{labelId:"frequency-label",id:"frequency",value:o,label:"Frequency",onChange:C=>i(C.target.value),children:[u.jsx(Un,{value:"daily",children:"Daily"}),u.jsx(Un,{value:"weekly",children:"Weekly"}),u.jsx(Un,{value:"monthly",children:"Monthly"})]}),u.jsx(Hn,{title:"Choose how often you want the check-ins to occur",children:u.jsx("i",{className:"fas fa-info-circle"})})]}),u.jsx(vm,{control:u.jsx(pm,{checked:s,onChange:C=>a(C.target.checked),color:"primary"}),label:"Notify me",sx:{marginBottom:2}}),u.jsx(gt,{type:"submit",fullWidth:!0,variant:"contained",color:"primary",sx:{mt:2,mb:2,padding:"10px 0"},children:t?"Update Check-In":"Schedule Check-In"}),u.jsx(lo,{open:f.open,autoHideDuration:6e3,onClose:v,children:u.jsx(ur,{onClose:v,severity:f.severity,children:f.message})})]})}kp.propTypes={userId:Id.string.isRequired,checkInId:Id.string,update:Id.bool.isRequired};var lg={},Fz=de;Object.defineProperty(lg,"__esModule",{value:!0});var jS=lg.default=void 0,Bz=Fz(ge()),Ey=u;jS=lg.default=(0,Bz.default)([(0,Ey.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,Ey.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");var cg={},Wz=de;Object.defineProperty(cg,"__esModule",{value:!0});var OS=cg.default=void 0,Uz=Wz(ge()),Hz=u;OS=cg.default=(0,Uz.default)((0,Hz.jsx)("path",{d:"M7 7h10v3l4-4-4-4v3H5v6h2zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2z"}),"Repeat");var ug={},Vz=de;Object.defineProperty(ug,"__esModule",{value:!0});var IS=ug.default=void 0,qz=Vz(ge()),Kz=u;IS=ug.default=(0,qz.default)((0,Kz.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert");var dg={},Gz=de;Object.defineProperty(dg,"__esModule",{value:!0});var MS=dg.default=void 0,Yz=Gz(ge()),Xz=u;MS=dg.default=(0,Yz.default)((0,Xz.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");var fg={},Qz=de;Object.defineProperty(fg,"__esModule",{value:!0});var NS=fg.default=void 0,Jz=Qz(ge()),Zz=u;NS=fg.default=(0,Jz.default)((0,Zz.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");const eD=B(qu)(({theme:e})=>({marginBottom:e.spacing(2),padding:e.spacing(2),display:"flex",alignItems:"center",justifyContent:"space-between",transition:"transform 0.1s ease-in-out","&:hover":{transform:"scale(1.01)",boxShadow:e.shadows[3]}})),tD=Vt.forwardRef(function(t,n){return u.jsx(ur,{elevation:6,ref:n,variant:"filled",...t})});function nD(){const{userId:e}=xa(),t=Ao(),[n,r]=p.useState([]),[o,i]=p.useState(null),[s,a]=p.useState(!1),[l,c]=p.useState(!1),[d,f]=p.useState(!1),[h,b]=p.useState(""),[y,v]=p.useState(!1),[C,g]=p.useState(""),[m,x]=p.useState("info"),w=localStorage.getItem("token");p.useEffect(()=>{k()},[e]);const k=async()=>{if(!e){b("User not logged in");return}if(!w){b("No token found, please log in again");return}f(!0);try{const M=await ye.get(`/api/check-in/all?user_id=${e}`,{headers:{Authorization:`Bearer ${w}`}});if(console.log("API Response:",M.data),Array.isArray(M.data)&&M.data.every(I=>I._id&&I._id.$oid&&I.check_in_time&&I.check_in_time.$date)){const I=M.data.map(N=>({...N,_id:N._id.$oid,check_in_time:new Date(N.check_in_time.$date).toLocaleString()}));r(I)}else console.error("Data received is not in expected array format:",M.data),b("Unexpected data format");f(!1)}catch(M){console.error("Error during fetch:",M),b(M.message),f(!1)}},P=M=>{const I=n.find(N=>N._id===M);I&&(i(I),console.log("Selected check-in for details or update:",I),a(!0))},R=()=>{a(!1),c(!1)},E=async()=>{if(o){try{await ye.delete(`/api/check-in/${o._id}`,{headers:{Authorization:`Bearer ${w}`}}),g("Check-in deleted successfully"),x("success"),k(),R()}catch{g("Failed to delete check-in"),x("error")}v(!0)}},j=()=>{t(`/user/check_in/${o._id}`),console.log("Redirecting to update check-in form",o._id)},T=(M,I)=>{I!=="clickaway"&&v(!1)},O=()=>{c(!0)};return e?d?u.jsx(ve,{variant:"h6",children:"Loading..."}):h?u.jsxs(ve,{variant:"h6",children:["Error: ",h]}):u.jsxs(Ke,{sx:{margin:3,maxWidth:600,mx:"auto",maxHeight:"91vh",overflow:"auto"},children:[u.jsx(ve,{variant:"h4",gutterBottom:!0,children:"Track Your Commitments"}),u.jsx(ca,{sx:{mb:2}}),n.length>0?u.jsx(ja,{children:n.map(M=>u.jsxs(eD,{children:[u.jsx(QM,{children:u.jsx(yr,{sx:{bgcolor:"primary.main"},children:u.jsx(jS,{})})}),u.jsx(da,{primary:`Check-In: ${M.check_in_time}`,secondary:u.jsx(R3,{label:M.frequency,icon:u.jsx(OS,{}),size:"small"})}),u.jsx(Hn,{title:"More options",children:u.jsx(Qe,{onClick:()=>P(M._id),children:u.jsx(IS,{})})})]},M._id))}):u.jsx(ve,{variant:"subtitle1",children:"No check-ins found."}),u.jsxs(yp,{open:s,onClose:R,children:[u.jsx(Sp,{children:"Check-In Details"}),u.jsx(bp,{children:u.jsxs(ve,{component:"div",children:[u.jsxs(ve,{variant:"body1",children:[u.jsx("strong",{children:"Time:"})," ",o==null?void 0:o.check_in_time]}),u.jsxs(ve,{variant:"body1",children:[u.jsx("strong",{children:"Frequency:"})," ",o==null?void 0:o.frequency]}),u.jsxs(ve,{variant:"body1",children:[u.jsx("strong",{children:"Status:"})," ",o==null?void 0:o.status]}),u.jsxs(ve,{variant:"body1",children:[u.jsx("strong",{children:"Notify:"})," ",o!=null&&o.notify?"Yes":"No"]})]})}),u.jsxs(xp,{children:[u.jsx(gt,{onClick:j,startIcon:u.jsx(NS,{}),children:"Update"}),u.jsx(gt,{onClick:O,startIcon:u.jsx(MS,{}),color:"error",children:"Delete"}),u.jsx(gt,{onClick:R,children:"Close"})]})]}),u.jsxs(yp,{open:l,onClose:R,children:[u.jsx(Sp,{children:"Confirm Deletion"}),u.jsx(bp,{children:u.jsx(Y2,{children:"Are you sure you want to delete this check-in? This action cannot be undone."})}),u.jsxs(xp,{children:[u.jsx(gt,{onClick:E,color:"error",children:"Delete"}),u.jsx(gt,{onClick:R,children:"Cancel"})]})]}),u.jsx(lo,{open:y,autoHideDuration:6e3,onClose:T,children:u.jsx(tD,{onClose:T,severity:m,children:C})})]}):u.jsx(ve,{variant:"h6",children:"Please log in to see your check-ins."})}const fr=({children:e})=>{const t=localStorage.getItem("token");return console.log("isAuthenticated:",t),t?e:u.jsx(TP,{to:"/auth",replace:!0})};var pg={},rD=de;Object.defineProperty(pg,"__esModule",{value:!0});var LS=pg.default=void 0,oD=rD(ge()),iD=u;LS=pg.default=(0,oD.default)((0,iD.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 14H4V8l8 5 8-5zm-8-7L4 6h16z"}),"MailOutline");function sD(){const[e,t]=p.useState(""),[n,r]=p.useState(""),[o,i]=p.useState(!1),[s,a]=p.useState(!1),l=async c=>{var d,f;c.preventDefault(),a(!0);try{const h=await ye.post("/api/user/request_reset",{email:e});r(h.data.message),i(!1)}catch(h){r(((f=(d=h.response)==null?void 0:d.data)==null?void 0:f.message)||"Failed to send reset link. Please try again."),i(!0)}a(!1)};return u.jsx(Ke,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",sx:{background:"linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)","& .MuiPaper-root":{background:"#fff",padding:"30px",width:"400px",textAlign:"center"}},children:u.jsxs(gn,{elevation:3,style:{padding:"30px",width:"400px",textAlign:"center"},children:[u.jsx(ve,{variant:"h5",component:"h1",marginBottom:"20px",children:"Reset Your Password"}),u.jsxs("form",{onSubmit:l,children:[u.jsx(qe,{label:"Email Address",type:"email",value:e,onChange:c=>t(c.target.value),variant:"outlined",fullWidth:!0,required:!0,margin:"normal",InputProps:{endAdornment:u.jsx(LS,{})}}),u.jsx(gt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,disabled:s,endIcon:s?null:u.jsx(Ki,{}),children:s?u.jsx(kn,{size:24}):"Send Reset Link"})]}),n&&u.jsx(ur,{severity:o?"error":"success",sx:{maxWidth:"325px",mt:2},children:n})]})})}var hg={},aD=de;Object.defineProperty(hg,"__esModule",{value:!0});var Rp=hg.default=void 0,lD=aD(ge()),cD=u;Rp=hg.default=(0,lD.default)((0,cD.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");var mg={},uD=de;Object.defineProperty(mg,"__esModule",{value:!0});var AS=mg.default=void 0,dD=uD(ge()),fD=u;AS=mg.default=(0,dD.default)((0,fD.jsx)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l4 4 4-4H6c0-3.86 3.14-7 7-7s7 3.14 7 7-3.14 7-7 7c-1.9 0-3.62-.76-4.88-1.99L6.7 18.42C8.32 20.01 10.55 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m2 8v-1c0-1.1-.9-2-2-2s-2 .9-2 2v1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1m-1 0h-2v-1c0-.55.45-1 1-1s1 .45 1 1z"}),"LockReset");function pD(){const e=Ao(),{token:t}=xa(),[n,r]=p.useState(""),[o,i]=p.useState(""),[s,a]=p.useState(!1),[l,c]=p.useState(""),[d,f]=p.useState(!1),h=async y=>{if(y.preventDefault(),n!==o){c("Passwords do not match."),f(!0);return}try{const v=await ye.post(`/api/user/reset_password/${t}`,{password:n});c(v.data.message),f(!1),setTimeout(()=>e("/auth"),2e3)}catch(v){c(v.response.data.error),f(!0)}},b=()=>{a(!s)};return u.jsx(Ke,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",sx:{background:"linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)","& .MuiPaper-root":{padding:"40px",width:"400px",textAlign:"center",marginTop:"20px",borderRadius:"10px"}},children:u.jsxs(gn,{elevation:6,children:[u.jsxs(ve,{variant:"h5",component:"h1",marginBottom:"2",children:["Reset Your Password ",u.jsx(AS,{})]}),u.jsxs("form",{onSubmit:h,children:[u.jsx(qe,{label:"New Password",type:s?"text":"password",value:n,onChange:y=>r(y.target.value),variant:"outlined",fullWidth:!0,required:!0,margin:"normal",InputProps:{endAdornment:u.jsx(yc,{position:"end",children:u.jsx(Qe,{"aria-label":"toggle password visibility",onClick:b,children:s?u.jsx(Rp,{}):u.jsx(wc,{})})})}}),u.jsx(qe,{label:"Confirm New Password",type:s?"text":"password",value:o,onChange:y=>i(y.target.value),variant:"outlined",fullWidth:!0,required:!0,margin:"normal",InputProps:{endAdornment:u.jsx(yc,{position:"end",children:u.jsx(Qe,{"aria-label":"toggle password visibility",onClick:b,children:s?u.jsx(Rp,{}):u.jsx(wc,{})})})}}),u.jsx(gt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,sx:{mt:2},endIcon:u.jsx(Ki,{}),children:"Reset Password"})]}),l&&u.jsx(ur,{severity:d?"error":"success",sx:{mt:2,maxWidth:"325px"},children:l})]})})}function hD(){const{user:e}=p.useContext(lr);return p.useEffect(()=>{document.body.style.backgroundColor="#f5f5f5"},[]),u.jsx(mD,{children:u.jsxs(jP,{children:[u.jsx(rn,{path:"/",element:u.jsx(fr,{children:e!=null&&e.userId?u.jsx(NL,{}):u.jsx(Py,{})})}),u.jsx(rn,{path:"/chat",element:u.jsx(fr,{children:u.jsx(Py,{})})}),u.jsx(rn,{path:"/reset_password/:token",element:u.jsx(pD,{})}),u.jsx(rn,{path:"/request_reset",element:u.jsx(sD,{})}),u.jsx(rn,{path:"/auth",element:u.jsx(YL,{})}),u.jsx(rn,{path:"/user/profile/:userId",element:u.jsx(fr,{children:u.jsx($A,{})})}),u.jsx(rn,{path:"/user/mood_logging",element:u.jsx(fr,{children:u.jsx(bz,{})})}),u.jsx(rn,{path:"/user/mood_logs",element:u.jsx(fr,{children:u.jsx(Sz,{})})}),u.jsx(rn,{path:"/user/check_in",element:u.jsx(fr,{children:u.jsx(kp,{userId:e==null?void 0:e.userId,checkInId:"",update:!1})})}),u.jsx(rn,{path:"/user/check_in/:checkInId",element:u.jsx(fr,{children:u.jsx(kp,{userId:e==null?void 0:e.userId,update:!0})})}),u.jsx(rn,{path:"/user/chat_log_Manager",element:u.jsx(fr,{children:u.jsx(gz,{})})}),u.jsx(rn,{path:"/user/check_ins/:userId",element:u.jsx(fr,{children:u.jsx(nD,{})})})]})})}function mD({children:e}){p.useContext(lr);const t=oo(),r=!["/auth","/request_reset",new RegExp("^/reset_password/[^/]+$")].some(l=>typeof l=="string"?l===t.pathname:l.test(t.pathname)),o=r?6:0,[i,s]=p.useState(!0),a=()=>{s(!i)};return u.jsxs(Ke,{sx:{display:"flex",maxHeight:"100vh"},children:[u.jsx(hm,{}),r&&u.jsx(iz,{toggleSidebar:a}),r&&i&&u.jsx(YA,{}),u.jsx(Ke,{component:"main",sx:{flexGrow:1,p:o},children:e})]})}function gD(e){const t="=".repeat((4-e.length%4)%4),n=(e+t).replace(/-/g,"+").replace(/_/g,"/"),r=window.atob(n),o=new Uint8Array(r.length);for(let i=0;i{if(t!=="granted")throw new Error("Permission not granted for Notification");return e.pushManager.getSubscription()}).then(function(t){return t||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:gD(yD)})}).then(function(t){console.log("Subscription:",t);const n={p256dh:btoa(String.fromCharCode.apply(null,new Uint8Array(t.getKey("p256dh")))),auth:btoa(String.fromCharCode.apply(null,new Uint8Array(t.getKey("auth"))))};if(console.log("Subscription keys:",n),!n.p256dh||!n.auth)throw console.error("Subscription object:",t),new Error("Subscription keys are missing");const r={endpoint:t.endpoint,keys:n},o=vD();if(!o)throw new Error("No token found");return fetch("/api/subscribe",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`},body:JSON.stringify(r)})}).then(t=>t.json()).then(t=>console.log("Subscription response:",t)).catch(t=>console.error("Subscription failed:",t))}).catch(function(e){console.error("Service Worker registration failed:",e)})});Jd.createRoot(document.getElementById("root")).render(u.jsx(DP,{children:u.jsx(qP,{children:u.jsx(hD,{})})})); + `}),u.jsxs(Ke,{sx:{maxWidth:"100%",mx:"auto",my:2,display:"flex",flexDirection:"column",height:"91vh",borderRadius:2,boxShadow:1},children:[u.jsxs(qu,{sx:{display:"flex",flexDirection:"column",height:"100%",borderRadius:2,boxShadow:3},children:[u.jsxs(fm,{sx:{flexGrow:1,overflow:"auto",padding:3,position:"relative"},children:[u.jsx(Hn,{title:"Start a new chat",placement:"top",arrow:!0,children:u.jsx(Qe,{"aria-label":"new chat",color:"primary",onClick:M,disabled:C,sx:{position:"absolute",top:5,right:5,"&:hover":{backgroundColor:"primary.main",color:"common.white"}},children:u.jsx(jm,{})})}),c.length===0&&u.jsxs(Ke,{sx:{display:"flex",marginBottom:2,marginTop:3},children:[u.jsx(yr,{src:gi,sx:{width:44,height:44,marginRight:2},alt:"Aria"}),u.jsx(ye,{variant:"h4",component:"h1",gutterBottom:!0,children:"Welcome to Mental Health Companion"})]}),u.jsx(ja,{sx:{maxHeight:"100%",overflow:"auto"},children:c.map((_,F)=>u.jsx(xc,{sx:{display:"flex",flexDirection:"column",alignItems:_.sender==="user"?"flex-end":"flex-start",borderRadius:2,mb:.5,p:1,border:"none","&:before":{display:"none"},"&:after":{display:"none"}},children:u.jsxs(Ke,{sx:{display:"flex",alignItems:"center",color:_.sender==="user"?"common.white":"text.primary",borderRadius:"16px"},children:[_.sender==="agent"&&u.jsx(yr,{src:gi,sx:{width:36,height:36,mr:1},alt:"Aria"}),u.jsx(da,{primary:u.jsxs(Ke,{sx:{display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap"},children:[_.message,t&&_.sender==="agent"&&u.jsx(Qe,{onClick:()=>T(_.message),size:"small",sx:{ml:1},children:$(_.message)})]}),primaryTypographyProps:{sx:{color:_.sender==="user"?"common.white":"text.primary",bgcolor:_.sender==="user"?"primary.main":"grey.200",borderRadius:"16px",px:2,py:1,display:"inline-block"}}}),_.sender==="user"&&u.jsx(yr,{sx:{width:36,height:36,ml:1},children:u.jsx(Xu,{})})]})},F))})]}),u.jsx(ca,{}),u.jsxs(Ke,{sx:{p:2,pb:1,display:"flex",alignItems:"center",bgcolor:"background.paper"},children:[u.jsx(qe,{fullWidth:!0,variant:"outlined",placeholder:"Type your message here...",value:a,onChange:W,disabled:C,sx:{mr:1,flexGrow:1},InputProps:{endAdornment:u.jsx(yc,{position:"end",children:u.jsxs(Qe,{onClick:f?D:N,color:"primary.main","aria-label":f?"Stop recording":"Start recording",size:"large",edge:"end",disabled:C,children:[f?u.jsx(Pm,{size:"small"}):u.jsx(km,{size:"small"}),f&&u.jsx(kn,{size:30,sx:{color:"primary.main",position:"absolute",zIndex:1}})]})})}}),C?u.jsx(kn,{size:24}):u.jsx(gt,{variant:"contained",color:"primary",onClick:I,disabled:C||!a.trim(),endIcon:u.jsx(Ki,{}),children:"Send"})]})]}),u.jsx(lo,{open:m,autoHideDuration:6e3,onClose:O,children:u.jsx(ur,{elevation:6,variant:"filled",onClose:O,severity:P,children:w})})]})]})};var ag={},vz=de;Object.defineProperty(ag,"__esModule",{value:!0});var ES=ag.default=void 0,yz=vz(ge()),xz=u;ES=ag.default=(0,yz.default)((0,xz.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5m-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11m3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5"}),"Mood");function bz(){const[e,t]=p.useState(""),[n,r]=p.useState(""),[o,i]=p.useState(""),s=async()=>{const a=localStorage.getItem("token");if(!e||!n){i("Both mood and activities are required.");return}if(!a){i("You are not logged in.");return}try{const l=await ve.post("/api/user/log_mood",{mood:e,activities:n},{headers:{Authorization:`Bearer ${a}`}});i(l.data.message)}catch(l){i(l.response.data.error)}};return u.jsxs("div",{className:"mood-logging-container",children:[u.jsxs("h1",{children:[u.jsx(ES,{fontSize:"large"})," Track Your Vibes "]}),u.jsxs("div",{className:"mood-logging",children:[u.jsxs("div",{className:"input-group",children:[u.jsx("label",{htmlFor:"mood-input",children:"Mood:"}),u.jsx("input",{id:"mood-input",type:"text",value:e,onChange:a=>t(a.target.value),placeholder:"Enter your current mood"}),u.jsx("label",{htmlFor:"activities-input",children:"Activities:"}),u.jsx("input",{id:"activities-input",type:"text",value:n,onChange:a=>r(a.target.value),placeholder:"What are you doing?"})]}),u.jsx(gt,{variant:"contained",className:"submit-button",onClick:s,startIcon:u.jsx(Ki,{}),children:"Log Mood"}),o&&u.jsx("div",{className:"message",children:o})]})]})}function Sz(){const[e,t]=p.useState([]),[n,r]=p.useState("");p.useEffect(()=>{(async()=>{const s=localStorage.getItem("token");if(!s){r("You are not logged in.");return}try{const a=await ve.get("/api/user/get_mood_logs",{headers:{Authorization:`Bearer ${s}`}});console.log("Received data:",a.data),t(a.data.mood_logs||[])}catch(a){r(a.response.data.error)}})()},[]);const o=i=>{const s={year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"};try{const a=i.$date;return new Date(a).toLocaleDateString("en-US",s)}catch(a){return console.error("Date parsing error:",a),"Invalid Date"}};return u.jsxs("div",{className:"mood-logs",children:[u.jsxs("h2",{children:[u.jsx(Xm,{className:"icon-large"}),"Your Mood Journey"]}),n?u.jsx("div",{className:"error",children:n}):u.jsx("ul",{children:e.map((i,s)=>u.jsxs("li",{children:[u.jsxs("div",{children:[u.jsx("strong",{children:"Mood:"})," ",i.mood]}),u.jsxs("div",{children:[u.jsx("strong",{children:"Activities:"})," ",i.activities]}),u.jsxs("div",{children:[u.jsx("strong",{children:"Timestamp:"})," ",o(i.timestamp)]})]},s))})]})}function Cz(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}const $S=6e4,TS=36e5;function Xd(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}function wz(e,t){const n=Cz(e);if(isNaN(n.getTime()))throw new RangeError("Invalid time value");const r=(t==null?void 0:t.format)??"extended";let o="";const i=r==="extended"?"-":"";{const s=Xd(n.getDate(),2),a=Xd(n.getMonth()+1,2);o=`${Xd(n.getFullYear(),4)}${i}${a}${i}${s}`}return o}function kz(e,t){const r=$z(e);let o;if(r.date){const l=Tz(r.date,2);o=_z(l.restDateString,l.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);const i=o.getTime();let s=0,a;if(r.time&&(s=jz(r.time),isNaN(s)))return new Date(NaN);if(r.timezone){if(a=Oz(r.timezone),isNaN(a))return new Date(NaN)}else{const l=new Date(i+s),c=new Date(0);return c.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),c.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),c}return new Date(i+s+a)}const cl={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Rz=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Pz=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Ez=/^([+-])(\d{2})(?::?(\d{2}))?$/;function $z(e){const t={},n=e.split(cl.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],cl.timeZoneDelimiter.test(t.date)&&(t.date=e.split(cl.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const o=cl.timezone.exec(r);o?(t.time=r.replace(o[1],""),t.timezone=o[1]):t.time=r}return t}function Tz(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?o:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function _z(e,t){if(t===null)return new Date(NaN);const n=e.match(Rz);if(!n)return new Date(NaN);const r=!!n[4],o=hs(n[1]),i=hs(n[2])-1,s=hs(n[3]),a=hs(n[4]),l=hs(n[5])-1;if(r)return Az(t,a,l)?Iz(t,a,l):new Date(NaN);{const c=new Date(0);return!Nz(t,i,s)||!Lz(t,o)?new Date(NaN):(c.setUTCFullYear(t,i,Math.max(o,s)),c)}}function hs(e){return e?parseInt(e):1}function jz(e){const t=e.match(Pz);if(!t)return NaN;const n=Qd(t[1]),r=Qd(t[2]),o=Qd(t[3]);return zz(n,r,o)?n*TS+r*$S+o*1e3:NaN}function Qd(e){return e&&parseFloat(e.replace(",","."))||0}function Oz(e){if(e==="Z")return 0;const t=e.match(Ez);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return Dz(r,o)?n*(r*TS+o*$S):NaN}function Iz(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,i=(t-1)*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}const Mz=[31,null,31,30,31,30,31,31,30,31,30,31];function _S(e){return e%400===0||e%4===0&&e%100!==0}function Nz(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Mz[t]||(_S(e)?29:28))}function Lz(e,t){return t>=1&&t<=(_S(e)?366:365)}function Az(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function zz(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Dz(e,t){return t>=0&&t<=59}function kp({userId:e,update:t}){const[n,r]=p.useState(""),[o,i]=p.useState("daily"),[s,a]=p.useState(!1),{checkInId:l}=xa(),[c,d]=p.useState(!1),[f,h]=p.useState({open:!1,message:"",severity:"info"}),b=localStorage.getItem("token");p.useEffect(()=>{t&&l&&(d(!0),ve.get(`/api/check-in/${l}`,{headers:{Authorization:`Bearer ${b}`}}).then(C=>{const g=C.data;console.log("Fetched check-in data:",g);const m=wz(kz(g.check_in_time),{representation:"date"});r(m.slice(0,16)),i(g.frequency),a(g.notify),d(!1)}).catch(C=>{console.error("Failed to fetch check-in details:",C),d(!1)}))},[t,l]);const y=async C=>{var R,E,j;if(C.preventDefault(),new Date(n)<=new Date){h({open:!0,message:"Cannot schedule check-in in the past. Please choose a future time.",severity:"error"});return}const x=t?`/api/check-in/${l}`:"/api/check-in/schedule",w={headers:{Authorization:`Bearer ${b}`,"Content-Type":"application/json"}};console.log("URL:",x);const k=t?"patch":"post",P={user_id:e,check_in_time:n,frequency:o,notify:s};console.log("Submitting:",P);try{const T=await ve[k](x,P,w);console.log("Success:",T.data.message),h({open:!0,message:T.data.message,severity:"success"})}catch(T){console.error("Error:",((R=T.response)==null?void 0:R.data)||T);const O=((j=(E=T.response)==null?void 0:E.data)==null?void 0:j.error)||"An unexpected error occurred";h({open:!0,message:O,severity:"error"})}},v=(C,g)=>{g!=="clickaway"&&h({...f,open:!1})};return c?u.jsx(ye,{children:"Loading..."}):u.jsxs(Ke,{component:"form",onSubmit:y,noValidate:!0,sx:{mt:4,padding:3,borderRadius:2,boxShadow:3},children:[u.jsx(qe,{id:"datetime-local",label:"Check-in Time",type:"datetime-local",fullWidth:!0,value:n,onChange:C=>r(C.target.value),sx:{marginBottom:3},InputLabelProps:{shrink:!0},required:!0,helperText:"Select the date and time for your check-in."}),u.jsxs(Gu,{fullWidth:!0,sx:{marginBottom:3},children:[u.jsx(Yu,{id:"frequency-label",children:"Frequency"}),u.jsxs(Oa,{labelId:"frequency-label",id:"frequency",value:o,label:"Frequency",onChange:C=>i(C.target.value),children:[u.jsx(Un,{value:"daily",children:"Daily"}),u.jsx(Un,{value:"weekly",children:"Weekly"}),u.jsx(Un,{value:"monthly",children:"Monthly"})]}),u.jsx(Hn,{title:"Choose how often you want the check-ins to occur",children:u.jsx("i",{className:"fas fa-info-circle"})})]}),u.jsx(vm,{control:u.jsx(pm,{checked:s,onChange:C=>a(C.target.checked),color:"primary"}),label:"Notify me",sx:{marginBottom:2}}),u.jsx(gt,{type:"submit",fullWidth:!0,variant:"contained",color:"primary",sx:{mt:2,mb:2,padding:"10px 0"},children:t?"Update Check-In":"Schedule Check-In"}),u.jsx(lo,{open:f.open,autoHideDuration:6e3,onClose:v,children:u.jsx(ur,{onClose:v,severity:f.severity,children:f.message})})]})}kp.propTypes={userId:Id.string.isRequired,checkInId:Id.string,update:Id.bool.isRequired};var lg={},Fz=de;Object.defineProperty(lg,"__esModule",{value:!0});var jS=lg.default=void 0,Bz=Fz(ge()),Ey=u;jS=lg.default=(0,Bz.default)([(0,Ey.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,Ey.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");var cg={},Wz=de;Object.defineProperty(cg,"__esModule",{value:!0});var OS=cg.default=void 0,Uz=Wz(ge()),Hz=u;OS=cg.default=(0,Uz.default)((0,Hz.jsx)("path",{d:"M7 7h10v3l4-4-4-4v3H5v6h2zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2z"}),"Repeat");var ug={},Vz=de;Object.defineProperty(ug,"__esModule",{value:!0});var IS=ug.default=void 0,qz=Vz(ge()),Kz=u;IS=ug.default=(0,qz.default)((0,Kz.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert");var dg={},Gz=de;Object.defineProperty(dg,"__esModule",{value:!0});var MS=dg.default=void 0,Yz=Gz(ge()),Xz=u;MS=dg.default=(0,Yz.default)((0,Xz.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");var fg={},Qz=de;Object.defineProperty(fg,"__esModule",{value:!0});var NS=fg.default=void 0,Jz=Qz(ge()),Zz=u;NS=fg.default=(0,Jz.default)((0,Zz.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");const eD=B(qu)(({theme:e})=>({marginBottom:e.spacing(2),padding:e.spacing(2),display:"flex",alignItems:"center",justifyContent:"space-between",transition:"transform 0.1s ease-in-out","&:hover":{transform:"scale(1.01)",boxShadow:e.shadows[3]}})),tD=Vt.forwardRef(function(t,n){return u.jsx(ur,{elevation:6,ref:n,variant:"filled",...t})});function nD(){const{userId:e}=xa(),t=Ao(),[n,r]=p.useState([]),[o,i]=p.useState(null),[s,a]=p.useState(!1),[l,c]=p.useState(!1),[d,f]=p.useState(!1),[h,b]=p.useState(""),[y,v]=p.useState(!1),[C,g]=p.useState(""),[m,x]=p.useState("info"),w=localStorage.getItem("token");p.useEffect(()=>{k()},[e]);const k=async()=>{if(!e){b("User not logged in");return}if(!w){b("No token found, please log in again");return}f(!0);try{const M=await ve.get(`/api/check-in/all?user_id=${e}`,{headers:{Authorization:`Bearer ${w}`}});if(console.log("API Response:",M.data),Array.isArray(M.data)&&M.data.every(I=>I._id&&I._id.$oid&&I.check_in_time&&I.check_in_time.$date)){const I=M.data.map(N=>({...N,_id:N._id.$oid,check_in_time:new Date(N.check_in_time.$date).toLocaleString()}));r(I)}else console.error("Data received is not in expected array format:",M.data),b("Unexpected data format");f(!1)}catch(M){console.error("Error during fetch:",M),b(M.message),f(!1)}},P=M=>{const I=n.find(N=>N._id===M);I&&(i(I),console.log("Selected check-in for details or update:",I),a(!0))},R=()=>{a(!1),c(!1)},E=async()=>{if(o){try{await ve.delete(`/api/check-in/${o._id}`,{headers:{Authorization:`Bearer ${w}`}}),g("Check-in deleted successfully"),x("success"),k(),R()}catch{g("Failed to delete check-in"),x("error")}v(!0)}},j=()=>{t(`/user/check_in/${o._id}`),console.log("Redirecting to update check-in form",o._id)},T=(M,I)=>{I!=="clickaway"&&v(!1)},O=()=>{c(!0)};return e?d?u.jsx(ye,{variant:"h6",children:"Loading..."}):u.jsxs(Ke,{sx:{margin:3,maxWidth:600,mx:"auto",maxHeight:"91vh",overflow:"auto"},children:[u.jsx(ye,{variant:"h4",gutterBottom:!0,children:"Track Your Commitments"}),u.jsx(ca,{sx:{mb:2}}),n.length>0?u.jsx(ja,{children:n.map(M=>u.jsxs(eD,{children:[u.jsx(QM,{children:u.jsx(yr,{sx:{bgcolor:"primary.main"},children:u.jsx(jS,{})})}),u.jsx(da,{primary:`Check-In: ${M.check_in_time}`,secondary:u.jsx(R3,{label:M.frequency,icon:u.jsx(OS,{}),size:"small"})}),u.jsx(Hn,{title:"More options",children:u.jsx(Qe,{onClick:()=>P(M._id),children:u.jsx(IS,{})})})]},M._id))}):u.jsx(ye,{variant:"h6",sx:{mb:2,mt:2,color:"error.main",fontWeight:"medium",textAlign:"center",padding:2,borderRadius:1,backgroundColor:"background.paper",boxShadow:2},children:"No check-ins found."}),u.jsxs(yp,{open:s,onClose:R,children:[u.jsx(Sp,{children:"Check-In Details"}),u.jsx(bp,{children:u.jsxs(ye,{component:"div",children:[u.jsxs(ye,{variant:"body1",children:[u.jsx("strong",{children:"Time:"})," ",o==null?void 0:o.check_in_time]}),u.jsxs(ye,{variant:"body1",children:[u.jsx("strong",{children:"Frequency:"})," ",o==null?void 0:o.frequency]}),u.jsxs(ye,{variant:"body1",children:[u.jsx("strong",{children:"Status:"})," ",o==null?void 0:o.status]}),u.jsxs(ye,{variant:"body1",children:[u.jsx("strong",{children:"Notify:"})," ",o!=null&&o.notify?"Yes":"No"]})]})}),u.jsxs(xp,{children:[u.jsx(gt,{onClick:j,startIcon:u.jsx(NS,{}),children:"Update"}),u.jsx(gt,{onClick:O,startIcon:u.jsx(MS,{}),color:"error",children:"Delete"}),u.jsx(gt,{onClick:R,children:"Close"})]})]}),u.jsxs(yp,{open:l,onClose:R,children:[u.jsx(Sp,{children:"Confirm Deletion"}),u.jsx(bp,{children:u.jsx(Y2,{children:"Are you sure you want to delete this check-in? This action cannot be undone."})}),u.jsxs(xp,{children:[u.jsx(gt,{onClick:E,color:"error",children:"Delete"}),u.jsx(gt,{onClick:R,children:"Cancel"})]})]}),u.jsx(lo,{open:y,autoHideDuration:6e3,onClose:T,children:u.jsx(tD,{onClose:T,severity:m,children:C})})]}):u.jsx(ye,{variant:"h6",children:"Please log in to see your check-ins."})}const fr=({children:e})=>{const t=localStorage.getItem("token");return console.log("isAuthenticated:",t),t?e:u.jsx(TP,{to:"/auth",replace:!0})};var pg={},rD=de;Object.defineProperty(pg,"__esModule",{value:!0});var LS=pg.default=void 0,oD=rD(ge()),iD=u;LS=pg.default=(0,oD.default)((0,iD.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 14H4V8l8 5 8-5zm-8-7L4 6h16z"}),"MailOutline");function sD(){const[e,t]=p.useState(""),[n,r]=p.useState(""),[o,i]=p.useState(!1),[s,a]=p.useState(!1),l=async c=>{var d,f;c.preventDefault(),a(!0);try{const h=await ve.post("/api/user/request_reset",{email:e});r(h.data.message),i(!1)}catch(h){r(((f=(d=h.response)==null?void 0:d.data)==null?void 0:f.message)||"Failed to send reset link. Please try again."),i(!0)}a(!1)};return u.jsx(Ke,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",sx:{background:"linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)","& .MuiPaper-root":{background:"#fff",padding:"30px",width:"400px",textAlign:"center"}},children:u.jsxs(gn,{elevation:3,style:{padding:"30px",width:"400px",textAlign:"center"},children:[u.jsx(ye,{variant:"h5",component:"h1",marginBottom:"20px",children:"Reset Your Password"}),u.jsxs("form",{onSubmit:l,children:[u.jsx(qe,{label:"Email Address",type:"email",value:e,onChange:c=>t(c.target.value),variant:"outlined",fullWidth:!0,required:!0,margin:"normal",InputProps:{endAdornment:u.jsx(LS,{})}}),u.jsx(gt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,disabled:s,endIcon:s?null:u.jsx(Ki,{}),children:s?u.jsx(kn,{size:24}):"Send Reset Link"})]}),n&&u.jsx(ur,{severity:o?"error":"success",sx:{maxWidth:"325px",mt:2},children:n})]})})}var hg={},aD=de;Object.defineProperty(hg,"__esModule",{value:!0});var Rp=hg.default=void 0,lD=aD(ge()),cD=u;Rp=hg.default=(0,lD.default)((0,cD.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");var mg={},uD=de;Object.defineProperty(mg,"__esModule",{value:!0});var AS=mg.default=void 0,dD=uD(ge()),fD=u;AS=mg.default=(0,dD.default)((0,fD.jsx)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l4 4 4-4H6c0-3.86 3.14-7 7-7s7 3.14 7 7-3.14 7-7 7c-1.9 0-3.62-.76-4.88-1.99L6.7 18.42C8.32 20.01 10.55 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m2 8v-1c0-1.1-.9-2-2-2s-2 .9-2 2v1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1m-1 0h-2v-1c0-.55.45-1 1-1s1 .45 1 1z"}),"LockReset");function pD(){const e=Ao(),{token:t}=xa(),[n,r]=p.useState(""),[o,i]=p.useState(""),[s,a]=p.useState(!1),[l,c]=p.useState(""),[d,f]=p.useState(!1),h=async y=>{if(y.preventDefault(),n!==o){c("Passwords do not match."),f(!0);return}try{const v=await ve.post(`/api/user/reset_password/${t}`,{password:n});c(v.data.message),f(!1),setTimeout(()=>e("/auth"),2e3)}catch(v){c(v.response.data.error),f(!0)}},b=()=>{a(!s)};return u.jsx(Ke,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",sx:{background:"linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)","& .MuiPaper-root":{padding:"40px",width:"400px",textAlign:"center",marginTop:"20px",borderRadius:"10px"}},children:u.jsxs(gn,{elevation:6,children:[u.jsxs(ye,{variant:"h5",component:"h1",marginBottom:"2",children:["Reset Your Password ",u.jsx(AS,{})]}),u.jsxs("form",{onSubmit:h,children:[u.jsx(qe,{label:"New Password",type:s?"text":"password",value:n,onChange:y=>r(y.target.value),variant:"outlined",fullWidth:!0,required:!0,margin:"normal",InputProps:{endAdornment:u.jsx(yc,{position:"end",children:u.jsx(Qe,{"aria-label":"toggle password visibility",onClick:b,children:s?u.jsx(Rp,{}):u.jsx(wc,{})})})}}),u.jsx(qe,{label:"Confirm New Password",type:s?"text":"password",value:o,onChange:y=>i(y.target.value),variant:"outlined",fullWidth:!0,required:!0,margin:"normal",InputProps:{endAdornment:u.jsx(yc,{position:"end",children:u.jsx(Qe,{"aria-label":"toggle password visibility",onClick:b,children:s?u.jsx(Rp,{}):u.jsx(wc,{})})})}}),u.jsx(gt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,sx:{mt:2},endIcon:u.jsx(Ki,{}),children:"Reset Password"})]}),l&&u.jsx(ur,{severity:d?"error":"success",sx:{mt:2,maxWidth:"325px"},children:l})]})})}function hD(){const{user:e}=p.useContext(lr);return p.useEffect(()=>{document.body.style.backgroundColor="#f5f5f5"},[]),u.jsx(mD,{children:u.jsxs(jP,{children:[u.jsx(rn,{path:"/",element:u.jsx(fr,{children:e!=null&&e.userId?u.jsx(NL,{}):u.jsx(Py,{})})}),u.jsx(rn,{path:"/chat",element:u.jsx(fr,{children:u.jsx(Py,{})})}),u.jsx(rn,{path:"/reset_password/:token",element:u.jsx(pD,{})}),u.jsx(rn,{path:"/request_reset",element:u.jsx(sD,{})}),u.jsx(rn,{path:"/auth",element:u.jsx(YL,{})}),u.jsx(rn,{path:"/user/profile/:userId",element:u.jsx(fr,{children:u.jsx($A,{})})}),u.jsx(rn,{path:"/user/mood_logging",element:u.jsx(fr,{children:u.jsx(bz,{})})}),u.jsx(rn,{path:"/user/mood_logs",element:u.jsx(fr,{children:u.jsx(Sz,{})})}),u.jsx(rn,{path:"/user/check_in",element:u.jsx(fr,{children:u.jsx(kp,{userId:e==null?void 0:e.userId,checkInId:"",update:!1})})}),u.jsx(rn,{path:"/user/check_in/:checkInId",element:u.jsx(fr,{children:u.jsx(kp,{userId:e==null?void 0:e.userId,update:!0})})}),u.jsx(rn,{path:"/user/chat_log_Manager",element:u.jsx(fr,{children:u.jsx(gz,{})})}),u.jsx(rn,{path:"/user/check_ins/:userId",element:u.jsx(fr,{children:u.jsx(nD,{})})})]})})}function mD({children:e}){p.useContext(lr);const t=oo(),r=!["/auth","/request_reset",new RegExp("^/reset_password/[^/]+$")].some(l=>typeof l=="string"?l===t.pathname:l.test(t.pathname)),o=r?6:0,[i,s]=p.useState(!0),a=()=>{s(!i)};return u.jsxs(Ke,{sx:{display:"flex",maxHeight:"100vh"},children:[u.jsx(hm,{}),r&&u.jsx(iz,{toggleSidebar:a}),r&&i&&u.jsx(YA,{}),u.jsx(Ke,{component:"main",sx:{flexGrow:1,p:o},children:e})]})}function gD(e){const t="=".repeat((4-e.length%4)%4),n=(e+t).replace(/-/g,"+").replace(/_/g,"/"),r=window.atob(n),o=new Uint8Array(r.length);for(let i=0;i{if(t!=="granted")throw new Error("Permission not granted for Notification");return e.pushManager.getSubscription()}).then(function(t){return t||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:gD(yD)})}).then(function(t){console.log("Subscription:",t);const n={p256dh:btoa(String.fromCharCode.apply(null,new Uint8Array(t.getKey("p256dh")))),auth:btoa(String.fromCharCode.apply(null,new Uint8Array(t.getKey("auth"))))};if(console.log("Subscription keys:",n),!n.p256dh||!n.auth)throw console.error("Subscription object:",t),new Error("Subscription keys are missing");const r={endpoint:t.endpoint,keys:n},o=vD();if(!o)throw new Error("No token found");return fetch("/api/subscribe",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`},body:JSON.stringify(r)})}).then(t=>t.json()).then(t=>console.log("Subscription response:",t)).catch(t=>console.error("Subscription failed:",t))}).catch(function(e){console.error("Service Worker registration failed:",e)})});Jd.createRoot(document.getElementById("root")).render(u.jsx(DP,{children:u.jsx(qP,{children:u.jsx(hD,{})})})); diff --git a/client/dist/index.html b/client/dist/index.html index 46961f03..a324ab72 100644 --- a/client/dist/index.html +++ b/client/dist/index.html @@ -10,7 +10,7 @@ content="Web site created using create-react-app" /> Mental Health App - + From 0000f7b4f3900f00494819a3f2b016e14ce2db60 Mon Sep 17 00:00:00 2001 From: DHRUMIL PATEL <123137675+dhrumilp12@users.noreply.github.com> Date: Tue, 25 Jun 2024 13:11:05 -0400 Subject: [PATCH 20/38] .. --- client/dist/assets/{index-D9yk9kGM.js => index-CtYMhTDF.js} | 2 +- client/dist/index.html | 2 +- client/src/Components/checkInsList.jsx | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) rename client/dist/assets/{index-D9yk9kGM.js => index-CtYMhTDF.js} (98%) diff --git a/client/dist/assets/index-D9yk9kGM.js b/client/dist/assets/index-CtYMhTDF.js similarity index 98% rename from client/dist/assets/index-D9yk9kGM.js rename to client/dist/assets/index-CtYMhTDF.js index f2e5271c..4c4b273c 100644 --- a/client/dist/assets/index-D9yk9kGM.js +++ b/client/dist/assets/index-CtYMhTDF.js @@ -221,4 +221,4 @@ Error generating stack: `+i.message+` font-size: 0.8rem; /* Smaller font size */ } } - `}),u.jsxs(Ke,{sx:{maxWidth:"100%",mx:"auto",my:2,display:"flex",flexDirection:"column",height:"91vh",borderRadius:2,boxShadow:1},children:[u.jsxs(qu,{sx:{display:"flex",flexDirection:"column",height:"100%",borderRadius:2,boxShadow:3},children:[u.jsxs(fm,{sx:{flexGrow:1,overflow:"auto",padding:3,position:"relative"},children:[u.jsx(Hn,{title:"Start a new chat",placement:"top",arrow:!0,children:u.jsx(Qe,{"aria-label":"new chat",color:"primary",onClick:M,disabled:C,sx:{position:"absolute",top:5,right:5,"&:hover":{backgroundColor:"primary.main",color:"common.white"}},children:u.jsx(jm,{})})}),c.length===0&&u.jsxs(Ke,{sx:{display:"flex",marginBottom:2,marginTop:3},children:[u.jsx(yr,{src:gi,sx:{width:44,height:44,marginRight:2},alt:"Aria"}),u.jsx(ye,{variant:"h4",component:"h1",gutterBottom:!0,children:"Welcome to Mental Health Companion"})]}),u.jsx(ja,{sx:{maxHeight:"100%",overflow:"auto"},children:c.map((_,F)=>u.jsx(xc,{sx:{display:"flex",flexDirection:"column",alignItems:_.sender==="user"?"flex-end":"flex-start",borderRadius:2,mb:.5,p:1,border:"none","&:before":{display:"none"},"&:after":{display:"none"}},children:u.jsxs(Ke,{sx:{display:"flex",alignItems:"center",color:_.sender==="user"?"common.white":"text.primary",borderRadius:"16px"},children:[_.sender==="agent"&&u.jsx(yr,{src:gi,sx:{width:36,height:36,mr:1},alt:"Aria"}),u.jsx(da,{primary:u.jsxs(Ke,{sx:{display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap"},children:[_.message,t&&_.sender==="agent"&&u.jsx(Qe,{onClick:()=>T(_.message),size:"small",sx:{ml:1},children:$(_.message)})]}),primaryTypographyProps:{sx:{color:_.sender==="user"?"common.white":"text.primary",bgcolor:_.sender==="user"?"primary.main":"grey.200",borderRadius:"16px",px:2,py:1,display:"inline-block"}}}),_.sender==="user"&&u.jsx(yr,{sx:{width:36,height:36,ml:1},children:u.jsx(Xu,{})})]})},F))})]}),u.jsx(ca,{}),u.jsxs(Ke,{sx:{p:2,pb:1,display:"flex",alignItems:"center",bgcolor:"background.paper"},children:[u.jsx(qe,{fullWidth:!0,variant:"outlined",placeholder:"Type your message here...",value:a,onChange:W,disabled:C,sx:{mr:1,flexGrow:1},InputProps:{endAdornment:u.jsx(yc,{position:"end",children:u.jsxs(Qe,{onClick:f?D:N,color:"primary.main","aria-label":f?"Stop recording":"Start recording",size:"large",edge:"end",disabled:C,children:[f?u.jsx(Pm,{size:"small"}):u.jsx(km,{size:"small"}),f&&u.jsx(kn,{size:30,sx:{color:"primary.main",position:"absolute",zIndex:1}})]})})}}),C?u.jsx(kn,{size:24}):u.jsx(gt,{variant:"contained",color:"primary",onClick:I,disabled:C||!a.trim(),endIcon:u.jsx(Ki,{}),children:"Send"})]})]}),u.jsx(lo,{open:m,autoHideDuration:6e3,onClose:O,children:u.jsx(ur,{elevation:6,variant:"filled",onClose:O,severity:P,children:w})})]})]})};var ag={},vz=de;Object.defineProperty(ag,"__esModule",{value:!0});var ES=ag.default=void 0,yz=vz(ge()),xz=u;ES=ag.default=(0,yz.default)((0,xz.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5m-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11m3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5"}),"Mood");function bz(){const[e,t]=p.useState(""),[n,r]=p.useState(""),[o,i]=p.useState(""),s=async()=>{const a=localStorage.getItem("token");if(!e||!n){i("Both mood and activities are required.");return}if(!a){i("You are not logged in.");return}try{const l=await ve.post("/api/user/log_mood",{mood:e,activities:n},{headers:{Authorization:`Bearer ${a}`}});i(l.data.message)}catch(l){i(l.response.data.error)}};return u.jsxs("div",{className:"mood-logging-container",children:[u.jsxs("h1",{children:[u.jsx(ES,{fontSize:"large"})," Track Your Vibes "]}),u.jsxs("div",{className:"mood-logging",children:[u.jsxs("div",{className:"input-group",children:[u.jsx("label",{htmlFor:"mood-input",children:"Mood:"}),u.jsx("input",{id:"mood-input",type:"text",value:e,onChange:a=>t(a.target.value),placeholder:"Enter your current mood"}),u.jsx("label",{htmlFor:"activities-input",children:"Activities:"}),u.jsx("input",{id:"activities-input",type:"text",value:n,onChange:a=>r(a.target.value),placeholder:"What are you doing?"})]}),u.jsx(gt,{variant:"contained",className:"submit-button",onClick:s,startIcon:u.jsx(Ki,{}),children:"Log Mood"}),o&&u.jsx("div",{className:"message",children:o})]})]})}function Sz(){const[e,t]=p.useState([]),[n,r]=p.useState("");p.useEffect(()=>{(async()=>{const s=localStorage.getItem("token");if(!s){r("You are not logged in.");return}try{const a=await ve.get("/api/user/get_mood_logs",{headers:{Authorization:`Bearer ${s}`}});console.log("Received data:",a.data),t(a.data.mood_logs||[])}catch(a){r(a.response.data.error)}})()},[]);const o=i=>{const s={year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"};try{const a=i.$date;return new Date(a).toLocaleDateString("en-US",s)}catch(a){return console.error("Date parsing error:",a),"Invalid Date"}};return u.jsxs("div",{className:"mood-logs",children:[u.jsxs("h2",{children:[u.jsx(Xm,{className:"icon-large"}),"Your Mood Journey"]}),n?u.jsx("div",{className:"error",children:n}):u.jsx("ul",{children:e.map((i,s)=>u.jsxs("li",{children:[u.jsxs("div",{children:[u.jsx("strong",{children:"Mood:"})," ",i.mood]}),u.jsxs("div",{children:[u.jsx("strong",{children:"Activities:"})," ",i.activities]}),u.jsxs("div",{children:[u.jsx("strong",{children:"Timestamp:"})," ",o(i.timestamp)]})]},s))})]})}function Cz(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}const $S=6e4,TS=36e5;function Xd(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}function wz(e,t){const n=Cz(e);if(isNaN(n.getTime()))throw new RangeError("Invalid time value");const r=(t==null?void 0:t.format)??"extended";let o="";const i=r==="extended"?"-":"";{const s=Xd(n.getDate(),2),a=Xd(n.getMonth()+1,2);o=`${Xd(n.getFullYear(),4)}${i}${a}${i}${s}`}return o}function kz(e,t){const r=$z(e);let o;if(r.date){const l=Tz(r.date,2);o=_z(l.restDateString,l.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);const i=o.getTime();let s=0,a;if(r.time&&(s=jz(r.time),isNaN(s)))return new Date(NaN);if(r.timezone){if(a=Oz(r.timezone),isNaN(a))return new Date(NaN)}else{const l=new Date(i+s),c=new Date(0);return c.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),c.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),c}return new Date(i+s+a)}const cl={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Rz=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Pz=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Ez=/^([+-])(\d{2})(?::?(\d{2}))?$/;function $z(e){const t={},n=e.split(cl.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],cl.timeZoneDelimiter.test(t.date)&&(t.date=e.split(cl.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const o=cl.timezone.exec(r);o?(t.time=r.replace(o[1],""),t.timezone=o[1]):t.time=r}return t}function Tz(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?o:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function _z(e,t){if(t===null)return new Date(NaN);const n=e.match(Rz);if(!n)return new Date(NaN);const r=!!n[4],o=hs(n[1]),i=hs(n[2])-1,s=hs(n[3]),a=hs(n[4]),l=hs(n[5])-1;if(r)return Az(t,a,l)?Iz(t,a,l):new Date(NaN);{const c=new Date(0);return!Nz(t,i,s)||!Lz(t,o)?new Date(NaN):(c.setUTCFullYear(t,i,Math.max(o,s)),c)}}function hs(e){return e?parseInt(e):1}function jz(e){const t=e.match(Pz);if(!t)return NaN;const n=Qd(t[1]),r=Qd(t[2]),o=Qd(t[3]);return zz(n,r,o)?n*TS+r*$S+o*1e3:NaN}function Qd(e){return e&&parseFloat(e.replace(",","."))||0}function Oz(e){if(e==="Z")return 0;const t=e.match(Ez);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return Dz(r,o)?n*(r*TS+o*$S):NaN}function Iz(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,i=(t-1)*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}const Mz=[31,null,31,30,31,30,31,31,30,31,30,31];function _S(e){return e%400===0||e%4===0&&e%100!==0}function Nz(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Mz[t]||(_S(e)?29:28))}function Lz(e,t){return t>=1&&t<=(_S(e)?366:365)}function Az(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function zz(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Dz(e,t){return t>=0&&t<=59}function kp({userId:e,update:t}){const[n,r]=p.useState(""),[o,i]=p.useState("daily"),[s,a]=p.useState(!1),{checkInId:l}=xa(),[c,d]=p.useState(!1),[f,h]=p.useState({open:!1,message:"",severity:"info"}),b=localStorage.getItem("token");p.useEffect(()=>{t&&l&&(d(!0),ve.get(`/api/check-in/${l}`,{headers:{Authorization:`Bearer ${b}`}}).then(C=>{const g=C.data;console.log("Fetched check-in data:",g);const m=wz(kz(g.check_in_time),{representation:"date"});r(m.slice(0,16)),i(g.frequency),a(g.notify),d(!1)}).catch(C=>{console.error("Failed to fetch check-in details:",C),d(!1)}))},[t,l]);const y=async C=>{var R,E,j;if(C.preventDefault(),new Date(n)<=new Date){h({open:!0,message:"Cannot schedule check-in in the past. Please choose a future time.",severity:"error"});return}const x=t?`/api/check-in/${l}`:"/api/check-in/schedule",w={headers:{Authorization:`Bearer ${b}`,"Content-Type":"application/json"}};console.log("URL:",x);const k=t?"patch":"post",P={user_id:e,check_in_time:n,frequency:o,notify:s};console.log("Submitting:",P);try{const T=await ve[k](x,P,w);console.log("Success:",T.data.message),h({open:!0,message:T.data.message,severity:"success"})}catch(T){console.error("Error:",((R=T.response)==null?void 0:R.data)||T);const O=((j=(E=T.response)==null?void 0:E.data)==null?void 0:j.error)||"An unexpected error occurred";h({open:!0,message:O,severity:"error"})}},v=(C,g)=>{g!=="clickaway"&&h({...f,open:!1})};return c?u.jsx(ye,{children:"Loading..."}):u.jsxs(Ke,{component:"form",onSubmit:y,noValidate:!0,sx:{mt:4,padding:3,borderRadius:2,boxShadow:3},children:[u.jsx(qe,{id:"datetime-local",label:"Check-in Time",type:"datetime-local",fullWidth:!0,value:n,onChange:C=>r(C.target.value),sx:{marginBottom:3},InputLabelProps:{shrink:!0},required:!0,helperText:"Select the date and time for your check-in."}),u.jsxs(Gu,{fullWidth:!0,sx:{marginBottom:3},children:[u.jsx(Yu,{id:"frequency-label",children:"Frequency"}),u.jsxs(Oa,{labelId:"frequency-label",id:"frequency",value:o,label:"Frequency",onChange:C=>i(C.target.value),children:[u.jsx(Un,{value:"daily",children:"Daily"}),u.jsx(Un,{value:"weekly",children:"Weekly"}),u.jsx(Un,{value:"monthly",children:"Monthly"})]}),u.jsx(Hn,{title:"Choose how often you want the check-ins to occur",children:u.jsx("i",{className:"fas fa-info-circle"})})]}),u.jsx(vm,{control:u.jsx(pm,{checked:s,onChange:C=>a(C.target.checked),color:"primary"}),label:"Notify me",sx:{marginBottom:2}}),u.jsx(gt,{type:"submit",fullWidth:!0,variant:"contained",color:"primary",sx:{mt:2,mb:2,padding:"10px 0"},children:t?"Update Check-In":"Schedule Check-In"}),u.jsx(lo,{open:f.open,autoHideDuration:6e3,onClose:v,children:u.jsx(ur,{onClose:v,severity:f.severity,children:f.message})})]})}kp.propTypes={userId:Id.string.isRequired,checkInId:Id.string,update:Id.bool.isRequired};var lg={},Fz=de;Object.defineProperty(lg,"__esModule",{value:!0});var jS=lg.default=void 0,Bz=Fz(ge()),Ey=u;jS=lg.default=(0,Bz.default)([(0,Ey.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,Ey.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");var cg={},Wz=de;Object.defineProperty(cg,"__esModule",{value:!0});var OS=cg.default=void 0,Uz=Wz(ge()),Hz=u;OS=cg.default=(0,Uz.default)((0,Hz.jsx)("path",{d:"M7 7h10v3l4-4-4-4v3H5v6h2zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2z"}),"Repeat");var ug={},Vz=de;Object.defineProperty(ug,"__esModule",{value:!0});var IS=ug.default=void 0,qz=Vz(ge()),Kz=u;IS=ug.default=(0,qz.default)((0,Kz.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert");var dg={},Gz=de;Object.defineProperty(dg,"__esModule",{value:!0});var MS=dg.default=void 0,Yz=Gz(ge()),Xz=u;MS=dg.default=(0,Yz.default)((0,Xz.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");var fg={},Qz=de;Object.defineProperty(fg,"__esModule",{value:!0});var NS=fg.default=void 0,Jz=Qz(ge()),Zz=u;NS=fg.default=(0,Jz.default)((0,Zz.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");const eD=B(qu)(({theme:e})=>({marginBottom:e.spacing(2),padding:e.spacing(2),display:"flex",alignItems:"center",justifyContent:"space-between",transition:"transform 0.1s ease-in-out","&:hover":{transform:"scale(1.01)",boxShadow:e.shadows[3]}})),tD=Vt.forwardRef(function(t,n){return u.jsx(ur,{elevation:6,ref:n,variant:"filled",...t})});function nD(){const{userId:e}=xa(),t=Ao(),[n,r]=p.useState([]),[o,i]=p.useState(null),[s,a]=p.useState(!1),[l,c]=p.useState(!1),[d,f]=p.useState(!1),[h,b]=p.useState(""),[y,v]=p.useState(!1),[C,g]=p.useState(""),[m,x]=p.useState("info"),w=localStorage.getItem("token");p.useEffect(()=>{k()},[e]);const k=async()=>{if(!e){b("User not logged in");return}if(!w){b("No token found, please log in again");return}f(!0);try{const M=await ve.get(`/api/check-in/all?user_id=${e}`,{headers:{Authorization:`Bearer ${w}`}});if(console.log("API Response:",M.data),Array.isArray(M.data)&&M.data.every(I=>I._id&&I._id.$oid&&I.check_in_time&&I.check_in_time.$date)){const I=M.data.map(N=>({...N,_id:N._id.$oid,check_in_time:new Date(N.check_in_time.$date).toLocaleString()}));r(I)}else console.error("Data received is not in expected array format:",M.data),b("Unexpected data format");f(!1)}catch(M){console.error("Error during fetch:",M),b(M.message),f(!1)}},P=M=>{const I=n.find(N=>N._id===M);I&&(i(I),console.log("Selected check-in for details or update:",I),a(!0))},R=()=>{a(!1),c(!1)},E=async()=>{if(o){try{await ve.delete(`/api/check-in/${o._id}`,{headers:{Authorization:`Bearer ${w}`}}),g("Check-in deleted successfully"),x("success"),k(),R()}catch{g("Failed to delete check-in"),x("error")}v(!0)}},j=()=>{t(`/user/check_in/${o._id}`),console.log("Redirecting to update check-in form",o._id)},T=(M,I)=>{I!=="clickaway"&&v(!1)},O=()=>{c(!0)};return e?d?u.jsx(ye,{variant:"h6",children:"Loading..."}):u.jsxs(Ke,{sx:{margin:3,maxWidth:600,mx:"auto",maxHeight:"91vh",overflow:"auto"},children:[u.jsx(ye,{variant:"h4",gutterBottom:!0,children:"Track Your Commitments"}),u.jsx(ca,{sx:{mb:2}}),n.length>0?u.jsx(ja,{children:n.map(M=>u.jsxs(eD,{children:[u.jsx(QM,{children:u.jsx(yr,{sx:{bgcolor:"primary.main"},children:u.jsx(jS,{})})}),u.jsx(da,{primary:`Check-In: ${M.check_in_time}`,secondary:u.jsx(R3,{label:M.frequency,icon:u.jsx(OS,{}),size:"small"})}),u.jsx(Hn,{title:"More options",children:u.jsx(Qe,{onClick:()=>P(M._id),children:u.jsx(IS,{})})})]},M._id))}):u.jsx(ye,{variant:"h6",sx:{mb:2,mt:2,color:"error.main",fontWeight:"medium",textAlign:"center",padding:2,borderRadius:1,backgroundColor:"background.paper",boxShadow:2},children:"No check-ins found."}),u.jsxs(yp,{open:s,onClose:R,children:[u.jsx(Sp,{children:"Check-In Details"}),u.jsx(bp,{children:u.jsxs(ye,{component:"div",children:[u.jsxs(ye,{variant:"body1",children:[u.jsx("strong",{children:"Time:"})," ",o==null?void 0:o.check_in_time]}),u.jsxs(ye,{variant:"body1",children:[u.jsx("strong",{children:"Frequency:"})," ",o==null?void 0:o.frequency]}),u.jsxs(ye,{variant:"body1",children:[u.jsx("strong",{children:"Status:"})," ",o==null?void 0:o.status]}),u.jsxs(ye,{variant:"body1",children:[u.jsx("strong",{children:"Notify:"})," ",o!=null&&o.notify?"Yes":"No"]})]})}),u.jsxs(xp,{children:[u.jsx(gt,{onClick:j,startIcon:u.jsx(NS,{}),children:"Update"}),u.jsx(gt,{onClick:O,startIcon:u.jsx(MS,{}),color:"error",children:"Delete"}),u.jsx(gt,{onClick:R,children:"Close"})]})]}),u.jsxs(yp,{open:l,onClose:R,children:[u.jsx(Sp,{children:"Confirm Deletion"}),u.jsx(bp,{children:u.jsx(Y2,{children:"Are you sure you want to delete this check-in? This action cannot be undone."})}),u.jsxs(xp,{children:[u.jsx(gt,{onClick:E,color:"error",children:"Delete"}),u.jsx(gt,{onClick:R,children:"Cancel"})]})]}),u.jsx(lo,{open:y,autoHideDuration:6e3,onClose:T,children:u.jsx(tD,{onClose:T,severity:m,children:C})})]}):u.jsx(ye,{variant:"h6",children:"Please log in to see your check-ins."})}const fr=({children:e})=>{const t=localStorage.getItem("token");return console.log("isAuthenticated:",t),t?e:u.jsx(TP,{to:"/auth",replace:!0})};var pg={},rD=de;Object.defineProperty(pg,"__esModule",{value:!0});var LS=pg.default=void 0,oD=rD(ge()),iD=u;LS=pg.default=(0,oD.default)((0,iD.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 14H4V8l8 5 8-5zm-8-7L4 6h16z"}),"MailOutline");function sD(){const[e,t]=p.useState(""),[n,r]=p.useState(""),[o,i]=p.useState(!1),[s,a]=p.useState(!1),l=async c=>{var d,f;c.preventDefault(),a(!0);try{const h=await ve.post("/api/user/request_reset",{email:e});r(h.data.message),i(!1)}catch(h){r(((f=(d=h.response)==null?void 0:d.data)==null?void 0:f.message)||"Failed to send reset link. Please try again."),i(!0)}a(!1)};return u.jsx(Ke,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",sx:{background:"linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)","& .MuiPaper-root":{background:"#fff",padding:"30px",width:"400px",textAlign:"center"}},children:u.jsxs(gn,{elevation:3,style:{padding:"30px",width:"400px",textAlign:"center"},children:[u.jsx(ye,{variant:"h5",component:"h1",marginBottom:"20px",children:"Reset Your Password"}),u.jsxs("form",{onSubmit:l,children:[u.jsx(qe,{label:"Email Address",type:"email",value:e,onChange:c=>t(c.target.value),variant:"outlined",fullWidth:!0,required:!0,margin:"normal",InputProps:{endAdornment:u.jsx(LS,{})}}),u.jsx(gt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,disabled:s,endIcon:s?null:u.jsx(Ki,{}),children:s?u.jsx(kn,{size:24}):"Send Reset Link"})]}),n&&u.jsx(ur,{severity:o?"error":"success",sx:{maxWidth:"325px",mt:2},children:n})]})})}var hg={},aD=de;Object.defineProperty(hg,"__esModule",{value:!0});var Rp=hg.default=void 0,lD=aD(ge()),cD=u;Rp=hg.default=(0,lD.default)((0,cD.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");var mg={},uD=de;Object.defineProperty(mg,"__esModule",{value:!0});var AS=mg.default=void 0,dD=uD(ge()),fD=u;AS=mg.default=(0,dD.default)((0,fD.jsx)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l4 4 4-4H6c0-3.86 3.14-7 7-7s7 3.14 7 7-3.14 7-7 7c-1.9 0-3.62-.76-4.88-1.99L6.7 18.42C8.32 20.01 10.55 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m2 8v-1c0-1.1-.9-2-2-2s-2 .9-2 2v1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1m-1 0h-2v-1c0-.55.45-1 1-1s1 .45 1 1z"}),"LockReset");function pD(){const e=Ao(),{token:t}=xa(),[n,r]=p.useState(""),[o,i]=p.useState(""),[s,a]=p.useState(!1),[l,c]=p.useState(""),[d,f]=p.useState(!1),h=async y=>{if(y.preventDefault(),n!==o){c("Passwords do not match."),f(!0);return}try{const v=await ve.post(`/api/user/reset_password/${t}`,{password:n});c(v.data.message),f(!1),setTimeout(()=>e("/auth"),2e3)}catch(v){c(v.response.data.error),f(!0)}},b=()=>{a(!s)};return u.jsx(Ke,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",sx:{background:"linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)","& .MuiPaper-root":{padding:"40px",width:"400px",textAlign:"center",marginTop:"20px",borderRadius:"10px"}},children:u.jsxs(gn,{elevation:6,children:[u.jsxs(ye,{variant:"h5",component:"h1",marginBottom:"2",children:["Reset Your Password ",u.jsx(AS,{})]}),u.jsxs("form",{onSubmit:h,children:[u.jsx(qe,{label:"New Password",type:s?"text":"password",value:n,onChange:y=>r(y.target.value),variant:"outlined",fullWidth:!0,required:!0,margin:"normal",InputProps:{endAdornment:u.jsx(yc,{position:"end",children:u.jsx(Qe,{"aria-label":"toggle password visibility",onClick:b,children:s?u.jsx(Rp,{}):u.jsx(wc,{})})})}}),u.jsx(qe,{label:"Confirm New Password",type:s?"text":"password",value:o,onChange:y=>i(y.target.value),variant:"outlined",fullWidth:!0,required:!0,margin:"normal",InputProps:{endAdornment:u.jsx(yc,{position:"end",children:u.jsx(Qe,{"aria-label":"toggle password visibility",onClick:b,children:s?u.jsx(Rp,{}):u.jsx(wc,{})})})}}),u.jsx(gt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,sx:{mt:2},endIcon:u.jsx(Ki,{}),children:"Reset Password"})]}),l&&u.jsx(ur,{severity:d?"error":"success",sx:{mt:2,maxWidth:"325px"},children:l})]})})}function hD(){const{user:e}=p.useContext(lr);return p.useEffect(()=>{document.body.style.backgroundColor="#f5f5f5"},[]),u.jsx(mD,{children:u.jsxs(jP,{children:[u.jsx(rn,{path:"/",element:u.jsx(fr,{children:e!=null&&e.userId?u.jsx(NL,{}):u.jsx(Py,{})})}),u.jsx(rn,{path:"/chat",element:u.jsx(fr,{children:u.jsx(Py,{})})}),u.jsx(rn,{path:"/reset_password/:token",element:u.jsx(pD,{})}),u.jsx(rn,{path:"/request_reset",element:u.jsx(sD,{})}),u.jsx(rn,{path:"/auth",element:u.jsx(YL,{})}),u.jsx(rn,{path:"/user/profile/:userId",element:u.jsx(fr,{children:u.jsx($A,{})})}),u.jsx(rn,{path:"/user/mood_logging",element:u.jsx(fr,{children:u.jsx(bz,{})})}),u.jsx(rn,{path:"/user/mood_logs",element:u.jsx(fr,{children:u.jsx(Sz,{})})}),u.jsx(rn,{path:"/user/check_in",element:u.jsx(fr,{children:u.jsx(kp,{userId:e==null?void 0:e.userId,checkInId:"",update:!1})})}),u.jsx(rn,{path:"/user/check_in/:checkInId",element:u.jsx(fr,{children:u.jsx(kp,{userId:e==null?void 0:e.userId,update:!0})})}),u.jsx(rn,{path:"/user/chat_log_Manager",element:u.jsx(fr,{children:u.jsx(gz,{})})}),u.jsx(rn,{path:"/user/check_ins/:userId",element:u.jsx(fr,{children:u.jsx(nD,{})})})]})})}function mD({children:e}){p.useContext(lr);const t=oo(),r=!["/auth","/request_reset",new RegExp("^/reset_password/[^/]+$")].some(l=>typeof l=="string"?l===t.pathname:l.test(t.pathname)),o=r?6:0,[i,s]=p.useState(!0),a=()=>{s(!i)};return u.jsxs(Ke,{sx:{display:"flex",maxHeight:"100vh"},children:[u.jsx(hm,{}),r&&u.jsx(iz,{toggleSidebar:a}),r&&i&&u.jsx(YA,{}),u.jsx(Ke,{component:"main",sx:{flexGrow:1,p:o},children:e})]})}function gD(e){const t="=".repeat((4-e.length%4)%4),n=(e+t).replace(/-/g,"+").replace(/_/g,"/"),r=window.atob(n),o=new Uint8Array(r.length);for(let i=0;i{if(t!=="granted")throw new Error("Permission not granted for Notification");return e.pushManager.getSubscription()}).then(function(t){return t||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:gD(yD)})}).then(function(t){console.log("Subscription:",t);const n={p256dh:btoa(String.fromCharCode.apply(null,new Uint8Array(t.getKey("p256dh")))),auth:btoa(String.fromCharCode.apply(null,new Uint8Array(t.getKey("auth"))))};if(console.log("Subscription keys:",n),!n.p256dh||!n.auth)throw console.error("Subscription object:",t),new Error("Subscription keys are missing");const r={endpoint:t.endpoint,keys:n},o=vD();if(!o)throw new Error("No token found");return fetch("/api/subscribe",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`},body:JSON.stringify(r)})}).then(t=>t.json()).then(t=>console.log("Subscription response:",t)).catch(t=>console.error("Subscription failed:",t))}).catch(function(e){console.error("Service Worker registration failed:",e)})});Jd.createRoot(document.getElementById("root")).render(u.jsx(DP,{children:u.jsx(qP,{children:u.jsx(hD,{})})})); + `}),u.jsxs(Ke,{sx:{maxWidth:"100%",mx:"auto",my:2,display:"flex",flexDirection:"column",height:"91vh",borderRadius:2,boxShadow:1},children:[u.jsxs(qu,{sx:{display:"flex",flexDirection:"column",height:"100%",borderRadius:2,boxShadow:3},children:[u.jsxs(fm,{sx:{flexGrow:1,overflow:"auto",padding:3,position:"relative"},children:[u.jsx(Hn,{title:"Start a new chat",placement:"top",arrow:!0,children:u.jsx(Qe,{"aria-label":"new chat",color:"primary",onClick:M,disabled:C,sx:{position:"absolute",top:5,right:5,"&:hover":{backgroundColor:"primary.main",color:"common.white"}},children:u.jsx(jm,{})})}),c.length===0&&u.jsxs(Ke,{sx:{display:"flex",marginBottom:2,marginTop:3},children:[u.jsx(yr,{src:gi,sx:{width:44,height:44,marginRight:2},alt:"Aria"}),u.jsx(ye,{variant:"h4",component:"h1",gutterBottom:!0,children:"Welcome to Mental Health Companion"})]}),u.jsx(ja,{sx:{maxHeight:"100%",overflow:"auto"},children:c.map((_,F)=>u.jsx(xc,{sx:{display:"flex",flexDirection:"column",alignItems:_.sender==="user"?"flex-end":"flex-start",borderRadius:2,mb:.5,p:1,border:"none","&:before":{display:"none"},"&:after":{display:"none"}},children:u.jsxs(Ke,{sx:{display:"flex",alignItems:"center",color:_.sender==="user"?"common.white":"text.primary",borderRadius:"16px"},children:[_.sender==="agent"&&u.jsx(yr,{src:gi,sx:{width:36,height:36,mr:1},alt:"Aria"}),u.jsx(da,{primary:u.jsxs(Ke,{sx:{display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap"},children:[_.message,t&&_.sender==="agent"&&u.jsx(Qe,{onClick:()=>T(_.message),size:"small",sx:{ml:1},children:$(_.message)})]}),primaryTypographyProps:{sx:{color:_.sender==="user"?"common.white":"text.primary",bgcolor:_.sender==="user"?"primary.main":"grey.200",borderRadius:"16px",px:2,py:1,display:"inline-block"}}}),_.sender==="user"&&u.jsx(yr,{sx:{width:36,height:36,ml:1},children:u.jsx(Xu,{})})]})},F))})]}),u.jsx(ca,{}),u.jsxs(Ke,{sx:{p:2,pb:1,display:"flex",alignItems:"center",bgcolor:"background.paper"},children:[u.jsx(qe,{fullWidth:!0,variant:"outlined",placeholder:"Type your message here...",value:a,onChange:W,disabled:C,sx:{mr:1,flexGrow:1},InputProps:{endAdornment:u.jsx(yc,{position:"end",children:u.jsxs(Qe,{onClick:f?D:N,color:"primary.main","aria-label":f?"Stop recording":"Start recording",size:"large",edge:"end",disabled:C,children:[f?u.jsx(Pm,{size:"small"}):u.jsx(km,{size:"small"}),f&&u.jsx(kn,{size:30,sx:{color:"primary.main",position:"absolute",zIndex:1}})]})})}}),C?u.jsx(kn,{size:24}):u.jsx(gt,{variant:"contained",color:"primary",onClick:I,disabled:C||!a.trim(),endIcon:u.jsx(Ki,{}),children:"Send"})]})]}),u.jsx(lo,{open:m,autoHideDuration:6e3,onClose:O,children:u.jsx(ur,{elevation:6,variant:"filled",onClose:O,severity:P,children:w})})]})]})};var ag={},vz=de;Object.defineProperty(ag,"__esModule",{value:!0});var ES=ag.default=void 0,yz=vz(ge()),xz=u;ES=ag.default=(0,yz.default)((0,xz.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5m-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11m3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5"}),"Mood");function bz(){const[e,t]=p.useState(""),[n,r]=p.useState(""),[o,i]=p.useState(""),s=async()=>{const a=localStorage.getItem("token");if(!e||!n){i("Both mood and activities are required.");return}if(!a){i("You are not logged in.");return}try{const l=await ve.post("/api/user/log_mood",{mood:e,activities:n},{headers:{Authorization:`Bearer ${a}`}});i(l.data.message)}catch(l){i(l.response.data.error)}};return u.jsxs("div",{className:"mood-logging-container",children:[u.jsxs("h1",{children:[u.jsx(ES,{fontSize:"large"})," Track Your Vibes "]}),u.jsxs("div",{className:"mood-logging",children:[u.jsxs("div",{className:"input-group",children:[u.jsx("label",{htmlFor:"mood-input",children:"Mood:"}),u.jsx("input",{id:"mood-input",type:"text",value:e,onChange:a=>t(a.target.value),placeholder:"Enter your current mood"}),u.jsx("label",{htmlFor:"activities-input",children:"Activities:"}),u.jsx("input",{id:"activities-input",type:"text",value:n,onChange:a=>r(a.target.value),placeholder:"What are you doing?"})]}),u.jsx(gt,{variant:"contained",className:"submit-button",onClick:s,startIcon:u.jsx(Ki,{}),children:"Log Mood"}),o&&u.jsx("div",{className:"message",children:o})]})]})}function Sz(){const[e,t]=p.useState([]),[n,r]=p.useState("");p.useEffect(()=>{(async()=>{const s=localStorage.getItem("token");if(!s){r("You are not logged in.");return}try{const a=await ve.get("/api/user/get_mood_logs",{headers:{Authorization:`Bearer ${s}`}});console.log("Received data:",a.data),t(a.data.mood_logs||[])}catch(a){r(a.response.data.error)}})()},[]);const o=i=>{const s={year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"};try{const a=i.$date;return new Date(a).toLocaleDateString("en-US",s)}catch(a){return console.error("Date parsing error:",a),"Invalid Date"}};return u.jsxs("div",{className:"mood-logs",children:[u.jsxs("h2",{children:[u.jsx(Xm,{className:"icon-large"}),"Your Mood Journey"]}),n?u.jsx("div",{className:"error",children:n}):u.jsx("ul",{children:e.map((i,s)=>u.jsxs("li",{children:[u.jsxs("div",{children:[u.jsx("strong",{children:"Mood:"})," ",i.mood]}),u.jsxs("div",{children:[u.jsx("strong",{children:"Activities:"})," ",i.activities]}),u.jsxs("div",{children:[u.jsx("strong",{children:"Timestamp:"})," ",o(i.timestamp)]})]},s))})]})}function Cz(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}const $S=6e4,TS=36e5;function Xd(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}function wz(e,t){const n=Cz(e);if(isNaN(n.getTime()))throw new RangeError("Invalid time value");const r=(t==null?void 0:t.format)??"extended";let o="";const i=r==="extended"?"-":"";{const s=Xd(n.getDate(),2),a=Xd(n.getMonth()+1,2);o=`${Xd(n.getFullYear(),4)}${i}${a}${i}${s}`}return o}function kz(e,t){const r=$z(e);let o;if(r.date){const l=Tz(r.date,2);o=_z(l.restDateString,l.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);const i=o.getTime();let s=0,a;if(r.time&&(s=jz(r.time),isNaN(s)))return new Date(NaN);if(r.timezone){if(a=Oz(r.timezone),isNaN(a))return new Date(NaN)}else{const l=new Date(i+s),c=new Date(0);return c.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),c.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),c}return new Date(i+s+a)}const cl={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Rz=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Pz=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Ez=/^([+-])(\d{2})(?::?(\d{2}))?$/;function $z(e){const t={},n=e.split(cl.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],cl.timeZoneDelimiter.test(t.date)&&(t.date=e.split(cl.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const o=cl.timezone.exec(r);o?(t.time=r.replace(o[1],""),t.timezone=o[1]):t.time=r}return t}function Tz(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?o:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function _z(e,t){if(t===null)return new Date(NaN);const n=e.match(Rz);if(!n)return new Date(NaN);const r=!!n[4],o=hs(n[1]),i=hs(n[2])-1,s=hs(n[3]),a=hs(n[4]),l=hs(n[5])-1;if(r)return Az(t,a,l)?Iz(t,a,l):new Date(NaN);{const c=new Date(0);return!Nz(t,i,s)||!Lz(t,o)?new Date(NaN):(c.setUTCFullYear(t,i,Math.max(o,s)),c)}}function hs(e){return e?parseInt(e):1}function jz(e){const t=e.match(Pz);if(!t)return NaN;const n=Qd(t[1]),r=Qd(t[2]),o=Qd(t[3]);return zz(n,r,o)?n*TS+r*$S+o*1e3:NaN}function Qd(e){return e&&parseFloat(e.replace(",","."))||0}function Oz(e){if(e==="Z")return 0;const t=e.match(Ez);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return Dz(r,o)?n*(r*TS+o*$S):NaN}function Iz(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,i=(t-1)*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}const Mz=[31,null,31,30,31,30,31,31,30,31,30,31];function _S(e){return e%400===0||e%4===0&&e%100!==0}function Nz(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Mz[t]||(_S(e)?29:28))}function Lz(e,t){return t>=1&&t<=(_S(e)?366:365)}function Az(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function zz(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Dz(e,t){return t>=0&&t<=59}function kp({userId:e,update:t}){const[n,r]=p.useState(""),[o,i]=p.useState("daily"),[s,a]=p.useState(!1),{checkInId:l}=xa(),[c,d]=p.useState(!1),[f,h]=p.useState({open:!1,message:"",severity:"info"}),b=localStorage.getItem("token");p.useEffect(()=>{t&&l&&(d(!0),ve.get(`/api/check-in/${l}`,{headers:{Authorization:`Bearer ${b}`}}).then(C=>{const g=C.data;console.log("Fetched check-in data:",g);const m=wz(kz(g.check_in_time),{representation:"date"});r(m.slice(0,16)),i(g.frequency),a(g.notify),d(!1)}).catch(C=>{console.error("Failed to fetch check-in details:",C),d(!1)}))},[t,l]);const y=async C=>{var R,E,j;if(C.preventDefault(),new Date(n)<=new Date){h({open:!0,message:"Cannot schedule check-in in the past. Please choose a future time.",severity:"error"});return}const x=t?`/api/check-in/${l}`:"/api/check-in/schedule",w={headers:{Authorization:`Bearer ${b}`,"Content-Type":"application/json"}};console.log("URL:",x);const k=t?"patch":"post",P={user_id:e,check_in_time:n,frequency:o,notify:s};console.log("Submitting:",P);try{const T=await ve[k](x,P,w);console.log("Success:",T.data.message),h({open:!0,message:T.data.message,severity:"success"})}catch(T){console.error("Error:",((R=T.response)==null?void 0:R.data)||T);const O=((j=(E=T.response)==null?void 0:E.data)==null?void 0:j.error)||"An unexpected error occurred";h({open:!0,message:O,severity:"error"})}},v=(C,g)=>{g!=="clickaway"&&h({...f,open:!1})};return c?u.jsx(ye,{children:"Loading..."}):u.jsxs(Ke,{component:"form",onSubmit:y,noValidate:!0,sx:{mt:4,padding:3,borderRadius:2,boxShadow:3},children:[u.jsx(qe,{id:"datetime-local",label:"Check-in Time",type:"datetime-local",fullWidth:!0,value:n,onChange:C=>r(C.target.value),sx:{marginBottom:3},InputLabelProps:{shrink:!0},required:!0,helperText:"Select the date and time for your check-in."}),u.jsxs(Gu,{fullWidth:!0,sx:{marginBottom:3},children:[u.jsx(Yu,{id:"frequency-label",children:"Frequency"}),u.jsxs(Oa,{labelId:"frequency-label",id:"frequency",value:o,label:"Frequency",onChange:C=>i(C.target.value),children:[u.jsx(Un,{value:"daily",children:"Daily"}),u.jsx(Un,{value:"weekly",children:"Weekly"}),u.jsx(Un,{value:"monthly",children:"Monthly"})]}),u.jsx(Hn,{title:"Choose how often you want the check-ins to occur",children:u.jsx("i",{className:"fas fa-info-circle"})})]}),u.jsx(vm,{control:u.jsx(pm,{checked:s,onChange:C=>a(C.target.checked),color:"primary"}),label:"Notify me",sx:{marginBottom:2}}),u.jsx(gt,{type:"submit",fullWidth:!0,variant:"contained",color:"primary",sx:{mt:2,mb:2,padding:"10px 0"},children:t?"Update Check-In":"Schedule Check-In"}),u.jsx(lo,{open:f.open,autoHideDuration:6e3,onClose:v,children:u.jsx(ur,{onClose:v,severity:f.severity,children:f.message})})]})}kp.propTypes={userId:Id.string.isRequired,checkInId:Id.string,update:Id.bool.isRequired};var lg={},Fz=de;Object.defineProperty(lg,"__esModule",{value:!0});var jS=lg.default=void 0,Bz=Fz(ge()),Ey=u;jS=lg.default=(0,Bz.default)([(0,Ey.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,Ey.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");var cg={},Wz=de;Object.defineProperty(cg,"__esModule",{value:!0});var OS=cg.default=void 0,Uz=Wz(ge()),Hz=u;OS=cg.default=(0,Uz.default)((0,Hz.jsx)("path",{d:"M7 7h10v3l4-4-4-4v3H5v6h2zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2z"}),"Repeat");var ug={},Vz=de;Object.defineProperty(ug,"__esModule",{value:!0});var IS=ug.default=void 0,qz=Vz(ge()),Kz=u;IS=ug.default=(0,qz.default)((0,Kz.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert");var dg={},Gz=de;Object.defineProperty(dg,"__esModule",{value:!0});var MS=dg.default=void 0,Yz=Gz(ge()),Xz=u;MS=dg.default=(0,Yz.default)((0,Xz.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");var fg={},Qz=de;Object.defineProperty(fg,"__esModule",{value:!0});var NS=fg.default=void 0,Jz=Qz(ge()),Zz=u;NS=fg.default=(0,Jz.default)((0,Zz.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");const eD=B(qu)(({theme:e})=>({marginBottom:e.spacing(2),padding:e.spacing(2),display:"flex",alignItems:"center",justifyContent:"space-between",transition:"transform 0.1s ease-in-out","&:hover":{transform:"scale(1.01)",boxShadow:e.shadows[3]}})),tD=Vt.forwardRef(function(t,n){return u.jsx(ur,{elevation:6,ref:n,variant:"filled",...t})});function nD(){const{userId:e}=xa(),t=Ao(),[n,r]=p.useState([]),[o,i]=p.useState(null),[s,a]=p.useState(!1),[l,c]=p.useState(!1),[d,f]=p.useState(!1),[h,b]=p.useState(""),[y,v]=p.useState(!1),[C,g]=p.useState(""),[m,x]=p.useState("info"),w=localStorage.getItem("token");p.useEffect(()=>{k()},[e]);const k=async()=>{if(!e){b("User not logged in");return}if(!w){b("No token found, please log in again");return}f(!0);try{const M=await ve.get(`/api/check-in/all?user_id=${e}`,{headers:{Authorization:`Bearer ${w}`}});if(console.log("API Response:",M.data),Array.isArray(M.data)&&M.data.every(I=>I._id&&I._id.$oid&&I.check_in_time&&I.check_in_time.$date)){const I=M.data.map(N=>({...N,_id:N._id.$oid,check_in_time:new Date(N.check_in_time.$date).toLocaleString()}));r(I)}else console.error("Data received is not in expected array format:",M.data),b("Unexpected data format");f(!1)}catch(M){console.error("Error during fetch:",M),b(M.message),f(!1)}},P=M=>{const I=n.find(N=>N._id===M);I&&(i(I),console.log("Selected check-in for details or update:",I),a(!0))},R=()=>{a(!1),c(!1)},E=async()=>{if(o){try{await ve.delete(`/api/check-in/${o._id}`,{headers:{Authorization:`Bearer ${w}`}}),g("Check-in deleted successfully"),x("success"),k(),R()}catch{g("Failed to delete check-in"),x("error")}v(!0)}},j=()=>{t(`/user/check_in/${o._id}`),console.log("Redirecting to update check-in form",o._id)},T=(M,I)=>{I!=="clickaway"&&v(!1)},O=()=>{c(!0)};return e?d?u.jsx(ye,{variant:"h6",mt:"2",children:"Loading..."}):u.jsxs(Ke,{sx:{margin:3,maxWidth:600,mx:"auto",maxHeight:"91vh",overflow:"auto"},children:[u.jsx(ye,{variant:"h4",gutterBottom:!0,children:"Track Your Commitments"}),u.jsx(ca,{sx:{mb:2}}),n.length>0?u.jsx(ja,{children:n.map(M=>u.jsxs(eD,{children:[u.jsx(QM,{children:u.jsx(yr,{sx:{bgcolor:"primary.main"},children:u.jsx(jS,{})})}),u.jsx(da,{primary:`Check-In: ${M.check_in_time}`,secondary:u.jsx(R3,{label:M.frequency,icon:u.jsx(OS,{}),size:"small"})}),u.jsx(Hn,{title:"More options",children:u.jsx(Qe,{onClick:()=>P(M._id),children:u.jsx(IS,{})})})]},M._id))}):u.jsx(ye,{variant:"h6",sx:{mb:2,mt:2,color:"error.main",fontWeight:"medium",textAlign:"center",padding:2,borderRadius:1,backgroundColor:"background.paper",boxShadow:2},children:"No check-ins found."}),u.jsxs(yp,{open:s,onClose:R,children:[u.jsx(Sp,{children:"Check-In Details"}),u.jsx(bp,{children:u.jsxs(ye,{component:"div",children:[u.jsxs(ye,{variant:"body1",children:[u.jsx("strong",{children:"Time:"})," ",o==null?void 0:o.check_in_time]}),u.jsxs(ye,{variant:"body1",children:[u.jsx("strong",{children:"Frequency:"})," ",o==null?void 0:o.frequency]}),u.jsxs(ye,{variant:"body1",children:[u.jsx("strong",{children:"Status:"})," ",o==null?void 0:o.status]}),u.jsxs(ye,{variant:"body1",children:[u.jsx("strong",{children:"Notify:"})," ",o!=null&&o.notify?"Yes":"No"]})]})}),u.jsxs(xp,{children:[u.jsx(gt,{onClick:j,startIcon:u.jsx(NS,{}),children:"Update"}),u.jsx(gt,{onClick:O,startIcon:u.jsx(MS,{}),color:"error",children:"Delete"}),u.jsx(gt,{onClick:R,children:"Close"})]})]}),u.jsxs(yp,{open:l,onClose:R,children:[u.jsx(Sp,{children:"Confirm Deletion"}),u.jsx(bp,{children:u.jsx(Y2,{children:"Are you sure you want to delete this check-in? This action cannot be undone."})}),u.jsxs(xp,{children:[u.jsx(gt,{onClick:E,color:"error",children:"Delete"}),u.jsx(gt,{onClick:R,children:"Cancel"})]})]}),u.jsx(lo,{open:y,autoHideDuration:6e3,onClose:T,children:u.jsx(tD,{onClose:T,severity:m,children:C})})]}):u.jsx(ye,{variant:"h6",mt:"2",children:"Please log in to see your check-ins."})}const fr=({children:e})=>{const t=localStorage.getItem("token");return console.log("isAuthenticated:",t),t?e:u.jsx(TP,{to:"/auth",replace:!0})};var pg={},rD=de;Object.defineProperty(pg,"__esModule",{value:!0});var LS=pg.default=void 0,oD=rD(ge()),iD=u;LS=pg.default=(0,oD.default)((0,iD.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 14H4V8l8 5 8-5zm-8-7L4 6h16z"}),"MailOutline");function sD(){const[e,t]=p.useState(""),[n,r]=p.useState(""),[o,i]=p.useState(!1),[s,a]=p.useState(!1),l=async c=>{var d,f;c.preventDefault(),a(!0);try{const h=await ve.post("/api/user/request_reset",{email:e});r(h.data.message),i(!1)}catch(h){r(((f=(d=h.response)==null?void 0:d.data)==null?void 0:f.message)||"Failed to send reset link. Please try again."),i(!0)}a(!1)};return u.jsx(Ke,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",sx:{background:"linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)","& .MuiPaper-root":{background:"#fff",padding:"30px",width:"400px",textAlign:"center"}},children:u.jsxs(gn,{elevation:3,style:{padding:"30px",width:"400px",textAlign:"center"},children:[u.jsx(ye,{variant:"h5",component:"h1",marginBottom:"20px",children:"Reset Your Password"}),u.jsxs("form",{onSubmit:l,children:[u.jsx(qe,{label:"Email Address",type:"email",value:e,onChange:c=>t(c.target.value),variant:"outlined",fullWidth:!0,required:!0,margin:"normal",InputProps:{endAdornment:u.jsx(LS,{})}}),u.jsx(gt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,disabled:s,endIcon:s?null:u.jsx(Ki,{}),children:s?u.jsx(kn,{size:24}):"Send Reset Link"})]}),n&&u.jsx(ur,{severity:o?"error":"success",sx:{maxWidth:"325px",mt:2},children:n})]})})}var hg={},aD=de;Object.defineProperty(hg,"__esModule",{value:!0});var Rp=hg.default=void 0,lD=aD(ge()),cD=u;Rp=hg.default=(0,lD.default)((0,cD.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");var mg={},uD=de;Object.defineProperty(mg,"__esModule",{value:!0});var AS=mg.default=void 0,dD=uD(ge()),fD=u;AS=mg.default=(0,dD.default)((0,fD.jsx)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l4 4 4-4H6c0-3.86 3.14-7 7-7s7 3.14 7 7-3.14 7-7 7c-1.9 0-3.62-.76-4.88-1.99L6.7 18.42C8.32 20.01 10.55 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m2 8v-1c0-1.1-.9-2-2-2s-2 .9-2 2v1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1m-1 0h-2v-1c0-.55.45-1 1-1s1 .45 1 1z"}),"LockReset");function pD(){const e=Ao(),{token:t}=xa(),[n,r]=p.useState(""),[o,i]=p.useState(""),[s,a]=p.useState(!1),[l,c]=p.useState(""),[d,f]=p.useState(!1),h=async y=>{if(y.preventDefault(),n!==o){c("Passwords do not match."),f(!0);return}try{const v=await ve.post(`/api/user/reset_password/${t}`,{password:n});c(v.data.message),f(!1),setTimeout(()=>e("/auth"),2e3)}catch(v){c(v.response.data.error),f(!0)}},b=()=>{a(!s)};return u.jsx(Ke,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",sx:{background:"linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)","& .MuiPaper-root":{padding:"40px",width:"400px",textAlign:"center",marginTop:"20px",borderRadius:"10px"}},children:u.jsxs(gn,{elevation:6,children:[u.jsxs(ye,{variant:"h5",component:"h1",marginBottom:"2",children:["Reset Your Password ",u.jsx(AS,{})]}),u.jsxs("form",{onSubmit:h,children:[u.jsx(qe,{label:"New Password",type:s?"text":"password",value:n,onChange:y=>r(y.target.value),variant:"outlined",fullWidth:!0,required:!0,margin:"normal",InputProps:{endAdornment:u.jsx(yc,{position:"end",children:u.jsx(Qe,{"aria-label":"toggle password visibility",onClick:b,children:s?u.jsx(Rp,{}):u.jsx(wc,{})})})}}),u.jsx(qe,{label:"Confirm New Password",type:s?"text":"password",value:o,onChange:y=>i(y.target.value),variant:"outlined",fullWidth:!0,required:!0,margin:"normal",InputProps:{endAdornment:u.jsx(yc,{position:"end",children:u.jsx(Qe,{"aria-label":"toggle password visibility",onClick:b,children:s?u.jsx(Rp,{}):u.jsx(wc,{})})})}}),u.jsx(gt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,sx:{mt:2},endIcon:u.jsx(Ki,{}),children:"Reset Password"})]}),l&&u.jsx(ur,{severity:d?"error":"success",sx:{mt:2,maxWidth:"325px"},children:l})]})})}function hD(){const{user:e}=p.useContext(lr);return p.useEffect(()=>{document.body.style.backgroundColor="#f5f5f5"},[]),u.jsx(mD,{children:u.jsxs(jP,{children:[u.jsx(rn,{path:"/",element:u.jsx(fr,{children:e!=null&&e.userId?u.jsx(NL,{}):u.jsx(Py,{})})}),u.jsx(rn,{path:"/chat",element:u.jsx(fr,{children:u.jsx(Py,{})})}),u.jsx(rn,{path:"/reset_password/:token",element:u.jsx(pD,{})}),u.jsx(rn,{path:"/request_reset",element:u.jsx(sD,{})}),u.jsx(rn,{path:"/auth",element:u.jsx(YL,{})}),u.jsx(rn,{path:"/user/profile/:userId",element:u.jsx(fr,{children:u.jsx($A,{})})}),u.jsx(rn,{path:"/user/mood_logging",element:u.jsx(fr,{children:u.jsx(bz,{})})}),u.jsx(rn,{path:"/user/mood_logs",element:u.jsx(fr,{children:u.jsx(Sz,{})})}),u.jsx(rn,{path:"/user/check_in",element:u.jsx(fr,{children:u.jsx(kp,{userId:e==null?void 0:e.userId,checkInId:"",update:!1})})}),u.jsx(rn,{path:"/user/check_in/:checkInId",element:u.jsx(fr,{children:u.jsx(kp,{userId:e==null?void 0:e.userId,update:!0})})}),u.jsx(rn,{path:"/user/chat_log_Manager",element:u.jsx(fr,{children:u.jsx(gz,{})})}),u.jsx(rn,{path:"/user/check_ins/:userId",element:u.jsx(fr,{children:u.jsx(nD,{})})})]})})}function mD({children:e}){p.useContext(lr);const t=oo(),r=!["/auth","/request_reset",new RegExp("^/reset_password/[^/]+$")].some(l=>typeof l=="string"?l===t.pathname:l.test(t.pathname)),o=r?6:0,[i,s]=p.useState(!0),a=()=>{s(!i)};return u.jsxs(Ke,{sx:{display:"flex",maxHeight:"100vh"},children:[u.jsx(hm,{}),r&&u.jsx(iz,{toggleSidebar:a}),r&&i&&u.jsx(YA,{}),u.jsx(Ke,{component:"main",sx:{flexGrow:1,p:o},children:e})]})}function gD(e){const t="=".repeat((4-e.length%4)%4),n=(e+t).replace(/-/g,"+").replace(/_/g,"/"),r=window.atob(n),o=new Uint8Array(r.length);for(let i=0;i{if(t!=="granted")throw new Error("Permission not granted for Notification");return e.pushManager.getSubscription()}).then(function(t){return t||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:gD(yD)})}).then(function(t){console.log("Subscription:",t);const n={p256dh:btoa(String.fromCharCode.apply(null,new Uint8Array(t.getKey("p256dh")))),auth:btoa(String.fromCharCode.apply(null,new Uint8Array(t.getKey("auth"))))};if(console.log("Subscription keys:",n),!n.p256dh||!n.auth)throw console.error("Subscription object:",t),new Error("Subscription keys are missing");const r={endpoint:t.endpoint,keys:n},o=vD();if(!o)throw new Error("No token found");return fetch("/api/subscribe",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`},body:JSON.stringify(r)})}).then(t=>t.json()).then(t=>console.log("Subscription response:",t)).catch(t=>console.error("Subscription failed:",t))}).catch(function(e){console.error("Service Worker registration failed:",e)})});Jd.createRoot(document.getElementById("root")).render(u.jsx(DP,{children:u.jsx(qP,{children:u.jsx(hD,{})})})); diff --git a/client/dist/index.html b/client/dist/index.html index a324ab72..2bd742b9 100644 --- a/client/dist/index.html +++ b/client/dist/index.html @@ -10,7 +10,7 @@ content="Web site created using create-react-app" /> Mental Health App - + diff --git a/client/src/Components/checkInsList.jsx b/client/src/Components/checkInsList.jsx index d6d3cc78..78353985 100644 --- a/client/src/Components/checkInsList.jsx +++ b/client/src/Components/checkInsList.jsx @@ -142,8 +142,8 @@ function CheckInsList() { setDeleteConfirmOpen(true); }; - if (!userId) return Please log in to see your check-ins.; - if (loading) return Loading...; + if (!userId) return Please log in to see your check-ins.; + if (loading) return Loading...; return ( From 7b49ec970e405d0af1284735586e7a430b335e09 Mon Sep 17 00:00:00 2001 From: DHRUMIL PATEL <123137675+dhrumilp12@users.noreply.github.com> Date: Tue, 25 Jun 2024 13:17:09 -0400 Subject: [PATCH 21/38] mood logging. --- client/dist/assets/index-B_Zi3VXB.css | 1 + client/dist/assets/{index-CtYMhTDF.js => index-DWvuota-.js} | 0 client/dist/assets/index-lS-_zLkx.css | 1 - client/dist/index.html | 4 ++-- client/src/Assets/Styles/MoodLogging.css | 3 ++- 5 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 client/dist/assets/index-B_Zi3VXB.css rename client/dist/assets/{index-CtYMhTDF.js => index-DWvuota-.js} (100%) delete mode 100644 client/dist/assets/index-lS-_zLkx.css diff --git a/client/dist/assets/index-B_Zi3VXB.css b/client/dist/assets/index-B_Zi3VXB.css new file mode 100644 index 00000000..4d4dd955 --- /dev/null +++ b/client/dist/assets/index-B_Zi3VXB.css @@ -0,0 +1 @@ +.mood-logging-container{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;font-family:Arial,sans-serif}.mood-logging{width:90%;max-width:500px;background-color:#fff;padding:25px;border-radius:10px;box-shadow:0 10px 25px #0000001a;transition:box-shadow .3s ease-in-out}.mood-logging:hover{box-shadow:0 20px 45px #00000026}.input-group{display:flex;flex-direction:column}input[type=text]{padding:12px 20px;margin:10px 0;border:2px solid #ccc;border-radius:5px;box-sizing:border-box;font-size:16px;transition:border-color .3s ease-in-out}input[type=text]:focus{border-color:#007bff;outline:none}.submit-button{display:flex;align-items:center;justify-content:center;width:100%;background-color:#007bff;color:#fff;padding:12px 20px;border:none;border-radius:5px;cursor:pointer;font-size:18px;margin-top:20px;transition:background-color .3s ease-in-out}.submit-button:hover{background-color:#0056b3}.message{text-align:center;margin-top:15px;padding:10px;font-size:16px;color:#2c3e50;border-radius:5px;background-color:#e0e0e0}.mood-logs{max-width:600px;margin:50px auto;padding:20px;box-shadow:0 4px 8px #0000001a;border-radius:8px;background-color:#fff}h2{display:flex;align-items:center;font-size:24px}.icon-large{font-size:40px;margin-right:7px}.mood-logs h2{text-align:center;color:#333}ul{list-style-type:none;padding:0}li{padding:10px;border-bottom:1px solid #ccc}li:last-child{border-bottom:none}.error{color:red;text-align:center} diff --git a/client/dist/assets/index-CtYMhTDF.js b/client/dist/assets/index-DWvuota-.js similarity index 100% rename from client/dist/assets/index-CtYMhTDF.js rename to client/dist/assets/index-DWvuota-.js diff --git a/client/dist/assets/index-lS-_zLkx.css b/client/dist/assets/index-lS-_zLkx.css deleted file mode 100644 index 10ee0be8..00000000 --- a/client/dist/assets/index-lS-_zLkx.css +++ /dev/null @@ -1 +0,0 @@ -.mood-logging-container{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;font-family:Arial,sans-serif}.mood-logging{width:90%;max-width:500px;padding:25px;border-radius:10px;box-shadow:0 10px 25px #0000001a;transition:box-shadow .3s ease-in-out}.mood-logging:hover{box-shadow:0 20px 45px #00000026}.input-group{display:flex;flex-direction:column}input[type=text]{padding:12px 20px;margin:10px 0;border:2px solid #ccc;border-radius:5px;box-sizing:border-box;font-size:16px;transition:border-color .3s ease-in-out}input[type=text]:focus{border-color:#007bff;outline:none}.submit-button{display:flex;align-items:center;justify-content:center;width:100%;background-color:#007bff;color:#fff;padding:12px 20px;border:none;border-radius:5px;cursor:pointer;font-size:18px;margin-top:20px;transition:background-color .3s ease-in-out}.submit-button:hover{background-color:#0056b3}.message{text-align:center;margin-top:15px;padding:10px;font-size:16px;color:#2c3e50;border-radius:5px;background-color:#e0e0e0}.mood-logs{max-width:600px;margin:50px auto;padding:20px;box-shadow:0 4px 8px #0000001a;border-radius:8px;background-color:#fff}h2{display:flex;align-items:center;font-size:24px}.icon-large{font-size:40px;margin-right:7px}.mood-logs h2{text-align:center;color:#333}ul{list-style-type:none;padding:0}li{padding:10px;border-bottom:1px solid #ccc}li:last-child{border-bottom:none}.error{color:red;text-align:center} diff --git a/client/dist/index.html b/client/dist/index.html index 2bd742b9..021708fa 100644 --- a/client/dist/index.html +++ b/client/dist/index.html @@ -10,8 +10,8 @@ content="Web site created using create-react-app" /> Mental Health App - - + +
diff --git a/client/src/Assets/Styles/MoodLogging.css b/client/src/Assets/Styles/MoodLogging.css index 8f3735d3..6e22f337 100644 --- a/client/src/Assets/Styles/MoodLogging.css +++ b/client/src/Assets/Styles/MoodLogging.css @@ -6,12 +6,13 @@ min-height: 100vh; font-family: 'Arial', sans-serif; + } .mood-logging { width: 90%; max-width: 500px; - + background-color: white; padding: 25px; border-radius: 10px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); From 5f6308df1df38e1dae63d8d10c5f92bd4784eaed Mon Sep 17 00:00:00 2001 From: DHRUMIL PATEL <123137675+dhrumilp12@users.noreply.github.com> Date: Tue, 25 Jun 2024 13:29:20 -0400 Subject: [PATCH 22/38] mic problem solved --- client/.env.production | 2 +- server/Dockerfile | 2 +- server/routes/ai.py | 8 ++++---- server/routes/check_in.py | 16 ++++++++-------- server/routes/user.py | 30 +++++++++++++++--------------- 5 files changed, 29 insertions(+), 29 deletions(-) diff --git a/client/.env.production b/client/.env.production index 78a72c85..588f48b0 100644 --- a/client/.env.production +++ b/client/.env.production @@ -1 +1 @@ -VITE_API_URL=https://earlent.thankfulpebble-55902899.westus2.azurecontainerapps.io/api \ No newline at end of file +VITE_API_URL=https://earlent.thankfulpebble-55902899.westus2.azurecontainerapps.io \ No newline at end of file diff --git a/server/Dockerfile b/server/Dockerfile index 16ea6fef..8c094111 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -4,7 +4,7 @@ WORKDIR /app # Update linux pacakges RUN apt-get update && \ -apt-get install --no-install-suggests --no-install-recommends -y pipx +apt-get install --no-install-suggests --no-install-recommends -y pipx ffmpeg ENV PATH="/root/.local/bin:${PATH}" ENV FLASK_RUN_HOST=0.0.0.0 \ diff --git a/server/routes/ai.py b/server/routes/ai.py index 2ef19cfd..fc44bb82 100644 --- a/server/routes/ai.py +++ b/server/routes/ai.py @@ -12,7 +12,7 @@ ai_routes = Blueprint("ai", __name__) -@ai_routes.post("/api/ai/mental_health/welcome/") +@ai_routes.post("/ai/mental_health/welcome/") def get_mental_health_agent_welcome(user_id): agent = MentalHealthAIAgent(tool_names=["web_search_tavily"]) @@ -27,7 +27,7 @@ def get_mental_health_agent_welcome(user_id): return jsonify(response), 200 -@ai_routes.post("/api/ai/mental_health//") +@ai_routes.post("/ai/mental_health//") def run_mental_health_agent(user_id, chat_id): body = request.get_json() if not body: @@ -57,7 +57,7 @@ def run_mental_health_agent(user_id, chat_id): return jsonify({"error": str(e)}), 500 -@ai_routes.patch("/api/ai/mental_health/finalize//") +@ai_routes.patch("/ai/mental_health/finalize//") def set_mental_health_end_state(user_id, chat_id): try: logger.info(f"Finalizing chat {chat_id} for user {user_id}") @@ -74,7 +74,7 @@ def set_mental_health_end_state(user_id, chat_id): return jsonify({"error": "Failed to finalize chat"}), 500 -@ai_routes.post("/api/ai/mental_health/voice-to-text") +@ai_routes.post("/ai/mental_health/voice-to-text") def handle_voice_input(): # Check if the part 'audio' is present in files if 'audio' not in request.files: diff --git a/server/routes/check_in.py b/server/routes/check_in.py index 9735ff84..a379a4bc 100644 --- a/server/routes/check_in.py +++ b/server/routes/check_in.py @@ -26,7 +26,7 @@ check_in_routes = Blueprint("check-in", __name__) -@check_in_routes.post('/api/check-in/schedule') +@check_in_routes.post('/check-in/schedule') @jwt_required() def schedule_check_in(): try: # Parse and validate the request data using Pydantic model @@ -66,7 +66,7 @@ def schedule_check_in(): return jsonify({'error': str(e)}), 500 -@check_in_routes.patch('/api/check-in/') +@check_in_routes.patch('/check-in/') @jwt_required() def update_check_in(check_in_id): data = request.get_json() @@ -106,7 +106,7 @@ def update_check_in(check_in_id): except Exception as e: return jsonify({'error': str(e)}), 500 -@check_in_routes.get('/api/check-in/') +@check_in_routes.get('/check-in/') @jwt_required() def retrieve_check_in(check_in_id): logging.debug(f"Attempting to retrieve check-in with ID: {check_in_id}") @@ -127,7 +127,7 @@ def retrieve_check_in(check_in_id): logging.error(f"An unexpected error occurred: {str(e)}") return jsonify({'error': f"An unexpected error occurred: {str(e)}"}), 500 -@check_in_routes.delete('/api/check-in/') +@check_in_routes.delete('/check-in/') @jwt_required() def delete_check_in(check_in_id): try: @@ -141,7 +141,7 @@ def delete_check_in(check_in_id): except Exception as e: return jsonify({'error': str(e)}), 500 -@check_in_routes.get('/api/check-in/all') +@check_in_routes.get('/check-in/all') @jwt_required() def retrieve_all_check_ins(): user_id = request.args.get('user_id') @@ -160,7 +160,7 @@ def retrieve_all_check_ins(): return jsonify({'error': str(e)}), 500 -@check_in_routes.get('/api/check-in/missed') +@check_in_routes.get('/check-in/missed') @jwt_required() def check_missed_check_ins(): user_id = request.args.get('user_id') @@ -183,7 +183,7 @@ def check_missed_check_ins(): return jsonify({'message': 'No missed check-ins'}), 200 -@check_in_routes.route('/api/subscribe', methods=['POST']) +@check_in_routes.route('/subscribe', methods=['POST']) @jwt_required() def subscribe(): data = request.json @@ -217,7 +217,7 @@ def subscribe(): return jsonify({'message': 'Subscription saved successfully'}), 200 -@check_in_routes.route('/api/send_push', methods=['POST']) +@check_in_routes.route('/send_push', methods=['POST']) @jwt_required() def send_push(): data = request.json diff --git a/server/routes/user.py b/server/routes/user.py index 0872ebc3..4663e9c5 100644 --- a/server/routes/user.py +++ b/server/routes/user.py @@ -39,7 +39,7 @@ def verify_reset_token(token): user_routes = Blueprint("user", __name__) -@user_routes.post('/api/user/signup') +@user_routes.post('/user/signup') def signup(): try: logging.info("Starting user registration process") @@ -88,7 +88,7 @@ def signup(): return jsonify({"error": str(e)}), 400 -@user_routes.post('/api/user/anonymous_signin') +@user_routes.post('/user/anonymous_signin') def anonymous_signin(): try: # Set a reasonable expiration time for tokens, e.g., 24 hours @@ -105,7 +105,7 @@ def anonymous_signin(): return jsonify({"msg": "Failed to create access token"}), 500 -@user_routes.post('/api/user/login') +@user_routes.post('/user/login') def login(): try: username = request.json.get('username', None) @@ -126,7 +126,7 @@ def login(): return jsonify({"error": str(e)}), 500 -@user_routes.post('/api/user/logout') +@user_routes.post('/user/logout') @jwt_required() def logout(): # JWT Revocation or Blacklisting could be implemented here if needed @@ -135,7 +135,7 @@ def logout(): return jsonify({"msg": "Logout successful"}), 200 -@user_routes.get('/api/user/profile/') +@user_routes.get('/user/profile/') def get_public_profile(user_id): db_client = MongoDBClient.get_client() db = db_client[MongoDBClient.get_db_name()] @@ -159,7 +159,7 @@ def get_public_profile(user_id): return jsonify(user_data), 200 -@user_routes.patch('/api/user/profile/') +@user_routes.patch('/user/profile/') def update_profile_fields(user_id): update_fields = request.get_json() @@ -181,7 +181,7 @@ def update_profile_fields(user_id): return jsonify({"message": "User has been updated successfully."}), 200 -@user_routes.patch('/api/user/change_password/') +@user_routes.patch('/user/change_password/') def change_password(user_id): try: # Authenticate user @@ -214,7 +214,7 @@ def change_password(user_id): logging.error(f"Error changing password: {str(e)}") return jsonify({"error": str(e)}), 500 -@user_routes.post('/api/user/request_reset') +@user_routes.post('/user/request_reset') def request_password_reset(): email = request.json.get('email') user = UserModel.find_by_email(email) @@ -230,7 +230,7 @@ def request_password_reset(): return jsonify({"message": "Check your email for the reset password link"}), 200 -@user_routes.post('/api/user/reset_password/') +@user_routes.post('/user/reset_password/') def reset_password(token): new_password = request.json.get('password') user = verify_reset_token(token) @@ -243,7 +243,7 @@ def reset_password(token): return jsonify({"message": "Password has been reset successfully"}), 200 -@user_routes.post('/api/user/log_mood') +@user_routes.post('/user/log_mood') @jwt_required() def log_mood(): try: @@ -269,7 +269,7 @@ def log_mood(): return jsonify({"error": "Failed to log mood"}), 500 -@user_routes.get('/api/user/get_mood_logs') +@user_routes.get('/user/get_mood_logs') @jwt_required() def get_mood_logs(): try: @@ -283,7 +283,7 @@ def get_mood_logs(): return jsonify({"error": "Failed to retrieve mood logs"}), 500 -@user_routes.get('/api/user/download_chat_logs') +@user_routes.get('/user/download_chat_logs') @jwt_required() def download_chat_logs(): try: @@ -331,7 +331,7 @@ def download_chat_logs(): return jsonify({"error": "Failed to download chat logs"}), 500 -@user_routes.delete('/api/user/delete_chat_logs') +@user_routes.delete('/user/delete_chat_logs') @jwt_required() def delete_user_chat_logs(): try: @@ -350,7 +350,7 @@ def delete_user_chat_logs(): logging.error(f"Error deleting chat logs: {str(e)}") return jsonify({"error": "Failed to delete chat logs"}), 500 -@user_routes.delete('/api/user/delete_chat_logs/range') +@user_routes.delete('/user/delete_chat_logs/range') @jwt_required() def delete_user_chat_logs_in_range(): logging.info("Entered the delete route") @@ -390,7 +390,7 @@ def delete_user_chat_logs_in_range(): -@user_routes.get('/api/user/download_chat_logs/range') +@user_routes.get('/user/download_chat_logs/range') @jwt_required() def download_chat_logs_in_range(): try: From 360336e88290f625a85f4ec02d427fe38f9e8e4f Mon Sep 17 00:00:00 2001 From: DHRUMIL PATEL <123137675+dhrumilp12@users.noreply.github.com> Date: Tue, 25 Jun 2024 14:30:07 -0400 Subject: [PATCH 23/38] . --- client/.env.production | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/.env.production b/client/.env.production index 588f48b0..f5c7ac33 100644 --- a/client/.env.production +++ b/client/.env.production @@ -1 +1 @@ -VITE_API_URL=https://earlent.thankfulpebble-55902899.westus2.azurecontainerapps.io \ No newline at end of file +VITE_API_URL=Earlent-hxbbaua8ehhddphw.z02.azurefd.net \ No newline at end of file From 053faa8b830b7eee34896a66f2d2c8a245f8f621 Mon Sep 17 00:00:00 2001 From: DHRUMIL PATEL <123137675+dhrumilp12@users.noreply.github.com> Date: Tue, 25 Jun 2024 14:59:52 -0400 Subject: [PATCH 24/38] . --- client/.env.production | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/.env.production b/client/.env.production index f5c7ac33..350e4949 100644 --- a/client/.env.production +++ b/client/.env.production @@ -1 +1 @@ -VITE_API_URL=Earlent-hxbbaua8ehhddphw.z02.azurefd.net \ No newline at end of file +VITE_API_URL=https://Earlent-hxbbaua8ehhddphw.z02.azurefd.net \ No newline at end of file From 4166f2ceab9acb831924964c9b0d64160bcb5694 Mon Sep 17 00:00:00 2001 From: DHRUMIL PATEL <123137675+dhrumilp12@users.noreply.github.com> Date: Tue, 25 Jun 2024 15:33:18 -0400 Subject: [PATCH 25/38] ... --- client/.env.production | 2 +- server/routes/ai.py | 8 ++++---- server/routes/check_in.py | 16 ++++++++-------- server/routes/user.py | 30 +++++++++++++++--------------- 4 files changed, 28 insertions(+), 28 deletions(-) diff --git a/client/.env.production b/client/.env.production index 350e4949..78a72c85 100644 --- a/client/.env.production +++ b/client/.env.production @@ -1 +1 @@ -VITE_API_URL=https://Earlent-hxbbaua8ehhddphw.z02.azurefd.net \ No newline at end of file +VITE_API_URL=https://earlent.thankfulpebble-55902899.westus2.azurecontainerapps.io/api \ No newline at end of file diff --git a/server/routes/ai.py b/server/routes/ai.py index fc44bb82..2ef19cfd 100644 --- a/server/routes/ai.py +++ b/server/routes/ai.py @@ -12,7 +12,7 @@ ai_routes = Blueprint("ai", __name__) -@ai_routes.post("/ai/mental_health/welcome/") +@ai_routes.post("/api/ai/mental_health/welcome/") def get_mental_health_agent_welcome(user_id): agent = MentalHealthAIAgent(tool_names=["web_search_tavily"]) @@ -27,7 +27,7 @@ def get_mental_health_agent_welcome(user_id): return jsonify(response), 200 -@ai_routes.post("/ai/mental_health//") +@ai_routes.post("/api/ai/mental_health//") def run_mental_health_agent(user_id, chat_id): body = request.get_json() if not body: @@ -57,7 +57,7 @@ def run_mental_health_agent(user_id, chat_id): return jsonify({"error": str(e)}), 500 -@ai_routes.patch("/ai/mental_health/finalize//") +@ai_routes.patch("/api/ai/mental_health/finalize//") def set_mental_health_end_state(user_id, chat_id): try: logger.info(f"Finalizing chat {chat_id} for user {user_id}") @@ -74,7 +74,7 @@ def set_mental_health_end_state(user_id, chat_id): return jsonify({"error": "Failed to finalize chat"}), 500 -@ai_routes.post("/ai/mental_health/voice-to-text") +@ai_routes.post("/api/ai/mental_health/voice-to-text") def handle_voice_input(): # Check if the part 'audio' is present in files if 'audio' not in request.files: diff --git a/server/routes/check_in.py b/server/routes/check_in.py index a379a4bc..9735ff84 100644 --- a/server/routes/check_in.py +++ b/server/routes/check_in.py @@ -26,7 +26,7 @@ check_in_routes = Blueprint("check-in", __name__) -@check_in_routes.post('/check-in/schedule') +@check_in_routes.post('/api/check-in/schedule') @jwt_required() def schedule_check_in(): try: # Parse and validate the request data using Pydantic model @@ -66,7 +66,7 @@ def schedule_check_in(): return jsonify({'error': str(e)}), 500 -@check_in_routes.patch('/check-in/') +@check_in_routes.patch('/api/check-in/') @jwt_required() def update_check_in(check_in_id): data = request.get_json() @@ -106,7 +106,7 @@ def update_check_in(check_in_id): except Exception as e: return jsonify({'error': str(e)}), 500 -@check_in_routes.get('/check-in/') +@check_in_routes.get('/api/check-in/') @jwt_required() def retrieve_check_in(check_in_id): logging.debug(f"Attempting to retrieve check-in with ID: {check_in_id}") @@ -127,7 +127,7 @@ def retrieve_check_in(check_in_id): logging.error(f"An unexpected error occurred: {str(e)}") return jsonify({'error': f"An unexpected error occurred: {str(e)}"}), 500 -@check_in_routes.delete('/check-in/') +@check_in_routes.delete('/api/check-in/') @jwt_required() def delete_check_in(check_in_id): try: @@ -141,7 +141,7 @@ def delete_check_in(check_in_id): except Exception as e: return jsonify({'error': str(e)}), 500 -@check_in_routes.get('/check-in/all') +@check_in_routes.get('/api/check-in/all') @jwt_required() def retrieve_all_check_ins(): user_id = request.args.get('user_id') @@ -160,7 +160,7 @@ def retrieve_all_check_ins(): return jsonify({'error': str(e)}), 500 -@check_in_routes.get('/check-in/missed') +@check_in_routes.get('/api/check-in/missed') @jwt_required() def check_missed_check_ins(): user_id = request.args.get('user_id') @@ -183,7 +183,7 @@ def check_missed_check_ins(): return jsonify({'message': 'No missed check-ins'}), 200 -@check_in_routes.route('/subscribe', methods=['POST']) +@check_in_routes.route('/api/subscribe', methods=['POST']) @jwt_required() def subscribe(): data = request.json @@ -217,7 +217,7 @@ def subscribe(): return jsonify({'message': 'Subscription saved successfully'}), 200 -@check_in_routes.route('/send_push', methods=['POST']) +@check_in_routes.route('/api/send_push', methods=['POST']) @jwt_required() def send_push(): data = request.json diff --git a/server/routes/user.py b/server/routes/user.py index 4663e9c5..0872ebc3 100644 --- a/server/routes/user.py +++ b/server/routes/user.py @@ -39,7 +39,7 @@ def verify_reset_token(token): user_routes = Blueprint("user", __name__) -@user_routes.post('/user/signup') +@user_routes.post('/api/user/signup') def signup(): try: logging.info("Starting user registration process") @@ -88,7 +88,7 @@ def signup(): return jsonify({"error": str(e)}), 400 -@user_routes.post('/user/anonymous_signin') +@user_routes.post('/api/user/anonymous_signin') def anonymous_signin(): try: # Set a reasonable expiration time for tokens, e.g., 24 hours @@ -105,7 +105,7 @@ def anonymous_signin(): return jsonify({"msg": "Failed to create access token"}), 500 -@user_routes.post('/user/login') +@user_routes.post('/api/user/login') def login(): try: username = request.json.get('username', None) @@ -126,7 +126,7 @@ def login(): return jsonify({"error": str(e)}), 500 -@user_routes.post('/user/logout') +@user_routes.post('/api/user/logout') @jwt_required() def logout(): # JWT Revocation or Blacklisting could be implemented here if needed @@ -135,7 +135,7 @@ def logout(): return jsonify({"msg": "Logout successful"}), 200 -@user_routes.get('/user/profile/') +@user_routes.get('/api/user/profile/') def get_public_profile(user_id): db_client = MongoDBClient.get_client() db = db_client[MongoDBClient.get_db_name()] @@ -159,7 +159,7 @@ def get_public_profile(user_id): return jsonify(user_data), 200 -@user_routes.patch('/user/profile/') +@user_routes.patch('/api/user/profile/') def update_profile_fields(user_id): update_fields = request.get_json() @@ -181,7 +181,7 @@ def update_profile_fields(user_id): return jsonify({"message": "User has been updated successfully."}), 200 -@user_routes.patch('/user/change_password/') +@user_routes.patch('/api/user/change_password/') def change_password(user_id): try: # Authenticate user @@ -214,7 +214,7 @@ def change_password(user_id): logging.error(f"Error changing password: {str(e)}") return jsonify({"error": str(e)}), 500 -@user_routes.post('/user/request_reset') +@user_routes.post('/api/user/request_reset') def request_password_reset(): email = request.json.get('email') user = UserModel.find_by_email(email) @@ -230,7 +230,7 @@ def request_password_reset(): return jsonify({"message": "Check your email for the reset password link"}), 200 -@user_routes.post('/user/reset_password/') +@user_routes.post('/api/user/reset_password/') def reset_password(token): new_password = request.json.get('password') user = verify_reset_token(token) @@ -243,7 +243,7 @@ def reset_password(token): return jsonify({"message": "Password has been reset successfully"}), 200 -@user_routes.post('/user/log_mood') +@user_routes.post('/api/user/log_mood') @jwt_required() def log_mood(): try: @@ -269,7 +269,7 @@ def log_mood(): return jsonify({"error": "Failed to log mood"}), 500 -@user_routes.get('/user/get_mood_logs') +@user_routes.get('/api/user/get_mood_logs') @jwt_required() def get_mood_logs(): try: @@ -283,7 +283,7 @@ def get_mood_logs(): return jsonify({"error": "Failed to retrieve mood logs"}), 500 -@user_routes.get('/user/download_chat_logs') +@user_routes.get('/api/user/download_chat_logs') @jwt_required() def download_chat_logs(): try: @@ -331,7 +331,7 @@ def download_chat_logs(): return jsonify({"error": "Failed to download chat logs"}), 500 -@user_routes.delete('/user/delete_chat_logs') +@user_routes.delete('/api/user/delete_chat_logs') @jwt_required() def delete_user_chat_logs(): try: @@ -350,7 +350,7 @@ def delete_user_chat_logs(): logging.error(f"Error deleting chat logs: {str(e)}") return jsonify({"error": "Failed to delete chat logs"}), 500 -@user_routes.delete('/user/delete_chat_logs/range') +@user_routes.delete('/api/user/delete_chat_logs/range') @jwt_required() def delete_user_chat_logs_in_range(): logging.info("Entered the delete route") @@ -390,7 +390,7 @@ def delete_user_chat_logs_in_range(): -@user_routes.get('/user/download_chat_logs/range') +@user_routes.get('/api/user/download_chat_logs/range') @jwt_required() def download_chat_logs_in_range(): try: From 9390e28a8774a4dec75aefd0dfd25b11075ba903 Mon Sep 17 00:00:00 2001 From: DHRUMIL PATEL <123137675+dhrumilp12@users.noreply.github.com> Date: Tue, 25 Jun 2024 15:58:50 -0400 Subject: [PATCH 26/38] . --- client/dist/assets/{index-DWvuota-.js => index-CJY1pBHy.js} | 2 +- client/dist/index.html | 2 +- client/src/Components/chatComponent.jsx | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) rename client/dist/assets/{index-DWvuota-.js => index-CJY1pBHy.js} (99%) diff --git a/client/dist/assets/index-DWvuota-.js b/client/dist/assets/index-CJY1pBHy.js similarity index 99% rename from client/dist/assets/index-DWvuota-.js rename to client/dist/assets/index-CJY1pBHy.js index 4c4b273c..4e06af4a 100644 --- a/client/dist/assets/index-DWvuota-.js +++ b/client/dist/assets/index-CJY1pBHy.js @@ -193,7 +193,7 @@ Error generating stack: `+i.message+` animation: ${0} 1.4s linear infinite; `),DO)),UO=B("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),HO=B("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${A(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>S({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&au(Q0||(Q0=Ku` animation: ${0} 1.4s ease-in-out infinite; - `),FO)),kn=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:s=!1,size:a=40,style:l,thickness:c=3.6,value:d=0,variant:f="indeterminate"}=r,h=H(r,zO),b=S({},r,{color:i,disableShrink:s,size:a,thickness:c,value:d,variant:f}),y=BO(b),v={},C={},g={};if(f==="determinate"){const m=2*Math.PI*((Nr-c)/2);v.strokeDasharray=m.toFixed(3),g["aria-valuenow"]=Math.round(d),v.strokeDashoffset=`${((100-d)/100*m).toFixed(3)}px`,C.transform="rotate(-90deg)"}return u.jsx(WO,S({className:V(y.root,o),style:S({width:a,height:a},C,l),ownerState:b,ref:n,role:"progressbar"},g,h,{children:u.jsx(UO,{className:y.svg,ownerState:b,viewBox:`${Nr/2} ${Nr/2} ${Nr} ${Nr}`,children:u.jsx(HO,{className:y.circle,style:v,ownerState:b,cx:Nr,cy:Nr,r:(Nr-c)/2,fill:"none",strokeWidth:c})})}))}),K2=X4({createStyledComponent:B("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${A(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>le({props:e,name:"MuiContainer"})}),VO=(e,t)=>S({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),qO=e=>S({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),KO=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,a])=>{var l;r[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(l=a.palette)==null?void 0:l.mode}});let o=S({html:VO(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:S({margin:0},qO(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const i=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return i&&(o=[o,i]),o};function hm(e){const t=le({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return u.jsxs(p.Fragment,{children:[u.jsx(W2,{styles:o=>KO(o,r)}),n]})}function GO(e){return re("MuiModal",e)}oe("MuiModal",["root","hidden","backdrop"]);const YO=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],XO=e=>{const{open:t,exited:n,classes:r}=e;return ie({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},GO,r)},QO=B("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>S({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),JO=B(H2,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),mm=p.forwardRef(function(t,n){var r,o,i,s,a,l;const c=le({name:"MuiModal",props:t}),{BackdropComponent:d=JO,BackdropProps:f,className:h,closeAfterTransition:b=!1,children:y,container:v,component:C,components:g={},componentsProps:m={},disableAutoFocus:x=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:k=!1,disablePortal:P=!1,disableRestoreFocus:R=!1,disableScrollLock:E=!1,hideBackdrop:j=!1,keepMounted:T=!1,onBackdropClick:O,open:M,slotProps:I,slots:N}=c,D=H(c,YO),z=S({},c,{closeAfterTransition:b,disableAutoFocus:x,disableEnforceFocus:w,disableEscapeKeyDown:k,disablePortal:P,disableRestoreFocus:R,disableScrollLock:E,hideBackdrop:j,keepMounted:T}),{getRootProps:W,getBackdropProps:$,getTransitionProps:_,portalRef:F,isTopModal:G,exited:X,hasTransition:ce}=V_(S({},z,{rootRef:n})),Z=S({},z,{exited:X}),ue=XO(Z),U={};if(y.props.tabIndex===void 0&&(U.tabIndex="-1"),ce){const{onEnter:pe,onExited:Se}=_();U.onEnter=pe,U.onExited=Se}const ee=(r=(o=N==null?void 0:N.root)!=null?o:g.Root)!=null?r:QO,K=(i=(s=N==null?void 0:N.backdrop)!=null?s:g.Backdrop)!=null?i:d,Q=(a=I==null?void 0:I.root)!=null?a:m.root,he=(l=I==null?void 0:I.backdrop)!=null?l:m.backdrop,J=en({elementType:ee,externalSlotProps:Q,externalForwardedProps:D,getSlotProps:W,additionalProps:{ref:n,as:C},ownerState:Z,className:V(h,Q==null?void 0:Q.className,ue==null?void 0:ue.root,!Z.open&&Z.exited&&(ue==null?void 0:ue.hidden))}),fe=en({elementType:K,externalSlotProps:he,additionalProps:f,getSlotProps:pe=>$(S({},pe,{onClick:Se=>{O&&O(Se),pe!=null&&pe.onClick&&pe.onClick(Se)}})),className:V(he==null?void 0:he.className,f==null?void 0:f.className,ue==null?void 0:ue.backdrop),ownerState:Z});return!T&&!M&&(!ce||X)?null:u.jsx($2,{ref:F,container:v,disablePortal:P,children:u.jsxs(ee,S({},J,{children:[!j&&d?u.jsx(K,S({},fe)):null,u.jsx(N_,{disableEnforceFocus:w,disableAutoFocus:x,disableRestoreFocus:R,isEnabled:G,open:M,children:p.cloneElement(y,U)})]}))})});function ZO(e){return re("MuiDialog",e)}const Ud=oe("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),G2=p.createContext({}),eI=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],tI=B(H2,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),nI=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,s={root:["root"],container:["container",`scroll${A(n)}`],paper:["paper",`paperScroll${A(n)}`,`paperWidth${A(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return ie(s,ZO,t)},rI=B(mm,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),oI=B("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${A(n.scroll)}`]]}})(({ownerState:e})=>S({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),iI=B(gn,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${A(n.scroll)}`],t[`paperWidth${A(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>S({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Ud.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${Ud.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Ud.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),yp=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiDialog"}),o=io(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,BackdropComponent:l,BackdropProps:c,children:d,className:f,disableEscapeKeyDown:h=!1,fullScreen:b=!1,fullWidth:y=!1,maxWidth:v="sm",onBackdropClick:C,onClick:g,onClose:m,open:x,PaperComponent:w=gn,PaperProps:k={},scroll:P="paper",TransitionComponent:R=U2,transitionDuration:E=i,TransitionProps:j}=r,T=H(r,eI),O=S({},r,{disableEscapeKeyDown:h,fullScreen:b,fullWidth:y,maxWidth:v,scroll:P}),M=nI(O),I=p.useRef(),N=$=>{I.current=$.target===$.currentTarget},D=$=>{g&&g($),I.current&&(I.current=null,C&&C($),m&&m($,"backdropClick"))},z=ka(a),W=p.useMemo(()=>({titleId:z}),[z]);return u.jsx(rI,S({className:V(M.root,f),closeAfterTransition:!0,components:{Backdrop:tI},componentsProps:{backdrop:S({transitionDuration:E,as:l},c)},disableEscapeKeyDown:h,onClose:m,open:x,ref:n,onClick:D,ownerState:O},T,{children:u.jsx(R,S({appear:!0,in:x,timeout:E,role:"presentation"},j,{children:u.jsx(oI,{className:V(M.container),onMouseDown:N,ownerState:O,children:u.jsx(iI,S({as:w,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":z},k,{className:V(M.paper,k.className),ownerState:O,children:u.jsx(G2.Provider,{value:W,children:d})}))})}))}))});function sI(e){return re("MuiDialogActions",e)}oe("MuiDialogActions",["root","spacing"]);const aI=["className","disableSpacing"],lI=e=>{const{classes:t,disableSpacing:n}=e;return ie({root:["root",!n&&"spacing"]},sI,t)},cI=B("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>S({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),xp=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1}=r,s=H(r,aI),a=S({},r,{disableSpacing:i}),l=lI(a);return u.jsx(cI,S({className:V(l.root,o),ownerState:a,ref:n},s))});function uI(e){return re("MuiDialogContent",e)}oe("MuiDialogContent",["root","dividers"]);function dI(e){return re("MuiDialogTitle",e)}const fI=oe("MuiDialogTitle",["root"]),pI=["className","dividers"],hI=e=>{const{classes:t,dividers:n}=e;return ie({root:["root",n&&"dividers"]},uI,t)},mI=B("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>S({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${fI.root} + &`]:{paddingTop:0}})),bp=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,s=H(r,pI),a=S({},r,{dividers:i}),l=hI(a);return u.jsx(mI,S({className:V(l.root,o),ownerState:a,ref:n},s))});function gI(e){return re("MuiDialogContentText",e)}oe("MuiDialogContentText",["root"]);const vI=["children","className"],yI=e=>{const{classes:t}=e,r=ie({root:["root"]},gI,t);return S({},t,r)},xI=B(ye,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Y2=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiDialogContentText"}),{className:o}=r,i=H(r,vI),s=yI(i);return u.jsx(xI,S({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:i,className:V(s.root,o)},r,{classes:s}))}),bI=["className","id"],SI=e=>{const{classes:t}=e;return ie({root:["root"]},dI,t)},CI=B(ye,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Sp=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiDialogTitle"}),{className:o,id:i}=r,s=H(r,bI),a=r,l=SI(a),{titleId:c=i}=p.useContext(G2);return u.jsx(CI,S({component:"h2",className:V(l.root,o),ownerState:a,ref:n,variant:"h6",id:i??c},s))});function wI(e){return re("MuiDivider",e)}const J0=oe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),kI=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],RI=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:s,textAlign:a,variant:l}=e;return ie({root:["root",t&&"absolute",l,i&&"light",s==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",a==="right"&&s!=="vertical"&&"textAlignRight",a==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},wI,r)},PI=B("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>S({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:je(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>S({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>S({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>S({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>S({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),EI=B("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>S({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),ca=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:s,component:a=i?"div":"hr",flexItem:l=!1,light:c=!1,orientation:d="horizontal",role:f=a!=="hr"?"separator":void 0,textAlign:h="center",variant:b="fullWidth"}=r,y=H(r,kI),v=S({},r,{absolute:o,component:a,flexItem:l,light:c,orientation:d,role:f,textAlign:h,variant:b}),C=RI(v);return u.jsx(PI,S({as:a,className:V(C.root,s),role:f,ref:n,ownerState:v},y,{children:i?u.jsx(EI,{className:C.wrapper,ownerState:v,children:i}):null}))});ca.muiSkipListHighlight=!0;const $I=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function TI(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=_n(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const c=i.getComputedStyle(t);s=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let a=0,l=0;if(s&&s!=="none"&&typeof s=="string"){const c=s.split("(")[1].split(")")[0].split(",");a=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?o?`translateX(${o.right+a-r.left}px)`:`translateX(${i.innerWidth+a-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-a}px)`:`translateX(-${r.left+r.width-a}px)`:e==="up"?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function _I(e){return typeof e=="function"?e():e}function ol(e,t,n){const r=_I(n),o=TI(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const jI=p.forwardRef(function(t,n){const r=io(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:l,container:c,direction:d="down",easing:f=o,in:h,onEnter:b,onEntered:y,onEntering:v,onExit:C,onExited:g,onExiting:m,style:x,timeout:w=i,TransitionComponent:k=Qn}=t,P=H(t,$I),R=p.useRef(null),E=Ye(l.ref,R,n),j=$=>_=>{$&&(_===void 0?$(R.current):$(R.current,_))},T=j(($,_)=>{ol(d,$,c),nm($),b&&b($,_)}),O=j(($,_)=>{const F=Pi({timeout:w,style:x,easing:f},{mode:"enter"});$.style.webkitTransition=r.transitions.create("-webkit-transform",S({},F)),$.style.transition=r.transitions.create("transform",S({},F)),$.style.webkitTransform="none",$.style.transform="none",v&&v($,_)}),M=j(y),I=j(m),N=j($=>{const _=Pi({timeout:w,style:x,easing:f},{mode:"exit"});$.style.webkitTransition=r.transitions.create("-webkit-transform",_),$.style.transition=r.transitions.create("transform",_),ol(d,$,c),C&&C($)}),D=j($=>{$.style.webkitTransition="",$.style.transition="",g&&g($)}),z=$=>{s&&s(R.current,$)},W=p.useCallback(()=>{R.current&&ol(d,R.current,c)},[d,c]);return p.useEffect(()=>{if(h||d==="down"||d==="right")return;const $=Hi(()=>{R.current&&ol(d,R.current,c)}),_=_n(R.current);return _.addEventListener("resize",$),()=>{$.clear(),_.removeEventListener("resize",$)}},[d,h,c]),p.useEffect(()=>{h||W()},[h,W]),u.jsx(k,S({nodeRef:R,onEnter:T,onEntered:M,onEntering:O,onExit:N,onExited:D,onExiting:I,addEndListener:z,appear:a,in:h,timeout:w},P,{children:($,_)=>p.cloneElement(l,S({ref:E,style:S({visibility:$==="exited"&&!h?"hidden":void 0},x,l.props.style)},_))}))});function OI(e){return re("MuiDrawer",e)}oe("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const II=["BackdropProps"],MI=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],X2=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},NI=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${A(n)}`,r!=="temporary"&&`paperAnchorDocked${A(n)}`]};return ie(o,OI,t)},LI=B(mm,{name:"MuiDrawer",slot:"Root",overridesResolver:X2})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),Z0=B("div",{shouldForwardProp:Mt,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:X2})({flex:"0 0 auto"}),AI=B(gn,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${A(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${A(n.anchor)}`]]}})(({theme:e,ownerState:t})=>S({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),Q2={left:"right",right:"left",top:"down",bottom:"up"};function zI(e){return["left","right"].indexOf(e)!==-1}function DI({direction:e},t){return e==="rtl"&&zI(t)?Q2[t]:t}const FI=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiDrawer"}),o=io(),i=Pa(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:a="left",BackdropProps:l,children:c,className:d,elevation:f=16,hideBackdrop:h=!1,ModalProps:{BackdropProps:b}={},onClose:y,open:v=!1,PaperProps:C={},SlideProps:g,TransitionComponent:m=jI,transitionDuration:x=s,variant:w="temporary"}=r,k=H(r.ModalProps,II),P=H(r,MI),R=p.useRef(!1);p.useEffect(()=>{R.current=!0},[]);const E=DI({direction:i?"rtl":"ltr"},a),T=S({},r,{anchor:a,elevation:f,open:v,variant:w},P),O=NI(T),M=u.jsx(AI,S({elevation:w==="temporary"?f:0,square:!0},C,{className:V(O.paper,C.className),ownerState:T,children:c}));if(w==="permanent")return u.jsx(Z0,S({className:V(O.root,O.docked,d),ownerState:T,ref:n},P,{children:M}));const I=u.jsx(m,S({in:v,direction:Q2[E],timeout:x,appear:R.current},g,{children:M}));return w==="persistent"?u.jsx(Z0,S({className:V(O.root,O.docked,d),ownerState:T,ref:n},P,{children:I})):u.jsx(LI,S({BackdropProps:S({},l,b,{transitionDuration:x}),className:V(O.root,O.modal,d),open:v,ownerState:T,onClose:y,hideBackdrop:h,ref:n},P,k,{children:I}))}),BI=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],WI=e=>{const{classes:t,disableUnderline:n}=e,o=ie({root:["root",!n&&"underline"],input:["input"]},M3,t);return S({},t,o)},UI=B(Hu,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Wu(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return S({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${co.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${co.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${co.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${co.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${co.disabled}, .${co.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${co.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&S({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),HI=B(Vu,{name:"MuiFilledInput",slot:"Input",overridesResolver:Uu})(({theme:e,ownerState:t})=>S({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),gm=p.forwardRef(function(t,n){var r,o,i,s;const a=le({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:c,fullWidth:d=!1,inputComponent:f="input",multiline:h=!1,slotProps:b,slots:y={},type:v="text"}=a,C=H(a,BI),g=S({},a,{fullWidth:d,inputComponent:f,multiline:h,type:v}),m=WI(a),x={root:{ownerState:g},input:{ownerState:g}},w=b??c?Ft(x,b??c):x,k=(r=(o=y.root)!=null?o:l.Root)!=null?r:UI,P=(i=(s=y.input)!=null?s:l.Input)!=null?i:HI;return u.jsx(dm,S({slots:{root:k,input:P},componentsProps:w,fullWidth:d,inputComponent:f,multiline:h,ref:n,type:v},C,{classes:m}))});gm.muiName="Input";function VI(e){return re("MuiFormControl",e)}oe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const qI=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],KI=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${A(n)}`,r&&"fullWidth"]};return ie(o,VI,t)},GI=B("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,t[`margin${A(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>S({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),Gu=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiFormControl"}),{children:o,className:i,color:s="primary",component:a="div",disabled:l=!1,error:c=!1,focused:d,fullWidth:f=!1,hiddenLabel:h=!1,margin:b="none",required:y=!1,size:v="medium",variant:C="outlined"}=r,g=H(r,qI),m=S({},r,{color:s,component:a,disabled:l,error:c,fullWidth:f,hiddenLabel:h,margin:b,required:y,size:v,variant:C}),x=KI(m),[w,k]=p.useState(()=>{let I=!1;return o&&p.Children.forEach(o,N=>{if(!js(N,["Input","Select"]))return;const D=js(N,["Select"])?N.props.input:N;D&&P3(D.props)&&(I=!0)}),I}),[P,R]=p.useState(()=>{let I=!1;return o&&p.Children.forEach(o,N=>{js(N,["Input","Select"])&&(vc(N.props,!0)||vc(N.props.inputProps,!0))&&(I=!0)}),I}),[E,j]=p.useState(!1);l&&E&&j(!1);const T=d!==void 0&&!l?d:E;let O;const M=p.useMemo(()=>({adornedStart:w,setAdornedStart:k,color:s,disabled:l,error:c,filled:P,focused:T,fullWidth:f,hiddenLabel:h,size:v,onBlur:()=>{j(!1)},onEmpty:()=>{R(!1)},onFilled:()=>{R(!0)},onFocus:()=>{j(!0)},registerEffect:O,required:y,variant:C}),[w,s,l,c,P,T,f,h,O,y,v,C]);return u.jsx(Bu.Provider,{value:M,children:u.jsx(GI,S({as:a,ownerState:m,className:V(x.root,i),ref:n},g,{children:o}))})}),YI=o5({createStyledComponent:B("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>le({props:e,name:"MuiStack"})});function XI(e){return re("MuiFormControlLabel",e)}const bs=oe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),QI=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],JI=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,s={root:["root",n&&"disabled",`labelPlacement${A(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return ie(s,XI,t)},ZI=B("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${bs.label}`]:t.label},t.root,t[`labelPlacement${A(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>S({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${bs.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${bs.label}`]:{[`&.${bs.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),eM=B("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${bs.error}`]:{color:(e.vars||e).palette.error.main}})),vm=p.forwardRef(function(t,n){var r,o;const i=le({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:a={},control:l,disabled:c,disableTypography:d,label:f,labelPlacement:h="end",required:b,slotProps:y={}}=i,v=H(i,QI),C=dr(),g=(r=c??l.props.disabled)!=null?r:C==null?void 0:C.disabled,m=b??l.props.required,x={disabled:g,required:m};["checked","name","onChange","value","inputRef"].forEach(j=>{typeof l.props[j]>"u"&&typeof i[j]<"u"&&(x[j]=i[j])});const w=ao({props:i,muiFormControl:C,states:["error"]}),k=S({},i,{disabled:g,labelPlacement:h,required:m,error:w.error}),P=JI(k),R=(o=y.typography)!=null?o:a.typography;let E=f;return E!=null&&E.type!==ye&&!d&&(E=u.jsx(ye,S({component:"span"},R,{className:V(P.label,R==null?void 0:R.className),children:E}))),u.jsxs(ZI,S({className:V(P.root,s),ownerState:k,ref:n},v,{children:[p.cloneElement(l,x),m?u.jsxs(YI,{display:"block",children:[E,u.jsxs(eM,{ownerState:k,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]}):E]}))});function tM(e){return re("MuiFormGroup",e)}oe("MuiFormGroup",["root","row","error"]);const nM=["className","row"],rM=e=>{const{classes:t,row:n,error:r}=e;return ie({root:["root",n&&"row",r&&"error"]},tM,t)},oM=B("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>S({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),J2=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiFormGroup"}),{className:o,row:i=!1}=r,s=H(r,nM),a=dr(),l=ao({props:r,muiFormControl:a,states:["error"]}),c=S({},r,{row:i,error:l.error}),d=rM(c);return u.jsx(oM,S({className:V(d.root,o),ownerState:c,ref:n},s))});function iM(e){return re("MuiFormHelperText",e)}const ey=oe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var ty;const sM=["children","className","component","disabled","error","filled","focused","margin","required","variant"],aM=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:s,focused:a,required:l}=e,c={root:["root",o&&"disabled",i&&"error",r&&`size${A(r)}`,n&&"contained",a&&"focused",s&&"filled",l&&"required"]};return ie(c,iM,t)},lM=B("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${A(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${ey.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ey.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),cM=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:s="p"}=r,a=H(r,sM),l=dr(),c=ao({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),d=S({},r,{component:s,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=aM(d);return u.jsx(lM,S({as:s,ownerState:d,className:V(f.root,i),ref:n},a,{children:o===" "?ty||(ty=u.jsx("span",{className:"notranslate",children:"​"})):o}))});function uM(e){return re("MuiFormLabel",e)}const Ns=oe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),dM=["children","className","color","component","disabled","error","filled","focused","required"],fM=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:s,required:a}=e,l={root:["root",`color${A(n)}`,o&&"disabled",i&&"error",s&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]};return ie(l,uM,t)},pM=B("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Ns.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Ns.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ns.error}`]:{color:(e.vars||e).palette.error.main}})),hM=B("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Ns.error}`]:{color:(e.vars||e).palette.error.main}})),mM=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:s="label"}=r,a=H(r,dM),l=dr(),c=ao({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),d=S({},r,{color:c.color||"primary",component:s,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=fM(d);return u.jsxs(pM,S({as:s,ownerState:d,className:V(f.root,i),ref:n},a,{children:[o,c.required&&u.jsxs(hM,{ownerState:d,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),gM=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Cp(e){return`scale(${e}, ${e**2})`}const vM={entering:{opacity:1,transform:Cp(1)},entered:{opacity:1,transform:"none"}},Hd=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ua=p.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:s,in:a,onEnter:l,onEntered:c,onEntering:d,onExit:f,onExited:h,onExiting:b,style:y,timeout:v="auto",TransitionComponent:C=Qn}=t,g=H(t,gM),m=xo(),x=p.useRef(),w=io(),k=p.useRef(null),P=Ye(k,i.ref,n),R=D=>z=>{if(D){const W=k.current;z===void 0?D(W):D(W,z)}},E=R(d),j=R((D,z)=>{nm(D);const{duration:W,delay:$,easing:_}=Pi({style:y,timeout:v,easing:s},{mode:"enter"});let F;v==="auto"?(F=w.transitions.getAutoHeightDuration(D.clientHeight),x.current=F):F=W,D.style.transition=[w.transitions.create("opacity",{duration:F,delay:$}),w.transitions.create("transform",{duration:Hd?F:F*.666,delay:$,easing:_})].join(","),l&&l(D,z)}),T=R(c),O=R(b),M=R(D=>{const{duration:z,delay:W,easing:$}=Pi({style:y,timeout:v,easing:s},{mode:"exit"});let _;v==="auto"?(_=w.transitions.getAutoHeightDuration(D.clientHeight),x.current=_):_=z,D.style.transition=[w.transitions.create("opacity",{duration:_,delay:W}),w.transitions.create("transform",{duration:Hd?_:_*.666,delay:Hd?W:W||_*.333,easing:$})].join(","),D.style.opacity=0,D.style.transform=Cp(.75),f&&f(D)}),I=R(h),N=D=>{v==="auto"&&m.start(x.current||0,D),r&&r(k.current,D)};return u.jsx(C,S({appear:o,in:a,nodeRef:k,onEnter:j,onEntered:T,onEntering:E,onExit:M,onExited:I,onExiting:O,addEndListener:N,timeout:v==="auto"?null:v},g,{children:(D,z)=>p.cloneElement(i,S({style:S({opacity:0,transform:Cp(.75),visibility:D==="exited"&&!a?"hidden":void 0},vM[D],y,i.props.style),ref:P},z))}))});ua.muiSupportAuto=!0;const yM=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],xM=e=>{const{classes:t,disableUnderline:n}=e,o=ie({root:["root",!n&&"underline"],input:["input"]},O3,t);return S({},t,o)},bM=B(Hu,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Wu(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),S({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${cs.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${cs.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${cs.disabled}, .${cs.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${cs.disabled}:before`]:{borderBottomStyle:"dotted"}})}),SM=B(Vu,{name:"MuiInput",slot:"Input",overridesResolver:Uu})({}),ym=p.forwardRef(function(t,n){var r,o,i,s;const a=le({props:t,name:"MuiInput"}),{disableUnderline:l,components:c={},componentsProps:d,fullWidth:f=!1,inputComponent:h="input",multiline:b=!1,slotProps:y,slots:v={},type:C="text"}=a,g=H(a,yM),m=xM(a),w={root:{ownerState:{disableUnderline:l}}},k=y??d?Ft(y??d,w):w,P=(r=(o=v.root)!=null?o:c.Root)!=null?r:bM,R=(i=(s=v.input)!=null?s:c.Input)!=null?i:SM;return u.jsx(dm,S({slots:{root:P,input:R},slotProps:k,fullWidth:f,inputComponent:h,multiline:b,ref:n,type:C},g,{classes:m}))});ym.muiName="Input";function CM(e){return re("MuiInputAdornment",e)}const ny=oe("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var ry;const wM=["children","className","component","disablePointerEvents","disableTypography","position","variant"],kM=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${A(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},RM=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:s}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${A(o)}`,s,r&&"hiddenLabel",i&&`size${A(i)}`]};return ie(a,CM,t)},PM=B("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:kM})(({theme:e,ownerState:t})=>S({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${ny.positionStart}&:not(.${ny.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),yc=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:s="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:d}=r,f=H(r,wM),h=dr()||{};let b=d;d&&h.variant,h&&!b&&(b=h.variant);const y=S({},r,{hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:a,position:c,variant:b}),v=RM(y);return u.jsx(Bu.Provider,{value:null,children:u.jsx(PM,S({as:s,ownerState:y,className:V(v.root,i),ref:n},f,{children:typeof o=="string"&&!l?u.jsx(ye,{color:"text.secondary",children:o}):u.jsxs(p.Fragment,{children:[c==="start"?ry||(ry=u.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})});function EM(e){return re("MuiInputLabel",e)}oe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const $M=["disableAnimation","margin","shrink","variant","className"],TM=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:s,required:a}=e,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${A(r)}`,s],asterisk:[a&&"asterisk"]},c=ie(l,EM,t);return S({},t,c)},_M=B(mM,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ns.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>S({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&S({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&S({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&S({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Yu=p.forwardRef(function(t,n){const r=le({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:s}=r,a=H(r,$M),l=dr();let c=i;typeof c>"u"&&l&&(c=l.filled||l.focused||l.adornedStart);const d=ao({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),f=S({},r,{disableAnimation:o,formControl:l,shrink:c,size:d.size,variant:d.variant,required:d.required,focused:d.focused}),h=TM(f);return u.jsx(_M,S({"data-shrink":c,ownerState:f,ref:n,className:V(h.root,s)},a,{classes:h}))}),ar=p.createContext({});function jM(e){return re("MuiList",e)}oe("MuiList",["root","padding","dense","subheader"]);const OM=["children","className","component","dense","disablePadding","subheader"],IM=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return ie({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},jM,t)},MM=B("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>S({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),ja=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:a=!1,disablePadding:l=!1,subheader:c}=r,d=H(r,OM),f=p.useMemo(()=>({dense:a}),[a]),h=S({},r,{component:s,dense:a,disablePadding:l}),b=IM(h);return u.jsx(ar.Provider,{value:f,children:u.jsxs(MM,S({as:s,className:V(b.root,i),ref:n,ownerState:h},d,{children:[c,o]}))})});function NM(e){return re("MuiListItem",e)}const Go=oe("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),LM=oe("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function AM(e){return re("MuiListItemSecondaryAction",e)}oe("MuiListItemSecondaryAction",["root","disableGutters"]);const zM=["className"],DM=e=>{const{disableGutters:t,classes:n}=e;return ie({root:["root",t&&"disableGutters"]},AM,n)},FM=B("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>S({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),Z2=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=H(r,zM),s=p.useContext(ar),a=S({},r,{disableGutters:s.disableGutters}),l=DM(a);return u.jsx(FM,S({className:V(l.root,o),ownerState:a,ref:n},i))});Z2.muiName="ListItemSecondaryAction";const BM=["className"],WM=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],UM=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},HM=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:s,disablePadding:a,divider:l,hasSecondaryAction:c,selected:d}=e;return ie({root:["root",o&&"dense",!s&&"gutters",!a&&"padding",l&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction",d&&"selected"],container:["container"]},NM,r)},VM=B("div",{name:"MuiListItem",slot:"Root",overridesResolver:UM})(({theme:e,ownerState:t})=>S({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&S({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${LM.root}`]:{paddingRight:48}},{[`&.${Go.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Go.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:je(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Go.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:je(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Go.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Go.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:je(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:je(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),qM=B("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),xc=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:s=!1,children:a,className:l,component:c,components:d={},componentsProps:f={},ContainerComponent:h="li",ContainerProps:{className:b}={},dense:y=!1,disabled:v=!1,disableGutters:C=!1,disablePadding:g=!1,divider:m=!1,focusVisibleClassName:x,secondaryAction:w,selected:k=!1,slotProps:P={},slots:R={}}=r,E=H(r.ContainerProps,BM),j=H(r,WM),T=p.useContext(ar),O=p.useMemo(()=>({dense:y||T.dense||!1,alignItems:o,disableGutters:C}),[o,T.dense,y,C]),M=p.useRef(null);dn(()=>{i&&M.current&&M.current.focus()},[i]);const I=p.Children.toArray(a),N=I.length&&js(I[I.length-1],["ListItemSecondaryAction"]),D=S({},r,{alignItems:o,autoFocus:i,button:s,dense:O.dense,disabled:v,disableGutters:C,disablePadding:g,divider:m,hasSecondaryAction:N,selected:k}),z=HM(D),W=Ye(M,n),$=R.root||d.Root||VM,_=P.root||f.root||{},F=S({className:V(z.root,_.className,l),disabled:v},j);let G=c||"li";return s&&(F.component=c||"div",F.focusVisibleClassName=V(Go.focusVisible,x),G=kr),N?(G=!F.component&&!c?"div":G,h==="li"&&(G==="li"?G="div":F.component==="li"&&(F.component="div")),u.jsx(ar.Provider,{value:O,children:u.jsxs(qM,S({as:h,className:V(z.container,b),ref:W,ownerState:D},E,{children:[u.jsx($,S({},_,!Ei($)&&{as:G,ownerState:S({},D,_.ownerState)},F,{children:I})),I.pop()]}))})):u.jsx(ar.Provider,{value:O,children:u.jsxs($,S({},_,{as:G,ref:W},!Ei($)&&{ownerState:S({},D,_.ownerState)},F,{children:[I,w&&u.jsx(Z2,{children:w})]}))})});function KM(e){return re("MuiListItemAvatar",e)}oe("MuiListItemAvatar",["root","alignItemsFlexStart"]);const GM=["className"],YM=e=>{const{alignItems:t,classes:n}=e;return ie({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},KM,n)},XM=B("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>S({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),QM=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiListItemAvatar"}),{className:o}=r,i=H(r,GM),s=p.useContext(ar),a=S({},r,{alignItems:s.alignItems}),l=YM(a);return u.jsx(XM,S({className:V(l.root,o),ownerState:a,ref:n},i))});function JM(e){return re("MuiListItemIcon",e)}const oy=oe("MuiListItemIcon",["root","alignItemsFlexStart"]),ZM=["className"],eN=e=>{const{alignItems:t,classes:n}=e;return ie({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},JM,n)},tN=B("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>S({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),iy=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiListItemIcon"}),{className:o}=r,i=H(r,ZM),s=p.useContext(ar),a=S({},r,{alignItems:s.alignItems}),l=eN(a);return u.jsx(tN,S({className:V(l.root,o),ownerState:a,ref:n},i))});function nN(e){return re("MuiListItemText",e)}const bc=oe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),rN=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],oN=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return ie({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},nN,t)},iN=B("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${bc.primary}`]:t.primary},{[`& .${bc.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>S({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),da=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:s=!1,inset:a=!1,primary:l,primaryTypographyProps:c,secondary:d,secondaryTypographyProps:f}=r,h=H(r,rN),{dense:b}=p.useContext(ar);let y=l??o,v=d;const C=S({},r,{disableTypography:s,inset:a,primary:!!y,secondary:!!v,dense:b}),g=oN(C);return y!=null&&y.type!==ye&&!s&&(y=u.jsx(ye,S({variant:b?"body2":"body1",className:g.primary,component:c!=null&&c.variant?void 0:"span",display:"block"},c,{children:y}))),v!=null&&v.type!==ye&&!s&&(v=u.jsx(ye,S({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},f,{children:v}))),u.jsxs(iN,S({className:V(g.root,i),ownerState:C,ref:n},h,{children:[y,v]}))}),sN=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Vd(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function sy(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function eS(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function us(e,t,n,r,o,i){let s=!1,a=o(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const l=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!eS(a,i)||l)a=o(e,a,n);else return a.focus(),!0}return!1}const aN=p.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:s,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:d,variant:f="selectedMenu"}=t,h=H(t,sN),b=p.useRef(null),y=p.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});dn(()=>{o&&b.current.focus()},[o]),p.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,{direction:w})=>{const k=!b.current.style.width;if(x.clientHeight{const w=b.current,k=x.key,P=ft(w).activeElement;if(k==="ArrowDown")x.preventDefault(),us(w,P,c,l,Vd);else if(k==="ArrowUp")x.preventDefault(),us(w,P,c,l,sy);else if(k==="Home")x.preventDefault(),us(w,null,c,l,Vd);else if(k==="End")x.preventDefault(),us(w,null,c,l,sy);else if(k.length===1){const R=y.current,E=k.toLowerCase(),j=performance.now();R.keys.length>0&&(j-R.lastTime>500?(R.keys=[],R.repeating=!0,R.previousKeyMatched=!0):R.repeating&&E!==R.keys[0]&&(R.repeating=!1)),R.lastTime=j,R.keys.push(E);const T=P&&!R.repeating&&eS(P,R);R.previousKeyMatched&&(T||us(w,P,!1,l,Vd,R))?x.preventDefault():R.previousKeyMatched=!1}d&&d(x)},C=Ye(b,n);let g=-1;p.Children.forEach(s,(x,w)=>{if(!p.isValidElement(x)){g===w&&(g+=1,g>=s.length&&(g=-1));return}x.props.disabled||(f==="selectedMenu"&&x.props.selected||g===-1)&&(g=w),g===w&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(g+=1,g>=s.length&&(g=-1))});const m=p.Children.map(s,(x,w)=>{if(w===g){const k={};return i&&(k.autoFocus=!0),x.props.tabIndex===void 0&&f==="selectedMenu"&&(k.tabIndex=0),p.cloneElement(x,k)}return x});return u.jsx(ja,S({role:"menu",ref:C,className:a,onKeyDown:v,tabIndex:o?0:-1},h,{children:m}))});function lN(e){return re("MuiPopover",e)}oe("MuiPopover",["root","paper"]);const cN=["onEntering"],uN=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],dN=["slotProps"];function ay(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function ly(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function cy(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function qd(e){return typeof e=="function"?e():e}const fN=e=>{const{classes:t}=e;return ie({root:["root"],paper:["paper"]},lN,t)},pN=B(mm,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),tS=B(gn,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),hN=p.forwardRef(function(t,n){var r,o,i;const s=le({props:t,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:f="anchorEl",children:h,className:b,container:y,elevation:v=8,marginThreshold:C=16,open:g,PaperProps:m={},slots:x,slotProps:w,transformOrigin:k={vertical:"top",horizontal:"left"},TransitionComponent:P=ua,transitionDuration:R="auto",TransitionProps:{onEntering:E}={},disableScrollLock:j=!1}=s,T=H(s.TransitionProps,cN),O=H(s,uN),M=(r=w==null?void 0:w.paper)!=null?r:m,I=p.useRef(),N=Ye(I,M.ref),D=S({},s,{anchorOrigin:c,anchorReference:f,elevation:v,marginThreshold:C,externalPaperSlotProps:M,transformOrigin:k,TransitionComponent:P,transitionDuration:R,TransitionProps:T}),z=fN(D),W=p.useCallback(()=>{if(f==="anchorPosition")return d;const pe=qd(l),xe=(pe&&pe.nodeType===1?pe:ft(I.current).body).getBoundingClientRect();return{top:xe.top+ay(xe,c.vertical),left:xe.left+ly(xe,c.horizontal)}},[l,c.horizontal,c.vertical,d,f]),$=p.useCallback(pe=>({vertical:ay(pe,k.vertical),horizontal:ly(pe,k.horizontal)}),[k.horizontal,k.vertical]),_=p.useCallback(pe=>{const Se={width:pe.offsetWidth,height:pe.offsetHeight},xe=$(Se);if(f==="none")return{top:null,left:null,transformOrigin:cy(xe)};const Ct=W();let Fe=Ct.top-xe.vertical,ze=Ct.left-xe.horizontal;const pt=Fe+Se.height,Me=ze+Se.width,ke=_n(qd(l)),ct=ke.innerHeight-C,He=ke.innerWidth-C;if(C!==null&&Fect){const Ee=pt-ct;Fe-=Ee,xe.vertical+=Ee}if(C!==null&&zeHe){const Ee=Me-He;ze-=Ee,xe.horizontal+=Ee}return{top:`${Math.round(Fe)}px`,left:`${Math.round(ze)}px`,transformOrigin:cy(xe)}},[l,f,W,$,C]),[F,G]=p.useState(g),X=p.useCallback(()=>{const pe=I.current;if(!pe)return;const Se=_(pe);Se.top!==null&&(pe.style.top=Se.top),Se.left!==null&&(pe.style.left=Se.left),pe.style.transformOrigin=Se.transformOrigin,G(!0)},[_]);p.useEffect(()=>(j&&window.addEventListener("scroll",X),()=>window.removeEventListener("scroll",X)),[l,j,X]);const ce=(pe,Se)=>{E&&E(pe,Se),X()},Z=()=>{G(!1)};p.useEffect(()=>{g&&X()}),p.useImperativeHandle(a,()=>g?{updatePosition:()=>{X()}}:null,[g,X]),p.useEffect(()=>{if(!g)return;const pe=Hi(()=>{X()}),Se=_n(l);return Se.addEventListener("resize",pe),()=>{pe.clear(),Se.removeEventListener("resize",pe)}},[l,g,X]);let ue=R;R==="auto"&&!P.muiSupportAuto&&(ue=void 0);const U=y||(l?ft(qd(l)).body:void 0),ee=(o=x==null?void 0:x.root)!=null?o:pN,K=(i=x==null?void 0:x.paper)!=null?i:tS,Q=en({elementType:K,externalSlotProps:S({},M,{style:F?M.style:S({},M.style,{opacity:0})}),additionalProps:{elevation:v,ref:N},ownerState:D,className:V(z.paper,M==null?void 0:M.className)}),he=en({elementType:ee,externalSlotProps:(w==null?void 0:w.root)||{},externalForwardedProps:O,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:U,open:g},ownerState:D,className:V(z.root,b)}),{slotProps:J}=he,fe=H(he,dN);return u.jsx(ee,S({},fe,!Ei(ee)&&{slotProps:J,disableScrollLock:j},{children:u.jsx(P,S({appear:!0,in:g,onEntering:ce,onExited:Z,timeout:ue},T,{children:u.jsx(K,S({},Q,{children:h}))}))}))});function mN(e){return re("MuiMenu",e)}oe("MuiMenu",["root","paper","list"]);const gN=["onEntering"],vN=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],yN={vertical:"top",horizontal:"right"},xN={vertical:"top",horizontal:"left"},bN=e=>{const{classes:t}=e;return ie({root:["root"],paper:["paper"],list:["list"]},mN,t)},SN=B(hN,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),CN=B(tS,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),wN=B(aN,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),nS=p.forwardRef(function(t,n){var r,o;const i=le({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:a,className:l,disableAutoFocusItem:c=!1,MenuListProps:d={},onClose:f,open:h,PaperProps:b={},PopoverClasses:y,transitionDuration:v="auto",TransitionProps:{onEntering:C}={},variant:g="selectedMenu",slots:m={},slotProps:x={}}=i,w=H(i.TransitionProps,gN),k=H(i,vN),P=Pa(),R=S({},i,{autoFocus:s,disableAutoFocusItem:c,MenuListProps:d,onEntering:C,PaperProps:b,transitionDuration:v,TransitionProps:w,variant:g}),E=bN(R),j=s&&!c&&h,T=p.useRef(null),O=($,_)=>{T.current&&T.current.adjustStyleForScrollbar($,{direction:P?"rtl":"ltr"}),C&&C($,_)},M=$=>{$.key==="Tab"&&($.preventDefault(),f&&f($,"tabKeyDown"))};let I=-1;p.Children.map(a,($,_)=>{p.isValidElement($)&&($.props.disabled||(g==="selectedMenu"&&$.props.selected||I===-1)&&(I=_))});const N=(r=m.paper)!=null?r:CN,D=(o=x.paper)!=null?o:b,z=en({elementType:m.root,externalSlotProps:x.root,ownerState:R,className:[E.root,l]}),W=en({elementType:N,externalSlotProps:D,ownerState:R,className:E.paper});return u.jsx(SN,S({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:P?"right":"left"},transformOrigin:P?yN:xN,slots:{paper:N,root:m.root},slotProps:{root:z,paper:W},open:h,ref:n,transitionDuration:v,TransitionProps:S({onEntering:O},w),ownerState:R},k,{classes:y,children:u.jsx(wN,S({onKeyDown:M,actions:T,autoFocus:s&&(I===-1||c),autoFocusItem:j,variant:g},d,{className:V(E.list,d.className),children:a}))}))});function kN(e){return re("MuiMenuItem",e)}const ds=oe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),RN=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],PN=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},EN=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:s}=e,l=ie({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},kN,s);return S({},s,l)},$N=B(kr,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:PN})(({theme:e,ownerState:t})=>S({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ds.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:je(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ds.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:je(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ds.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:je(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:je(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ds.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ds.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${J0.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${J0.inset}`]:{marginLeft:52},[`& .${bc.root}`]:{marginTop:0,marginBottom:0},[`& .${bc.inset}`]:{paddingLeft:36},[`& .${oy.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&S({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${oy.root} svg`]:{fontSize:"1.25rem"}}))),Un=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:s=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:c,role:d="menuitem",tabIndex:f,className:h}=r,b=H(r,RN),y=p.useContext(ar),v=p.useMemo(()=>({dense:s||y.dense||!1,disableGutters:l}),[y.dense,s,l]),C=p.useRef(null);dn(()=>{o&&C.current&&C.current.focus()},[o]);const g=S({},r,{dense:v.dense,divider:a,disableGutters:l}),m=EN(r),x=Ye(C,n);let w;return r.disabled||(w=f!==void 0?f:-1),u.jsx(ar.Provider,{value:v,children:u.jsx($N,S({ref:x,role:d,tabIndex:w,component:i,focusVisibleClassName:V(m.focusVisible,c),className:V(m.root,h)},b,{ownerState:g,classes:m}))})});function TN(e){return re("MuiNativeSelect",e)}const xm=oe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),_N=["className","disabled","error","IconComponent","inputRef","variant"],jN=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${A(n)}`,i&&"iconOpen",r&&"disabled"]};return ie(a,TN,t)},rS=({ownerState:e,theme:t})=>S({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":S({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${xm.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),ON=B("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Mt,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${xm.multiple}`]:t.multiple}]}})(rS),oS=({ownerState:e,theme:t})=>S({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${xm.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),IN=B("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${A(n.variant)}`],n.open&&t.iconOpen]}})(oS),MN=p.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:s,inputRef:a,variant:l="standard"}=t,c=H(t,_N),d=S({},t,{disabled:o,variant:l,error:i}),f=jN(d);return u.jsxs(p.Fragment,{children:[u.jsx(ON,S({ownerState:d,className:V(f.select,r),disabled:o,ref:a||n},c)),t.multiple?null:u.jsx(IN,{as:s,ownerState:d,className:f.icon})]})});var uy;const NN=["children","classes","className","label","notched"],LN=B("fieldset",{shouldForwardProp:Mt})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),AN=B("legend",{shouldForwardProp:Mt})(({ownerState:e,theme:t})=>S({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&S({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function zN(e){const{className:t,label:n,notched:r}=e,o=H(e,NN),i=n!=null&&n!=="",s=S({},e,{notched:r,withLabel:i});return u.jsx(LN,S({"aria-hidden":!0,className:t,ownerState:s},o,{children:u.jsx(AN,{ownerState:s,children:i?u.jsx("span",{children:n}):uy||(uy=u.jsx("span",{className:"notranslate",children:"​"}))})}))}const DN=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],FN=e=>{const{classes:t}=e,r=ie({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},I3,t);return S({},t,r)},BN=B(Hu,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Wu})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return S({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ir.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ir.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Ir.focused} .${Ir.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Ir.error} .${Ir.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ir.disabled} .${Ir.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&S({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),WN=B(zN,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),UN=B(Vu,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Uu})(({theme:e,ownerState:t})=>S({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),bm=p.forwardRef(function(t,n){var r,o,i,s,a;const l=le({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:d=!1,inputComponent:f="input",label:h,multiline:b=!1,notched:y,slots:v={},type:C="text"}=l,g=H(l,DN),m=FN(l),x=dr(),w=ao({props:l,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),k=S({},l,{color:w.color||"primary",disabled:w.disabled,error:w.error,focused:w.focused,formControl:x,fullWidth:d,hiddenLabel:w.hiddenLabel,multiline:b,size:w.size,type:C}),P=(r=(o=v.root)!=null?o:c.Root)!=null?r:BN,R=(i=(s=v.input)!=null?s:c.Input)!=null?i:UN;return u.jsx(dm,S({slots:{root:P,input:R},renderSuffix:E=>u.jsx(WN,{ownerState:k,className:m.notchedOutline,label:h!=null&&h!==""&&w.required?a||(a=u.jsxs(p.Fragment,{children:[h," ","*"]})):h,notched:typeof y<"u"?y:!!(E.startAdornment||E.filled||E.focused)}),fullWidth:d,inputComponent:f,multiline:b,ref:n,type:C},g,{classes:S({},m,{notchedOutline:null})}))});bm.muiName="Input";function HN(e){return re("MuiSelect",e)}const fs=oe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var dy;const VN=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],qN=B("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${fs.select}`]:t.select},{[`&.${fs.select}`]:t[n.variant]},{[`&.${fs.error}`]:t.error},{[`&.${fs.multiple}`]:t.multiple}]}})(rS,{[`&.${fs.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),KN=B("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${A(n.variant)}`],n.open&&t.iconOpen]}})(oS),GN=B("input",{shouldForwardProp:e=>S2(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function fy(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function YN(e){return e==null||typeof e=="string"&&!e.trim()}const XN=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${A(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return ie(a,HN,t)},QN=p.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":i,autoFocus:s,autoWidth:a,children:l,className:c,defaultOpen:d,defaultValue:f,disabled:h,displayEmpty:b,error:y=!1,IconComponent:v,inputRef:C,labelId:g,MenuProps:m={},multiple:x,name:w,onBlur:k,onChange:P,onClose:R,onFocus:E,onOpen:j,open:T,readOnly:O,renderValue:M,SelectDisplayProps:I={},tabIndex:N,value:D,variant:z="standard"}=t,W=H(t,VN),[$,_]=sa({controlled:D,default:f,name:"Select"}),[F,G]=sa({controlled:T,default:d,name:"Select"}),X=p.useRef(null),ce=p.useRef(null),[Z,ue]=p.useState(null),{current:U}=p.useRef(T!=null),[ee,K]=p.useState(),Q=Ye(n,C),he=p.useCallback(ae=>{ce.current=ae,ae&&ue(ae)},[]),J=Z==null?void 0:Z.parentNode;p.useImperativeHandle(Q,()=>({focus:()=>{ce.current.focus()},node:X.current,value:$}),[$]),p.useEffect(()=>{d&&F&&Z&&!U&&(K(a?null:J.clientWidth),ce.current.focus())},[Z,a]),p.useEffect(()=>{s&&ce.current.focus()},[s]),p.useEffect(()=>{if(!g)return;const ae=ft(ce.current).getElementById(g);if(ae){const Te=()=>{getSelection().isCollapsed&&ce.current.focus()};return ae.addEventListener("click",Te),()=>{ae.removeEventListener("click",Te)}}},[g]);const fe=(ae,Te)=>{ae?j&&j(Te):R&&R(Te),U||(K(a?null:J.clientWidth),G(ae))},pe=ae=>{ae.button===0&&(ae.preventDefault(),ce.current.focus(),fe(!0,ae))},Se=ae=>{fe(!1,ae)},xe=p.Children.toArray(l),Ct=ae=>{const Te=xe.find(Y=>Y.props.value===ae.target.value);Te!==void 0&&(_(Te.props.value),P&&P(ae,Te))},Fe=ae=>Te=>{let Y;if(Te.currentTarget.hasAttribute("tabindex")){if(x){Y=Array.isArray($)?$.slice():[];const ne=$.indexOf(ae.props.value);ne===-1?Y.push(ae.props.value):Y.splice(ne,1)}else Y=ae.props.value;if(ae.props.onClick&&ae.props.onClick(Te),$!==Y&&(_(Y),P)){const ne=Te.nativeEvent||Te,Ce=new ne.constructor(ne.type,ne);Object.defineProperty(Ce,"target",{writable:!0,value:{value:Y,name:w}}),P(Ce,ae)}x||fe(!1,Te)}},ze=ae=>{O||[" ","ArrowUp","ArrowDown","Enter"].indexOf(ae.key)!==-1&&(ae.preventDefault(),fe(!0,ae))},pt=Z!==null&&F,Me=ae=>{!pt&&k&&(Object.defineProperty(ae,"target",{writable:!0,value:{value:$,name:w}}),k(ae))};delete W["aria-invalid"];let ke,ct;const He=[];let Ee=!1;(vc({value:$})||b)&&(M?ke=M($):Ee=!0);const ht=xe.map(ae=>{if(!p.isValidElement(ae))return null;let Te;if(x){if(!Array.isArray($))throw new Error(jo(2));Te=$.some(Y=>fy(Y,ae.props.value)),Te&&Ee&&He.push(ae.props.children)}else Te=fy($,ae.props.value),Te&&Ee&&(ct=ae.props.children);return p.cloneElement(ae,{"aria-selected":Te?"true":"false",onClick:Fe(ae),onKeyUp:Y=>{Y.key===" "&&Y.preventDefault(),ae.props.onKeyUp&&ae.props.onKeyUp(Y)},role:"option",selected:Te,value:void 0,"data-value":ae.props.value})});Ee&&(x?He.length===0?ke=null:ke=He.reduce((ae,Te,Y)=>(ae.push(Te),Y{const{classes:t}=e;return t},Sm={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Mt(e)&&e!=="variant",slot:"Root"},t6=B(ym,Sm)(""),n6=B(bm,Sm)(""),r6=B(gm,Sm)(""),Oa=p.forwardRef(function(t,n){const r=le({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:s={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:d=N3,id:f,input:h,inputProps:b,label:y,labelId:v,MenuProps:C,multiple:g=!1,native:m=!1,onClose:x,onOpen:w,open:k,renderValue:P,SelectDisplayProps:R,variant:E="outlined"}=r,j=H(r,JN),T=m?MN:QN,O=dr(),M=ao({props:r,muiFormControl:O,states:["variant","error"]}),I=M.variant||E,N=S({},r,{variant:I,classes:s}),D=e6(N),z=H(D,ZN),W=h||{standard:u.jsx(t6,{ownerState:N}),outlined:u.jsx(n6,{label:y,ownerState:N}),filled:u.jsx(r6,{ownerState:N})}[I],$=Ye(n,W.ref);return u.jsx(p.Fragment,{children:p.cloneElement(W,S({inputComponent:T,inputProps:S({children:i,error:M.error,IconComponent:d,variant:I,type:void 0,multiple:g},m?{id:f}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:v,MenuProps:C,onClose:x,onOpen:w,open:k,renderValue:P,SelectDisplayProps:S({id:f},R)},b,{classes:b?Ft(z,b.classes):z},h?h.props.inputProps:{})},(g&&m||c)&&I==="outlined"?{notched:!0}:{},{ref:$,className:V(W.props.className,a,D.root)},!h&&{variant:I},j))})});Oa.muiName="Select";function o6(e){return re("MuiSnackbarContent",e)}oe("MuiSnackbarContent",["root","message","action"]);const i6=["action","className","message","role"],s6=e=>{const{classes:t}=e;return ie({root:["root"],action:["action"],message:["message"]},o6,t)},a6=B(gn,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=l5(e.palette.background.default,t);return S({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),l6=B("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),c6=B("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),u6=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiSnackbarContent"}),{action:o,className:i,message:s,role:a="alert"}=r,l=H(r,i6),c=r,d=s6(c);return u.jsxs(a6,S({role:a,square:!0,elevation:6,className:V(d.root,i),ownerState:c,ref:n},l,{children:[u.jsx(l6,{className:d.message,ownerState:c,children:s}),o?u.jsx(c6,{className:d.action,ownerState:c,children:o}):null]}))});function d6(e){return re("MuiSnackbar",e)}oe("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const f6=["onEnter","onExited"],p6=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],h6=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${A(n.vertical)}${A(n.horizontal)}`]};return ie(r,d6,t)},py=B("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${A(n.anchorOrigin.vertical)}${A(n.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const n={left:"50%",right:"auto",transform:"translateX(-50%)"};return S({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:S({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&n,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),lo=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiSnackbar"}),o=io(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:a,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:d,className:f,ClickAwayListenerProps:h,ContentProps:b,disableWindowBlurListener:y=!1,message:v,open:C,TransitionComponent:g=ua,transitionDuration:m=i,TransitionProps:{onEnter:x,onExited:w}={}}=r,k=H(r.TransitionProps,f6),P=H(r,p6),R=S({},r,{anchorOrigin:{vertical:a,horizontal:l},autoHideDuration:c,disableWindowBlurListener:y,TransitionComponent:g,transitionDuration:m}),E=h6(R),{getRootProps:j,onClickAway:T}=a3(S({},R)),[O,M]=p.useState(!0),I=en({elementType:py,getSlotProps:j,externalForwardedProps:P,ownerState:R,additionalProps:{ref:n},className:[E.root,f]}),N=z=>{M(!0),w&&w(z)},D=(z,W)=>{M(!1),x&&x(z,W)};return!C&&O?null:u.jsx($_,S({onClickAway:T},h,{children:u.jsx(py,S({},I,{children:u.jsx(g,S({appear:!0,in:C,timeout:m,direction:a==="top"?"down":"up",onEnter:D,onExited:N},k,{children:d||u.jsx(u6,S({message:v,action:s},b))}))}))}))});function m6(e){return re("MuiTooltip",e)}const Ur=oe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),g6=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function v6(e){return Math.round(e*1e5)/1e5}const y6=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${A(i.split("-")[0])}`],arrow:["arrow"]};return ie(s,m6,t)},x6=B(B2,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>S({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Ur.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Ur.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Ur.arrow}`]:S({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Ur.arrow}`]:S({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),b6=B("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${A(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>S({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:je(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${v6(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Ur.popper}[data-popper-placement*="left"] &`]:S({transformOrigin:"right center"},t.isRtl?S({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):S({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Ur.popper}[data-popper-placement*="right"] &`]:S({transformOrigin:"left center"},t.isRtl?S({marginRight:"14px"},t.touch&&{marginRight:"24px"}):S({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Ur.popper}[data-popper-placement*="top"] &`]:S({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Ur.popper}[data-popper-placement*="bottom"] &`]:S({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),S6=B("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:je(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let il=!1;const hy=new Ra;let ps={x:0,y:0};function sl(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Hn=p.forwardRef(function(t,n){var r,o,i,s,a,l,c,d,f,h,b,y,v,C,g,m,x,w,k;const P=le({props:t,name:"MuiTooltip"}),{arrow:R=!1,children:E,components:j={},componentsProps:T={},describeChild:O=!1,disableFocusListener:M=!1,disableHoverListener:I=!1,disableInteractive:N=!1,disableTouchListener:D=!1,enterDelay:z=100,enterNextDelay:W=0,enterTouchDelay:$=700,followCursor:_=!1,id:F,leaveDelay:G=0,leaveTouchDelay:X=1500,onClose:ce,onOpen:Z,open:ue,placement:U="bottom",PopperComponent:ee,PopperProps:K={},slotProps:Q={},slots:he={},title:J,TransitionComponent:fe=ua,TransitionProps:pe}=P,Se=H(P,g6),xe=p.isValidElement(E)?E:u.jsx("span",{children:E}),Ct=io(),Fe=Pa(),[ze,pt]=p.useState(),[Me,ke]=p.useState(null),ct=p.useRef(!1),He=N||_,Ee=xo(),ht=xo(),yt=xo(),wt=xo(),[Re,se]=sa({controlled:ue,default:!1,name:"Tooltip",state:"open"});let tt=Re;const Ut=ka(F),tn=p.useRef(),ae=zt(()=>{tn.current!==void 0&&(document.body.style.WebkitUserSelect=tn.current,tn.current=void 0),wt.clear()});p.useEffect(()=>ae,[ae]);const Te=we=>{hy.clear(),il=!0,se(!0),Z&&!tt&&Z(we)},Y=zt(we=>{hy.start(800+G,()=>{il=!1}),se(!1),ce&&tt&&ce(we),Ee.start(Ct.transitions.duration.shortest,()=>{ct.current=!1})}),ne=we=>{ct.current&&we.type!=="touchstart"||(ze&&ze.removeAttribute("title"),ht.clear(),yt.clear(),z||il&&W?ht.start(il?W:z,()=>{Te(we)}):Te(we))},Ce=we=>{ht.clear(),yt.start(G,()=>{Y(we)})},{isFocusVisibleRef:Pe,onBlur:nt,onFocus:kt,ref:vn}=Kh(),[,_r]=p.useState(!1),An=we=>{nt(we),Pe.current===!1&&(_r(!1),Ce(we))},zo=we=>{ze||pt(we.currentTarget),kt(we),Pe.current===!0&&(_r(!0),ne(we))},gg=we=>{ct.current=!0;const nn=xe.props;nn.onTouchStart&&nn.onTouchStart(we)},zS=we=>{gg(we),yt.clear(),Ee.clear(),ae(),tn.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",wt.start($,()=>{document.body.style.WebkitUserSelect=tn.current,ne(we)})},DS=we=>{xe.props.onTouchEnd&&xe.props.onTouchEnd(we),ae(),yt.start(X,()=>{Y(we)})};p.useEffect(()=>{if(!tt)return;function we(nn){(nn.key==="Escape"||nn.key==="Esc")&&Y(nn)}return document.addEventListener("keydown",we),()=>{document.removeEventListener("keydown",we)}},[Y,tt]);const FS=Ye(xe.ref,vn,pt,n);!J&&J!==0&&(tt=!1);const Qu=p.useRef(),BS=we=>{const nn=xe.props;nn.onMouseMove&&nn.onMouseMove(we),ps={x:we.clientX,y:we.clientY},Qu.current&&Qu.current.update()},Gi={},Ju=typeof J=="string";O?(Gi.title=!tt&&Ju&&!I?J:null,Gi["aria-describedby"]=tt?Ut:null):(Gi["aria-label"]=Ju?J:null,Gi["aria-labelledby"]=tt&&!Ju?Ut:null);const zn=S({},Gi,Se,xe.props,{className:V(Se.className,xe.props.className),onTouchStart:gg,ref:FS},_?{onMouseMove:BS}:{}),Yi={};D||(zn.onTouchStart=zS,zn.onTouchEnd=DS),I||(zn.onMouseOver=sl(ne,zn.onMouseOver),zn.onMouseLeave=sl(Ce,zn.onMouseLeave),He||(Yi.onMouseOver=ne,Yi.onMouseLeave=Ce)),M||(zn.onFocus=sl(zo,zn.onFocus),zn.onBlur=sl(An,zn.onBlur),He||(Yi.onFocus=zo,Yi.onBlur=An));const WS=p.useMemo(()=>{var we;let nn=[{name:"arrow",enabled:!!Me,options:{element:Me,padding:4}}];return(we=K.popperOptions)!=null&&we.modifiers&&(nn=nn.concat(K.popperOptions.modifiers)),S({},K.popperOptions,{modifiers:nn})},[Me,K]),Xi=S({},P,{isRtl:Fe,arrow:R,disableInteractive:He,placement:U,PopperComponentProp:ee,touch:ct.current}),Zu=y6(Xi),vg=(r=(o=he.popper)!=null?o:j.Popper)!=null?r:x6,yg=(i=(s=(a=he.transition)!=null?a:j.Transition)!=null?s:fe)!=null?i:ua,xg=(l=(c=he.tooltip)!=null?c:j.Tooltip)!=null?l:b6,bg=(d=(f=he.arrow)!=null?f:j.Arrow)!=null?d:S6,US=ai(vg,S({},K,(h=Q.popper)!=null?h:T.popper,{className:V(Zu.popper,K==null?void 0:K.className,(b=(y=Q.popper)!=null?y:T.popper)==null?void 0:b.className)}),Xi),HS=ai(yg,S({},pe,(v=Q.transition)!=null?v:T.transition),Xi),VS=ai(xg,S({},(C=Q.tooltip)!=null?C:T.tooltip,{className:V(Zu.tooltip,(g=(m=Q.tooltip)!=null?m:T.tooltip)==null?void 0:g.className)}),Xi),qS=ai(bg,S({},(x=Q.arrow)!=null?x:T.arrow,{className:V(Zu.arrow,(w=(k=Q.arrow)!=null?k:T.arrow)==null?void 0:w.className)}),Xi);return u.jsxs(p.Fragment,{children:[p.cloneElement(xe,zn),u.jsx(vg,S({as:ee??B2,placement:U,anchorEl:_?{getBoundingClientRect:()=>({top:ps.y,left:ps.x,right:ps.x,bottom:ps.y,width:0,height:0})}:ze,popperRef:Qu,open:ze?tt:!1,id:Ut,transition:!0},Yi,US,{popperOptions:WS,children:({TransitionProps:we})=>u.jsx(yg,S({timeout:Ct.transitions.duration.shorter},we,HS,{children:u.jsxs(xg,S({},VS,{children:[J,R?u.jsx(bg,S({},qS,{ref:ke})):null]}))}))}))]})});function C6(e){return re("MuiSwitch",e)}const Lt=oe("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),w6=["className","color","edge","size","sx"],k6=zu(),R6=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:s}=e,a={root:["root",n&&`edge${A(n)}`,`size${A(r)}`],switchBase:["switchBase",`color${A(o)}`,i&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=ie(a,C6,t);return S({},t,l)},P6=B("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${A(n.edge)}`],t[`size${A(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Lt.thumb}`]:{width:16,height:16},[`& .${Lt.switchBase}`]:{padding:4,[`&.${Lt.checked}`]:{transform:"translateX(16px)"}}}}]}),E6=B(q2,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Lt.input}`]:t.input},n.color!=="default"&&t[`color${A(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Lt.checked}`]:{transform:"translateX(20px)"},[`&.${Lt.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Lt.checked} + .${Lt.track}`]:{opacity:.5},[`&.${Lt.disabled} + .${Lt.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Lt.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:je(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${Lt.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:je(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Lt.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?fc(e.palette[t].main,.62):dc(e.palette[t].main,.55)}`}},[`&.${Lt.checked} + .${Lt.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),$6=B("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),T6=B("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),_6=p.forwardRef(function(t,n){const r=k6({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:s=!1,size:a="medium",sx:l}=r,c=H(r,w6),d=S({},r,{color:i,edge:s,size:a}),f=R6(d),h=u.jsx(T6,{className:f.thumb,ownerState:d});return u.jsxs(P6,{className:V(f.root,o),sx:l,ownerState:d,children:[u.jsx(E6,S({type:"checkbox",icon:h,checkedIcon:h,ref:n,ownerState:d},c,{classes:S({},f,{root:f.switchBase})})),u.jsx($6,{className:f.track,ownerState:d})]})});function j6(e){return re("MuiTab",e)}const uo=oe("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),O6=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],I6=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:s,selected:a,disabled:l}=e,c={root:["root",i&&s&&"labelIcon",`textColor${A(n)}`,r&&"fullWidth",o&&"wrapped",a&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return ie(c,j6,t)},M6=B(kr,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${A(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>S({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${uo.iconWrapper}`]:S({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${uo.selected}`]:{opacity:1},[`&.${uo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${uo.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${uo.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${uo.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${uo.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),jl=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:s=!1,fullWidth:a,icon:l,iconPosition:c="top",indicator:d,label:f,onChange:h,onClick:b,onFocus:y,selected:v,selectionFollowsFocus:C,textColor:g="inherit",value:m,wrapped:x=!1}=r,w=H(r,O6),k=S({},r,{disabled:i,disableFocusRipple:s,selected:v,icon:!!l,iconPosition:c,label:!!f,fullWidth:a,textColor:g,wrapped:x}),P=I6(k),R=l&&f&&p.isValidElement(l)?p.cloneElement(l,{className:V(P.iconWrapper,l.props.className)}):l,E=T=>{!v&&h&&h(T,m),b&&b(T)},j=T=>{C&&!v&&h&&h(T,m),y&&y(T)};return u.jsxs(M6,S({focusRipple:!s,className:V(P.root,o),ref:n,role:"tab","aria-selected":v,disabled:i,onClick:E,onFocus:j,ownerState:k,tabIndex:v?0:-1},w,{children:[c==="top"||c==="start"?u.jsxs(p.Fragment,{children:[R,f]}):u.jsxs(p.Fragment,{children:[f,R]}),d]}))});function N6(e){return re("MuiToolbar",e)}oe("MuiToolbar",["root","gutters","regular","dense"]);const L6=["className","component","disableGutters","variant"],A6=e=>{const{classes:t,disableGutters:n,variant:r}=e;return ie({root:["root",!n&&"gutters",r]},N6,t)},z6=B("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>S({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),D6=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:s=!1,variant:a="regular"}=r,l=H(r,L6),c=S({},r,{component:i,disableGutters:s,variant:a}),d=A6(c);return u.jsx(z6,S({as:i,className:V(d.root,o),ref:n,ownerState:c},l))}),F6=Nt(u.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),B6=Nt(u.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function W6(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function U6(e,t,n,r={},o=()=>{}){const{ease:i=W6,duration:s=300}=r;let a=null;const l=t[e];let c=!1;const d=()=>{c=!0},f=h=>{if(c){o(new Error("Animation cancelled"));return}a===null&&(a=h);const b=Math.min(1,(h-a)/s);if(t[e]=i(b)*(n-l)+l,b>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(f)};return l===n?(o(new Error("Element already at target position")),d):(requestAnimationFrame(f),d)}const H6=["onChange"],V6={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function q6(e){const{onChange:t}=e,n=H(e,H6),r=p.useRef(),o=p.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return dn(()=>{const s=Hi(()=>{const l=r.current;i(),l!==r.current&&t(r.current)}),a=_n(o.current);return a.addEventListener("resize",s),()=>{s.clear(),a.removeEventListener("resize",s)}},[t]),p.useEffect(()=>{i(),t(r.current)},[t]),u.jsx("div",S({style:V6,ref:o},n))}function K6(e){return re("MuiTabScrollButton",e)}const G6=oe("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Y6=["className","slots","slotProps","direction","orientation","disabled"],X6=e=>{const{classes:t,orientation:n,disabled:r}=e;return ie({root:["root",n,r&&"disabled"]},K6,t)},Q6=B(kr,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>S({width:40,flexShrink:0,opacity:.8,[`&.${G6.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),J6=p.forwardRef(function(t,n){var r,o;const i=le({props:t,name:"MuiTabScrollButton"}),{className:s,slots:a={},slotProps:l={},direction:c}=i,d=H(i,Y6),f=Pa(),h=S({isRtl:f},i),b=X6(h),y=(r=a.StartScrollButtonIcon)!=null?r:F6,v=(o=a.EndScrollButtonIcon)!=null?o:B6,C=en({elementType:y,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),g=en({elementType:v,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return u.jsx(Q6,S({component:"div",className:V(b.root,s),ref:n,role:null,ownerState:h,tabIndex:null},d,{children:c==="left"?u.jsx(y,S({},C)):u.jsx(v,S({},g))}))});function Z6(e){return re("MuiTabs",e)}const Kd=oe("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),eL=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],my=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,gy=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,al=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const i=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||i)o=n(e,o);else{o.focus();return}}},tL=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:s,scrollButtonsHideMobile:a,classes:l}=e;return ie({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},Z6,l)},nL=B("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Kd.scrollButtons}`]:t.scrollButtons},{[`& .${Kd.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>S({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Kd.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),rL=B("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>S({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),oL=B("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>S({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),iL=B("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>S({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),sL=B(q6)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),vy={},iS=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiTabs"}),o=io(),i=Pa(),{"aria-label":s,"aria-labelledby":a,action:l,centered:c=!1,children:d,className:f,component:h="div",allowScrollButtonsMobile:b=!1,indicatorColor:y="primary",onChange:v,orientation:C="horizontal",ScrollButtonComponent:g=J6,scrollButtons:m="auto",selectionFollowsFocus:x,slots:w={},slotProps:k={},TabIndicatorProps:P={},TabScrollButtonProps:R={},textColor:E="primary",value:j,variant:T="standard",visibleScrollbar:O=!1}=r,M=H(r,eL),I=T==="scrollable",N=C==="vertical",D=N?"scrollTop":"scrollLeft",z=N?"top":"left",W=N?"bottom":"right",$=N?"clientHeight":"clientWidth",_=N?"height":"width",F=S({},r,{component:h,allowScrollButtonsMobile:b,indicatorColor:y,orientation:C,vertical:N,scrollButtons:m,textColor:E,variant:T,visibleScrollbar:O,fixed:!I,hideScrollbar:I&&!O,scrollableX:I&&!N,scrollableY:I&&N,centered:c&&!I,scrollButtonsHideMobile:!b}),G=tL(F),X=en({elementType:w.StartScrollButtonIcon,externalSlotProps:k.startScrollButtonIcon,ownerState:F}),ce=en({elementType:w.EndScrollButtonIcon,externalSlotProps:k.endScrollButtonIcon,ownerState:F}),[Z,ue]=p.useState(!1),[U,ee]=p.useState(vy),[K,Q]=p.useState(!1),[he,J]=p.useState(!1),[fe,pe]=p.useState(!1),[Se,xe]=p.useState({overflow:"hidden",scrollbarWidth:0}),Ct=new Map,Fe=p.useRef(null),ze=p.useRef(null),pt=()=>{const Y=Fe.current;let ne;if(Y){const Pe=Y.getBoundingClientRect();ne={clientWidth:Y.clientWidth,scrollLeft:Y.scrollLeft,scrollTop:Y.scrollTop,scrollLeftNormalized:A4(Y,i?"rtl":"ltr"),scrollWidth:Y.scrollWidth,top:Pe.top,bottom:Pe.bottom,left:Pe.left,right:Pe.right}}let Ce;if(Y&&j!==!1){const Pe=ze.current.children;if(Pe.length>0){const nt=Pe[Ct.get(j)];Ce=nt?nt.getBoundingClientRect():null}}return{tabsMeta:ne,tabMeta:Ce}},Me=zt(()=>{const{tabsMeta:Y,tabMeta:ne}=pt();let Ce=0,Pe;if(N)Pe="top",ne&&Y&&(Ce=ne.top-Y.top+Y.scrollTop);else if(Pe=i?"right":"left",ne&&Y){const kt=i?Y.scrollLeftNormalized+Y.clientWidth-Y.scrollWidth:Y.scrollLeft;Ce=(i?-1:1)*(ne[Pe]-Y[Pe]+kt)}const nt={[Pe]:Ce,[_]:ne?ne[_]:0};if(isNaN(U[Pe])||isNaN(U[_]))ee(nt);else{const kt=Math.abs(U[Pe]-nt[Pe]),vn=Math.abs(U[_]-nt[_]);(kt>=1||vn>=1)&&ee(nt)}}),ke=(Y,{animation:ne=!0}={})=>{ne?U6(D,Fe.current,Y,{duration:o.transitions.duration.standard}):Fe.current[D]=Y},ct=Y=>{let ne=Fe.current[D];N?ne+=Y:(ne+=Y*(i?-1:1),ne*=i&&a2()==="reverse"?-1:1),ke(ne)},He=()=>{const Y=Fe.current[$];let ne=0;const Ce=Array.from(ze.current.children);for(let Pe=0;PeY){Pe===0&&(ne=Y);break}ne+=nt[$]}return ne},Ee=()=>{ct(-1*He())},ht=()=>{ct(He())},yt=p.useCallback(Y=>{xe({overflow:null,scrollbarWidth:Y})},[]),wt=()=>{const Y={};Y.scrollbarSizeListener=I?u.jsx(sL,{onChange:yt,className:V(G.scrollableX,G.hideScrollbar)}):null;const Ce=I&&(m==="auto"&&(K||he)||m===!0);return Y.scrollButtonStart=Ce?u.jsx(g,S({slots:{StartScrollButtonIcon:w.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:X},orientation:C,direction:i?"right":"left",onClick:Ee,disabled:!K},R,{className:V(G.scrollButtons,R.className)})):null,Y.scrollButtonEnd=Ce?u.jsx(g,S({slots:{EndScrollButtonIcon:w.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:ce},orientation:C,direction:i?"left":"right",onClick:ht,disabled:!he},R,{className:V(G.scrollButtons,R.className)})):null,Y},Re=zt(Y=>{const{tabsMeta:ne,tabMeta:Ce}=pt();if(!(!Ce||!ne)){if(Ce[z]ne[W]){const Pe=ne[D]+(Ce[W]-ne[W]);ke(Pe,{animation:Y})}}}),se=zt(()=>{I&&m!==!1&&pe(!fe)});p.useEffect(()=>{const Y=Hi(()=>{Fe.current&&Me()});let ne;const Ce=kt=>{kt.forEach(vn=>{vn.removedNodes.forEach(_r=>{var An;(An=ne)==null||An.unobserve(_r)}),vn.addedNodes.forEach(_r=>{var An;(An=ne)==null||An.observe(_r)})}),Y(),se()},Pe=_n(Fe.current);Pe.addEventListener("resize",Y);let nt;return typeof ResizeObserver<"u"&&(ne=new ResizeObserver(Y),Array.from(ze.current.children).forEach(kt=>{ne.observe(kt)})),typeof MutationObserver<"u"&&(nt=new MutationObserver(Ce),nt.observe(ze.current,{childList:!0})),()=>{var kt,vn;Y.clear(),Pe.removeEventListener("resize",Y),(kt=nt)==null||kt.disconnect(),(vn=ne)==null||vn.disconnect()}},[Me,se]),p.useEffect(()=>{const Y=Array.from(ze.current.children),ne=Y.length;if(typeof IntersectionObserver<"u"&&ne>0&&I&&m!==!1){const Ce=Y[0],Pe=Y[ne-1],nt={root:Fe.current,threshold:.99},kt=zo=>{Q(!zo[0].isIntersecting)},vn=new IntersectionObserver(kt,nt);vn.observe(Ce);const _r=zo=>{J(!zo[0].isIntersecting)},An=new IntersectionObserver(_r,nt);return An.observe(Pe),()=>{vn.disconnect(),An.disconnect()}}},[I,m,fe,d==null?void 0:d.length]),p.useEffect(()=>{ue(!0)},[]),p.useEffect(()=>{Me()}),p.useEffect(()=>{Re(vy!==U)},[Re,U]),p.useImperativeHandle(l,()=>({updateIndicator:Me,updateScrollButtons:se}),[Me,se]);const tt=u.jsx(iL,S({},P,{className:V(G.indicator,P.className),ownerState:F,style:S({},U,P.style)}));let Ut=0;const tn=p.Children.map(d,Y=>{if(!p.isValidElement(Y))return null;const ne=Y.props.value===void 0?Ut:Y.props.value;Ct.set(ne,Ut);const Ce=ne===j;return Ut+=1,p.cloneElement(Y,S({fullWidth:T==="fullWidth",indicator:Ce&&!Z&&tt,selected:Ce,selectionFollowsFocus:x,onChange:v,textColor:E,value:ne},Ut===1&&j===!1&&!Y.props.tabIndex?{tabIndex:0}:{}))}),ae=Y=>{const ne=ze.current,Ce=ft(ne).activeElement;if(Ce.getAttribute("role")!=="tab")return;let nt=C==="horizontal"?"ArrowLeft":"ArrowUp",kt=C==="horizontal"?"ArrowRight":"ArrowDown";switch(C==="horizontal"&&i&&(nt="ArrowRight",kt="ArrowLeft"),Y.key){case nt:Y.preventDefault(),al(ne,Ce,gy);break;case kt:Y.preventDefault(),al(ne,Ce,my);break;case"Home":Y.preventDefault(),al(ne,null,my);break;case"End":Y.preventDefault(),al(ne,null,gy);break}},Te=wt();return u.jsxs(nL,S({className:V(G.root,f),ownerState:F,ref:n,as:h},M,{children:[Te.scrollButtonStart,Te.scrollbarSizeListener,u.jsxs(rL,{className:G.scroller,ownerState:F,style:{overflow:Se.overflow,[N?`margin${i?"Left":"Right"}`:"marginBottom"]:O?void 0:-Se.scrollbarWidth},ref:Fe,children:[u.jsx(oL,{"aria-label":s,"aria-labelledby":a,"aria-orientation":C==="vertical"?"vertical":null,className:G.flexContainer,ownerState:F,onKeyDown:ae,ref:ze,role:"tablist",children:tn}),Z&&tt]}),Te.scrollButtonEnd]}))});function aL(e){return re("MuiTextField",e)}oe("MuiTextField",["root"]);const lL=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],cL={standard:ym,filled:gm,outlined:bm},uL=e=>{const{classes:t}=e;return ie({root:["root"]},aL,t)},dL=B(Gu,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),qe=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:s,className:a,color:l="primary",defaultValue:c,disabled:d=!1,error:f=!1,FormHelperTextProps:h,fullWidth:b=!1,helperText:y,id:v,InputLabelProps:C,inputProps:g,InputProps:m,inputRef:x,label:w,maxRows:k,minRows:P,multiline:R=!1,name:E,onBlur:j,onChange:T,onFocus:O,placeholder:M,required:I=!1,rows:N,select:D=!1,SelectProps:z,type:W,value:$,variant:_="outlined"}=r,F=H(r,lL),G=S({},r,{autoFocus:i,color:l,disabled:d,error:f,fullWidth:b,multiline:R,required:I,select:D,variant:_}),X=uL(G),ce={};_==="outlined"&&(C&&typeof C.shrink<"u"&&(ce.notched=C.shrink),ce.label=w),D&&((!z||!z.native)&&(ce.id=void 0),ce["aria-describedby"]=void 0);const Z=ka(v),ue=y&&Z?`${Z}-helper-text`:void 0,U=w&&Z?`${Z}-label`:void 0,ee=cL[_],K=u.jsx(ee,S({"aria-describedby":ue,autoComplete:o,autoFocus:i,defaultValue:c,fullWidth:b,multiline:R,name:E,rows:N,maxRows:k,minRows:P,type:W,value:$,id:Z,inputRef:x,onBlur:j,onChange:T,onFocus:O,placeholder:M,inputProps:g},ce,m));return u.jsxs(dL,S({className:V(X.root,a),disabled:d,error:f,fullWidth:b,ref:n,required:I,color:l,variant:_,ownerState:G},F,{children:[w!=null&&w!==""&&u.jsx(Yu,S({htmlFor:Z,id:U},C,{children:w})),D?u.jsx(Oa,S({"aria-describedby":ue,id:Z,labelId:U,value:$,input:K},z,{children:s})):K,y&&u.jsx(cM,S({id:ue},h,{children:y}))]}))});var Cm={},Gd={};const fL=Pr(hT);var yy;function ge(){return yy||(yy=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=fL}(Gd)),Gd}var pL=de;Object.defineProperty(Cm,"__esModule",{value:!0});var Ki=Cm.default=void 0,hL=pL(ge()),mL=u;Ki=Cm.default=(0,hL.default)((0,mL.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");var wm={},gL=de;Object.defineProperty(wm,"__esModule",{value:!0});var km=wm.default=void 0,vL=gL(ge()),yL=u;km=wm.default=(0,vL.default)((0,yL.jsx)("path",{d:"M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3m5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72z"}),"Mic");var Rm={},xL=de;Object.defineProperty(Rm,"__esModule",{value:!0});var Pm=Rm.default=void 0,bL=xL(ge()),SL=u;Pm=Rm.default=(0,bL.default)((0,SL.jsx)("path",{d:"M19 11h-1.7c0 .74-.16 1.43-.43 2.05l1.23 1.23c.56-.98.9-2.09.9-3.28m-4.02.17c0-.06.02-.11.02-.17V5c0-1.66-1.34-3-3-3S9 3.34 9 5v.18zM4.27 3 3 4.27l6.01 6.01V11c0 1.66 1.33 3 2.99 3 .22 0 .44-.03.65-.08l1.66 1.66c-.71.33-1.5.52-2.31.52-2.76 0-5.3-2.1-5.3-5.1H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c.91-.13 1.77-.45 2.54-.9L19.73 21 21 19.73z"}),"MicOff");var Em={},CL=de;Object.defineProperty(Em,"__esModule",{value:!0});var Xu=Em.default=void 0,wL=CL(ge()),kL=u;Xu=Em.default=(0,wL.default)((0,kL.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"Person");var $m={},RL=de;Object.defineProperty($m,"__esModule",{value:!0});var Sc=$m.default=void 0,PL=RL(ge()),EL=u;Sc=$m.default=(0,PL.default)((0,EL.jsx)("path",{d:"M3 9v6h4l5 5V4L7 9zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02M14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77"}),"VolumeUp");var Tm={},$L=de;Object.defineProperty(Tm,"__esModule",{value:!0});var Cc=Tm.default=void 0,TL=$L(ge()),_L=u;Cc=Tm.default=(0,TL.default)((0,_L.jsx)("path",{d:"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63m2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71M4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9zM12 4 9.91 6.09 12 8.18z"}),"VolumeOff");var _m={},jL=de;Object.defineProperty(_m,"__esModule",{value:!0});var jm=_m.default=void 0,OL=jL(ge()),IL=u;jm=_m.default=(0,OL.default)((0,IL.jsx)("path",{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-1 9h-4v4h-2v-4H9V9h4V5h2v4h4z"}),"LibraryAdd");const gi="/assets/Aria-BMTE8U_Y.jpg",ML=()=>u.jsxs(Ke,{sx:{display:"flex",alignItems:"center",color:"text.secondary"},children:[u.jsx(yr,{src:gi,sx:{width:24,height:24,marginRight:1},alt:"Aria"}),u.jsxs("div",{style:{display:"flex"},children:[u.jsx("div",{style:{animation:"blink 1.4s infinite",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),u.jsx("div",{style:{animation:"blink 1.4s infinite 0.2s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),u.jsx("div",{style:{animation:"blink 1.4s infinite 0.4s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor"}})]})]}),NL=()=>{const{user:e,voiceEnabled:t,setVoiceEnabled:n}=p.useContext(lr),r=e==null?void 0:e.userId,[o,i]=p.useState(null),[s,a]=p.useState(0),[l,c]=p.useState(""),[d,f]=p.useState([]),[h,b]=p.useState(!1),[y,v]=p.useState(null),C=p.useRef([]),[g,m]=p.useState(!1),[x,w]=p.useState(""),[k,P]=p.useState(!1),[R,E]=p.useState(!1),[j,T]=p.useState(""),[O,M]=p.useState("info"),[I,N]=p.useState(null),D=U=>{U.preventDefault(),n(!t)},z=U=>{if(!t||U===I){N(null),window.speechSynthesis.cancel();return}const ee=window.speechSynthesis,K=new SpeechSynthesisUtterance(U),Q=()=>{const he=ee.getVoices();console.log(he.map(fe=>`${fe.name} - ${fe.lang} - ${fe.gender}`));const J=he.find(fe=>fe.name.includes("Microsoft Zira - English (United States)"));J?K.voice=J:console.log("No female voice found"),K.onend=()=>{N(null)},N(U),ee.speak(K)};ee.getVoices().length===0?ee.onvoiceschanged=Q:Q()},W=p.useCallback(async()=>{if(r){m(!0),P(!0);try{const U=await fetch(`/api/ai/mental_health/welcome/${r}`,{method:"POST",headers:{"Content-Type":"application/json"}}),ee=await U.json();console.log(ee),U.ok?(w(ee.message),t&&ee.message&&z(ee.message),i(ee.chat_id),console.log(ee.chat_id)):(console.error("Failed to fetch welcome message:",ee),w("Error fetching welcome message."))}catch(U){console.error("Network or server error:",U)}finally{m(!1),P(!1)}}},[r]);p.useEffect(()=>{W()},[]);const $=(U,ee)=>{ee!=="clickaway"&&E(!1)},_=p.useCallback(async()=>{if(o!==null){m(!0);try{const U=await fetch(`/api/ai/mental_health/finalize/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"}}),ee=await U.json();U.ok?(T("Chat finalized successfully"),M("success"),i(null),a(0),f([]),W()):(T("Failed to finalize chat"),M("error"))}catch{T("Error finalizing chat"),M("error")}finally{m(!1),E(!0)}}},[r,o,W]),F=p.useCallback(async()=>{if(!(!l.trim()||o===void 0)){console.log(o),m(!0);try{const U=JSON.stringify({prompt:l,turn_id:s}),ee=await fetch(`/api/ai/mental_health/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"},body:U}),K=await ee.json();console.log(K),ee.ok?(f(Q=>[...Q,{message:l,sender:"user"},{message:K,sender:"agent"}]),t&&K&&z(K),a(Q=>Q+1),c("")):(console.error("Failed to send message:",K.error||"Unknown error occurred"),T(K.error||"An error occurred while sending the message."),M("error"),E(!0))}catch(U){console.error("Failed to send message:",U),T("Network or server error occurred."),M("error"),E(!0)}finally{m(!1)}}},[l,r,o,s]),G=()=>{navigator.mediaDevices.getUserMedia({audio:!0}).then(U=>{C.current=[];const ee={mimeType:"audio/webm"},K=new MediaRecorder(U,ee);K.ondataavailable=Q=>{console.log("Data available:",Q.data.size),C.current.push(Q.data)},K.start(),v(K),b(!0)}).catch(console.error)},X=()=>{y&&(y.onstop=()=>{ce(C.current),b(!1),v(null)},y.stop())},ce=U=>{console.log("Audio chunks size:",U.reduce((Q,he)=>Q+he.size,0));const ee=new Blob(U,{type:"audio/webm"});if(ee.size===0){console.error("Audio Blob is empty");return}console.log(`Sending audio blob of size: ${ee.size} bytes`);const K=new FormData;K.append("audio",ee),m(!0),ve.post("/api/ai/mental_health/voice-to-text",K,{headers:{"Content-Type":"multipart/form-data"}}).then(Q=>{const{message:he}=Q.data;c(he),F()}).catch(Q=>{console.error("Error uploading audio:",Q),E(!0),T("Error processing voice input: "+Q.message),M("error")}).finally(()=>{m(!1)})},Z=p.useCallback(U=>{const ee=U.target.value;ee.split(/\s+/).length>200?(c(Q=>Q.split(/\s+/).slice(0,200).join(" ")),T("Word limit reached. Only 200 words allowed."),M("warning"),E(!0)):c(ee)},[]),ue=U=>U===I?u.jsx(Cc,{}):u.jsx(Sc,{});return u.jsxs(u.Fragment,{children:[u.jsx("style",{children:` + `),FO)),kn=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:s=!1,size:a=40,style:l,thickness:c=3.6,value:d=0,variant:f="indeterminate"}=r,h=H(r,zO),b=S({},r,{color:i,disableShrink:s,size:a,thickness:c,value:d,variant:f}),y=BO(b),v={},C={},g={};if(f==="determinate"){const m=2*Math.PI*((Nr-c)/2);v.strokeDasharray=m.toFixed(3),g["aria-valuenow"]=Math.round(d),v.strokeDashoffset=`${((100-d)/100*m).toFixed(3)}px`,C.transform="rotate(-90deg)"}return u.jsx(WO,S({className:V(y.root,o),style:S({width:a,height:a},C,l),ownerState:b,ref:n,role:"progressbar"},g,h,{children:u.jsx(UO,{className:y.svg,ownerState:b,viewBox:`${Nr/2} ${Nr/2} ${Nr} ${Nr}`,children:u.jsx(HO,{className:y.circle,style:v,ownerState:b,cx:Nr,cy:Nr,r:(Nr-c)/2,fill:"none",strokeWidth:c})})}))}),K2=X4({createStyledComponent:B("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${A(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>le({props:e,name:"MuiContainer"})}),VO=(e,t)=>S({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),qO=e=>S({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),KO=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,a])=>{var l;r[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(l=a.palette)==null?void 0:l.mode}});let o=S({html:VO(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:S({margin:0},qO(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const i=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return i&&(o=[o,i]),o};function hm(e){const t=le({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return u.jsxs(p.Fragment,{children:[u.jsx(W2,{styles:o=>KO(o,r)}),n]})}function GO(e){return re("MuiModal",e)}oe("MuiModal",["root","hidden","backdrop"]);const YO=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],XO=e=>{const{open:t,exited:n,classes:r}=e;return ie({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},GO,r)},QO=B("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>S({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),JO=B(H2,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),mm=p.forwardRef(function(t,n){var r,o,i,s,a,l;const c=le({name:"MuiModal",props:t}),{BackdropComponent:d=JO,BackdropProps:f,className:h,closeAfterTransition:b=!1,children:y,container:v,component:C,components:g={},componentsProps:m={},disableAutoFocus:x=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:k=!1,disablePortal:P=!1,disableRestoreFocus:R=!1,disableScrollLock:E=!1,hideBackdrop:j=!1,keepMounted:T=!1,onBackdropClick:O,open:M,slotProps:I,slots:N}=c,D=H(c,YO),z=S({},c,{closeAfterTransition:b,disableAutoFocus:x,disableEnforceFocus:w,disableEscapeKeyDown:k,disablePortal:P,disableRestoreFocus:R,disableScrollLock:E,hideBackdrop:j,keepMounted:T}),{getRootProps:W,getBackdropProps:$,getTransitionProps:_,portalRef:F,isTopModal:G,exited:X,hasTransition:ce}=V_(S({},z,{rootRef:n})),Z=S({},z,{exited:X}),ue=XO(Z),U={};if(y.props.tabIndex===void 0&&(U.tabIndex="-1"),ce){const{onEnter:pe,onExited:Se}=_();U.onEnter=pe,U.onExited=Se}const ee=(r=(o=N==null?void 0:N.root)!=null?o:g.Root)!=null?r:QO,K=(i=(s=N==null?void 0:N.backdrop)!=null?s:g.Backdrop)!=null?i:d,Q=(a=I==null?void 0:I.root)!=null?a:m.root,he=(l=I==null?void 0:I.backdrop)!=null?l:m.backdrop,J=en({elementType:ee,externalSlotProps:Q,externalForwardedProps:D,getSlotProps:W,additionalProps:{ref:n,as:C},ownerState:Z,className:V(h,Q==null?void 0:Q.className,ue==null?void 0:ue.root,!Z.open&&Z.exited&&(ue==null?void 0:ue.hidden))}),fe=en({elementType:K,externalSlotProps:he,additionalProps:f,getSlotProps:pe=>$(S({},pe,{onClick:Se=>{O&&O(Se),pe!=null&&pe.onClick&&pe.onClick(Se)}})),className:V(he==null?void 0:he.className,f==null?void 0:f.className,ue==null?void 0:ue.backdrop),ownerState:Z});return!T&&!M&&(!ce||X)?null:u.jsx($2,{ref:F,container:v,disablePortal:P,children:u.jsxs(ee,S({},J,{children:[!j&&d?u.jsx(K,S({},fe)):null,u.jsx(N_,{disableEnforceFocus:w,disableAutoFocus:x,disableRestoreFocus:R,isEnabled:G,open:M,children:p.cloneElement(y,U)})]}))})});function ZO(e){return re("MuiDialog",e)}const Ud=oe("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),G2=p.createContext({}),eI=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],tI=B(H2,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),nI=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,s={root:["root"],container:["container",`scroll${A(n)}`],paper:["paper",`paperScroll${A(n)}`,`paperWidth${A(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return ie(s,ZO,t)},rI=B(mm,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),oI=B("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${A(n.scroll)}`]]}})(({ownerState:e})=>S({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),iI=B(gn,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${A(n.scroll)}`],t[`paperWidth${A(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>S({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Ud.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${Ud.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Ud.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),yp=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiDialog"}),o=io(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,BackdropComponent:l,BackdropProps:c,children:d,className:f,disableEscapeKeyDown:h=!1,fullScreen:b=!1,fullWidth:y=!1,maxWidth:v="sm",onBackdropClick:C,onClick:g,onClose:m,open:x,PaperComponent:w=gn,PaperProps:k={},scroll:P="paper",TransitionComponent:R=U2,transitionDuration:E=i,TransitionProps:j}=r,T=H(r,eI),O=S({},r,{disableEscapeKeyDown:h,fullScreen:b,fullWidth:y,maxWidth:v,scroll:P}),M=nI(O),I=p.useRef(),N=$=>{I.current=$.target===$.currentTarget},D=$=>{g&&g($),I.current&&(I.current=null,C&&C($),m&&m($,"backdropClick"))},z=ka(a),W=p.useMemo(()=>({titleId:z}),[z]);return u.jsx(rI,S({className:V(M.root,f),closeAfterTransition:!0,components:{Backdrop:tI},componentsProps:{backdrop:S({transitionDuration:E,as:l},c)},disableEscapeKeyDown:h,onClose:m,open:x,ref:n,onClick:D,ownerState:O},T,{children:u.jsx(R,S({appear:!0,in:x,timeout:E,role:"presentation"},j,{children:u.jsx(oI,{className:V(M.container),onMouseDown:N,ownerState:O,children:u.jsx(iI,S({as:w,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":z},k,{className:V(M.paper,k.className),ownerState:O,children:u.jsx(G2.Provider,{value:W,children:d})}))})}))}))});function sI(e){return re("MuiDialogActions",e)}oe("MuiDialogActions",["root","spacing"]);const aI=["className","disableSpacing"],lI=e=>{const{classes:t,disableSpacing:n}=e;return ie({root:["root",!n&&"spacing"]},sI,t)},cI=B("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>S({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),xp=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1}=r,s=H(r,aI),a=S({},r,{disableSpacing:i}),l=lI(a);return u.jsx(cI,S({className:V(l.root,o),ownerState:a,ref:n},s))});function uI(e){return re("MuiDialogContent",e)}oe("MuiDialogContent",["root","dividers"]);function dI(e){return re("MuiDialogTitle",e)}const fI=oe("MuiDialogTitle",["root"]),pI=["className","dividers"],hI=e=>{const{classes:t,dividers:n}=e;return ie({root:["root",n&&"dividers"]},uI,t)},mI=B("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>S({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${fI.root} + &`]:{paddingTop:0}})),bp=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,s=H(r,pI),a=S({},r,{dividers:i}),l=hI(a);return u.jsx(mI,S({className:V(l.root,o),ownerState:a,ref:n},s))});function gI(e){return re("MuiDialogContentText",e)}oe("MuiDialogContentText",["root"]);const vI=["children","className"],yI=e=>{const{classes:t}=e,r=ie({root:["root"]},gI,t);return S({},t,r)},xI=B(ye,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Y2=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiDialogContentText"}),{className:o}=r,i=H(r,vI),s=yI(i);return u.jsx(xI,S({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:i,className:V(s.root,o)},r,{classes:s}))}),bI=["className","id"],SI=e=>{const{classes:t}=e;return ie({root:["root"]},dI,t)},CI=B(ye,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Sp=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiDialogTitle"}),{className:o,id:i}=r,s=H(r,bI),a=r,l=SI(a),{titleId:c=i}=p.useContext(G2);return u.jsx(CI,S({component:"h2",className:V(l.root,o),ownerState:a,ref:n,variant:"h6",id:i??c},s))});function wI(e){return re("MuiDivider",e)}const J0=oe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),kI=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],RI=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:s,textAlign:a,variant:l}=e;return ie({root:["root",t&&"absolute",l,i&&"light",s==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",a==="right"&&s!=="vertical"&&"textAlignRight",a==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},wI,r)},PI=B("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>S({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:je(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>S({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>S({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>S({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>S({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),EI=B("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>S({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),ca=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:s,component:a=i?"div":"hr",flexItem:l=!1,light:c=!1,orientation:d="horizontal",role:f=a!=="hr"?"separator":void 0,textAlign:h="center",variant:b="fullWidth"}=r,y=H(r,kI),v=S({},r,{absolute:o,component:a,flexItem:l,light:c,orientation:d,role:f,textAlign:h,variant:b}),C=RI(v);return u.jsx(PI,S({as:a,className:V(C.root,s),role:f,ref:n,ownerState:v},y,{children:i?u.jsx(EI,{className:C.wrapper,ownerState:v,children:i}):null}))});ca.muiSkipListHighlight=!0;const $I=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function TI(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=_n(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const c=i.getComputedStyle(t);s=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let a=0,l=0;if(s&&s!=="none"&&typeof s=="string"){const c=s.split("(")[1].split(")")[0].split(",");a=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?o?`translateX(${o.right+a-r.left}px)`:`translateX(${i.innerWidth+a-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-a}px)`:`translateX(-${r.left+r.width-a}px)`:e==="up"?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function _I(e){return typeof e=="function"?e():e}function ol(e,t,n){const r=_I(n),o=TI(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const jI=p.forwardRef(function(t,n){const r=io(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:l,container:c,direction:d="down",easing:f=o,in:h,onEnter:b,onEntered:y,onEntering:v,onExit:C,onExited:g,onExiting:m,style:x,timeout:w=i,TransitionComponent:k=Qn}=t,P=H(t,$I),R=p.useRef(null),E=Ye(l.ref,R,n),j=$=>_=>{$&&(_===void 0?$(R.current):$(R.current,_))},T=j(($,_)=>{ol(d,$,c),nm($),b&&b($,_)}),O=j(($,_)=>{const F=Pi({timeout:w,style:x,easing:f},{mode:"enter"});$.style.webkitTransition=r.transitions.create("-webkit-transform",S({},F)),$.style.transition=r.transitions.create("transform",S({},F)),$.style.webkitTransform="none",$.style.transform="none",v&&v($,_)}),M=j(y),I=j(m),N=j($=>{const _=Pi({timeout:w,style:x,easing:f},{mode:"exit"});$.style.webkitTransition=r.transitions.create("-webkit-transform",_),$.style.transition=r.transitions.create("transform",_),ol(d,$,c),C&&C($)}),D=j($=>{$.style.webkitTransition="",$.style.transition="",g&&g($)}),z=$=>{s&&s(R.current,$)},W=p.useCallback(()=>{R.current&&ol(d,R.current,c)},[d,c]);return p.useEffect(()=>{if(h||d==="down"||d==="right")return;const $=Hi(()=>{R.current&&ol(d,R.current,c)}),_=_n(R.current);return _.addEventListener("resize",$),()=>{$.clear(),_.removeEventListener("resize",$)}},[d,h,c]),p.useEffect(()=>{h||W()},[h,W]),u.jsx(k,S({nodeRef:R,onEnter:T,onEntered:M,onEntering:O,onExit:N,onExited:D,onExiting:I,addEndListener:z,appear:a,in:h,timeout:w},P,{children:($,_)=>p.cloneElement(l,S({ref:E,style:S({visibility:$==="exited"&&!h?"hidden":void 0},x,l.props.style)},_))}))});function OI(e){return re("MuiDrawer",e)}oe("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const II=["BackdropProps"],MI=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],X2=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},NI=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${A(n)}`,r!=="temporary"&&`paperAnchorDocked${A(n)}`]};return ie(o,OI,t)},LI=B(mm,{name:"MuiDrawer",slot:"Root",overridesResolver:X2})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),Z0=B("div",{shouldForwardProp:Mt,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:X2})({flex:"0 0 auto"}),AI=B(gn,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${A(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${A(n.anchor)}`]]}})(({theme:e,ownerState:t})=>S({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),Q2={left:"right",right:"left",top:"down",bottom:"up"};function zI(e){return["left","right"].indexOf(e)!==-1}function DI({direction:e},t){return e==="rtl"&&zI(t)?Q2[t]:t}const FI=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiDrawer"}),o=io(),i=Pa(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:a="left",BackdropProps:l,children:c,className:d,elevation:f=16,hideBackdrop:h=!1,ModalProps:{BackdropProps:b}={},onClose:y,open:v=!1,PaperProps:C={},SlideProps:g,TransitionComponent:m=jI,transitionDuration:x=s,variant:w="temporary"}=r,k=H(r.ModalProps,II),P=H(r,MI),R=p.useRef(!1);p.useEffect(()=>{R.current=!0},[]);const E=DI({direction:i?"rtl":"ltr"},a),T=S({},r,{anchor:a,elevation:f,open:v,variant:w},P),O=NI(T),M=u.jsx(AI,S({elevation:w==="temporary"?f:0,square:!0},C,{className:V(O.paper,C.className),ownerState:T,children:c}));if(w==="permanent")return u.jsx(Z0,S({className:V(O.root,O.docked,d),ownerState:T,ref:n},P,{children:M}));const I=u.jsx(m,S({in:v,direction:Q2[E],timeout:x,appear:R.current},g,{children:M}));return w==="persistent"?u.jsx(Z0,S({className:V(O.root,O.docked,d),ownerState:T,ref:n},P,{children:I})):u.jsx(LI,S({BackdropProps:S({},l,b,{transitionDuration:x}),className:V(O.root,O.modal,d),open:v,ownerState:T,onClose:y,hideBackdrop:h,ref:n},P,k,{children:I}))}),BI=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],WI=e=>{const{classes:t,disableUnderline:n}=e,o=ie({root:["root",!n&&"underline"],input:["input"]},M3,t);return S({},t,o)},UI=B(Hu,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Wu(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return S({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${co.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${co.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${co.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${co.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${co.disabled}, .${co.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${co.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&S({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),HI=B(Vu,{name:"MuiFilledInput",slot:"Input",overridesResolver:Uu})(({theme:e,ownerState:t})=>S({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),gm=p.forwardRef(function(t,n){var r,o,i,s;const a=le({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:c,fullWidth:d=!1,inputComponent:f="input",multiline:h=!1,slotProps:b,slots:y={},type:v="text"}=a,C=H(a,BI),g=S({},a,{fullWidth:d,inputComponent:f,multiline:h,type:v}),m=WI(a),x={root:{ownerState:g},input:{ownerState:g}},w=b??c?Ft(x,b??c):x,k=(r=(o=y.root)!=null?o:l.Root)!=null?r:UI,P=(i=(s=y.input)!=null?s:l.Input)!=null?i:HI;return u.jsx(dm,S({slots:{root:k,input:P},componentsProps:w,fullWidth:d,inputComponent:f,multiline:h,ref:n,type:v},C,{classes:m}))});gm.muiName="Input";function VI(e){return re("MuiFormControl",e)}oe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const qI=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],KI=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${A(n)}`,r&&"fullWidth"]};return ie(o,VI,t)},GI=B("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,t[`margin${A(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>S({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),Gu=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiFormControl"}),{children:o,className:i,color:s="primary",component:a="div",disabled:l=!1,error:c=!1,focused:d,fullWidth:f=!1,hiddenLabel:h=!1,margin:b="none",required:y=!1,size:v="medium",variant:C="outlined"}=r,g=H(r,qI),m=S({},r,{color:s,component:a,disabled:l,error:c,fullWidth:f,hiddenLabel:h,margin:b,required:y,size:v,variant:C}),x=KI(m),[w,k]=p.useState(()=>{let I=!1;return o&&p.Children.forEach(o,N=>{if(!js(N,["Input","Select"]))return;const D=js(N,["Select"])?N.props.input:N;D&&P3(D.props)&&(I=!0)}),I}),[P,R]=p.useState(()=>{let I=!1;return o&&p.Children.forEach(o,N=>{js(N,["Input","Select"])&&(vc(N.props,!0)||vc(N.props.inputProps,!0))&&(I=!0)}),I}),[E,j]=p.useState(!1);l&&E&&j(!1);const T=d!==void 0&&!l?d:E;let O;const M=p.useMemo(()=>({adornedStart:w,setAdornedStart:k,color:s,disabled:l,error:c,filled:P,focused:T,fullWidth:f,hiddenLabel:h,size:v,onBlur:()=>{j(!1)},onEmpty:()=>{R(!1)},onFilled:()=>{R(!0)},onFocus:()=>{j(!0)},registerEffect:O,required:y,variant:C}),[w,s,l,c,P,T,f,h,O,y,v,C]);return u.jsx(Bu.Provider,{value:M,children:u.jsx(GI,S({as:a,ownerState:m,className:V(x.root,i),ref:n},g,{children:o}))})}),YI=o5({createStyledComponent:B("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>le({props:e,name:"MuiStack"})});function XI(e){return re("MuiFormControlLabel",e)}const bs=oe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),QI=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],JI=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,s={root:["root",n&&"disabled",`labelPlacement${A(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return ie(s,XI,t)},ZI=B("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${bs.label}`]:t.label},t.root,t[`labelPlacement${A(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>S({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${bs.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${bs.label}`]:{[`&.${bs.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),eM=B("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${bs.error}`]:{color:(e.vars||e).palette.error.main}})),vm=p.forwardRef(function(t,n){var r,o;const i=le({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:a={},control:l,disabled:c,disableTypography:d,label:f,labelPlacement:h="end",required:b,slotProps:y={}}=i,v=H(i,QI),C=dr(),g=(r=c??l.props.disabled)!=null?r:C==null?void 0:C.disabled,m=b??l.props.required,x={disabled:g,required:m};["checked","name","onChange","value","inputRef"].forEach(j=>{typeof l.props[j]>"u"&&typeof i[j]<"u"&&(x[j]=i[j])});const w=ao({props:i,muiFormControl:C,states:["error"]}),k=S({},i,{disabled:g,labelPlacement:h,required:m,error:w.error}),P=JI(k),R=(o=y.typography)!=null?o:a.typography;let E=f;return E!=null&&E.type!==ye&&!d&&(E=u.jsx(ye,S({component:"span"},R,{className:V(P.label,R==null?void 0:R.className),children:E}))),u.jsxs(ZI,S({className:V(P.root,s),ownerState:k,ref:n},v,{children:[p.cloneElement(l,x),m?u.jsxs(YI,{display:"block",children:[E,u.jsxs(eM,{ownerState:k,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]}):E]}))});function tM(e){return re("MuiFormGroup",e)}oe("MuiFormGroup",["root","row","error"]);const nM=["className","row"],rM=e=>{const{classes:t,row:n,error:r}=e;return ie({root:["root",n&&"row",r&&"error"]},tM,t)},oM=B("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>S({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),J2=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiFormGroup"}),{className:o,row:i=!1}=r,s=H(r,nM),a=dr(),l=ao({props:r,muiFormControl:a,states:["error"]}),c=S({},r,{row:i,error:l.error}),d=rM(c);return u.jsx(oM,S({className:V(d.root,o),ownerState:c,ref:n},s))});function iM(e){return re("MuiFormHelperText",e)}const ey=oe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var ty;const sM=["children","className","component","disabled","error","filled","focused","margin","required","variant"],aM=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:s,focused:a,required:l}=e,c={root:["root",o&&"disabled",i&&"error",r&&`size${A(r)}`,n&&"contained",a&&"focused",s&&"filled",l&&"required"]};return ie(c,iM,t)},lM=B("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${A(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${ey.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ey.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),cM=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:s="p"}=r,a=H(r,sM),l=dr(),c=ao({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),d=S({},r,{component:s,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=aM(d);return u.jsx(lM,S({as:s,ownerState:d,className:V(f.root,i),ref:n},a,{children:o===" "?ty||(ty=u.jsx("span",{className:"notranslate",children:"​"})):o}))});function uM(e){return re("MuiFormLabel",e)}const Ns=oe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),dM=["children","className","color","component","disabled","error","filled","focused","required"],fM=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:s,required:a}=e,l={root:["root",`color${A(n)}`,o&&"disabled",i&&"error",s&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]};return ie(l,uM,t)},pM=B("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Ns.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Ns.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ns.error}`]:{color:(e.vars||e).palette.error.main}})),hM=B("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Ns.error}`]:{color:(e.vars||e).palette.error.main}})),mM=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:s="label"}=r,a=H(r,dM),l=dr(),c=ao({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),d=S({},r,{color:c.color||"primary",component:s,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=fM(d);return u.jsxs(pM,S({as:s,ownerState:d,className:V(f.root,i),ref:n},a,{children:[o,c.required&&u.jsxs(hM,{ownerState:d,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),gM=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Cp(e){return`scale(${e}, ${e**2})`}const vM={entering:{opacity:1,transform:Cp(1)},entered:{opacity:1,transform:"none"}},Hd=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ua=p.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:s,in:a,onEnter:l,onEntered:c,onEntering:d,onExit:f,onExited:h,onExiting:b,style:y,timeout:v="auto",TransitionComponent:C=Qn}=t,g=H(t,gM),m=xo(),x=p.useRef(),w=io(),k=p.useRef(null),P=Ye(k,i.ref,n),R=D=>z=>{if(D){const W=k.current;z===void 0?D(W):D(W,z)}},E=R(d),j=R((D,z)=>{nm(D);const{duration:W,delay:$,easing:_}=Pi({style:y,timeout:v,easing:s},{mode:"enter"});let F;v==="auto"?(F=w.transitions.getAutoHeightDuration(D.clientHeight),x.current=F):F=W,D.style.transition=[w.transitions.create("opacity",{duration:F,delay:$}),w.transitions.create("transform",{duration:Hd?F:F*.666,delay:$,easing:_})].join(","),l&&l(D,z)}),T=R(c),O=R(b),M=R(D=>{const{duration:z,delay:W,easing:$}=Pi({style:y,timeout:v,easing:s},{mode:"exit"});let _;v==="auto"?(_=w.transitions.getAutoHeightDuration(D.clientHeight),x.current=_):_=z,D.style.transition=[w.transitions.create("opacity",{duration:_,delay:W}),w.transitions.create("transform",{duration:Hd?_:_*.666,delay:Hd?W:W||_*.333,easing:$})].join(","),D.style.opacity=0,D.style.transform=Cp(.75),f&&f(D)}),I=R(h),N=D=>{v==="auto"&&m.start(x.current||0,D),r&&r(k.current,D)};return u.jsx(C,S({appear:o,in:a,nodeRef:k,onEnter:j,onEntered:T,onEntering:E,onExit:M,onExited:I,onExiting:O,addEndListener:N,timeout:v==="auto"?null:v},g,{children:(D,z)=>p.cloneElement(i,S({style:S({opacity:0,transform:Cp(.75),visibility:D==="exited"&&!a?"hidden":void 0},vM[D],y,i.props.style),ref:P},z))}))});ua.muiSupportAuto=!0;const yM=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],xM=e=>{const{classes:t,disableUnderline:n}=e,o=ie({root:["root",!n&&"underline"],input:["input"]},O3,t);return S({},t,o)},bM=B(Hu,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Wu(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),S({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${cs.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${cs.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${cs.disabled}, .${cs.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${cs.disabled}:before`]:{borderBottomStyle:"dotted"}})}),SM=B(Vu,{name:"MuiInput",slot:"Input",overridesResolver:Uu})({}),ym=p.forwardRef(function(t,n){var r,o,i,s;const a=le({props:t,name:"MuiInput"}),{disableUnderline:l,components:c={},componentsProps:d,fullWidth:f=!1,inputComponent:h="input",multiline:b=!1,slotProps:y,slots:v={},type:C="text"}=a,g=H(a,yM),m=xM(a),w={root:{ownerState:{disableUnderline:l}}},k=y??d?Ft(y??d,w):w,P=(r=(o=v.root)!=null?o:c.Root)!=null?r:bM,R=(i=(s=v.input)!=null?s:c.Input)!=null?i:SM;return u.jsx(dm,S({slots:{root:P,input:R},slotProps:k,fullWidth:f,inputComponent:h,multiline:b,ref:n,type:C},g,{classes:m}))});ym.muiName="Input";function CM(e){return re("MuiInputAdornment",e)}const ny=oe("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var ry;const wM=["children","className","component","disablePointerEvents","disableTypography","position","variant"],kM=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${A(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},RM=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:s}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${A(o)}`,s,r&&"hiddenLabel",i&&`size${A(i)}`]};return ie(a,CM,t)},PM=B("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:kM})(({theme:e,ownerState:t})=>S({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${ny.positionStart}&:not(.${ny.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),yc=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:s="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:d}=r,f=H(r,wM),h=dr()||{};let b=d;d&&h.variant,h&&!b&&(b=h.variant);const y=S({},r,{hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:a,position:c,variant:b}),v=RM(y);return u.jsx(Bu.Provider,{value:null,children:u.jsx(PM,S({as:s,ownerState:y,className:V(v.root,i),ref:n},f,{children:typeof o=="string"&&!l?u.jsx(ye,{color:"text.secondary",children:o}):u.jsxs(p.Fragment,{children:[c==="start"?ry||(ry=u.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})});function EM(e){return re("MuiInputLabel",e)}oe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const $M=["disableAnimation","margin","shrink","variant","className"],TM=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:s,required:a}=e,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${A(r)}`,s],asterisk:[a&&"asterisk"]},c=ie(l,EM,t);return S({},t,c)},_M=B(mM,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ns.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>S({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&S({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&S({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&S({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Yu=p.forwardRef(function(t,n){const r=le({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:s}=r,a=H(r,$M),l=dr();let c=i;typeof c>"u"&&l&&(c=l.filled||l.focused||l.adornedStart);const d=ao({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),f=S({},r,{disableAnimation:o,formControl:l,shrink:c,size:d.size,variant:d.variant,required:d.required,focused:d.focused}),h=TM(f);return u.jsx(_M,S({"data-shrink":c,ownerState:f,ref:n,className:V(h.root,s)},a,{classes:h}))}),ar=p.createContext({});function jM(e){return re("MuiList",e)}oe("MuiList",["root","padding","dense","subheader"]);const OM=["children","className","component","dense","disablePadding","subheader"],IM=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return ie({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},jM,t)},MM=B("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>S({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),ja=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:a=!1,disablePadding:l=!1,subheader:c}=r,d=H(r,OM),f=p.useMemo(()=>({dense:a}),[a]),h=S({},r,{component:s,dense:a,disablePadding:l}),b=IM(h);return u.jsx(ar.Provider,{value:f,children:u.jsxs(MM,S({as:s,className:V(b.root,i),ref:n,ownerState:h},d,{children:[c,o]}))})});function NM(e){return re("MuiListItem",e)}const Go=oe("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),LM=oe("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function AM(e){return re("MuiListItemSecondaryAction",e)}oe("MuiListItemSecondaryAction",["root","disableGutters"]);const zM=["className"],DM=e=>{const{disableGutters:t,classes:n}=e;return ie({root:["root",t&&"disableGutters"]},AM,n)},FM=B("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>S({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),Z2=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=H(r,zM),s=p.useContext(ar),a=S({},r,{disableGutters:s.disableGutters}),l=DM(a);return u.jsx(FM,S({className:V(l.root,o),ownerState:a,ref:n},i))});Z2.muiName="ListItemSecondaryAction";const BM=["className"],WM=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],UM=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},HM=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:s,disablePadding:a,divider:l,hasSecondaryAction:c,selected:d}=e;return ie({root:["root",o&&"dense",!s&&"gutters",!a&&"padding",l&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction",d&&"selected"],container:["container"]},NM,r)},VM=B("div",{name:"MuiListItem",slot:"Root",overridesResolver:UM})(({theme:e,ownerState:t})=>S({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&S({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${LM.root}`]:{paddingRight:48}},{[`&.${Go.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Go.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:je(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Go.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:je(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Go.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Go.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:je(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:je(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),qM=B("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),xc=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:s=!1,children:a,className:l,component:c,components:d={},componentsProps:f={},ContainerComponent:h="li",ContainerProps:{className:b}={},dense:y=!1,disabled:v=!1,disableGutters:C=!1,disablePadding:g=!1,divider:m=!1,focusVisibleClassName:x,secondaryAction:w,selected:k=!1,slotProps:P={},slots:R={}}=r,E=H(r.ContainerProps,BM),j=H(r,WM),T=p.useContext(ar),O=p.useMemo(()=>({dense:y||T.dense||!1,alignItems:o,disableGutters:C}),[o,T.dense,y,C]),M=p.useRef(null);dn(()=>{i&&M.current&&M.current.focus()},[i]);const I=p.Children.toArray(a),N=I.length&&js(I[I.length-1],["ListItemSecondaryAction"]),D=S({},r,{alignItems:o,autoFocus:i,button:s,dense:O.dense,disabled:v,disableGutters:C,disablePadding:g,divider:m,hasSecondaryAction:N,selected:k}),z=HM(D),W=Ye(M,n),$=R.root||d.Root||VM,_=P.root||f.root||{},F=S({className:V(z.root,_.className,l),disabled:v},j);let G=c||"li";return s&&(F.component=c||"div",F.focusVisibleClassName=V(Go.focusVisible,x),G=kr),N?(G=!F.component&&!c?"div":G,h==="li"&&(G==="li"?G="div":F.component==="li"&&(F.component="div")),u.jsx(ar.Provider,{value:O,children:u.jsxs(qM,S({as:h,className:V(z.container,b),ref:W,ownerState:D},E,{children:[u.jsx($,S({},_,!Ei($)&&{as:G,ownerState:S({},D,_.ownerState)},F,{children:I})),I.pop()]}))})):u.jsx(ar.Provider,{value:O,children:u.jsxs($,S({},_,{as:G,ref:W},!Ei($)&&{ownerState:S({},D,_.ownerState)},F,{children:[I,w&&u.jsx(Z2,{children:w})]}))})});function KM(e){return re("MuiListItemAvatar",e)}oe("MuiListItemAvatar",["root","alignItemsFlexStart"]);const GM=["className"],YM=e=>{const{alignItems:t,classes:n}=e;return ie({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},KM,n)},XM=B("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>S({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),QM=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiListItemAvatar"}),{className:o}=r,i=H(r,GM),s=p.useContext(ar),a=S({},r,{alignItems:s.alignItems}),l=YM(a);return u.jsx(XM,S({className:V(l.root,o),ownerState:a,ref:n},i))});function JM(e){return re("MuiListItemIcon",e)}const oy=oe("MuiListItemIcon",["root","alignItemsFlexStart"]),ZM=["className"],eN=e=>{const{alignItems:t,classes:n}=e;return ie({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},JM,n)},tN=B("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>S({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),iy=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiListItemIcon"}),{className:o}=r,i=H(r,ZM),s=p.useContext(ar),a=S({},r,{alignItems:s.alignItems}),l=eN(a);return u.jsx(tN,S({className:V(l.root,o),ownerState:a,ref:n},i))});function nN(e){return re("MuiListItemText",e)}const bc=oe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),rN=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],oN=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return ie({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},nN,t)},iN=B("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${bc.primary}`]:t.primary},{[`& .${bc.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>S({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),da=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:s=!1,inset:a=!1,primary:l,primaryTypographyProps:c,secondary:d,secondaryTypographyProps:f}=r,h=H(r,rN),{dense:b}=p.useContext(ar);let y=l??o,v=d;const C=S({},r,{disableTypography:s,inset:a,primary:!!y,secondary:!!v,dense:b}),g=oN(C);return y!=null&&y.type!==ye&&!s&&(y=u.jsx(ye,S({variant:b?"body2":"body1",className:g.primary,component:c!=null&&c.variant?void 0:"span",display:"block"},c,{children:y}))),v!=null&&v.type!==ye&&!s&&(v=u.jsx(ye,S({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},f,{children:v}))),u.jsxs(iN,S({className:V(g.root,i),ownerState:C,ref:n},h,{children:[y,v]}))}),sN=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Vd(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function sy(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function eS(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function us(e,t,n,r,o,i){let s=!1,a=o(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const l=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!eS(a,i)||l)a=o(e,a,n);else return a.focus(),!0}return!1}const aN=p.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:s,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:d,variant:f="selectedMenu"}=t,h=H(t,sN),b=p.useRef(null),y=p.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});dn(()=>{o&&b.current.focus()},[o]),p.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,{direction:w})=>{const k=!b.current.style.width;if(x.clientHeight{const w=b.current,k=x.key,P=ft(w).activeElement;if(k==="ArrowDown")x.preventDefault(),us(w,P,c,l,Vd);else if(k==="ArrowUp")x.preventDefault(),us(w,P,c,l,sy);else if(k==="Home")x.preventDefault(),us(w,null,c,l,Vd);else if(k==="End")x.preventDefault(),us(w,null,c,l,sy);else if(k.length===1){const R=y.current,E=k.toLowerCase(),j=performance.now();R.keys.length>0&&(j-R.lastTime>500?(R.keys=[],R.repeating=!0,R.previousKeyMatched=!0):R.repeating&&E!==R.keys[0]&&(R.repeating=!1)),R.lastTime=j,R.keys.push(E);const T=P&&!R.repeating&&eS(P,R);R.previousKeyMatched&&(T||us(w,P,!1,l,Vd,R))?x.preventDefault():R.previousKeyMatched=!1}d&&d(x)},C=Ye(b,n);let g=-1;p.Children.forEach(s,(x,w)=>{if(!p.isValidElement(x)){g===w&&(g+=1,g>=s.length&&(g=-1));return}x.props.disabled||(f==="selectedMenu"&&x.props.selected||g===-1)&&(g=w),g===w&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(g+=1,g>=s.length&&(g=-1))});const m=p.Children.map(s,(x,w)=>{if(w===g){const k={};return i&&(k.autoFocus=!0),x.props.tabIndex===void 0&&f==="selectedMenu"&&(k.tabIndex=0),p.cloneElement(x,k)}return x});return u.jsx(ja,S({role:"menu",ref:C,className:a,onKeyDown:v,tabIndex:o?0:-1},h,{children:m}))});function lN(e){return re("MuiPopover",e)}oe("MuiPopover",["root","paper"]);const cN=["onEntering"],uN=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],dN=["slotProps"];function ay(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function ly(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function cy(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function qd(e){return typeof e=="function"?e():e}const fN=e=>{const{classes:t}=e;return ie({root:["root"],paper:["paper"]},lN,t)},pN=B(mm,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),tS=B(gn,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),hN=p.forwardRef(function(t,n){var r,o,i;const s=le({props:t,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:f="anchorEl",children:h,className:b,container:y,elevation:v=8,marginThreshold:C=16,open:g,PaperProps:m={},slots:x,slotProps:w,transformOrigin:k={vertical:"top",horizontal:"left"},TransitionComponent:P=ua,transitionDuration:R="auto",TransitionProps:{onEntering:E}={},disableScrollLock:j=!1}=s,T=H(s.TransitionProps,cN),O=H(s,uN),M=(r=w==null?void 0:w.paper)!=null?r:m,I=p.useRef(),N=Ye(I,M.ref),D=S({},s,{anchorOrigin:c,anchorReference:f,elevation:v,marginThreshold:C,externalPaperSlotProps:M,transformOrigin:k,TransitionComponent:P,transitionDuration:R,TransitionProps:T}),z=fN(D),W=p.useCallback(()=>{if(f==="anchorPosition")return d;const pe=qd(l),xe=(pe&&pe.nodeType===1?pe:ft(I.current).body).getBoundingClientRect();return{top:xe.top+ay(xe,c.vertical),left:xe.left+ly(xe,c.horizontal)}},[l,c.horizontal,c.vertical,d,f]),$=p.useCallback(pe=>({vertical:ay(pe,k.vertical),horizontal:ly(pe,k.horizontal)}),[k.horizontal,k.vertical]),_=p.useCallback(pe=>{const Se={width:pe.offsetWidth,height:pe.offsetHeight},xe=$(Se);if(f==="none")return{top:null,left:null,transformOrigin:cy(xe)};const Ct=W();let Fe=Ct.top-xe.vertical,ze=Ct.left-xe.horizontal;const pt=Fe+Se.height,Me=ze+Se.width,ke=_n(qd(l)),ct=ke.innerHeight-C,He=ke.innerWidth-C;if(C!==null&&Fect){const Ee=pt-ct;Fe-=Ee,xe.vertical+=Ee}if(C!==null&&zeHe){const Ee=Me-He;ze-=Ee,xe.horizontal+=Ee}return{top:`${Math.round(Fe)}px`,left:`${Math.round(ze)}px`,transformOrigin:cy(xe)}},[l,f,W,$,C]),[F,G]=p.useState(g),X=p.useCallback(()=>{const pe=I.current;if(!pe)return;const Se=_(pe);Se.top!==null&&(pe.style.top=Se.top),Se.left!==null&&(pe.style.left=Se.left),pe.style.transformOrigin=Se.transformOrigin,G(!0)},[_]);p.useEffect(()=>(j&&window.addEventListener("scroll",X),()=>window.removeEventListener("scroll",X)),[l,j,X]);const ce=(pe,Se)=>{E&&E(pe,Se),X()},Z=()=>{G(!1)};p.useEffect(()=>{g&&X()}),p.useImperativeHandle(a,()=>g?{updatePosition:()=>{X()}}:null,[g,X]),p.useEffect(()=>{if(!g)return;const pe=Hi(()=>{X()}),Se=_n(l);return Se.addEventListener("resize",pe),()=>{pe.clear(),Se.removeEventListener("resize",pe)}},[l,g,X]);let ue=R;R==="auto"&&!P.muiSupportAuto&&(ue=void 0);const U=y||(l?ft(qd(l)).body:void 0),ee=(o=x==null?void 0:x.root)!=null?o:pN,K=(i=x==null?void 0:x.paper)!=null?i:tS,Q=en({elementType:K,externalSlotProps:S({},M,{style:F?M.style:S({},M.style,{opacity:0})}),additionalProps:{elevation:v,ref:N},ownerState:D,className:V(z.paper,M==null?void 0:M.className)}),he=en({elementType:ee,externalSlotProps:(w==null?void 0:w.root)||{},externalForwardedProps:O,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:U,open:g},ownerState:D,className:V(z.root,b)}),{slotProps:J}=he,fe=H(he,dN);return u.jsx(ee,S({},fe,!Ei(ee)&&{slotProps:J,disableScrollLock:j},{children:u.jsx(P,S({appear:!0,in:g,onEntering:ce,onExited:Z,timeout:ue},T,{children:u.jsx(K,S({},Q,{children:h}))}))}))});function mN(e){return re("MuiMenu",e)}oe("MuiMenu",["root","paper","list"]);const gN=["onEntering"],vN=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],yN={vertical:"top",horizontal:"right"},xN={vertical:"top",horizontal:"left"},bN=e=>{const{classes:t}=e;return ie({root:["root"],paper:["paper"],list:["list"]},mN,t)},SN=B(hN,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),CN=B(tS,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),wN=B(aN,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),nS=p.forwardRef(function(t,n){var r,o;const i=le({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:a,className:l,disableAutoFocusItem:c=!1,MenuListProps:d={},onClose:f,open:h,PaperProps:b={},PopoverClasses:y,transitionDuration:v="auto",TransitionProps:{onEntering:C}={},variant:g="selectedMenu",slots:m={},slotProps:x={}}=i,w=H(i.TransitionProps,gN),k=H(i,vN),P=Pa(),R=S({},i,{autoFocus:s,disableAutoFocusItem:c,MenuListProps:d,onEntering:C,PaperProps:b,transitionDuration:v,TransitionProps:w,variant:g}),E=bN(R),j=s&&!c&&h,T=p.useRef(null),O=($,_)=>{T.current&&T.current.adjustStyleForScrollbar($,{direction:P?"rtl":"ltr"}),C&&C($,_)},M=$=>{$.key==="Tab"&&($.preventDefault(),f&&f($,"tabKeyDown"))};let I=-1;p.Children.map(a,($,_)=>{p.isValidElement($)&&($.props.disabled||(g==="selectedMenu"&&$.props.selected||I===-1)&&(I=_))});const N=(r=m.paper)!=null?r:CN,D=(o=x.paper)!=null?o:b,z=en({elementType:m.root,externalSlotProps:x.root,ownerState:R,className:[E.root,l]}),W=en({elementType:N,externalSlotProps:D,ownerState:R,className:E.paper});return u.jsx(SN,S({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:P?"right":"left"},transformOrigin:P?yN:xN,slots:{paper:N,root:m.root},slotProps:{root:z,paper:W},open:h,ref:n,transitionDuration:v,TransitionProps:S({onEntering:O},w),ownerState:R},k,{classes:y,children:u.jsx(wN,S({onKeyDown:M,actions:T,autoFocus:s&&(I===-1||c),autoFocusItem:j,variant:g},d,{className:V(E.list,d.className),children:a}))}))});function kN(e){return re("MuiMenuItem",e)}const ds=oe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),RN=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],PN=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},EN=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:s}=e,l=ie({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},kN,s);return S({},s,l)},$N=B(kr,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:PN})(({theme:e,ownerState:t})=>S({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ds.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:je(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ds.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:je(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ds.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:je(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:je(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ds.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ds.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${J0.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${J0.inset}`]:{marginLeft:52},[`& .${bc.root}`]:{marginTop:0,marginBottom:0},[`& .${bc.inset}`]:{paddingLeft:36},[`& .${oy.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&S({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${oy.root} svg`]:{fontSize:"1.25rem"}}))),Un=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:s=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:c,role:d="menuitem",tabIndex:f,className:h}=r,b=H(r,RN),y=p.useContext(ar),v=p.useMemo(()=>({dense:s||y.dense||!1,disableGutters:l}),[y.dense,s,l]),C=p.useRef(null);dn(()=>{o&&C.current&&C.current.focus()},[o]);const g=S({},r,{dense:v.dense,divider:a,disableGutters:l}),m=EN(r),x=Ye(C,n);let w;return r.disabled||(w=f!==void 0?f:-1),u.jsx(ar.Provider,{value:v,children:u.jsx($N,S({ref:x,role:d,tabIndex:w,component:i,focusVisibleClassName:V(m.focusVisible,c),className:V(m.root,h)},b,{ownerState:g,classes:m}))})});function TN(e){return re("MuiNativeSelect",e)}const xm=oe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),_N=["className","disabled","error","IconComponent","inputRef","variant"],jN=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${A(n)}`,i&&"iconOpen",r&&"disabled"]};return ie(a,TN,t)},rS=({ownerState:e,theme:t})=>S({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":S({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${xm.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),ON=B("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Mt,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${xm.multiple}`]:t.multiple}]}})(rS),oS=({ownerState:e,theme:t})=>S({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${xm.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),IN=B("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${A(n.variant)}`],n.open&&t.iconOpen]}})(oS),MN=p.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:s,inputRef:a,variant:l="standard"}=t,c=H(t,_N),d=S({},t,{disabled:o,variant:l,error:i}),f=jN(d);return u.jsxs(p.Fragment,{children:[u.jsx(ON,S({ownerState:d,className:V(f.select,r),disabled:o,ref:a||n},c)),t.multiple?null:u.jsx(IN,{as:s,ownerState:d,className:f.icon})]})});var uy;const NN=["children","classes","className","label","notched"],LN=B("fieldset",{shouldForwardProp:Mt})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),AN=B("legend",{shouldForwardProp:Mt})(({ownerState:e,theme:t})=>S({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&S({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function zN(e){const{className:t,label:n,notched:r}=e,o=H(e,NN),i=n!=null&&n!=="",s=S({},e,{notched:r,withLabel:i});return u.jsx(LN,S({"aria-hidden":!0,className:t,ownerState:s},o,{children:u.jsx(AN,{ownerState:s,children:i?u.jsx("span",{children:n}):uy||(uy=u.jsx("span",{className:"notranslate",children:"​"}))})}))}const DN=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],FN=e=>{const{classes:t}=e,r=ie({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},I3,t);return S({},t,r)},BN=B(Hu,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Wu})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return S({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ir.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ir.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Ir.focused} .${Ir.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Ir.error} .${Ir.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ir.disabled} .${Ir.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&S({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),WN=B(zN,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),UN=B(Vu,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Uu})(({theme:e,ownerState:t})=>S({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),bm=p.forwardRef(function(t,n){var r,o,i,s,a;const l=le({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:d=!1,inputComponent:f="input",label:h,multiline:b=!1,notched:y,slots:v={},type:C="text"}=l,g=H(l,DN),m=FN(l),x=dr(),w=ao({props:l,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),k=S({},l,{color:w.color||"primary",disabled:w.disabled,error:w.error,focused:w.focused,formControl:x,fullWidth:d,hiddenLabel:w.hiddenLabel,multiline:b,size:w.size,type:C}),P=(r=(o=v.root)!=null?o:c.Root)!=null?r:BN,R=(i=(s=v.input)!=null?s:c.Input)!=null?i:UN;return u.jsx(dm,S({slots:{root:P,input:R},renderSuffix:E=>u.jsx(WN,{ownerState:k,className:m.notchedOutline,label:h!=null&&h!==""&&w.required?a||(a=u.jsxs(p.Fragment,{children:[h," ","*"]})):h,notched:typeof y<"u"?y:!!(E.startAdornment||E.filled||E.focused)}),fullWidth:d,inputComponent:f,multiline:b,ref:n,type:C},g,{classes:S({},m,{notchedOutline:null})}))});bm.muiName="Input";function HN(e){return re("MuiSelect",e)}const fs=oe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var dy;const VN=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],qN=B("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${fs.select}`]:t.select},{[`&.${fs.select}`]:t[n.variant]},{[`&.${fs.error}`]:t.error},{[`&.${fs.multiple}`]:t.multiple}]}})(rS,{[`&.${fs.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),KN=B("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${A(n.variant)}`],n.open&&t.iconOpen]}})(oS),GN=B("input",{shouldForwardProp:e=>S2(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function fy(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function YN(e){return e==null||typeof e=="string"&&!e.trim()}const XN=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${A(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return ie(a,HN,t)},QN=p.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":i,autoFocus:s,autoWidth:a,children:l,className:c,defaultOpen:d,defaultValue:f,disabled:h,displayEmpty:b,error:y=!1,IconComponent:v,inputRef:C,labelId:g,MenuProps:m={},multiple:x,name:w,onBlur:k,onChange:P,onClose:R,onFocus:E,onOpen:j,open:T,readOnly:O,renderValue:M,SelectDisplayProps:I={},tabIndex:N,value:D,variant:z="standard"}=t,W=H(t,VN),[$,_]=sa({controlled:D,default:f,name:"Select"}),[F,G]=sa({controlled:T,default:d,name:"Select"}),X=p.useRef(null),ce=p.useRef(null),[Z,ue]=p.useState(null),{current:U}=p.useRef(T!=null),[ee,K]=p.useState(),Q=Ye(n,C),he=p.useCallback(ae=>{ce.current=ae,ae&&ue(ae)},[]),J=Z==null?void 0:Z.parentNode;p.useImperativeHandle(Q,()=>({focus:()=>{ce.current.focus()},node:X.current,value:$}),[$]),p.useEffect(()=>{d&&F&&Z&&!U&&(K(a?null:J.clientWidth),ce.current.focus())},[Z,a]),p.useEffect(()=>{s&&ce.current.focus()},[s]),p.useEffect(()=>{if(!g)return;const ae=ft(ce.current).getElementById(g);if(ae){const Te=()=>{getSelection().isCollapsed&&ce.current.focus()};return ae.addEventListener("click",Te),()=>{ae.removeEventListener("click",Te)}}},[g]);const fe=(ae,Te)=>{ae?j&&j(Te):R&&R(Te),U||(K(a?null:J.clientWidth),G(ae))},pe=ae=>{ae.button===0&&(ae.preventDefault(),ce.current.focus(),fe(!0,ae))},Se=ae=>{fe(!1,ae)},xe=p.Children.toArray(l),Ct=ae=>{const Te=xe.find(Y=>Y.props.value===ae.target.value);Te!==void 0&&(_(Te.props.value),P&&P(ae,Te))},Fe=ae=>Te=>{let Y;if(Te.currentTarget.hasAttribute("tabindex")){if(x){Y=Array.isArray($)?$.slice():[];const ne=$.indexOf(ae.props.value);ne===-1?Y.push(ae.props.value):Y.splice(ne,1)}else Y=ae.props.value;if(ae.props.onClick&&ae.props.onClick(Te),$!==Y&&(_(Y),P)){const ne=Te.nativeEvent||Te,Ce=new ne.constructor(ne.type,ne);Object.defineProperty(Ce,"target",{writable:!0,value:{value:Y,name:w}}),P(Ce,ae)}x||fe(!1,Te)}},ze=ae=>{O||[" ","ArrowUp","ArrowDown","Enter"].indexOf(ae.key)!==-1&&(ae.preventDefault(),fe(!0,ae))},pt=Z!==null&&F,Me=ae=>{!pt&&k&&(Object.defineProperty(ae,"target",{writable:!0,value:{value:$,name:w}}),k(ae))};delete W["aria-invalid"];let ke,ct;const He=[];let Ee=!1;(vc({value:$})||b)&&(M?ke=M($):Ee=!0);const ht=xe.map(ae=>{if(!p.isValidElement(ae))return null;let Te;if(x){if(!Array.isArray($))throw new Error(jo(2));Te=$.some(Y=>fy(Y,ae.props.value)),Te&&Ee&&He.push(ae.props.children)}else Te=fy($,ae.props.value),Te&&Ee&&(ct=ae.props.children);return p.cloneElement(ae,{"aria-selected":Te?"true":"false",onClick:Fe(ae),onKeyUp:Y=>{Y.key===" "&&Y.preventDefault(),ae.props.onKeyUp&&ae.props.onKeyUp(Y)},role:"option",selected:Te,value:void 0,"data-value":ae.props.value})});Ee&&(x?He.length===0?ke=null:ke=He.reduce((ae,Te,Y)=>(ae.push(Te),Y{const{classes:t}=e;return t},Sm={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Mt(e)&&e!=="variant",slot:"Root"},t6=B(ym,Sm)(""),n6=B(bm,Sm)(""),r6=B(gm,Sm)(""),Oa=p.forwardRef(function(t,n){const r=le({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:s={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:d=N3,id:f,input:h,inputProps:b,label:y,labelId:v,MenuProps:C,multiple:g=!1,native:m=!1,onClose:x,onOpen:w,open:k,renderValue:P,SelectDisplayProps:R,variant:E="outlined"}=r,j=H(r,JN),T=m?MN:QN,O=dr(),M=ao({props:r,muiFormControl:O,states:["variant","error"]}),I=M.variant||E,N=S({},r,{variant:I,classes:s}),D=e6(N),z=H(D,ZN),W=h||{standard:u.jsx(t6,{ownerState:N}),outlined:u.jsx(n6,{label:y,ownerState:N}),filled:u.jsx(r6,{ownerState:N})}[I],$=Ye(n,W.ref);return u.jsx(p.Fragment,{children:p.cloneElement(W,S({inputComponent:T,inputProps:S({children:i,error:M.error,IconComponent:d,variant:I,type:void 0,multiple:g},m?{id:f}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:v,MenuProps:C,onClose:x,onOpen:w,open:k,renderValue:P,SelectDisplayProps:S({id:f},R)},b,{classes:b?Ft(z,b.classes):z},h?h.props.inputProps:{})},(g&&m||c)&&I==="outlined"?{notched:!0}:{},{ref:$,className:V(W.props.className,a,D.root)},!h&&{variant:I},j))})});Oa.muiName="Select";function o6(e){return re("MuiSnackbarContent",e)}oe("MuiSnackbarContent",["root","message","action"]);const i6=["action","className","message","role"],s6=e=>{const{classes:t}=e;return ie({root:["root"],action:["action"],message:["message"]},o6,t)},a6=B(gn,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=l5(e.palette.background.default,t);return S({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),l6=B("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),c6=B("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),u6=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiSnackbarContent"}),{action:o,className:i,message:s,role:a="alert"}=r,l=H(r,i6),c=r,d=s6(c);return u.jsxs(a6,S({role:a,square:!0,elevation:6,className:V(d.root,i),ownerState:c,ref:n},l,{children:[u.jsx(l6,{className:d.message,ownerState:c,children:s}),o?u.jsx(c6,{className:d.action,ownerState:c,children:o}):null]}))});function d6(e){return re("MuiSnackbar",e)}oe("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const f6=["onEnter","onExited"],p6=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],h6=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${A(n.vertical)}${A(n.horizontal)}`]};return ie(r,d6,t)},py=B("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${A(n.anchorOrigin.vertical)}${A(n.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const n={left:"50%",right:"auto",transform:"translateX(-50%)"};return S({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:S({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&n,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),lo=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiSnackbar"}),o=io(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:a,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:d,className:f,ClickAwayListenerProps:h,ContentProps:b,disableWindowBlurListener:y=!1,message:v,open:C,TransitionComponent:g=ua,transitionDuration:m=i,TransitionProps:{onEnter:x,onExited:w}={}}=r,k=H(r.TransitionProps,f6),P=H(r,p6),R=S({},r,{anchorOrigin:{vertical:a,horizontal:l},autoHideDuration:c,disableWindowBlurListener:y,TransitionComponent:g,transitionDuration:m}),E=h6(R),{getRootProps:j,onClickAway:T}=a3(S({},R)),[O,M]=p.useState(!0),I=en({elementType:py,getSlotProps:j,externalForwardedProps:P,ownerState:R,additionalProps:{ref:n},className:[E.root,f]}),N=z=>{M(!0),w&&w(z)},D=(z,W)=>{M(!1),x&&x(z,W)};return!C&&O?null:u.jsx($_,S({onClickAway:T},h,{children:u.jsx(py,S({},I,{children:u.jsx(g,S({appear:!0,in:C,timeout:m,direction:a==="top"?"down":"up",onEnter:D,onExited:N},k,{children:d||u.jsx(u6,S({message:v,action:s},b))}))}))}))});function m6(e){return re("MuiTooltip",e)}const Ur=oe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),g6=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function v6(e){return Math.round(e*1e5)/1e5}const y6=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${A(i.split("-")[0])}`],arrow:["arrow"]};return ie(s,m6,t)},x6=B(B2,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>S({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Ur.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Ur.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Ur.arrow}`]:S({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Ur.arrow}`]:S({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),b6=B("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${A(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>S({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:je(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${v6(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Ur.popper}[data-popper-placement*="left"] &`]:S({transformOrigin:"right center"},t.isRtl?S({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):S({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Ur.popper}[data-popper-placement*="right"] &`]:S({transformOrigin:"left center"},t.isRtl?S({marginRight:"14px"},t.touch&&{marginRight:"24px"}):S({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Ur.popper}[data-popper-placement*="top"] &`]:S({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Ur.popper}[data-popper-placement*="bottom"] &`]:S({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),S6=B("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:je(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let il=!1;const hy=new Ra;let ps={x:0,y:0};function sl(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Hn=p.forwardRef(function(t,n){var r,o,i,s,a,l,c,d,f,h,b,y,v,C,g,m,x,w,k;const P=le({props:t,name:"MuiTooltip"}),{arrow:R=!1,children:E,components:j={},componentsProps:T={},describeChild:O=!1,disableFocusListener:M=!1,disableHoverListener:I=!1,disableInteractive:N=!1,disableTouchListener:D=!1,enterDelay:z=100,enterNextDelay:W=0,enterTouchDelay:$=700,followCursor:_=!1,id:F,leaveDelay:G=0,leaveTouchDelay:X=1500,onClose:ce,onOpen:Z,open:ue,placement:U="bottom",PopperComponent:ee,PopperProps:K={},slotProps:Q={},slots:he={},title:J,TransitionComponent:fe=ua,TransitionProps:pe}=P,Se=H(P,g6),xe=p.isValidElement(E)?E:u.jsx("span",{children:E}),Ct=io(),Fe=Pa(),[ze,pt]=p.useState(),[Me,ke]=p.useState(null),ct=p.useRef(!1),He=N||_,Ee=xo(),ht=xo(),yt=xo(),wt=xo(),[Re,se]=sa({controlled:ue,default:!1,name:"Tooltip",state:"open"});let tt=Re;const Ut=ka(F),tn=p.useRef(),ae=zt(()=>{tn.current!==void 0&&(document.body.style.WebkitUserSelect=tn.current,tn.current=void 0),wt.clear()});p.useEffect(()=>ae,[ae]);const Te=we=>{hy.clear(),il=!0,se(!0),Z&&!tt&&Z(we)},Y=zt(we=>{hy.start(800+G,()=>{il=!1}),se(!1),ce&&tt&&ce(we),Ee.start(Ct.transitions.duration.shortest,()=>{ct.current=!1})}),ne=we=>{ct.current&&we.type!=="touchstart"||(ze&&ze.removeAttribute("title"),ht.clear(),yt.clear(),z||il&&W?ht.start(il?W:z,()=>{Te(we)}):Te(we))},Ce=we=>{ht.clear(),yt.start(G,()=>{Y(we)})},{isFocusVisibleRef:Pe,onBlur:nt,onFocus:kt,ref:vn}=Kh(),[,_r]=p.useState(!1),An=we=>{nt(we),Pe.current===!1&&(_r(!1),Ce(we))},zo=we=>{ze||pt(we.currentTarget),kt(we),Pe.current===!0&&(_r(!0),ne(we))},gg=we=>{ct.current=!0;const nn=xe.props;nn.onTouchStart&&nn.onTouchStart(we)},zS=we=>{gg(we),yt.clear(),Ee.clear(),ae(),tn.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",wt.start($,()=>{document.body.style.WebkitUserSelect=tn.current,ne(we)})},DS=we=>{xe.props.onTouchEnd&&xe.props.onTouchEnd(we),ae(),yt.start(X,()=>{Y(we)})};p.useEffect(()=>{if(!tt)return;function we(nn){(nn.key==="Escape"||nn.key==="Esc")&&Y(nn)}return document.addEventListener("keydown",we),()=>{document.removeEventListener("keydown",we)}},[Y,tt]);const FS=Ye(xe.ref,vn,pt,n);!J&&J!==0&&(tt=!1);const Qu=p.useRef(),BS=we=>{const nn=xe.props;nn.onMouseMove&&nn.onMouseMove(we),ps={x:we.clientX,y:we.clientY},Qu.current&&Qu.current.update()},Gi={},Ju=typeof J=="string";O?(Gi.title=!tt&&Ju&&!I?J:null,Gi["aria-describedby"]=tt?Ut:null):(Gi["aria-label"]=Ju?J:null,Gi["aria-labelledby"]=tt&&!Ju?Ut:null);const zn=S({},Gi,Se,xe.props,{className:V(Se.className,xe.props.className),onTouchStart:gg,ref:FS},_?{onMouseMove:BS}:{}),Yi={};D||(zn.onTouchStart=zS,zn.onTouchEnd=DS),I||(zn.onMouseOver=sl(ne,zn.onMouseOver),zn.onMouseLeave=sl(Ce,zn.onMouseLeave),He||(Yi.onMouseOver=ne,Yi.onMouseLeave=Ce)),M||(zn.onFocus=sl(zo,zn.onFocus),zn.onBlur=sl(An,zn.onBlur),He||(Yi.onFocus=zo,Yi.onBlur=An));const WS=p.useMemo(()=>{var we;let nn=[{name:"arrow",enabled:!!Me,options:{element:Me,padding:4}}];return(we=K.popperOptions)!=null&&we.modifiers&&(nn=nn.concat(K.popperOptions.modifiers)),S({},K.popperOptions,{modifiers:nn})},[Me,K]),Xi=S({},P,{isRtl:Fe,arrow:R,disableInteractive:He,placement:U,PopperComponentProp:ee,touch:ct.current}),Zu=y6(Xi),vg=(r=(o=he.popper)!=null?o:j.Popper)!=null?r:x6,yg=(i=(s=(a=he.transition)!=null?a:j.Transition)!=null?s:fe)!=null?i:ua,xg=(l=(c=he.tooltip)!=null?c:j.Tooltip)!=null?l:b6,bg=(d=(f=he.arrow)!=null?f:j.Arrow)!=null?d:S6,US=ai(vg,S({},K,(h=Q.popper)!=null?h:T.popper,{className:V(Zu.popper,K==null?void 0:K.className,(b=(y=Q.popper)!=null?y:T.popper)==null?void 0:b.className)}),Xi),HS=ai(yg,S({},pe,(v=Q.transition)!=null?v:T.transition),Xi),VS=ai(xg,S({},(C=Q.tooltip)!=null?C:T.tooltip,{className:V(Zu.tooltip,(g=(m=Q.tooltip)!=null?m:T.tooltip)==null?void 0:g.className)}),Xi),qS=ai(bg,S({},(x=Q.arrow)!=null?x:T.arrow,{className:V(Zu.arrow,(w=(k=Q.arrow)!=null?k:T.arrow)==null?void 0:w.className)}),Xi);return u.jsxs(p.Fragment,{children:[p.cloneElement(xe,zn),u.jsx(vg,S({as:ee??B2,placement:U,anchorEl:_?{getBoundingClientRect:()=>({top:ps.y,left:ps.x,right:ps.x,bottom:ps.y,width:0,height:0})}:ze,popperRef:Qu,open:ze?tt:!1,id:Ut,transition:!0},Yi,US,{popperOptions:WS,children:({TransitionProps:we})=>u.jsx(yg,S({timeout:Ct.transitions.duration.shorter},we,HS,{children:u.jsxs(xg,S({},VS,{children:[J,R?u.jsx(bg,S({},qS,{ref:ke})):null]}))}))}))]})});function C6(e){return re("MuiSwitch",e)}const Lt=oe("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),w6=["className","color","edge","size","sx"],k6=zu(),R6=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:s}=e,a={root:["root",n&&`edge${A(n)}`,`size${A(r)}`],switchBase:["switchBase",`color${A(o)}`,i&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=ie(a,C6,t);return S({},t,l)},P6=B("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${A(n.edge)}`],t[`size${A(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Lt.thumb}`]:{width:16,height:16},[`& .${Lt.switchBase}`]:{padding:4,[`&.${Lt.checked}`]:{transform:"translateX(16px)"}}}}]}),E6=B(q2,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Lt.input}`]:t.input},n.color!=="default"&&t[`color${A(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Lt.checked}`]:{transform:"translateX(20px)"},[`&.${Lt.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Lt.checked} + .${Lt.track}`]:{opacity:.5},[`&.${Lt.disabled} + .${Lt.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Lt.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:je(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${Lt.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:je(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Lt.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?fc(e.palette[t].main,.62):dc(e.palette[t].main,.55)}`}},[`&.${Lt.checked} + .${Lt.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),$6=B("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),T6=B("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),_6=p.forwardRef(function(t,n){const r=k6({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:s=!1,size:a="medium",sx:l}=r,c=H(r,w6),d=S({},r,{color:i,edge:s,size:a}),f=R6(d),h=u.jsx(T6,{className:f.thumb,ownerState:d});return u.jsxs(P6,{className:V(f.root,o),sx:l,ownerState:d,children:[u.jsx(E6,S({type:"checkbox",icon:h,checkedIcon:h,ref:n,ownerState:d},c,{classes:S({},f,{root:f.switchBase})})),u.jsx($6,{className:f.track,ownerState:d})]})});function j6(e){return re("MuiTab",e)}const uo=oe("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),O6=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],I6=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:s,selected:a,disabled:l}=e,c={root:["root",i&&s&&"labelIcon",`textColor${A(n)}`,r&&"fullWidth",o&&"wrapped",a&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return ie(c,j6,t)},M6=B(kr,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${A(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>S({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${uo.iconWrapper}`]:S({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${uo.selected}`]:{opacity:1},[`&.${uo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${uo.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${uo.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${uo.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${uo.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),jl=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:s=!1,fullWidth:a,icon:l,iconPosition:c="top",indicator:d,label:f,onChange:h,onClick:b,onFocus:y,selected:v,selectionFollowsFocus:C,textColor:g="inherit",value:m,wrapped:x=!1}=r,w=H(r,O6),k=S({},r,{disabled:i,disableFocusRipple:s,selected:v,icon:!!l,iconPosition:c,label:!!f,fullWidth:a,textColor:g,wrapped:x}),P=I6(k),R=l&&f&&p.isValidElement(l)?p.cloneElement(l,{className:V(P.iconWrapper,l.props.className)}):l,E=T=>{!v&&h&&h(T,m),b&&b(T)},j=T=>{C&&!v&&h&&h(T,m),y&&y(T)};return u.jsxs(M6,S({focusRipple:!s,className:V(P.root,o),ref:n,role:"tab","aria-selected":v,disabled:i,onClick:E,onFocus:j,ownerState:k,tabIndex:v?0:-1},w,{children:[c==="top"||c==="start"?u.jsxs(p.Fragment,{children:[R,f]}):u.jsxs(p.Fragment,{children:[f,R]}),d]}))});function N6(e){return re("MuiToolbar",e)}oe("MuiToolbar",["root","gutters","regular","dense"]);const L6=["className","component","disableGutters","variant"],A6=e=>{const{classes:t,disableGutters:n,variant:r}=e;return ie({root:["root",!n&&"gutters",r]},N6,t)},z6=B("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>S({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),D6=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:s=!1,variant:a="regular"}=r,l=H(r,L6),c=S({},r,{component:i,disableGutters:s,variant:a}),d=A6(c);return u.jsx(z6,S({as:i,className:V(d.root,o),ref:n,ownerState:c},l))}),F6=Nt(u.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),B6=Nt(u.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function W6(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function U6(e,t,n,r={},o=()=>{}){const{ease:i=W6,duration:s=300}=r;let a=null;const l=t[e];let c=!1;const d=()=>{c=!0},f=h=>{if(c){o(new Error("Animation cancelled"));return}a===null&&(a=h);const b=Math.min(1,(h-a)/s);if(t[e]=i(b)*(n-l)+l,b>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(f)};return l===n?(o(new Error("Element already at target position")),d):(requestAnimationFrame(f),d)}const H6=["onChange"],V6={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function q6(e){const{onChange:t}=e,n=H(e,H6),r=p.useRef(),o=p.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return dn(()=>{const s=Hi(()=>{const l=r.current;i(),l!==r.current&&t(r.current)}),a=_n(o.current);return a.addEventListener("resize",s),()=>{s.clear(),a.removeEventListener("resize",s)}},[t]),p.useEffect(()=>{i(),t(r.current)},[t]),u.jsx("div",S({style:V6,ref:o},n))}function K6(e){return re("MuiTabScrollButton",e)}const G6=oe("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Y6=["className","slots","slotProps","direction","orientation","disabled"],X6=e=>{const{classes:t,orientation:n,disabled:r}=e;return ie({root:["root",n,r&&"disabled"]},K6,t)},Q6=B(kr,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>S({width:40,flexShrink:0,opacity:.8,[`&.${G6.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),J6=p.forwardRef(function(t,n){var r,o;const i=le({props:t,name:"MuiTabScrollButton"}),{className:s,slots:a={},slotProps:l={},direction:c}=i,d=H(i,Y6),f=Pa(),h=S({isRtl:f},i),b=X6(h),y=(r=a.StartScrollButtonIcon)!=null?r:F6,v=(o=a.EndScrollButtonIcon)!=null?o:B6,C=en({elementType:y,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),g=en({elementType:v,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return u.jsx(Q6,S({component:"div",className:V(b.root,s),ref:n,role:null,ownerState:h,tabIndex:null},d,{children:c==="left"?u.jsx(y,S({},C)):u.jsx(v,S({},g))}))});function Z6(e){return re("MuiTabs",e)}const Kd=oe("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),eL=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],my=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,gy=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,al=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const i=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||i)o=n(e,o);else{o.focus();return}}},tL=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:s,scrollButtonsHideMobile:a,classes:l}=e;return ie({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},Z6,l)},nL=B("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Kd.scrollButtons}`]:t.scrollButtons},{[`& .${Kd.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>S({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Kd.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),rL=B("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>S({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),oL=B("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>S({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),iL=B("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>S({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),sL=B(q6)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),vy={},iS=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiTabs"}),o=io(),i=Pa(),{"aria-label":s,"aria-labelledby":a,action:l,centered:c=!1,children:d,className:f,component:h="div",allowScrollButtonsMobile:b=!1,indicatorColor:y="primary",onChange:v,orientation:C="horizontal",ScrollButtonComponent:g=J6,scrollButtons:m="auto",selectionFollowsFocus:x,slots:w={},slotProps:k={},TabIndicatorProps:P={},TabScrollButtonProps:R={},textColor:E="primary",value:j,variant:T="standard",visibleScrollbar:O=!1}=r,M=H(r,eL),I=T==="scrollable",N=C==="vertical",D=N?"scrollTop":"scrollLeft",z=N?"top":"left",W=N?"bottom":"right",$=N?"clientHeight":"clientWidth",_=N?"height":"width",F=S({},r,{component:h,allowScrollButtonsMobile:b,indicatorColor:y,orientation:C,vertical:N,scrollButtons:m,textColor:E,variant:T,visibleScrollbar:O,fixed:!I,hideScrollbar:I&&!O,scrollableX:I&&!N,scrollableY:I&&N,centered:c&&!I,scrollButtonsHideMobile:!b}),G=tL(F),X=en({elementType:w.StartScrollButtonIcon,externalSlotProps:k.startScrollButtonIcon,ownerState:F}),ce=en({elementType:w.EndScrollButtonIcon,externalSlotProps:k.endScrollButtonIcon,ownerState:F}),[Z,ue]=p.useState(!1),[U,ee]=p.useState(vy),[K,Q]=p.useState(!1),[he,J]=p.useState(!1),[fe,pe]=p.useState(!1),[Se,xe]=p.useState({overflow:"hidden",scrollbarWidth:0}),Ct=new Map,Fe=p.useRef(null),ze=p.useRef(null),pt=()=>{const Y=Fe.current;let ne;if(Y){const Pe=Y.getBoundingClientRect();ne={clientWidth:Y.clientWidth,scrollLeft:Y.scrollLeft,scrollTop:Y.scrollTop,scrollLeftNormalized:A4(Y,i?"rtl":"ltr"),scrollWidth:Y.scrollWidth,top:Pe.top,bottom:Pe.bottom,left:Pe.left,right:Pe.right}}let Ce;if(Y&&j!==!1){const Pe=ze.current.children;if(Pe.length>0){const nt=Pe[Ct.get(j)];Ce=nt?nt.getBoundingClientRect():null}}return{tabsMeta:ne,tabMeta:Ce}},Me=zt(()=>{const{tabsMeta:Y,tabMeta:ne}=pt();let Ce=0,Pe;if(N)Pe="top",ne&&Y&&(Ce=ne.top-Y.top+Y.scrollTop);else if(Pe=i?"right":"left",ne&&Y){const kt=i?Y.scrollLeftNormalized+Y.clientWidth-Y.scrollWidth:Y.scrollLeft;Ce=(i?-1:1)*(ne[Pe]-Y[Pe]+kt)}const nt={[Pe]:Ce,[_]:ne?ne[_]:0};if(isNaN(U[Pe])||isNaN(U[_]))ee(nt);else{const kt=Math.abs(U[Pe]-nt[Pe]),vn=Math.abs(U[_]-nt[_]);(kt>=1||vn>=1)&&ee(nt)}}),ke=(Y,{animation:ne=!0}={})=>{ne?U6(D,Fe.current,Y,{duration:o.transitions.duration.standard}):Fe.current[D]=Y},ct=Y=>{let ne=Fe.current[D];N?ne+=Y:(ne+=Y*(i?-1:1),ne*=i&&a2()==="reverse"?-1:1),ke(ne)},He=()=>{const Y=Fe.current[$];let ne=0;const Ce=Array.from(ze.current.children);for(let Pe=0;PeY){Pe===0&&(ne=Y);break}ne+=nt[$]}return ne},Ee=()=>{ct(-1*He())},ht=()=>{ct(He())},yt=p.useCallback(Y=>{xe({overflow:null,scrollbarWidth:Y})},[]),wt=()=>{const Y={};Y.scrollbarSizeListener=I?u.jsx(sL,{onChange:yt,className:V(G.scrollableX,G.hideScrollbar)}):null;const Ce=I&&(m==="auto"&&(K||he)||m===!0);return Y.scrollButtonStart=Ce?u.jsx(g,S({slots:{StartScrollButtonIcon:w.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:X},orientation:C,direction:i?"right":"left",onClick:Ee,disabled:!K},R,{className:V(G.scrollButtons,R.className)})):null,Y.scrollButtonEnd=Ce?u.jsx(g,S({slots:{EndScrollButtonIcon:w.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:ce},orientation:C,direction:i?"left":"right",onClick:ht,disabled:!he},R,{className:V(G.scrollButtons,R.className)})):null,Y},Re=zt(Y=>{const{tabsMeta:ne,tabMeta:Ce}=pt();if(!(!Ce||!ne)){if(Ce[z]ne[W]){const Pe=ne[D]+(Ce[W]-ne[W]);ke(Pe,{animation:Y})}}}),se=zt(()=>{I&&m!==!1&&pe(!fe)});p.useEffect(()=>{const Y=Hi(()=>{Fe.current&&Me()});let ne;const Ce=kt=>{kt.forEach(vn=>{vn.removedNodes.forEach(_r=>{var An;(An=ne)==null||An.unobserve(_r)}),vn.addedNodes.forEach(_r=>{var An;(An=ne)==null||An.observe(_r)})}),Y(),se()},Pe=_n(Fe.current);Pe.addEventListener("resize",Y);let nt;return typeof ResizeObserver<"u"&&(ne=new ResizeObserver(Y),Array.from(ze.current.children).forEach(kt=>{ne.observe(kt)})),typeof MutationObserver<"u"&&(nt=new MutationObserver(Ce),nt.observe(ze.current,{childList:!0})),()=>{var kt,vn;Y.clear(),Pe.removeEventListener("resize",Y),(kt=nt)==null||kt.disconnect(),(vn=ne)==null||vn.disconnect()}},[Me,se]),p.useEffect(()=>{const Y=Array.from(ze.current.children),ne=Y.length;if(typeof IntersectionObserver<"u"&&ne>0&&I&&m!==!1){const Ce=Y[0],Pe=Y[ne-1],nt={root:Fe.current,threshold:.99},kt=zo=>{Q(!zo[0].isIntersecting)},vn=new IntersectionObserver(kt,nt);vn.observe(Ce);const _r=zo=>{J(!zo[0].isIntersecting)},An=new IntersectionObserver(_r,nt);return An.observe(Pe),()=>{vn.disconnect(),An.disconnect()}}},[I,m,fe,d==null?void 0:d.length]),p.useEffect(()=>{ue(!0)},[]),p.useEffect(()=>{Me()}),p.useEffect(()=>{Re(vy!==U)},[Re,U]),p.useImperativeHandle(l,()=>({updateIndicator:Me,updateScrollButtons:se}),[Me,se]);const tt=u.jsx(iL,S({},P,{className:V(G.indicator,P.className),ownerState:F,style:S({},U,P.style)}));let Ut=0;const tn=p.Children.map(d,Y=>{if(!p.isValidElement(Y))return null;const ne=Y.props.value===void 0?Ut:Y.props.value;Ct.set(ne,Ut);const Ce=ne===j;return Ut+=1,p.cloneElement(Y,S({fullWidth:T==="fullWidth",indicator:Ce&&!Z&&tt,selected:Ce,selectionFollowsFocus:x,onChange:v,textColor:E,value:ne},Ut===1&&j===!1&&!Y.props.tabIndex?{tabIndex:0}:{}))}),ae=Y=>{const ne=ze.current,Ce=ft(ne).activeElement;if(Ce.getAttribute("role")!=="tab")return;let nt=C==="horizontal"?"ArrowLeft":"ArrowUp",kt=C==="horizontal"?"ArrowRight":"ArrowDown";switch(C==="horizontal"&&i&&(nt="ArrowRight",kt="ArrowLeft"),Y.key){case nt:Y.preventDefault(),al(ne,Ce,gy);break;case kt:Y.preventDefault(),al(ne,Ce,my);break;case"Home":Y.preventDefault(),al(ne,null,my);break;case"End":Y.preventDefault(),al(ne,null,gy);break}},Te=wt();return u.jsxs(nL,S({className:V(G.root,f),ownerState:F,ref:n,as:h},M,{children:[Te.scrollButtonStart,Te.scrollbarSizeListener,u.jsxs(rL,{className:G.scroller,ownerState:F,style:{overflow:Se.overflow,[N?`margin${i?"Left":"Right"}`:"marginBottom"]:O?void 0:-Se.scrollbarWidth},ref:Fe,children:[u.jsx(oL,{"aria-label":s,"aria-labelledby":a,"aria-orientation":C==="vertical"?"vertical":null,className:G.flexContainer,ownerState:F,onKeyDown:ae,ref:ze,role:"tablist",children:tn}),Z&&tt]}),Te.scrollButtonEnd]}))});function aL(e){return re("MuiTextField",e)}oe("MuiTextField",["root"]);const lL=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],cL={standard:ym,filled:gm,outlined:bm},uL=e=>{const{classes:t}=e;return ie({root:["root"]},aL,t)},dL=B(Gu,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),qe=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:s,className:a,color:l="primary",defaultValue:c,disabled:d=!1,error:f=!1,FormHelperTextProps:h,fullWidth:b=!1,helperText:y,id:v,InputLabelProps:C,inputProps:g,InputProps:m,inputRef:x,label:w,maxRows:k,minRows:P,multiline:R=!1,name:E,onBlur:j,onChange:T,onFocus:O,placeholder:M,required:I=!1,rows:N,select:D=!1,SelectProps:z,type:W,value:$,variant:_="outlined"}=r,F=H(r,lL),G=S({},r,{autoFocus:i,color:l,disabled:d,error:f,fullWidth:b,multiline:R,required:I,select:D,variant:_}),X=uL(G),ce={};_==="outlined"&&(C&&typeof C.shrink<"u"&&(ce.notched=C.shrink),ce.label=w),D&&((!z||!z.native)&&(ce.id=void 0),ce["aria-describedby"]=void 0);const Z=ka(v),ue=y&&Z?`${Z}-helper-text`:void 0,U=w&&Z?`${Z}-label`:void 0,ee=cL[_],K=u.jsx(ee,S({"aria-describedby":ue,autoComplete:o,autoFocus:i,defaultValue:c,fullWidth:b,multiline:R,name:E,rows:N,maxRows:k,minRows:P,type:W,value:$,id:Z,inputRef:x,onBlur:j,onChange:T,onFocus:O,placeholder:M,inputProps:g},ce,m));return u.jsxs(dL,S({className:V(X.root,a),disabled:d,error:f,fullWidth:b,ref:n,required:I,color:l,variant:_,ownerState:G},F,{children:[w!=null&&w!==""&&u.jsx(Yu,S({htmlFor:Z,id:U},C,{children:w})),D?u.jsx(Oa,S({"aria-describedby":ue,id:Z,labelId:U,value:$,input:K},z,{children:s})):K,y&&u.jsx(cM,S({id:ue},h,{children:y}))]}))});var Cm={},Gd={};const fL=Pr(hT);var yy;function ge(){return yy||(yy=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=fL}(Gd)),Gd}var pL=de;Object.defineProperty(Cm,"__esModule",{value:!0});var Ki=Cm.default=void 0,hL=pL(ge()),mL=u;Ki=Cm.default=(0,hL.default)((0,mL.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");var wm={},gL=de;Object.defineProperty(wm,"__esModule",{value:!0});var km=wm.default=void 0,vL=gL(ge()),yL=u;km=wm.default=(0,vL.default)((0,yL.jsx)("path",{d:"M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3m5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72z"}),"Mic");var Rm={},xL=de;Object.defineProperty(Rm,"__esModule",{value:!0});var Pm=Rm.default=void 0,bL=xL(ge()),SL=u;Pm=Rm.default=(0,bL.default)((0,SL.jsx)("path",{d:"M19 11h-1.7c0 .74-.16 1.43-.43 2.05l1.23 1.23c.56-.98.9-2.09.9-3.28m-4.02.17c0-.06.02-.11.02-.17V5c0-1.66-1.34-3-3-3S9 3.34 9 5v.18zM4.27 3 3 4.27l6.01 6.01V11c0 1.66 1.33 3 2.99 3 .22 0 .44-.03.65-.08l1.66 1.66c-.71.33-1.5.52-2.31.52-2.76 0-5.3-2.1-5.3-5.1H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c.91-.13 1.77-.45 2.54-.9L19.73 21 21 19.73z"}),"MicOff");var Em={},CL=de;Object.defineProperty(Em,"__esModule",{value:!0});var Xu=Em.default=void 0,wL=CL(ge()),kL=u;Xu=Em.default=(0,wL.default)((0,kL.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"Person");var $m={},RL=de;Object.defineProperty($m,"__esModule",{value:!0});var Sc=$m.default=void 0,PL=RL(ge()),EL=u;Sc=$m.default=(0,PL.default)((0,EL.jsx)("path",{d:"M3 9v6h4l5 5V4L7 9zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02M14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77"}),"VolumeUp");var Tm={},$L=de;Object.defineProperty(Tm,"__esModule",{value:!0});var Cc=Tm.default=void 0,TL=$L(ge()),_L=u;Cc=Tm.default=(0,TL.default)((0,_L.jsx)("path",{d:"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63m2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71M4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9zM12 4 9.91 6.09 12 8.18z"}),"VolumeOff");var _m={},jL=de;Object.defineProperty(_m,"__esModule",{value:!0});var jm=_m.default=void 0,OL=jL(ge()),IL=u;jm=_m.default=(0,OL.default)((0,IL.jsx)("path",{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-1 9h-4v4h-2v-4H9V9h4V5h2v4h4z"}),"LibraryAdd");const gi="/assets/Aria-BMTE8U_Y.jpg",ML=()=>u.jsxs(Ke,{sx:{display:"flex",alignItems:"center",color:"text.secondary"},children:[u.jsx(yr,{src:gi,sx:{width:24,height:24,marginRight:1},alt:"Aria"}),u.jsxs("div",{style:{display:"flex"},children:[u.jsx("div",{style:{animation:"blink 1.4s infinite",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),u.jsx("div",{style:{animation:"blink 1.4s infinite 0.2s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),u.jsx("div",{style:{animation:"blink 1.4s infinite 0.4s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor"}})]})]}),NL=()=>{const{user:e,voiceEnabled:t,setVoiceEnabled:n}=p.useContext(lr),r=e==null?void 0:e.userId,[o,i]=p.useState(null),[s,a]=p.useState(0),[l,c]=p.useState(""),[d,f]=p.useState([]),[h,b]=p.useState(!1),[y,v]=p.useState(null),C=p.useRef([]),[g,m]=p.useState(!1),[x,w]=p.useState(""),[k,P]=p.useState(!1),[R,E]=p.useState(!1),[j,T]=p.useState(""),[O,M]=p.useState("info"),[I,N]=p.useState(null),D=U=>{U.preventDefault(),n(!t)},z=U=>{if(!t||U===I){N(null),window.speechSynthesis.cancel();return}const ee=window.speechSynthesis,K=new SpeechSynthesisUtterance(U),Q=()=>{const he=ee.getVoices();console.log(he.map(fe=>`${fe.name} - ${fe.lang} - ${fe.gender}`));const J=he.find(fe=>fe.name.includes("Microsoft Zira - English (United States)"));J?K.voice=J:console.log("No female voice found"),K.onend=()=>{N(null)},N(U),ee.speak(K)};ee.getVoices().length===0?ee.onvoiceschanged=Q:Q()},W=p.useCallback(async()=>{if(r){m(!0),P(!0);try{const U=await fetch(`/api/ai/mental_health/welcome/${r}`,{method:"POST",headers:{"Content-Type":"application/json"}}),ee=await U.json();console.log(ee),U.ok?(w(ee.message),t&&ee.message&&z(ee.message),i(ee.chat_id),console.log(ee.chat_id)):(console.error("Failed to fetch welcome message:",ee),w("Error fetching welcome message."))}catch(U){console.error("Network or server error:",U)}finally{m(!1),P(!1)}}},[r]);p.useEffect(()=>{W()},[]);const $=(U,ee)=>{ee!=="clickaway"&&E(!1)},_=p.useCallback(async()=>{if(o!==null){m(!0);try{const U=await fetch(`/api/ai/mental_health/finalize/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"}}),ee=await U.json();U.ok?(T("Chat finalized successfully"),M("success"),i(null),a(0),f([]),W()):(T("Failed to finalize chat"),M("error"))}catch{T("Error finalizing chat"),M("error")}finally{m(!1),E(!0)}}},[r,o,W]),F=p.useCallback(async()=>{if(!(!l.trim()||o===void 0)){console.log(o),m(!0);try{const U=JSON.stringify({prompt:l,turn_id:s}),ee=await fetch(`/api/ai/mental_health/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"},body:U}),K=await ee.json();console.log(K),ee.ok?(f(Q=>[...Q,{message:l,sender:"user"},{message:K,sender:"agent"}]),t&&K&&z(K),a(Q=>Q+1),c("")):(console.error("Failed to send message:",K.error||"Unknown error occurred"),T(K.error||"An error occurred while sending the message."),M("error"),E(!0))}catch(U){console.error("Failed to send message:",U),T("Network or server error occurred."),M("error"),E(!0)}finally{m(!1)}}},[l,r,o,s]),G=()=>{navigator.mediaDevices.getUserMedia({audio:!0}).then(U=>{C.current=[];const ee={mimeType:"audio/webm; codecs=opus"},K=new MediaRecorder(U,ee);K.ondataavailable=Q=>{console.log("Data available:",Q.data.size),C.current.push(Q.data)},K.start(),v(K),b(!0)}).catch(console.error)},X=()=>{y&&(y.onstop=()=>{ce(C.current),b(!1),v(null)},y.stop())},ce=U=>{console.log("Audio chunks size:",U.reduce((Q,he)=>Q+he.size,0));const ee=new Blob(U,{type:"audio/webm; codecs=opus"});if(ee.size===0){console.error("Audio Blob is empty");return}console.log(`Sending audio blob of size: ${ee.size} bytes`);const K=new FormData;K.append("audio",ee),m(!0),ve.post("/api/ai/mental_health/voice-to-text",K,{headers:{"Content-Type":"multipart/form-data"}}).then(Q=>{const{message:he}=Q.data;c(he),F()}).catch(Q=>{console.error("Error uploading audio:",Q),E(!0),T("Error processing voice input: "+Q.message),M("error")}).finally(()=>{m(!1)})},Z=p.useCallback(U=>{const ee=U.target.value;ee.split(/\s+/).length>200?(c(Q=>Q.split(/\s+/).slice(0,200).join(" ")),T("Word limit reached. Only 200 words allowed."),M("warning"),E(!0)):c(ee)},[]),ue=U=>U===I?u.jsx(Cc,{}):u.jsx(Sc,{});return u.jsxs(u.Fragment,{children:[u.jsx("style",{children:` @keyframes blink { 0%, 100% { opacity: 0; } 50% { opacity: 1; } diff --git a/client/dist/index.html b/client/dist/index.html index 021708fa..a8609cf1 100644 --- a/client/dist/index.html +++ b/client/dist/index.html @@ -10,7 +10,7 @@ content="Web site created using create-react-app" /> Mental Health App - + diff --git a/client/src/Components/chatComponent.jsx b/client/src/Components/chatComponent.jsx index cb933470..e83f9e32 100644 --- a/client/src/Components/chatComponent.jsx +++ b/client/src/Components/chatComponent.jsx @@ -211,7 +211,7 @@ const ChatComponent = () => { navigator.mediaDevices.getUserMedia({ audio: true }) .then(stream => { audioChunksRef.current = []; // Clear the ref at the start of recording - const options = { mimeType: 'audio/webm' }; + const options = { mimeType: 'audio/webm; codecs=opus' }; const recorder = new MediaRecorder(stream, options); recorder.ondataavailable = (e) => { console.log('Data available:', e.data.size); // Log size to check if data is present @@ -238,7 +238,7 @@ const ChatComponent = () => { const sendAudioToServer = chunks => { console.log('Audio chunks size:', chunks.reduce((sum, chunk) => sum + chunk.size, 0)); // Log total size of chunks - const audioBlob = new Blob(chunks, { 'type': 'audio/webm' }); + const audioBlob = new Blob(chunks, { 'type': 'audio/webm; codecs=opus' }); if (audioBlob.size === 0) { console.error('Audio Blob is empty'); return; From 925e836fdb4b0509988cd6a5c97a91f4224111e9 Mon Sep 17 00:00:00 2001 From: DHRUMIL PATEL <123137675+dhrumilp12@users.noreply.github.com> Date: Tue, 25 Jun 2024 16:15:19 -0400 Subject: [PATCH 27/38] mic. --- client/dist/assets/index-CJY1pBHy.js | 224 ----------- client/dist/assets/index-PlwwHYOf.js | 489 ++++++++++++++++++++++++ client/dist/index.html | 2 +- client/package-lock.json | 6 + client/package.json | 1 + client/src/Components/chatComponent.jsx | 28 +- 6 files changed, 518 insertions(+), 232 deletions(-) delete mode 100644 client/dist/assets/index-CJY1pBHy.js create mode 100644 client/dist/assets/index-PlwwHYOf.js diff --git a/client/dist/assets/index-CJY1pBHy.js b/client/dist/assets/index-CJY1pBHy.js deleted file mode 100644 index 4e06af4a..00000000 --- a/client/dist/assets/index-CJY1pBHy.js +++ /dev/null @@ -1,224 +0,0 @@ -function KS(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Pp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Pr(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var $y={exports:{}},kc={},Ty={exports:{}},be={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var fa=Symbol.for("react.element"),GS=Symbol.for("react.portal"),YS=Symbol.for("react.fragment"),XS=Symbol.for("react.strict_mode"),QS=Symbol.for("react.profiler"),JS=Symbol.for("react.provider"),ZS=Symbol.for("react.context"),eC=Symbol.for("react.forward_ref"),tC=Symbol.for("react.suspense"),nC=Symbol.for("react.memo"),rC=Symbol.for("react.lazy"),Sg=Symbol.iterator;function oC(e){return e===null||typeof e!="object"?null:(e=Sg&&e[Sg]||e["@@iterator"],typeof e=="function"?e:null)}var _y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},jy=Object.assign,Oy={};function Ii(e,t,n){this.props=e,this.context=t,this.refs=Oy,this.updater=n||_y}Ii.prototype.isReactComponent={};Ii.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ii.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Iy(){}Iy.prototype=Ii.prototype;function Ep(e,t,n){this.props=e,this.context=t,this.refs=Oy,this.updater=n||_y}var $p=Ep.prototype=new Iy;$p.constructor=Ep;jy($p,Ii.prototype);$p.isPureReactComponent=!0;var Cg=Array.isArray,My=Object.prototype.hasOwnProperty,Tp={current:null},Ny={key:!0,ref:!0,__self:!0,__source:!0};function Ly(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)My.call(t,r)&&!Ny.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,X=$[G];if(0>>1;Go(ue,F))Uo(ee,ue)?($[G]=ee,$[U]=F,G=U):($[G]=ue,$[Z]=F,G=Z);else if(Uo(ee,F))$[G]=ee,$[U]=F,G=U;else break e}}return _}function o($,_){var F=$.sortIndex-_.sortIndex;return F!==0?F:$.id-_.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],c=[],d=1,f=null,h=3,b=!1,y=!1,v=!1,C=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x($){for(var _=n(c);_!==null;){if(_.callback===null)r(c);else if(_.startTime<=$)r(c),_.sortIndex=_.expirationTime,t(l,_);else break;_=n(c)}}function w($){if(v=!1,x($),!y)if(n(l)!==null)y=!0,z(k);else{var _=n(c);_!==null&&W(w,_.startTime-$)}}function k($,_){y=!1,v&&(v=!1,g(E),E=-1),b=!0;var F=h;try{for(x(_),f=n(l);f!==null&&(!(f.expirationTime>_)||$&&!O());){var G=f.callback;if(typeof G=="function"){f.callback=null,h=f.priorityLevel;var X=G(f.expirationTime<=_);_=e.unstable_now(),typeof X=="function"?f.callback=X:f===n(l)&&r(l),x(_)}else r(l);f=n(l)}if(f!==null)var ce=!0;else{var Z=n(c);Z!==null&&W(w,Z.startTime-_),ce=!1}return ce}finally{f=null,h=F,b=!1}}var P=!1,R=null,E=-1,j=5,T=-1;function O(){return!(e.unstable_now()-T$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function($){switch(h){case 1:case 2:case 3:var _=3;break;default:_=h}var F=h;h=_;try{return $()}finally{h=F}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,_){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var F=h;h=$;try{return _()}finally{h=F}},e.unstable_scheduleCallback=function($,_,F){var G=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0G?($.sortIndex=F,t(c,$),n(l)===null&&$===n(c)&&(v?(g(E),E=-1):v=!0,W(w,F-G))):($.sortIndex=X,t(l,$),y||b||(y=!0,z(k))),$},e.unstable_shouldYield=O,e.unstable_wrapCallback=function($){var _=h;return function(){var F=h;h=_;try{return $.apply(this,arguments)}finally{h=F}}}})(By);Fy.exports=By;var mC=Fy.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var gC=p,un=mC;function q(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zd=Object.prototype.hasOwnProperty,vC=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,kg={},Rg={};function yC(e){return Zd.call(Rg,e)?!0:Zd.call(kg,e)?!1:vC.test(e)?Rg[e]=!0:(kg[e]=!0,!1)}function xC(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function bC(e,t,n,r){if(t===null||typeof t>"u"||xC(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Wt(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var $t={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){$t[e]=new Wt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];$t[t]=new Wt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){$t[e]=new Wt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){$t[e]=new Wt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){$t[e]=new Wt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){$t[e]=new Wt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){$t[e]=new Wt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){$t[e]=new Wt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){$t[e]=new Wt(e,5,!1,e.toLowerCase(),null,!1,!1)});var jp=/[\-:]([a-z])/g;function Op(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(jp,Op);$t[t]=new Wt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(jp,Op);$t[t]=new Wt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(jp,Op);$t[t]=new Wt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){$t[e]=new Wt(e,1,!1,e.toLowerCase(),null,!1,!1)});$t.xlinkHref=new Wt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){$t[e]=new Wt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ip(e,t,n,r){var o=$t.hasOwnProperty(t)?$t[t]:null;(o!==null?o.type!==0:r||!(2a||o[s]!==i[a]){var l=` -`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{nd=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ms(e):""}function SC(e){switch(e.tag){case 5:return ms(e.type);case 16:return ms("Lazy");case 13:return ms("Suspense");case 19:return ms("SuspenseList");case 0:case 2:case 15:return e=rd(e.type,!1),e;case 11:return e=rd(e.type.render,!1),e;case 1:return e=rd(e.type,!0),e;default:return""}}function rf(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Xo:return"Fragment";case Yo:return"Portal";case ef:return"Profiler";case Mp:return"StrictMode";case tf:return"Suspense";case nf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Hy:return(e.displayName||"Context")+".Consumer";case Uy:return(e._context.displayName||"Context")+".Provider";case Np:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Lp:return t=e.displayName||null,t!==null?t:rf(e.type)||"Memo";case Lr:t=e._payload,e=e._init;try{return rf(e(t))}catch{}}return null}function CC(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return rf(t);case 8:return t===Mp?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Zr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function qy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function wC(e){var t=qy(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Na(e){e._valueTracker||(e._valueTracker=wC(e))}function Ky(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=qy(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Il(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function of(e,t){var n=t.checked;return et({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Eg(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Zr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Gy(e,t){t=t.checked,t!=null&&Ip(e,"checked",t,!1)}function sf(e,t){Gy(e,t);var n=Zr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?af(e,t.type,n):t.hasOwnProperty("defaultValue")&&af(e,t.type,Zr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function $g(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function af(e,t,n){(t!=="number"||Il(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var gs=Array.isArray;function li(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=La.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function As(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ss={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},kC=["Webkit","ms","Moz","O"];Object.keys(Ss).forEach(function(e){kC.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ss[t]=Ss[e]})});function Jy(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ss.hasOwnProperty(e)&&Ss[e]?(""+t).trim():t+"px"}function Zy(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Jy(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var RC=et({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function uf(e,t){if(t){if(RC[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(q(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(q(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(q(61))}if(t.style!=null&&typeof t.style!="object")throw Error(q(62))}}function df(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ff=null;function Ap(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var pf=null,ci=null,ui=null;function jg(e){if(e=ma(e)){if(typeof pf!="function")throw Error(q(280));var t=e.stateNode;t&&(t=Tc(t),pf(e.stateNode,e.type,t))}}function e1(e){ci?ui?ui.push(e):ui=[e]:ci=e}function t1(){if(ci){var e=ci,t=ui;if(ui=ci=null,jg(e),t)for(e=0;e>>=0,e===0?32:31-(LC(e)/AC|0)|0}var Aa=64,za=4194304;function vs(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Al(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=vs(a):(i&=s,i!==0&&(r=vs(i)))}else s=n&~o,s!==0?r=vs(s):i!==0&&(r=vs(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function pa(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Vn(t),e[t]=n}function BC(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=ws),Fg=" ",Bg=!1;function S1(e,t){switch(e){case"keyup":return mw.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function C1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Qo=!1;function vw(e,t){switch(e){case"compositionend":return C1(t);case"keypress":return t.which!==32?null:(Bg=!0,Fg);case"textInput":return e=t.data,e===Fg&&Bg?null:e;default:return null}}function yw(e,t){if(Qo)return e==="compositionend"||!Vp&&S1(e,t)?(e=x1(),pl=Wp=Fr=null,Qo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Vg(n)}}function P1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?P1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function E1(){for(var e=window,t=Il();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Il(e.document)}return t}function qp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Ew(e){var t=E1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&P1(n.ownerDocument.documentElement,n)){if(r!==null&&qp(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=qg(n,i);var s=qg(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Jo=null,xf=null,Rs=null,bf=!1;function Kg(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;bf||Jo==null||Jo!==Il(r)||(r=Jo,"selectionStart"in r&&qp(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Rs&&Us(Rs,r)||(Rs=r,r=Fl(xf,"onSelect"),0ti||(e.current=Pf[ti],Pf[ti]=null,ti--)}function Be(e,t){ti++,Pf[ti]=e.current,e.current=t}var eo={},It=no(eo),Kt=no(!1),Ro=eo;function yi(e,t){var n=e.type.contextTypes;if(!n)return eo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Gt(e){return e=e.childContextTypes,e!=null}function Wl(){Ue(Kt),Ue(It)}function ev(e,t,n){if(It.current!==eo)throw Error(q(168));Be(It,t),Be(Kt,n)}function L1(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(q(108,CC(e)||"Unknown",o));return et({},n,r)}function Ul(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||eo,Ro=It.current,Be(It,e),Be(Kt,Kt.current),!0}function tv(e,t,n){var r=e.stateNode;if(!r)throw Error(q(169));n?(e=L1(e,t,Ro),r.__reactInternalMemoizedMergedChildContext=e,Ue(Kt),Ue(It),Be(It,e)):Ue(Kt),Be(Kt,n)}var hr=null,_c=!1,vd=!1;function A1(e){hr===null?hr=[e]:hr.push(e)}function Dw(e){_c=!0,A1(e)}function ro(){if(!vd&&hr!==null){vd=!0;var e=0,t=Ne;try{var n=hr;for(Ne=1;e>=s,o-=s,gr=1<<32-Vn(t)+o|n<E?(j=R,R=null):j=R.sibling;var T=h(g,R,x[E],w);if(T===null){R===null&&(R=j);break}e&&R&&T.alternate===null&&t(g,R),m=i(T,m,E),P===null?k=T:P.sibling=T,P=T,R=j}if(E===x.length)return n(g,R),Ge&&fo(g,E),k;if(R===null){for(;EE?(j=R,R=null):j=R.sibling;var O=h(g,R,T.value,w);if(O===null){R===null&&(R=j);break}e&&R&&O.alternate===null&&t(g,R),m=i(O,m,E),P===null?k=O:P.sibling=O,P=O,R=j}if(T.done)return n(g,R),Ge&&fo(g,E),k;if(R===null){for(;!T.done;E++,T=x.next())T=f(g,T.value,w),T!==null&&(m=i(T,m,E),P===null?k=T:P.sibling=T,P=T);return Ge&&fo(g,E),k}for(R=r(g,R);!T.done;E++,T=x.next())T=b(R,g,E,T.value,w),T!==null&&(e&&T.alternate!==null&&R.delete(T.key===null?E:T.key),m=i(T,m,E),P===null?k=T:P.sibling=T,P=T);return e&&R.forEach(function(M){return t(g,M)}),Ge&&fo(g,E),k}function C(g,m,x,w){if(typeof x=="object"&&x!==null&&x.type===Xo&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Ma:e:{for(var k=x.key,P=m;P!==null;){if(P.key===k){if(k=x.type,k===Xo){if(P.tag===7){n(g,P.sibling),m=o(P,x.props.children),m.return=g,g=m;break e}}else if(P.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Lr&&ov(k)===P.type){n(g,P.sibling),m=o(P,x.props),m.ref=ns(g,P,x),m.return=g,g=m;break e}n(g,P);break}else t(g,P);P=P.sibling}x.type===Xo?(m=Co(x.props.children,g.mode,w,x.key),m.return=g,g=m):(w=Sl(x.type,x.key,x.props,null,g.mode,w),w.ref=ns(g,m,x),w.return=g,g=w)}return s(g);case Yo:e:{for(P=x.key;m!==null;){if(m.key===P)if(m.tag===4&&m.stateNode.containerInfo===x.containerInfo&&m.stateNode.implementation===x.implementation){n(g,m.sibling),m=o(m,x.children||[]),m.return=g,g=m;break e}else{n(g,m);break}else t(g,m);m=m.sibling}m=Rd(x,g.mode,w),m.return=g,g=m}return s(g);case Lr:return P=x._init,C(g,m,P(x._payload),w)}if(gs(x))return y(g,m,x,w);if(Qi(x))return v(g,m,x,w);Va(g,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,m!==null&&m.tag===6?(n(g,m.sibling),m=o(m,x),m.return=g,g=m):(n(g,m),m=kd(x,g.mode,w),m.return=g,g=m),s(g)):n(g,m)}return C}var bi=B1(!0),W1=B1(!1),ql=no(null),Kl=null,oi=null,Xp=null;function Qp(){Xp=oi=Kl=null}function Jp(e){var t=ql.current;Ue(ql),e._currentValue=t}function Tf(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function fi(e,t){Kl=e,Xp=oi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(qt=!0),e.firstContext=null)}function $n(e){var t=e._currentValue;if(Xp!==e)if(e={context:e,memoizedValue:t,next:null},oi===null){if(Kl===null)throw Error(q(308));oi=e,Kl.dependencies={lanes:0,firstContext:e}}else oi=oi.next=e;return t}var vo=null;function Zp(e){vo===null?vo=[e]:vo.push(e)}function U1(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Zp(t)):(n.next=o.next,o.next=n),t.interleaved=n,Cr(e,r)}function Cr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Ar=!1;function eh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function H1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function xr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Gr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,$e&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Cr(e,n)}return o=r.interleaved,o===null?(t.next=t,Zp(r)):(t.next=o.next,o.next=t),r.interleaved=t,Cr(e,n)}function ml(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Dp(e,n)}}function iv(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Gl(e,t,n,r){var o=e.updateQueue;Ar=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,c=l.next;l.next=null,s===null?i=c:s.next=c,s=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==s&&(a===null?d.firstBaseUpdate=c:a.next=c,d.lastBaseUpdate=l))}if(i!==null){var f=o.baseState;s=0,d=c=l=null,a=i;do{var h=a.lane,b=a.eventTime;if((r&h)===h){d!==null&&(d=d.next={eventTime:b,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,v=a;switch(h=t,b=n,v.tag){case 1:if(y=v.payload,typeof y=="function"){f=y.call(b,f,h);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=v.payload,h=typeof y=="function"?y.call(b,f,h):y,h==null)break e;f=et({},f,h);break e;case 2:Ar=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=o.effects,h===null?o.effects=[a]:h.push(a))}else b={eventTime:b,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(c=d=b,l=f):d=d.next=b,s|=h;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;h=a,a=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(!0);if(d===null&&(l=f),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);$o|=s,e.lanes=s,e.memoizedState=f}}function sv(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=xd.transition;xd.transition={};try{e(!1),t()}finally{Ne=n,xd.transition=r}}function ax(){return Tn().memoizedState}function Uw(e,t,n){var r=Xr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},lx(e))cx(t,n);else if(n=U1(e,t,n,r),n!==null){var o=Dt();qn(n,e,r,o),ux(n,t,r)}}function Hw(e,t,n){var r=Xr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(lx(e))cx(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,Gn(a,s)){var l=t.interleaved;l===null?(o.next=o,Zp(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=U1(e,t,o,r),n!==null&&(o=Dt(),qn(n,e,r,o),ux(n,t,r))}}function lx(e){var t=e.alternate;return e===Je||t!==null&&t===Je}function cx(e,t){Ps=Xl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ux(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Dp(e,n)}}var Ql={readContext:$n,useCallback:Tt,useContext:Tt,useEffect:Tt,useImperativeHandle:Tt,useInsertionEffect:Tt,useLayoutEffect:Tt,useMemo:Tt,useReducer:Tt,useRef:Tt,useState:Tt,useDebugValue:Tt,useDeferredValue:Tt,useTransition:Tt,useMutableSource:Tt,useSyncExternalStore:Tt,useId:Tt,unstable_isNewReconciler:!1},Vw={readContext:$n,useCallback:function(e,t){return Zn().memoizedState=[e,t===void 0?null:t],e},useContext:$n,useEffect:lv,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,vl(4194308,4,nx.bind(null,t,e),n)},useLayoutEffect:function(e,t){return vl(4194308,4,e,t)},useInsertionEffect:function(e,t){return vl(4,2,e,t)},useMemo:function(e,t){var n=Zn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Zn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Uw.bind(null,Je,e),[r.memoizedState,e]},useRef:function(e){var t=Zn();return e={current:e},t.memoizedState=e},useState:av,useDebugValue:lh,useDeferredValue:function(e){return Zn().memoizedState=e},useTransition:function(){var e=av(!1),t=e[0];return e=Ww.bind(null,e[1]),Zn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Je,o=Zn();if(Ge){if(n===void 0)throw Error(q(407));n=n()}else{if(n=t(),bt===null)throw Error(q(349));Eo&30||G1(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,lv(X1.bind(null,r,i,e),[e]),r.flags|=2048,Qs(9,Y1.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Zn(),t=bt.identifierPrefix;if(Ge){var n=vr,r=gr;n=(r&~(1<<32-Vn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ys++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[nr]=t,e[qs]=r,bx(e,t,!1,!1),t.stateNode=e;e:{switch(s=df(n,r),n){case"dialog":We("cancel",e),We("close",e),o=r;break;case"iframe":case"object":case"embed":We("load",e),o=r;break;case"video":case"audio":for(o=0;owi&&(t.flags|=128,r=!0,rs(i,!1),t.lanes=4194304)}else{if(!r)if(e=Yl(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),rs(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Ge)return _t(t),null}else 2*st()-i.renderingStartTime>wi&&n!==1073741824&&(t.flags|=128,r=!0,rs(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=st(),t.sibling=null,n=Xe.current,Be(Xe,r?n&1|2:n&1),t):(_t(t),null);case 22:case 23:return hh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?on&1073741824&&(_t(t),t.subtreeFlags&6&&(t.flags|=8192)):_t(t),null;case 24:return null;case 25:return null}throw Error(q(156,t.tag))}function Zw(e,t){switch(Gp(t),t.tag){case 1:return Gt(t.type)&&Wl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Si(),Ue(Kt),Ue(It),rh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return nh(t),null;case 13:if(Ue(Xe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(q(340));xi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ue(Xe),null;case 4:return Si(),null;case 10:return Jp(t.type._context),null;case 22:case 23:return hh(),null;case 24:return null;default:return null}}var Ka=!1,Ot=!1,ek=typeof WeakSet=="function"?WeakSet:Set,te=null;function ii(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){it(e,t,r)}else n.current=null}function zf(e,t,n){try{n()}catch(r){it(e,t,r)}}var xv=!1;function tk(e,t){if(Sf=zl,e=E1(),qp(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,c=0,d=0,f=e,h=null;t:for(;;){for(var b;f!==n||o!==0&&f.nodeType!==3||(a=s+o),f!==i||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(b=f.firstChild)!==null;)h=f,f=b;for(;;){if(f===e)break t;if(h===n&&++c===o&&(a=s),h===i&&++d===r&&(l=s),(b=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=b}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Cf={focusedElem:e,selectionRange:n},zl=!1,te=t;te!==null;)if(t=te,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,te=e;else for(;te!==null;){t=te;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var v=y.memoizedProps,C=y.memoizedState,g=t.stateNode,m=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:Fn(t.type,v),C);g.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(q(163))}}catch(w){it(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,te=e;break}te=t.return}return y=xv,xv=!1,y}function Es(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&zf(t,n,i)}o=o.next}while(o!==r)}}function Ic(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Df(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function wx(e){var t=e.alternate;t!==null&&(e.alternate=null,wx(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[nr],delete t[qs],delete t[Rf],delete t[Aw],delete t[zw])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function kx(e){return e.tag===5||e.tag===3||e.tag===4}function bv(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||kx(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ff(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Bl));else if(r!==4&&(e=e.child,e!==null))for(Ff(e,t,n),e=e.sibling;e!==null;)Ff(e,t,n),e=e.sibling}function Bf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Bf(e,t,n),e=e.sibling;e!==null;)Bf(e,t,n),e=e.sibling}var Rt=null,Bn=!1;function jr(e,t,n){for(n=n.child;n!==null;)Rx(e,t,n),n=n.sibling}function Rx(e,t,n){if(rr&&typeof rr.onCommitFiberUnmount=="function")try{rr.onCommitFiberUnmount(Rc,n)}catch{}switch(n.tag){case 5:Ot||ii(n,t);case 6:var r=Rt,o=Bn;Rt=null,jr(e,t,n),Rt=r,Bn=o,Rt!==null&&(Bn?(e=Rt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Rt.removeChild(n.stateNode));break;case 18:Rt!==null&&(Bn?(e=Rt,n=n.stateNode,e.nodeType===8?gd(e.parentNode,n):e.nodeType===1&&gd(e,n),Bs(e)):gd(Rt,n.stateNode));break;case 4:r=Rt,o=Bn,Rt=n.stateNode.containerInfo,Bn=!0,jr(e,t,n),Rt=r,Bn=o;break;case 0:case 11:case 14:case 15:if(!Ot&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&zf(n,t,s),o=o.next}while(o!==r)}jr(e,t,n);break;case 1:if(!Ot&&(ii(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){it(n,t,a)}jr(e,t,n);break;case 21:jr(e,t,n);break;case 22:n.mode&1?(Ot=(r=Ot)||n.memoizedState!==null,jr(e,t,n),Ot=r):jr(e,t,n);break;default:jr(e,t,n)}}function Sv(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ek),t.forEach(function(r){var o=uk.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Dn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=st()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*rk(r/1960))-r,10e?16:e,Br===null)var r=!1;else{if(e=Br,Br=null,ec=0,$e&6)throw Error(q(331));var o=$e;for($e|=4,te=e.current;te!==null;){var i=te,s=i.child;if(te.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lst()-fh?So(e,0):dh|=n),Yt(e,t)}function Ix(e,t){t===0&&(e.mode&1?(t=za,za<<=1,!(za&130023424)&&(za=4194304)):t=1);var n=Dt();e=Cr(e,t),e!==null&&(pa(e,t,n),Yt(e,n))}function ck(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ix(e,n)}function uk(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(q(314))}r!==null&&r.delete(t),Ix(e,n)}var Mx;Mx=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Kt.current)qt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return qt=!1,Qw(e,t,n);qt=!!(e.flags&131072)}else qt=!1,Ge&&t.flags&1048576&&z1(t,Vl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;yl(e,t),e=t.pendingProps;var o=yi(t,It.current);fi(t,n),o=ih(null,t,r,e,o,n);var i=sh();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Gt(r)?(i=!0,Ul(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,eh(t),o.updater=Oc,t.stateNode=o,o._reactInternals=t,jf(t,r,e,n),t=Mf(null,t,r,!0,i,n)):(t.tag=0,Ge&&i&&Kp(t),At(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(yl(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=fk(r),e=Fn(r,e),o){case 0:t=If(null,t,r,e,n);break e;case 1:t=gv(null,t,r,e,n);break e;case 11:t=hv(null,t,r,e,n);break e;case 14:t=mv(null,t,r,Fn(r.type,e),n);break e}throw Error(q(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Fn(r,o),If(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Fn(r,o),gv(e,t,r,o,n);case 3:e:{if(vx(t),e===null)throw Error(q(387));r=t.pendingProps,i=t.memoizedState,o=i.element,H1(e,t),Gl(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Ci(Error(q(423)),t),t=vv(e,t,r,n,o);break e}else if(r!==o){o=Ci(Error(q(424)),t),t=vv(e,t,r,n,o);break e}else for(an=Kr(t.stateNode.containerInfo.firstChild),ln=t,Ge=!0,Wn=null,n=W1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(xi(),r===o){t=wr(e,t,n);break e}At(e,t,r,n)}t=t.child}return t;case 5:return V1(t),e===null&&$f(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,wf(r,o)?s=null:i!==null&&wf(r,i)&&(t.flags|=32),gx(e,t),At(e,t,s,n),t.child;case 6:return e===null&&$f(t),null;case 13:return yx(e,t,n);case 4:return th(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=bi(t,null,r,n):At(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Fn(r,o),hv(e,t,r,o,n);case 7:return At(e,t,t.pendingProps,n),t.child;case 8:return At(e,t,t.pendingProps.children,n),t.child;case 12:return At(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,Be(ql,r._currentValue),r._currentValue=s,i!==null)if(Gn(i.value,s)){if(i.children===o.children&&!Kt.current){t=wr(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=xr(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Tf(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(q(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Tf(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}At(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,fi(t,n),o=$n(o),r=r(o),t.flags|=1,At(e,t,r,n),t.child;case 14:return r=t.type,o=Fn(r,t.pendingProps),o=Fn(r.type,o),mv(e,t,r,o,n);case 15:return hx(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Fn(r,o),yl(e,t),t.tag=1,Gt(r)?(e=!0,Ul(t)):e=!1,fi(t,n),dx(t,r,o),jf(t,r,o,n),Mf(null,t,r,!0,e,n);case 19:return xx(e,t,n);case 22:return mx(e,t,n)}throw Error(q(156,t.tag))};function Nx(e,t){return l1(e,t)}function dk(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function wn(e,t,n,r){return new dk(e,t,n,r)}function gh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function fk(e){if(typeof e=="function")return gh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Np)return 11;if(e===Lp)return 14}return 2}function Qr(e,t){var n=e.alternate;return n===null?(n=wn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Sl(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")gh(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Xo:return Co(n.children,o,i,t);case Mp:s=8,o|=8;break;case ef:return e=wn(12,n,t,o|2),e.elementType=ef,e.lanes=i,e;case tf:return e=wn(13,n,t,o),e.elementType=tf,e.lanes=i,e;case nf:return e=wn(19,n,t,o),e.elementType=nf,e.lanes=i,e;case Vy:return Nc(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Uy:s=10;break e;case Hy:s=9;break e;case Np:s=11;break e;case Lp:s=14;break e;case Lr:s=16,r=null;break e}throw Error(q(130,e==null?e:typeof e,""))}return t=wn(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Co(e,t,n,r){return e=wn(7,e,r,t),e.lanes=n,e}function Nc(e,t,n,r){return e=wn(22,e,r,t),e.elementType=Vy,e.lanes=n,e.stateNode={isHidden:!1},e}function kd(e,t,n){return e=wn(6,e,null,t),e.lanes=n,e}function Rd(e,t,n){return t=wn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function pk(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=id(0),this.expirationTimes=id(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=id(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function vh(e,t,n,r,o,i,s,a,l){return e=new pk(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=wn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},eh(i),e}function hk(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Dx)}catch(e){console.error(e)}}Dx(),Dy.exports=pn;var Sh=Dy.exports;const Xa=Pp(Sh);var Tv=Sh;Jd.createRoot=Tv.createRoot,Jd.hydrateRoot=Tv.hydrateRoot;function Fx(e,t){return function(){return e.apply(t,arguments)}}const{toString:xk}=Object.prototype,{getPrototypeOf:Ch}=Object,Fc=(e=>t=>{const n=xk.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Xn=e=>(e=e.toLowerCase(),t=>Fc(t)===e),Bc=e=>t=>typeof t===e,{isArray:Li}=Array,Zs=Bc("undefined");function bk(e){return e!==null&&!Zs(e)&&e.constructor!==null&&!Zs(e.constructor)&&Pn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Bx=Xn("ArrayBuffer");function Sk(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Bx(e.buffer),t}const Ck=Bc("string"),Pn=Bc("function"),Wx=Bc("number"),Wc=e=>e!==null&&typeof e=="object",wk=e=>e===!0||e===!1,Cl=e=>{if(Fc(e)!=="object")return!1;const t=Ch(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},kk=Xn("Date"),Rk=Xn("File"),Pk=Xn("Blob"),Ek=Xn("FileList"),$k=e=>Wc(e)&&Pn(e.pipe),Tk=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Pn(e.append)&&((t=Fc(e))==="formdata"||t==="object"&&Pn(e.toString)&&e.toString()==="[object FormData]"))},_k=Xn("URLSearchParams"),[jk,Ok,Ik,Mk]=["ReadableStream","Request","Response","Headers"].map(Xn),Nk=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function va(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Li(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Hx=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Vx=e=>!Zs(e)&&e!==Hx;function qf(){const{caseless:e}=Vx(this)&&this||{},t={},n=(r,o)=>{const i=e&&Ux(t,o)||o;Cl(t[i])&&Cl(r)?t[i]=qf(t[i],r):Cl(r)?t[i]=qf({},r):Li(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(va(t,(o,i)=>{n&&Pn(o)?e[i]=Fx(o,n):e[i]=o},{allOwnKeys:r}),e),Ak=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),zk=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Dk=(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&Ch(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Fk=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Bk=e=>{if(!e)return null;if(Li(e))return e;let t=e.length;if(!Wx(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Wk=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ch(Uint8Array)),Uk=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Hk=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Vk=Xn("HTMLFormElement"),qk=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),_v=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Kk=Xn("RegExp"),qx=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};va(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},Gk=e=>{qx(e,(t,n)=>{if(Pn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Pn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Yk=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Li(e)?r(e):r(String(e).split(t)),n},Xk=()=>{},Qk=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Pd="abcdefghijklmnopqrstuvwxyz",jv="0123456789",Kx={DIGIT:jv,ALPHA:Pd,ALPHA_DIGIT:Pd+Pd.toUpperCase()+jv},Jk=(e=16,t=Kx.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Zk(e){return!!(e&&Pn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const eR=e=>{const t=new Array(10),n=(r,o)=>{if(Wc(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=Li(r)?[]:{};return va(r,(s,a)=>{const l=n(s,o+1);!Zs(l)&&(i[a]=l)}),t[o]=void 0,i}}return r};return n(e,0)},tR=Xn("AsyncFunction"),nR=e=>e&&(Wc(e)||Pn(e))&&Pn(e.then)&&Pn(e.catch),L={isArray:Li,isArrayBuffer:Bx,isBuffer:bk,isFormData:Tk,isArrayBufferView:Sk,isString:Ck,isNumber:Wx,isBoolean:wk,isObject:Wc,isPlainObject:Cl,isReadableStream:jk,isRequest:Ok,isResponse:Ik,isHeaders:Mk,isUndefined:Zs,isDate:kk,isFile:Rk,isBlob:Pk,isRegExp:Kk,isFunction:Pn,isStream:$k,isURLSearchParams:_k,isTypedArray:Wk,isFileList:Ek,forEach:va,merge:qf,extend:Lk,trim:Nk,stripBOM:Ak,inherits:zk,toFlatObject:Dk,kindOf:Fc,kindOfTest:Xn,endsWith:Fk,toArray:Bk,forEachEntry:Uk,matchAll:Hk,isHTMLForm:Vk,hasOwnProperty:_v,hasOwnProp:_v,reduceDescriptors:qx,freezeMethods:Gk,toObjectSet:Yk,toCamelCase:qk,noop:Xk,toFiniteNumber:Qk,findKey:Ux,global:Hx,isContextDefined:Vx,ALPHABET:Kx,generateString:Jk,isSpecCompliantForm:Zk,toJSONObject:eR,isAsyncFn:tR,isThenable:nR};function me(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}L.inherits(me,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:L.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Gx=me.prototype,Yx={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Yx[e]={value:e}});Object.defineProperties(me,Yx);Object.defineProperty(Gx,"isAxiosError",{value:!0});me.from=(e,t,n,r,o,i)=>{const s=Object.create(Gx);return L.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),me.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const rR=null;function Kf(e){return L.isPlainObject(e)||L.isArray(e)}function Xx(e){return L.endsWith(e,"[]")?e.slice(0,-2):e}function Ov(e,t,n){return e?e.concat(t).map(function(o,i){return o=Xx(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function oR(e){return L.isArray(e)&&!e.some(Kf)}const iR=L.toFlatObject(L,{},null,function(t){return/^is[A-Z]/.test(t)});function Uc(e,t,n){if(!L.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=L.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,C){return!L.isUndefined(C[v])});const r=n.metaTokens,o=n.visitor||d,i=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&L.isSpecCompliantForm(t);if(!L.isFunction(o))throw new TypeError("visitor must be a function");function c(y){if(y===null)return"";if(L.isDate(y))return y.toISOString();if(!l&&L.isBlob(y))throw new me("Blob is not supported. Use a Buffer instead.");return L.isArrayBuffer(y)||L.isTypedArray(y)?l&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function d(y,v,C){let g=y;if(y&&!C&&typeof y=="object"){if(L.endsWith(v,"{}"))v=r?v:v.slice(0,-2),y=JSON.stringify(y);else if(L.isArray(y)&&oR(y)||(L.isFileList(y)||L.endsWith(v,"[]"))&&(g=L.toArray(y)))return v=Xx(v),g.forEach(function(x,w){!(L.isUndefined(x)||x===null)&&t.append(s===!0?Ov([v],w,i):s===null?v:v+"[]",c(x))}),!1}return Kf(y)?!0:(t.append(Ov(C,v,i),c(y)),!1)}const f=[],h=Object.assign(iR,{defaultVisitor:d,convertValue:c,isVisitable:Kf});function b(y,v){if(!L.isUndefined(y)){if(f.indexOf(y)!==-1)throw Error("Circular reference detected in "+v.join("."));f.push(y),L.forEach(y,function(g,m){(!(L.isUndefined(g)||g===null)&&o.call(t,g,L.isString(m)?m.trim():m,v,h))===!0&&b(g,v?v.concat(m):[m])}),f.pop()}}if(!L.isObject(e))throw new TypeError("data must be an object");return b(e),t}function Iv(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function wh(e,t){this._pairs=[],e&&Uc(e,this,t)}const Qx=wh.prototype;Qx.append=function(t,n){this._pairs.push([t,n])};Qx.toString=function(t){const n=t?function(r){return t.call(this,r,Iv)}:Iv;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function sR(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Jx(e,t,n){if(!t)return e;const r=n&&n.encode||sR,o=n&&n.serialize;let i;if(o?i=o(t,n):i=L.isURLSearchParams(t)?t.toString():new wh(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Mv{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){L.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Zx={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},aR=typeof URLSearchParams<"u"?URLSearchParams:wh,lR=typeof FormData<"u"?FormData:null,cR=typeof Blob<"u"?Blob:null,uR={isBrowser:!0,classes:{URLSearchParams:aR,FormData:lR,Blob:cR},protocols:["http","https","file","blob","url","data"]},kh=typeof window<"u"&&typeof document<"u",dR=(e=>kh&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),fR=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",pR=kh&&window.location.href||"http://localhost",hR=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:kh,hasStandardBrowserEnv:dR,hasStandardBrowserWebWorkerEnv:fR,origin:pR},Symbol.toStringTag,{value:"Module"})),Kn={...hR,...uR};function mR(e,t){return Uc(e,new Kn.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return Kn.isNode&&L.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function gR(e){return L.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function vR(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return s=!s&&L.isArray(o)?o.length:s,l?(L.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!a):((!o[s]||!L.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&L.isArray(o[s])&&(o[s]=vR(o[s])),!a)}if(L.isFormData(e)&&L.isFunction(e.entries)){const n={};return L.forEachEntry(e,(r,o)=>{t(gR(r),o,n,0)}),n}return null}function yR(e,t,n){if(L.isString(e))try{return(t||JSON.parse)(e),L.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ya={transitional:Zx,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=L.isObject(t);if(i&&L.isHTMLForm(t)&&(t=new FormData(t)),L.isFormData(t))return o?JSON.stringify(eb(t)):t;if(L.isArrayBuffer(t)||L.isBuffer(t)||L.isStream(t)||L.isFile(t)||L.isBlob(t)||L.isReadableStream(t))return t;if(L.isArrayBufferView(t))return t.buffer;if(L.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return mR(t,this.formSerializer).toString();if((a=L.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Uc(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),yR(t)):t}],transformResponse:[function(t){const n=this.transitional||ya.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(L.isResponse(t)||L.isReadableStream(t))return t;if(t&&L.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?me.from(a,me.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Kn.classes.FormData,Blob:Kn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};L.forEach(["delete","get","head","post","put","patch"],e=>{ya.headers[e]={}});const xR=L.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),bR=e=>{const t={};let n,r,o;return e&&e.split(` -`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&xR[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Nv=Symbol("internals");function is(e){return e&&String(e).trim().toLowerCase()}function wl(e){return e===!1||e==null?e:L.isArray(e)?e.map(wl):String(e)}function SR(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const CR=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ed(e,t,n,r,o){if(L.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!L.isString(t)){if(L.isString(r))return t.indexOf(r)!==-1;if(L.isRegExp(r))return r.test(t)}}function wR(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function kR(e,t){const n=L.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}class Xt{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(a,l,c){const d=is(l);if(!d)throw new Error("header name must be a non-empty string");const f=L.findKey(o,d);(!f||o[f]===void 0||c===!0||c===void 0&&o[f]!==!1)&&(o[f||l]=wl(a))}const s=(a,l)=>L.forEach(a,(c,d)=>i(c,d,l));if(L.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(L.isString(t)&&(t=t.trim())&&!CR(t))s(bR(t),n);else if(L.isHeaders(t))for(const[a,l]of t.entries())i(l,a,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=is(t),t){const r=L.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return SR(o);if(L.isFunction(n))return n.call(this,o,r);if(L.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=is(t),t){const r=L.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Ed(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(s){if(s=is(s),s){const a=L.findKey(r,s);a&&(!n||Ed(r,r[a],a,n))&&(delete r[a],o=!0)}}return L.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Ed(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return L.forEach(this,(o,i)=>{const s=L.findKey(r,i);if(s){n[s]=wl(o),delete n[i];return}const a=t?wR(i):String(i).trim();a!==i&&delete n[i],n[a]=wl(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return L.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&L.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Nv]=this[Nv]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=is(s);r[a]||(kR(o,s),r[a]=!0)}return L.isArray(t)?t.forEach(i):i(t),this}}Xt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);L.reduceDescriptors(Xt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});L.freezeMethods(Xt);function $d(e,t){const n=this||ya,r=t||n,o=Xt.from(r.headers);let i=r.data;return L.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function tb(e){return!!(e&&e.__CANCEL__)}function Ai(e,t,n){me.call(this,e??"canceled",me.ERR_CANCELED,t,n),this.name="CanceledError"}L.inherits(Ai,me,{__CANCEL__:!0});function nb(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new me("Request failed with status code "+n.status,[me.ERR_BAD_REQUEST,me.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function RR(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function PR(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),d=r[i];s||(s=c),n[o]=l,r[o]=c;let f=i,h=0;for(;f!==o;)h+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-sr)return o&&(clearTimeout(o),o=null),n=a,e.apply(null,arguments);o||(o=setTimeout(()=>(o=null,n=Date.now(),e.apply(null,arguments)),r-(a-n)))}}const rc=(e,t,n=3)=>{let r=0;const o=PR(50,250);return ER(i=>{const s=i.loaded,a=i.lengthComputable?i.total:void 0,l=s-r,c=o(l),d=s<=a;r=s;const f={loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&d?(a-s)/c:void 0,event:i,lengthComputable:a!=null};f[t?"download":"upload"]=!0,e(f)},n)},$R=Kn.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let s=i;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(s){const a=L.isString(s)?o(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}(),TR=Kn.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];L.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),L.isString(r)&&s.push("path="+r),L.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function _R(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function jR(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function rb(e,t){return e&&!_R(t)?jR(e,t):t}const Lv=e=>e instanceof Xt?{...e}:e;function _o(e,t){t=t||{};const n={};function r(c,d,f){return L.isPlainObject(c)&&L.isPlainObject(d)?L.merge.call({caseless:f},c,d):L.isPlainObject(d)?L.merge({},d):L.isArray(d)?d.slice():d}function o(c,d,f){if(L.isUndefined(d)){if(!L.isUndefined(c))return r(void 0,c,f)}else return r(c,d,f)}function i(c,d){if(!L.isUndefined(d))return r(void 0,d)}function s(c,d){if(L.isUndefined(d)){if(!L.isUndefined(c))return r(void 0,c)}else return r(void 0,d)}function a(c,d,f){if(f in t)return r(c,d);if(f in e)return r(void 0,c)}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(c,d)=>o(Lv(c),Lv(d),!0)};return L.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=l[d]||o,h=f(e[d],t[d],d);L.isUndefined(h)&&f!==a||(n[d]=h)}),n}const ob=e=>{const t=_o({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;t.headers=s=Xt.from(s),t.url=Jx(rb(t.baseURL,t.url),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(L.isFormData(n)){if(Kn.hasStandardBrowserEnv||Kn.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((l=s.getContentType())!==!1){const[c,...d]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];s.setContentType([c||"multipart/form-data",...d].join("; "))}}if(Kn.hasStandardBrowserEnv&&(r&&L.isFunction(r)&&(r=r(t)),r||r!==!1&&$R(t.url))){const c=o&&i&&TR.read(i);c&&s.set(o,c)}return t},OR=typeof XMLHttpRequest<"u",IR=OR&&function(e){return new Promise(function(n,r){const o=ob(e);let i=o.data;const s=Xt.from(o.headers).normalize();let{responseType:a}=o,l;function c(){o.cancelToken&&o.cancelToken.unsubscribe(l),o.signal&&o.signal.removeEventListener("abort",l)}let d=new XMLHttpRequest;d.open(o.method.toUpperCase(),o.url,!0),d.timeout=o.timeout;function f(){if(!d)return;const b=Xt.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),v={data:!a||a==="text"||a==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:b,config:e,request:d};nb(function(g){n(g),c()},function(g){r(g),c()},v),d=null}"onloadend"in d?d.onloadend=f:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(f)},d.onabort=function(){d&&(r(new me("Request aborted",me.ECONNABORTED,o,d)),d=null)},d.onerror=function(){r(new me("Network Error",me.ERR_NETWORK,o,d)),d=null},d.ontimeout=function(){let y=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const v=o.transitional||Zx;o.timeoutErrorMessage&&(y=o.timeoutErrorMessage),r(new me(y,v.clarifyTimeoutError?me.ETIMEDOUT:me.ECONNABORTED,o,d)),d=null},i===void 0&&s.setContentType(null),"setRequestHeader"in d&&L.forEach(s.toJSON(),function(y,v){d.setRequestHeader(v,y)}),L.isUndefined(o.withCredentials)||(d.withCredentials=!!o.withCredentials),a&&a!=="json"&&(d.responseType=o.responseType),typeof o.onDownloadProgress=="function"&&d.addEventListener("progress",rc(o.onDownloadProgress,!0)),typeof o.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",rc(o.onUploadProgress)),(o.cancelToken||o.signal)&&(l=b=>{d&&(r(!b||b.type?new Ai(null,e,d):b),d.abort(),d=null)},o.cancelToken&&o.cancelToken.subscribe(l),o.signal&&(o.signal.aborted?l():o.signal.addEventListener("abort",l)));const h=RR(o.url);if(h&&Kn.protocols.indexOf(h)===-1){r(new me("Unsupported protocol "+h+":",me.ERR_BAD_REQUEST,e));return}d.send(i||null)})},MR=(e,t)=>{let n=new AbortController,r;const o=function(l){if(!r){r=!0,s();const c=l instanceof Error?l:this.reason;n.abort(c instanceof me?c:new Ai(c instanceof Error?c.message:c))}};let i=t&&setTimeout(()=>{o(new me(`timeout ${t} of ms exceeded`,me.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",o):l.unsubscribe(o))}),e=null)};e.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",o));const{signal:a}=n;return a.unsubscribe=s,[a,()=>{i&&clearTimeout(i),i=null}]},NR=function*(e,t){let n=e.byteLength;if(!t||n{const i=LR(e,t,o);let s=0;return new ReadableStream({type:"bytes",async pull(a){const{done:l,value:c}=await i.next();if(l){a.close(),r();return}let d=c.byteLength;n&&n(s+=d),a.enqueue(new Uint8Array(c))},cancel(a){return r(a),i.return()}},{highWaterMark:2})},zv=(e,t)=>{const n=e!=null;return r=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:r}))},Hc=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ib=Hc&&typeof ReadableStream=="function",Gf=Hc&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),AR=ib&&(()=>{let e=!1;const t=new Request(Kn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),Dv=64*1024,Yf=ib&&!!(()=>{try{return L.isReadableStream(new Response("").body)}catch{}})(),oc={stream:Yf&&(e=>e.body)};Hc&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!oc[t]&&(oc[t]=L.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new me(`Response type '${t}' is not supported`,me.ERR_NOT_SUPPORT,r)})})})(new Response);const zR=async e=>{if(e==null)return 0;if(L.isBlob(e))return e.size;if(L.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(L.isArrayBufferView(e))return e.byteLength;if(L.isURLSearchParams(e)&&(e=e+""),L.isString(e))return(await Gf(e)).byteLength},DR=async(e,t)=>{const n=L.toFiniteNumber(e.getContentLength());return n??zR(t)},FR=Hc&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:d,withCredentials:f="same-origin",fetchOptions:h}=ob(e);c=c?(c+"").toLowerCase():"text";let[b,y]=o||i||s?MR([o,i],s):[],v,C;const g=()=>{!v&&setTimeout(()=>{b&&b.unsubscribe()}),v=!0};let m;try{if(l&&AR&&n!=="get"&&n!=="head"&&(m=await DR(d,r))!==0){let P=new Request(t,{method:"POST",body:r,duplex:"half"}),R;L.isFormData(r)&&(R=P.headers.get("content-type"))&&d.setContentType(R),P.body&&(r=Av(P.body,Dv,zv(m,rc(l)),null,Gf))}L.isString(f)||(f=f?"cors":"omit"),C=new Request(t,{...h,signal:b,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",withCredentials:f});let x=await fetch(C);const w=Yf&&(c==="stream"||c==="response");if(Yf&&(a||w)){const P={};["status","statusText","headers"].forEach(E=>{P[E]=x[E]});const R=L.toFiniteNumber(x.headers.get("content-length"));x=new Response(Av(x.body,Dv,a&&zv(R,rc(a,!0)),w&&g,Gf),P)}c=c||"text";let k=await oc[L.findKey(oc,c)||"text"](x,e);return!w&&g(),y&&y(),await new Promise((P,R)=>{nb(P,R,{data:k,headers:Xt.from(x.headers),status:x.status,statusText:x.statusText,config:e,request:C})})}catch(x){throw g(),x&&x.name==="TypeError"&&/fetch/i.test(x.message)?Object.assign(new me("Network Error",me.ERR_NETWORK,e,C),{cause:x.cause||x}):me.from(x,x&&x.code,e,C)}}),Xf={http:rR,xhr:IR,fetch:FR};L.forEach(Xf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Fv=e=>`- ${e}`,BR=e=>L.isFunction(e)||e===null||e===!1,sb={getAdapter:e=>{e=L.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since : -`+i.map(Fv).join(` -`):" "+Fv(i[0]):"as no adapter specified";throw new me("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:Xf};function Td(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ai(null,e)}function Bv(e){return Td(e),e.headers=Xt.from(e.headers),e.data=$d.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),sb.getAdapter(e.adapter||ya.adapter)(e).then(function(r){return Td(e),r.data=$d.call(e,e.transformResponse,r),r.headers=Xt.from(r.headers),r},function(r){return tb(r)||(Td(e),r&&r.response&&(r.response.data=$d.call(e,e.transformResponse,r.response),r.response.headers=Xt.from(r.response.headers))),Promise.reject(r)})}const ab="1.7.2",Rh={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Rh[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Wv={};Rh.transitional=function(t,n,r){function o(i,s){return"[Axios v"+ab+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,a)=>{if(t===!1)throw new me(o(s," has been removed"+(n?" in "+n:"")),me.ERR_DEPRECATED);return n&&!Wv[s]&&(Wv[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,a):!0}};function WR(e,t,n){if(typeof e!="object")throw new me("options must be an object",me.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const a=e[i],l=a===void 0||s(a,i,e);if(l!==!0)throw new me("option "+i+" must be "+l,me.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new me("Unknown option "+i,me.ERR_BAD_OPTION)}}const Qf={assertOptions:WR,validators:Rh},Or=Qf.validators;class wo{constructor(t){this.defaults=t,this.interceptors={request:new Mv,response:new Mv}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=_o(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Qf.assertOptions(r,{silentJSONParsing:Or.transitional(Or.boolean),forcedJSONParsing:Or.transitional(Or.boolean),clarifyTimeoutError:Or.transitional(Or.boolean)},!1),o!=null&&(L.isFunction(o)?n.paramsSerializer={serialize:o}:Qf.assertOptions(o,{encode:Or.function,serialize:Or.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&L.merge(i.common,i[n.method]);i&&L.forEach(["delete","get","head","post","put","patch","common"],y=>{delete i[y]}),n.headers=Xt.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(l=l&&v.synchronous,a.unshift(v.fulfilled,v.rejected))});const c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let d,f=0,h;if(!l){const y=[Bv.bind(this),void 0];for(y.unshift.apply(y,a),y.push.apply(y,c),h=y.length,d=Promise.resolve(n);f{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{r.subscribe(a),i=a}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,a){r.reason||(r.reason=new Ai(i,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Ph(function(o){t=o}),cancel:t}}}function UR(e){return function(n){return e.apply(null,n)}}function HR(e){return L.isObject(e)&&e.isAxiosError===!0}const Jf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Jf).forEach(([e,t])=>{Jf[t]=e});function lb(e){const t=new wo(e),n=Fx(wo.prototype.request,t);return L.extend(n,wo.prototype,t,{allOwnKeys:!0}),L.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return lb(_o(e,o))},n}const ve=lb(ya);ve.Axios=wo;ve.CanceledError=Ai;ve.CancelToken=Ph;ve.isCancel=tb;ve.VERSION=ab;ve.toFormData=Uc;ve.AxiosError=me;ve.Cancel=ve.CanceledError;ve.all=function(t){return Promise.all(t)};ve.spread=UR;ve.isAxiosError=HR;ve.mergeConfig=_o;ve.AxiosHeaders=Xt;ve.formToJSON=e=>eb(L.isHTMLForm(e)?new FormData(e):e);ve.getAdapter=sb.getAdapter;ve.HttpStatusCode=Jf;ve.default=ve;/** - * @remix-run/router v1.16.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function ea(){return ea=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function cb(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function qR(){return Math.random().toString(36).substr(2,8)}function Hv(e,t){return{usr:e.state,key:e.key,idx:t}}function Zf(e,t,n,r){return n===void 0&&(n=null),ea({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?zi(t):t,{state:n,key:t&&t.key||r||qR()})}function ic(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function zi(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function KR(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a=Wr.Pop,l=null,c=d();c==null&&(c=0,s.replaceState(ea({},s.state,{idx:c}),""));function d(){return(s.state||{idx:null}).idx}function f(){a=Wr.Pop;let C=d(),g=C==null?null:C-c;c=C,l&&l({action:a,location:v.location,delta:g})}function h(C,g){a=Wr.Push;let m=Zf(v.location,C,g);c=d()+1;let x=Hv(m,c),w=v.createHref(m);try{s.pushState(x,"",w)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;o.location.assign(w)}i&&l&&l({action:a,location:v.location,delta:1})}function b(C,g){a=Wr.Replace;let m=Zf(v.location,C,g);c=d();let x=Hv(m,c),w=v.createHref(m);s.replaceState(x,"",w),i&&l&&l({action:a,location:v.location,delta:0})}function y(C){let g=o.location.origin!=="null"?o.location.origin:o.location.href,m=typeof C=="string"?C:ic(C);return m=m.replace(/ $/,"%20"),Ze(g,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,g)}let v={get action(){return a},get location(){return e(o,s)},listen(C){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Uv,f),l=C,()=>{o.removeEventListener(Uv,f),l=null}},createHref(C){return t(o,C)},createURL:y,encodeLocation(C){let g=y(C);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:h,replace:b,go(C){return s.go(C)}};return v}var Vv;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Vv||(Vv={}));function GR(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?zi(t):t,o=ki(r.pathname||"/",n);if(o==null)return null;let i=ub(e);YR(i);let s=null;for(let a=0;s==null&&a{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};l.relativePath.startsWith("/")&&(Ze(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=Jr([r,l.relativePath]),d=n.concat(l);i.children&&i.children.length>0&&(Ze(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),ub(i.children,t,d,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:nP(c,i.index),routesMeta:d})};return e.forEach((i,s)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,s);else for(let l of db(i.path))o(i,s,l)}),t}function db(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=db(r.join("/")),a=[];return a.push(...s.map(l=>l===""?i:[i,l].join("/"))),o&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function YR(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:rP(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const XR=/^:[\w-]+$/,QR=3,JR=2,ZR=1,eP=10,tP=-2,qv=e=>e==="*";function nP(e,t){let n=e.split("/"),r=n.length;return n.some(qv)&&(r+=tP),t&&(r+=JR),n.filter(o=>!qv(o)).reduce((o,i)=>o+(XR.test(i)?QR:i===""?ZR:eP),r)}function rP(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function oP(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let s=0;s{let{paramName:h,isOptional:b}=d;if(h==="*"){let v=a[f]||"";s=i.slice(0,i.length-v.length).replace(/(.)\/+$/,"$1")}const y=a[f];return b&&!y?c[h]=void 0:c[h]=(y||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:s,pattern:e}}function iP(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),cb(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function sP(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return cb(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function ki(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function aP(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?zi(e):e;return{pathname:n?n.startsWith("/")?n:lP(n,t):t,search:dP(r),hash:fP(o)}}function lP(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function _d(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function cP(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Eh(e,t){let n=cP(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function $h(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=zi(e):(o=ea({},e),Ze(!o.pathname||!o.pathname.includes("?"),_d("?","pathname","search",o)),Ze(!o.pathname||!o.pathname.includes("#"),_d("#","pathname","hash",o)),Ze(!o.search||!o.search.includes("#"),_d("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,a;if(s==null)a=n;else{let f=t.length-1;if(!r&&s.startsWith("..")){let h=s.split("/");for(;h[0]==="..";)h.shift(),f-=1;o.pathname=h.join("/")}a=f>=0?t[f]:"/"}let l=aP(o,a),c=s&&s!=="/"&&s.endsWith("/"),d=(i||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}const Jr=e=>e.join("/").replace(/\/\/+/g,"/"),uP=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),dP=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,fP=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function pP(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const fb=["post","put","patch","delete"];new Set(fb);const hP=["get",...fb];new Set(hP);/** - * React Router v6.23.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function ta(){return ta=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),p.useCallback(function(c,d){if(d===void 0&&(d={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let f=$h(c,JSON.parse(s),i,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Jr([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,s,i,e])}function xa(){let{matches:e}=p.useContext(Tr),t=e[e.length-1];return t?t.params:{}}function Kc(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=p.useContext($r),{matches:o}=p.useContext(Tr),{pathname:i}=oo(),s=JSON.stringify(Eh(o,r.v7_relativeSplatPath));return p.useMemo(()=>$h(e,JSON.parse(s),i,n==="path"),[e,s,i,n])}function vP(e,t){return yP(e,t)}function yP(e,t,n,r){Di()||Ze(!1);let{navigator:o}=p.useContext($r),{matches:i}=p.useContext(Tr),s=i[i.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let c=oo(),d;if(t){var f;let C=typeof t=="string"?zi(t):t;l==="/"||(f=C.pathname)!=null&&f.startsWith(l)||Ze(!1),d=C}else d=c;let h=d.pathname||"/",b=h;if(l!=="/"){let C=l.replace(/^\//,"").split("/");b="/"+h.replace(/^\//,"").split("/").slice(C.length).join("/")}let y=GR(e,{pathname:b}),v=wP(y&&y.map(C=>Object.assign({},C,{params:Object.assign({},a,C.params),pathname:Jr([l,o.encodeLocation?o.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?l:Jr([l,o.encodeLocation?o.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),i,n,r);return t&&v?p.createElement(qc.Provider,{value:{location:ta({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Wr.Pop}},v):v}function xP(){let e=EP(),t=pP(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:o},n):null,null)}const bP=p.createElement(xP,null);class SP extends p.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?p.createElement(Tr.Provider,{value:this.props.routeContext},p.createElement(hb.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function CP(e){let{routeContext:t,match:n,children:r}=e,o=p.useContext(Vc);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),p.createElement(Tr.Provider,{value:t},r)}function wP(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let s=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let d=s.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);d>=0||Ze(!1),s=s.slice(0,Math.min(s.length,d+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?s=s.slice(0,c+1):s=[s[0]];break}}}return s.reduceRight((d,f,h)=>{let b,y=!1,v=null,C=null;n&&(b=a&&f.route.id?a[f.route.id]:void 0,v=f.route.errorElement||bP,l&&(c<0&&h===0?(y=!0,C=null):c===h&&(y=!0,C=f.route.hydrateFallbackElement||null)));let g=t.concat(s.slice(0,h+1)),m=()=>{let x;return b?x=v:y?x=C:f.route.Component?x=p.createElement(f.route.Component,null):f.route.element?x=f.route.element:x=d,p.createElement(CP,{match:f,routeContext:{outlet:d,matches:g,isDataRoute:n!=null},children:x})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?p.createElement(SP,{location:n.location,revalidation:n.revalidation,component:v,error:b,children:m(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):m()},null)}var gb=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(gb||{}),sc=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(sc||{});function kP(e){let t=p.useContext(Vc);return t||Ze(!1),t}function RP(e){let t=p.useContext(pb);return t||Ze(!1),t}function PP(e){let t=p.useContext(Tr);return t||Ze(!1),t}function vb(e){let t=PP(),n=t.matches[t.matches.length-1];return n.route.id||Ze(!1),n.route.id}function EP(){var e;let t=p.useContext(hb),n=RP(sc.UseRouteError),r=vb(sc.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function $P(){let{router:e}=kP(gb.UseNavigateStable),t=vb(sc.UseNavigateStable),n=p.useRef(!1);return mb(()=>{n.current=!0}),p.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,ta({fromRouteId:t},i)))},[e,t])}function TP(e){let{to:t,replace:n,state:r,relative:o}=e;Di()||Ze(!1);let{future:i,static:s}=p.useContext($r),{matches:a}=p.useContext(Tr),{pathname:l}=oo(),c=Ao(),d=$h(t,Eh(a,i.v7_relativeSplatPath),l,o==="path"),f=JSON.stringify(d);return p.useEffect(()=>c(JSON.parse(f),{replace:n,state:r,relative:o}),[c,f,o,n,r]),null}function rn(e){Ze(!1)}function _P(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Wr.Pop,navigator:i,static:s=!1,future:a}=e;Di()&&Ze(!1);let l=t.replace(/^\/*/,"/"),c=p.useMemo(()=>({basename:l,navigator:i,static:s,future:ta({v7_relativeSplatPath:!1},a)}),[l,a,i,s]);typeof r=="string"&&(r=zi(r));let{pathname:d="/",search:f="",hash:h="",state:b=null,key:y="default"}=r,v=p.useMemo(()=>{let C=ki(d,l);return C==null?null:{location:{pathname:C,search:f,hash:h,state:b,key:y},navigationType:o}},[l,d,f,h,b,y,o]);return v==null?null:p.createElement($r.Provider,{value:c},p.createElement(qc.Provider,{children:n,value:v}))}function jP(e){let{children:t,location:n}=e;return vP(tp(t),n)}new Promise(()=>{});function tp(e,t){t===void 0&&(t=[]);let n=[];return p.Children.forEach(e,(r,o)=>{if(!p.isValidElement(r))return;let i=[...t,o];if(r.type===p.Fragment){n.push.apply(n,tp(r.props.children,i));return}r.type!==rn&&Ze(!1),!r.props.index||!r.props.children||Ze(!1);let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=tp(r.props.children,i)),n.push(s)}),n}/** - * React Router DOM v6.23.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function ac(){return ac=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function OP(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function IP(e,t){return e.button===0&&(!t||t==="_self")&&!OP(e)}const MP=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],NP=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],LP="6";try{window.__reactRouterVersion=LP}catch{}const AP=p.createContext({isTransitioning:!1}),zP="startTransition",Kv=Ol[zP];function DP(e){let{basename:t,children:n,future:r,window:o}=e,i=p.useRef();i.current==null&&(i.current=VR({window:o,v5Compat:!0}));let s=i.current,[a,l]=p.useState({action:s.action,location:s.location}),{v7_startTransition:c}=r||{},d=p.useCallback(f=>{c&&Kv?Kv(()=>l(f)):l(f)},[l,c]);return p.useLayoutEffect(()=>s.listen(d),[s,d]),p.createElement(_P,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const FP=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",BP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xb=p.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:s,state:a,target:l,to:c,preventScrollReset:d,unstable_viewTransition:f}=t,h=yb(t,MP),{basename:b}=p.useContext($r),y,v=!1;if(typeof c=="string"&&BP.test(c)&&(y=c,FP))try{let x=new URL(window.location.href),w=c.startsWith("//")?new URL(x.protocol+c):new URL(c),k=ki(w.pathname,b);w.origin===x.origin&&k!=null?c=k+w.search+w.hash:v=!0}catch{}let C=mP(c,{relative:o}),g=HP(c,{replace:s,state:a,target:l,preventScrollReset:d,relative:o,unstable_viewTransition:f});function m(x){r&&r(x),x.defaultPrevented||g(x)}return p.createElement("a",ac({},h,{href:y||C,onClick:v||i?r:m,ref:n,target:l}))}),WP=p.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:s=!1,style:a,to:l,unstable_viewTransition:c,children:d}=t,f=yb(t,NP),h=Kc(l,{relative:f.relative}),b=oo(),y=p.useContext(pb),{navigator:v,basename:C}=p.useContext($r),g=y!=null&&VP(h)&&c===!0,m=v.encodeLocation?v.encodeLocation(h).pathname:h.pathname,x=b.pathname,w=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;o||(x=x.toLowerCase(),w=w?w.toLowerCase():null,m=m.toLowerCase()),w&&C&&(w=ki(w,C)||w);const k=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let P=x===m||!s&&x.startsWith(m)&&x.charAt(k)==="/",R=w!=null&&(w===m||!s&&w.startsWith(m)&&w.charAt(m.length)==="/"),E={isActive:P,isPending:R,isTransitioning:g},j=P?r:void 0,T;typeof i=="function"?T=i(E):T=[i,P?"active":null,R?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let O=typeof a=="function"?a(E):a;return p.createElement(xb,ac({},f,{"aria-current":j,className:T,ref:n,style:O,to:l,unstable_viewTransition:c}),typeof d=="function"?d(E):d)});var np;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(np||(np={}));var Gv;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Gv||(Gv={}));function UP(e){let t=p.useContext(Vc);return t||Ze(!1),t}function HP(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s,unstable_viewTransition:a}=t===void 0?{}:t,l=Ao(),c=oo(),d=Kc(e,{relative:s});return p.useCallback(f=>{if(IP(f,n)){f.preventDefault();let h=r!==void 0?r:ic(c)===ic(d);l(e,{replace:h,state:o,preventScrollReset:i,relative:s,unstable_viewTransition:a})}},[c,l,d,r,o,n,e,i,s,a])}function VP(e,t){t===void 0&&(t={});let n=p.useContext(AP);n==null&&Ze(!1);let{basename:r}=UP(np.useViewTransitionState),o=Kc(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=ki(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=ki(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ep(o.pathname,s)!=null||ep(o.pathname,i)!=null}const lr=p.createContext({user:null}),qP=({children:e})=>{const[t,n]=p.useState(!1),[r,o]=p.useState(null),[i,s]=p.useState(0),[a,l]=p.useState([]),c=p.useCallback(v=>{l(C=>[...C,v])},[l]),d=v=>{l(C=>C.filter((g,m)=>m!==v))},f=()=>{s(i+1)},h=Ao();p.useEffect(()=>{const v=localStorage.getItem("user");console.log("Attempting to load user:",v),v?(console.log("User found in storage:",v),o(JSON.parse(v))):console.log("No user found in storage at initialization.")},[]),p.useEffect(()=>{r?(console.log("Storing user in storage:",r),localStorage.setItem("user",JSON.stringify(r))):(console.log("Removing user from storage."),localStorage.removeItem("user"))},[r]);const b=p.useCallback(async()=>{var v;try{const C=localStorage.getItem("token");if(console.log("Logging out with token:",C),!C){console.error("No token available for logout");return}const g=await ve.post("/api/user/logout",{},{headers:{Authorization:`Bearer ${C}`}});if(g.status===200)o(null),localStorage.removeItem("token"),h("/auth");else throw new Error("Logout failed with status: "+g.status)}catch(C){console.error("Logout failed:",((v=C.response)==null?void 0:v.data)||C.message)}},[h]),y=async(v,C,g)=>{var m,x;try{const w=localStorage.getItem("token"),k=await ve.patch(`/api/user/change_password/${v}`,{current_password:C,new_password:g},{headers:{Authorization:`Bearer ${w}`}});return k.status===200?{success:!0,message:"Password updated successfully!"}:{success:!1,message:k.data.message||"Update failed!"}}catch(w){return w.response.status===403?{success:!1,message:w.response.data.message||"Incorrect current password"}:{success:!1,message:((x=(m=w.response)==null?void 0:m.data)==null?void 0:x.message)||"Network error"}}};return p.useEffect(()=>{const v=C=>{C.data&&C.data.type==="NEW_NOTIFICATION"&&(console.log("Notification received:",C.data.data),c({title:C.data.data.title,message:C.data.data.body}))};return navigator.serviceWorker.addEventListener("message",v),()=>{navigator.serviceWorker.removeEventListener("message",v)}},[c]),u.jsx(lr.Provider,{value:{user:r,setUser:o,logout:b,voiceEnabled:t,setVoiceEnabled:n,changePassword:y,incrementNotificationCount:f,notifications:a,removeNotification:d,addNotification:c},children:e})},na={black:"#000",white:"#fff"},Fo={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"},Bo={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Wo={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"},Uo={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Ho={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"},ss={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"},KP={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function jo(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n=0)continue;n[r]=e[r]}return n}function bb(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var YP=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,XP=bb(function(e){return YP.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function QP(e){if(e.sheet)return e.sheet;for(var t=0;t0?Pt(Fi,--Zt):0,Ri--,ut===10&&(Ri=1,Yc--),ut}function cn(){return ut=Zt2||oa(ut)>3?"":" "}function uE(e,t){for(;--t&&cn()&&!(ut<48||ut>102||ut>57&&ut<65||ut>70&&ut<97););return ba(e,kl()+(t<6&&ir()==32&&cn()==32))}function op(e){for(;cn();)switch(ut){case e:return Zt;case 34:case 39:e!==34&&e!==39&&op(ut);break;case 40:e===41&&op(e);break;case 92:cn();break}return Zt}function dE(e,t){for(;cn()&&e+ut!==57;)if(e+ut===84&&ir()===47)break;return"/*"+ba(t,Zt-1)+"*"+Gc(e===47?e:cn())}function fE(e){for(;!oa(ir());)cn();return ba(e,Zt)}function pE(e){return Pb(Pl("",null,null,null,[""],e=Rb(e),0,[0],e))}function Pl(e,t,n,r,o,i,s,a,l){for(var c=0,d=0,f=s,h=0,b=0,y=0,v=1,C=1,g=1,m=0,x="",w=o,k=i,P=r,R=x;C;)switch(y=m,m=cn()){case 40:if(y!=108&&Pt(R,f-1)==58){rp(R+=Ie(Rl(m),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:R+=Rl(m);break;case 9:case 10:case 13:case 32:R+=cE(y);break;case 92:R+=uE(kl()-1,7);continue;case 47:switch(ir()){case 42:case 47:Qa(hE(dE(cn(),kl()),t,n),l);break;default:R+="/"}break;case 123*v:a[c++]=er(R)*g;case 125*v:case 59:case 0:switch(m){case 0:case 125:C=0;case 59+d:g==-1&&(R=Ie(R,/\f/g,"")),b>0&&er(R)-f&&Qa(b>32?Xv(R+";",r,n,f-1):Xv(Ie(R," ","")+";",r,n,f-2),l);break;case 59:R+=";";default:if(Qa(P=Yv(R,t,n,c,d,o,a,x,w=[],k=[],f),i),m===123)if(d===0)Pl(R,t,P,P,w,i,f,a,k);else switch(h===99&&Pt(R,3)===110?100:h){case 100:case 108:case 109:case 115:Pl(e,P,P,r&&Qa(Yv(e,P,P,0,0,o,a,x,o,w=[],f),k),o,k,f,a,r?w:k);break;default:Pl(R,P,P,P,[""],k,0,a,k)}}c=d=b=0,v=g=1,x=R="",f=s;break;case 58:f=1+er(R),b=y;default:if(v<1){if(m==123)--v;else if(m==125&&v++==0&&lE()==125)continue}switch(R+=Gc(m),m*v){case 38:g=d>0?1:(R+="\f",-1);break;case 44:a[c++]=(er(R)-1)*g,g=1;break;case 64:ir()===45&&(R+=Rl(cn())),h=ir(),d=f=er(x=R+=fE(kl())),m++;break;case 45:y===45&&er(R)==2&&(v=0)}}return i}function Yv(e,t,n,r,o,i,s,a,l,c,d){for(var f=o-1,h=o===0?i:[""],b=jh(h),y=0,v=0,C=0;y0?h[g]+" "+m:Ie(m,/&\f/g,h[g])))&&(l[C++]=x);return Xc(e,t,n,o===0?Th:a,l,c,d)}function hE(e,t,n){return Xc(e,t,n,Sb,Gc(aE()),ra(e,2,-2),0)}function Xv(e,t,n,r){return Xc(e,t,n,_h,ra(e,0,r),ra(e,r+1,-1),r)}function hi(e,t){for(var n="",r=jh(e),o=0;o6)switch(Pt(e,t+1)){case 109:if(Pt(e,t+4)!==45)break;case 102:return Ie(e,/(.+:)(.+)-([^]+)/,"$1"+Oe+"$2-$3$1"+lc+(Pt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~rp(e,"stretch")?Eb(Ie(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Pt(e,t+1)!==115)break;case 6444:switch(Pt(e,er(e)-3-(~rp(e,"!important")&&10))){case 107:return Ie(e,":",":"+Oe)+e;case 101:return Ie(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Oe+(Pt(e,14)===45?"inline-":"")+"box$3$1"+Oe+"$2$3$1"+jt+"$2box$3")+e}break;case 5936:switch(Pt(e,t+11)){case 114:return Oe+e+jt+Ie(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Oe+e+jt+Ie(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Oe+e+jt+Ie(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Oe+e+jt+e+e}return e}var wE=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case _h:t.return=Eb(t.value,t.length);break;case Cb:return hi([as(t,{value:Ie(t.value,"@","@"+Oe)})],o);case Th:if(t.length)return sE(t.props,function(i){switch(iE(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return hi([as(t,{props:[Ie(i,/:(read-\w+)/,":"+lc+"$1")]})],o);case"::placeholder":return hi([as(t,{props:[Ie(i,/:(plac\w+)/,":"+Oe+"input-$1")]}),as(t,{props:[Ie(i,/:(plac\w+)/,":"+lc+"$1")]}),as(t,{props:[Ie(i,/:(plac\w+)/,jt+"input-$1")]})],o)}return""})}},kE=[wE],$b=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var C=v.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||kE,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var C=v.getAttribute("data-emotion").split(" "),g=1;g=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var LE={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},AE=/[A-Z]|^ms/g,zE=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Nb=function(t){return t.charCodeAt(1)===45},Jv=function(t){return t!=null&&typeof t!="boolean"},jd=bb(function(e){return Nb(e)?e:e.replace(AE,"-$&").toLowerCase()}),Zv=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(zE,function(r,o,i){return tr={name:o,styles:i,next:tr},o})}return LE[t]!==1&&!Nb(t)&&typeof n=="number"&&n!==0?n+"px":n};function ia(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return tr={name:n.name,styles:n.styles,next:tr},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)tr={name:r.name,styles:r.styles,next:tr},r=r.next;var o=n.styles+";";return o}return DE(e,t,n)}case"function":{if(e!==void 0){var i=tr,s=n(e);return tr=i,ia(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function DE(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?HE:VE},o0=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},qE=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Ib(n,r,o),BE(function(){return Mb(n,r,o)}),null},KE=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=o0(t,n,r),l=a||r0(o),c=!l("as");return function(){var d=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),d[0]==null||d[0].raw===void 0)f.push.apply(f,d);else{f.push(d[0][0]);for(var h=d.length,b=1;bt(t$(o)?n:o):t;return u.jsx(UE,{styles:r})}function Lh(e,t){return ip(e,t)}const Hb=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},n$=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Ub,StyledEngineProvider:e$,ThemeContext:Sa,css:au,default:Lh,internal_processStyles:Hb,keyframes:Bi},Symbol.toStringTag,{value:"Module"}));function mr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Vb(e){if(!mr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Vb(e[n])}),t}function Ft(e,t,n={clone:!0}){const r=n.clone?S({},e):e;return mr(e)&&mr(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(mr(t[o])&&o in e&&mr(e[o])?r[o]=Ft(e[o],t[o],n):n.clone?r[o]=mr(t[o])?Vb(t[o]):t[o]:r[o]=t[o])}),r}const r$=Object.freeze(Object.defineProperty({__proto__:null,default:Ft,isPlainObject:mr},Symbol.toStringTag,{value:"Module"})),o$=["values","unit","step"],i$=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>S({},n,{[r.key]:r.val}),{})};function qb(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=H(e,o$),i=i$(t),s=Object.keys(i);function a(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function l(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function c(h,b){const y=s.indexOf(b);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(y!==-1&&typeof t[s[y]]=="number"?t[s[y]]:b)-r/100}${n})`}function d(h){return s.indexOf(h)+1`@media (min-width:${Ah[e]}px)`};function Yn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||i0;return t.reduce((s,a,l)=>(s[i.up(i.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const i=r.breakpoints||i0;return Object.keys(t).reduce((s,a)=>{if(Object.keys(i.values||Ah).indexOf(a)!==-1){const l=i.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function Kb(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function Gb(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function a$(e,...t){const n=Kb(e),r=[n,...t].reduce((o,i)=>Ft(o,i),{});return Gb(Object.keys(n),r)}function l$(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i{e[o]!=null&&(n[o]=!0)}),n}function Md({values:e,breakpoints:t,base:n}){const r=n||l$(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((s,a,l)=>(Array.isArray(e)?(s[a]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(s[a]=e[a]!=null?e[a]:e[i],i=a):s[a]=e,s),{})}function A(e){if(typeof e!="string")throw new Error(jo(7));return e.charAt(0).toUpperCase()+e.slice(1)}const c$=Object.freeze(Object.defineProperty({__proto__:null,default:A},Symbol.toStringTag,{value:"Module"}));function lu(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function cc(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=lu(e,n)||r,t&&(o=t(o,r,e)),o}function at(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,c=lu(l,r)||{};return Yn(s,a,f=>{let h=cc(c,o,f);return f===h&&typeof f=="string"&&(h=cc(c,o,`${t}${f==="default"?"":A(f)}`,f)),n===!1?h:{[n]:h}})};return i.propTypes={},i.filterProps=[t],i}function u$(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const d$={m:"margin",p:"padding"},f$={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},s0={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},p$=u$(e=>{if(e.length>2)if(s0[e])e=s0[e];else return[e];const[t,n]=e.split(""),r=d$[t],o=f$[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),zh=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Dh=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...zh,...Dh];function Ca(e,t,n,r){var o;const i=(o=lu(e,t,!1))!=null?o:n;return typeof i=="number"?s=>typeof s=="string"?s:i*s:Array.isArray(i)?s=>typeof s=="string"?s:i[s]:typeof i=="function"?i:()=>{}}function Fh(e){return Ca(e,"spacing",8)}function Io(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function h$(e,t){return n=>e.reduce((r,o)=>(r[o]=Io(t,n),r),{})}function m$(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=p$(n),i=h$(o,r),s=e[n];return Yn(e,s,i)}function Yb(e,t){const n=Fh(e.theme);return Object.keys(e).map(r=>m$(e,t,r,n)).reduce(_s,{})}function rt(e){return Yb(e,zh)}rt.propTypes={};rt.filterProps=zh;function ot(e){return Yb(e,Dh)}ot.propTypes={};ot.filterProps=Dh;function g$(e=8){if(e.mui)return e;const t=Fh({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function cu(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?_s(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Cn(e){return typeof e!="number"?e:`${e}px solid`}function Mn(e,t){return at({prop:e,themeKey:"borders",transform:t})}const v$=Mn("border",Cn),y$=Mn("borderTop",Cn),x$=Mn("borderRight",Cn),b$=Mn("borderBottom",Cn),S$=Mn("borderLeft",Cn),C$=Mn("borderColor"),w$=Mn("borderTopColor"),k$=Mn("borderRightColor"),R$=Mn("borderBottomColor"),P$=Mn("borderLeftColor"),E$=Mn("outline",Cn),$$=Mn("outlineColor"),uu=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ca(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Io(t,r)});return Yn(e,e.borderRadius,n)}return null};uu.propTypes={};uu.filterProps=["borderRadius"];cu(v$,y$,x$,b$,S$,C$,w$,k$,R$,P$,uu,E$,$$);const du=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ca(e.theme,"spacing",8),n=r=>({gap:Io(t,r)});return Yn(e,e.gap,n)}return null};du.propTypes={};du.filterProps=["gap"];const fu=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ca(e.theme,"spacing",8),n=r=>({columnGap:Io(t,r)});return Yn(e,e.columnGap,n)}return null};fu.propTypes={};fu.filterProps=["columnGap"];const pu=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ca(e.theme,"spacing",8),n=r=>({rowGap:Io(t,r)});return Yn(e,e.rowGap,n)}return null};pu.propTypes={};pu.filterProps=["rowGap"];const T$=at({prop:"gridColumn"}),_$=at({prop:"gridRow"}),j$=at({prop:"gridAutoFlow"}),O$=at({prop:"gridAutoColumns"}),I$=at({prop:"gridAutoRows"}),M$=at({prop:"gridTemplateColumns"}),N$=at({prop:"gridTemplateRows"}),L$=at({prop:"gridTemplateAreas"}),A$=at({prop:"gridArea"});cu(du,fu,pu,T$,_$,j$,O$,I$,M$,N$,L$,A$);function mi(e,t){return t==="grey"?t:e}const z$=at({prop:"color",themeKey:"palette",transform:mi}),D$=at({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:mi}),F$=at({prop:"backgroundColor",themeKey:"palette",transform:mi});cu(z$,D$,F$);function sn(e){return e<=1&&e!==0?`${e*100}%`:e}const B$=at({prop:"width",transform:sn}),Bh=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Ah[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:sn(n)}};return Yn(e,e.maxWidth,t)}return null};Bh.filterProps=["maxWidth"];const W$=at({prop:"minWidth",transform:sn}),U$=at({prop:"height",transform:sn}),H$=at({prop:"maxHeight",transform:sn}),V$=at({prop:"minHeight",transform:sn});at({prop:"size",cssProperty:"width",transform:sn});at({prop:"size",cssProperty:"height",transform:sn});const q$=at({prop:"boxSizing"});cu(B$,Bh,W$,U$,H$,V$,q$);const wa={border:{themeKey:"borders",transform:Cn},borderTop:{themeKey:"borders",transform:Cn},borderRight:{themeKey:"borders",transform:Cn},borderBottom:{themeKey:"borders",transform:Cn},borderLeft:{themeKey:"borders",transform:Cn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Cn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:uu},color:{themeKey:"palette",transform:mi},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:mi},backgroundColor:{themeKey:"palette",transform:mi},p:{style:ot},pt:{style:ot},pr:{style:ot},pb:{style:ot},pl:{style:ot},px:{style:ot},py:{style:ot},padding:{style:ot},paddingTop:{style:ot},paddingRight:{style:ot},paddingBottom:{style:ot},paddingLeft:{style:ot},paddingX:{style:ot},paddingY:{style:ot},paddingInline:{style:ot},paddingInlineStart:{style:ot},paddingInlineEnd:{style:ot},paddingBlock:{style:ot},paddingBlockStart:{style:ot},paddingBlockEnd:{style:ot},m:{style:rt},mt:{style:rt},mr:{style:rt},mb:{style:rt},ml:{style:rt},mx:{style:rt},my:{style:rt},margin:{style:rt},marginTop:{style:rt},marginRight:{style:rt},marginBottom:{style:rt},marginLeft:{style:rt},marginX:{style:rt},marginY:{style:rt},marginInline:{style:rt},marginInlineStart:{style:rt},marginInlineEnd:{style:rt},marginBlock:{style:rt},marginBlockStart:{style:rt},marginBlockEnd:{style:rt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:du},rowGap:{style:pu},columnGap:{style:fu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:sn},maxWidth:{style:Bh},minWidth:{transform:sn},height:{transform:sn},maxHeight:{transform:sn},minHeight:{transform:sn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function K$(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function G$(e,t){return typeof e=="function"?e(t):e}function Xb(){function e(n,r,o,i){const s={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:d,style:f}=a;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const h=lu(o,c)||{};return f?f(s):Yn(s,r,y=>{let v=cc(h,d,y);return y===v&&typeof y=="string"&&(v=cc(h,d,`${n}${y==="default"?"":A(y)}`,y)),l===!1?v:{[l]:v}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const s=(r=i.unstable_sxConfig)!=null?r:wa;function a(l){let c=l;if(typeof l=="function")c=l(i);else if(typeof l!="object")return l;if(!c)return null;const d=Kb(i.breakpoints),f=Object.keys(d);let h=d;return Object.keys(c).forEach(b=>{const y=G$(c[b],i);if(y!=null)if(typeof y=="object")if(s[b])h=_s(h,e(b,y,i,s));else{const v=Yn({theme:i},y,C=>({[b]:C}));K$(v,y)?h[b]=t({sx:y,theme:i}):h=_s(h,v)}else h=_s(h,e(b,y,i,s))}),Gb(f,h)}return Array.isArray(o)?o.map(a):a(o)}return t}const Wi=Xb();Wi.filterProps=["sx"];function Qb(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const Y$=["breakpoints","palette","spacing","shape"];function Ui(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=H(e,Y$),a=qb(n),l=g$(o);let c=Ft({breakpoints:a,direction:"ltr",components:{},palette:S({mode:"light"},r),spacing:l,shape:S({},s$,i)},s);return c.applyStyles=Qb,c=t.reduce((d,f)=>Ft(d,f),c),c.unstable_sxConfig=S({},wa,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(f){return Wi({sx:f,theme:this})},c}const X$=Object.freeze(Object.defineProperty({__proto__:null,default:Ui,private_createBreakpoints:qb,unstable_applyStyles:Qb},Symbol.toStringTag,{value:"Module"}));function Q$(e){return Object.keys(e).length===0}function Jb(e=null){const t=p.useContext(Sa);return!t||Q$(t)?e:t}const J$=Ui();function hu(e=J$){return Jb(e)}function Z$({styles:e,themeId:t,defaultTheme:n={}}){const r=hu(n),o=typeof e=="function"?e(t&&r[t]||r):e;return u.jsx(Ub,{styles:o})}const e4=["sx"],t4=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:wa;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function mu(e){const{sx:t}=e,n=H(e,e4),{systemProps:r,otherProps:o}=t4(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return mr(a)?S({},r,a):r}:i=S({},r,t),S({},o,{sx:i})}const n4=Object.freeze(Object.defineProperty({__proto__:null,default:Wi,extendSxProp:mu,unstable_createStyleFunctionSx:Xb,unstable_defaultSxConfig:wa},Symbol.toStringTag,{value:"Module"})),a0=e=>e,r4=()=>{let e=a0;return{configure(t){e=t},generate(t){return e(t)},reset(){e=a0}}},Wh=r4();function Zb(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ta!=="theme"&&a!=="sx"&&a!=="as"})(Wi);return p.forwardRef(function(l,c){const d=hu(n),f=mu(l),{className:h,component:b="div"}=f,y=H(f,o4);return u.jsx(i,S({as:b,ref:c,className:V(h,o?o(r):r),theme:t&&d[t]||d},y))})}const e2={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function re(e,t,n="Mui"){const r=e2[t];return r?`${n}-${r}`:`${Wh.generate(e)}-${t}`}function oe(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=re(e,o,n)}),r}var t2={exports:{}},Ae={};/** - * @license React - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Uh=Symbol.for("react.element"),Hh=Symbol.for("react.portal"),gu=Symbol.for("react.fragment"),vu=Symbol.for("react.strict_mode"),yu=Symbol.for("react.profiler"),xu=Symbol.for("react.provider"),bu=Symbol.for("react.context"),s4=Symbol.for("react.server_context"),Su=Symbol.for("react.forward_ref"),Cu=Symbol.for("react.suspense"),wu=Symbol.for("react.suspense_list"),ku=Symbol.for("react.memo"),Ru=Symbol.for("react.lazy"),a4=Symbol.for("react.offscreen"),n2;n2=Symbol.for("react.module.reference");function Nn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Uh:switch(e=e.type,e){case gu:case yu:case vu:case Cu:case wu:return e;default:switch(e=e&&e.$$typeof,e){case s4:case bu:case Su:case Ru:case ku:case xu:return e;default:return t}}case Hh:return t}}}Ae.ContextConsumer=bu;Ae.ContextProvider=xu;Ae.Element=Uh;Ae.ForwardRef=Su;Ae.Fragment=gu;Ae.Lazy=Ru;Ae.Memo=ku;Ae.Portal=Hh;Ae.Profiler=yu;Ae.StrictMode=vu;Ae.Suspense=Cu;Ae.SuspenseList=wu;Ae.isAsyncMode=function(){return!1};Ae.isConcurrentMode=function(){return!1};Ae.isContextConsumer=function(e){return Nn(e)===bu};Ae.isContextProvider=function(e){return Nn(e)===xu};Ae.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Uh};Ae.isForwardRef=function(e){return Nn(e)===Su};Ae.isFragment=function(e){return Nn(e)===gu};Ae.isLazy=function(e){return Nn(e)===Ru};Ae.isMemo=function(e){return Nn(e)===ku};Ae.isPortal=function(e){return Nn(e)===Hh};Ae.isProfiler=function(e){return Nn(e)===yu};Ae.isStrictMode=function(e){return Nn(e)===vu};Ae.isSuspense=function(e){return Nn(e)===Cu};Ae.isSuspenseList=function(e){return Nn(e)===wu};Ae.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===gu||e===yu||e===vu||e===Cu||e===wu||e===a4||typeof e=="object"&&e!==null&&(e.$$typeof===Ru||e.$$typeof===ku||e.$$typeof===xu||e.$$typeof===bu||e.$$typeof===Su||e.$$typeof===n2||e.getModuleId!==void 0)};Ae.typeOf=Nn;t2.exports=Ae;var l0=t2.exports;const l4=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function r2(e){const t=`${e}`.match(l4);return t&&t[1]||""}function o2(e,t=""){return e.displayName||e.name||r2(e)||t}function c0(e,t,n){const r=o2(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function c4(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return o2(e,"Component");if(typeof e=="object")switch(e.$$typeof){case l0.ForwardRef:return c0(e,e.render,"ForwardRef");case l0.Memo:return c0(e,e.type,"memo");default:return}}}const u4=Object.freeze(Object.defineProperty({__proto__:null,default:c4,getFunctionName:r2},Symbol.toStringTag,{value:"Module"})),d4=["ownerState"],f4=["variants"],p4=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function h4(e){return Object.keys(e).length===0}function m4(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Nd(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const g4=Ui(),v4=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Ja({defaultTheme:e,theme:t,themeId:n}){return h4(t)?e:t[n]||t}function y4(e){return e?(t,n)=>n[e]:null}function El(e,t){let{ownerState:n}=t,r=H(t,d4);const o=typeof e=="function"?e(S({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>El(i,S({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let a=H(o,f4);return i.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props(S({ownerState:n},r,n)):Object.keys(l.props).forEach(d=>{(n==null?void 0:n[d])!==l.props[d]&&r[d]!==l.props[d]&&(c=!1)}),c&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style(S({ownerState:n},r,n)):l.style))}),a}return o}function x4(e={}){const{themeId:t,defaultTheme:n=g4,rootShouldForwardProp:r=Nd,slotShouldForwardProp:o=Nd}=e,i=s=>Wi(S({},s,{theme:Ja(S({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{Hb(s,k=>k.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:d,skipSx:f,overridesResolver:h=y4(v4(c))}=a,b=H(a,p4),y=d!==void 0?d:c&&c!=="Root"&&c!=="root"||!1,v=f||!1;let C,g=Nd;c==="Root"||c==="root"?g=r:c?g=o:m4(s)&&(g=void 0);const m=Lh(s,S({shouldForwardProp:g,label:C},b)),x=k=>typeof k=="function"&&k.__emotion_real!==k||mr(k)?P=>El(k,S({},P,{theme:Ja({theme:P.theme,defaultTheme:n,themeId:t})})):k,w=(k,...P)=>{let R=x(k);const E=P?P.map(x):[];l&&h&&E.push(O=>{const M=Ja(S({},O,{defaultTheme:n,themeId:t}));if(!M.components||!M.components[l]||!M.components[l].styleOverrides)return null;const I=M.components[l].styleOverrides,N={};return Object.entries(I).forEach(([D,z])=>{N[D]=El(z,S({},O,{theme:M}))}),h(O,N)}),l&&!y&&E.push(O=>{var M;const I=Ja(S({},O,{defaultTheme:n,themeId:t})),N=I==null||(M=I.components)==null||(M=M[l])==null?void 0:M.variants;return El({variants:N},S({},O,{theme:I}))}),v||E.push(i);const j=E.length-P.length;if(Array.isArray(k)&&j>0){const O=new Array(j).fill("");R=[...k,...O],R.raw=[...k.raw,...O]}const T=m(R,...E);return s.muiName&&(T.muiName=s.muiName),T};return m.withConfig&&(w.withConfig=m.withConfig),w}}const i2=x4();function Vh(e,t){const n=S({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=S({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=S({},i),Object.keys(o).forEach(s=>{n[r][s]=Vh(o[s],i[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function b4(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Vh(t.components[n].defaultProps,r)}function qh({props:e,name:t,defaultTheme:n,themeId:r}){let o=hu(n);return r&&(o=o[r]||o),b4({theme:o,name:t,props:e})}const dn=typeof window<"u"?p.useLayoutEffect:p.useEffect;function S4(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const C4=Object.freeze(Object.defineProperty({__proto__:null,default:S4},Symbol.toStringTag,{value:"Module"}));function ap(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Hi(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function w4(e,t){return()=>null}function js(e,t){var n,r;return p.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function ft(e){return e&&e.ownerDocument||document}function _n(e){return ft(e).defaultView||window}function k4(e,t){return()=>null}function uc(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let u0=0;function R4(e){const[t,n]=p.useState(e),r=e||t;return p.useEffect(()=>{t==null&&(u0+=1,n(`mui-${u0}`))},[t]),r}const d0=Ol.useId;function ka(e){if(d0!==void 0){const t=d0();return e??t}return R4(e)}function P4(e,t,n,r,o){return null}function sa({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=p.useRef(e!==void 0),[i,s]=p.useState(t),a=o?e:i,l=p.useCallback(c=>{o||s(c)},[]);return[a,l]}function zt(e){const t=p.useRef(e);return dn(()=>{t.current=e}),p.useRef((...n)=>(0,t.current)(...n)).current}function Ye(...e){return p.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{uc(n,t)})},e)}const f0={};function E4(e,t){const n=p.useRef(f0);return n.current===f0&&(n.current=e(t)),n}const $4=[];function T4(e){p.useEffect(e,$4)}class Ra{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ra}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function xo(){const e=E4(Ra.create).current;return T4(e.disposeEffect),e}let Pu=!0,lp=!1;const _4=new Ra,j4={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 O4(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&j4[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function I4(e){e.metaKey||e.altKey||e.ctrlKey||(Pu=!0)}function Ld(){Pu=!1}function M4(){this.visibilityState==="hidden"&&lp&&(Pu=!0)}function N4(e){e.addEventListener("keydown",I4,!0),e.addEventListener("mousedown",Ld,!0),e.addEventListener("pointerdown",Ld,!0),e.addEventListener("touchstart",Ld,!0),e.addEventListener("visibilitychange",M4,!0)}function L4(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Pu||O4(t)}function Kh(){const e=p.useCallback(o=>{o!=null&&N4(o.ownerDocument)},[]),t=p.useRef(!1);function n(){return t.current?(lp=!0,_4.start(100,()=>{lp=!1}),t.current=!1,!0):!1}function r(o){return L4(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function s2(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Vo;function a2(){if(Vo)return Vo;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Vo="reverse",e.scrollLeft>0?Vo="default":(e.scrollLeft=1,e.scrollLeft===0&&(Vo="negative")),document.body.removeChild(e),Vo}function A4(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(a2()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const l2=e=>{const t=p.useRef({});return p.useEffect(()=>{t.current=e}),t.current};function ie(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,s)=>{if(s){const a=t(s);a!==""&&i.push(a),n&&n[s]&&i.push(n[s])}return i},[]).join(" ")}),r}const c2=p.createContext(null);function u2(){return p.useContext(c2)}const z4=typeof Symbol=="function"&&Symbol.for,D4=z4?Symbol.for("mui.nested"):"__THEME_NESTED__";function F4(e,t){return typeof t=="function"?t(e):S({},e,t)}function B4(e){const{children:t,theme:n}=e,r=u2(),o=p.useMemo(()=>{const i=r===null?n:F4(r,n);return i!=null&&(i[D4]=r!==null),i},[n,r]);return u.jsx(c2.Provider,{value:o,children:t})}const W4=["value"],d2=p.createContext();function U4(e){let{value:t}=e,n=H(e,W4);return u.jsx(d2.Provider,S({value:t??!0},n))}const Pa=()=>{const e=p.useContext(d2);return e??!1},p0={};function h0(e,t,n,r=!1){return p.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),s=e?S({},t,{[e]:i}):i;return r?()=>s:s}return e?S({},t,{[e]:n}):S({},t,n)},[e,t,n,r])}function H4(e){const{children:t,theme:n,themeId:r}=e,o=Jb(p0),i=u2()||p0,s=h0(r,o,n),a=h0(r,i,n,!0),l=s.direction==="rtl";return u.jsx(B4,{theme:a,children:u.jsx(Sa.Provider,{value:s,children:u.jsx(U4,{value:l,children:t})})})}const V4=["className","component","disableGutters","fixed","maxWidth","classes"],q4=Ui(),K4=i2("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${A(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),G4=e=>qh({props:e,name:"MuiContainer",defaultTheme:q4}),Y4=(e,t)=>{const n=l=>re(t,l),{classes:r,fixed:o,disableGutters:i,maxWidth:s}=e,a={root:["root",s&&`maxWidth${A(String(s))}`,o&&"fixed",i&&"disableGutters"]};return ie(a,n,r)};function X4(e={}){const{createStyledComponent:t=K4,useThemeProps:n=G4,componentName:r="MuiContainer"}=e,o=t(({theme:s,ownerState:a})=>S({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!a.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}),({theme:s,ownerState:a})=>a.fixed&&Object.keys(s.breakpoints.values).reduce((l,c)=>{const d=c,f=s.breakpoints.values[d];return f!==0&&(l[s.breakpoints.up(d)]={maxWidth:`${f}${s.breakpoints.unit}`}),l},{}),({theme:s,ownerState:a})=>S({},a.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},a.maxWidth&&a.maxWidth!=="xs"&&{[s.breakpoints.up(a.maxWidth)]:{maxWidth:`${s.breakpoints.values[a.maxWidth]}${s.breakpoints.unit}`}}));return p.forwardRef(function(a,l){const c=n(a),{className:d,component:f="div",disableGutters:h=!1,fixed:b=!1,maxWidth:y="lg"}=c,v=H(c,V4),C=S({},c,{component:f,disableGutters:h,fixed:b,maxWidth:y}),g=Y4(C,r);return u.jsx(o,S({as:f,ownerState:C,className:V(g.root,d),ref:l},v))})}const Q4=["component","direction","spacing","divider","children","className","useFlexGap"],J4=Ui(),Z4=i2("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function e5(e){return qh({props:e,name:"MuiStack",defaultTheme:J4})}function t5(e,t){const n=p.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],r5=({ownerState:e,theme:t})=>{let n=S({display:"flex",flexDirection:"column"},Yn({theme:t},Md({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=Fh(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),i=Md({values:e.direction,base:o}),s=Md({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,c,d)=>{if(!i[l]){const h=c>0?i[d[c-1]]:"column";i[l]=h}}),n=Ft(n,Yn({theme:t},s,(l,c)=>e.useFlexGap?{gap:Io(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${n5(c?i[c]:e.direction)}`]:Io(r,l)}}))}return n=a$(t.breakpoints,n),n};function o5(e={}){const{createStyledComponent:t=Z4,useThemeProps:n=e5,componentName:r="MuiStack"}=e,o=()=>ie({root:["root"]},l=>re(r,l),{}),i=t(r5);return p.forwardRef(function(l,c){const d=n(l),f=mu(d),{component:h="div",direction:b="column",spacing:y=0,divider:v,children:C,className:g,useFlexGap:m=!1}=f,x=H(f,Q4),w={direction:b,spacing:y,useFlexGap:m},k=o();return u.jsx(i,S({as:h,ownerState:w,ref:c,className:V(k.root,g)},x,{children:v?t5(C,v):C}))})}function i5(e,t){return S({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var lt={},f2={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(f2);var de=f2.exports;const s5=Pr(GP),a5=Pr(C4);var p2=de;Object.defineProperty(lt,"__esModule",{value:!0});var je=lt.alpha=v2;lt.blend=x5;lt.colorChannel=void 0;var dc=lt.darken=Yh;lt.decomposeColor=jn;var l5=lt.emphasize=y2,c5=lt.getContrastRatio=h5;lt.getLuminance=pc;lt.hexToRgb=h2;lt.hslToRgb=g2;var fc=lt.lighten=Xh;lt.private_safeAlpha=m5;lt.private_safeColorChannel=void 0;lt.private_safeDarken=g5;lt.private_safeEmphasize=y5;lt.private_safeLighten=v5;lt.recomposeColor=Vi;lt.rgbToHex=p5;var m0=p2(s5),u5=p2(a5);function Gh(e,t=0,n=1){return(0,u5.default)(e,t,n)}function h2(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function d5(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function jn(e){if(e.type)return e;if(e.charAt(0)==="#")return jn(h2(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,m0.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,m0.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const m2=e=>{const t=jn(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};lt.colorChannel=m2;const f5=(e,t)=>{try{return m2(e)}catch{return e}};lt.private_safeColorChannel=f5;function Vi(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function p5(e){if(e.indexOf("#")===0)return e;const{values:t}=jn(e);return`#${t.map((n,r)=>d5(r===3?Math.round(255*n):n)).join("")}`}function g2(e){e=jn(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(c,d=(c+n/30)%12)=>o-i*Math.max(Math.min(d-3,9-d,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),Vi({type:a,values:l})}function pc(e){e=jn(e);let t=e.type==="hsl"||e.type==="hsla"?jn(g2(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function h5(e,t){const n=pc(e),r=pc(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function v2(e,t){return e=jn(e),t=Gh(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Vi(e)}function m5(e,t,n){try{return v2(e,t)}catch{return e}}function Yh(e,t){if(e=jn(e),t=Gh(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Vi(e)}function g5(e,t,n){try{return Yh(e,t)}catch{return e}}function Xh(e,t){if(e=jn(e),t=Gh(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Vi(e)}function v5(e,t,n){try{return Xh(e,t)}catch{return e}}function y2(e,t=.15){return pc(e)>.5?Yh(e,t):Xh(e,t)}function y5(e,t,n){try{return y2(e,t)}catch{return e}}function x5(e,t,n,r=1){const o=(l,c)=>Math.round((l**(1/r)*(1-n)+c**(1/r)*n)**r),i=jn(e),s=jn(t),a=[o(i.values[0],s.values[0]),o(i.values[1],s.values[1]),o(i.values[2],s.values[2])];return Vi({type:"rgb",values:a})}const b5=["mode","contrastThreshold","tonalOffset"],g0={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:na.white,default:na.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Ad={text:{primary:na.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:na.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 v0(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=fc(e.main,o):t==="dark"&&(e.dark=dc(e.main,i)))}function S5(e="light"){return e==="dark"?{main:Wo[200],light:Wo[50],dark:Wo[400]}:{main:Wo[700],light:Wo[400],dark:Wo[800]}}function C5(e="light"){return e==="dark"?{main:Bo[200],light:Bo[50],dark:Bo[400]}:{main:Bo[500],light:Bo[300],dark:Bo[700]}}function w5(e="light"){return e==="dark"?{main:Fo[500],light:Fo[300],dark:Fo[700]}:{main:Fo[700],light:Fo[400],dark:Fo[800]}}function k5(e="light"){return e==="dark"?{main:Uo[400],light:Uo[300],dark:Uo[700]}:{main:Uo[700],light:Uo[500],dark:Uo[900]}}function R5(e="light"){return e==="dark"?{main:Ho[400],light:Ho[300],dark:Ho[700]}:{main:Ho[800],light:Ho[500],dark:Ho[900]}}function P5(e="light"){return e==="dark"?{main:ss[400],light:ss[300],dark:ss[700]}:{main:"#ed6c02",light:ss[500],dark:ss[900]}}function E5(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=H(e,b5),i=e.primary||S5(t),s=e.secondary||C5(t),a=e.error||w5(t),l=e.info||k5(t),c=e.success||R5(t),d=e.warning||P5(t);function f(v){return c5(v,Ad.text.primary)>=n?Ad.text.primary:g0.text.primary}const h=({color:v,name:C,mainShade:g=500,lightShade:m=300,darkShade:x=700})=>{if(v=S({},v),!v.main&&v[g]&&(v.main=v[g]),!v.hasOwnProperty("main"))throw new Error(jo(11,C?` (${C})`:"",g));if(typeof v.main!="string")throw new Error(jo(12,C?` (${C})`:"",JSON.stringify(v.main)));return v0(v,"light",m,r),v0(v,"dark",x,r),v.contrastText||(v.contrastText=f(v.main)),v},b={dark:Ad,light:g0};return Ft(S({common:S({},na),mode:t,primary:h({color:i,name:"primary"}),secondary:h({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:a,name:"error"}),warning:h({color:d,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:c,name:"success"}),grey:KP,contrastThreshold:n,getContrastText:f,augmentColor:h,tonalOffset:r},b[t]),o)}const $5=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function T5(e){return Math.round(e*1e5)/1e5}const y0={textTransform:"uppercase"},x0='"Roboto", "Helvetica", "Arial", sans-serif';function _5(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=x0,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:d,pxToRem:f}=n,h=H(n,$5),b=o/14,y=f||(g=>`${g/c*b}rem`),v=(g,m,x,w,k)=>S({fontFamily:r,fontWeight:g,fontSize:y(m),lineHeight:x},r===x0?{letterSpacing:`${T5(w/m)}em`}:{},k,d),C={h1:v(i,96,1.167,-1.5),h2:v(i,60,1.2,-.5),h3:v(s,48,1.167,0),h4:v(s,34,1.235,.25),h5:v(s,24,1.334,0),h6:v(a,20,1.6,.15),subtitle1:v(s,16,1.75,.15),subtitle2:v(a,14,1.57,.1),body1:v(s,16,1.5,.15),body2:v(s,14,1.43,.15),button:v(a,14,1.75,.4,y0),caption:v(s,12,1.66,.4),overline:v(s,12,2.66,1,y0),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ft(S({htmlFontSize:c,pxToRem:y,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},C),h,{clone:!1})}const j5=.2,O5=.14,I5=.12;function Ve(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${j5})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${O5})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${I5})`].join(",")}const M5=["none",Ve(0,2,1,-1,0,1,1,0,0,1,3,0),Ve(0,3,1,-2,0,2,2,0,0,1,5,0),Ve(0,3,3,-2,0,3,4,0,0,1,8,0),Ve(0,2,4,-1,0,4,5,0,0,1,10,0),Ve(0,3,5,-1,0,5,8,0,0,1,14,0),Ve(0,3,5,-1,0,6,10,0,0,1,18,0),Ve(0,4,5,-2,0,7,10,1,0,2,16,1),Ve(0,5,5,-3,0,8,10,1,0,3,14,2),Ve(0,5,6,-3,0,9,12,1,0,3,16,2),Ve(0,6,6,-3,0,10,14,1,0,4,18,3),Ve(0,6,7,-4,0,11,15,1,0,4,20,3),Ve(0,7,8,-4,0,12,17,2,0,5,22,4),Ve(0,7,8,-4,0,13,19,2,0,5,24,4),Ve(0,7,9,-4,0,14,21,2,0,5,26,4),Ve(0,8,9,-5,0,15,22,2,0,6,28,5),Ve(0,8,10,-5,0,16,24,2,0,6,30,5),Ve(0,8,11,-5,0,17,26,2,0,6,32,5),Ve(0,9,11,-5,0,18,28,2,0,7,34,6),Ve(0,9,12,-6,0,19,29,2,0,7,36,6),Ve(0,10,13,-6,0,20,31,3,0,8,38,7),Ve(0,10,13,-6,0,21,33,3,0,8,40,7),Ve(0,10,14,-6,0,22,35,3,0,8,42,7),Ve(0,11,14,-7,0,23,36,3,0,9,44,8),Ve(0,11,15,-7,0,24,38,3,0,9,46,8)],N5=["duration","easing","delay"],L5={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)"},A5={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function b0(e){return`${Math.round(e)}ms`}function z5(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function D5(e){const t=S({},L5,e.easing),n=S({},A5,e.duration);return S({getAutoHeightDuration:z5,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0}=i;return H(i,N5),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof s=="string"?s:b0(s)} ${a} ${typeof l=="string"?l:b0(l)}`).join(",")}},e,{easing:t,duration:n})}const F5={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},B5=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Ea(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,s=H(e,B5);if(e.vars)throw new Error(jo(18));const a=E5(r),l=Ui(e);let c=Ft(l,{mixins:i5(l.breakpoints,n),palette:a,shadows:M5.slice(),typography:_5(a,i),transitions:D5(o),zIndex:S({},F5)});return c=Ft(c,s),c=t.reduce((d,f)=>Ft(d,f),c),c.unstable_sxConfig=S({},wa,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(f){return Wi({sx:f,theme:this})},c}const Eu=Ea();function io(){const e=hu(Eu);return e[Oo]||e}function le({props:e,name:t}){return qh({props:e,name:t,defaultTheme:Eu,themeId:Oo})}var $a={},zd={exports:{}},S0;function W5(){return S0||(S0=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(r.indexOf(i)>=0)continue;o[i]=n[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(zd)),zd.exports}const x2=Pr(n$),U5=Pr(r$),H5=Pr(c$),V5=Pr(u4),q5=Pr(X$),K5=Pr(n4);var qi=de;Object.defineProperty($a,"__esModule",{value:!0});var G5=$a.default=aT;$a.shouldForwardProp=$l;$a.systemDefaultTheme=void 0;var yn=qi(Db()),cp=qi(W5()),C0=tT(x2),Y5=U5;qi(H5);qi(V5);var X5=qi(q5),Q5=qi(K5);const J5=["ownerState"],Z5=["variants"],eT=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function b2(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(b2=function(r){return r?n:t})(e)}function tT(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=b2(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function nT(e){return Object.keys(e).length===0}function rT(e){return typeof e=="string"&&e.charCodeAt(0)>96}function $l(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const oT=$a.systemDefaultTheme=(0,X5.default)(),iT=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Za({defaultTheme:e,theme:t,themeId:n}){return nT(t)?e:t[n]||t}function sT(e){return e?(t,n)=>n[e]:null}function Tl(e,t){let{ownerState:n}=t,r=(0,cp.default)(t,J5);const o=typeof e=="function"?e((0,yn.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Tl(i,(0,yn.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let a=(0,cp.default)(o,Z5);return i.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props((0,yn.default)({ownerState:n},r,n)):Object.keys(l.props).forEach(d=>{(n==null?void 0:n[d])!==l.props[d]&&r[d]!==l.props[d]&&(c=!1)}),c&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style((0,yn.default)({ownerState:n},r,n)):l.style))}),a}return o}function aT(e={}){const{themeId:t,defaultTheme:n=oT,rootShouldForwardProp:r=$l,slotShouldForwardProp:o=$l}=e,i=s=>(0,Q5.default)((0,yn.default)({},s,{theme:Za((0,yn.default)({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{(0,C0.internal_processStyles)(s,k=>k.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:d,skipSx:f,overridesResolver:h=sT(iT(c))}=a,b=(0,cp.default)(a,eT),y=d!==void 0?d:c&&c!=="Root"&&c!=="root"||!1,v=f||!1;let C,g=$l;c==="Root"||c==="root"?g=r:c?g=o:rT(s)&&(g=void 0);const m=(0,C0.default)(s,(0,yn.default)({shouldForwardProp:g,label:C},b)),x=k=>typeof k=="function"&&k.__emotion_real!==k||(0,Y5.isPlainObject)(k)?P=>Tl(k,(0,yn.default)({},P,{theme:Za({theme:P.theme,defaultTheme:n,themeId:t})})):k,w=(k,...P)=>{let R=x(k);const E=P?P.map(x):[];l&&h&&E.push(O=>{const M=Za((0,yn.default)({},O,{defaultTheme:n,themeId:t}));if(!M.components||!M.components[l]||!M.components[l].styleOverrides)return null;const I=M.components[l].styleOverrides,N={};return Object.entries(I).forEach(([D,z])=>{N[D]=Tl(z,(0,yn.default)({},O,{theme:M}))}),h(O,N)}),l&&!y&&E.push(O=>{var M;const I=Za((0,yn.default)({},O,{defaultTheme:n,themeId:t})),N=I==null||(M=I.components)==null||(M=M[l])==null?void 0:M.variants;return Tl({variants:N},(0,yn.default)({},O,{theme:I}))}),v||E.push(i);const j=E.length-P.length;if(Array.isArray(k)&&j>0){const O=new Array(j).fill("");R=[...k,...O],R.raw=[...k.raw,...O]}const T=m(R,...E);return s.muiName&&(T.muiName=s.muiName),T};return m.withConfig&&(w.withConfig=m.withConfig),w}}function S2(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Mt=e=>S2(e)&&e!=="classes",B=G5({themeId:Oo,defaultTheme:Eu,rootShouldForwardProp:Mt}),lT=["theme"];function Qh(e){let{theme:t}=e,n=H(e,lT);const r=t[Oo];return u.jsx(H4,S({},n,{themeId:r?Oo:void 0,theme:r||t}))}const w0=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function cT(e){return re("MuiSvgIcon",e)}oe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const uT=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],dT=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${A(t)}`,`fontSize${A(n)}`]};return ie(o,cT,r)},fT=B("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${A(n.color)}`],t[`fontSize${A(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,s,a,l,c,d,f,h,b,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(s=i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem",medium:((a=e.typography)==null||(l=a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem",large:((c=e.typography)==null||(d=c.pxToRem)==null?void 0:d.call(c,35))||"2.1875rem"}[t.fontSize],color:(f=(h=(e.vars||e).palette)==null||(h=h[t.color])==null?void 0:h.main)!=null?f:{action:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.active,disabled:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.disabled,inherit:void 0}[t.color]}}),up=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:d=!1,titleAccess:f,viewBox:h="0 0 24 24"}=r,b=H(r,uT),y=p.isValidElement(o)&&o.type==="svg",v=S({},r,{color:s,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:h,hasSvgAsChild:y}),C={};d||(C.viewBox=h);const g=dT(v);return u.jsxs(fT,S({as:a,className:V(g.root,i),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},C,b,y&&o.props,{ownerState:v,children:[y?o.props.children:o,f?u.jsx("title",{children:f}):null]}))});up.muiName="SvgIcon";function Nt(e,t){function n(r,o){return u.jsx(up,S({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=up.muiName,p.memo(p.forwardRef(n))}const pT={configure:e=>{Wh.configure(e)}},hT=Object.freeze(Object.defineProperty({__proto__:null,capitalize:A,createChainedFunction:ap,createSvgIcon:Nt,debounce:Hi,deprecatedPropType:w4,isMuiElement:js,ownerDocument:ft,ownerWindow:_n,requirePropFactory:k4,setRef:uc,unstable_ClassNameGenerator:pT,unstable_useEnhancedEffect:dn,unstable_useId:ka,unsupportedProp:P4,useControlled:sa,useEventCallback:zt,useForkRef:Ye,useIsFocusVisible:Kh},Symbol.toStringTag,{value:"Module"}));var De={};/** - * @license React - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Jh=Symbol.for("react.element"),Zh=Symbol.for("react.portal"),$u=Symbol.for("react.fragment"),Tu=Symbol.for("react.strict_mode"),_u=Symbol.for("react.profiler"),ju=Symbol.for("react.provider"),Ou=Symbol.for("react.context"),mT=Symbol.for("react.server_context"),Iu=Symbol.for("react.forward_ref"),Mu=Symbol.for("react.suspense"),Nu=Symbol.for("react.suspense_list"),Lu=Symbol.for("react.memo"),Au=Symbol.for("react.lazy"),gT=Symbol.for("react.offscreen"),C2;C2=Symbol.for("react.module.reference");function Ln(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Jh:switch(e=e.type,e){case $u:case _u:case Tu:case Mu:case Nu:return e;default:switch(e=e&&e.$$typeof,e){case mT:case Ou:case Iu:case Au:case Lu:case ju:return e;default:return t}}case Zh:return t}}}De.ContextConsumer=Ou;De.ContextProvider=ju;De.Element=Jh;De.ForwardRef=Iu;De.Fragment=$u;De.Lazy=Au;De.Memo=Lu;De.Portal=Zh;De.Profiler=_u;De.StrictMode=Tu;De.Suspense=Mu;De.SuspenseList=Nu;De.isAsyncMode=function(){return!1};De.isConcurrentMode=function(){return!1};De.isContextConsumer=function(e){return Ln(e)===Ou};De.isContextProvider=function(e){return Ln(e)===ju};De.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Jh};De.isForwardRef=function(e){return Ln(e)===Iu};De.isFragment=function(e){return Ln(e)===$u};De.isLazy=function(e){return Ln(e)===Au};De.isMemo=function(e){return Ln(e)===Lu};De.isPortal=function(e){return Ln(e)===Zh};De.isProfiler=function(e){return Ln(e)===_u};De.isStrictMode=function(e){return Ln(e)===Tu};De.isSuspense=function(e){return Ln(e)===Mu};De.isSuspenseList=function(e){return Ln(e)===Nu};De.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===$u||e===_u||e===Tu||e===Mu||e===Nu||e===gT||typeof e=="object"&&e!==null&&(e.$$typeof===Au||e.$$typeof===Lu||e.$$typeof===ju||e.$$typeof===Ou||e.$$typeof===Iu||e.$$typeof===C2||e.getModuleId!==void 0)};De.typeOf=Ln;function zu(e){return le}function dp(e,t){return dp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},dp(e,t)}function w2(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,dp(e,t)}const k0={disabled:!1},hc=Vt.createContext(null);var vT=function(t){return t.scrollTop},xs="unmounted",ho="exited",mo="entering",Ko="entered",fp="exiting",Qn=function(e){w2(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=o,a=s&&!s.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?a?(l=ho,i.appearStatus=mo):l=Ko:r.unmountOnExit||r.mountOnEnter?l=xs:l=ho,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===xs?{status:ho}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==mo&&s!==Ko&&(i=mo):(s===mo||s===Ko)&&(i=fp)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,a;return i=s=a=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,a=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===mo){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Xa.findDOMNode(this);s&&vT(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ho&&this.setState({status:xs})},n.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[Xa.findDOMNode(this),a],c=l[0],d=l[1],f=this.getTimeouts(),h=a?f.appear:f.enter;if(!o&&!s||k0.disabled){this.safeSetState({status:Ko},function(){i.props.onEntered(c)});return}this.props.onEnter(c,d),this.safeSetState({status:mo},function(){i.props.onEntering(c,d),i.onTransitionEnd(h,function(){i.safeSetState({status:Ko},function(){i.props.onEntered(c,d)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:Xa.findDOMNode(this);if(!i||k0.disabled){this.safeSetState({status:ho},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:fp},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:ho},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:Xa.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=l[0],d=l[1];this.props.addEndListener(c,d)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===xs)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=H(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Vt.createElement(hc.Provider,{value:null},typeof s=="function"?s(o,a):Vt.cloneElement(Vt.Children.only(s),a))},t}(Vt.Component);Qn.contextType=hc;Qn.propTypes={};function qo(){}Qn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:qo,onEntering:qo,onEntered:qo,onExit:qo,onExiting:qo,onExited:qo};Qn.UNMOUNTED=xs;Qn.EXITED=ho;Qn.ENTERING=mo;Qn.ENTERED=Ko;Qn.EXITING=fp;function yT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function em(e,t){var n=function(i){return t&&p.isValidElement(i)?t(i):i},r=Object.create(null);return e&&p.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function xT(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var s,a={};for(var l in t){if(r[l])for(s=0;se.scrollTop;function Pi(e,t){var n,r;const{timeout:o,easing:i,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:s.transitionDelay}}function kT(e){return re("MuiPaper",e)}oe("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const RT=["className","component","elevation","square","variant"],PT=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return ie(i,kT,o)},ET=B("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return S({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&S({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${je("#fff",w0(t.elevation))}, ${je("#fff",w0(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),gn=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:s=1,square:a=!1,variant:l="elevation"}=r,c=H(r,RT),d=S({},r,{component:i,elevation:s,square:a,variant:l}),f=PT(d);return u.jsx(ET,S({as:i,ownerState:d,className:V(f.root,o),ref:n},c))});function Ei(e){return typeof e=="string"}function ai(e,t,n){return e===void 0||Ei(e)?t:S({},t,{ownerState:S({},t.ownerState,n)})}const $T={disableDefaultClasses:!1},TT=p.createContext($T);function _T(e){const{disableDefaultClasses:t}=p.useContext(TT);return n=>t?"":e(n)}function mc(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function k2(e,t,n){return typeof e=="function"?e(t,n):e}function R0(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function R2(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const b=V(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),y=S({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),v=S({},n,o,r);return b.length>0&&(v.className=b),Object.keys(y).length>0&&(v.style=y),{props:v,internalRef:void 0}}const s=mc(S({},o,r)),a=R0(r),l=R0(o),c=t(s),d=V(c==null?void 0:c.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),f=S({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),h=S({},c,n,l,a);return d.length>0&&(h.className=d),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:c.ref}}const jT=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function en(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,s=H(e,jT),a=i?{}:k2(r,o),{props:l,internalRef:c}=R2(S({},s,{externalSlotProps:a})),d=Ye(c,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return ai(n,S({},l,{ref:d}),o)}const OT=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],IT=["component","slots","slotProps"],MT=["component"];function pp(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,getSlotOwnerState:s,internalForwardedProps:a}=t,l=H(t,OT),{component:c,slots:d={[e]:void 0},slotProps:f={[e]:void 0}}=i,h=H(i,IT),b=d[e]||r,y=k2(f[e],o),v=R2(S({className:n},l,{externalForwardedProps:e==="root"?h:void 0,externalSlotProps:y})),{props:{component:C},internalRef:g}=v,m=H(v.props,MT),x=Ye(g,y==null?void 0:y.ref,t.ref),w=s?s(m):{},k=S({},o,w),P=e==="root"?C||c:C,R=ai(b,S({},e==="root"&&!c&&!d[e]&&a,e!=="root"&&!d[e]&&a,m,P&&{as:P},{ref:x}),k);return Object.keys(w).forEach(E=>{delete R[E]}),[b,R]}function NT(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:s,in:a,onExited:l,timeout:c}=e,[d,f]=p.useState(!1),h=V(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),b={width:s,height:s,top:-(s/2)+i,left:-(s/2)+o},y=V(n.child,d&&n.childLeaving,r&&n.childPulsate);return!a&&!d&&f(!0),p.useEffect(()=>{if(!a&&l!=null){const v=setTimeout(l,c);return()=>{clearTimeout(v)}}},[l,a,c]),u.jsx("span",{className:h,style:b,children:u.jsx("span",{className:y})})}const xn=oe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),LT=["center","classes","className"];let Du=e=>e,P0,E0,$0,T0;const hp=550,AT=80,zT=Bi(P0||(P0=Du` - 0% { - transform: scale(0); - opacity: 0.1; - } - - 100% { - transform: scale(1); - opacity: 0.3; - } -`)),DT=Bi(E0||(E0=Du` - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } -`)),FT=Bi($0||($0=Du` - 0% { - transform: scale(1); - } - - 50% { - transform: scale(0.92); - } - - 100% { - transform: scale(1); - } -`)),BT=B("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),WT=B(NT,{name:"MuiTouchRipple",slot:"Ripple"})(T0||(T0=Du` - opacity: 0; - position: absolute; - - &.${0} { - opacity: 0.3; - transform: scale(1); - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - &.${0} { - animation-duration: ${0}ms; - } - - & .${0} { - opacity: 1; - display: block; - width: 100%; - height: 100%; - border-radius: 50%; - background-color: currentColor; - } - - & .${0} { - opacity: 0; - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - & .${0} { - position: absolute; - /* @noflip */ - left: 0px; - top: 0; - animation-name: ${0}; - animation-duration: 2500ms; - animation-timing-function: ${0}; - animation-iteration-count: infinite; - animation-delay: 200ms; - } -`),xn.rippleVisible,zT,hp,({theme:e})=>e.transitions.easing.easeInOut,xn.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,xn.child,xn.childLeaving,DT,hp,({theme:e})=>e.transitions.easing.easeInOut,xn.childPulsate,FT,({theme:e})=>e.transitions.easing.easeInOut),UT=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s}=r,a=H(r,LT),[l,c]=p.useState([]),d=p.useRef(0),f=p.useRef(null);p.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const h=p.useRef(!1),b=xo(),y=p.useRef(null),v=p.useRef(null),C=p.useCallback(w=>{const{pulsate:k,rippleX:P,rippleY:R,rippleSize:E,cb:j}=w;c(T=>[...T,u.jsx(WT,{classes:{ripple:V(i.ripple,xn.ripple),rippleVisible:V(i.rippleVisible,xn.rippleVisible),ripplePulsate:V(i.ripplePulsate,xn.ripplePulsate),child:V(i.child,xn.child),childLeaving:V(i.childLeaving,xn.childLeaving),childPulsate:V(i.childPulsate,xn.childPulsate)},timeout:hp,pulsate:k,rippleX:P,rippleY:R,rippleSize:E},d.current)]),d.current+=1,f.current=j},[i]),g=p.useCallback((w={},k={},P=()=>{})=>{const{pulsate:R=!1,center:E=o||k.pulsate,fakeElement:j=!1}=k;if((w==null?void 0:w.type)==="mousedown"&&h.current){h.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(h.current=!0);const T=j?null:v.current,O=T?T.getBoundingClientRect():{width:0,height:0,left:0,top:0};let M,I,N;if(E||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)M=Math.round(O.width/2),I=Math.round(O.height/2);else{const{clientX:D,clientY:z}=w.touches&&w.touches.length>0?w.touches[0]:w;M=Math.round(D-O.left),I=Math.round(z-O.top)}if(E)N=Math.sqrt((2*O.width**2+O.height**2)/3),N%2===0&&(N+=1);else{const D=Math.max(Math.abs((T?T.clientWidth:0)-M),M)*2+2,z=Math.max(Math.abs((T?T.clientHeight:0)-I),I)*2+2;N=Math.sqrt(D**2+z**2)}w!=null&&w.touches?y.current===null&&(y.current=()=>{C({pulsate:R,rippleX:M,rippleY:I,rippleSize:N,cb:P})},b.start(AT,()=>{y.current&&(y.current(),y.current=null)})):C({pulsate:R,rippleX:M,rippleY:I,rippleSize:N,cb:P})},[o,C,b]),m=p.useCallback(()=>{g({},{pulsate:!0})},[g]),x=p.useCallback((w,k)=>{if(b.clear(),(w==null?void 0:w.type)==="touchend"&&y.current){y.current(),y.current=null,b.start(0,()=>{x(w,k)});return}y.current=null,c(P=>P.length>0?P.slice(1):P),f.current=k},[b]);return p.useImperativeHandle(n,()=>({pulsate:m,start:g,stop:x}),[m,g,x]),u.jsx(BT,S({className:V(xn.root,i.root,s),ref:v},a,{children:u.jsx(tm,{component:null,exit:!0,children:l})}))});function HT(e){return re("MuiButtonBase",e)}const VT=oe("MuiButtonBase",["root","disabled","focusVisible"]),qT=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],KT=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=ie({root:["root",t&&"disabled",n&&"focusVisible"]},HT,o);return n&&r&&(s.root+=` ${r}`),s},GT=B("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${VT.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),kr=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:a,component:l="button",disabled:c=!1,disableRipple:d=!1,disableTouchRipple:f=!1,focusRipple:h=!1,LinkComponent:b="a",onBlur:y,onClick:v,onContextMenu:C,onDragLeave:g,onFocus:m,onFocusVisible:x,onKeyDown:w,onKeyUp:k,onMouseDown:P,onMouseLeave:R,onMouseUp:E,onTouchEnd:j,onTouchMove:T,onTouchStart:O,tabIndex:M=0,TouchRippleProps:I,touchRippleRef:N,type:D}=r,z=H(r,qT),W=p.useRef(null),$=p.useRef(null),_=Ye($,N),{isFocusVisibleRef:F,onFocus:G,onBlur:X,ref:ce}=Kh(),[Z,ue]=p.useState(!1);c&&Z&&ue(!1),p.useImperativeHandle(o,()=>({focusVisible:()=>{ue(!0),W.current.focus()}}),[]);const[U,ee]=p.useState(!1);p.useEffect(()=>{ee(!0)},[]);const K=U&&!d&&!c;p.useEffect(()=>{Z&&h&&!d&&U&&$.current.pulsate()},[d,h,Z,U]);function Q(se,tt,Ut=f){return zt(tn=>(tt&&tt(tn),!Ut&&$.current&&$.current[se](tn),!0))}const he=Q("start",P),J=Q("stop",C),fe=Q("stop",g),pe=Q("stop",E),Se=Q("stop",se=>{Z&&se.preventDefault(),R&&R(se)}),xe=Q("start",O),Ct=Q("stop",j),Fe=Q("stop",T),ze=Q("stop",se=>{X(se),F.current===!1&&ue(!1),y&&y(se)},!1),pt=zt(se=>{W.current||(W.current=se.currentTarget),G(se),F.current===!0&&(ue(!0),x&&x(se)),m&&m(se)}),Me=()=>{const se=W.current;return l&&l!=="button"&&!(se.tagName==="A"&&se.href)},ke=p.useRef(!1),ct=zt(se=>{h&&!ke.current&&Z&&$.current&&se.key===" "&&(ke.current=!0,$.current.stop(se,()=>{$.current.start(se)})),se.target===se.currentTarget&&Me()&&se.key===" "&&se.preventDefault(),w&&w(se),se.target===se.currentTarget&&Me()&&se.key==="Enter"&&!c&&(se.preventDefault(),v&&v(se))}),He=zt(se=>{h&&se.key===" "&&$.current&&Z&&!se.defaultPrevented&&(ke.current=!1,$.current.stop(se,()=>{$.current.pulsate(se)})),k&&k(se),v&&se.target===se.currentTarget&&Me()&&se.key===" "&&!se.defaultPrevented&&v(se)});let Ee=l;Ee==="button"&&(z.href||z.to)&&(Ee=b);const ht={};Ee==="button"?(ht.type=D===void 0?"button":D,ht.disabled=c):(!z.href&&!z.to&&(ht.role="button"),c&&(ht["aria-disabled"]=c));const yt=Ye(n,ce,W),wt=S({},r,{centerRipple:i,component:l,disabled:c,disableRipple:d,disableTouchRipple:f,focusRipple:h,tabIndex:M,focusVisible:Z}),Re=KT(wt);return u.jsxs(GT,S({as:Ee,className:V(Re.root,a),ownerState:wt,onBlur:ze,onClick:v,onContextMenu:J,onFocus:pt,onKeyDown:ct,onKeyUp:He,onMouseDown:he,onMouseLeave:Se,onMouseUp:pe,onDragLeave:fe,onTouchEnd:Ct,onTouchMove:Fe,onTouchStart:xe,ref:yt,tabIndex:c?-1:M,type:D},ht,z,{children:[s,K?u.jsx(UT,S({ref:_,center:i},I)):null]}))});function YT(e){return re("MuiAlert",e)}const _0=oe("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function XT(e){return re("MuiIconButton",e)}const QT=oe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),JT=["edge","children","className","color","disabled","disableFocusRipple","size"],ZT=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${A(r)}`,o&&`edge${A(o)}`,`size${A(i)}`]};return ie(s,XT,t)},e_=B(kr,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${A(n.color)}`],n.edge&&t[`edge${A(n.edge)}`],t[`size${A(n.size)}`]]}})(({theme:e,ownerState:t})=>S({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:je(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return S({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&S({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":S({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:je(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${QT.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Qe=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:a="default",disabled:l=!1,disableFocusRipple:c=!1,size:d="medium"}=r,f=H(r,JT),h=S({},r,{edge:o,color:a,disabled:l,disableFocusRipple:c,size:d}),b=ZT(h);return u.jsx(e_,S({className:V(b.root,s),centerRipple:!0,focusRipple:!c,disabled:l,ref:n},f,{ownerState:h,children:i}))}),t_=Nt(u.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),n_=Nt(u.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),r_=Nt(u.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),o_=Nt(u.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),i_=Nt(u.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),s_=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],a_=zu(),l_=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`color${A(n||r)}`,`${t}${A(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return ie(i,YT,o)},c_=B(gn,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${A(n.color||n.severity)}`]]}})(({theme:e})=>{const t=e.palette.mode==="light"?dc:fc,n=e.palette.mode==="light"?fc:dc;return S({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${_0.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${_0.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.dark).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:S({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)})}))]})}),u_=B("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),d_=B("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),j0=B("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),O0={success:u.jsx(t_,{fontSize:"inherit"}),warning:u.jsx(n_,{fontSize:"inherit"}),error:u.jsx(r_,{fontSize:"inherit"}),info:u.jsx(o_,{fontSize:"inherit"})},ur=p.forwardRef(function(t,n){const r=a_({props:t,name:"MuiAlert"}),{action:o,children:i,className:s,closeText:a="Close",color:l,components:c={},componentsProps:d={},icon:f,iconMapping:h=O0,onClose:b,role:y="alert",severity:v="success",slotProps:C={},slots:g={},variant:m="standard"}=r,x=H(r,s_),w=S({},r,{color:l,severity:v,variant:m,colorSeverity:l||v}),k=l_(w),P={slots:S({closeButton:c.CloseButton,closeIcon:c.CloseIcon},g),slotProps:S({},d,C)},[R,E]=pp("closeButton",{elementType:Qe,externalForwardedProps:P,ownerState:w}),[j,T]=pp("closeIcon",{elementType:i_,externalForwardedProps:P,ownerState:w});return u.jsxs(c_,S({role:y,elevation:0,ownerState:w,className:V(k.root,s),ref:n},x,{children:[f!==!1?u.jsx(u_,{ownerState:w,className:k.icon,children:f||h[v]||O0[v]}):null,u.jsx(d_,{ownerState:w,className:k.message,children:i}),o!=null?u.jsx(j0,{ownerState:w,className:k.action,children:o}):null,o==null&&b?u.jsx(j0,{ownerState:w,className:k.action,children:u.jsx(R,S({size:"small","aria-label":a,title:a,color:"inherit",onClick:b},E,{children:u.jsx(j,S({fontSize:"small"},T))}))}):null]}))});function f_(e){return re("MuiTypography",e)}oe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const p_=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],h_=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=e,a={root:["root",i,e.align!=="inherit"&&`align${A(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return ie(a,f_,s)},m_=B("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${A(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>S({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),I0={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},g_={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},v_=e=>g_[e]||e,ye=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiTypography"}),o=v_(r.color),i=mu(S({},r,{color:o})),{align:s="inherit",className:a,component:l,gutterBottom:c=!1,noWrap:d=!1,paragraph:f=!1,variant:h="body1",variantMapping:b=I0}=i,y=H(i,p_),v=S({},i,{align:s,color:o,className:a,component:l,gutterBottom:c,noWrap:d,paragraph:f,variant:h,variantMapping:b}),C=l||(f?"p":b[h]||I0[h])||"span",g=h_(v);return u.jsx(m_,S({as:C,ref:n,ownerState:v,className:V(g.root,a)},y))});function y_(e){return re("MuiAppBar",e)}oe("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const x_=["className","color","enableColorOnDark","position"],b_=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${A(t)}`,`position${A(n)}`]};return ie(o,y_,r)},el=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,S_=B(gn,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${A(n.position)}`],t[`color${A(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return S({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&S({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&S({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&S({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:el(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:el(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:el(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:el(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),C_=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:s=!1,position:a="fixed"}=r,l=H(r,x_),c=S({},r,{color:i,position:a,enableColorOnDark:s}),d=b_(c);return u.jsx(S_,S({square:!0,component:"header",ownerState:c,elevation:4,className:V(d.root,o,a==="fixed"&&"mui-fixed"),ref:n},l))});function w_(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=l2({badgeContent:t,max:r});let s=n;n===!1&&t===0&&!o&&(s=!0);const{badgeContent:a,max:l=r}=s?i:e,c=a&&Number(a)>l?`${l}+`:a;return{badgeContent:a,invisible:s,max:l,displayValue:c}}const P2="base";function k_(e){return`${P2}--${e}`}function R_(e,t){return`${P2}-${e}-${t}`}function E2(e,t){const n=e2[t];return n?k_(n):R_(e,t)}function P_(e,t){const n={};return t.forEach(r=>{n[r]=E2(e,r)}),n}function M0(e){return e.substring(2).toLowerCase()}function E_(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const d=Ye(t.ref,a),f=zt(y=>{const v=c.current;c.current=!1;const C=ft(a.current);if(!l.current||!a.current||"clientX"in y&&E_(y,C))return;if(s.current){s.current=!1;return}let g;y.composedPath?g=y.composedPath().indexOf(a.current)>-1:g=!C.documentElement.contains(y.target)||a.current.contains(y.target),!g&&(n||!v)&&o(y)}),h=y=>v=>{c.current=!0;const C=t.props[y];C&&C(v)},b={ref:d};return i!==!1&&(b[i]=h(i)),p.useEffect(()=>{if(i!==!1){const y=M0(i),v=ft(a.current),C=()=>{s.current=!0};return v.addEventListener(y,f),v.addEventListener("touchmove",C),()=>{v.removeEventListener(y,f),v.removeEventListener("touchmove",C)}}},[f,i]),r!==!1&&(b[r]=h(r)),p.useEffect(()=>{if(r!==!1){const y=M0(r),v=ft(a.current);return v.addEventListener(y,f),()=>{v.removeEventListener(y,f)}}},[f,r]),u.jsx(p.Fragment,{children:p.cloneElement(t,b)})}const T_=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function __(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function j_(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function O_(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||j_(e))}function I_(e){const t=[],n=[];return Array.from(e.querySelectorAll(T_)).forEach((r,o)=>{const i=__(r);i===-1||!O_(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function M_(){return!0}function N_(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=I_,isEnabled:s=M_,open:a}=e,l=p.useRef(!1),c=p.useRef(null),d=p.useRef(null),f=p.useRef(null),h=p.useRef(null),b=p.useRef(!1),y=p.useRef(null),v=Ye(t.ref,y),C=p.useRef(null);p.useEffect(()=>{!a||!y.current||(b.current=!n)},[n,a]),p.useEffect(()=>{if(!a||!y.current)return;const x=ft(y.current);return y.current.contains(x.activeElement)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex","-1"),b.current&&y.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[a]),p.useEffect(()=>{if(!a||!y.current)return;const x=ft(y.current),w=R=>{C.current=R,!(r||!s()||R.key!=="Tab")&&x.activeElement===y.current&&R.shiftKey&&(l.current=!0,d.current&&d.current.focus())},k=()=>{const R=y.current;if(R===null)return;if(!x.hasFocus()||!s()||l.current){l.current=!1;return}if(R.contains(x.activeElement)||r&&x.activeElement!==c.current&&x.activeElement!==d.current)return;if(x.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!b.current)return;let E=[];if((x.activeElement===c.current||x.activeElement===d.current)&&(E=i(y.current)),E.length>0){var j,T;const O=!!((j=C.current)!=null&&j.shiftKey&&((T=C.current)==null?void 0:T.key)==="Tab"),M=E[0],I=E[E.length-1];typeof M!="string"&&typeof I!="string"&&(O?I.focus():M.focus())}else R.focus()};x.addEventListener("focusin",k),x.addEventListener("keydown",w,!0);const P=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&k()},50);return()=>{clearInterval(P),x.removeEventListener("focusin",k),x.removeEventListener("keydown",w,!0)}},[n,r,o,s,a,i]);const g=x=>{f.current===null&&(f.current=x.relatedTarget),b.current=!0,h.current=x.target;const w=t.props.onFocus;w&&w(x)},m=x=>{f.current===null&&(f.current=x.relatedTarget),b.current=!0};return u.jsxs(p.Fragment,{children:[u.jsx("div",{tabIndex:a?0:-1,onFocus:m,ref:c,"data-testid":"sentinelStart"}),p.cloneElement(t,{ref:v,onFocus:g}),u.jsx("div",{tabIndex:a?0:-1,onFocus:m,ref:d,"data-testid":"sentinelEnd"})]})}function L_(e){return typeof e=="function"?e():e}const $2=p.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[s,a]=p.useState(null),l=Ye(p.isValidElement(r)?r.ref:null,n);if(dn(()=>{i||a(L_(o)||document.body)},[o,i]),dn(()=>{if(s&&!i)return uc(n,s),()=>{uc(n,null)}},[n,s,i]),i){if(p.isValidElement(r)){const c={ref:l};return p.cloneElement(r,c)}return u.jsx(p.Fragment,{children:r})}return u.jsx(p.Fragment,{children:s&&Sh.createPortal(r,s)})});function A_(e){const t=ft(e);return t.body===e?_n(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Os(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function N0(e){return parseInt(_n(e).getComputedStyle(e).paddingRight,10)||0}function z_(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function L0(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,s=>{const a=i.indexOf(s)===-1,l=!z_(s);a&&l&&Os(s,o)})}function Dd(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function D_(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(A_(r)){const s=s2(ft(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${N0(r)+s}px`;const a=ft(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${N0(l)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=ft(r).body;else{const s=r.parentElement,a=_n(r);i=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:s,property:a})=>{i?s.style.setProperty(a,i):s.style.removeProperty(a)})}}function F_(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class B_{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Os(t.modalRef,!1);const o=F_(n);L0(n,t.mount,t.modalRef,o,!0);const i=Dd(this.containers,s=>s.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Dd(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=D_(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Dd(this.containers,s=>s.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Os(t.modalRef,n),L0(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=i.modals[i.modals.length-1];s.modalRef&&Os(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function W_(e){return typeof e=="function"?e():e}function U_(e){return e?e.props.hasOwnProperty("in"):!1}const H_=new B_;function V_(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=H_,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:c,open:d,rootRef:f}=e,h=p.useRef({}),b=p.useRef(null),y=p.useRef(null),v=Ye(y,f),[C,g]=p.useState(!d),m=U_(l);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const w=()=>ft(b.current),k=()=>(h.current.modalRef=y.current,h.current.mount=b.current,h.current),P=()=>{o.mount(k(),{disableScrollLock:r}),y.current&&(y.current.scrollTop=0)},R=zt(()=>{const z=W_(t)||w().body;o.add(k(),z),y.current&&P()}),E=p.useCallback(()=>o.isTopModal(k()),[o]),j=zt(z=>{b.current=z,z&&(d&&E()?P():y.current&&Os(y.current,x))}),T=p.useCallback(()=>{o.remove(k(),x)},[x,o]);p.useEffect(()=>()=>{T()},[T]),p.useEffect(()=>{d?R():(!m||!i)&&T()},[d,T,m,i,R]);const O=z=>W=>{var $;($=z.onKeyDown)==null||$.call(z,W),!(W.key!=="Escape"||W.which===229||!E())&&(n||(W.stopPropagation(),c&&c(W,"escapeKeyDown")))},M=z=>W=>{var $;($=z.onClick)==null||$.call(z,W),W.target===W.currentTarget&&c&&c(W,"backdropClick")};return{getRootProps:(z={})=>{const W=mc(e);delete W.onTransitionEnter,delete W.onTransitionExited;const $=S({},W,z);return S({role:"presentation"},$,{onKeyDown:O($),ref:v})},getBackdropProps:(z={})=>{const W=z;return S({"aria-hidden":!0},W,{onClick:M(W),open:d})},getTransitionProps:()=>{const z=()=>{g(!1),s&&s()},W=()=>{g(!0),a&&a(),i&&T()};return{onEnter:ap(z,l==null?void 0:l.props.onEnter),onExited:ap(W,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:j,isTopModal:E,exited:C,hasTransition:m}}var Qt="top",On="bottom",In="right",Jt="left",rm="auto",Ta=[Qt,On,In,Jt],$i="start",aa="end",q_="clippingParents",T2="viewport",ls="popper",K_="reference",A0=Ta.reduce(function(e,t){return e.concat([t+"-"+$i,t+"-"+aa])},[]),_2=[].concat(Ta,[rm]).reduce(function(e,t){return e.concat([t,t+"-"+$i,t+"-"+aa])},[]),G_="beforeRead",Y_="read",X_="afterRead",Q_="beforeMain",J_="main",Z_="afterMain",ej="beforeWrite",tj="write",nj="afterWrite",rj=[G_,Y_,X_,Q_,J_,Z_,ej,tj,nj];function cr(e){return e?(e.nodeName||"").toLowerCase():null}function fn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Mo(e){var t=fn(e).Element;return e instanceof t||e instanceof Element}function En(e){var t=fn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function om(e){if(typeof ShadowRoot>"u")return!1;var t=fn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function oj(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!En(i)||!cr(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function ij(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(l,c){return l[c]="",l},{});!En(o)||!cr(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const sj={name:"applyStyles",enabled:!0,phase:"write",fn:oj,effect:ij,requires:["computeStyles"]};function sr(e){return e.split("-")[0]}var ko=Math.max,gc=Math.min,Ti=Math.round;function mp(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function j2(){return!/^((?!chrome|android).)*safari/i.test(mp())}function _i(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&En(e)&&(o=e.offsetWidth>0&&Ti(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ti(r.height)/e.offsetHeight||1);var s=Mo(e)?fn(e):window,a=s.visualViewport,l=!j2()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/o,d=(r.top+(l&&a?a.offsetTop:0))/i,f=r.width/o,h=r.height/i;return{width:f,height:h,top:d,right:c+f,bottom:d+h,left:c,x:c,y:d}}function im(e){var t=_i(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function O2(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&om(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Rr(e){return fn(e).getComputedStyle(e)}function aj(e){return["table","td","th"].indexOf(cr(e))>=0}function so(e){return((Mo(e)?e.ownerDocument:e.document)||window.document).documentElement}function Fu(e){return cr(e)==="html"?e:e.assignedSlot||e.parentNode||(om(e)?e.host:null)||so(e)}function z0(e){return!En(e)||Rr(e).position==="fixed"?null:e.offsetParent}function lj(e){var t=/firefox/i.test(mp()),n=/Trident/i.test(mp());if(n&&En(e)){var r=Rr(e);if(r.position==="fixed")return null}var o=Fu(e);for(om(o)&&(o=o.host);En(o)&&["html","body"].indexOf(cr(o))<0;){var i=Rr(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function _a(e){for(var t=fn(e),n=z0(e);n&&aj(n)&&Rr(n).position==="static";)n=z0(n);return n&&(cr(n)==="html"||cr(n)==="body"&&Rr(n).position==="static")?t:n||lj(e)||t}function sm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Is(e,t,n){return ko(e,gc(t,n))}function cj(e,t,n){var r=Is(e,t,n);return r>n?n:r}function I2(){return{top:0,right:0,bottom:0,left:0}}function M2(e){return Object.assign({},I2(),e)}function N2(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var uj=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,M2(typeof t!="number"?t:N2(t,Ta))};function dj(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=sr(n.placement),l=sm(a),c=[Jt,In].indexOf(a)>=0,d=c?"height":"width";if(!(!i||!s)){var f=uj(o.padding,n),h=im(i),b=l==="y"?Qt:Jt,y=l==="y"?On:In,v=n.rects.reference[d]+n.rects.reference[l]-s[l]-n.rects.popper[d],C=s[l]-n.rects.reference[l],g=_a(i),m=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,x=v/2-C/2,w=f[b],k=m-h[d]-f[y],P=m/2-h[d]/2+x,R=Is(w,P,k),E=l;n.modifiersData[r]=(t={},t[E]=R,t.centerOffset=R-P,t)}}function fj(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||O2(t.elements.popper,o)&&(t.elements.arrow=o))}const pj={name:"arrow",enabled:!0,phase:"main",fn:dj,effect:fj,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ji(e){return e.split("-")[1]}var hj={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mj(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Ti(n*o)/o||0,y:Ti(r*o)/o||0}}function D0(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,f=e.isFixed,h=s.x,b=h===void 0?0:h,y=s.y,v=y===void 0?0:y,C=typeof d=="function"?d({x:b,y:v}):{x:b,y:v};b=C.x,v=C.y;var g=s.hasOwnProperty("x"),m=s.hasOwnProperty("y"),x=Jt,w=Qt,k=window;if(c){var P=_a(n),R="clientHeight",E="clientWidth";if(P===fn(n)&&(P=so(n),Rr(P).position!=="static"&&a==="absolute"&&(R="scrollHeight",E="scrollWidth")),P=P,o===Qt||(o===Jt||o===In)&&i===aa){w=On;var j=f&&P===k&&k.visualViewport?k.visualViewport.height:P[R];v-=j-r.height,v*=l?1:-1}if(o===Jt||(o===Qt||o===On)&&i===aa){x=In;var T=f&&P===k&&k.visualViewport?k.visualViewport.width:P[E];b-=T-r.width,b*=l?1:-1}}var O=Object.assign({position:a},c&&hj),M=d===!0?mj({x:b,y:v},fn(n)):{x:b,y:v};if(b=M.x,v=M.y,l){var I;return Object.assign({},O,(I={},I[w]=m?"0":"",I[x]=g?"0":"",I.transform=(k.devicePixelRatio||1)<=1?"translate("+b+"px, "+v+"px)":"translate3d("+b+"px, "+v+"px, 0)",I))}return Object.assign({},O,(t={},t[w]=m?v+"px":"",t[x]=g?b+"px":"",t.transform="",t))}function gj(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:sr(t.placement),variation:ji(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,D0(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,D0(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const vj={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:gj,data:{}};var tl={passive:!0};function yj(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,l=fn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(d){d.addEventListener("scroll",n.update,tl)}),a&&l.addEventListener("resize",n.update,tl),function(){i&&c.forEach(function(d){d.removeEventListener("scroll",n.update,tl)}),a&&l.removeEventListener("resize",n.update,tl)}}const xj={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:yj,data:{}};var bj={left:"right",right:"left",bottom:"top",top:"bottom"};function _l(e){return e.replace(/left|right|bottom|top/g,function(t){return bj[t]})}var Sj={start:"end",end:"start"};function F0(e){return e.replace(/start|end/g,function(t){return Sj[t]})}function am(e){var t=fn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function lm(e){return _i(so(e)).left+am(e).scrollLeft}function Cj(e,t){var n=fn(e),r=so(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var c=j2();(c||!c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+lm(e),y:l}}function wj(e){var t,n=so(e),r=am(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=ko(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=ko(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+lm(e),l=-r.scrollTop;return Rr(o||n).direction==="rtl"&&(a+=ko(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function cm(e){var t=Rr(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function L2(e){return["html","body","#document"].indexOf(cr(e))>=0?e.ownerDocument.body:En(e)&&cm(e)?e:L2(Fu(e))}function Ms(e,t){var n;t===void 0&&(t=[]);var r=L2(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=fn(r),s=o?[i].concat(i.visualViewport||[],cm(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(Ms(Fu(s)))}function gp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function kj(e,t){var n=_i(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function B0(e,t,n){return t===T2?gp(Cj(e,n)):Mo(t)?kj(t,n):gp(wj(so(e)))}function Rj(e){var t=Ms(Fu(e)),n=["absolute","fixed"].indexOf(Rr(e).position)>=0,r=n&&En(e)?_a(e):e;return Mo(r)?t.filter(function(o){return Mo(o)&&O2(o,r)&&cr(o)!=="body"}):[]}function Pj(e,t,n,r){var o=t==="clippingParents"?Rj(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(l,c){var d=B0(e,c,r);return l.top=ko(d.top,l.top),l.right=gc(d.right,l.right),l.bottom=gc(d.bottom,l.bottom),l.left=ko(d.left,l.left),l},B0(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function A2(e){var t=e.reference,n=e.element,r=e.placement,o=r?sr(r):null,i=r?ji(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case Qt:l={x:s,y:t.y-n.height};break;case On:l={x:s,y:t.y+t.height};break;case In:l={x:t.x+t.width,y:a};break;case Jt:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=o?sm(o):null;if(c!=null){var d=c==="y"?"height":"width";switch(i){case $i:l[c]=l[c]-(t[d]/2-n[d]/2);break;case aa:l[c]=l[c]+(t[d]/2-n[d]/2);break}}return l}function la(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,a=n.boundary,l=a===void 0?q_:a,c=n.rootBoundary,d=c===void 0?T2:c,f=n.elementContext,h=f===void 0?ls:f,b=n.altBoundary,y=b===void 0?!1:b,v=n.padding,C=v===void 0?0:v,g=M2(typeof C!="number"?C:N2(C,Ta)),m=h===ls?K_:ls,x=e.rects.popper,w=e.elements[y?m:h],k=Pj(Mo(w)?w:w.contextElement||so(e.elements.popper),l,d,s),P=_i(e.elements.reference),R=A2({reference:P,element:x,strategy:"absolute",placement:o}),E=gp(Object.assign({},x,R)),j=h===ls?E:P,T={top:k.top-j.top+g.top,bottom:j.bottom-k.bottom+g.bottom,left:k.left-j.left+g.left,right:j.right-k.right+g.right},O=e.modifiersData.offset;if(h===ls&&O){var M=O[o];Object.keys(T).forEach(function(I){var N=[In,On].indexOf(I)>=0?1:-1,D=[Qt,On].indexOf(I)>=0?"y":"x";T[I]+=M[D]*N})}return T}function Ej(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?_2:l,d=ji(r),f=d?a?A0:A0.filter(function(y){return ji(y)===d}):Ta,h=f.filter(function(y){return c.indexOf(y)>=0});h.length===0&&(h=f);var b=h.reduce(function(y,v){return y[v]=la(e,{placement:v,boundary:o,rootBoundary:i,padding:s})[sr(v)],y},{});return Object.keys(b).sort(function(y,v){return b[y]-b[v]})}function $j(e){if(sr(e)===rm)return[];var t=_l(e);return[F0(e),t,F0(t)]}function Tj(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,d=n.boundary,f=n.rootBoundary,h=n.altBoundary,b=n.flipVariations,y=b===void 0?!0:b,v=n.allowedAutoPlacements,C=t.options.placement,g=sr(C),m=g===C,x=l||(m||!y?[_l(C)]:$j(C)),w=[C].concat(x).reduce(function(Z,ue){return Z.concat(sr(ue)===rm?Ej(t,{placement:ue,boundary:d,rootBoundary:f,padding:c,flipVariations:y,allowedAutoPlacements:v}):ue)},[]),k=t.rects.reference,P=t.rects.popper,R=new Map,E=!0,j=w[0],T=0;T=0,D=N?"width":"height",z=la(t,{placement:O,boundary:d,rootBoundary:f,altBoundary:h,padding:c}),W=N?I?In:Jt:I?On:Qt;k[D]>P[D]&&(W=_l(W));var $=_l(W),_=[];if(i&&_.push(z[M]<=0),a&&_.push(z[W]<=0,z[$]<=0),_.every(function(Z){return Z})){j=O,E=!1;break}R.set(O,_)}if(E)for(var F=y?3:1,G=function(ue){var U=w.find(function(ee){var K=R.get(ee);if(K)return K.slice(0,ue).every(function(Q){return Q})});if(U)return j=U,"break"},X=F;X>0;X--){var ce=G(X);if(ce==="break")break}t.placement!==j&&(t.modifiersData[r]._skip=!0,t.placement=j,t.reset=!0)}}const _j={name:"flip",enabled:!0,phase:"main",fn:Tj,requiresIfExists:["offset"],data:{_skip:!1}};function W0(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function U0(e){return[Qt,In,On,Jt].some(function(t){return e[t]>=0})}function jj(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=la(t,{elementContext:"reference"}),a=la(t,{altBoundary:!0}),l=W0(s,r),c=W0(a,o,i),d=U0(l),f=U0(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const Oj={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:jj};function Ij(e,t,n){var r=sr(e),o=[Jt,Qt].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[Jt,In].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function Mj(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=_2.reduce(function(d,f){return d[f]=Ij(f,t.rects,i),d},{}),a=s[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const Nj={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Mj};function Lj(e){var t=e.state,n=e.name;t.modifiersData[n]=A2({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Aj={name:"popperOffsets",enabled:!0,phase:"read",fn:Lj,data:{}};function zj(e){return e==="x"?"y":"x"}function Dj(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,f=n.padding,h=n.tether,b=h===void 0?!0:h,y=n.tetherOffset,v=y===void 0?0:y,C=la(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:d}),g=sr(t.placement),m=ji(t.placement),x=!m,w=sm(g),k=zj(w),P=t.modifiersData.popperOffsets,R=t.rects.reference,E=t.rects.popper,j=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,T=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(P){if(i){var I,N=w==="y"?Qt:Jt,D=w==="y"?On:In,z=w==="y"?"height":"width",W=P[w],$=W+C[N],_=W-C[D],F=b?-E[z]/2:0,G=m===$i?R[z]:E[z],X=m===$i?-E[z]:-R[z],ce=t.elements.arrow,Z=b&&ce?im(ce):{width:0,height:0},ue=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:I2(),U=ue[N],ee=ue[D],K=Is(0,R[z],Z[z]),Q=x?R[z]/2-F-K-U-T.mainAxis:G-K-U-T.mainAxis,he=x?-R[z]/2+F+K+ee+T.mainAxis:X+K+ee+T.mainAxis,J=t.elements.arrow&&_a(t.elements.arrow),fe=J?w==="y"?J.clientTop||0:J.clientLeft||0:0,pe=(I=O==null?void 0:O[w])!=null?I:0,Se=W+Q-pe-fe,xe=W+he-pe,Ct=Is(b?gc($,Se):$,W,b?ko(_,xe):_);P[w]=Ct,M[w]=Ct-W}if(a){var Fe,ze=w==="x"?Qt:Jt,pt=w==="x"?On:In,Me=P[k],ke=k==="y"?"height":"width",ct=Me+C[ze],He=Me-C[pt],Ee=[Qt,Jt].indexOf(g)!==-1,ht=(Fe=O==null?void 0:O[k])!=null?Fe:0,yt=Ee?ct:Me-R[ke]-E[ke]-ht+T.altAxis,wt=Ee?Me+R[ke]+E[ke]-ht-T.altAxis:He,Re=b&&Ee?cj(yt,Me,wt):Is(b?yt:ct,Me,b?wt:He);P[k]=Re,M[k]=Re-Me}t.modifiersData[r]=M}}const Fj={name:"preventOverflow",enabled:!0,phase:"main",fn:Dj,requiresIfExists:["offset"]};function Bj(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Wj(e){return e===fn(e)||!En(e)?am(e):Bj(e)}function Uj(e){var t=e.getBoundingClientRect(),n=Ti(t.width)/e.offsetWidth||1,r=Ti(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Hj(e,t,n){n===void 0&&(n=!1);var r=En(t),o=En(t)&&Uj(t),i=so(t),s=_i(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((cr(t)!=="body"||cm(i))&&(a=Wj(t)),En(t)?(l=_i(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=lm(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function Vj(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function qj(e){var t=Vj(e);return rj.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Kj(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Gj(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var H0={placement:"bottom",modifiers:[],strategy:"absolute"};function V0(){for(var e=arguments.length,t=new Array(e),n=0;nie({root:["root"]},_T(Jj)),o3={},i3=p.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:s,disablePortal:a,modifiers:l,open:c,placement:d,popperOptions:f,popperRef:h,slotProps:b={},slots:y={},TransitionProps:v}=t,C=H(t,Zj),g=p.useRef(null),m=Ye(g,n),x=p.useRef(null),w=Ye(x,h),k=p.useRef(w);dn(()=>{k.current=w},[w]),p.useImperativeHandle(h,()=>x.current,[]);const P=t3(d,s),[R,E]=p.useState(P),[j,T]=p.useState(vp(o));p.useEffect(()=>{x.current&&x.current.forceUpdate()}),p.useEffect(()=>{o&&T(vp(o))},[o]),dn(()=>{if(!j||!c)return;const D=$=>{E($.placement)};let z=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:$})=>{D($)}}];l!=null&&(z=z.concat(l)),f&&f.modifiers!=null&&(z=z.concat(f.modifiers));const W=Qj(j,g.current,S({placement:P},f,{modifiers:z}));return k.current(W),()=>{W.destroy(),k.current(null)}},[j,a,l,c,f,P]);const O={placement:R};v!==null&&(O.TransitionProps=v);const M=r3(),I=(r=y.root)!=null?r:"div",N=en({elementType:I,externalSlotProps:b.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:m},ownerState:t,className:M.root});return u.jsx(I,S({},N,{children:typeof i=="function"?i(O):i}))}),s3=p.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:s="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:d,placement:f="bottom",popperOptions:h=o3,popperRef:b,style:y,transition:v=!1,slotProps:C={},slots:g={}}=t,m=H(t,e3),[x,w]=p.useState(!0),k=()=>{w(!1)},P=()=>{w(!0)};if(!l&&!d&&(!v||x))return null;let R;if(i)R=i;else if(r){const T=vp(r);R=T&&n3(T)?ft(T).body:ft(null).body}const E=!d&&l&&(!v||x)?"none":void 0,j=v?{in:d,onEnter:k,onExited:P}:void 0;return u.jsx($2,{disablePortal:a,container:R,children:u.jsx(i3,S({anchorEl:r,direction:s,disablePortal:a,modifiers:c,ref:n,open:v?!x:d,placement:f,popperOptions:h,popperRef:b,slotProps:C,slots:g},m,{style:S({position:"fixed",top:0,left:0,display:E},y),TransitionProps:j,children:o}))})});function a3(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:i}=e,s=xo();p.useEffect(()=>{if(!o)return;function g(m){m.defaultPrevented||(m.key==="Escape"||m.key==="Esc")&&(r==null||r(m,"escapeKeyDown"))}return document.addEventListener("keydown",g),()=>{document.removeEventListener("keydown",g)}},[o,r]);const a=zt((g,m)=>{r==null||r(g,m)}),l=zt(g=>{!r||g==null||s.start(g,()=>{a(null,"timeout")})});p.useEffect(()=>(o&&l(t),s.clear),[o,t,l,s]);const c=g=>{r==null||r(g,"clickaway")},d=s.clear,f=p.useCallback(()=>{t!=null&&l(i??t*.5)},[t,i,l]),h=g=>m=>{const x=g.onBlur;x==null||x(m),f()},b=g=>m=>{const x=g.onFocus;x==null||x(m),d()},y=g=>m=>{const x=g.onMouseEnter;x==null||x(m),d()},v=g=>m=>{const x=g.onMouseLeave;x==null||x(m),f()};return p.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",f),window.addEventListener("blur",d),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",d)}},[n,o,f,d]),{getRootProps:(g={})=>{const m=S({},mc(e),mc(g));return S({role:"presentation"},g,m,{onBlur:h(m),onFocus:b(m),onMouseEnter:y(m),onMouseLeave:v(m)})},onClickAway:c}}const l3=["onChange","maxRows","minRows","style","value"];function nl(e){return parseInt(e,10)||0}const c3={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function u3(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const d3=p.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:s,value:a}=t,l=H(t,l3),{current:c}=p.useRef(a!=null),d=p.useRef(null),f=Ye(n,d),h=p.useRef(null),b=p.useCallback(()=>{const C=d.current,m=_n(C).getComputedStyle(C);if(m.width==="0px")return{outerHeightStyle:0,overflowing:!1};const x=h.current;x.style.width=m.width,x.value=C.value||t.placeholder||"x",x.value.slice(-1)===` -`&&(x.value+=" ");const w=m.boxSizing,k=nl(m.paddingBottom)+nl(m.paddingTop),P=nl(m.borderBottomWidth)+nl(m.borderTopWidth),R=x.scrollHeight;x.value="x";const E=x.scrollHeight;let j=R;i&&(j=Math.max(Number(i)*E,j)),o&&(j=Math.min(Number(o)*E,j)),j=Math.max(j,E);const T=j+(w==="border-box"?k+P:0),O=Math.abs(j-R)<=1;return{outerHeightStyle:T,overflowing:O}},[o,i,t.placeholder]),y=p.useCallback(()=>{const C=b();if(u3(C))return;const g=d.current;g.style.height=`${C.outerHeightStyle}px`,g.style.overflow=C.overflowing?"hidden":""},[b]);dn(()=>{const C=()=>{y()};let g;const m=Hi(C),x=d.current,w=_n(x);w.addEventListener("resize",m);let k;return typeof ResizeObserver<"u"&&(k=new ResizeObserver(C),k.observe(x)),()=>{m.clear(),cancelAnimationFrame(g),w.removeEventListener("resize",m),k&&k.disconnect()}},[b,y]),dn(()=>{y()});const v=C=>{c||y(),r&&r(C)};return u.jsxs(p.Fragment,{children:[u.jsx("textarea",S({value:a,onChange:v,ref:f,rows:i,style:s},l)),u.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:S({},c3.shadow,s,{paddingTop:0,paddingBottom:0})})]})});var um={};Object.defineProperty(um,"__esModule",{value:!0});var D2=um.default=void 0,f3=h3(p),p3=x2;function F2(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(F2=function(r){return r?n:t})(e)}function h3(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=F2(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function m3(e){return Object.keys(e).length===0}function g3(e=null){const t=f3.useContext(p3.ThemeContext);return!t||m3(t)?e:t}D2=um.default=g3;const v3=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],y3=B(s3,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),B2=p.forwardRef(function(t,n){var r;const o=D2(),i=le({props:t,name:"MuiPopper"}),{anchorEl:s,component:a,components:l,componentsProps:c,container:d,disablePortal:f,keepMounted:h,modifiers:b,open:y,placement:v,popperOptions:C,popperRef:g,transition:m,slots:x,slotProps:w}=i,k=H(i,v3),P=(r=x==null?void 0:x.root)!=null?r:l==null?void 0:l.Root,R=S({anchorEl:s,container:d,disablePortal:f,keepMounted:h,modifiers:b,open:y,placement:v,popperOptions:C,popperRef:g,transition:m},k);return u.jsx(y3,S({as:a,direction:o==null?void 0:o.direction,slots:{root:P},slotProps:w??c},R,{ref:n}))}),x3=Nt(u.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function b3(e){return re("MuiChip",e)}const _e=oe("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),S3=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],C3=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:s,clickable:a,variant:l}=e,c={root:["root",l,n&&"disabled",`size${A(r)}`,`color${A(o)}`,a&&"clickable",a&&`clickableColor${A(o)}`,s&&"deletable",s&&`deletableColor${A(o)}`,`${l}${A(o)}`],label:["label",`label${A(r)}`],avatar:["avatar",`avatar${A(r)}`,`avatarColor${A(o)}`],icon:["icon",`icon${A(r)}`,`iconColor${A(i)}`],deleteIcon:["deleteIcon",`deleteIcon${A(r)}`,`deleteIconColor${A(o)}`,`deleteIcon${A(l)}Color${A(o)}`]};return ie(c,b3,t)},w3=B("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:s,size:a,variant:l}=n;return[{[`& .${_e.avatar}`]:t.avatar},{[`& .${_e.avatar}`]:t[`avatar${A(a)}`]},{[`& .${_e.avatar}`]:t[`avatarColor${A(r)}`]},{[`& .${_e.icon}`]:t.icon},{[`& .${_e.icon}`]:t[`icon${A(a)}`]},{[`& .${_e.icon}`]:t[`iconColor${A(o)}`]},{[`& .${_e.deleteIcon}`]:t.deleteIcon},{[`& .${_e.deleteIcon}`]:t[`deleteIcon${A(a)}`]},{[`& .${_e.deleteIcon}`]:t[`deleteIconColor${A(r)}`]},{[`& .${_e.deleteIcon}`]:t[`deleteIcon${A(l)}Color${A(r)}`]},t.root,t[`size${A(a)}`],t[`color${A(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${A(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${A(r)}`],t[l],t[`${l}${A(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return S({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${_e.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${_e.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${_e.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${_e.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${_e.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${_e.icon}`]:S({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&S({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${_e.deleteIcon}`]:S({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:je(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:je(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:je(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${_e.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:je(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${_e.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>S({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:je(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${_e.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:je(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${_e.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>S({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${_e.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${_e.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${_e.avatar}`]:{marginLeft:4},[`& .${_e.avatarSmall}`]:{marginLeft:2},[`& .${_e.icon}`]:{marginLeft:4},[`& .${_e.iconSmall}`]:{marginLeft:2},[`& .${_e.deleteIcon}`]:{marginRight:5},[`& .${_e.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:je(e.palette[t.color].main,.7)}`,[`&.${_e.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:je(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${_e.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:je(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${_e.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:je(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),k3=B("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${A(r)}`]]}})(({ownerState:e})=>S({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function q0(e){return e.key==="Backspace"||e.key==="Delete"}const R3=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:s,color:a="default",component:l,deleteIcon:c,disabled:d=!1,icon:f,label:h,onClick:b,onDelete:y,onKeyDown:v,onKeyUp:C,size:g="medium",variant:m="filled",tabIndex:x,skipFocusWhenDisabled:w=!1}=r,k=H(r,S3),P=p.useRef(null),R=Ye(P,n),E=_=>{_.stopPropagation(),y&&y(_)},j=_=>{_.currentTarget===_.target&&q0(_)&&_.preventDefault(),v&&v(_)},T=_=>{_.currentTarget===_.target&&(y&&q0(_)?y(_):_.key==="Escape"&&P.current&&P.current.blur()),C&&C(_)},O=s!==!1&&b?!0:s,M=O||y?kr:l||"div",I=S({},r,{component:M,disabled:d,size:g,color:a,iconColor:p.isValidElement(f)&&f.props.color||a,onDelete:!!y,clickable:O,variant:m}),N=C3(I),D=M===kr?S({component:l||"div",focusVisibleClassName:N.focusVisible},y&&{disableRipple:!0}):{};let z=null;y&&(z=c&&p.isValidElement(c)?p.cloneElement(c,{className:V(c.props.className,N.deleteIcon),onClick:E}):u.jsx(x3,{className:V(N.deleteIcon),onClick:E}));let W=null;o&&p.isValidElement(o)&&(W=p.cloneElement(o,{className:V(N.avatar,o.props.className)}));let $=null;return f&&p.isValidElement(f)&&($=p.cloneElement(f,{className:V(N.icon,f.props.className)})),u.jsxs(w3,S({as:M,className:V(N.root,i),disabled:O&&d?!0:void 0,onClick:b,onKeyDown:j,onKeyUp:T,ref:R,tabIndex:w&&d?-1:x,ownerState:I},D,k,{children:[W||$,u.jsx(k3,{className:V(N.label),ownerState:I,children:h}),z]}))});function ao({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const Bu=p.createContext(void 0);function dr(){return p.useContext(Bu)}function W2(e){return u.jsx(Z$,S({},e,{defaultTheme:Eu,themeId:Oo}))}function K0(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function vc(e,t=!1){return e&&(K0(e.value)&&e.value!==""||t&&K0(e.defaultValue)&&e.defaultValue!=="")}function P3(e){return e.startAdornment}function E3(e){return re("MuiInputBase",e)}const Oi=oe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),$3=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Wu=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${A(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Uu=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},T3=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:s,formControl:a,fullWidth:l,hiddenLabel:c,multiline:d,readOnly:f,size:h,startAdornment:b,type:y}=e,v={root:["root",`color${A(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",s&&"focused",a&&"formControl",h&&h!=="medium"&&`size${A(h)}`,d&&"multiline",b&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",y==="search"&&"inputTypeSearch",d&&"inputMultiline",h==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",b&&"inputAdornedStart",i&&"inputAdornedEnd",f&&"readOnly"]};return ie(v,E3,t)},Hu=B("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Wu})(({theme:e,ownerState:t})=>S({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Oi.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&S({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Vu=B("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Uu})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=S({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return S({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Oi.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Oi.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),_3=u.jsx(W2,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),j3=p.forwardRef(function(t,n){var r;const o=le({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:s,autoFocus:a,className:l,components:c={},componentsProps:d={},defaultValue:f,disabled:h,disableInjectingGlobalStyles:b,endAdornment:y,fullWidth:v=!1,id:C,inputComponent:g="input",inputProps:m={},inputRef:x,maxRows:w,minRows:k,multiline:P=!1,name:R,onBlur:E,onChange:j,onClick:T,onFocus:O,onKeyDown:M,onKeyUp:I,placeholder:N,readOnly:D,renderSuffix:z,rows:W,slotProps:$={},slots:_={},startAdornment:F,type:G="text",value:X}=o,ce=H(o,$3),Z=m.value!=null?m.value:X,{current:ue}=p.useRef(Z!=null),U=p.useRef(),ee=p.useCallback(Re=>{},[]),K=Ye(U,x,m.ref,ee),[Q,he]=p.useState(!1),J=dr(),fe=ao({props:o,muiFormControl:J,states:["color","disabled","error","hiddenLabel","size","required","filled"]});fe.focused=J?J.focused:Q,p.useEffect(()=>{!J&&h&&Q&&(he(!1),E&&E())},[J,h,Q,E]);const pe=J&&J.onFilled,Se=J&&J.onEmpty,xe=p.useCallback(Re=>{vc(Re)?pe&&pe():Se&&Se()},[pe,Se]);dn(()=>{ue&&xe({value:Z})},[Z,xe,ue]);const Ct=Re=>{if(fe.disabled){Re.stopPropagation();return}O&&O(Re),m.onFocus&&m.onFocus(Re),J&&J.onFocus?J.onFocus(Re):he(!0)},Fe=Re=>{E&&E(Re),m.onBlur&&m.onBlur(Re),J&&J.onBlur?J.onBlur(Re):he(!1)},ze=(Re,...se)=>{if(!ue){const tt=Re.target||U.current;if(tt==null)throw new Error(jo(1));xe({value:tt.value})}m.onChange&&m.onChange(Re,...se),j&&j(Re,...se)};p.useEffect(()=>{xe(U.current)},[]);const pt=Re=>{U.current&&Re.currentTarget===Re.target&&U.current.focus(),T&&T(Re)};let Me=g,ke=m;P&&Me==="input"&&(W?ke=S({type:void 0,minRows:W,maxRows:W},ke):ke=S({type:void 0,maxRows:w,minRows:k},ke),Me=d3);const ct=Re=>{xe(Re.animationName==="mui-auto-fill-cancel"?U.current:{value:"x"})};p.useEffect(()=>{J&&J.setAdornedStart(!!F)},[J,F]);const He=S({},o,{color:fe.color||"primary",disabled:fe.disabled,endAdornment:y,error:fe.error,focused:fe.focused,formControl:J,fullWidth:v,hiddenLabel:fe.hiddenLabel,multiline:P,size:fe.size,startAdornment:F,type:G}),Ee=T3(He),ht=_.root||c.Root||Hu,yt=$.root||d.root||{},wt=_.input||c.Input||Vu;return ke=S({},ke,(r=$.input)!=null?r:d.input),u.jsxs(p.Fragment,{children:[!b&&_3,u.jsxs(ht,S({},yt,!Ei(ht)&&{ownerState:S({},He,yt.ownerState)},{ref:n,onClick:pt},ce,{className:V(Ee.root,yt.className,l,D&&"MuiInputBase-readOnly"),children:[F,u.jsx(Bu.Provider,{value:null,children:u.jsx(wt,S({ownerState:He,"aria-invalid":fe.error,"aria-describedby":i,autoComplete:s,autoFocus:a,defaultValue:f,disabled:fe.disabled,id:C,onAnimationStart:ct,name:R,placeholder:N,readOnly:D,required:fe.required,rows:W,value:Z,onKeyDown:M,onKeyUp:I,type:G},ke,!Ei(wt)&&{as:Me,ownerState:S({},He,ke.ownerState)},{ref:K,className:V(Ee.input,ke.className,D&&"MuiInputBase-readOnly"),onBlur:Fe,onChange:ze,onFocus:Ct}))}),y,z?z(S({},fe,{startAdornment:F})):null]}))]})}),dm=j3;function O3(e){return re("MuiInput",e)}const cs=S({},Oi,oe("MuiInput",["root","underline","input"]));function I3(e){return re("MuiOutlinedInput",e)}const Ir=S({},Oi,oe("MuiOutlinedInput",["root","notchedOutline","input"]));function M3(e){return re("MuiFilledInput",e)}const co=S({},Oi,oe("MuiFilledInput",["root","underline","input"])),N3=Nt(u.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),L3=Nt(u.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function A3(e){return re("MuiAvatar",e)}oe("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const z3=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],D3=zu(),F3=e=>{const{classes:t,variant:n,colorDefault:r}=e;return ie({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},A3,t)},B3=B("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:S({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:S({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),W3=B("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),U3=B(L3,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function H3({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=p.useState(!1);return p.useEffect(()=>{if(!n&&!r)return;i(!1);let s=!0;const a=new Image;return a.onload=()=>{s&&i("loaded")},a.onerror=()=>{s&&i("error")},a.crossOrigin=e,a.referrerPolicy=t,a.src=n,r&&(a.srcset=r),()=>{s=!1}},[e,t,n,r]),o}const yr=p.forwardRef(function(t,n){const r=D3({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:s,component:a="div",slots:l={},slotProps:c={},imgProps:d,sizes:f,src:h,srcSet:b,variant:y="circular"}=r,v=H(r,z3);let C=null;const g=H3(S({},d,{src:h,srcSet:b})),m=h||b,x=m&&g!=="error",w=S({},r,{colorDefault:!x,component:a,variant:y}),k=F3(w),[P,R]=pp("img",{className:k.img,elementType:W3,externalForwardedProps:{slots:l,slotProps:{img:S({},d,c.img)}},additionalProps:{alt:o,src:h,srcSet:b,sizes:f},ownerState:w});return x?C=u.jsx(P,S({},R)):i||i===0?C=i:m&&o?C=o[0]:C=u.jsx(U3,{ownerState:w,className:k.fallback}),u.jsx(B3,S({as:a,ownerState:w,className:V(k.root,s),ref:n},v,{children:C}))}),V3=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],q3={entering:{opacity:1},entered:{opacity:1}},U2=p.forwardRef(function(t,n){const r=io(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:a,easing:l,in:c,onEnter:d,onEntered:f,onEntering:h,onExit:b,onExited:y,onExiting:v,style:C,timeout:g=o,TransitionComponent:m=Qn}=t,x=H(t,V3),w=p.useRef(null),k=Ye(w,a.ref,n),P=N=>D=>{if(N){const z=w.current;D===void 0?N(z):N(z,D)}},R=P(h),E=P((N,D)=>{nm(N);const z=Pi({style:C,timeout:g,easing:l},{mode:"enter"});N.style.webkitTransition=r.transitions.create("opacity",z),N.style.transition=r.transitions.create("opacity",z),d&&d(N,D)}),j=P(f),T=P(v),O=P(N=>{const D=Pi({style:C,timeout:g,easing:l},{mode:"exit"});N.style.webkitTransition=r.transitions.create("opacity",D),N.style.transition=r.transitions.create("opacity",D),b&&b(N)}),M=P(y),I=N=>{i&&i(w.current,N)};return u.jsx(m,S({appear:s,in:c,nodeRef:w,onEnter:E,onEntered:j,onEntering:R,onExit:O,onExited:M,onExiting:T,addEndListener:I,timeout:g},x,{children:(N,D)=>p.cloneElement(a,S({style:S({opacity:0,visibility:N==="exited"&&!c?"hidden":void 0},q3[N],C,a.props.style),ref:k},D))}))});function K3(e){return re("MuiBackdrop",e)}oe("MuiBackdrop",["root","invisible"]);const G3=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Y3=e=>{const{classes:t,invisible:n}=e;return ie({root:["root",n&&"invisible"]},K3,t)},X3=B("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>S({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),H2=p.forwardRef(function(t,n){var r,o,i;const s=le({props:t,name:"MuiBackdrop"}),{children:a,className:l,component:c="div",components:d={},componentsProps:f={},invisible:h=!1,open:b,slotProps:y={},slots:v={},TransitionComponent:C=U2,transitionDuration:g}=s,m=H(s,G3),x=S({},s,{component:c,invisible:h}),w=Y3(x),k=(r=y.root)!=null?r:f.root;return u.jsx(C,S({in:b,timeout:g},m,{children:u.jsx(X3,S({"aria-hidden":!0},k,{as:(o=(i=v.root)!=null?i:d.Root)!=null?o:c,className:V(w.root,l,k==null?void 0:k.className),ownerState:S({},x,k==null?void 0:k.ownerState),classes:w,ref:n,children:a}))}))});function Q3(e){return re("MuiBadge",e)}const Mr=oe("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),J3=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Fd=10,Bd=4,Z3=zu(),eO=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:s={}}=e,a={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${A(n.vertical)}${A(n.horizontal)}`,`anchorOrigin${A(n.vertical)}${A(n.horizontal)}${A(o)}`,`overlap${A(o)}`,t!=="default"&&`color${A(t)}`]};return ie(a,Q3,s)},tO=B("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),nO=B("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${A(n.anchorOrigin.vertical)}${A(n.anchorOrigin.horizontal)}${A(n.overlap)}`],n.color!=="default"&&t[`color${A(n.color)}`],n.invisible&&t.invisible]}})(({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Fd*2,lineHeight:1,padding:"0 6px",height:Fd*2,borderRadius:Fd,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r,o;return((r=e.vars)!=null?r:e).palette[n].main&&((o=e.vars)!=null?o:e).palette[n].contrastText}).map(n=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText}})),{props:{variant:"dot"},style:{borderRadius:Bd,height:Bd*2,minWidth:Bd*2,padding:0}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Mr.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Mr.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Mr.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Mr.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Mr.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Mr.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Mr.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Mr.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}),rO=p.forwardRef(function(t,n){var r,o,i,s,a,l;const c=Z3({props:t,name:"MuiBadge"}),{anchorOrigin:d={vertical:"top",horizontal:"right"},className:f,component:h,components:b={},componentsProps:y={},children:v,overlap:C="rectangular",color:g="default",invisible:m=!1,max:x=99,badgeContent:w,slots:k,slotProps:P,showZero:R=!1,variant:E="standard"}=c,j=H(c,J3),{badgeContent:T,invisible:O,max:M,displayValue:I}=w_({max:x,invisible:m,badgeContent:w,showZero:R}),N=l2({anchorOrigin:d,color:g,overlap:C,variant:E,badgeContent:w}),D=O||T==null&&E!=="dot",{color:z=g,overlap:W=C,anchorOrigin:$=d,variant:_=E}=D?N:c,F=_!=="dot"?I:void 0,G=S({},c,{badgeContent:T,invisible:D,max:M,displayValue:F,showZero:R,anchorOrigin:$,color:z,overlap:W,variant:_}),X=eO(G),ce=(r=(o=k==null?void 0:k.root)!=null?o:b.Root)!=null?r:tO,Z=(i=(s=k==null?void 0:k.badge)!=null?s:b.Badge)!=null?i:nO,ue=(a=P==null?void 0:P.root)!=null?a:y.root,U=(l=P==null?void 0:P.badge)!=null?l:y.badge,ee=en({elementType:ce,externalSlotProps:ue,externalForwardedProps:j,additionalProps:{ref:n,as:h},ownerState:G,className:V(ue==null?void 0:ue.className,X.root,f)}),K=en({elementType:Z,externalSlotProps:U,ownerState:G,className:V(X.badge,U==null?void 0:U.className)});return u.jsxs(ce,S({},ee,{children:[v,u.jsx(Z,S({},K,{children:F}))]}))}),oO=oe("MuiBox",["root"]),iO=Ea(),Ke=i4({themeId:Oo,defaultTheme:iO,defaultClassName:oO.root,generateClassName:Wh.generate});function sO(e){return re("MuiButton",e)}const rl=oe("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),aO=p.createContext({}),lO=p.createContext(void 0),cO=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],uO=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:s}=e,a={root:["root",i,`${i}${A(t)}`,`size${A(o)}`,`${i}Size${A(o)}`,`color${A(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${A(o)}`],endIcon:["icon","endIcon",`iconSize${A(o)}`]},l=ie(a,sO,s);return S({},s,l)},V2=e=>S({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),dO=B(kr,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${A(n.color)}`],t[`size${A(n.size)}`],t[`${n.variant}Size${A(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return S({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":S({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:je(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:je(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:je(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":S({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${rl.focusVisible}`]:S({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${rl.disabled}`]:S({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${je(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${rl.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${rl.disabled}`]:{boxShadow:"none"}}),fO=B("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${A(n.size)}`]]}})(({ownerState:e})=>S({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},V2(e))),pO=B("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${A(n.size)}`]]}})(({ownerState:e})=>S({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},V2(e))),gt=p.forwardRef(function(t,n){const r=p.useContext(aO),o=p.useContext(lO),i=Vh(r,t),s=le({props:i,name:"MuiButton"}),{children:a,color:l="primary",component:c="button",className:d,disabled:f=!1,disableElevation:h=!1,disableFocusRipple:b=!1,endIcon:y,focusVisibleClassName:v,fullWidth:C=!1,size:g="medium",startIcon:m,type:x,variant:w="text"}=s,k=H(s,cO),P=S({},s,{color:l,component:c,disabled:f,disableElevation:h,disableFocusRipple:b,fullWidth:C,size:g,type:x,variant:w}),R=uO(P),E=m&&u.jsx(fO,{className:R.startIcon,ownerState:P,children:m}),j=y&&u.jsx(pO,{className:R.endIcon,ownerState:P,children:y}),T=o||"";return u.jsxs(dO,S({ownerState:P,className:V(r.className,R.root,d,T),component:c,disabled:f,focusRipple:!b,focusVisibleClassName:V(R.focusVisible,v),ref:n,type:x},k,{classes:R,children:[E,a,j]}))});function hO(e){return re("MuiCard",e)}oe("MuiCard",["root"]);const mO=["className","raised"],gO=e=>{const{classes:t}=e;return ie({root:["root"]},hO,t)},vO=B(gn,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),qu=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiCard"}),{className:o,raised:i=!1}=r,s=H(r,mO),a=S({},r,{raised:i}),l=gO(a);return u.jsx(vO,S({className:V(l.root,o),elevation:i?8:void 0,ref:n,ownerState:a},s))});function yO(e){return re("MuiCardContent",e)}oe("MuiCardContent",["root"]);const xO=["className","component"],bO=e=>{const{classes:t}=e;return ie({root:["root"]},yO,t)},SO=B("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),fm=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiCardContent"}),{className:o,component:i="div"}=r,s=H(r,xO),a=S({},r,{component:i}),l=bO(a);return u.jsx(SO,S({as:i,className:V(l.root,o),ownerState:a,ref:n},s))});function CO(e){return re("PrivateSwitchBase",e)}oe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const wO=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],kO=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${A(o)}`],input:["input"]};return ie(i,CO,t)},RO=B(kr)(({ownerState:e})=>S({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),PO=B("input",{shouldForwardProp:Mt})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),q2=p.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:s,defaultChecked:a,disabled:l,disableFocusRipple:c=!1,edge:d=!1,icon:f,id:h,inputProps:b,inputRef:y,name:v,onBlur:C,onChange:g,onFocus:m,readOnly:x,required:w=!1,tabIndex:k,type:P,value:R}=t,E=H(t,wO),[j,T]=sa({controlled:o,default:!!a,name:"SwitchBase",state:"checked"}),O=dr(),M=_=>{m&&m(_),O&&O.onFocus&&O.onFocus(_)},I=_=>{C&&C(_),O&&O.onBlur&&O.onBlur(_)},N=_=>{if(_.nativeEvent.defaultPrevented)return;const F=_.target.checked;T(F),g&&g(_,F)};let D=l;O&&typeof D>"u"&&(D=O.disabled);const z=P==="checkbox"||P==="radio",W=S({},t,{checked:j,disabled:D,disableFocusRipple:c,edge:d}),$=kO(W);return u.jsxs(RO,S({component:"span",className:V($.root,s),centerRipple:!0,focusRipple:!c,disabled:D,tabIndex:null,role:void 0,onFocus:M,onBlur:I,ownerState:W,ref:n},E,{children:[u.jsx(PO,S({autoFocus:r,checked:o,defaultChecked:a,className:$.input,disabled:D,id:z?h:void 0,name:v,onChange:N,readOnly:x,ref:y,required:w,ownerState:W,tabIndex:k,type:P},P==="checkbox"&&R===void 0?{}:{value:R},b)),j?i:f]}))}),EO=Nt(u.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),$O=Nt(u.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),TO=Nt(u.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function _O(e){return re("MuiCheckbox",e)}const Wd=oe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),jO=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],OO=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate",`color${A(r)}`,`size${A(o)}`]},s=ie(i,_O,t);return S({},t,s)},IO=B(q2,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${A(n.size)}`],n.color!=="default"&&t[`color${A(n.color)}`]]}})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:je(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Wd.checked}, &.${Wd.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Wd.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),MO=u.jsx($O,{}),NO=u.jsx(EO,{}),LO=u.jsx(TO,{}),pm=p.forwardRef(function(t,n){var r,o;const i=le({props:t,name:"MuiCheckbox"}),{checkedIcon:s=MO,color:a="primary",icon:l=NO,indeterminate:c=!1,indeterminateIcon:d=LO,inputProps:f,size:h="medium",className:b}=i,y=H(i,jO),v=c?d:l,C=c?d:s,g=S({},i,{color:a,indeterminate:c,size:h}),m=OO(g);return u.jsx(IO,S({type:"checkbox",inputProps:S({"data-indeterminate":c},f),icon:p.cloneElement(v,{fontSize:(r=v.props.fontSize)!=null?r:h}),checkedIcon:p.cloneElement(C,{fontSize:(o=C.props.fontSize)!=null?o:h}),ownerState:g,ref:n,className:V(m.root,b)},y,{classes:m}))});function AO(e){return re("MuiCircularProgress",e)}oe("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const zO=["className","color","disableShrink","size","style","thickness","value","variant"];let Ku=e=>e,G0,Y0,X0,Q0;const Nr=44,DO=Bi(G0||(G0=Ku` - 0% { - transform: rotate(0deg); - } - - 100% { - transform: rotate(360deg); - } -`)),FO=Bi(Y0||(Y0=Ku` - 0% { - stroke-dasharray: 1px, 200px; - stroke-dashoffset: 0; - } - - 50% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -15px; - } - - 100% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -125px; - } -`)),BO=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${A(r)}`],svg:["svg"],circle:["circle",`circle${A(n)}`,o&&"circleDisableShrink"]};return ie(i,AO,t)},WO=B("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${A(n.color)}`]]}})(({ownerState:e,theme:t})=>S({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&au(X0||(X0=Ku` - animation: ${0} 1.4s linear infinite; - `),DO)),UO=B("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),HO=B("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${A(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>S({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&au(Q0||(Q0=Ku` - animation: ${0} 1.4s ease-in-out infinite; - `),FO)),kn=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:s=!1,size:a=40,style:l,thickness:c=3.6,value:d=0,variant:f="indeterminate"}=r,h=H(r,zO),b=S({},r,{color:i,disableShrink:s,size:a,thickness:c,value:d,variant:f}),y=BO(b),v={},C={},g={};if(f==="determinate"){const m=2*Math.PI*((Nr-c)/2);v.strokeDasharray=m.toFixed(3),g["aria-valuenow"]=Math.round(d),v.strokeDashoffset=`${((100-d)/100*m).toFixed(3)}px`,C.transform="rotate(-90deg)"}return u.jsx(WO,S({className:V(y.root,o),style:S({width:a,height:a},C,l),ownerState:b,ref:n,role:"progressbar"},g,h,{children:u.jsx(UO,{className:y.svg,ownerState:b,viewBox:`${Nr/2} ${Nr/2} ${Nr} ${Nr}`,children:u.jsx(HO,{className:y.circle,style:v,ownerState:b,cx:Nr,cy:Nr,r:(Nr-c)/2,fill:"none",strokeWidth:c})})}))}),K2=X4({createStyledComponent:B("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${A(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>le({props:e,name:"MuiContainer"})}),VO=(e,t)=>S({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),qO=e=>S({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),KO=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,a])=>{var l;r[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(l=a.palette)==null?void 0:l.mode}});let o=S({html:VO(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:S({margin:0},qO(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const i=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return i&&(o=[o,i]),o};function hm(e){const t=le({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return u.jsxs(p.Fragment,{children:[u.jsx(W2,{styles:o=>KO(o,r)}),n]})}function GO(e){return re("MuiModal",e)}oe("MuiModal",["root","hidden","backdrop"]);const YO=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],XO=e=>{const{open:t,exited:n,classes:r}=e;return ie({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},GO,r)},QO=B("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>S({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),JO=B(H2,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),mm=p.forwardRef(function(t,n){var r,o,i,s,a,l;const c=le({name:"MuiModal",props:t}),{BackdropComponent:d=JO,BackdropProps:f,className:h,closeAfterTransition:b=!1,children:y,container:v,component:C,components:g={},componentsProps:m={},disableAutoFocus:x=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:k=!1,disablePortal:P=!1,disableRestoreFocus:R=!1,disableScrollLock:E=!1,hideBackdrop:j=!1,keepMounted:T=!1,onBackdropClick:O,open:M,slotProps:I,slots:N}=c,D=H(c,YO),z=S({},c,{closeAfterTransition:b,disableAutoFocus:x,disableEnforceFocus:w,disableEscapeKeyDown:k,disablePortal:P,disableRestoreFocus:R,disableScrollLock:E,hideBackdrop:j,keepMounted:T}),{getRootProps:W,getBackdropProps:$,getTransitionProps:_,portalRef:F,isTopModal:G,exited:X,hasTransition:ce}=V_(S({},z,{rootRef:n})),Z=S({},z,{exited:X}),ue=XO(Z),U={};if(y.props.tabIndex===void 0&&(U.tabIndex="-1"),ce){const{onEnter:pe,onExited:Se}=_();U.onEnter=pe,U.onExited=Se}const ee=(r=(o=N==null?void 0:N.root)!=null?o:g.Root)!=null?r:QO,K=(i=(s=N==null?void 0:N.backdrop)!=null?s:g.Backdrop)!=null?i:d,Q=(a=I==null?void 0:I.root)!=null?a:m.root,he=(l=I==null?void 0:I.backdrop)!=null?l:m.backdrop,J=en({elementType:ee,externalSlotProps:Q,externalForwardedProps:D,getSlotProps:W,additionalProps:{ref:n,as:C},ownerState:Z,className:V(h,Q==null?void 0:Q.className,ue==null?void 0:ue.root,!Z.open&&Z.exited&&(ue==null?void 0:ue.hidden))}),fe=en({elementType:K,externalSlotProps:he,additionalProps:f,getSlotProps:pe=>$(S({},pe,{onClick:Se=>{O&&O(Se),pe!=null&&pe.onClick&&pe.onClick(Se)}})),className:V(he==null?void 0:he.className,f==null?void 0:f.className,ue==null?void 0:ue.backdrop),ownerState:Z});return!T&&!M&&(!ce||X)?null:u.jsx($2,{ref:F,container:v,disablePortal:P,children:u.jsxs(ee,S({},J,{children:[!j&&d?u.jsx(K,S({},fe)):null,u.jsx(N_,{disableEnforceFocus:w,disableAutoFocus:x,disableRestoreFocus:R,isEnabled:G,open:M,children:p.cloneElement(y,U)})]}))})});function ZO(e){return re("MuiDialog",e)}const Ud=oe("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),G2=p.createContext({}),eI=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],tI=B(H2,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),nI=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,s={root:["root"],container:["container",`scroll${A(n)}`],paper:["paper",`paperScroll${A(n)}`,`paperWidth${A(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return ie(s,ZO,t)},rI=B(mm,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),oI=B("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${A(n.scroll)}`]]}})(({ownerState:e})=>S({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),iI=B(gn,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${A(n.scroll)}`],t[`paperWidth${A(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>S({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Ud.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${Ud.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Ud.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),yp=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiDialog"}),o=io(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,BackdropComponent:l,BackdropProps:c,children:d,className:f,disableEscapeKeyDown:h=!1,fullScreen:b=!1,fullWidth:y=!1,maxWidth:v="sm",onBackdropClick:C,onClick:g,onClose:m,open:x,PaperComponent:w=gn,PaperProps:k={},scroll:P="paper",TransitionComponent:R=U2,transitionDuration:E=i,TransitionProps:j}=r,T=H(r,eI),O=S({},r,{disableEscapeKeyDown:h,fullScreen:b,fullWidth:y,maxWidth:v,scroll:P}),M=nI(O),I=p.useRef(),N=$=>{I.current=$.target===$.currentTarget},D=$=>{g&&g($),I.current&&(I.current=null,C&&C($),m&&m($,"backdropClick"))},z=ka(a),W=p.useMemo(()=>({titleId:z}),[z]);return u.jsx(rI,S({className:V(M.root,f),closeAfterTransition:!0,components:{Backdrop:tI},componentsProps:{backdrop:S({transitionDuration:E,as:l},c)},disableEscapeKeyDown:h,onClose:m,open:x,ref:n,onClick:D,ownerState:O},T,{children:u.jsx(R,S({appear:!0,in:x,timeout:E,role:"presentation"},j,{children:u.jsx(oI,{className:V(M.container),onMouseDown:N,ownerState:O,children:u.jsx(iI,S({as:w,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":z},k,{className:V(M.paper,k.className),ownerState:O,children:u.jsx(G2.Provider,{value:W,children:d})}))})}))}))});function sI(e){return re("MuiDialogActions",e)}oe("MuiDialogActions",["root","spacing"]);const aI=["className","disableSpacing"],lI=e=>{const{classes:t,disableSpacing:n}=e;return ie({root:["root",!n&&"spacing"]},sI,t)},cI=B("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>S({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),xp=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1}=r,s=H(r,aI),a=S({},r,{disableSpacing:i}),l=lI(a);return u.jsx(cI,S({className:V(l.root,o),ownerState:a,ref:n},s))});function uI(e){return re("MuiDialogContent",e)}oe("MuiDialogContent",["root","dividers"]);function dI(e){return re("MuiDialogTitle",e)}const fI=oe("MuiDialogTitle",["root"]),pI=["className","dividers"],hI=e=>{const{classes:t,dividers:n}=e;return ie({root:["root",n&&"dividers"]},uI,t)},mI=B("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>S({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${fI.root} + &`]:{paddingTop:0}})),bp=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,s=H(r,pI),a=S({},r,{dividers:i}),l=hI(a);return u.jsx(mI,S({className:V(l.root,o),ownerState:a,ref:n},s))});function gI(e){return re("MuiDialogContentText",e)}oe("MuiDialogContentText",["root"]);const vI=["children","className"],yI=e=>{const{classes:t}=e,r=ie({root:["root"]},gI,t);return S({},t,r)},xI=B(ye,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Y2=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiDialogContentText"}),{className:o}=r,i=H(r,vI),s=yI(i);return u.jsx(xI,S({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:i,className:V(s.root,o)},r,{classes:s}))}),bI=["className","id"],SI=e=>{const{classes:t}=e;return ie({root:["root"]},dI,t)},CI=B(ye,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Sp=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiDialogTitle"}),{className:o,id:i}=r,s=H(r,bI),a=r,l=SI(a),{titleId:c=i}=p.useContext(G2);return u.jsx(CI,S({component:"h2",className:V(l.root,o),ownerState:a,ref:n,variant:"h6",id:i??c},s))});function wI(e){return re("MuiDivider",e)}const J0=oe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),kI=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],RI=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:s,textAlign:a,variant:l}=e;return ie({root:["root",t&&"absolute",l,i&&"light",s==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",a==="right"&&s!=="vertical"&&"textAlignRight",a==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},wI,r)},PI=B("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>S({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:je(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>S({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>S({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>S({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>S({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),EI=B("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>S({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),ca=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:s,component:a=i?"div":"hr",flexItem:l=!1,light:c=!1,orientation:d="horizontal",role:f=a!=="hr"?"separator":void 0,textAlign:h="center",variant:b="fullWidth"}=r,y=H(r,kI),v=S({},r,{absolute:o,component:a,flexItem:l,light:c,orientation:d,role:f,textAlign:h,variant:b}),C=RI(v);return u.jsx(PI,S({as:a,className:V(C.root,s),role:f,ref:n,ownerState:v},y,{children:i?u.jsx(EI,{className:C.wrapper,ownerState:v,children:i}):null}))});ca.muiSkipListHighlight=!0;const $I=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function TI(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=_n(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const c=i.getComputedStyle(t);s=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let a=0,l=0;if(s&&s!=="none"&&typeof s=="string"){const c=s.split("(")[1].split(")")[0].split(",");a=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?o?`translateX(${o.right+a-r.left}px)`:`translateX(${i.innerWidth+a-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-a}px)`:`translateX(-${r.left+r.width-a}px)`:e==="up"?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function _I(e){return typeof e=="function"?e():e}function ol(e,t,n){const r=_I(n),o=TI(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const jI=p.forwardRef(function(t,n){const r=io(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:l,container:c,direction:d="down",easing:f=o,in:h,onEnter:b,onEntered:y,onEntering:v,onExit:C,onExited:g,onExiting:m,style:x,timeout:w=i,TransitionComponent:k=Qn}=t,P=H(t,$I),R=p.useRef(null),E=Ye(l.ref,R,n),j=$=>_=>{$&&(_===void 0?$(R.current):$(R.current,_))},T=j(($,_)=>{ol(d,$,c),nm($),b&&b($,_)}),O=j(($,_)=>{const F=Pi({timeout:w,style:x,easing:f},{mode:"enter"});$.style.webkitTransition=r.transitions.create("-webkit-transform",S({},F)),$.style.transition=r.transitions.create("transform",S({},F)),$.style.webkitTransform="none",$.style.transform="none",v&&v($,_)}),M=j(y),I=j(m),N=j($=>{const _=Pi({timeout:w,style:x,easing:f},{mode:"exit"});$.style.webkitTransition=r.transitions.create("-webkit-transform",_),$.style.transition=r.transitions.create("transform",_),ol(d,$,c),C&&C($)}),D=j($=>{$.style.webkitTransition="",$.style.transition="",g&&g($)}),z=$=>{s&&s(R.current,$)},W=p.useCallback(()=>{R.current&&ol(d,R.current,c)},[d,c]);return p.useEffect(()=>{if(h||d==="down"||d==="right")return;const $=Hi(()=>{R.current&&ol(d,R.current,c)}),_=_n(R.current);return _.addEventListener("resize",$),()=>{$.clear(),_.removeEventListener("resize",$)}},[d,h,c]),p.useEffect(()=>{h||W()},[h,W]),u.jsx(k,S({nodeRef:R,onEnter:T,onEntered:M,onEntering:O,onExit:N,onExited:D,onExiting:I,addEndListener:z,appear:a,in:h,timeout:w},P,{children:($,_)=>p.cloneElement(l,S({ref:E,style:S({visibility:$==="exited"&&!h?"hidden":void 0},x,l.props.style)},_))}))});function OI(e){return re("MuiDrawer",e)}oe("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const II=["BackdropProps"],MI=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],X2=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},NI=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${A(n)}`,r!=="temporary"&&`paperAnchorDocked${A(n)}`]};return ie(o,OI,t)},LI=B(mm,{name:"MuiDrawer",slot:"Root",overridesResolver:X2})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),Z0=B("div",{shouldForwardProp:Mt,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:X2})({flex:"0 0 auto"}),AI=B(gn,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${A(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${A(n.anchor)}`]]}})(({theme:e,ownerState:t})=>S({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),Q2={left:"right",right:"left",top:"down",bottom:"up"};function zI(e){return["left","right"].indexOf(e)!==-1}function DI({direction:e},t){return e==="rtl"&&zI(t)?Q2[t]:t}const FI=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiDrawer"}),o=io(),i=Pa(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:a="left",BackdropProps:l,children:c,className:d,elevation:f=16,hideBackdrop:h=!1,ModalProps:{BackdropProps:b}={},onClose:y,open:v=!1,PaperProps:C={},SlideProps:g,TransitionComponent:m=jI,transitionDuration:x=s,variant:w="temporary"}=r,k=H(r.ModalProps,II),P=H(r,MI),R=p.useRef(!1);p.useEffect(()=>{R.current=!0},[]);const E=DI({direction:i?"rtl":"ltr"},a),T=S({},r,{anchor:a,elevation:f,open:v,variant:w},P),O=NI(T),M=u.jsx(AI,S({elevation:w==="temporary"?f:0,square:!0},C,{className:V(O.paper,C.className),ownerState:T,children:c}));if(w==="permanent")return u.jsx(Z0,S({className:V(O.root,O.docked,d),ownerState:T,ref:n},P,{children:M}));const I=u.jsx(m,S({in:v,direction:Q2[E],timeout:x,appear:R.current},g,{children:M}));return w==="persistent"?u.jsx(Z0,S({className:V(O.root,O.docked,d),ownerState:T,ref:n},P,{children:I})):u.jsx(LI,S({BackdropProps:S({},l,b,{transitionDuration:x}),className:V(O.root,O.modal,d),open:v,ownerState:T,onClose:y,hideBackdrop:h,ref:n},P,k,{children:I}))}),BI=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],WI=e=>{const{classes:t,disableUnderline:n}=e,o=ie({root:["root",!n&&"underline"],input:["input"]},M3,t);return S({},t,o)},UI=B(Hu,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Wu(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return S({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${co.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${co.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${co.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${co.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${co.disabled}, .${co.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${co.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&S({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),HI=B(Vu,{name:"MuiFilledInput",slot:"Input",overridesResolver:Uu})(({theme:e,ownerState:t})=>S({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),gm=p.forwardRef(function(t,n){var r,o,i,s;const a=le({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:c,fullWidth:d=!1,inputComponent:f="input",multiline:h=!1,slotProps:b,slots:y={},type:v="text"}=a,C=H(a,BI),g=S({},a,{fullWidth:d,inputComponent:f,multiline:h,type:v}),m=WI(a),x={root:{ownerState:g},input:{ownerState:g}},w=b??c?Ft(x,b??c):x,k=(r=(o=y.root)!=null?o:l.Root)!=null?r:UI,P=(i=(s=y.input)!=null?s:l.Input)!=null?i:HI;return u.jsx(dm,S({slots:{root:k,input:P},componentsProps:w,fullWidth:d,inputComponent:f,multiline:h,ref:n,type:v},C,{classes:m}))});gm.muiName="Input";function VI(e){return re("MuiFormControl",e)}oe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const qI=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],KI=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${A(n)}`,r&&"fullWidth"]};return ie(o,VI,t)},GI=B("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,t[`margin${A(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>S({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),Gu=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiFormControl"}),{children:o,className:i,color:s="primary",component:a="div",disabled:l=!1,error:c=!1,focused:d,fullWidth:f=!1,hiddenLabel:h=!1,margin:b="none",required:y=!1,size:v="medium",variant:C="outlined"}=r,g=H(r,qI),m=S({},r,{color:s,component:a,disabled:l,error:c,fullWidth:f,hiddenLabel:h,margin:b,required:y,size:v,variant:C}),x=KI(m),[w,k]=p.useState(()=>{let I=!1;return o&&p.Children.forEach(o,N=>{if(!js(N,["Input","Select"]))return;const D=js(N,["Select"])?N.props.input:N;D&&P3(D.props)&&(I=!0)}),I}),[P,R]=p.useState(()=>{let I=!1;return o&&p.Children.forEach(o,N=>{js(N,["Input","Select"])&&(vc(N.props,!0)||vc(N.props.inputProps,!0))&&(I=!0)}),I}),[E,j]=p.useState(!1);l&&E&&j(!1);const T=d!==void 0&&!l?d:E;let O;const M=p.useMemo(()=>({adornedStart:w,setAdornedStart:k,color:s,disabled:l,error:c,filled:P,focused:T,fullWidth:f,hiddenLabel:h,size:v,onBlur:()=>{j(!1)},onEmpty:()=>{R(!1)},onFilled:()=>{R(!0)},onFocus:()=>{j(!0)},registerEffect:O,required:y,variant:C}),[w,s,l,c,P,T,f,h,O,y,v,C]);return u.jsx(Bu.Provider,{value:M,children:u.jsx(GI,S({as:a,ownerState:m,className:V(x.root,i),ref:n},g,{children:o}))})}),YI=o5({createStyledComponent:B("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>le({props:e,name:"MuiStack"})});function XI(e){return re("MuiFormControlLabel",e)}const bs=oe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),QI=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],JI=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,s={root:["root",n&&"disabled",`labelPlacement${A(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return ie(s,XI,t)},ZI=B("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${bs.label}`]:t.label},t.root,t[`labelPlacement${A(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>S({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${bs.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${bs.label}`]:{[`&.${bs.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),eM=B("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${bs.error}`]:{color:(e.vars||e).palette.error.main}})),vm=p.forwardRef(function(t,n){var r,o;const i=le({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:a={},control:l,disabled:c,disableTypography:d,label:f,labelPlacement:h="end",required:b,slotProps:y={}}=i,v=H(i,QI),C=dr(),g=(r=c??l.props.disabled)!=null?r:C==null?void 0:C.disabled,m=b??l.props.required,x={disabled:g,required:m};["checked","name","onChange","value","inputRef"].forEach(j=>{typeof l.props[j]>"u"&&typeof i[j]<"u"&&(x[j]=i[j])});const w=ao({props:i,muiFormControl:C,states:["error"]}),k=S({},i,{disabled:g,labelPlacement:h,required:m,error:w.error}),P=JI(k),R=(o=y.typography)!=null?o:a.typography;let E=f;return E!=null&&E.type!==ye&&!d&&(E=u.jsx(ye,S({component:"span"},R,{className:V(P.label,R==null?void 0:R.className),children:E}))),u.jsxs(ZI,S({className:V(P.root,s),ownerState:k,ref:n},v,{children:[p.cloneElement(l,x),m?u.jsxs(YI,{display:"block",children:[E,u.jsxs(eM,{ownerState:k,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]}):E]}))});function tM(e){return re("MuiFormGroup",e)}oe("MuiFormGroup",["root","row","error"]);const nM=["className","row"],rM=e=>{const{classes:t,row:n,error:r}=e;return ie({root:["root",n&&"row",r&&"error"]},tM,t)},oM=B("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>S({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),J2=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiFormGroup"}),{className:o,row:i=!1}=r,s=H(r,nM),a=dr(),l=ao({props:r,muiFormControl:a,states:["error"]}),c=S({},r,{row:i,error:l.error}),d=rM(c);return u.jsx(oM,S({className:V(d.root,o),ownerState:c,ref:n},s))});function iM(e){return re("MuiFormHelperText",e)}const ey=oe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var ty;const sM=["children","className","component","disabled","error","filled","focused","margin","required","variant"],aM=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:s,focused:a,required:l}=e,c={root:["root",o&&"disabled",i&&"error",r&&`size${A(r)}`,n&&"contained",a&&"focused",s&&"filled",l&&"required"]};return ie(c,iM,t)},lM=B("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${A(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${ey.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ey.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),cM=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:s="p"}=r,a=H(r,sM),l=dr(),c=ao({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),d=S({},r,{component:s,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=aM(d);return u.jsx(lM,S({as:s,ownerState:d,className:V(f.root,i),ref:n},a,{children:o===" "?ty||(ty=u.jsx("span",{className:"notranslate",children:"​"})):o}))});function uM(e){return re("MuiFormLabel",e)}const Ns=oe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),dM=["children","className","color","component","disabled","error","filled","focused","required"],fM=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:s,required:a}=e,l={root:["root",`color${A(n)}`,o&&"disabled",i&&"error",s&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]};return ie(l,uM,t)},pM=B("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Ns.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Ns.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ns.error}`]:{color:(e.vars||e).palette.error.main}})),hM=B("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Ns.error}`]:{color:(e.vars||e).palette.error.main}})),mM=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:s="label"}=r,a=H(r,dM),l=dr(),c=ao({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),d=S({},r,{color:c.color||"primary",component:s,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=fM(d);return u.jsxs(pM,S({as:s,ownerState:d,className:V(f.root,i),ref:n},a,{children:[o,c.required&&u.jsxs(hM,{ownerState:d,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),gM=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Cp(e){return`scale(${e}, ${e**2})`}const vM={entering:{opacity:1,transform:Cp(1)},entered:{opacity:1,transform:"none"}},Hd=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ua=p.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:s,in:a,onEnter:l,onEntered:c,onEntering:d,onExit:f,onExited:h,onExiting:b,style:y,timeout:v="auto",TransitionComponent:C=Qn}=t,g=H(t,gM),m=xo(),x=p.useRef(),w=io(),k=p.useRef(null),P=Ye(k,i.ref,n),R=D=>z=>{if(D){const W=k.current;z===void 0?D(W):D(W,z)}},E=R(d),j=R((D,z)=>{nm(D);const{duration:W,delay:$,easing:_}=Pi({style:y,timeout:v,easing:s},{mode:"enter"});let F;v==="auto"?(F=w.transitions.getAutoHeightDuration(D.clientHeight),x.current=F):F=W,D.style.transition=[w.transitions.create("opacity",{duration:F,delay:$}),w.transitions.create("transform",{duration:Hd?F:F*.666,delay:$,easing:_})].join(","),l&&l(D,z)}),T=R(c),O=R(b),M=R(D=>{const{duration:z,delay:W,easing:$}=Pi({style:y,timeout:v,easing:s},{mode:"exit"});let _;v==="auto"?(_=w.transitions.getAutoHeightDuration(D.clientHeight),x.current=_):_=z,D.style.transition=[w.transitions.create("opacity",{duration:_,delay:W}),w.transitions.create("transform",{duration:Hd?_:_*.666,delay:Hd?W:W||_*.333,easing:$})].join(","),D.style.opacity=0,D.style.transform=Cp(.75),f&&f(D)}),I=R(h),N=D=>{v==="auto"&&m.start(x.current||0,D),r&&r(k.current,D)};return u.jsx(C,S({appear:o,in:a,nodeRef:k,onEnter:j,onEntered:T,onEntering:E,onExit:M,onExited:I,onExiting:O,addEndListener:N,timeout:v==="auto"?null:v},g,{children:(D,z)=>p.cloneElement(i,S({style:S({opacity:0,transform:Cp(.75),visibility:D==="exited"&&!a?"hidden":void 0},vM[D],y,i.props.style),ref:P},z))}))});ua.muiSupportAuto=!0;const yM=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],xM=e=>{const{classes:t,disableUnderline:n}=e,o=ie({root:["root",!n&&"underline"],input:["input"]},O3,t);return S({},t,o)},bM=B(Hu,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Wu(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),S({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${cs.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${cs.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${cs.disabled}, .${cs.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${cs.disabled}:before`]:{borderBottomStyle:"dotted"}})}),SM=B(Vu,{name:"MuiInput",slot:"Input",overridesResolver:Uu})({}),ym=p.forwardRef(function(t,n){var r,o,i,s;const a=le({props:t,name:"MuiInput"}),{disableUnderline:l,components:c={},componentsProps:d,fullWidth:f=!1,inputComponent:h="input",multiline:b=!1,slotProps:y,slots:v={},type:C="text"}=a,g=H(a,yM),m=xM(a),w={root:{ownerState:{disableUnderline:l}}},k=y??d?Ft(y??d,w):w,P=(r=(o=v.root)!=null?o:c.Root)!=null?r:bM,R=(i=(s=v.input)!=null?s:c.Input)!=null?i:SM;return u.jsx(dm,S({slots:{root:P,input:R},slotProps:k,fullWidth:f,inputComponent:h,multiline:b,ref:n,type:C},g,{classes:m}))});ym.muiName="Input";function CM(e){return re("MuiInputAdornment",e)}const ny=oe("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var ry;const wM=["children","className","component","disablePointerEvents","disableTypography","position","variant"],kM=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${A(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},RM=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:s}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${A(o)}`,s,r&&"hiddenLabel",i&&`size${A(i)}`]};return ie(a,CM,t)},PM=B("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:kM})(({theme:e,ownerState:t})=>S({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${ny.positionStart}&:not(.${ny.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),yc=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:s="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:d}=r,f=H(r,wM),h=dr()||{};let b=d;d&&h.variant,h&&!b&&(b=h.variant);const y=S({},r,{hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:a,position:c,variant:b}),v=RM(y);return u.jsx(Bu.Provider,{value:null,children:u.jsx(PM,S({as:s,ownerState:y,className:V(v.root,i),ref:n},f,{children:typeof o=="string"&&!l?u.jsx(ye,{color:"text.secondary",children:o}):u.jsxs(p.Fragment,{children:[c==="start"?ry||(ry=u.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})});function EM(e){return re("MuiInputLabel",e)}oe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const $M=["disableAnimation","margin","shrink","variant","className"],TM=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:s,required:a}=e,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${A(r)}`,s],asterisk:[a&&"asterisk"]},c=ie(l,EM,t);return S({},t,c)},_M=B(mM,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ns.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>S({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&S({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&S({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&S({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Yu=p.forwardRef(function(t,n){const r=le({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:s}=r,a=H(r,$M),l=dr();let c=i;typeof c>"u"&&l&&(c=l.filled||l.focused||l.adornedStart);const d=ao({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),f=S({},r,{disableAnimation:o,formControl:l,shrink:c,size:d.size,variant:d.variant,required:d.required,focused:d.focused}),h=TM(f);return u.jsx(_M,S({"data-shrink":c,ownerState:f,ref:n,className:V(h.root,s)},a,{classes:h}))}),ar=p.createContext({});function jM(e){return re("MuiList",e)}oe("MuiList",["root","padding","dense","subheader"]);const OM=["children","className","component","dense","disablePadding","subheader"],IM=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return ie({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},jM,t)},MM=B("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>S({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),ja=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:a=!1,disablePadding:l=!1,subheader:c}=r,d=H(r,OM),f=p.useMemo(()=>({dense:a}),[a]),h=S({},r,{component:s,dense:a,disablePadding:l}),b=IM(h);return u.jsx(ar.Provider,{value:f,children:u.jsxs(MM,S({as:s,className:V(b.root,i),ref:n,ownerState:h},d,{children:[c,o]}))})});function NM(e){return re("MuiListItem",e)}const Go=oe("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),LM=oe("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function AM(e){return re("MuiListItemSecondaryAction",e)}oe("MuiListItemSecondaryAction",["root","disableGutters"]);const zM=["className"],DM=e=>{const{disableGutters:t,classes:n}=e;return ie({root:["root",t&&"disableGutters"]},AM,n)},FM=B("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>S({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),Z2=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=H(r,zM),s=p.useContext(ar),a=S({},r,{disableGutters:s.disableGutters}),l=DM(a);return u.jsx(FM,S({className:V(l.root,o),ownerState:a,ref:n},i))});Z2.muiName="ListItemSecondaryAction";const BM=["className"],WM=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],UM=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},HM=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:s,disablePadding:a,divider:l,hasSecondaryAction:c,selected:d}=e;return ie({root:["root",o&&"dense",!s&&"gutters",!a&&"padding",l&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction",d&&"selected"],container:["container"]},NM,r)},VM=B("div",{name:"MuiListItem",slot:"Root",overridesResolver:UM})(({theme:e,ownerState:t})=>S({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&S({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${LM.root}`]:{paddingRight:48}},{[`&.${Go.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Go.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:je(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Go.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:je(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Go.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Go.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:je(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:je(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),qM=B("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),xc=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:s=!1,children:a,className:l,component:c,components:d={},componentsProps:f={},ContainerComponent:h="li",ContainerProps:{className:b}={},dense:y=!1,disabled:v=!1,disableGutters:C=!1,disablePadding:g=!1,divider:m=!1,focusVisibleClassName:x,secondaryAction:w,selected:k=!1,slotProps:P={},slots:R={}}=r,E=H(r.ContainerProps,BM),j=H(r,WM),T=p.useContext(ar),O=p.useMemo(()=>({dense:y||T.dense||!1,alignItems:o,disableGutters:C}),[o,T.dense,y,C]),M=p.useRef(null);dn(()=>{i&&M.current&&M.current.focus()},[i]);const I=p.Children.toArray(a),N=I.length&&js(I[I.length-1],["ListItemSecondaryAction"]),D=S({},r,{alignItems:o,autoFocus:i,button:s,dense:O.dense,disabled:v,disableGutters:C,disablePadding:g,divider:m,hasSecondaryAction:N,selected:k}),z=HM(D),W=Ye(M,n),$=R.root||d.Root||VM,_=P.root||f.root||{},F=S({className:V(z.root,_.className,l),disabled:v},j);let G=c||"li";return s&&(F.component=c||"div",F.focusVisibleClassName=V(Go.focusVisible,x),G=kr),N?(G=!F.component&&!c?"div":G,h==="li"&&(G==="li"?G="div":F.component==="li"&&(F.component="div")),u.jsx(ar.Provider,{value:O,children:u.jsxs(qM,S({as:h,className:V(z.container,b),ref:W,ownerState:D},E,{children:[u.jsx($,S({},_,!Ei($)&&{as:G,ownerState:S({},D,_.ownerState)},F,{children:I})),I.pop()]}))})):u.jsx(ar.Provider,{value:O,children:u.jsxs($,S({},_,{as:G,ref:W},!Ei($)&&{ownerState:S({},D,_.ownerState)},F,{children:[I,w&&u.jsx(Z2,{children:w})]}))})});function KM(e){return re("MuiListItemAvatar",e)}oe("MuiListItemAvatar",["root","alignItemsFlexStart"]);const GM=["className"],YM=e=>{const{alignItems:t,classes:n}=e;return ie({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},KM,n)},XM=B("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>S({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),QM=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiListItemAvatar"}),{className:o}=r,i=H(r,GM),s=p.useContext(ar),a=S({},r,{alignItems:s.alignItems}),l=YM(a);return u.jsx(XM,S({className:V(l.root,o),ownerState:a,ref:n},i))});function JM(e){return re("MuiListItemIcon",e)}const oy=oe("MuiListItemIcon",["root","alignItemsFlexStart"]),ZM=["className"],eN=e=>{const{alignItems:t,classes:n}=e;return ie({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},JM,n)},tN=B("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>S({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),iy=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiListItemIcon"}),{className:o}=r,i=H(r,ZM),s=p.useContext(ar),a=S({},r,{alignItems:s.alignItems}),l=eN(a);return u.jsx(tN,S({className:V(l.root,o),ownerState:a,ref:n},i))});function nN(e){return re("MuiListItemText",e)}const bc=oe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),rN=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],oN=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return ie({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},nN,t)},iN=B("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${bc.primary}`]:t.primary},{[`& .${bc.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>S({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),da=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:s=!1,inset:a=!1,primary:l,primaryTypographyProps:c,secondary:d,secondaryTypographyProps:f}=r,h=H(r,rN),{dense:b}=p.useContext(ar);let y=l??o,v=d;const C=S({},r,{disableTypography:s,inset:a,primary:!!y,secondary:!!v,dense:b}),g=oN(C);return y!=null&&y.type!==ye&&!s&&(y=u.jsx(ye,S({variant:b?"body2":"body1",className:g.primary,component:c!=null&&c.variant?void 0:"span",display:"block"},c,{children:y}))),v!=null&&v.type!==ye&&!s&&(v=u.jsx(ye,S({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},f,{children:v}))),u.jsxs(iN,S({className:V(g.root,i),ownerState:C,ref:n},h,{children:[y,v]}))}),sN=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Vd(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function sy(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function eS(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function us(e,t,n,r,o,i){let s=!1,a=o(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const l=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!eS(a,i)||l)a=o(e,a,n);else return a.focus(),!0}return!1}const aN=p.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:s,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:d,variant:f="selectedMenu"}=t,h=H(t,sN),b=p.useRef(null),y=p.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});dn(()=>{o&&b.current.focus()},[o]),p.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,{direction:w})=>{const k=!b.current.style.width;if(x.clientHeight{const w=b.current,k=x.key,P=ft(w).activeElement;if(k==="ArrowDown")x.preventDefault(),us(w,P,c,l,Vd);else if(k==="ArrowUp")x.preventDefault(),us(w,P,c,l,sy);else if(k==="Home")x.preventDefault(),us(w,null,c,l,Vd);else if(k==="End")x.preventDefault(),us(w,null,c,l,sy);else if(k.length===1){const R=y.current,E=k.toLowerCase(),j=performance.now();R.keys.length>0&&(j-R.lastTime>500?(R.keys=[],R.repeating=!0,R.previousKeyMatched=!0):R.repeating&&E!==R.keys[0]&&(R.repeating=!1)),R.lastTime=j,R.keys.push(E);const T=P&&!R.repeating&&eS(P,R);R.previousKeyMatched&&(T||us(w,P,!1,l,Vd,R))?x.preventDefault():R.previousKeyMatched=!1}d&&d(x)},C=Ye(b,n);let g=-1;p.Children.forEach(s,(x,w)=>{if(!p.isValidElement(x)){g===w&&(g+=1,g>=s.length&&(g=-1));return}x.props.disabled||(f==="selectedMenu"&&x.props.selected||g===-1)&&(g=w),g===w&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(g+=1,g>=s.length&&(g=-1))});const m=p.Children.map(s,(x,w)=>{if(w===g){const k={};return i&&(k.autoFocus=!0),x.props.tabIndex===void 0&&f==="selectedMenu"&&(k.tabIndex=0),p.cloneElement(x,k)}return x});return u.jsx(ja,S({role:"menu",ref:C,className:a,onKeyDown:v,tabIndex:o?0:-1},h,{children:m}))});function lN(e){return re("MuiPopover",e)}oe("MuiPopover",["root","paper"]);const cN=["onEntering"],uN=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],dN=["slotProps"];function ay(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function ly(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function cy(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function qd(e){return typeof e=="function"?e():e}const fN=e=>{const{classes:t}=e;return ie({root:["root"],paper:["paper"]},lN,t)},pN=B(mm,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),tS=B(gn,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),hN=p.forwardRef(function(t,n){var r,o,i;const s=le({props:t,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:f="anchorEl",children:h,className:b,container:y,elevation:v=8,marginThreshold:C=16,open:g,PaperProps:m={},slots:x,slotProps:w,transformOrigin:k={vertical:"top",horizontal:"left"},TransitionComponent:P=ua,transitionDuration:R="auto",TransitionProps:{onEntering:E}={},disableScrollLock:j=!1}=s,T=H(s.TransitionProps,cN),O=H(s,uN),M=(r=w==null?void 0:w.paper)!=null?r:m,I=p.useRef(),N=Ye(I,M.ref),D=S({},s,{anchorOrigin:c,anchorReference:f,elevation:v,marginThreshold:C,externalPaperSlotProps:M,transformOrigin:k,TransitionComponent:P,transitionDuration:R,TransitionProps:T}),z=fN(D),W=p.useCallback(()=>{if(f==="anchorPosition")return d;const pe=qd(l),xe=(pe&&pe.nodeType===1?pe:ft(I.current).body).getBoundingClientRect();return{top:xe.top+ay(xe,c.vertical),left:xe.left+ly(xe,c.horizontal)}},[l,c.horizontal,c.vertical,d,f]),$=p.useCallback(pe=>({vertical:ay(pe,k.vertical),horizontal:ly(pe,k.horizontal)}),[k.horizontal,k.vertical]),_=p.useCallback(pe=>{const Se={width:pe.offsetWidth,height:pe.offsetHeight},xe=$(Se);if(f==="none")return{top:null,left:null,transformOrigin:cy(xe)};const Ct=W();let Fe=Ct.top-xe.vertical,ze=Ct.left-xe.horizontal;const pt=Fe+Se.height,Me=ze+Se.width,ke=_n(qd(l)),ct=ke.innerHeight-C,He=ke.innerWidth-C;if(C!==null&&Fect){const Ee=pt-ct;Fe-=Ee,xe.vertical+=Ee}if(C!==null&&zeHe){const Ee=Me-He;ze-=Ee,xe.horizontal+=Ee}return{top:`${Math.round(Fe)}px`,left:`${Math.round(ze)}px`,transformOrigin:cy(xe)}},[l,f,W,$,C]),[F,G]=p.useState(g),X=p.useCallback(()=>{const pe=I.current;if(!pe)return;const Se=_(pe);Se.top!==null&&(pe.style.top=Se.top),Se.left!==null&&(pe.style.left=Se.left),pe.style.transformOrigin=Se.transformOrigin,G(!0)},[_]);p.useEffect(()=>(j&&window.addEventListener("scroll",X),()=>window.removeEventListener("scroll",X)),[l,j,X]);const ce=(pe,Se)=>{E&&E(pe,Se),X()},Z=()=>{G(!1)};p.useEffect(()=>{g&&X()}),p.useImperativeHandle(a,()=>g?{updatePosition:()=>{X()}}:null,[g,X]),p.useEffect(()=>{if(!g)return;const pe=Hi(()=>{X()}),Se=_n(l);return Se.addEventListener("resize",pe),()=>{pe.clear(),Se.removeEventListener("resize",pe)}},[l,g,X]);let ue=R;R==="auto"&&!P.muiSupportAuto&&(ue=void 0);const U=y||(l?ft(qd(l)).body:void 0),ee=(o=x==null?void 0:x.root)!=null?o:pN,K=(i=x==null?void 0:x.paper)!=null?i:tS,Q=en({elementType:K,externalSlotProps:S({},M,{style:F?M.style:S({},M.style,{opacity:0})}),additionalProps:{elevation:v,ref:N},ownerState:D,className:V(z.paper,M==null?void 0:M.className)}),he=en({elementType:ee,externalSlotProps:(w==null?void 0:w.root)||{},externalForwardedProps:O,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:U,open:g},ownerState:D,className:V(z.root,b)}),{slotProps:J}=he,fe=H(he,dN);return u.jsx(ee,S({},fe,!Ei(ee)&&{slotProps:J,disableScrollLock:j},{children:u.jsx(P,S({appear:!0,in:g,onEntering:ce,onExited:Z,timeout:ue},T,{children:u.jsx(K,S({},Q,{children:h}))}))}))});function mN(e){return re("MuiMenu",e)}oe("MuiMenu",["root","paper","list"]);const gN=["onEntering"],vN=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],yN={vertical:"top",horizontal:"right"},xN={vertical:"top",horizontal:"left"},bN=e=>{const{classes:t}=e;return ie({root:["root"],paper:["paper"],list:["list"]},mN,t)},SN=B(hN,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),CN=B(tS,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),wN=B(aN,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),nS=p.forwardRef(function(t,n){var r,o;const i=le({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:a,className:l,disableAutoFocusItem:c=!1,MenuListProps:d={},onClose:f,open:h,PaperProps:b={},PopoverClasses:y,transitionDuration:v="auto",TransitionProps:{onEntering:C}={},variant:g="selectedMenu",slots:m={},slotProps:x={}}=i,w=H(i.TransitionProps,gN),k=H(i,vN),P=Pa(),R=S({},i,{autoFocus:s,disableAutoFocusItem:c,MenuListProps:d,onEntering:C,PaperProps:b,transitionDuration:v,TransitionProps:w,variant:g}),E=bN(R),j=s&&!c&&h,T=p.useRef(null),O=($,_)=>{T.current&&T.current.adjustStyleForScrollbar($,{direction:P?"rtl":"ltr"}),C&&C($,_)},M=$=>{$.key==="Tab"&&($.preventDefault(),f&&f($,"tabKeyDown"))};let I=-1;p.Children.map(a,($,_)=>{p.isValidElement($)&&($.props.disabled||(g==="selectedMenu"&&$.props.selected||I===-1)&&(I=_))});const N=(r=m.paper)!=null?r:CN,D=(o=x.paper)!=null?o:b,z=en({elementType:m.root,externalSlotProps:x.root,ownerState:R,className:[E.root,l]}),W=en({elementType:N,externalSlotProps:D,ownerState:R,className:E.paper});return u.jsx(SN,S({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:P?"right":"left"},transformOrigin:P?yN:xN,slots:{paper:N,root:m.root},slotProps:{root:z,paper:W},open:h,ref:n,transitionDuration:v,TransitionProps:S({onEntering:O},w),ownerState:R},k,{classes:y,children:u.jsx(wN,S({onKeyDown:M,actions:T,autoFocus:s&&(I===-1||c),autoFocusItem:j,variant:g},d,{className:V(E.list,d.className),children:a}))}))});function kN(e){return re("MuiMenuItem",e)}const ds=oe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),RN=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],PN=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},EN=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:s}=e,l=ie({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},kN,s);return S({},s,l)},$N=B(kr,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:PN})(({theme:e,ownerState:t})=>S({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ds.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:je(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ds.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:je(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ds.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:je(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:je(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ds.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ds.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${J0.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${J0.inset}`]:{marginLeft:52},[`& .${bc.root}`]:{marginTop:0,marginBottom:0},[`& .${bc.inset}`]:{paddingLeft:36},[`& .${oy.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&S({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${oy.root} svg`]:{fontSize:"1.25rem"}}))),Un=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:s=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:c,role:d="menuitem",tabIndex:f,className:h}=r,b=H(r,RN),y=p.useContext(ar),v=p.useMemo(()=>({dense:s||y.dense||!1,disableGutters:l}),[y.dense,s,l]),C=p.useRef(null);dn(()=>{o&&C.current&&C.current.focus()},[o]);const g=S({},r,{dense:v.dense,divider:a,disableGutters:l}),m=EN(r),x=Ye(C,n);let w;return r.disabled||(w=f!==void 0?f:-1),u.jsx(ar.Provider,{value:v,children:u.jsx($N,S({ref:x,role:d,tabIndex:w,component:i,focusVisibleClassName:V(m.focusVisible,c),className:V(m.root,h)},b,{ownerState:g,classes:m}))})});function TN(e){return re("MuiNativeSelect",e)}const xm=oe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),_N=["className","disabled","error","IconComponent","inputRef","variant"],jN=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${A(n)}`,i&&"iconOpen",r&&"disabled"]};return ie(a,TN,t)},rS=({ownerState:e,theme:t})=>S({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":S({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${xm.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),ON=B("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Mt,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${xm.multiple}`]:t.multiple}]}})(rS),oS=({ownerState:e,theme:t})=>S({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${xm.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),IN=B("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${A(n.variant)}`],n.open&&t.iconOpen]}})(oS),MN=p.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:s,inputRef:a,variant:l="standard"}=t,c=H(t,_N),d=S({},t,{disabled:o,variant:l,error:i}),f=jN(d);return u.jsxs(p.Fragment,{children:[u.jsx(ON,S({ownerState:d,className:V(f.select,r),disabled:o,ref:a||n},c)),t.multiple?null:u.jsx(IN,{as:s,ownerState:d,className:f.icon})]})});var uy;const NN=["children","classes","className","label","notched"],LN=B("fieldset",{shouldForwardProp:Mt})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),AN=B("legend",{shouldForwardProp:Mt})(({ownerState:e,theme:t})=>S({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&S({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function zN(e){const{className:t,label:n,notched:r}=e,o=H(e,NN),i=n!=null&&n!=="",s=S({},e,{notched:r,withLabel:i});return u.jsx(LN,S({"aria-hidden":!0,className:t,ownerState:s},o,{children:u.jsx(AN,{ownerState:s,children:i?u.jsx("span",{children:n}):uy||(uy=u.jsx("span",{className:"notranslate",children:"​"}))})}))}const DN=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],FN=e=>{const{classes:t}=e,r=ie({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},I3,t);return S({},t,r)},BN=B(Hu,{shouldForwardProp:e=>Mt(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Wu})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return S({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ir.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ir.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Ir.focused} .${Ir.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Ir.error} .${Ir.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ir.disabled} .${Ir.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&S({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),WN=B(zN,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),UN=B(Vu,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Uu})(({theme:e,ownerState:t})=>S({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),bm=p.forwardRef(function(t,n){var r,o,i,s,a;const l=le({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:d=!1,inputComponent:f="input",label:h,multiline:b=!1,notched:y,slots:v={},type:C="text"}=l,g=H(l,DN),m=FN(l),x=dr(),w=ao({props:l,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),k=S({},l,{color:w.color||"primary",disabled:w.disabled,error:w.error,focused:w.focused,formControl:x,fullWidth:d,hiddenLabel:w.hiddenLabel,multiline:b,size:w.size,type:C}),P=(r=(o=v.root)!=null?o:c.Root)!=null?r:BN,R=(i=(s=v.input)!=null?s:c.Input)!=null?i:UN;return u.jsx(dm,S({slots:{root:P,input:R},renderSuffix:E=>u.jsx(WN,{ownerState:k,className:m.notchedOutline,label:h!=null&&h!==""&&w.required?a||(a=u.jsxs(p.Fragment,{children:[h," ","*"]})):h,notched:typeof y<"u"?y:!!(E.startAdornment||E.filled||E.focused)}),fullWidth:d,inputComponent:f,multiline:b,ref:n,type:C},g,{classes:S({},m,{notchedOutline:null})}))});bm.muiName="Input";function HN(e){return re("MuiSelect",e)}const fs=oe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var dy;const VN=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],qN=B("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${fs.select}`]:t.select},{[`&.${fs.select}`]:t[n.variant]},{[`&.${fs.error}`]:t.error},{[`&.${fs.multiple}`]:t.multiple}]}})(rS,{[`&.${fs.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),KN=B("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${A(n.variant)}`],n.open&&t.iconOpen]}})(oS),GN=B("input",{shouldForwardProp:e=>S2(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function fy(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function YN(e){return e==null||typeof e=="string"&&!e.trim()}const XN=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${A(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return ie(a,HN,t)},QN=p.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":i,autoFocus:s,autoWidth:a,children:l,className:c,defaultOpen:d,defaultValue:f,disabled:h,displayEmpty:b,error:y=!1,IconComponent:v,inputRef:C,labelId:g,MenuProps:m={},multiple:x,name:w,onBlur:k,onChange:P,onClose:R,onFocus:E,onOpen:j,open:T,readOnly:O,renderValue:M,SelectDisplayProps:I={},tabIndex:N,value:D,variant:z="standard"}=t,W=H(t,VN),[$,_]=sa({controlled:D,default:f,name:"Select"}),[F,G]=sa({controlled:T,default:d,name:"Select"}),X=p.useRef(null),ce=p.useRef(null),[Z,ue]=p.useState(null),{current:U}=p.useRef(T!=null),[ee,K]=p.useState(),Q=Ye(n,C),he=p.useCallback(ae=>{ce.current=ae,ae&&ue(ae)},[]),J=Z==null?void 0:Z.parentNode;p.useImperativeHandle(Q,()=>({focus:()=>{ce.current.focus()},node:X.current,value:$}),[$]),p.useEffect(()=>{d&&F&&Z&&!U&&(K(a?null:J.clientWidth),ce.current.focus())},[Z,a]),p.useEffect(()=>{s&&ce.current.focus()},[s]),p.useEffect(()=>{if(!g)return;const ae=ft(ce.current).getElementById(g);if(ae){const Te=()=>{getSelection().isCollapsed&&ce.current.focus()};return ae.addEventListener("click",Te),()=>{ae.removeEventListener("click",Te)}}},[g]);const fe=(ae,Te)=>{ae?j&&j(Te):R&&R(Te),U||(K(a?null:J.clientWidth),G(ae))},pe=ae=>{ae.button===0&&(ae.preventDefault(),ce.current.focus(),fe(!0,ae))},Se=ae=>{fe(!1,ae)},xe=p.Children.toArray(l),Ct=ae=>{const Te=xe.find(Y=>Y.props.value===ae.target.value);Te!==void 0&&(_(Te.props.value),P&&P(ae,Te))},Fe=ae=>Te=>{let Y;if(Te.currentTarget.hasAttribute("tabindex")){if(x){Y=Array.isArray($)?$.slice():[];const ne=$.indexOf(ae.props.value);ne===-1?Y.push(ae.props.value):Y.splice(ne,1)}else Y=ae.props.value;if(ae.props.onClick&&ae.props.onClick(Te),$!==Y&&(_(Y),P)){const ne=Te.nativeEvent||Te,Ce=new ne.constructor(ne.type,ne);Object.defineProperty(Ce,"target",{writable:!0,value:{value:Y,name:w}}),P(Ce,ae)}x||fe(!1,Te)}},ze=ae=>{O||[" ","ArrowUp","ArrowDown","Enter"].indexOf(ae.key)!==-1&&(ae.preventDefault(),fe(!0,ae))},pt=Z!==null&&F,Me=ae=>{!pt&&k&&(Object.defineProperty(ae,"target",{writable:!0,value:{value:$,name:w}}),k(ae))};delete W["aria-invalid"];let ke,ct;const He=[];let Ee=!1;(vc({value:$})||b)&&(M?ke=M($):Ee=!0);const ht=xe.map(ae=>{if(!p.isValidElement(ae))return null;let Te;if(x){if(!Array.isArray($))throw new Error(jo(2));Te=$.some(Y=>fy(Y,ae.props.value)),Te&&Ee&&He.push(ae.props.children)}else Te=fy($,ae.props.value),Te&&Ee&&(ct=ae.props.children);return p.cloneElement(ae,{"aria-selected":Te?"true":"false",onClick:Fe(ae),onKeyUp:Y=>{Y.key===" "&&Y.preventDefault(),ae.props.onKeyUp&&ae.props.onKeyUp(Y)},role:"option",selected:Te,value:void 0,"data-value":ae.props.value})});Ee&&(x?He.length===0?ke=null:ke=He.reduce((ae,Te,Y)=>(ae.push(Te),Y{const{classes:t}=e;return t},Sm={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Mt(e)&&e!=="variant",slot:"Root"},t6=B(ym,Sm)(""),n6=B(bm,Sm)(""),r6=B(gm,Sm)(""),Oa=p.forwardRef(function(t,n){const r=le({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:s={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:d=N3,id:f,input:h,inputProps:b,label:y,labelId:v,MenuProps:C,multiple:g=!1,native:m=!1,onClose:x,onOpen:w,open:k,renderValue:P,SelectDisplayProps:R,variant:E="outlined"}=r,j=H(r,JN),T=m?MN:QN,O=dr(),M=ao({props:r,muiFormControl:O,states:["variant","error"]}),I=M.variant||E,N=S({},r,{variant:I,classes:s}),D=e6(N),z=H(D,ZN),W=h||{standard:u.jsx(t6,{ownerState:N}),outlined:u.jsx(n6,{label:y,ownerState:N}),filled:u.jsx(r6,{ownerState:N})}[I],$=Ye(n,W.ref);return u.jsx(p.Fragment,{children:p.cloneElement(W,S({inputComponent:T,inputProps:S({children:i,error:M.error,IconComponent:d,variant:I,type:void 0,multiple:g},m?{id:f}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:v,MenuProps:C,onClose:x,onOpen:w,open:k,renderValue:P,SelectDisplayProps:S({id:f},R)},b,{classes:b?Ft(z,b.classes):z},h?h.props.inputProps:{})},(g&&m||c)&&I==="outlined"?{notched:!0}:{},{ref:$,className:V(W.props.className,a,D.root)},!h&&{variant:I},j))})});Oa.muiName="Select";function o6(e){return re("MuiSnackbarContent",e)}oe("MuiSnackbarContent",["root","message","action"]);const i6=["action","className","message","role"],s6=e=>{const{classes:t}=e;return ie({root:["root"],action:["action"],message:["message"]},o6,t)},a6=B(gn,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=l5(e.palette.background.default,t);return S({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),l6=B("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),c6=B("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),u6=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiSnackbarContent"}),{action:o,className:i,message:s,role:a="alert"}=r,l=H(r,i6),c=r,d=s6(c);return u.jsxs(a6,S({role:a,square:!0,elevation:6,className:V(d.root,i),ownerState:c,ref:n},l,{children:[u.jsx(l6,{className:d.message,ownerState:c,children:s}),o?u.jsx(c6,{className:d.action,ownerState:c,children:o}):null]}))});function d6(e){return re("MuiSnackbar",e)}oe("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const f6=["onEnter","onExited"],p6=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],h6=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${A(n.vertical)}${A(n.horizontal)}`]};return ie(r,d6,t)},py=B("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${A(n.anchorOrigin.vertical)}${A(n.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const n={left:"50%",right:"auto",transform:"translateX(-50%)"};return S({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:S({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&n,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),lo=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiSnackbar"}),o=io(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:a,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:d,className:f,ClickAwayListenerProps:h,ContentProps:b,disableWindowBlurListener:y=!1,message:v,open:C,TransitionComponent:g=ua,transitionDuration:m=i,TransitionProps:{onEnter:x,onExited:w}={}}=r,k=H(r.TransitionProps,f6),P=H(r,p6),R=S({},r,{anchorOrigin:{vertical:a,horizontal:l},autoHideDuration:c,disableWindowBlurListener:y,TransitionComponent:g,transitionDuration:m}),E=h6(R),{getRootProps:j,onClickAway:T}=a3(S({},R)),[O,M]=p.useState(!0),I=en({elementType:py,getSlotProps:j,externalForwardedProps:P,ownerState:R,additionalProps:{ref:n},className:[E.root,f]}),N=z=>{M(!0),w&&w(z)},D=(z,W)=>{M(!1),x&&x(z,W)};return!C&&O?null:u.jsx($_,S({onClickAway:T},h,{children:u.jsx(py,S({},I,{children:u.jsx(g,S({appear:!0,in:C,timeout:m,direction:a==="top"?"down":"up",onEnter:D,onExited:N},k,{children:d||u.jsx(u6,S({message:v,action:s},b))}))}))}))});function m6(e){return re("MuiTooltip",e)}const Ur=oe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),g6=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function v6(e){return Math.round(e*1e5)/1e5}const y6=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${A(i.split("-")[0])}`],arrow:["arrow"]};return ie(s,m6,t)},x6=B(B2,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>S({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Ur.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Ur.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Ur.arrow}`]:S({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Ur.arrow}`]:S({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),b6=B("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${A(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>S({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:je(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${v6(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Ur.popper}[data-popper-placement*="left"] &`]:S({transformOrigin:"right center"},t.isRtl?S({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):S({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Ur.popper}[data-popper-placement*="right"] &`]:S({transformOrigin:"left center"},t.isRtl?S({marginRight:"14px"},t.touch&&{marginRight:"24px"}):S({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Ur.popper}[data-popper-placement*="top"] &`]:S({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Ur.popper}[data-popper-placement*="bottom"] &`]:S({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),S6=B("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:je(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let il=!1;const hy=new Ra;let ps={x:0,y:0};function sl(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Hn=p.forwardRef(function(t,n){var r,o,i,s,a,l,c,d,f,h,b,y,v,C,g,m,x,w,k;const P=le({props:t,name:"MuiTooltip"}),{arrow:R=!1,children:E,components:j={},componentsProps:T={},describeChild:O=!1,disableFocusListener:M=!1,disableHoverListener:I=!1,disableInteractive:N=!1,disableTouchListener:D=!1,enterDelay:z=100,enterNextDelay:W=0,enterTouchDelay:$=700,followCursor:_=!1,id:F,leaveDelay:G=0,leaveTouchDelay:X=1500,onClose:ce,onOpen:Z,open:ue,placement:U="bottom",PopperComponent:ee,PopperProps:K={},slotProps:Q={},slots:he={},title:J,TransitionComponent:fe=ua,TransitionProps:pe}=P,Se=H(P,g6),xe=p.isValidElement(E)?E:u.jsx("span",{children:E}),Ct=io(),Fe=Pa(),[ze,pt]=p.useState(),[Me,ke]=p.useState(null),ct=p.useRef(!1),He=N||_,Ee=xo(),ht=xo(),yt=xo(),wt=xo(),[Re,se]=sa({controlled:ue,default:!1,name:"Tooltip",state:"open"});let tt=Re;const Ut=ka(F),tn=p.useRef(),ae=zt(()=>{tn.current!==void 0&&(document.body.style.WebkitUserSelect=tn.current,tn.current=void 0),wt.clear()});p.useEffect(()=>ae,[ae]);const Te=we=>{hy.clear(),il=!0,se(!0),Z&&!tt&&Z(we)},Y=zt(we=>{hy.start(800+G,()=>{il=!1}),se(!1),ce&&tt&&ce(we),Ee.start(Ct.transitions.duration.shortest,()=>{ct.current=!1})}),ne=we=>{ct.current&&we.type!=="touchstart"||(ze&&ze.removeAttribute("title"),ht.clear(),yt.clear(),z||il&&W?ht.start(il?W:z,()=>{Te(we)}):Te(we))},Ce=we=>{ht.clear(),yt.start(G,()=>{Y(we)})},{isFocusVisibleRef:Pe,onBlur:nt,onFocus:kt,ref:vn}=Kh(),[,_r]=p.useState(!1),An=we=>{nt(we),Pe.current===!1&&(_r(!1),Ce(we))},zo=we=>{ze||pt(we.currentTarget),kt(we),Pe.current===!0&&(_r(!0),ne(we))},gg=we=>{ct.current=!0;const nn=xe.props;nn.onTouchStart&&nn.onTouchStart(we)},zS=we=>{gg(we),yt.clear(),Ee.clear(),ae(),tn.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",wt.start($,()=>{document.body.style.WebkitUserSelect=tn.current,ne(we)})},DS=we=>{xe.props.onTouchEnd&&xe.props.onTouchEnd(we),ae(),yt.start(X,()=>{Y(we)})};p.useEffect(()=>{if(!tt)return;function we(nn){(nn.key==="Escape"||nn.key==="Esc")&&Y(nn)}return document.addEventListener("keydown",we),()=>{document.removeEventListener("keydown",we)}},[Y,tt]);const FS=Ye(xe.ref,vn,pt,n);!J&&J!==0&&(tt=!1);const Qu=p.useRef(),BS=we=>{const nn=xe.props;nn.onMouseMove&&nn.onMouseMove(we),ps={x:we.clientX,y:we.clientY},Qu.current&&Qu.current.update()},Gi={},Ju=typeof J=="string";O?(Gi.title=!tt&&Ju&&!I?J:null,Gi["aria-describedby"]=tt?Ut:null):(Gi["aria-label"]=Ju?J:null,Gi["aria-labelledby"]=tt&&!Ju?Ut:null);const zn=S({},Gi,Se,xe.props,{className:V(Se.className,xe.props.className),onTouchStart:gg,ref:FS},_?{onMouseMove:BS}:{}),Yi={};D||(zn.onTouchStart=zS,zn.onTouchEnd=DS),I||(zn.onMouseOver=sl(ne,zn.onMouseOver),zn.onMouseLeave=sl(Ce,zn.onMouseLeave),He||(Yi.onMouseOver=ne,Yi.onMouseLeave=Ce)),M||(zn.onFocus=sl(zo,zn.onFocus),zn.onBlur=sl(An,zn.onBlur),He||(Yi.onFocus=zo,Yi.onBlur=An));const WS=p.useMemo(()=>{var we;let nn=[{name:"arrow",enabled:!!Me,options:{element:Me,padding:4}}];return(we=K.popperOptions)!=null&&we.modifiers&&(nn=nn.concat(K.popperOptions.modifiers)),S({},K.popperOptions,{modifiers:nn})},[Me,K]),Xi=S({},P,{isRtl:Fe,arrow:R,disableInteractive:He,placement:U,PopperComponentProp:ee,touch:ct.current}),Zu=y6(Xi),vg=(r=(o=he.popper)!=null?o:j.Popper)!=null?r:x6,yg=(i=(s=(a=he.transition)!=null?a:j.Transition)!=null?s:fe)!=null?i:ua,xg=(l=(c=he.tooltip)!=null?c:j.Tooltip)!=null?l:b6,bg=(d=(f=he.arrow)!=null?f:j.Arrow)!=null?d:S6,US=ai(vg,S({},K,(h=Q.popper)!=null?h:T.popper,{className:V(Zu.popper,K==null?void 0:K.className,(b=(y=Q.popper)!=null?y:T.popper)==null?void 0:b.className)}),Xi),HS=ai(yg,S({},pe,(v=Q.transition)!=null?v:T.transition),Xi),VS=ai(xg,S({},(C=Q.tooltip)!=null?C:T.tooltip,{className:V(Zu.tooltip,(g=(m=Q.tooltip)!=null?m:T.tooltip)==null?void 0:g.className)}),Xi),qS=ai(bg,S({},(x=Q.arrow)!=null?x:T.arrow,{className:V(Zu.arrow,(w=(k=Q.arrow)!=null?k:T.arrow)==null?void 0:w.className)}),Xi);return u.jsxs(p.Fragment,{children:[p.cloneElement(xe,zn),u.jsx(vg,S({as:ee??B2,placement:U,anchorEl:_?{getBoundingClientRect:()=>({top:ps.y,left:ps.x,right:ps.x,bottom:ps.y,width:0,height:0})}:ze,popperRef:Qu,open:ze?tt:!1,id:Ut,transition:!0},Yi,US,{popperOptions:WS,children:({TransitionProps:we})=>u.jsx(yg,S({timeout:Ct.transitions.duration.shorter},we,HS,{children:u.jsxs(xg,S({},VS,{children:[J,R?u.jsx(bg,S({},qS,{ref:ke})):null]}))}))}))]})});function C6(e){return re("MuiSwitch",e)}const Lt=oe("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),w6=["className","color","edge","size","sx"],k6=zu(),R6=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:s}=e,a={root:["root",n&&`edge${A(n)}`,`size${A(r)}`],switchBase:["switchBase",`color${A(o)}`,i&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=ie(a,C6,t);return S({},t,l)},P6=B("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${A(n.edge)}`],t[`size${A(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Lt.thumb}`]:{width:16,height:16},[`& .${Lt.switchBase}`]:{padding:4,[`&.${Lt.checked}`]:{transform:"translateX(16px)"}}}}]}),E6=B(q2,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Lt.input}`]:t.input},n.color!=="default"&&t[`color${A(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Lt.checked}`]:{transform:"translateX(20px)"},[`&.${Lt.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Lt.checked} + .${Lt.track}`]:{opacity:.5},[`&.${Lt.disabled} + .${Lt.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Lt.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:je(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${Lt.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:je(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Lt.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?fc(e.palette[t].main,.62):dc(e.palette[t].main,.55)}`}},[`&.${Lt.checked} + .${Lt.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),$6=B("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),T6=B("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),_6=p.forwardRef(function(t,n){const r=k6({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:s=!1,size:a="medium",sx:l}=r,c=H(r,w6),d=S({},r,{color:i,edge:s,size:a}),f=R6(d),h=u.jsx(T6,{className:f.thumb,ownerState:d});return u.jsxs(P6,{className:V(f.root,o),sx:l,ownerState:d,children:[u.jsx(E6,S({type:"checkbox",icon:h,checkedIcon:h,ref:n,ownerState:d},c,{classes:S({},f,{root:f.switchBase})})),u.jsx($6,{className:f.track,ownerState:d})]})});function j6(e){return re("MuiTab",e)}const uo=oe("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),O6=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],I6=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:s,selected:a,disabled:l}=e,c={root:["root",i&&s&&"labelIcon",`textColor${A(n)}`,r&&"fullWidth",o&&"wrapped",a&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return ie(c,j6,t)},M6=B(kr,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${A(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>S({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${uo.iconWrapper}`]:S({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${uo.selected}`]:{opacity:1},[`&.${uo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${uo.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${uo.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${uo.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${uo.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),jl=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:s=!1,fullWidth:a,icon:l,iconPosition:c="top",indicator:d,label:f,onChange:h,onClick:b,onFocus:y,selected:v,selectionFollowsFocus:C,textColor:g="inherit",value:m,wrapped:x=!1}=r,w=H(r,O6),k=S({},r,{disabled:i,disableFocusRipple:s,selected:v,icon:!!l,iconPosition:c,label:!!f,fullWidth:a,textColor:g,wrapped:x}),P=I6(k),R=l&&f&&p.isValidElement(l)?p.cloneElement(l,{className:V(P.iconWrapper,l.props.className)}):l,E=T=>{!v&&h&&h(T,m),b&&b(T)},j=T=>{C&&!v&&h&&h(T,m),y&&y(T)};return u.jsxs(M6,S({focusRipple:!s,className:V(P.root,o),ref:n,role:"tab","aria-selected":v,disabled:i,onClick:E,onFocus:j,ownerState:k,tabIndex:v?0:-1},w,{children:[c==="top"||c==="start"?u.jsxs(p.Fragment,{children:[R,f]}):u.jsxs(p.Fragment,{children:[f,R]}),d]}))});function N6(e){return re("MuiToolbar",e)}oe("MuiToolbar",["root","gutters","regular","dense"]);const L6=["className","component","disableGutters","variant"],A6=e=>{const{classes:t,disableGutters:n,variant:r}=e;return ie({root:["root",!n&&"gutters",r]},N6,t)},z6=B("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>S({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),D6=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:s=!1,variant:a="regular"}=r,l=H(r,L6),c=S({},r,{component:i,disableGutters:s,variant:a}),d=A6(c);return u.jsx(z6,S({as:i,className:V(d.root,o),ref:n,ownerState:c},l))}),F6=Nt(u.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),B6=Nt(u.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function W6(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function U6(e,t,n,r={},o=()=>{}){const{ease:i=W6,duration:s=300}=r;let a=null;const l=t[e];let c=!1;const d=()=>{c=!0},f=h=>{if(c){o(new Error("Animation cancelled"));return}a===null&&(a=h);const b=Math.min(1,(h-a)/s);if(t[e]=i(b)*(n-l)+l,b>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(f)};return l===n?(o(new Error("Element already at target position")),d):(requestAnimationFrame(f),d)}const H6=["onChange"],V6={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function q6(e){const{onChange:t}=e,n=H(e,H6),r=p.useRef(),o=p.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return dn(()=>{const s=Hi(()=>{const l=r.current;i(),l!==r.current&&t(r.current)}),a=_n(o.current);return a.addEventListener("resize",s),()=>{s.clear(),a.removeEventListener("resize",s)}},[t]),p.useEffect(()=>{i(),t(r.current)},[t]),u.jsx("div",S({style:V6,ref:o},n))}function K6(e){return re("MuiTabScrollButton",e)}const G6=oe("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Y6=["className","slots","slotProps","direction","orientation","disabled"],X6=e=>{const{classes:t,orientation:n,disabled:r}=e;return ie({root:["root",n,r&&"disabled"]},K6,t)},Q6=B(kr,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>S({width:40,flexShrink:0,opacity:.8,[`&.${G6.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),J6=p.forwardRef(function(t,n){var r,o;const i=le({props:t,name:"MuiTabScrollButton"}),{className:s,slots:a={},slotProps:l={},direction:c}=i,d=H(i,Y6),f=Pa(),h=S({isRtl:f},i),b=X6(h),y=(r=a.StartScrollButtonIcon)!=null?r:F6,v=(o=a.EndScrollButtonIcon)!=null?o:B6,C=en({elementType:y,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),g=en({elementType:v,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return u.jsx(Q6,S({component:"div",className:V(b.root,s),ref:n,role:null,ownerState:h,tabIndex:null},d,{children:c==="left"?u.jsx(y,S({},C)):u.jsx(v,S({},g))}))});function Z6(e){return re("MuiTabs",e)}const Kd=oe("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),eL=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],my=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,gy=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,al=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const i=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||i)o=n(e,o);else{o.focus();return}}},tL=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:s,scrollButtonsHideMobile:a,classes:l}=e;return ie({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},Z6,l)},nL=B("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Kd.scrollButtons}`]:t.scrollButtons},{[`& .${Kd.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>S({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Kd.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),rL=B("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>S({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),oL=B("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>S({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),iL=B("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>S({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),sL=B(q6)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),vy={},iS=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiTabs"}),o=io(),i=Pa(),{"aria-label":s,"aria-labelledby":a,action:l,centered:c=!1,children:d,className:f,component:h="div",allowScrollButtonsMobile:b=!1,indicatorColor:y="primary",onChange:v,orientation:C="horizontal",ScrollButtonComponent:g=J6,scrollButtons:m="auto",selectionFollowsFocus:x,slots:w={},slotProps:k={},TabIndicatorProps:P={},TabScrollButtonProps:R={},textColor:E="primary",value:j,variant:T="standard",visibleScrollbar:O=!1}=r,M=H(r,eL),I=T==="scrollable",N=C==="vertical",D=N?"scrollTop":"scrollLeft",z=N?"top":"left",W=N?"bottom":"right",$=N?"clientHeight":"clientWidth",_=N?"height":"width",F=S({},r,{component:h,allowScrollButtonsMobile:b,indicatorColor:y,orientation:C,vertical:N,scrollButtons:m,textColor:E,variant:T,visibleScrollbar:O,fixed:!I,hideScrollbar:I&&!O,scrollableX:I&&!N,scrollableY:I&&N,centered:c&&!I,scrollButtonsHideMobile:!b}),G=tL(F),X=en({elementType:w.StartScrollButtonIcon,externalSlotProps:k.startScrollButtonIcon,ownerState:F}),ce=en({elementType:w.EndScrollButtonIcon,externalSlotProps:k.endScrollButtonIcon,ownerState:F}),[Z,ue]=p.useState(!1),[U,ee]=p.useState(vy),[K,Q]=p.useState(!1),[he,J]=p.useState(!1),[fe,pe]=p.useState(!1),[Se,xe]=p.useState({overflow:"hidden",scrollbarWidth:0}),Ct=new Map,Fe=p.useRef(null),ze=p.useRef(null),pt=()=>{const Y=Fe.current;let ne;if(Y){const Pe=Y.getBoundingClientRect();ne={clientWidth:Y.clientWidth,scrollLeft:Y.scrollLeft,scrollTop:Y.scrollTop,scrollLeftNormalized:A4(Y,i?"rtl":"ltr"),scrollWidth:Y.scrollWidth,top:Pe.top,bottom:Pe.bottom,left:Pe.left,right:Pe.right}}let Ce;if(Y&&j!==!1){const Pe=ze.current.children;if(Pe.length>0){const nt=Pe[Ct.get(j)];Ce=nt?nt.getBoundingClientRect():null}}return{tabsMeta:ne,tabMeta:Ce}},Me=zt(()=>{const{tabsMeta:Y,tabMeta:ne}=pt();let Ce=0,Pe;if(N)Pe="top",ne&&Y&&(Ce=ne.top-Y.top+Y.scrollTop);else if(Pe=i?"right":"left",ne&&Y){const kt=i?Y.scrollLeftNormalized+Y.clientWidth-Y.scrollWidth:Y.scrollLeft;Ce=(i?-1:1)*(ne[Pe]-Y[Pe]+kt)}const nt={[Pe]:Ce,[_]:ne?ne[_]:0};if(isNaN(U[Pe])||isNaN(U[_]))ee(nt);else{const kt=Math.abs(U[Pe]-nt[Pe]),vn=Math.abs(U[_]-nt[_]);(kt>=1||vn>=1)&&ee(nt)}}),ke=(Y,{animation:ne=!0}={})=>{ne?U6(D,Fe.current,Y,{duration:o.transitions.duration.standard}):Fe.current[D]=Y},ct=Y=>{let ne=Fe.current[D];N?ne+=Y:(ne+=Y*(i?-1:1),ne*=i&&a2()==="reverse"?-1:1),ke(ne)},He=()=>{const Y=Fe.current[$];let ne=0;const Ce=Array.from(ze.current.children);for(let Pe=0;PeY){Pe===0&&(ne=Y);break}ne+=nt[$]}return ne},Ee=()=>{ct(-1*He())},ht=()=>{ct(He())},yt=p.useCallback(Y=>{xe({overflow:null,scrollbarWidth:Y})},[]),wt=()=>{const Y={};Y.scrollbarSizeListener=I?u.jsx(sL,{onChange:yt,className:V(G.scrollableX,G.hideScrollbar)}):null;const Ce=I&&(m==="auto"&&(K||he)||m===!0);return Y.scrollButtonStart=Ce?u.jsx(g,S({slots:{StartScrollButtonIcon:w.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:X},orientation:C,direction:i?"right":"left",onClick:Ee,disabled:!K},R,{className:V(G.scrollButtons,R.className)})):null,Y.scrollButtonEnd=Ce?u.jsx(g,S({slots:{EndScrollButtonIcon:w.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:ce},orientation:C,direction:i?"left":"right",onClick:ht,disabled:!he},R,{className:V(G.scrollButtons,R.className)})):null,Y},Re=zt(Y=>{const{tabsMeta:ne,tabMeta:Ce}=pt();if(!(!Ce||!ne)){if(Ce[z]ne[W]){const Pe=ne[D]+(Ce[W]-ne[W]);ke(Pe,{animation:Y})}}}),se=zt(()=>{I&&m!==!1&&pe(!fe)});p.useEffect(()=>{const Y=Hi(()=>{Fe.current&&Me()});let ne;const Ce=kt=>{kt.forEach(vn=>{vn.removedNodes.forEach(_r=>{var An;(An=ne)==null||An.unobserve(_r)}),vn.addedNodes.forEach(_r=>{var An;(An=ne)==null||An.observe(_r)})}),Y(),se()},Pe=_n(Fe.current);Pe.addEventListener("resize",Y);let nt;return typeof ResizeObserver<"u"&&(ne=new ResizeObserver(Y),Array.from(ze.current.children).forEach(kt=>{ne.observe(kt)})),typeof MutationObserver<"u"&&(nt=new MutationObserver(Ce),nt.observe(ze.current,{childList:!0})),()=>{var kt,vn;Y.clear(),Pe.removeEventListener("resize",Y),(kt=nt)==null||kt.disconnect(),(vn=ne)==null||vn.disconnect()}},[Me,se]),p.useEffect(()=>{const Y=Array.from(ze.current.children),ne=Y.length;if(typeof IntersectionObserver<"u"&&ne>0&&I&&m!==!1){const Ce=Y[0],Pe=Y[ne-1],nt={root:Fe.current,threshold:.99},kt=zo=>{Q(!zo[0].isIntersecting)},vn=new IntersectionObserver(kt,nt);vn.observe(Ce);const _r=zo=>{J(!zo[0].isIntersecting)},An=new IntersectionObserver(_r,nt);return An.observe(Pe),()=>{vn.disconnect(),An.disconnect()}}},[I,m,fe,d==null?void 0:d.length]),p.useEffect(()=>{ue(!0)},[]),p.useEffect(()=>{Me()}),p.useEffect(()=>{Re(vy!==U)},[Re,U]),p.useImperativeHandle(l,()=>({updateIndicator:Me,updateScrollButtons:se}),[Me,se]);const tt=u.jsx(iL,S({},P,{className:V(G.indicator,P.className),ownerState:F,style:S({},U,P.style)}));let Ut=0;const tn=p.Children.map(d,Y=>{if(!p.isValidElement(Y))return null;const ne=Y.props.value===void 0?Ut:Y.props.value;Ct.set(ne,Ut);const Ce=ne===j;return Ut+=1,p.cloneElement(Y,S({fullWidth:T==="fullWidth",indicator:Ce&&!Z&&tt,selected:Ce,selectionFollowsFocus:x,onChange:v,textColor:E,value:ne},Ut===1&&j===!1&&!Y.props.tabIndex?{tabIndex:0}:{}))}),ae=Y=>{const ne=ze.current,Ce=ft(ne).activeElement;if(Ce.getAttribute("role")!=="tab")return;let nt=C==="horizontal"?"ArrowLeft":"ArrowUp",kt=C==="horizontal"?"ArrowRight":"ArrowDown";switch(C==="horizontal"&&i&&(nt="ArrowRight",kt="ArrowLeft"),Y.key){case nt:Y.preventDefault(),al(ne,Ce,gy);break;case kt:Y.preventDefault(),al(ne,Ce,my);break;case"Home":Y.preventDefault(),al(ne,null,my);break;case"End":Y.preventDefault(),al(ne,null,gy);break}},Te=wt();return u.jsxs(nL,S({className:V(G.root,f),ownerState:F,ref:n,as:h},M,{children:[Te.scrollButtonStart,Te.scrollbarSizeListener,u.jsxs(rL,{className:G.scroller,ownerState:F,style:{overflow:Se.overflow,[N?`margin${i?"Left":"Right"}`:"marginBottom"]:O?void 0:-Se.scrollbarWidth},ref:Fe,children:[u.jsx(oL,{"aria-label":s,"aria-labelledby":a,"aria-orientation":C==="vertical"?"vertical":null,className:G.flexContainer,ownerState:F,onKeyDown:ae,ref:ze,role:"tablist",children:tn}),Z&&tt]}),Te.scrollButtonEnd]}))});function aL(e){return re("MuiTextField",e)}oe("MuiTextField",["root"]);const lL=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],cL={standard:ym,filled:gm,outlined:bm},uL=e=>{const{classes:t}=e;return ie({root:["root"]},aL,t)},dL=B(Gu,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),qe=p.forwardRef(function(t,n){const r=le({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:s,className:a,color:l="primary",defaultValue:c,disabled:d=!1,error:f=!1,FormHelperTextProps:h,fullWidth:b=!1,helperText:y,id:v,InputLabelProps:C,inputProps:g,InputProps:m,inputRef:x,label:w,maxRows:k,minRows:P,multiline:R=!1,name:E,onBlur:j,onChange:T,onFocus:O,placeholder:M,required:I=!1,rows:N,select:D=!1,SelectProps:z,type:W,value:$,variant:_="outlined"}=r,F=H(r,lL),G=S({},r,{autoFocus:i,color:l,disabled:d,error:f,fullWidth:b,multiline:R,required:I,select:D,variant:_}),X=uL(G),ce={};_==="outlined"&&(C&&typeof C.shrink<"u"&&(ce.notched=C.shrink),ce.label=w),D&&((!z||!z.native)&&(ce.id=void 0),ce["aria-describedby"]=void 0);const Z=ka(v),ue=y&&Z?`${Z}-helper-text`:void 0,U=w&&Z?`${Z}-label`:void 0,ee=cL[_],K=u.jsx(ee,S({"aria-describedby":ue,autoComplete:o,autoFocus:i,defaultValue:c,fullWidth:b,multiline:R,name:E,rows:N,maxRows:k,minRows:P,type:W,value:$,id:Z,inputRef:x,onBlur:j,onChange:T,onFocus:O,placeholder:M,inputProps:g},ce,m));return u.jsxs(dL,S({className:V(X.root,a),disabled:d,error:f,fullWidth:b,ref:n,required:I,color:l,variant:_,ownerState:G},F,{children:[w!=null&&w!==""&&u.jsx(Yu,S({htmlFor:Z,id:U},C,{children:w})),D?u.jsx(Oa,S({"aria-describedby":ue,id:Z,labelId:U,value:$,input:K},z,{children:s})):K,y&&u.jsx(cM,S({id:ue},h,{children:y}))]}))});var Cm={},Gd={};const fL=Pr(hT);var yy;function ge(){return yy||(yy=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=fL}(Gd)),Gd}var pL=de;Object.defineProperty(Cm,"__esModule",{value:!0});var Ki=Cm.default=void 0,hL=pL(ge()),mL=u;Ki=Cm.default=(0,hL.default)((0,mL.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");var wm={},gL=de;Object.defineProperty(wm,"__esModule",{value:!0});var km=wm.default=void 0,vL=gL(ge()),yL=u;km=wm.default=(0,vL.default)((0,yL.jsx)("path",{d:"M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3m5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72z"}),"Mic");var Rm={},xL=de;Object.defineProperty(Rm,"__esModule",{value:!0});var Pm=Rm.default=void 0,bL=xL(ge()),SL=u;Pm=Rm.default=(0,bL.default)((0,SL.jsx)("path",{d:"M19 11h-1.7c0 .74-.16 1.43-.43 2.05l1.23 1.23c.56-.98.9-2.09.9-3.28m-4.02.17c0-.06.02-.11.02-.17V5c0-1.66-1.34-3-3-3S9 3.34 9 5v.18zM4.27 3 3 4.27l6.01 6.01V11c0 1.66 1.33 3 2.99 3 .22 0 .44-.03.65-.08l1.66 1.66c-.71.33-1.5.52-2.31.52-2.76 0-5.3-2.1-5.3-5.1H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c.91-.13 1.77-.45 2.54-.9L19.73 21 21 19.73z"}),"MicOff");var Em={},CL=de;Object.defineProperty(Em,"__esModule",{value:!0});var Xu=Em.default=void 0,wL=CL(ge()),kL=u;Xu=Em.default=(0,wL.default)((0,kL.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"Person");var $m={},RL=de;Object.defineProperty($m,"__esModule",{value:!0});var Sc=$m.default=void 0,PL=RL(ge()),EL=u;Sc=$m.default=(0,PL.default)((0,EL.jsx)("path",{d:"M3 9v6h4l5 5V4L7 9zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02M14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77"}),"VolumeUp");var Tm={},$L=de;Object.defineProperty(Tm,"__esModule",{value:!0});var Cc=Tm.default=void 0,TL=$L(ge()),_L=u;Cc=Tm.default=(0,TL.default)((0,_L.jsx)("path",{d:"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63m2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71M4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9zM12 4 9.91 6.09 12 8.18z"}),"VolumeOff");var _m={},jL=de;Object.defineProperty(_m,"__esModule",{value:!0});var jm=_m.default=void 0,OL=jL(ge()),IL=u;jm=_m.default=(0,OL.default)((0,IL.jsx)("path",{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-1 9h-4v4h-2v-4H9V9h4V5h2v4h4z"}),"LibraryAdd");const gi="/assets/Aria-BMTE8U_Y.jpg",ML=()=>u.jsxs(Ke,{sx:{display:"flex",alignItems:"center",color:"text.secondary"},children:[u.jsx(yr,{src:gi,sx:{width:24,height:24,marginRight:1},alt:"Aria"}),u.jsxs("div",{style:{display:"flex"},children:[u.jsx("div",{style:{animation:"blink 1.4s infinite",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),u.jsx("div",{style:{animation:"blink 1.4s infinite 0.2s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),u.jsx("div",{style:{animation:"blink 1.4s infinite 0.4s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor"}})]})]}),NL=()=>{const{user:e,voiceEnabled:t,setVoiceEnabled:n}=p.useContext(lr),r=e==null?void 0:e.userId,[o,i]=p.useState(null),[s,a]=p.useState(0),[l,c]=p.useState(""),[d,f]=p.useState([]),[h,b]=p.useState(!1),[y,v]=p.useState(null),C=p.useRef([]),[g,m]=p.useState(!1),[x,w]=p.useState(""),[k,P]=p.useState(!1),[R,E]=p.useState(!1),[j,T]=p.useState(""),[O,M]=p.useState("info"),[I,N]=p.useState(null),D=U=>{U.preventDefault(),n(!t)},z=U=>{if(!t||U===I){N(null),window.speechSynthesis.cancel();return}const ee=window.speechSynthesis,K=new SpeechSynthesisUtterance(U),Q=()=>{const he=ee.getVoices();console.log(he.map(fe=>`${fe.name} - ${fe.lang} - ${fe.gender}`));const J=he.find(fe=>fe.name.includes("Microsoft Zira - English (United States)"));J?K.voice=J:console.log("No female voice found"),K.onend=()=>{N(null)},N(U),ee.speak(K)};ee.getVoices().length===0?ee.onvoiceschanged=Q:Q()},W=p.useCallback(async()=>{if(r){m(!0),P(!0);try{const U=await fetch(`/api/ai/mental_health/welcome/${r}`,{method:"POST",headers:{"Content-Type":"application/json"}}),ee=await U.json();console.log(ee),U.ok?(w(ee.message),t&&ee.message&&z(ee.message),i(ee.chat_id),console.log(ee.chat_id)):(console.error("Failed to fetch welcome message:",ee),w("Error fetching welcome message."))}catch(U){console.error("Network or server error:",U)}finally{m(!1),P(!1)}}},[r]);p.useEffect(()=>{W()},[]);const $=(U,ee)=>{ee!=="clickaway"&&E(!1)},_=p.useCallback(async()=>{if(o!==null){m(!0);try{const U=await fetch(`/api/ai/mental_health/finalize/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"}}),ee=await U.json();U.ok?(T("Chat finalized successfully"),M("success"),i(null),a(0),f([]),W()):(T("Failed to finalize chat"),M("error"))}catch{T("Error finalizing chat"),M("error")}finally{m(!1),E(!0)}}},[r,o,W]),F=p.useCallback(async()=>{if(!(!l.trim()||o===void 0)){console.log(o),m(!0);try{const U=JSON.stringify({prompt:l,turn_id:s}),ee=await fetch(`/api/ai/mental_health/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"},body:U}),K=await ee.json();console.log(K),ee.ok?(f(Q=>[...Q,{message:l,sender:"user"},{message:K,sender:"agent"}]),t&&K&&z(K),a(Q=>Q+1),c("")):(console.error("Failed to send message:",K.error||"Unknown error occurred"),T(K.error||"An error occurred while sending the message."),M("error"),E(!0))}catch(U){console.error("Failed to send message:",U),T("Network or server error occurred."),M("error"),E(!0)}finally{m(!1)}}},[l,r,o,s]),G=()=>{navigator.mediaDevices.getUserMedia({audio:!0}).then(U=>{C.current=[];const ee={mimeType:"audio/webm; codecs=opus"},K=new MediaRecorder(U,ee);K.ondataavailable=Q=>{console.log("Data available:",Q.data.size),C.current.push(Q.data)},K.start(),v(K),b(!0)}).catch(console.error)},X=()=>{y&&(y.onstop=()=>{ce(C.current),b(!1),v(null)},y.stop())},ce=U=>{console.log("Audio chunks size:",U.reduce((Q,he)=>Q+he.size,0));const ee=new Blob(U,{type:"audio/webm; codecs=opus"});if(ee.size===0){console.error("Audio Blob is empty");return}console.log(`Sending audio blob of size: ${ee.size} bytes`);const K=new FormData;K.append("audio",ee),m(!0),ve.post("/api/ai/mental_health/voice-to-text",K,{headers:{"Content-Type":"multipart/form-data"}}).then(Q=>{const{message:he}=Q.data;c(he),F()}).catch(Q=>{console.error("Error uploading audio:",Q),E(!0),T("Error processing voice input: "+Q.message),M("error")}).finally(()=>{m(!1)})},Z=p.useCallback(U=>{const ee=U.target.value;ee.split(/\s+/).length>200?(c(Q=>Q.split(/\s+/).slice(0,200).join(" ")),T("Word limit reached. Only 200 words allowed."),M("warning"),E(!0)):c(ee)},[]),ue=U=>U===I?u.jsx(Cc,{}):u.jsx(Sc,{});return u.jsxs(u.Fragment,{children:[u.jsx("style",{children:` - @keyframes blink { - 0%, 100% { opacity: 0; } - 50% { opacity: 1; } - } - @media (max-width: 720px) { - .new-chat-button { - - top: 5px; - right: 5px; - padding: 4px 8px; /* Smaller padding */ - font-size: 0.8rem; /* Smaller font size */ - } - } - `}),u.jsxs(Ke,{sx:{maxWidth:"100%",mx:"auto",my:2,display:"flex",flexDirection:"column",height:"91vh",borderRadius:2,boxShadow:1},children:[u.jsxs(qu,{sx:{display:"flex",flexDirection:"column",height:"100%",borderRadius:2,boxShadow:3},children:[u.jsxs(fm,{sx:{flexGrow:1,overflow:"auto",padding:3,position:"relative"},children:[u.jsxs(Ke,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",position:"relative",marginBottom:"5px"},children:[u.jsx(Hn,{title:"Toggle voice responses",children:u.jsx(Qe,{color:"inherit",onClick:D,sx:{padding:0},children:u.jsx(_6,{checked:t,onChange:U=>n(U.target.checked),icon:u.jsx(Cc,{}),checkedIcon:u.jsx(Sc,{}),inputProps:{"aria-label":"Voice response toggle"},color:"default",sx:{height:42,"& .MuiSwitch-switchBase":{padding:"9px"},"& .MuiSwitch-switchBase.Mui-checked":{color:"white",transform:"translateX(16px)","& + .MuiSwitch-track":{backgroundColor:"primary.main"}}}})})}),u.jsx(Hn,{title:"Start a new chat",placement:"top",arrow:!0,children:u.jsx(Qe,{"aria-label":"new chat",color:"primary",onClick:_,disabled:g,sx:{"&:hover":{backgroundColor:"primary.main",color:"common.white"}},children:u.jsx(jm,{})})})]}),u.jsx(ca,{sx:{marginBottom:"10px"}}),x.length===0&&u.jsxs(Ke,{sx:{display:"flex",marginBottom:2,marginTop:3},children:[u.jsx(yr,{src:gi,sx:{width:44,height:44,marginRight:2},alt:"Aria"}),u.jsx(ye,{variant:"h4",component:"h1",gutterBottom:!0,children:"Welcome to Mental Health Companion"})]}),k?u.jsx(ML,{}):d.length===0&&u.jsxs(Ke,{sx:{display:"flex"},children:[u.jsx(yr,{src:gi,sx:{width:36,height:36,marginRight:1},alt:"Aria"}),u.jsxs(ye,{variant:"body1",gutterBottom:!0,sx:{bgcolor:"grey.200",borderRadius:"16px",px:2,py:1,display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap"},children:[x,t&&x&&u.jsx(Qe,{onClick:()=>z(x),size:"small",sx:{ml:1},children:ue(x)})]})]}),u.jsx(ja,{sx:{maxHeight:"100%",overflow:"auto"},children:d.map((U,ee)=>u.jsx(xc,{sx:{display:"flex",flexDirection:"column",alignItems:U.sender==="user"?"flex-end":"flex-start",borderRadius:2,mb:.5,p:1,border:"none","&:before":{display:"none"},"&:after":{display:"none"}},children:u.jsxs(Ke,{sx:{display:"flex",alignItems:"center",color:U.sender==="user"?"common.white":"text.primary",borderRadius:"16px"},children:[U.sender==="agent"&&u.jsx(yr,{src:gi,sx:{width:36,height:36,mr:1},alt:"Aria"}),u.jsx(da,{primary:u.jsxs(Ke,{sx:{display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap"},children:[U.message,t&&U.sender==="agent"&&u.jsx(Qe,{onClick:()=>z(U.message),size:"small",sx:{ml:1},children:ue(U.message)})]}),primaryTypographyProps:{sx:{color:U.sender==="user"?"common.white":"text.primary",bgcolor:U.sender==="user"?"primary.main":"grey.200",borderRadius:"16px",px:2,py:1,display:"inline-block"}}}),U.sender==="user"&&u.jsx(yr,{sx:{width:36,height:36,ml:1},children:u.jsx(Xu,{})})]})},ee))})]}),u.jsx(ca,{}),u.jsxs(Ke,{sx:{p:2,pb:1,display:"flex",alignItems:"center",bgcolor:"background.paper"},children:[u.jsx(qe,{fullWidth:!0,variant:"outlined",placeholder:"Type your message here...",value:l,onChange:Z,disabled:g,sx:{mr:1,flexGrow:1},InputProps:{endAdornment:u.jsx(yc,{position:"end",children:u.jsxs(Qe,{onClick:h?X:G,color:"primary.main","aria-label":h?"Stop recording":"Start recording",size:"large",edge:"end",disabled:g,children:[h?u.jsx(Pm,{size:"small"}):u.jsx(km,{size:"small"}),h&&u.jsx(kn,{size:30,sx:{color:"primary.main",position:"absolute",zIndex:1}})]})})}}),g?u.jsx(kn,{size:24}):u.jsx(gt,{variant:"contained",color:"primary",onClick:F,disabled:g||!l.trim(),endIcon:u.jsx(Ki,{}),children:"Send"})]})]}),u.jsx(lo,{open:R,autoHideDuration:6e3,onClose:$,children:u.jsx(ur,{elevation:6,variant:"filled",onClose:$,severity:O,children:j})})]})]})};var Om={},LL=de;Object.defineProperty(Om,"__esModule",{value:!0});var sS=Om.default=void 0,AL=LL(ge()),zL=u;sS=Om.default=(0,AL.default)((0,zL.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2M9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9zm9 14H6V10h12zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2"}),"LockOutlined");var Im={},DL=de;Object.defineProperty(Im,"__esModule",{value:!0});var aS=Im.default=void 0,FL=DL(ge()),BL=u;aS=Im.default=(0,FL.default)((0,BL.jsx)("path",{d:"M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m-9-2V7H4v3H1v2h3v3h2v-3h3v-2zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"PersonAdd");var Mm={},WL=de;Object.defineProperty(Mm,"__esModule",{value:!0});var wc=Mm.default=void 0,UL=WL(ge()),HL=u;wc=Mm.default=(0,UL.default)((0,HL.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");const xy=Nt(u.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),by=Nt(u.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");var Nm={},VL=de;Object.defineProperty(Nm,"__esModule",{value:!0});var Lm=Nm.default=void 0,qL=VL(ge()),KL=u;Lm=Nm.default=(0,qL.default)((0,KL.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info");const Yd=Ea({palette:{primary:{main:"#556cd6"},secondary:{main:"#19857b"},background:{default:"linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)",paper:"#fff"}},typography:{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif',h5:{fontWeight:600,color:"#444"},button:{textTransform:"none",fontWeight:"bold"}},components:{MuiButton:{styleOverrides:{root:{margin:"8px"}}}}}),GL=B(gn)(({theme:e})=>({marginTop:e.spacing(12),display:"flex",flexDirection:"column",alignItems:"center",padding:e.spacing(4),borderRadius:e.shape.borderRadius,boxShadow:e.shadows[10],width:"90%",maxWidth:"450px",opacity:.98,backdropFilter:"blur(10px)"}));function YL(){const e=Ao(),[t,n]=p.useState(!1),{setUser:r}=p.useContext(lr),[o,i]=p.useState(0),[s,a]=p.useState(""),[l,c]=p.useState(""),[d,f]=p.useState(!1),[h,b]=p.useState(""),[y,v]=p.useState(!1),[C,g]=p.useState(""),[m,x]=p.useState(""),[w,k]=p.useState(""),[P,R]=p.useState(""),[E,j]=p.useState(""),[T,O]=p.useState(!1),[M,I]=p.useState(!1),[N,D]=p.useState(""),[z,W]=p.useState("info"),$=[{id:"job_search",name:"Stress from job search"},{id:"classwork",name:"Stress from classwork"},{id:"social_anxiety",name:"Social anxiety"},{id:"impostor_syndrome",name:"Impostor Syndrome"},{id:"career_drift",name:"Career Drift"}],[_,F]=p.useState([]),G=K=>{const Q=K.target.value,he=_.includes(Q)?_.filter(J=>J!==Q):[..._,Q];F(he)},X=async K=>{var Q,he;K.preventDefault(),O(!0);try{const J=await ve.post("/api/user/login",{username:s,password:h});if(J&&J.data){const fe=J.data.userId;localStorage.setItem("token",J.data.access_token),console.log("Token stored:",localStorage.getItem("token")),D("Login successful!"),W("success"),n(!0),r({userId:fe}),e("/"),console.log("User logged in:",fe)}else throw new Error("Invalid response from server")}catch(J){console.error("Login failed:",J),D("Login failed: "+(((he=(Q=J.response)==null?void 0:Q.data)==null?void 0:he.msg)||"Unknown error")),W("error"),f(!0)}I(!0),O(!1)},ce=async K=>{var Q,he;K.preventDefault(),O(!0);try{const J=await ve.post("/api/user/signup",{username:s,email:l,password:h,name:C,age:m,gender:w,placeOfResidence:P,fieldOfWork:E,mental_health_concerns:_});if(J&&J.data){const fe=J.data.userId;localStorage.setItem("token",J.data.access_token),console.log("Token stored:",localStorage.getItem("token")),D("User registered successfully!"),W("success"),n(!0),r({userId:fe}),e("/"),console.log("User registered:",fe)}else throw new Error("Invalid response from server")}catch(J){console.error("Signup failed:",J),D(((he=(Q=J.response)==null?void 0:Q.data)==null?void 0:he.error)||"Failed to register user."),W("error")}O(!1),I(!0)},Z=async K=>{var Q,he;K.preventDefault(),O(!0);try{const J=await ve.post("/api/user/anonymous_signin");if(J&&J.data)localStorage.setItem("token",J.data.access_token),console.log("Token stored:",localStorage.getItem("token")),D("Anonymous sign-in successful!"),W("success"),n(!0),r({userId:null}),e("/");else throw new Error("Invalid response from server")}catch(J){console.error("Anonymous sign-in failed:",J),D("Anonymous sign-in failed: "+(((he=(Q=J.response)==null?void 0:Q.data)==null?void 0:he.msg)||"Unknown error")),W("error")}O(!1),I(!0)},ue=(K,Q)=>{i(Q)},U=(K,Q)=>{Q!=="clickaway"&&I(!1)},ee=()=>{v(!y)};return u.jsxs(Qh,{theme:Yd,children:[u.jsx(hm,{}),u.jsx(Ke,{sx:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",background:Yd.palette.background.default},children:u.jsxs(GL,{children:[u.jsxs(iS,{value:o,onChange:ue,variant:"fullWidth",centered:!0,indicatorColor:"primary",textColor:"primary",children:[u.jsx(jl,{icon:u.jsx(sS,{}),label:"Login"}),u.jsx(jl,{icon:u.jsx(aS,{}),label:"Sign Up"}),u.jsx(jl,{icon:u.jsx(wc,{}),label:"Anonymous"})]}),u.jsxs(Ke,{sx:{mt:3,width:"100%",px:3},children:[o===0&&u.jsxs("form",{onSubmit:X,children:[u.jsx(qe,{label:"Username",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:s,onChange:K=>a(K.target.value)}),u.jsx(qe,{label:"Password",type:y?"text":"password",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:h,onChange:K=>b(K.target.value),InputProps:{endAdornment:u.jsx(Qe,{onClick:ee,edge:"end",children:y?u.jsx(by,{}):u.jsx(xy,{})})}}),u.jsxs(gt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,sx:{mt:2,maxWidth:"325px"},disabled:T,children:[T?u.jsx(kn,{size:24}):"Login"," "]}),d&&u.jsxs(ye,{variant:"body2",textAlign:"center",sx:{mt:2},children:["Forgot your password? ",u.jsx(xb,{to:"/request_reset",style:{textDecoration:"none",color:Yd.palette.secondary.main},children:"Reset it here"})]})]}),o===1&&u.jsxs("form",{onSubmit:ce,children:[u.jsx(qe,{label:"Username",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:s,onChange:K=>a(K.target.value)}),u.jsx(qe,{label:"Email",type:"email",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:l,onChange:K=>c(K.target.value)}),u.jsx(qe,{label:"Password",type:y?"text":"password",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:h,onChange:K=>b(K.target.value),InputProps:{endAdornment:u.jsx(Qe,{onClick:ee,edge:"end",children:y?u.jsx(by,{}):u.jsx(xy,{})})}}),u.jsx(qe,{label:"Name",variant:"outlined",margin:"normal",fullWidth:!0,value:C,onChange:K=>g(K.target.value)}),u.jsx(qe,{label:"Age",type:"number",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:m,onChange:K=>x(K.target.value)}),u.jsxs(Gu,{required:!0,fullWidth:!0,margin:"normal",children:[u.jsx(Yu,{children:"Gender"}),u.jsxs(Oa,{value:w,label:"Gender",onChange:K=>k(K.target.value),children:[u.jsx(Un,{value:"",children:"Select Gender"}),u.jsx(Un,{value:"male",children:"Male"}),u.jsx(Un,{value:"female",children:"Female"}),u.jsx(Un,{value:"other",children:"Other"})]})]}),u.jsx(qe,{label:"Place of Residence",variant:"outlined",margin:"normal",fullWidth:!0,value:P,onChange:K=>R(K.target.value)}),u.jsx(qe,{label:"Field of Work",variant:"outlined",margin:"normal",fullWidth:!0,value:E,onChange:K=>j(K.target.value)}),u.jsxs(J2,{sx:{marginTop:"10px"},children:[u.jsx(ye,{variant:"body1",gutterBottom:!0,children:"Select any mental stressors you are currently experiencing to help us better tailor your therapy sessions."}),$.map(K=>u.jsx(vm,{control:u.jsx(pm,{checked:_.includes(K.id),onChange:G,value:K.id}),label:u.jsxs(Ke,{display:"flex",alignItems:"center",children:[K.name,u.jsx(Hn,{title:u.jsx(ye,{variant:"body2",children:XL(K.id)}),arrow:!0,placement:"right",children:u.jsx(Lm,{color:"action",style:{marginLeft:4,fontSize:20}})})]})},K.id))]}),u.jsx(gt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,sx:{mt:2},disabled:T,children:T?u.jsx(kn,{size:24}):"Sign Up"})]}),o===2&&u.jsx("form",{onSubmit:Z,children:u.jsx(gt,{type:"submit",variant:"outlined",color:"secondary",fullWidth:!0,sx:{mt:2},disabled:T,children:T?u.jsx(kn,{size:24}):"Anonymous Sign-In"})})]}),u.jsx(lo,{open:M,autoHideDuration:6e3,onClose:U,children:u.jsx(ur,{onClose:U,severity:z,sx:{width:"100%"},children:N})})]})})]})}function XL(e){switch(e){case"job_search":return"Feelings of stress stemming from the job search process.";case"classwork":return"Stress related to managing coursework and academic responsibilities.";case"social_anxiety":return"Anxiety experienced during social interactions or in anticipation of social interactions.";case"impostor_syndrome":return"Persistent doubt concerning one's abilities or accomplishments coupled with a fear of being exposed as a fraud.";case"career_drift":return"Stress from uncertainty or dissatisfaction with one's career path or progress.";default:return"No description available."}}var Am={},QL=de;Object.defineProperty(Am,"__esModule",{value:!0});var lS=Am.default=void 0,JL=QL(ge()),ZL=u;lS=Am.default=(0,JL.default)((0,ZL.jsx)("path",{d:"M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"}),"VpnKey");var zm={},eA=de;Object.defineProperty(zm,"__esModule",{value:!0});var cS=zm.default=void 0,tA=eA(ge()),nA=u;cS=zm.default=(0,tA.default)((0,nA.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");const Sy=Ea({palette:{primary:{main:"#3F51B5"},secondary:{main:"#F6AE2D"}}}),rA=()=>{const{changePassword:e}=p.useContext(lr),[t,n]=p.useState(""),[r,o]=p.useState(""),[i,s]=p.useState(!1),[a,l]=p.useState(""),[c,d]=p.useState("success"),{userId:f}=xa(),h=async b=>{b.preventDefault();const y=await e(f,t,r);l(y.message),d(y.success?"success":"error"),s(!0)};return u.jsx(Qh,{theme:Sy,children:u.jsx(K2,{component:"main",maxWidth:"xs",sx:{background:"#fff",borderRadius:"8px",boxShadow:"0px 2px 4px rgba(0,0,0,0.2)"},children:u.jsxs(Ke,{sx:{marginTop:8,display:"flex",flexDirection:"column",alignItems:"center"},children:[u.jsx(ye,{component:"h1",variant:"h5",children:"Update Password"}),u.jsxs("form",{onSubmit:h,style:{width:"100%",marginTop:Sy.spacing(1)},children:[u.jsx(qe,{variant:"outlined",margin:"normal",required:!0,fullWidth:!0,id:"current-password",label:"Current Password",name:"currentPassword",autoComplete:"current-password",type:"password",value:t,onChange:b=>n(b.target.value),InputProps:{startAdornment:u.jsx(cS,{color:"primary",style:{marginRight:"10px"}})}}),u.jsx(qe,{variant:"outlined",margin:"normal",required:!0,fullWidth:!0,id:"new-password",label:"New Password",name:"newPassword",autoComplete:"new-password",type:"password",value:r,onChange:b=>o(b.target.value),InputProps:{startAdornment:u.jsx(lS,{color:"secondary",style:{marginRight:"10px"}})}}),u.jsx(gt,{type:"submit",fullWidth:!0,variant:"contained",color:"primary",sx:{mt:3,mb:2},children:"Update Password"})]}),u.jsx(lo,{open:i,autoHideDuration:6e3,onClose:()=>s(!1),children:u.jsx(ur,{onClose:()=>s(!1),severity:c,sx:{width:"100%"},children:a})})]})})})};var Dm={},oA=de;Object.defineProperty(Dm,"__esModule",{value:!0});var uS=Dm.default=void 0,iA=oA(ge()),sA=u;uS=Dm.default=(0,iA.default)((0,sA.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"}),"Email");var Fm={},aA=de;Object.defineProperty(Fm,"__esModule",{value:!0});var dS=Fm.default=void 0,lA=aA(ge()),cA=u;dS=Fm.default=(0,lA.default)((0,cA.jsx)("path",{d:"M12 6c1.11 0 2-.9 2-2 0-.38-.1-.73-.29-1.03L12 0l-1.71 2.97c-.19.3-.29.65-.29 1.03 0 1.1.9 2 2 2m4.6 9.99-1.07-1.07-1.08 1.07c-1.3 1.3-3.58 1.31-4.89 0l-1.07-1.07-1.09 1.07C6.75 16.64 5.88 17 4.96 17c-.73 0-1.4-.23-1.96-.61V21c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-4.61c-.56.38-1.23.61-1.96.61-.92 0-1.79-.36-2.44-1.01M18 9h-5V7h-2v2H6c-1.66 0-3 1.34-3 3v1.54c0 1.08.88 1.96 1.96 1.96.52 0 1.02-.2 1.38-.57l2.14-2.13 2.13 2.13c.74.74 2.03.74 2.77 0l2.14-2.13 2.13 2.13c.37.37.86.57 1.38.57 1.08 0 1.96-.88 1.96-1.96V12C21 10.34 19.66 9 18 9"}),"Cake");var Bm={},uA=de;Object.defineProperty(Bm,"__esModule",{value:!0});var fS=Bm.default=void 0,dA=uA(ge()),fA=u;fS=Bm.default=(0,dA.default)((0,fA.jsx)("path",{d:"M5.5 22v-7.5H4V9c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2v5.5H9.5V22zM18 22v-6h3l-2.54-7.63C18.18 7.55 17.42 7 16.56 7h-.12c-.86 0-1.63.55-1.9 1.37L12 16h3v6zM7.5 6c1.11 0 2-.89 2-2s-.89-2-2-2-2 .89-2 2 .89 2 2 2m9 0c1.11 0 2-.89 2-2s-.89-2-2-2-2 .89-2 2 .89 2 2 2"}),"Wc");var Wm={},pA=de;Object.defineProperty(Wm,"__esModule",{value:!0});var pS=Wm.default=void 0,hA=pA(ge()),mA=u;pS=Wm.default=(0,hA.default)((0,mA.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home");var Um={},gA=de;Object.defineProperty(Um,"__esModule",{value:!0});var hS=Um.default=void 0,vA=gA(ge()),yA=u;hS=Um.default=(0,vA.default)((0,yA.jsx)("path",{d:"M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-6 0h-4V4h4z"}),"Work");var Hm={},xA=de;Object.defineProperty(Hm,"__esModule",{value:!0});var Vm=Hm.default=void 0,bA=xA(ge()),SA=u;Vm=Hm.default=(0,bA.default)((0,SA.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 4c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6m0 14c-2.03 0-4.43-.82-6.14-2.88C7.55 15.8 9.68 15 12 15s4.45.8 6.14 2.12C16.43 19.18 14.03 20 12 20"}),"AccountCircle");var qm={},CA=de;Object.defineProperty(qm,"__esModule",{value:!0});var mS=qm.default=void 0,wA=CA(ge()),kA=u;mS=qm.default=(0,wA.default)((0,kA.jsx)("path",{d:"M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8z"}),"Update");const RA=B(iS)({background:"#fff",borderRadius:"8px",boxShadow:"0 2px 4px rgba(0,0,0,0.1)",margin:"20px 0",maxWidth:"100%",overflow:"hidden"}),Cy=B(jl)({fontSize:"1rem",fontWeight:"bold",color:"#3F51B5",marginRight:"4px",marginLeft:"4px",flex:1,maxWidth:"none","&.Mui-selected":{color:"#F6AE2D",background:"#e0e0e0"},"&:hover":{background:"#f4f4f4",transition:"background-color 0.3s"},"@media (max-width: 720px)":{padding:"6px 12px",fontSize:"0.8rem"}}),PA=Ea({palette:{primary:{main:"#3F51B5"},secondary:{main:"#F6AE2D"},background:{default:"#e0e0e0"}},typography:{fontFamily:'"Open Sans", "Helvetica", "Arial", sans-serif',button:{textTransform:"none",fontWeight:"bold"}},components:{MuiButton:{styleOverrides:{root:{boxShadow:"none",borderRadius:8,"&:hover":{boxShadow:"0px 2px 4px rgba(0,0,0,0.2)"}}}},MuiPaper:{styleOverrides:{root:{padding:"20px",borderRadius:"10px",boxShadow:"0px 4px 12px rgba(0,0,0,0.1)"}}}}}),EA=B(gn)(({theme:e})=>({marginTop:e.spacing(2),padding:e.spacing(2),display:"flex",flexDirection:"column",alignItems:"center",gap:e.spacing(2),boxShadow:e.shadows[3]}));function $A(){const{userId:e}=xa(),[t,n]=p.useState({username:"",name:"",email:"",age:"",gender:"",placeOfResidence:"",fieldOfWork:"",mental_health_concerns:[]}),[r,o]=p.useState(0),i=(g,m)=>{o(m)},[s,a]=p.useState(""),[l,c]=p.useState(!1),[d,f]=p.useState("info");p.useEffect(()=>{if(!e){console.error("User ID is undefined");return}(async()=>{try{const m=await ve.get(`/api/user/profile/${e}`);console.log("Fetched data:",m.data);const x={username:m.data.username||"",name:m.data.name||"",email:m.data.email||"",age:m.data.age||"",gender:m.data.gender||"",placeOfResidence:m.data.placeOfResidence||"Not specified",fieldOfWork:m.data.fieldOfWork||"Not specified",mental_health_concerns:m.data.mental_health_concerns||[]};console.log("Formatted data:",x),n(x)}catch{a("Failed to fetch user data"),f("error"),c(!0)}})()},[e]);const h=[{label:"Stress from Job Search",value:"job_search"},{label:"Stress from Classwork",value:"classwork"},{label:"Social Anxiety",value:"social_anxiety"},{label:"Impostor Syndrome",value:"impostor_syndrome"},{label:"Career Drift",value:"career_drift"}];console.log("current mental health concerns: ",t.mental_health_concerns);const b=g=>{const{name:m,checked:x}=g.target;n(w=>{const k=x?[...w.mental_health_concerns,m]:w.mental_health_concerns.filter(P=>P!==m);return{...w,mental_health_concerns:k}})},y=g=>{const{name:m,value:x}=g.target;n(w=>({...w,[m]:x}))},v=async g=>{g.preventDefault();try{await ve.patch(`/api/user/profile/${e}`,t),a("Profile updated successfully!"),f("success")}catch{a("Failed to update profile"),f("error")}c(!0)},C=()=>{c(!1)};return u.jsxs(Qh,{theme:PA,children:[u.jsx(hm,{}),u.jsxs(K2,{component:"main",maxWidth:"md",children:[u.jsxs(RA,{value:r,onChange:i,centered:!0,children:[u.jsx(Cy,{label:"Profile"}),u.jsx(Cy,{label:"Update Password"})]}),r===0&&u.jsxs(EA,{component:"form",onSubmit:v,sx:{maxHeight:"81vh",overflow:"auto"},children:[u.jsxs(ye,{variant:"h5",style:{fontWeight:700},children:[u.jsx(Vm,{style:{marginRight:"10px"}})," ",t.username]}),u.jsx(qe,{fullWidth:!0,label:"Name",variant:"outlined",name:"name",value:t.name||"",onChange:y,InputProps:{startAdornment:u.jsx(Qe,{position:"start",children:u.jsx(Xu,{})})}}),u.jsx(qe,{fullWidth:!0,label:"Email",variant:"outlined",name:"email",value:t.email||"",onChange:y,InputProps:{startAdornment:u.jsx(Qe,{position:"start",children:u.jsx(uS,{})})}}),u.jsx(qe,{fullWidth:!0,label:"Age",variant:"outlined",name:"age",type:"number",value:t.age||"",onChange:y,InputProps:{startAdornment:u.jsx(Qe,{children:u.jsx(dS,{})})}}),u.jsxs(Gu,{fullWidth:!0,children:[u.jsx(Yu,{children:"Gender"}),u.jsxs(Oa,{name:"gender",value:t.gender||"",label:"Gender",onChange:y,startAdornment:u.jsx(Qe,{children:u.jsx(fS,{})}),children:[u.jsx(Un,{value:"male",children:"Male"}),u.jsx(Un,{value:"female",children:"Female"}),u.jsx(Un,{value:"other",children:"Other"})]})]}),u.jsx(qe,{fullWidth:!0,label:"Place of Residence",variant:"outlined",name:"placeOfResidence",value:t.placeOfResidence||"",onChange:y,InputProps:{startAdornment:u.jsx(Qe,{children:u.jsx(pS,{})})}}),u.jsx(qe,{fullWidth:!0,label:"Field of Work",variant:"outlined",name:"fieldOfWork",value:t.fieldOfWork||"",onChange:y,InputProps:{startAdornment:u.jsx(Qe,{position:"start",children:u.jsx(hS,{})})}}),u.jsx(J2,{children:h.map((g,m)=>(console.log(`Is "${g.label}" checked?`,t.mental_health_concerns.includes(g.value)),u.jsx(vm,{control:u.jsx(pm,{checked:t.mental_health_concerns.includes(g.value),onChange:b,name:g.value}),label:u.jsxs(Ke,{display:"flex",alignItems:"center",children:[g.label,u.jsx(Hn,{title:u.jsx(ye,{variant:"body2",children:TA(g.value)}),arrow:!0,placement:"right",children:u.jsx(Lm,{color:"action",style:{marginLeft:4,fontSize:20}})})]})},m)))}),u.jsxs(gt,{type:"submit",color:"primary",variant:"contained",children:[u.jsx(mS,{style:{marginRight:"10px"}}),"Update Profile"]})]}),r===1&&u.jsx(rA,{userId:e}),u.jsx(lo,{open:l,autoHideDuration:6e3,onClose:C,children:u.jsx(ur,{onClose:C,severity:d,sx:{width:"100%"},children:s})})]})]})}function TA(e){switch(e){case"job_search":return"Feelings of stress stemming from the job search process.";case"classwork":return"Stress related to managing coursework and academic responsibilities.";case"social_anxiety":return"Anxiety experienced during social interactions or in anticipation of social interactions.";case"impostor_syndrome":return"Persistent doubt concerning one's abilities or accomplishments coupled with a fear of being exposed as a fraud.";case"career_drift":return"Stress from uncertainty or dissatisfaction with one's career path or progress.";default:return"No description available."}}var Km={},_A=de;Object.defineProperty(Km,"__esModule",{value:!0});var gS=Km.default=void 0,jA=_A(ge()),wy=u;gS=Km.default=(0,jA.default)([(0,wy.jsx)("path",{d:"M22 9 12 2 2 9h9v13h2V9z"},"0"),(0,wy.jsx)("path",{d:"m4.14 12-1.96.37.82 4.37V22h2l.02-4H7v4h2v-6H4.9zm14.96 4H15v6h2v-4h1.98l.02 4h2v-5.26l.82-4.37-1.96-.37z"},"1")],"Deck");var Gm={},OA=de;Object.defineProperty(Gm,"__esModule",{value:!0});var vS=Gm.default=void 0,IA=OA(ge()),MA=u;vS=Gm.default=(0,IA.default)((0,MA.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5m-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11m3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5"}),"InsertEmoticon");var Ym={},NA=de;Object.defineProperty(Ym,"__esModule",{value:!0});var Xm=Ym.default=void 0,LA=NA(ge()),AA=u;Xm=Ym.default=(0,LA.default)((0,AA.jsx)("path",{d:"M19 5v14H5V5zm1.1-2H3.9c-.5 0-.9.4-.9.9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9M11 7h6v2h-6zm0 4h6v2h-6zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7z"}),"ListAlt");var Qm={},zA=de;Object.defineProperty(Qm,"__esModule",{value:!0});var yS=Qm.default=void 0,DA=zA(ge()),FA=u;yS=Qm.default=(0,DA.default)((0,FA.jsx)("path",{d:"M10.09 15.59 11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"ExitToApp");var Jm={},BA=de;Object.defineProperty(Jm,"__esModule",{value:!0});var xS=Jm.default=void 0,WA=BA(ge()),UA=u;xS=Jm.default=(0,WA.default)((0,UA.jsx)("path",{d:"M16.53 11.06 15.47 10l-4.88 4.88-2.12-2.12-1.06 1.06L10.59 17zM19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V8h14z"}),"EventAvailable");var Zm={},HA=de;Object.defineProperty(Zm,"__esModule",{value:!0});var bS=Zm.default=void 0,VA=HA(ge()),ky=u;bS=Zm.default=(0,VA.default)([(0,ky.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,ky.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"Schedule");var eg={},qA=de;Object.defineProperty(eg,"__esModule",{value:!0});var SS=eg.default=void 0,KA=qA(ge()),GA=u;SS=eg.default=(0,KA.default)((0,GA.jsx)("path",{d:"m22.69 18.37 1.14-1-1-1.73-1.45.49c-.32-.27-.68-.48-1.08-.63L20 14h-2l-.3 1.49c-.4.15-.76.36-1.08.63l-1.45-.49-1 1.73 1.14 1c-.08.5-.08.76 0 1.26l-1.14 1 1 1.73 1.45-.49c.32.27.68.48 1.08.63L18 24h2l.3-1.49c.4-.15.76-.36 1.08-.63l1.45.49 1-1.73-1.14-1c.08-.51.08-.77 0-1.27M19 21c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2M11 7v5.41l2.36 2.36 1.04-1.79-1.4-1.39V7zm10 5c0-4.97-4.03-9-9-9-2.83 0-5.35 1.32-7 3.36V4H3v6h6V8H6.26C7.53 6.19 9.63 5 12 5c3.86 0 7 3.14 7 7zm-10.14 6.91c-2.99-.49-5.35-2.9-5.78-5.91H3.06c.5 4.5 4.31 8 8.94 8h.07z"}),"ManageHistory");const Ry=230;function YA(){const{logout:e,user:t}=p.useContext(lr),n=oo(),r=i=>n.pathname===i,o=[{text:"Mind Chat",icon:u.jsx(gS,{}),path:"/"},...t!=null&&t.userId?[{text:"Track Your Vibes",icon:u.jsx(vS,{}),path:"/user/mood_logging"},{text:"Mood Logs",icon:u.jsx(Xm,{}),path:"/user/mood_logs"},{text:"Schedule Check-In",icon:u.jsx(bS,{}),path:"/user/check_in"},{text:"Check-In Reporting",icon:u.jsx(xS,{}),path:`/user/check_ins/${t==null?void 0:t.userId}`},{text:"Chat Log Manager",icon:u.jsx(SS,{}),path:"/user/chat_log_Manager"}]:[]];return u.jsx(FI,{sx:{width:Ry,flexShrink:0,mt:8,"& .MuiDrawer-paper":{width:Ry,boxSizing:"border-box",position:"relative",height:"91vh",top:0,overflowX:"hidden",borderRadius:2,boxShadow:1}},variant:"permanent",anchor:"left",children:u.jsxs(ja,{children:[o.map(i=>u.jsx(WP,{to:i.path,style:{textDecoration:"none",color:"inherit"},children:u.jsxs(xc,{button:!0,sx:{backgroundColor:r(i.path)?"rgba(25, 118, 210, 0.5)":"inherit","&:hover":{bgcolor:"grey.200"}},children:[u.jsx(iy,{children:i.icon}),u.jsx(da,{primary:i.text})]})},i.text)),u.jsxs(xc,{button:!0,onClick:e,children:[u.jsx(iy,{children:u.jsx(yS,{})}),u.jsx(da,{primary:"Logout"})]})]})})}var tg={},XA=de;Object.defineProperty(tg,"__esModule",{value:!0});var CS=tg.default=void 0,QA=XA(ge()),JA=u;CS=tg.default=(0,QA.default)((0,JA.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");var ng={},ZA=de;Object.defineProperty(ng,"__esModule",{value:!0});var wS=ng.default=void 0,ez=ZA(ge()),tz=u;wS=ng.default=(0,ez.default)((0,tz.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2m6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1z"}),"Notifications");var rg={},nz=de;Object.defineProperty(rg,"__esModule",{value:!0});var kS=rg.default=void 0,rz=nz(ge()),oz=u;kS=rg.default=(0,rz.default)((0,oz.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel");function iz({toggleSidebar:e}){const{incrementNotificationCount:t,notifications:n,addNotification:r,removeNotification:o}=p.useContext(lr),i=Ao(),{user:s}=p.useContext(lr),[a,l]=p.useState(null),c=localStorage.getItem("token"),d=s==null?void 0:s.userId;console.log("User ID:",d),p.useEffect(()=>{d?f():console.error("No user ID available from URL parameters.")},[d]);const f=async()=>{if(!d){console.error("User ID is missing in context");return}try{const C=(await ve.get(`/api/check-in/missed?user_id=${d}`,{headers:{Authorization:`Bearer ${c}`}})).data;console.log("Missed check-ins:",C),C.length>0?C.forEach(g=>{r({title:`Missed Check-in on ${new Date(g.check_in_time).toLocaleString()}`,message:"Please complete your check-in."})}):r({title:"You have no missed check-ins.",message:""})}catch(v){console.error("Failed to fetch missed check-ins:",v),r({title:"Failed to fetch missed check-ins. Please check the console for more details.",message:""})}},h=v=>{l(v.currentTarget)},b=v=>{l(null),o(v)},y=()=>{s&&s.userId?i(`/user/profile/${s.userId}`):console.error("User ID not found")};return p.useEffect(()=>{const v=C=>{C.data&&C.data.msg==="updateCount"&&(console.log("Received message from service worker:",C.data),r({title:C.data.title,message:C.data.body}),t())};return navigator.serviceWorker.addEventListener("message",v),()=>{navigator.serviceWorker.removeEventListener("message",v)}},[]),u.jsx(C_,{position:"fixed",sx:{zIndex:v=>v.zIndex.drawer+1},children:u.jsxs(D6,{children:[u.jsx(Qe,{onClick:e,color:"inherit",edge:"start",sx:{marginRight:2},children:u.jsx(CS,{})}),u.jsx(ye,{variant:"h6",noWrap:!0,component:"div",sx:{flexGrow:1},children:"Dashboard"}),(s==null?void 0:s.userId)&&u.jsx(Qe,{color:"inherit",onClick:h,children:u.jsx(rO,{badgeContent:n.length,color:"secondary",children:u.jsx(wS,{})})}),u.jsx(nS,{anchorEl:a,open:!!a,onClose:()=>b(null),children:n.map((v,C)=>u.jsx(Un,{onClick:()=>b(C),sx:{whiteSpace:"normal",maxWidth:350,padding:1},children:u.jsxs(qu,{elevation:2,sx:{display:"flex",alignItems:"center",width:"100%"},children:[u.jsx(kS,{color:"error"}),u.jsxs(fm,{sx:{flex:"1 1 auto"},children:[u.jsx(ye,{variant:"subtitle1",sx:{fontWeight:"bold"},children:v.title}),u.jsx(ye,{variant:"body2",color:"text.secondary",children:v.message})]})]})},C))}),(s==null?void 0:s.userId)&&u.jsx(Qe,{color:"inherit",onClick:y,children:u.jsx(Vm,{})})]})})}var og={},sz=de;Object.defineProperty(og,"__esModule",{value:!0});var RS=og.default=void 0,az=sz(ge()),lz=u;RS=og.default=(0,az.default)((0,lz.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M17 13l-5 5-5-5h3V9h4v4z"}),"CloudDownload");var ig={},cz=de;Object.defineProperty(ig,"__esModule",{value:!0});var wp=ig.default=void 0,uz=cz(ge()),dz=u;wp=ig.default=(0,uz.default)((0,dz.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"DeleteForever");var sg={},fz=de;Object.defineProperty(sg,"__esModule",{value:!0});var PS=sg.default=void 0,pz=fz(ge()),hz=u;PS=sg.default=(0,pz.default)((0,hz.jsx)("path",{d:"M9 11H7v2h2zm4 0h-2v2h2zm4 0h-2v2h2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 16H5V9h14z"}),"DateRange");const mz=B(gn)(({theme:e})=>({padding:e.spacing(3),borderRadius:e.shape.borderRadius,boxShadow:1,maxWidth:"100%",margin:"auto",marginTop:e.spacing(2),backgroundColor:"#fff",overflow:"auto"})),ll=B(gt)(({theme:e})=>({margin:e.spacing(0),paddingLeft:e.spacing(1),paddingRight:e.spacing(3)}));function gz(){const[e,t]=Vt.useState(!1),[n,r]=p.useState(!1),[o,i]=Vt.useState(""),[s,a]=Vt.useState("info"),[l,c]=p.useState(!1),[d,f]=p.useState(""),[h,b]=p.useState(""),[y,v]=p.useState(!1),C=(k,P)=>{P!=="clickaway"&&t(!1)},g=()=>{r(!1)},m=k=>{v(k),r(!0)},x=async(k=!1)=>{var P,R;c(!0);try{const E=k?"/api/user/download_chat_logs/range":"/api/user/download_chat_logs",j=k?{params:{start_date:d,end_date:h}}:{},T=await ve.get(E,{...j,headers:{Authorization:`Bearer ${localStorage.getItem("token")}`},responseType:"blob"}),O=window.URL.createObjectURL(new Blob([T.data])),M=document.createElement("a");M.href=O,M.setAttribute("download",k?"chat_logs_range.csv":"chat_logs.csv"),document.body.appendChild(M),M.click(),i("Chat logs downloaded successfully."),a("success")}catch(E){i(`Failed to download chat logs: ${((R=(P=E.response)==null?void 0:P.data)==null?void 0:R.error)||E.message}`),a("error")}finally{c(!1)}t(!0)},w=async()=>{var k,P;r(!1),c(!0);try{const R=y?"/api/user/delete_chat_logs/range":"/api/user/delete_chat_logs",E=y?{params:{start_date:d,end_date:h}}:{},j=await ve.delete(R,{...E,headers:{Authorization:`Bearer ${localStorage.getItem("token")}`}});i(j.data.message),a("success")}catch(R){i(`Failed to delete chat logs: ${((P=(k=R.response)==null?void 0:k.data)==null?void 0:P.error)||R.message}`),a("error")}finally{c(!1)}t(!0)};return u.jsxs(mz,{sx:{height:"91vh"},children:[u.jsx(ye,{variant:"h4",gutterBottom:!0,children:"Manage Your Chat Logs"}),u.jsx(ye,{variant:"body1",paragraph:!0,children:"Manage your chat logs efficiently by downloading or deleting entries for specific dates or entire ranges. Please be cautious as deletion is permanent."}),u.jsxs("div",{style:{display:"flex",justifyContent:"center",flexDirection:"column",alignItems:"center",gap:20},children:[u.jsxs("div",{style:{display:"flex",gap:10,marginBottom:20},children:[u.jsx(qe,{label:"Start Date",type:"date",value:d,onChange:k=>f(k.target.value),InputLabelProps:{shrink:!0}}),u.jsx(qe,{label:"End Date",type:"date",value:h,onChange:k=>b(k.target.value),InputLabelProps:{shrink:!0}})]}),u.jsx(ye,{variant:"body1",paragraph:!0,children:"Here you can download your chat logs as a CSV file, which includes details like chat IDs, content, type, and additional information for each session."}),u.jsx(Hn,{title:"Download chat logs for selected date range",children:u.jsx(ll,{variant:"outlined",startIcon:u.jsx(PS,{}),onClick:()=>x(!0),disabled:l||!d||!h,children:l?u.jsx(kn,{size:24,color:"inherit"}):"Download Range"})}),u.jsx(Hn,{title:"Download your chat logs as a CSV file",children:u.jsx(ll,{variant:"contained",color:"primary",startIcon:u.jsx(RS,{}),onClick:()=>x(!1),disabled:l,children:l?u.jsx(kn,{size:24,color:"inherit"}):"Download Chat Logs"})}),u.jsx(ye,{variant:"body1",paragraph:!0,children:"If you need to clear your history for privacy or other reasons, you can also permanently delete your chat logs from the server."}),u.jsx(Hn,{title:"Delete chat logs for selected date range",children:u.jsx(ll,{variant:"outlined",color:"warning",startIcon:u.jsx(wp,{}),onClick:()=>m(!0),disabled:l||!d||!h,children:l?u.jsx(kn,{size:24,color:"inherit"}):"Delete Range"})}),u.jsx(Hn,{title:"Permanently delete all your chat logs",children:u.jsx(ll,{variant:"contained",color:"secondary",startIcon:u.jsx(wp,{}),onClick:()=>m(!1),disabled:l,children:l?u.jsx(kn,{size:24,color:"inherit"}):"Delete Chat Logs"})}),u.jsx(ye,{variant:"body1",paragraph:!0,children:"Please use these options carefully as deleting your chat logs is irreversible."})]}),u.jsxs(yp,{open:n,onClose:g,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[u.jsx(Sp,{id:"alert-dialog-title",children:"Confirm Deletion"}),u.jsx(bp,{children:u.jsx(Y2,{id:"alert-dialog-description",children:"Are you sure you want to delete these chat logs? This action cannot be undone."})}),u.jsxs(xp,{children:[u.jsx(gt,{onClick:g,color:"primary",children:"Cancel"}),u.jsx(gt,{onClick:()=>w(),color:"secondary",autoFocus:!0,children:"Confirm"})]})]}),u.jsx(lo,{open:e,autoHideDuration:6e3,onClose:C,children:u.jsx(ur,{onClose:C,severity:s,sx:{width:"100%"},children:o})})]})}const Py=()=>{const{user:e,voiceEnabled:t}=p.useContext(lr),n=e==null?void 0:e.userId,[r,o]=p.useState(0),[i,s]=p.useState(0),[a,l]=p.useState(""),[c,d]=p.useState([]),[f,h]=p.useState(!1),[b,y]=p.useState(null),v=p.useRef([]),[C,g]=p.useState(!1),[m,x]=p.useState(!1),[w,k]=p.useState(""),[P,R]=p.useState("info"),[E,j]=p.useState(null),T=_=>{if(!t||_===E){j(null),window.speechSynthesis.cancel();return}const F=window.speechSynthesis,G=new SpeechSynthesisUtterance(_),X=F.getVoices();console.log(X.map(Z=>`${Z.name} - ${Z.lang} - ${Z.gender}`));const ce=X.find(Z=>Z.name.includes("Microsoft Zira - English (United States)"));ce?G.voice=ce:console.log("No female voice found"),G.onend=()=>{j(null)},j(_),F.speak(G)},O=(_,F)=>{F!=="clickaway"&&x(!1)},M=p.useCallback(async()=>{if(r!==null){g(!0);try{const _=await fetch(`/api/ai/mental_health/finalize/${n}/${r}`,{method:"POST",headers:{"Content-Type":"application/json"}}),F=await _.json();_.ok?(k("Chat finalized successfully"),R("success"),o(null),s(0),d([])):(k("Failed to finalize chat"),R("error"))}catch{k("Error finalizing chat"),R("error")}finally{g(!1),x(!0)}}},[n,r]),I=p.useCallback(async()=>{if(a.trim()){console.log(r),g(!0);try{const _=JSON.stringify({prompt:a,turn_id:i}),F=await fetch(`/api/ai/mental_health/${n}/${r}`,{method:"POST",headers:{"Content-Type":"application/json"},body:_}),G=await F.json();console.log(G),F.ok?(d(X=>[...X,{message:a,sender:"user"},{message:G,sender:"agent"}]),s(X=>X+1),l("")):(console.error("Failed to send message:",G),k(G.error||"An error occurred while sending the message."),R("error"),x(!0))}catch(_){console.error("Failed to send message:",_),k("Network or server error occurred."),R("error"),x(!0)}finally{g(!1)}}},[a,n,r,i]),N=()=>{navigator.mediaDevices.getUserMedia({audio:!0}).then(_=>{v.current=[];const F={mimeType:"audio/webm"},G=new MediaRecorder(_,F);G.ondataavailable=X=>{console.log("Data available:",X.data.size),v.current.push(X.data)},G.start(),y(G),h(!0)}).catch(console.error)},D=()=>{b&&(b.onstop=()=>{z(v.current),h(!1),y(null)},b.stop())},z=_=>{console.log("Audio chunks size:",_.reduce((X,ce)=>X+ce.size,0));const F=new Blob(_,{type:"audio/webm"});if(F.size===0){console.error("Audio Blob is empty");return}console.log(`Sending audio blob of size: ${F.size} bytes`);const G=new FormData;G.append("audio",F),g(!0),ve.post("/api/ai/mental_health/voice-to-text",G,{headers:{"Content-Type":"multipart/form-data"}}).then(X=>{const{message:ce}=X.data;l(ce),I()}).catch(X=>{console.error("Error uploading audio:",X),x(!0),k("Error processing voice input: "+X.message),R("error")}).finally(()=>{g(!1)})},W=p.useCallback(_=>{l(_.target.value)},[]),$=_=>_===E?u.jsx(Cc,{}):u.jsx(Sc,{});return u.jsxs(u.Fragment,{children:[u.jsx("style",{children:` - @keyframes blink { - 0%, 100% { opacity: 0; } - 50% { opacity: 1; } - } - @media (max-width: 720px) { - .new-chat-button { - - top: 5px; - right: 5px; - padding: 4px 8px; /* Smaller padding */ - font-size: 0.8rem; /* Smaller font size */ - } - } - `}),u.jsxs(Ke,{sx:{maxWidth:"100%",mx:"auto",my:2,display:"flex",flexDirection:"column",height:"91vh",borderRadius:2,boxShadow:1},children:[u.jsxs(qu,{sx:{display:"flex",flexDirection:"column",height:"100%",borderRadius:2,boxShadow:3},children:[u.jsxs(fm,{sx:{flexGrow:1,overflow:"auto",padding:3,position:"relative"},children:[u.jsx(Hn,{title:"Start a new chat",placement:"top",arrow:!0,children:u.jsx(Qe,{"aria-label":"new chat",color:"primary",onClick:M,disabled:C,sx:{position:"absolute",top:5,right:5,"&:hover":{backgroundColor:"primary.main",color:"common.white"}},children:u.jsx(jm,{})})}),c.length===0&&u.jsxs(Ke,{sx:{display:"flex",marginBottom:2,marginTop:3},children:[u.jsx(yr,{src:gi,sx:{width:44,height:44,marginRight:2},alt:"Aria"}),u.jsx(ye,{variant:"h4",component:"h1",gutterBottom:!0,children:"Welcome to Mental Health Companion"})]}),u.jsx(ja,{sx:{maxHeight:"100%",overflow:"auto"},children:c.map((_,F)=>u.jsx(xc,{sx:{display:"flex",flexDirection:"column",alignItems:_.sender==="user"?"flex-end":"flex-start",borderRadius:2,mb:.5,p:1,border:"none","&:before":{display:"none"},"&:after":{display:"none"}},children:u.jsxs(Ke,{sx:{display:"flex",alignItems:"center",color:_.sender==="user"?"common.white":"text.primary",borderRadius:"16px"},children:[_.sender==="agent"&&u.jsx(yr,{src:gi,sx:{width:36,height:36,mr:1},alt:"Aria"}),u.jsx(da,{primary:u.jsxs(Ke,{sx:{display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap"},children:[_.message,t&&_.sender==="agent"&&u.jsx(Qe,{onClick:()=>T(_.message),size:"small",sx:{ml:1},children:$(_.message)})]}),primaryTypographyProps:{sx:{color:_.sender==="user"?"common.white":"text.primary",bgcolor:_.sender==="user"?"primary.main":"grey.200",borderRadius:"16px",px:2,py:1,display:"inline-block"}}}),_.sender==="user"&&u.jsx(yr,{sx:{width:36,height:36,ml:1},children:u.jsx(Xu,{})})]})},F))})]}),u.jsx(ca,{}),u.jsxs(Ke,{sx:{p:2,pb:1,display:"flex",alignItems:"center",bgcolor:"background.paper"},children:[u.jsx(qe,{fullWidth:!0,variant:"outlined",placeholder:"Type your message here...",value:a,onChange:W,disabled:C,sx:{mr:1,flexGrow:1},InputProps:{endAdornment:u.jsx(yc,{position:"end",children:u.jsxs(Qe,{onClick:f?D:N,color:"primary.main","aria-label":f?"Stop recording":"Start recording",size:"large",edge:"end",disabled:C,children:[f?u.jsx(Pm,{size:"small"}):u.jsx(km,{size:"small"}),f&&u.jsx(kn,{size:30,sx:{color:"primary.main",position:"absolute",zIndex:1}})]})})}}),C?u.jsx(kn,{size:24}):u.jsx(gt,{variant:"contained",color:"primary",onClick:I,disabled:C||!a.trim(),endIcon:u.jsx(Ki,{}),children:"Send"})]})]}),u.jsx(lo,{open:m,autoHideDuration:6e3,onClose:O,children:u.jsx(ur,{elevation:6,variant:"filled",onClose:O,severity:P,children:w})})]})]})};var ag={},vz=de;Object.defineProperty(ag,"__esModule",{value:!0});var ES=ag.default=void 0,yz=vz(ge()),xz=u;ES=ag.default=(0,yz.default)((0,xz.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5m-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11m3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5"}),"Mood");function bz(){const[e,t]=p.useState(""),[n,r]=p.useState(""),[o,i]=p.useState(""),s=async()=>{const a=localStorage.getItem("token");if(!e||!n){i("Both mood and activities are required.");return}if(!a){i("You are not logged in.");return}try{const l=await ve.post("/api/user/log_mood",{mood:e,activities:n},{headers:{Authorization:`Bearer ${a}`}});i(l.data.message)}catch(l){i(l.response.data.error)}};return u.jsxs("div",{className:"mood-logging-container",children:[u.jsxs("h1",{children:[u.jsx(ES,{fontSize:"large"})," Track Your Vibes "]}),u.jsxs("div",{className:"mood-logging",children:[u.jsxs("div",{className:"input-group",children:[u.jsx("label",{htmlFor:"mood-input",children:"Mood:"}),u.jsx("input",{id:"mood-input",type:"text",value:e,onChange:a=>t(a.target.value),placeholder:"Enter your current mood"}),u.jsx("label",{htmlFor:"activities-input",children:"Activities:"}),u.jsx("input",{id:"activities-input",type:"text",value:n,onChange:a=>r(a.target.value),placeholder:"What are you doing?"})]}),u.jsx(gt,{variant:"contained",className:"submit-button",onClick:s,startIcon:u.jsx(Ki,{}),children:"Log Mood"}),o&&u.jsx("div",{className:"message",children:o})]})]})}function Sz(){const[e,t]=p.useState([]),[n,r]=p.useState("");p.useEffect(()=>{(async()=>{const s=localStorage.getItem("token");if(!s){r("You are not logged in.");return}try{const a=await ve.get("/api/user/get_mood_logs",{headers:{Authorization:`Bearer ${s}`}});console.log("Received data:",a.data),t(a.data.mood_logs||[])}catch(a){r(a.response.data.error)}})()},[]);const o=i=>{const s={year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"};try{const a=i.$date;return new Date(a).toLocaleDateString("en-US",s)}catch(a){return console.error("Date parsing error:",a),"Invalid Date"}};return u.jsxs("div",{className:"mood-logs",children:[u.jsxs("h2",{children:[u.jsx(Xm,{className:"icon-large"}),"Your Mood Journey"]}),n?u.jsx("div",{className:"error",children:n}):u.jsx("ul",{children:e.map((i,s)=>u.jsxs("li",{children:[u.jsxs("div",{children:[u.jsx("strong",{children:"Mood:"})," ",i.mood]}),u.jsxs("div",{children:[u.jsx("strong",{children:"Activities:"})," ",i.activities]}),u.jsxs("div",{children:[u.jsx("strong",{children:"Timestamp:"})," ",o(i.timestamp)]})]},s))})]})}function Cz(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}const $S=6e4,TS=36e5;function Xd(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}function wz(e,t){const n=Cz(e);if(isNaN(n.getTime()))throw new RangeError("Invalid time value");const r=(t==null?void 0:t.format)??"extended";let o="";const i=r==="extended"?"-":"";{const s=Xd(n.getDate(),2),a=Xd(n.getMonth()+1,2);o=`${Xd(n.getFullYear(),4)}${i}${a}${i}${s}`}return o}function kz(e,t){const r=$z(e);let o;if(r.date){const l=Tz(r.date,2);o=_z(l.restDateString,l.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);const i=o.getTime();let s=0,a;if(r.time&&(s=jz(r.time),isNaN(s)))return new Date(NaN);if(r.timezone){if(a=Oz(r.timezone),isNaN(a))return new Date(NaN)}else{const l=new Date(i+s),c=new Date(0);return c.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),c.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),c}return new Date(i+s+a)}const cl={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Rz=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Pz=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Ez=/^([+-])(\d{2})(?::?(\d{2}))?$/;function $z(e){const t={},n=e.split(cl.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],cl.timeZoneDelimiter.test(t.date)&&(t.date=e.split(cl.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const o=cl.timezone.exec(r);o?(t.time=r.replace(o[1],""),t.timezone=o[1]):t.time=r}return t}function Tz(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?o:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function _z(e,t){if(t===null)return new Date(NaN);const n=e.match(Rz);if(!n)return new Date(NaN);const r=!!n[4],o=hs(n[1]),i=hs(n[2])-1,s=hs(n[3]),a=hs(n[4]),l=hs(n[5])-1;if(r)return Az(t,a,l)?Iz(t,a,l):new Date(NaN);{const c=new Date(0);return!Nz(t,i,s)||!Lz(t,o)?new Date(NaN):(c.setUTCFullYear(t,i,Math.max(o,s)),c)}}function hs(e){return e?parseInt(e):1}function jz(e){const t=e.match(Pz);if(!t)return NaN;const n=Qd(t[1]),r=Qd(t[2]),o=Qd(t[3]);return zz(n,r,o)?n*TS+r*$S+o*1e3:NaN}function Qd(e){return e&&parseFloat(e.replace(",","."))||0}function Oz(e){if(e==="Z")return 0;const t=e.match(Ez);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return Dz(r,o)?n*(r*TS+o*$S):NaN}function Iz(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,i=(t-1)*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}const Mz=[31,null,31,30,31,30,31,31,30,31,30,31];function _S(e){return e%400===0||e%4===0&&e%100!==0}function Nz(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Mz[t]||(_S(e)?29:28))}function Lz(e,t){return t>=1&&t<=(_S(e)?366:365)}function Az(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function zz(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Dz(e,t){return t>=0&&t<=59}function kp({userId:e,update:t}){const[n,r]=p.useState(""),[o,i]=p.useState("daily"),[s,a]=p.useState(!1),{checkInId:l}=xa(),[c,d]=p.useState(!1),[f,h]=p.useState({open:!1,message:"",severity:"info"}),b=localStorage.getItem("token");p.useEffect(()=>{t&&l&&(d(!0),ve.get(`/api/check-in/${l}`,{headers:{Authorization:`Bearer ${b}`}}).then(C=>{const g=C.data;console.log("Fetched check-in data:",g);const m=wz(kz(g.check_in_time),{representation:"date"});r(m.slice(0,16)),i(g.frequency),a(g.notify),d(!1)}).catch(C=>{console.error("Failed to fetch check-in details:",C),d(!1)}))},[t,l]);const y=async C=>{var R,E,j;if(C.preventDefault(),new Date(n)<=new Date){h({open:!0,message:"Cannot schedule check-in in the past. Please choose a future time.",severity:"error"});return}const x=t?`/api/check-in/${l}`:"/api/check-in/schedule",w={headers:{Authorization:`Bearer ${b}`,"Content-Type":"application/json"}};console.log("URL:",x);const k=t?"patch":"post",P={user_id:e,check_in_time:n,frequency:o,notify:s};console.log("Submitting:",P);try{const T=await ve[k](x,P,w);console.log("Success:",T.data.message),h({open:!0,message:T.data.message,severity:"success"})}catch(T){console.error("Error:",((R=T.response)==null?void 0:R.data)||T);const O=((j=(E=T.response)==null?void 0:E.data)==null?void 0:j.error)||"An unexpected error occurred";h({open:!0,message:O,severity:"error"})}},v=(C,g)=>{g!=="clickaway"&&h({...f,open:!1})};return c?u.jsx(ye,{children:"Loading..."}):u.jsxs(Ke,{component:"form",onSubmit:y,noValidate:!0,sx:{mt:4,padding:3,borderRadius:2,boxShadow:3},children:[u.jsx(qe,{id:"datetime-local",label:"Check-in Time",type:"datetime-local",fullWidth:!0,value:n,onChange:C=>r(C.target.value),sx:{marginBottom:3},InputLabelProps:{shrink:!0},required:!0,helperText:"Select the date and time for your check-in."}),u.jsxs(Gu,{fullWidth:!0,sx:{marginBottom:3},children:[u.jsx(Yu,{id:"frequency-label",children:"Frequency"}),u.jsxs(Oa,{labelId:"frequency-label",id:"frequency",value:o,label:"Frequency",onChange:C=>i(C.target.value),children:[u.jsx(Un,{value:"daily",children:"Daily"}),u.jsx(Un,{value:"weekly",children:"Weekly"}),u.jsx(Un,{value:"monthly",children:"Monthly"})]}),u.jsx(Hn,{title:"Choose how often you want the check-ins to occur",children:u.jsx("i",{className:"fas fa-info-circle"})})]}),u.jsx(vm,{control:u.jsx(pm,{checked:s,onChange:C=>a(C.target.checked),color:"primary"}),label:"Notify me",sx:{marginBottom:2}}),u.jsx(gt,{type:"submit",fullWidth:!0,variant:"contained",color:"primary",sx:{mt:2,mb:2,padding:"10px 0"},children:t?"Update Check-In":"Schedule Check-In"}),u.jsx(lo,{open:f.open,autoHideDuration:6e3,onClose:v,children:u.jsx(ur,{onClose:v,severity:f.severity,children:f.message})})]})}kp.propTypes={userId:Id.string.isRequired,checkInId:Id.string,update:Id.bool.isRequired};var lg={},Fz=de;Object.defineProperty(lg,"__esModule",{value:!0});var jS=lg.default=void 0,Bz=Fz(ge()),Ey=u;jS=lg.default=(0,Bz.default)([(0,Ey.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,Ey.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");var cg={},Wz=de;Object.defineProperty(cg,"__esModule",{value:!0});var OS=cg.default=void 0,Uz=Wz(ge()),Hz=u;OS=cg.default=(0,Uz.default)((0,Hz.jsx)("path",{d:"M7 7h10v3l4-4-4-4v3H5v6h2zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2z"}),"Repeat");var ug={},Vz=de;Object.defineProperty(ug,"__esModule",{value:!0});var IS=ug.default=void 0,qz=Vz(ge()),Kz=u;IS=ug.default=(0,qz.default)((0,Kz.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert");var dg={},Gz=de;Object.defineProperty(dg,"__esModule",{value:!0});var MS=dg.default=void 0,Yz=Gz(ge()),Xz=u;MS=dg.default=(0,Yz.default)((0,Xz.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");var fg={},Qz=de;Object.defineProperty(fg,"__esModule",{value:!0});var NS=fg.default=void 0,Jz=Qz(ge()),Zz=u;NS=fg.default=(0,Jz.default)((0,Zz.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");const eD=B(qu)(({theme:e})=>({marginBottom:e.spacing(2),padding:e.spacing(2),display:"flex",alignItems:"center",justifyContent:"space-between",transition:"transform 0.1s ease-in-out","&:hover":{transform:"scale(1.01)",boxShadow:e.shadows[3]}})),tD=Vt.forwardRef(function(t,n){return u.jsx(ur,{elevation:6,ref:n,variant:"filled",...t})});function nD(){const{userId:e}=xa(),t=Ao(),[n,r]=p.useState([]),[o,i]=p.useState(null),[s,a]=p.useState(!1),[l,c]=p.useState(!1),[d,f]=p.useState(!1),[h,b]=p.useState(""),[y,v]=p.useState(!1),[C,g]=p.useState(""),[m,x]=p.useState("info"),w=localStorage.getItem("token");p.useEffect(()=>{k()},[e]);const k=async()=>{if(!e){b("User not logged in");return}if(!w){b("No token found, please log in again");return}f(!0);try{const M=await ve.get(`/api/check-in/all?user_id=${e}`,{headers:{Authorization:`Bearer ${w}`}});if(console.log("API Response:",M.data),Array.isArray(M.data)&&M.data.every(I=>I._id&&I._id.$oid&&I.check_in_time&&I.check_in_time.$date)){const I=M.data.map(N=>({...N,_id:N._id.$oid,check_in_time:new Date(N.check_in_time.$date).toLocaleString()}));r(I)}else console.error("Data received is not in expected array format:",M.data),b("Unexpected data format");f(!1)}catch(M){console.error("Error during fetch:",M),b(M.message),f(!1)}},P=M=>{const I=n.find(N=>N._id===M);I&&(i(I),console.log("Selected check-in for details or update:",I),a(!0))},R=()=>{a(!1),c(!1)},E=async()=>{if(o){try{await ve.delete(`/api/check-in/${o._id}`,{headers:{Authorization:`Bearer ${w}`}}),g("Check-in deleted successfully"),x("success"),k(),R()}catch{g("Failed to delete check-in"),x("error")}v(!0)}},j=()=>{t(`/user/check_in/${o._id}`),console.log("Redirecting to update check-in form",o._id)},T=(M,I)=>{I!=="clickaway"&&v(!1)},O=()=>{c(!0)};return e?d?u.jsx(ye,{variant:"h6",mt:"2",children:"Loading..."}):u.jsxs(Ke,{sx:{margin:3,maxWidth:600,mx:"auto",maxHeight:"91vh",overflow:"auto"},children:[u.jsx(ye,{variant:"h4",gutterBottom:!0,children:"Track Your Commitments"}),u.jsx(ca,{sx:{mb:2}}),n.length>0?u.jsx(ja,{children:n.map(M=>u.jsxs(eD,{children:[u.jsx(QM,{children:u.jsx(yr,{sx:{bgcolor:"primary.main"},children:u.jsx(jS,{})})}),u.jsx(da,{primary:`Check-In: ${M.check_in_time}`,secondary:u.jsx(R3,{label:M.frequency,icon:u.jsx(OS,{}),size:"small"})}),u.jsx(Hn,{title:"More options",children:u.jsx(Qe,{onClick:()=>P(M._id),children:u.jsx(IS,{})})})]},M._id))}):u.jsx(ye,{variant:"h6",sx:{mb:2,mt:2,color:"error.main",fontWeight:"medium",textAlign:"center",padding:2,borderRadius:1,backgroundColor:"background.paper",boxShadow:2},children:"No check-ins found."}),u.jsxs(yp,{open:s,onClose:R,children:[u.jsx(Sp,{children:"Check-In Details"}),u.jsx(bp,{children:u.jsxs(ye,{component:"div",children:[u.jsxs(ye,{variant:"body1",children:[u.jsx("strong",{children:"Time:"})," ",o==null?void 0:o.check_in_time]}),u.jsxs(ye,{variant:"body1",children:[u.jsx("strong",{children:"Frequency:"})," ",o==null?void 0:o.frequency]}),u.jsxs(ye,{variant:"body1",children:[u.jsx("strong",{children:"Status:"})," ",o==null?void 0:o.status]}),u.jsxs(ye,{variant:"body1",children:[u.jsx("strong",{children:"Notify:"})," ",o!=null&&o.notify?"Yes":"No"]})]})}),u.jsxs(xp,{children:[u.jsx(gt,{onClick:j,startIcon:u.jsx(NS,{}),children:"Update"}),u.jsx(gt,{onClick:O,startIcon:u.jsx(MS,{}),color:"error",children:"Delete"}),u.jsx(gt,{onClick:R,children:"Close"})]})]}),u.jsxs(yp,{open:l,onClose:R,children:[u.jsx(Sp,{children:"Confirm Deletion"}),u.jsx(bp,{children:u.jsx(Y2,{children:"Are you sure you want to delete this check-in? This action cannot be undone."})}),u.jsxs(xp,{children:[u.jsx(gt,{onClick:E,color:"error",children:"Delete"}),u.jsx(gt,{onClick:R,children:"Cancel"})]})]}),u.jsx(lo,{open:y,autoHideDuration:6e3,onClose:T,children:u.jsx(tD,{onClose:T,severity:m,children:C})})]}):u.jsx(ye,{variant:"h6",mt:"2",children:"Please log in to see your check-ins."})}const fr=({children:e})=>{const t=localStorage.getItem("token");return console.log("isAuthenticated:",t),t?e:u.jsx(TP,{to:"/auth",replace:!0})};var pg={},rD=de;Object.defineProperty(pg,"__esModule",{value:!0});var LS=pg.default=void 0,oD=rD(ge()),iD=u;LS=pg.default=(0,oD.default)((0,iD.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 14H4V8l8 5 8-5zm-8-7L4 6h16z"}),"MailOutline");function sD(){const[e,t]=p.useState(""),[n,r]=p.useState(""),[o,i]=p.useState(!1),[s,a]=p.useState(!1),l=async c=>{var d,f;c.preventDefault(),a(!0);try{const h=await ve.post("/api/user/request_reset",{email:e});r(h.data.message),i(!1)}catch(h){r(((f=(d=h.response)==null?void 0:d.data)==null?void 0:f.message)||"Failed to send reset link. Please try again."),i(!0)}a(!1)};return u.jsx(Ke,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",sx:{background:"linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)","& .MuiPaper-root":{background:"#fff",padding:"30px",width:"400px",textAlign:"center"}},children:u.jsxs(gn,{elevation:3,style:{padding:"30px",width:"400px",textAlign:"center"},children:[u.jsx(ye,{variant:"h5",component:"h1",marginBottom:"20px",children:"Reset Your Password"}),u.jsxs("form",{onSubmit:l,children:[u.jsx(qe,{label:"Email Address",type:"email",value:e,onChange:c=>t(c.target.value),variant:"outlined",fullWidth:!0,required:!0,margin:"normal",InputProps:{endAdornment:u.jsx(LS,{})}}),u.jsx(gt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,disabled:s,endIcon:s?null:u.jsx(Ki,{}),children:s?u.jsx(kn,{size:24}):"Send Reset Link"})]}),n&&u.jsx(ur,{severity:o?"error":"success",sx:{maxWidth:"325px",mt:2},children:n})]})})}var hg={},aD=de;Object.defineProperty(hg,"__esModule",{value:!0});var Rp=hg.default=void 0,lD=aD(ge()),cD=u;Rp=hg.default=(0,lD.default)((0,cD.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");var mg={},uD=de;Object.defineProperty(mg,"__esModule",{value:!0});var AS=mg.default=void 0,dD=uD(ge()),fD=u;AS=mg.default=(0,dD.default)((0,fD.jsx)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l4 4 4-4H6c0-3.86 3.14-7 7-7s7 3.14 7 7-3.14 7-7 7c-1.9 0-3.62-.76-4.88-1.99L6.7 18.42C8.32 20.01 10.55 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m2 8v-1c0-1.1-.9-2-2-2s-2 .9-2 2v1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1m-1 0h-2v-1c0-.55.45-1 1-1s1 .45 1 1z"}),"LockReset");function pD(){const e=Ao(),{token:t}=xa(),[n,r]=p.useState(""),[o,i]=p.useState(""),[s,a]=p.useState(!1),[l,c]=p.useState(""),[d,f]=p.useState(!1),h=async y=>{if(y.preventDefault(),n!==o){c("Passwords do not match."),f(!0);return}try{const v=await ve.post(`/api/user/reset_password/${t}`,{password:n});c(v.data.message),f(!1),setTimeout(()=>e("/auth"),2e3)}catch(v){c(v.response.data.error),f(!0)}},b=()=>{a(!s)};return u.jsx(Ke,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",sx:{background:"linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)","& .MuiPaper-root":{padding:"40px",width:"400px",textAlign:"center",marginTop:"20px",borderRadius:"10px"}},children:u.jsxs(gn,{elevation:6,children:[u.jsxs(ye,{variant:"h5",component:"h1",marginBottom:"2",children:["Reset Your Password ",u.jsx(AS,{})]}),u.jsxs("form",{onSubmit:h,children:[u.jsx(qe,{label:"New Password",type:s?"text":"password",value:n,onChange:y=>r(y.target.value),variant:"outlined",fullWidth:!0,required:!0,margin:"normal",InputProps:{endAdornment:u.jsx(yc,{position:"end",children:u.jsx(Qe,{"aria-label":"toggle password visibility",onClick:b,children:s?u.jsx(Rp,{}):u.jsx(wc,{})})})}}),u.jsx(qe,{label:"Confirm New Password",type:s?"text":"password",value:o,onChange:y=>i(y.target.value),variant:"outlined",fullWidth:!0,required:!0,margin:"normal",InputProps:{endAdornment:u.jsx(yc,{position:"end",children:u.jsx(Qe,{"aria-label":"toggle password visibility",onClick:b,children:s?u.jsx(Rp,{}):u.jsx(wc,{})})})}}),u.jsx(gt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,sx:{mt:2},endIcon:u.jsx(Ki,{}),children:"Reset Password"})]}),l&&u.jsx(ur,{severity:d?"error":"success",sx:{mt:2,maxWidth:"325px"},children:l})]})})}function hD(){const{user:e}=p.useContext(lr);return p.useEffect(()=>{document.body.style.backgroundColor="#f5f5f5"},[]),u.jsx(mD,{children:u.jsxs(jP,{children:[u.jsx(rn,{path:"/",element:u.jsx(fr,{children:e!=null&&e.userId?u.jsx(NL,{}):u.jsx(Py,{})})}),u.jsx(rn,{path:"/chat",element:u.jsx(fr,{children:u.jsx(Py,{})})}),u.jsx(rn,{path:"/reset_password/:token",element:u.jsx(pD,{})}),u.jsx(rn,{path:"/request_reset",element:u.jsx(sD,{})}),u.jsx(rn,{path:"/auth",element:u.jsx(YL,{})}),u.jsx(rn,{path:"/user/profile/:userId",element:u.jsx(fr,{children:u.jsx($A,{})})}),u.jsx(rn,{path:"/user/mood_logging",element:u.jsx(fr,{children:u.jsx(bz,{})})}),u.jsx(rn,{path:"/user/mood_logs",element:u.jsx(fr,{children:u.jsx(Sz,{})})}),u.jsx(rn,{path:"/user/check_in",element:u.jsx(fr,{children:u.jsx(kp,{userId:e==null?void 0:e.userId,checkInId:"",update:!1})})}),u.jsx(rn,{path:"/user/check_in/:checkInId",element:u.jsx(fr,{children:u.jsx(kp,{userId:e==null?void 0:e.userId,update:!0})})}),u.jsx(rn,{path:"/user/chat_log_Manager",element:u.jsx(fr,{children:u.jsx(gz,{})})}),u.jsx(rn,{path:"/user/check_ins/:userId",element:u.jsx(fr,{children:u.jsx(nD,{})})})]})})}function mD({children:e}){p.useContext(lr);const t=oo(),r=!["/auth","/request_reset",new RegExp("^/reset_password/[^/]+$")].some(l=>typeof l=="string"?l===t.pathname:l.test(t.pathname)),o=r?6:0,[i,s]=p.useState(!0),a=()=>{s(!i)};return u.jsxs(Ke,{sx:{display:"flex",maxHeight:"100vh"},children:[u.jsx(hm,{}),r&&u.jsx(iz,{toggleSidebar:a}),r&&i&&u.jsx(YA,{}),u.jsx(Ke,{component:"main",sx:{flexGrow:1,p:o},children:e})]})}function gD(e){const t="=".repeat((4-e.length%4)%4),n=(e+t).replace(/-/g,"+").replace(/_/g,"/"),r=window.atob(n),o=new Uint8Array(r.length);for(let i=0;i{if(t!=="granted")throw new Error("Permission not granted for Notification");return e.pushManager.getSubscription()}).then(function(t){return t||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:gD(yD)})}).then(function(t){console.log("Subscription:",t);const n={p256dh:btoa(String.fromCharCode.apply(null,new Uint8Array(t.getKey("p256dh")))),auth:btoa(String.fromCharCode.apply(null,new Uint8Array(t.getKey("auth"))))};if(console.log("Subscription keys:",n),!n.p256dh||!n.auth)throw console.error("Subscription object:",t),new Error("Subscription keys are missing");const r={endpoint:t.endpoint,keys:n},o=vD();if(!o)throw new Error("No token found");return fetch("/api/subscribe",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`},body:JSON.stringify(r)})}).then(t=>t.json()).then(t=>console.log("Subscription response:",t)).catch(t=>console.error("Subscription failed:",t))}).catch(function(e){console.error("Service Worker registration failed:",e)})});Jd.createRoot(document.getElementById("root")).render(u.jsx(DP,{children:u.jsx(qP,{children:u.jsx(hD,{})})})); diff --git a/client/dist/assets/index-PlwwHYOf.js b/client/dist/assets/index-PlwwHYOf.js new file mode 100644 index 00000000..3e7f82af --- /dev/null +++ b/client/dist/assets/index-PlwwHYOf.js @@ -0,0 +1,489 @@ +function X2(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var rt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Lr(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Ly={exports:{}},Dc={},Ay={exports:{}},_e={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ss=Symbol.for("react.element"),Q2=Symbol.for("react.portal"),J2=Symbol.for("react.fragment"),Z2=Symbol.for("react.strict_mode"),eS=Symbol.for("react.profiler"),tS=Symbol.for("react.provider"),nS=Symbol.for("react.context"),rS=Symbol.for("react.forward_ref"),oS=Symbol.for("react.suspense"),iS=Symbol.for("react.memo"),aS=Symbol.for("react.lazy"),Eg=Symbol.iterator;function sS(e){return e===null||typeof e!="object"?null:(e=Eg&&e[Eg]||e["@@iterator"],typeof e=="function"?e:null)}var Ny={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Dy=Object.assign,zy={};function Wi(e,t,n){this.props=e,this.context=t,this.refs=zy,this.updater=n||Ny}Wi.prototype.isReactComponent={};Wi.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Wi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function By(){}By.prototype=Wi.prototype;function Dp(e,t,n){this.props=e,this.context=t,this.refs=zy,this.updater=n||Ny}var zp=Dp.prototype=new By;zp.constructor=Dp;Dy(zp,Wi.prototype);zp.isPureReactComponent=!0;var Tg=Array.isArray,Fy=Object.prototype.hasOwnProperty,Bp={current:null},Uy={key:!0,ref:!0,__self:!0,__source:!0};function Wy(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)Fy.call(t,r)&&!Uy.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1>>1,$=I[g];if(0>>1;go(B,E))V<$&&0>o(M,B)?(I[g]=M,I[V]=E,g=V):(I[g]=B,I[L]=E,g=L);else if(V<$&&0>o(M,E))I[g]=M,I[V]=E,g=V;else break e}}return _}function o(I,_){var E=I.sortIndex-_.sortIndex;return E!==0?E:I.id-_.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,f=null,h=3,w=!1,y=!1,x=!1,C=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(I){for(var _=n(c);_!==null;){if(_.callback===null)r(c);else if(_.startTime<=I)r(c),_.sortIndex=_.expirationTime,t(l,_);else break;_=n(c)}}function R(I){if(x=!1,b(I),!y)if(n(l)!==null)y=!0,J(k);else{var _=n(c);_!==null&&re(R,_.startTime-I)}}function k(I,_){y=!1,x&&(x=!1,v(j),j=-1),w=!0;var E=h;try{for(b(_),f=n(l);f!==null&&(!(f.expirationTime>_)||I&&!F());){var g=f.callback;if(typeof g=="function"){f.callback=null,h=f.priorityLevel;var $=g(f.expirationTime<=_);_=e.unstable_now(),typeof $=="function"?f.callback=$:f===n(l)&&r(l),b(_)}else r(l);f=n(l)}if(f!==null)var z=!0;else{var L=n(c);L!==null&&re(R,L.startTime-_),z=!1}return z}finally{f=null,h=E,w=!1}}var T=!1,P=null,j=-1,N=5,O=-1;function F(){return!(e.unstable_now()-OI||125g?(I.sortIndex=E,t(c,I),n(l)===null&&I===n(c)&&(x?(v(j),j=-1):x=!0,re(R,E-g))):(I.sortIndex=$,t(l,I),y||w||(y=!0,J(k))),I},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(I){var _=h;return function(){var E=h;h=_;try{return I.apply(this,arguments)}finally{h=E}}}})(Ky);Gy.exports=Ky;var yS=Gy.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var xS=p,wn=yS;function ce(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ff=Object.prototype.hasOwnProperty,bS=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Mg={},jg={};function wS(e){return ff.call(jg,e)?!0:ff.call(Mg,e)?!1:bS.test(e)?jg[e]=!0:(Mg[e]=!0,!1)}function SS(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function CS(e,t,n,r){if(t===null||typeof t>"u"||SS(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Zt(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Nt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Nt[e]=new Zt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Nt[t]=new Zt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Nt[e]=new Zt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Nt[e]=new Zt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Nt[e]=new Zt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Nt[e]=new Zt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Nt[e]=new Zt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Nt[e]=new Zt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Nt[e]=new Zt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Up=/[\-:]([a-z])/g;function Wp(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Up,Wp);Nt[t]=new Zt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Up,Wp);Nt[t]=new Zt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Up,Wp);Nt[t]=new Zt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Nt[e]=new Zt(e,1,!1,e.toLowerCase(),null,!1,!1)});Nt.xlinkHref=new Zt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Nt[e]=new Zt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Hp(e,t,n,r){var o=Nt.hasOwnProperty(t)?Nt[t]:null;(o!==null?o.type!==0:r||!(2s||o[a]!==i[s]){var l=` +`+o[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{hd=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ka(e):""}function RS(e){switch(e.tag){case 5:return ka(e.type);case 16:return ka("Lazy");case 13:return ka("Suspense");case 19:return ka("SuspenseList");case 0:case 2:case 15:return e=md(e.type,!1),e;case 11:return e=md(e.type.render,!1),e;case 1:return e=md(e.type,!0),e;default:return""}}function gf(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ai:return"Fragment";case ii:return"Portal";case pf:return"Profiler";case Vp:return"StrictMode";case hf:return"Suspense";case mf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qy:return(e.displayName||"Context")+".Consumer";case Xy:return(e._context.displayName||"Context")+".Provider";case qp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Gp:return t=e.displayName||null,t!==null?t:gf(e.type)||"Memo";case Vr:t=e._payload,e=e._init;try{return gf(e(t))}catch{}}return null}function kS(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return gf(t);case 8:return t===Vp?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function lo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Zy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function PS(e){var t=Zy(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ks(e){e._valueTracker||(e._valueTracker=PS(e))}function e1(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Zy(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ql(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function vf(e,t){var n=t.checked;return pt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ig(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=lo(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function t1(e,t){t=t.checked,t!=null&&Hp(e,"checked",t,!1)}function yf(e,t){t1(e,t);var n=lo(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?xf(e,t.type,n):t.hasOwnProperty("defaultValue")&&xf(e,t.type,lo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function _g(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function xf(e,t,n){(t!=="number"||ql(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Pa=Array.isArray;function yi(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Ys.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ga(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ja={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ES=["Webkit","ms","Moz","O"];Object.keys(ja).forEach(function(e){ES.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ja[t]=ja[e]})});function i1(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ja.hasOwnProperty(e)&&ja[e]?(""+t).trim():t+"px"}function a1(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=i1(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var TS=pt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Sf(e,t){if(t){if(TS[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ce(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ce(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ce(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ce(62))}}function Cf(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Rf=null;function Kp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var kf=null,xi=null,bi=null;function Ng(e){if(e=ks(e)){if(typeof kf!="function")throw Error(ce(280));var t=e.stateNode;t&&(t=Wc(t),kf(e.stateNode,e.type,t))}}function s1(e){xi?bi?bi.push(e):bi=[e]:xi=e}function l1(){if(xi){var e=xi,t=bi;if(bi=xi=null,Ng(e),t)for(e=0;e>>=0,e===0?32:31-(zS(e)/BS|0)|0}var Xs=64,Qs=4194304;function Ea(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Xl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=Ea(s):(i&=a,i!==0&&(r=Ea(i)))}else a=n&~o,a!==0?r=Ea(a):i!==0&&(r=Ea(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Cs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-er(t),e[t]=n}function HS(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ia),qg=" ",Gg=!1;function T1(e,t){switch(e){case"keyup":return yC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var si=!1;function bC(e,t){switch(e){case"compositionend":return $1(t);case"keypress":return t.which!==32?null:(Gg=!0,qg);case"textInput":return e=t.data,e===qg&&Gg?null:e;default:return null}}function wC(e,t){if(si)return e==="compositionend"||!nh&&T1(e,t)?(e=P1(),Pl=Zp=Yr=null,si=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Qg(n)}}function I1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?I1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _1(){for(var e=window,t=ql();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ql(e.document)}return t}function rh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function MC(e){var t=_1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&I1(n.ownerDocument.documentElement,n)){if(r!==null&&rh(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Jg(n,i);var a=Jg(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,li=null,jf=null,La=null,Of=!1;function Zg(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Of||li==null||li!==ql(r)||(r=li,"selectionStart"in r&&rh(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),La&&Za(La,r)||(La=r,r=Zl(jf,"onSelect"),0di||(e.current=Df[di],Df[di]=null,di--)}function Je(e,t){di++,Df[di]=e.current,e.current=t}var co={},Wt=fo(co),on=fo(!1),_o=co;function Ti(e,t){var n=e.type.contextTypes;if(!n)return co;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function an(e){return e=e.childContextTypes,e!=null}function tc(){et(on),et(Wt)}function av(e,t,n){if(Wt.current!==co)throw Error(ce(168));Je(Wt,t),Je(on,n)}function W1(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(ce(108,kS(e)||"Unknown",o));return pt({},n,r)}function nc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||co,_o=Wt.current,Je(Wt,e),Je(on,on.current),!0}function sv(e,t,n){var r=e.stateNode;if(!r)throw Error(ce(169));n?(e=W1(e,t,_o),r.__reactInternalMemoizedMergedChildContext=e,et(on),et(Wt),Je(Wt,e)):et(on),Je(on,n)}var Cr=null,Hc=!1,$d=!1;function H1(e){Cr===null?Cr=[e]:Cr.push(e)}function UC(e){Hc=!0,H1(e)}function po(){if(!$d&&Cr!==null){$d=!0;var e=0,t=He;try{var n=Cr;for(He=1;e>=a,o-=a,kr=1<<32-er(t)+o|n<j?(N=P,P=null):N=P.sibling;var O=h(v,P,b[j],R);if(O===null){P===null&&(P=N);break}e&&P&&O.alternate===null&&t(v,P),m=i(O,m,j),T===null?k=O:T.sibling=O,T=O,P=N}if(j===b.length)return n(v,P),st&&wo(v,j),k;if(P===null){for(;jj?(N=P,P=null):N=P.sibling;var F=h(v,P,O.value,R);if(F===null){P===null&&(P=N);break}e&&P&&F.alternate===null&&t(v,P),m=i(F,m,j),T===null?k=F:T.sibling=F,T=F,P=N}if(O.done)return n(v,P),st&&wo(v,j),k;if(P===null){for(;!O.done;j++,O=b.next())O=f(v,O.value,R),O!==null&&(m=i(O,m,j),T===null?k=O:T.sibling=O,T=O);return st&&wo(v,j),k}for(P=r(v,P);!O.done;j++,O=b.next())O=w(P,v,j,O.value,R),O!==null&&(e&&O.alternate!==null&&P.delete(O.key===null?j:O.key),m=i(O,m,j),T===null?k=O:T.sibling=O,T=O);return e&&P.forEach(function(W){return t(v,W)}),st&&wo(v,j),k}function C(v,m,b,R){if(typeof b=="object"&&b!==null&&b.type===ai&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Gs:e:{for(var k=b.key,T=m;T!==null;){if(T.key===k){if(k=b.type,k===ai){if(T.tag===7){n(v,T.sibling),m=o(T,b.props.children),m.return=v,v=m;break e}}else if(T.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Vr&&uv(k)===T.type){n(v,T.sibling),m=o(T,b.props),m.ref=fa(v,T,b),m.return=v,v=m;break e}n(v,T);break}else t(v,T);T=T.sibling}b.type===ai?(m=jo(b.props.children,v.mode,R,b.key),m.return=v,v=m):(R=_l(b.type,b.key,b.props,null,v.mode,R),R.ref=fa(v,m,b),R.return=v,v=R)}return a(v);case ii:e:{for(T=b.key;m!==null;){if(m.key===T)if(m.tag===4&&m.stateNode.containerInfo===b.containerInfo&&m.stateNode.implementation===b.implementation){n(v,m.sibling),m=o(m,b.children||[]),m.return=v,v=m;break e}else{n(v,m);break}else t(v,m);m=m.sibling}m=Nd(b,v.mode,R),m.return=v,v=m}return a(v);case Vr:return T=b._init,C(v,m,T(b._payload),R)}if(Pa(b))return y(v,m,b,R);if(sa(b))return x(v,m,b,R);ol(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,m!==null&&m.tag===6?(n(v,m.sibling),m=o(m,b),m.return=v,v=m):(n(v,m),m=Ad(b,v.mode,R),m.return=v,v=m),a(v)):n(v,m)}return C}var Mi=K1(!0),Y1=K1(!1),ic=fo(null),ac=null,hi=null,sh=null;function lh(){sh=hi=ac=null}function ch(e){var t=ic.current;et(ic),e._currentValue=t}function Ff(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Si(e,t){ac=e,sh=hi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(rn=!0),e.firstContext=null)}function Dn(e){var t=e._currentValue;if(sh!==e)if(e={context:e,memoizedValue:t,next:null},hi===null){if(ac===null)throw Error(ce(308));hi=e,ac.dependencies={lanes:0,firstContext:e}}else hi=hi.next=e;return t}var Po=null;function uh(e){Po===null?Po=[e]:Po.push(e)}function X1(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,uh(t)):(n.next=o.next,o.next=n),t.interleaved=n,jr(e,r)}function jr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var qr=!1;function dh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Q1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Tr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ro(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ze&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,jr(e,n)}return o=r.interleaved,o===null?(t.next=t,uh(r)):(t.next=o.next,o.next=t),r.interleaved=t,jr(e,n)}function Tl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xp(e,n)}}function dv(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function sc(e,t,n,r){var o=e.updateQueue;qr=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?i=c:a.next=c,a=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==a&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(i!==null){var f=o.baseState;a=0,u=c=l=null,s=i;do{var h=s.lane,w=s.eventTime;if((r&h)===h){u!==null&&(u=u.next={eventTime:w,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var y=e,x=s;switch(h=t,w=n,x.tag){case 1:if(y=x.payload,typeof y=="function"){f=y.call(w,f,h);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=x.payload,h=typeof y=="function"?y.call(w,f,h):y,h==null)break e;f=pt({},f,h);break e;case 2:qr=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,h=o.effects,h===null?o.effects=[s]:h.push(s))}else w={eventTime:w,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=w,l=f):u=u.next=w,a|=h;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;h=s,s=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(!0);if(u===null&&(l=f),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);No|=a,e.lanes=a,e.memoizedState=f}}function fv(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=jd.transition;jd.transition={};try{e(!1),t()}finally{He=n,jd.transition=r}}function hx(){return zn().memoizedState}function qC(e,t,n){var r=io(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},mx(e))gx(t,n);else if(n=X1(e,t,n,r),n!==null){var o=Xt();tr(n,e,r,o),vx(n,t,r)}}function GC(e,t,n){var r=io(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(mx(e))gx(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,rr(s,a)){var l=t.interleaved;l===null?(o.next=o,uh(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=X1(e,t,o,r),n!==null&&(o=Xt(),tr(n,e,r,o),vx(n,t,r))}}function mx(e){var t=e.alternate;return e===dt||t!==null&&t===dt}function gx(e,t){Aa=cc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function vx(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xp(e,n)}}var uc={readContext:Dn,useCallback:zt,useContext:zt,useEffect:zt,useImperativeHandle:zt,useInsertionEffect:zt,useLayoutEffect:zt,useMemo:zt,useReducer:zt,useRef:zt,useState:zt,useDebugValue:zt,useDeferredValue:zt,useTransition:zt,useMutableSource:zt,useSyncExternalStore:zt,useId:zt,unstable_isNewReconciler:!1},KC={readContext:Dn,useCallback:function(e,t){return lr().memoizedState=[e,t===void 0?null:t],e},useContext:Dn,useEffect:hv,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ml(4194308,4,cx.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ml(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ml(4,2,e,t)},useMemo:function(e,t){var n=lr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=lr();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=qC.bind(null,dt,e),[r.memoizedState,e]},useRef:function(e){var t=lr();return e={current:e},t.memoizedState=e},useState:pv,useDebugValue:xh,useDeferredValue:function(e){return lr().memoizedState=e},useTransition:function(){var e=pv(!1),t=e[0];return e=VC.bind(null,e[1]),lr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=dt,o=lr();if(st){if(n===void 0)throw Error(ce(407));n=n()}else{if(n=t(),Mt===null)throw Error(ce(349));Ao&30||tx(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,hv(rx.bind(null,r,i,e),[e]),r.flags|=2048,ss(9,nx.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=lr(),t=Mt.identifierPrefix;if(st){var n=Pr,r=kr;n=(r&~(1<<32-er(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=is++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[dr]=t,e[ns]=r,Ex(e,t,!1,!1),t.stateNode=e;e:{switch(a=Cf(n,r),n){case"dialog":Ze("cancel",e),Ze("close",e),o=r;break;case"iframe":case"object":case"embed":Ze("load",e),o=r;break;case"video":case"audio":for(o=0;oIi&&(t.flags|=128,r=!0,pa(i,!1),t.lanes=4194304)}else{if(!r)if(e=lc(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),pa(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!st)return Bt(t),null}else 2*vt()-i.renderingStartTime>Ii&&n!==1073741824&&(t.flags|=128,r=!0,pa(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=vt(),t.sibling=null,n=ct.current,Je(ct,r?n&1|2:n&1),t):(Bt(t),null);case 22:case 23:return kh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?gn&1073741824&&(Bt(t),t.subtreeFlags&6&&(t.flags|=8192)):Bt(t),null;case 24:return null;case 25:return null}throw Error(ce(156,t.tag))}function nR(e,t){switch(ih(t),t.tag){case 1:return an(t.type)&&tc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ji(),et(on),et(Wt),hh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ph(t),null;case 13:if(et(ct),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ce(340));$i()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return et(ct),null;case 4:return ji(),null;case 10:return ch(t.type._context),null;case 22:case 23:return kh(),null;case 24:return null;default:return null}}var al=!1,Ut=!1,rR=typeof WeakSet=="function"?WeakSet:Set,xe=null;function mi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){gt(e,t,r)}else n.current=null}function Xf(e,t,n){try{n()}catch(r){gt(e,t,r)}}var kv=!1;function oR(e,t){if(If=Ql,e=_1(),rh(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,c=0,u=0,f=e,h=null;t:for(;;){for(var w;f!==n||o!==0&&f.nodeType!==3||(s=a+o),f!==i||r!==0&&f.nodeType!==3||(l=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(w=f.firstChild)!==null;)h=f,f=w;for(;;){if(f===e)break t;if(h===n&&++c===o&&(s=a),h===i&&++u===r&&(l=a),(w=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=w}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(_f={focusedElem:e,selectionRange:n},Ql=!1,xe=t;xe!==null;)if(t=xe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,xe=e;else for(;xe!==null;){t=xe;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var x=y.memoizedProps,C=y.memoizedState,v=t.stateNode,m=v.getSnapshotBeforeUpdate(t.elementType===t.type?x:Yn(t.type,x),C);v.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ce(163))}}catch(R){gt(t,t.return,R)}if(e=t.sibling,e!==null){e.return=t.return,xe=e;break}xe=t.return}return y=kv,kv=!1,y}function Na(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Xf(t,n,i)}o=o.next}while(o!==r)}}function Gc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Qf(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Mx(e){var t=e.alternate;t!==null&&(e.alternate=null,Mx(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[dr],delete t[ns],delete t[Nf],delete t[BC],delete t[FC])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function jx(e){return e.tag===5||e.tag===3||e.tag===4}function Pv(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||jx(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Jf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ec));else if(r!==4&&(e=e.child,e!==null))for(Jf(e,t,n),e=e.sibling;e!==null;)Jf(e,t,n),e=e.sibling}function Zf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Zf(e,t,n),e=e.sibling;e!==null;)Zf(e,t,n),e=e.sibling}var _t=null,Xn=!1;function Br(e,t,n){for(n=n.child;n!==null;)Ox(e,t,n),n=n.sibling}function Ox(e,t,n){if(fr&&typeof fr.onCommitFiberUnmount=="function")try{fr.onCommitFiberUnmount(zc,n)}catch{}switch(n.tag){case 5:Ut||mi(n,t);case 6:var r=_t,o=Xn;_t=null,Br(e,t,n),_t=r,Xn=o,_t!==null&&(Xn?(e=_t,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):_t.removeChild(n.stateNode));break;case 18:_t!==null&&(Xn?(e=_t,n=n.stateNode,e.nodeType===8?Td(e.parentNode,n):e.nodeType===1&&Td(e,n),Qa(e)):Td(_t,n.stateNode));break;case 4:r=_t,o=Xn,_t=n.stateNode.containerInfo,Xn=!0,Br(e,t,n),_t=r,Xn=o;break;case 0:case 11:case 14:case 15:if(!Ut&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Xf(n,t,a),o=o.next}while(o!==r)}Br(e,t,n);break;case 1:if(!Ut&&(mi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){gt(n,t,s)}Br(e,t,n);break;case 21:Br(e,t,n);break;case 22:n.mode&1?(Ut=(r=Ut)||n.memoizedState!==null,Br(e,t,n),Ut=r):Br(e,t,n);break;default:Br(e,t,n)}}function Ev(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new rR),t.forEach(function(r){var o=pR.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Kn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=vt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*aR(r/1960))-r,10e?16:e,Xr===null)var r=!1;else{if(e=Xr,Xr=null,pc=0,ze&6)throw Error(ce(331));var o=ze;for(ze|=4,xe=e.current;xe!==null;){var i=xe,a=i.child;if(xe.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lvt()-Ch?Mo(e,0):Sh|=n),sn(e,t)}function Bx(e,t){t===0&&(e.mode&1?(t=Qs,Qs<<=1,!(Qs&130023424)&&(Qs=4194304)):t=1);var n=Xt();e=jr(e,t),e!==null&&(Cs(e,t,n),sn(e,n))}function fR(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Bx(e,n)}function pR(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ce(314))}r!==null&&r.delete(t),Bx(e,n)}var Fx;Fx=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||on.current)rn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return rn=!1,eR(e,t,n);rn=!!(e.flags&131072)}else rn=!1,st&&t.flags&1048576&&V1(t,oc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;jl(e,t),e=t.pendingProps;var o=Ti(t,Wt.current);Si(t,n),o=gh(null,t,r,e,o,n);var i=vh();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,an(r)?(i=!0,nc(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,dh(t),o.updater=qc,t.stateNode=o,o._reactInternals=t,Wf(t,r,e,n),t=qf(null,t,r,!0,i,n)):(t.tag=0,st&&i&&oh(t),Kt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(jl(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=mR(r),e=Yn(r,e),o){case 0:t=Vf(null,t,r,e,n);break e;case 1:t=Sv(null,t,r,e,n);break e;case 11:t=bv(null,t,r,e,n);break e;case 14:t=wv(null,t,r,Yn(r.type,e),n);break e}throw Error(ce(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yn(r,o),Vf(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yn(r,o),Sv(e,t,r,o,n);case 3:e:{if(Rx(t),e===null)throw Error(ce(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Q1(e,t),sc(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Oi(Error(ce(423)),t),t=Cv(e,t,r,n,o);break e}else if(r!==o){o=Oi(Error(ce(424)),t),t=Cv(e,t,r,n,o);break e}else for(yn=no(t.stateNode.containerInfo.firstChild),xn=t,st=!0,Qn=null,n=Y1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($i(),r===o){t=Or(e,t,n);break e}Kt(e,t,r,n)}t=t.child}return t;case 5:return J1(t),e===null&&Bf(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Lf(r,o)?a=null:i!==null&&Lf(r,i)&&(t.flags|=32),Cx(e,t),Kt(e,t,a,n),t.child;case 6:return e===null&&Bf(t),null;case 13:return kx(e,t,n);case 4:return fh(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Mi(t,null,r,n):Kt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yn(r,o),bv(e,t,r,o,n);case 7:return Kt(e,t,t.pendingProps,n),t.child;case 8:return Kt(e,t,t.pendingProps.children,n),t.child;case 12:return Kt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Je(ic,r._currentValue),r._currentValue=a,i!==null)if(rr(i.value,a)){if(i.children===o.children&&!on.current){t=Or(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Tr(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Ff(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(ce(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Ff(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Kt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Si(t,n),o=Dn(o),r=r(o),t.flags|=1,Kt(e,t,r,n),t.child;case 14:return r=t.type,o=Yn(r,t.pendingProps),o=Yn(r.type,o),wv(e,t,r,o,n);case 15:return wx(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yn(r,o),jl(e,t),t.tag=1,an(r)?(e=!0,nc(t)):e=!1,Si(t,n),yx(t,r,o),Wf(t,r,o,n),qf(null,t,r,!0,e,n);case 19:return Px(e,t,n);case 22:return Sx(e,t,n)}throw Error(ce(156,t.tag))};function Ux(e,t){return m1(e,t)}function hR(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function In(e,t,n,r){return new hR(e,t,n,r)}function Eh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function mR(e){if(typeof e=="function")return Eh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===qp)return 11;if(e===Gp)return 14}return 2}function ao(e,t){var n=e.alternate;return n===null?(n=In(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function _l(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")Eh(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ai:return jo(n.children,o,i,t);case Vp:a=8,o|=8;break;case pf:return e=In(12,n,t,o|2),e.elementType=pf,e.lanes=i,e;case hf:return e=In(13,n,t,o),e.elementType=hf,e.lanes=i,e;case mf:return e=In(19,n,t,o),e.elementType=mf,e.lanes=i,e;case Jy:return Yc(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Xy:a=10;break e;case Qy:a=9;break e;case qp:a=11;break e;case Gp:a=14;break e;case Vr:a=16,r=null;break e}throw Error(ce(130,e==null?e:typeof e,""))}return t=In(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function jo(e,t,n,r){return e=In(7,e,r,t),e.lanes=n,e}function Yc(e,t,n,r){return e=In(22,e,r,t),e.elementType=Jy,e.lanes=n,e.stateNode={isHidden:!1},e}function Ad(e,t,n){return e=In(6,e,null,t),e.lanes=n,e}function Nd(e,t,n){return t=In(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function gR(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vd(0),this.expirationTimes=vd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vd(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Th(e,t,n,r,o,i,a,s,l){return e=new gR(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=In(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},dh(i),e}function vR(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(qx)}catch(e){console.error(e)}}qx(),qy.exports=Rn;var Oh=qy.exports;const cl=Nc(Oh);var Lv=Oh;df.createRoot=Lv.createRoot,df.hydrateRoot=Lv.hydrateRoot;function Gx(e,t){return function(){return e.apply(t,arguments)}}const{toString:SR}=Object.prototype,{getPrototypeOf:Ih}=Object,eu=(e=>t=>{const n=SR.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ir=e=>(e=e.toLowerCase(),t=>eu(t)===e),tu=e=>t=>typeof t===e,{isArray:qi}=Array,cs=tu("undefined");function CR(e){return e!==null&&!cs(e)&&e.constructor!==null&&!cs(e.constructor)&&An(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Kx=ir("ArrayBuffer");function RR(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Kx(e.buffer),t}const kR=tu("string"),An=tu("function"),Yx=tu("number"),nu=e=>e!==null&&typeof e=="object",PR=e=>e===!0||e===!1,Ll=e=>{if(eu(e)!=="object")return!1;const t=Ih(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},ER=ir("Date"),TR=ir("File"),$R=ir("Blob"),MR=ir("FileList"),jR=e=>nu(e)&&An(e.pipe),OR=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||An(e.append)&&((t=eu(e))==="formdata"||t==="object"&&An(e.toString)&&e.toString()==="[object FormData]"))},IR=ir("URLSearchParams"),[_R,LR,AR,NR]=["ReadableStream","Request","Response","Headers"].map(ir),DR=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Es(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),qi(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Qx=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Jx=e=>!cs(e)&&e!==Qx;function op(){const{caseless:e}=Jx(this)&&this||{},t={},n=(r,o)=>{const i=e&&Xx(t,o)||o;Ll(t[i])&&Ll(r)?t[i]=op(t[i],r):Ll(r)?t[i]=op({},r):qi(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(Es(t,(o,i)=>{n&&An(o)?e[i]=Gx(o,n):e[i]=o},{allOwnKeys:r}),e),BR=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),FR=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},UR=(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&Ih(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},WR=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},HR=e=>{if(!e)return null;if(qi(e))return e;let t=e.length;if(!Yx(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},VR=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ih(Uint8Array)),qR=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},GR=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},KR=ir("HTMLFormElement"),YR=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Av=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),XR=ir("RegExp"),Zx=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Es(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},QR=e=>{Zx(e,(t,n)=>{if(An(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(An(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},JR=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return qi(e)?r(e):r(String(e).split(t)),n},ZR=()=>{},ek=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Dd="abcdefghijklmnopqrstuvwxyz",Nv="0123456789",eb={DIGIT:Nv,ALPHA:Dd,ALPHA_DIGIT:Dd+Dd.toUpperCase()+Nv},tk=(e=16,t=eb.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function nk(e){return!!(e&&An(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const rk=e=>{const t=new Array(10),n=(r,o)=>{if(nu(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=qi(r)?[]:{};return Es(r,(a,s)=>{const l=n(a,o+1);!cs(l)&&(i[s]=l)}),t[o]=void 0,i}}return r};return n(e,0)},ok=ir("AsyncFunction"),ik=e=>e&&(nu(e)||An(e))&&An(e.then)&&An(e.catch),Q={isArray:qi,isArrayBuffer:Kx,isBuffer:CR,isFormData:OR,isArrayBufferView:RR,isString:kR,isNumber:Yx,isBoolean:PR,isObject:nu,isPlainObject:Ll,isReadableStream:_R,isRequest:LR,isResponse:AR,isHeaders:NR,isUndefined:cs,isDate:ER,isFile:TR,isBlob:$R,isRegExp:XR,isFunction:An,isStream:jR,isURLSearchParams:IR,isTypedArray:VR,isFileList:MR,forEach:Es,merge:op,extend:zR,trim:DR,stripBOM:BR,inherits:FR,toFlatObject:UR,kindOf:eu,kindOfTest:ir,endsWith:WR,toArray:HR,forEachEntry:qR,matchAll:GR,isHTMLForm:KR,hasOwnProperty:Av,hasOwnProp:Av,reduceDescriptors:Zx,freezeMethods:QR,toObjectSet:JR,toCamelCase:YR,noop:ZR,toFiniteNumber:ek,findKey:Xx,global:Qx,isContextDefined:Jx,ALPHABET:eb,generateString:tk,isSpecCompliantForm:nk,toJSONObject:rk,isAsyncFn:ok,isThenable:ik};function Me(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}Q.inherits(Me,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Q.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const tb=Me.prototype,nb={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{nb[e]={value:e}});Object.defineProperties(Me,nb);Object.defineProperty(tb,"isAxiosError",{value:!0});Me.from=(e,t,n,r,o,i)=>{const a=Object.create(tb);return Q.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Me.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const ak=null;function ip(e){return Q.isPlainObject(e)||Q.isArray(e)}function rb(e){return Q.endsWith(e,"[]")?e.slice(0,-2):e}function Dv(e,t,n){return e?e.concat(t).map(function(o,i){return o=rb(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function sk(e){return Q.isArray(e)&&!e.some(ip)}const lk=Q.toFlatObject(Q,{},null,function(t){return/^is[A-Z]/.test(t)});function ru(e,t,n){if(!Q.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,C){return!Q.isUndefined(C[x])});const r=n.metaTokens,o=n.visitor||u,i=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&Q.isSpecCompliantForm(t);if(!Q.isFunction(o))throw new TypeError("visitor must be a function");function c(y){if(y===null)return"";if(Q.isDate(y))return y.toISOString();if(!l&&Q.isBlob(y))throw new Me("Blob is not supported. Use a Buffer instead.");return Q.isArrayBuffer(y)||Q.isTypedArray(y)?l&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function u(y,x,C){let v=y;if(y&&!C&&typeof y=="object"){if(Q.endsWith(x,"{}"))x=r?x:x.slice(0,-2),y=JSON.stringify(y);else if(Q.isArray(y)&&sk(y)||(Q.isFileList(y)||Q.endsWith(x,"[]"))&&(v=Q.toArray(y)))return x=rb(x),v.forEach(function(b,R){!(Q.isUndefined(b)||b===null)&&t.append(a===!0?Dv([x],R,i):a===null?x:x+"[]",c(b))}),!1}return ip(y)?!0:(t.append(Dv(C,x,i),c(y)),!1)}const f=[],h=Object.assign(lk,{defaultVisitor:u,convertValue:c,isVisitable:ip});function w(y,x){if(!Q.isUndefined(y)){if(f.indexOf(y)!==-1)throw Error("Circular reference detected in "+x.join("."));f.push(y),Q.forEach(y,function(v,m){(!(Q.isUndefined(v)||v===null)&&o.call(t,v,Q.isString(m)?m.trim():m,x,h))===!0&&w(v,x?x.concat(m):[m])}),f.pop()}}if(!Q.isObject(e))throw new TypeError("data must be an object");return w(e),t}function zv(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function _h(e,t){this._pairs=[],e&&ru(e,this,t)}const ob=_h.prototype;ob.append=function(t,n){this._pairs.push([t,n])};ob.toString=function(t){const n=t?function(r){return t.call(this,r,zv)}:zv;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function ck(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ib(e,t,n){if(!t)return e;const r=n&&n.encode||ck,o=n&&n.serialize;let i;if(o?i=o(t,n):i=Q.isURLSearchParams(t)?t.toString():new _h(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Bv{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Q.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ab={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},uk=typeof URLSearchParams<"u"?URLSearchParams:_h,dk=typeof FormData<"u"?FormData:null,fk=typeof Blob<"u"?Blob:null,pk={isBrowser:!0,classes:{URLSearchParams:uk,FormData:dk,Blob:fk},protocols:["http","https","file","blob","url","data"]},Lh=typeof window<"u"&&typeof document<"u",hk=(e=>Lh&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),mk=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",gk=Lh&&window.location.href||"http://localhost",vk=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Lh,hasStandardBrowserEnv:hk,hasStandardBrowserWebWorkerEnv:mk,origin:gk},Symbol.toStringTag,{value:"Module"})),nr={...vk,...pk};function yk(e,t){return ru(e,new nr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return nr.isNode&&Q.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function xk(e){return Q.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function bk(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return a=!a&&Q.isArray(o)?o.length:a,l?(Q.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!s):((!o[a]||!Q.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&Q.isArray(o[a])&&(o[a]=bk(o[a])),!s)}if(Q.isFormData(e)&&Q.isFunction(e.entries)){const n={};return Q.forEachEntry(e,(r,o)=>{t(xk(r),o,n,0)}),n}return null}function wk(e,t,n){if(Q.isString(e))try{return(t||JSON.parse)(e),Q.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ts={transitional:ab,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=Q.isObject(t);if(i&&Q.isHTMLForm(t)&&(t=new FormData(t)),Q.isFormData(t))return o?JSON.stringify(sb(t)):t;if(Q.isArrayBuffer(t)||Q.isBuffer(t)||Q.isStream(t)||Q.isFile(t)||Q.isBlob(t)||Q.isReadableStream(t))return t;if(Q.isArrayBufferView(t))return t.buffer;if(Q.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return yk(t,this.formSerializer).toString();if((s=Q.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return ru(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),wk(t)):t}],transformResponse:[function(t){const n=this.transitional||Ts.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Q.isResponse(t)||Q.isReadableStream(t))return t;if(t&&Q.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?Me.from(s,Me.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:nr.classes.FormData,Blob:nr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Q.forEach(["delete","get","head","post","put","patch"],e=>{Ts.headers[e]={}});const Sk=Q.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ck=e=>{const t={};let n,r,o;return e&&e.split(` +`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&Sk[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Fv=Symbol("internals");function ma(e){return e&&String(e).trim().toLowerCase()}function Al(e){return e===!1||e==null?e:Q.isArray(e)?e.map(Al):String(e)}function Rk(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const kk=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function zd(e,t,n,r,o){if(Q.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Q.isString(t)){if(Q.isString(r))return t.indexOf(r)!==-1;if(Q.isRegExp(r))return r.test(t)}}function Pk(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Ek(e,t){const n=Q.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}class ln{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(s,l,c){const u=ma(l);if(!u)throw new Error("header name must be a non-empty string");const f=Q.findKey(o,u);(!f||o[f]===void 0||c===!0||c===void 0&&o[f]!==!1)&&(o[f||l]=Al(s))}const a=(s,l)=>Q.forEach(s,(c,u)=>i(c,u,l));if(Q.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(Q.isString(t)&&(t=t.trim())&&!kk(t))a(Ck(t),n);else if(Q.isHeaders(t))for(const[s,l]of t.entries())i(l,s,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=ma(t),t){const r=Q.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Rk(o);if(Q.isFunction(n))return n.call(this,o,r);if(Q.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ma(t),t){const r=Q.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||zd(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=ma(a),a){const s=Q.findKey(r,a);s&&(!n||zd(r,r[s],s,n))&&(delete r[s],o=!0)}}return Q.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||zd(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return Q.forEach(this,(o,i)=>{const a=Q.findKey(r,i);if(a){n[a]=Al(o),delete n[i];return}const s=t?Pk(i):String(i).trim();s!==i&&delete n[i],n[s]=Al(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Q.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Q.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Fv]=this[Fv]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=ma(a);r[s]||(Ek(o,a),r[s]=!0)}return Q.isArray(t)?t.forEach(i):i(t),this}}ln.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Q.reduceDescriptors(ln.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Q.freezeMethods(ln);function Bd(e,t){const n=this||Ts,r=t||n,o=ln.from(r.headers);let i=r.data;return Q.forEach(e,function(s){i=s.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function lb(e){return!!(e&&e.__CANCEL__)}function Gi(e,t,n){Me.call(this,e??"canceled",Me.ERR_CANCELED,t,n),this.name="CanceledError"}Q.inherits(Gi,Me,{__CANCEL__:!0});function cb(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Me("Request failed with status code "+n.status,[Me.ERR_BAD_REQUEST,Me.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Tk(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function $k(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[i];a||(a=c),n[o]=l,r[o]=c;let f=i,h=0;for(;f!==o;)h+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-ar)return o&&(clearTimeout(o),o=null),n=s,e.apply(null,arguments);o||(o=setTimeout(()=>(o=null,n=Date.now(),e.apply(null,arguments)),r-(s-n)))}}const gc=(e,t,n=3)=>{let r=0;const o=$k(50,250);return Mk(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,l=a-r,c=o(l),u=a<=s;r=a;const f={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-a)/c:void 0,event:i,lengthComputable:s!=null};f[t?"download":"upload"]=!0,e(f)},n)},jk=nr.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let a=i;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(a){const s=Q.isString(a)?o(a):a;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}(),Ok=nr.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Q.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Q.isString(r)&&a.push("path="+r),Q.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Ik(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function _k(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ub(e,t){return e&&!Ik(t)?_k(e,t):t}const Uv=e=>e instanceof ln?{...e}:e;function zo(e,t){t=t||{};const n={};function r(c,u,f){return Q.isPlainObject(c)&&Q.isPlainObject(u)?Q.merge.call({caseless:f},c,u):Q.isPlainObject(u)?Q.merge({},u):Q.isArray(u)?u.slice():u}function o(c,u,f){if(Q.isUndefined(u)){if(!Q.isUndefined(c))return r(void 0,c,f)}else return r(c,u,f)}function i(c,u){if(!Q.isUndefined(u))return r(void 0,u)}function a(c,u){if(Q.isUndefined(u)){if(!Q.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,f){if(f in t)return r(c,u);if(f in e)return r(void 0,c)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(c,u)=>o(Uv(c),Uv(u),!0)};return Q.forEach(Object.keys(Object.assign({},e,t)),function(u){const f=l[u]||o,h=f(e[u],t[u],u);Q.isUndefined(h)&&f!==s||(n[u]=h)}),n}const db=e=>{const t=zo({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;t.headers=a=ln.from(a),t.url=ib(ub(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(Q.isFormData(n)){if(nr.hasStandardBrowserEnv||nr.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[c,...u]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...u].join("; "))}}if(nr.hasStandardBrowserEnv&&(r&&Q.isFunction(r)&&(r=r(t)),r||r!==!1&&jk(t.url))){const c=o&&i&&Ok.read(i);c&&a.set(o,c)}return t},Lk=typeof XMLHttpRequest<"u",Ak=Lk&&function(e){return new Promise(function(n,r){const o=db(e);let i=o.data;const a=ln.from(o.headers).normalize();let{responseType:s}=o,l;function c(){o.cancelToken&&o.cancelToken.unsubscribe(l),o.signal&&o.signal.removeEventListener("abort",l)}let u=new XMLHttpRequest;u.open(o.method.toUpperCase(),o.url,!0),u.timeout=o.timeout;function f(){if(!u)return;const w=ln.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),x={data:!s||s==="text"||s==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:w,config:e,request:u};cb(function(v){n(v),c()},function(v){r(v),c()},x),u=null}"onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(f)},u.onabort=function(){u&&(r(new Me("Request aborted",Me.ECONNABORTED,o,u)),u=null)},u.onerror=function(){r(new Me("Network Error",Me.ERR_NETWORK,o,u)),u=null},u.ontimeout=function(){let y=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const x=o.transitional||ab;o.timeoutErrorMessage&&(y=o.timeoutErrorMessage),r(new Me(y,x.clarifyTimeoutError?Me.ETIMEDOUT:Me.ECONNABORTED,o,u)),u=null},i===void 0&&a.setContentType(null),"setRequestHeader"in u&&Q.forEach(a.toJSON(),function(y,x){u.setRequestHeader(x,y)}),Q.isUndefined(o.withCredentials)||(u.withCredentials=!!o.withCredentials),s&&s!=="json"&&(u.responseType=o.responseType),typeof o.onDownloadProgress=="function"&&u.addEventListener("progress",gc(o.onDownloadProgress,!0)),typeof o.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",gc(o.onUploadProgress)),(o.cancelToken||o.signal)&&(l=w=>{u&&(r(!w||w.type?new Gi(null,e,u):w),u.abort(),u=null)},o.cancelToken&&o.cancelToken.subscribe(l),o.signal&&(o.signal.aborted?l():o.signal.addEventListener("abort",l)));const h=Tk(o.url);if(h&&nr.protocols.indexOf(h)===-1){r(new Me("Unsupported protocol "+h+":",Me.ERR_BAD_REQUEST,e));return}u.send(i||null)})},Nk=(e,t)=>{let n=new AbortController,r;const o=function(l){if(!r){r=!0,a();const c=l instanceof Error?l:this.reason;n.abort(c instanceof Me?c:new Gi(c instanceof Error?c.message:c))}};let i=t&&setTimeout(()=>{o(new Me(`timeout ${t} of ms exceeded`,Me.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",o):l.unsubscribe(o))}),e=null)};e.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",o));const{signal:s}=n;return s.unsubscribe=a,[s,()=>{i&&clearTimeout(i),i=null}]},Dk=function*(e,t){let n=e.byteLength;if(!t||n{const i=zk(e,t,o);let a=0;return new ReadableStream({type:"bytes",async pull(s){const{done:l,value:c}=await i.next();if(l){s.close(),r();return}let u=c.byteLength;n&&n(a+=u),s.enqueue(new Uint8Array(c))},cancel(s){return r(s),i.return()}},{highWaterMark:2})},Hv=(e,t)=>{const n=e!=null;return r=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:r}))},ou=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",fb=ou&&typeof ReadableStream=="function",ap=ou&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Bk=fb&&(()=>{let e=!1;const t=new Request(nr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),Vv=64*1024,sp=fb&&!!(()=>{try{return Q.isReadableStream(new Response("").body)}catch{}})(),vc={stream:sp&&(e=>e.body)};ou&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!vc[t]&&(vc[t]=Q.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Me(`Response type '${t}' is not supported`,Me.ERR_NOT_SUPPORT,r)})})})(new Response);const Fk=async e=>{if(e==null)return 0;if(Q.isBlob(e))return e.size;if(Q.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(Q.isArrayBufferView(e))return e.byteLength;if(Q.isURLSearchParams(e)&&(e=e+""),Q.isString(e))return(await ap(e)).byteLength},Uk=async(e,t)=>{const n=Q.toFiniteNumber(e.getContentLength());return n??Fk(t)},Wk=ou&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:f="same-origin",fetchOptions:h}=db(e);c=c?(c+"").toLowerCase():"text";let[w,y]=o||i||a?Nk([o,i],a):[],x,C;const v=()=>{!x&&setTimeout(()=>{w&&w.unsubscribe()}),x=!0};let m;try{if(l&&Bk&&n!=="get"&&n!=="head"&&(m=await Uk(u,r))!==0){let T=new Request(t,{method:"POST",body:r,duplex:"half"}),P;Q.isFormData(r)&&(P=T.headers.get("content-type"))&&u.setContentType(P),T.body&&(r=Wv(T.body,Vv,Hv(m,gc(l)),null,ap))}Q.isString(f)||(f=f?"cors":"omit"),C=new Request(t,{...h,signal:w,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",withCredentials:f});let b=await fetch(C);const R=sp&&(c==="stream"||c==="response");if(sp&&(s||R)){const T={};["status","statusText","headers"].forEach(j=>{T[j]=b[j]});const P=Q.toFiniteNumber(b.headers.get("content-length"));b=new Response(Wv(b.body,Vv,s&&Hv(P,gc(s,!0)),R&&v,ap),T)}c=c||"text";let k=await vc[Q.findKey(vc,c)||"text"](b,e);return!R&&v(),y&&y(),await new Promise((T,P)=>{cb(T,P,{data:k,headers:ln.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:C})})}catch(b){throw v(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new Me("Network Error",Me.ERR_NETWORK,e,C),{cause:b.cause||b}):Me.from(b,b&&b.code,e,C)}}),lp={http:ak,xhr:Ak,fetch:Wk};Q.forEach(lp,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const qv=e=>`- ${e}`,Hk=e=>Q.isFunction(e)||e===null||e===!1,pb={getAdapter:e=>{e=Q.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since : +`+i.map(qv).join(` +`):" "+qv(i[0]):"as no adapter specified";throw new Me("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:lp};function Fd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Gi(null,e)}function Gv(e){return Fd(e),e.headers=ln.from(e.headers),e.data=Bd.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),pb.getAdapter(e.adapter||Ts.adapter)(e).then(function(r){return Fd(e),r.data=Bd.call(e,e.transformResponse,r),r.headers=ln.from(r.headers),r},function(r){return lb(r)||(Fd(e),r&&r.response&&(r.response.data=Bd.call(e,e.transformResponse,r.response),r.response.headers=ln.from(r.response.headers))),Promise.reject(r)})}const hb="1.7.2",Ah={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ah[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Kv={};Ah.transitional=function(t,n,r){function o(i,a){return"[Axios v"+hb+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,s)=>{if(t===!1)throw new Me(o(a," has been removed"+(n?" in "+n:"")),Me.ERR_DEPRECATED);return n&&!Kv[a]&&(Kv[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,s):!0}};function Vk(e,t,n){if(typeof e!="object")throw new Me("options must be an object",Me.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new Me("option "+i+" must be "+l,Me.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Me("Unknown option "+i,Me.ERR_BAD_OPTION)}}const cp={assertOptions:Vk,validators:Ah},Fr=cp.validators;class Oo{constructor(t){this.defaults=t,this.interceptors={request:new Bv,response:new Bv}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=zo(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&cp.assertOptions(r,{silentJSONParsing:Fr.transitional(Fr.boolean),forcedJSONParsing:Fr.transitional(Fr.boolean),clarifyTimeoutError:Fr.transitional(Fr.boolean)},!1),o!=null&&(Q.isFunction(o)?n.paramsSerializer={serialize:o}:cp.assertOptions(o,{encode:Fr.function,serialize:Fr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&Q.merge(i.common,i[n.method]);i&&Q.forEach(["delete","get","head","post","put","patch","common"],y=>{delete i[y]}),n.headers=ln.concat(a,i);const s=[];let l=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(n)===!1||(l=l&&x.synchronous,s.unshift(x.fulfilled,x.rejected))});const c=[];this.interceptors.response.forEach(function(x){c.push(x.fulfilled,x.rejected)});let u,f=0,h;if(!l){const y=[Gv.bind(this),void 0];for(y.unshift.apply(y,s),y.push.apply(y,c),h=y.length,u=Promise.resolve(n);f{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{r.subscribe(s),i=s}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,s){r.reason||(r.reason=new Gi(i,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Nh(function(o){t=o}),cancel:t}}}function qk(e){return function(n){return e.apply(null,n)}}function Gk(e){return Q.isObject(e)&&e.isAxiosError===!0}const up={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(up).forEach(([e,t])=>{up[t]=e});function mb(e){const t=new Oo(e),n=Gx(Oo.prototype.request,t);return Q.extend(n,Oo.prototype,t,{allOwnKeys:!0}),Q.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return mb(zo(e,o))},n}const Oe=mb(Ts);Oe.Axios=Oo;Oe.CanceledError=Gi;Oe.CancelToken=Nh;Oe.isCancel=lb;Oe.VERSION=hb;Oe.toFormData=ru;Oe.AxiosError=Me;Oe.Cancel=Oe.CanceledError;Oe.all=function(t){return Promise.all(t)};Oe.spread=qk;Oe.isAxiosError=Gk;Oe.mergeConfig=zo;Oe.AxiosHeaders=ln;Oe.formToJSON=e=>sb(Q.isHTMLForm(e)?new FormData(e):e);Oe.getAdapter=pb.getAdapter;Oe.HttpStatusCode=up;Oe.default=Oe;/** + * @remix-run/router v1.16.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function us(){return us=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function gb(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Yk(){return Math.random().toString(36).substr(2,8)}function Xv(e,t){return{usr:e.state,key:e.key,idx:t}}function dp(e,t,n,r){return n===void 0&&(n=null),us({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ki(t):t,{state:n,key:t&&t.key||r||Yk()})}function yc(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ki(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Xk(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=Qr.Pop,l=null,c=u();c==null&&(c=0,a.replaceState(us({},a.state,{idx:c}),""));function u(){return(a.state||{idx:null}).idx}function f(){s=Qr.Pop;let C=u(),v=C==null?null:C-c;c=C,l&&l({action:s,location:x.location,delta:v})}function h(C,v){s=Qr.Push;let m=dp(x.location,C,v);c=u()+1;let b=Xv(m,c),R=x.createHref(m);try{a.pushState(b,"",R)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;o.location.assign(R)}i&&l&&l({action:s,location:x.location,delta:1})}function w(C,v){s=Qr.Replace;let m=dp(x.location,C,v);c=u();let b=Xv(m,c),R=x.createHref(m);a.replaceState(b,"",R),i&&l&&l({action:s,location:x.location,delta:0})}function y(C){let v=o.location.origin!=="null"?o.location.origin:o.location.href,m=typeof C=="string"?C:yc(C);return m=m.replace(/ $/,"%20"),ft(v,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,v)}let x={get action(){return s},get location(){return e(o,a)},listen(C){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Yv,f),l=C,()=>{o.removeEventListener(Yv,f),l=null}},createHref(C){return t(o,C)},createURL:y,encodeLocation(C){let v=y(C);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:h,replace:w,go(C){return a.go(C)}};return x}var Qv;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Qv||(Qv={}));function Qk(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Ki(t):t,o=_i(r.pathname||"/",n);if(o==null)return null;let i=vb(e);Jk(i);let a=null;for(let s=0;a==null&&s{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(ft(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=so([r,l.relativePath]),u=n.concat(l);i.children&&i.children.length>0&&(ft(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),vb(i.children,t,u,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:iP(c,i.index),routesMeta:u})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let l of yb(i.path))o(i,a,l)}),t}function yb(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=yb(r.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function Jk(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:aP(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Zk=/^:[\w-]+$/,eP=3,tP=2,nP=1,rP=10,oP=-2,Jv=e=>e==="*";function iP(e,t){let n=e.split("/"),r=n.length;return n.some(Jv)&&(r+=oP),t&&(r+=tP),n.filter(o=>!Jv(o)).reduce((o,i)=>o+(Zk.test(i)?eP:i===""?nP:rP),r)}function aP(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function sP(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let a=0;a{let{paramName:h,isOptional:w}=u;if(h==="*"){let x=s[f]||"";a=i.slice(0,i.length-x.length).replace(/(.)\/+$/,"$1")}const y=s[f];return w&&!y?c[h]=void 0:c[h]=(y||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:e}}function lP(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),gb(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function cP(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return gb(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function _i(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function uP(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Ki(e):e;return{pathname:n?n.startsWith("/")?n:dP(n,t):t,search:hP(r),hash:mP(o)}}function dP(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Ud(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function fP(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Dh(e,t){let n=fP(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function zh(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Ki(e):(o=us({},e),ft(!o.pathname||!o.pathname.includes("?"),Ud("?","pathname","search",o)),ft(!o.pathname||!o.pathname.includes("#"),Ud("#","pathname","hash",o)),ft(!o.search||!o.search.includes("#"),Ud("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(a==null)s=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),f-=1;o.pathname=h.join("/")}s=f>=0?t[f]:"/"}let l=uP(o,s),c=a&&a!=="/"&&a.endsWith("/"),u=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const so=e=>e.join("/").replace(/\/\/+/g,"/"),pP=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),hP=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,mP=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function gP(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const xb=["post","put","patch","delete"];new Set(xb);const vP=["get",...xb];new Set(vP);/** + * React Router v6.23.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function ds(){return ds=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),p.useCallback(function(c,u){if(u===void 0&&(u={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let f=zh(c,JSON.parse(a),i,u.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:so([t,f.pathname])),(u.replace?r.replace:r.push)(f,u.state,u)},[t,r,a,i,e])}function $s(){let{matches:e}=p.useContext(Dr),t=e[e.length-1];return t?t.params:{}}function su(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=p.useContext(Nr),{matches:o}=p.useContext(Dr),{pathname:i}=ho(),a=JSON.stringify(Dh(o,r.v7_relativeSplatPath));return p.useMemo(()=>zh(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function bP(e,t){return wP(e,t)}function wP(e,t,n,r){Yi()||ft(!1);let{navigator:o}=p.useContext(Nr),{matches:i}=p.useContext(Dr),a=i[i.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let c=ho(),u;if(t){var f;let C=typeof t=="string"?Ki(t):t;l==="/"||(f=C.pathname)!=null&&f.startsWith(l)||ft(!1),u=C}else u=c;let h=u.pathname||"/",w=h;if(l!=="/"){let C=l.replace(/^\//,"").split("/");w="/"+h.replace(/^\//,"").split("/").slice(C.length).join("/")}let y=Qk(e,{pathname:w}),x=PP(y&&y.map(C=>Object.assign({},C,{params:Object.assign({},s,C.params),pathname:so([l,o.encodeLocation?o.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?l:so([l,o.encodeLocation?o.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),i,n,r);return t&&x?p.createElement(au.Provider,{value:{location:ds({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Qr.Pop}},x):x}function SP(){let e=MP(),t=gP(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:o},n):null,null)}const CP=p.createElement(SP,null);class RP extends p.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?p.createElement(Dr.Provider,{value:this.props.routeContext},p.createElement(wb.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function kP(e){let{routeContext:t,match:n,children:r}=e,o=p.useContext(iu);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),p.createElement(Dr.Provider,{value:t},r)}function PP(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let a=e,s=(o=n)==null?void 0:o.errors;if(s!=null){let u=a.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);u>=0||ft(!1),a=a.slice(0,Math.min(a.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((u,f,h)=>{let w,y=!1,x=null,C=null;n&&(w=s&&f.route.id?s[f.route.id]:void 0,x=f.route.errorElement||CP,l&&(c<0&&h===0?(y=!0,C=null):c===h&&(y=!0,C=f.route.hydrateFallbackElement||null)));let v=t.concat(a.slice(0,h+1)),m=()=>{let b;return w?b=x:y?b=C:f.route.Component?b=p.createElement(f.route.Component,null):f.route.element?b=f.route.element:b=u,p.createElement(kP,{match:f,routeContext:{outlet:u,matches:v,isDataRoute:n!=null},children:b})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?p.createElement(RP,{location:n.location,revalidation:n.revalidation,component:x,error:w,children:m(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):m()},null)}var Cb=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Cb||{}),xc=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(xc||{});function EP(e){let t=p.useContext(iu);return t||ft(!1),t}function TP(e){let t=p.useContext(bb);return t||ft(!1),t}function $P(e){let t=p.useContext(Dr);return t||ft(!1),t}function Rb(e){let t=$P(),n=t.matches[t.matches.length-1];return n.route.id||ft(!1),n.route.id}function MP(){var e;let t=p.useContext(wb),n=TP(xc.UseRouteError),r=Rb(xc.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function jP(){let{router:e}=EP(Cb.UseNavigateStable),t=Rb(xc.UseNavigateStable),n=p.useRef(!1);return Sb(()=>{n.current=!0}),p.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,ds({fromRouteId:t},i)))},[e,t])}function OP(e){let{to:t,replace:n,state:r,relative:o}=e;Yi()||ft(!1);let{future:i,static:a}=p.useContext(Nr),{matches:s}=p.useContext(Dr),{pathname:l}=ho(),c=qo(),u=zh(t,Dh(s,i.v7_relativeSplatPath),l,o==="path"),f=JSON.stringify(u);return p.useEffect(()=>c(JSON.parse(f),{replace:n,state:r,relative:o}),[c,f,o,n,r]),null}function mn(e){ft(!1)}function IP(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Qr.Pop,navigator:i,static:a=!1,future:s}=e;Yi()&&ft(!1);let l=t.replace(/^\/*/,"/"),c=p.useMemo(()=>({basename:l,navigator:i,static:a,future:ds({v7_relativeSplatPath:!1},s)}),[l,s,i,a]);typeof r=="string"&&(r=Ki(r));let{pathname:u="/",search:f="",hash:h="",state:w=null,key:y="default"}=r,x=p.useMemo(()=>{let C=_i(u,l);return C==null?null:{location:{pathname:C,search:f,hash:h,state:w,key:y},navigationType:o}},[l,u,f,h,w,y,o]);return x==null?null:p.createElement(Nr.Provider,{value:c},p.createElement(au.Provider,{children:n,value:x}))}function _P(e){let{children:t,location:n}=e;return bP(pp(t),n)}new Promise(()=>{});function pp(e,t){t===void 0&&(t=[]);let n=[];return p.Children.forEach(e,(r,o)=>{if(!p.isValidElement(r))return;let i=[...t,o];if(r.type===p.Fragment){n.push.apply(n,pp(r.props.children,i));return}r.type!==mn&&ft(!1),!r.props.index||!r.props.children||ft(!1);let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=pp(r.props.children,i)),n.push(a)}),n}/** + * React Router DOM v6.23.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function bc(){return bc=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function LP(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function AP(e,t){return e.button===0&&(!t||t==="_self")&&!LP(e)}const NP=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],DP=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],zP="6";try{window.__reactRouterVersion=zP}catch{}const BP=p.createContext({isTransitioning:!1}),FP="startTransition",Zv=Vl[FP];function UP(e){let{basename:t,children:n,future:r,window:o}=e,i=p.useRef();i.current==null&&(i.current=Kk({window:o,v5Compat:!0}));let a=i.current,[s,l]=p.useState({action:a.action,location:a.location}),{v7_startTransition:c}=r||{},u=p.useCallback(f=>{c&&Zv?Zv(()=>l(f)):l(f)},[l,c]);return p.useLayoutEffect(()=>a.listen(u),[a,u]),p.createElement(IP,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a,future:r})}const WP=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",HP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pb=p.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:s,target:l,to:c,preventScrollReset:u,unstable_viewTransition:f}=t,h=kb(t,NP),{basename:w}=p.useContext(Nr),y,x=!1;if(typeof c=="string"&&HP.test(c)&&(y=c,WP))try{let b=new URL(window.location.href),R=c.startsWith("//")?new URL(b.protocol+c):new URL(c),k=_i(R.pathname,w);R.origin===b.origin&&k!=null?c=k+R.search+R.hash:x=!0}catch{}let C=yP(c,{relative:o}),v=GP(c,{replace:a,state:s,target:l,preventScrollReset:u,relative:o,unstable_viewTransition:f});function m(b){r&&r(b),b.defaultPrevented||v(b)}return p.createElement("a",bc({},h,{href:y||C,onClick:x||i?r:m,ref:n,target:l}))}),VP=p.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:a=!1,style:s,to:l,unstable_viewTransition:c,children:u}=t,f=kb(t,DP),h=su(l,{relative:f.relative}),w=ho(),y=p.useContext(bb),{navigator:x,basename:C}=p.useContext(Nr),v=y!=null&&KP(h)&&c===!0,m=x.encodeLocation?x.encodeLocation(h).pathname:h.pathname,b=w.pathname,R=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;o||(b=b.toLowerCase(),R=R?R.toLowerCase():null,m=m.toLowerCase()),R&&C&&(R=_i(R,C)||R);const k=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let T=b===m||!a&&b.startsWith(m)&&b.charAt(k)==="/",P=R!=null&&(R===m||!a&&R.startsWith(m)&&R.charAt(m.length)==="/"),j={isActive:T,isPending:P,isTransitioning:v},N=T?r:void 0,O;typeof i=="function"?O=i(j):O=[i,T?"active":null,P?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let F=typeof s=="function"?s(j):s;return p.createElement(Pb,bc({},f,{"aria-current":N,className:O,ref:n,style:F,to:l,unstable_viewTransition:c}),typeof u=="function"?u(j):u)});var hp;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(hp||(hp={}));var e0;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(e0||(e0={}));function qP(e){let t=p.useContext(iu);return t||ft(!1),t}function GP(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:s}=t===void 0?{}:t,l=qo(),c=ho(),u=su(e,{relative:a});return p.useCallback(f=>{if(AP(f,n)){f.preventDefault();let h=r!==void 0?r:yc(c)===yc(u);l(e,{replace:h,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:s})}},[c,l,u,r,o,n,e,i,a,s])}function KP(e,t){t===void 0&&(t={});let n=p.useContext(BP);n==null&&ft(!1);let{basename:r}=qP(hp.useViewTransitionState),o=su(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=_i(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=_i(n.nextLocation.pathname,r)||n.nextLocation.pathname;return fp(o.pathname,a)!=null||fp(o.pathname,i)!=null}const vr=p.createContext({user:null}),YP=({children:e})=>{const[t,n]=p.useState(!1),[r,o]=p.useState(null),[i,a]=p.useState(0),[s,l]=p.useState([]),c=p.useCallback(x=>{l(C=>[...C,x])},[l]),u=x=>{l(C=>C.filter((v,m)=>m!==x))},f=()=>{a(i+1)},h=qo();p.useEffect(()=>{const x=localStorage.getItem("user");console.log("Attempting to load user:",x),x?(console.log("User found in storage:",x),o(JSON.parse(x))):console.log("No user found in storage at initialization.")},[]),p.useEffect(()=>{r?(console.log("Storing user in storage:",r),localStorage.setItem("user",JSON.stringify(r))):(console.log("Removing user from storage."),localStorage.removeItem("user"))},[r]);const w=p.useCallback(async()=>{var x;try{const C=localStorage.getItem("token");if(console.log("Logging out with token:",C),!C){console.error("No token available for logout");return}const v=await Oe.post("/api/user/logout",{},{headers:{Authorization:`Bearer ${C}`}});if(v.status===200)o(null),localStorage.removeItem("token"),h("/auth");else throw new Error("Logout failed with status: "+v.status)}catch(C){console.error("Logout failed:",((x=C.response)==null?void 0:x.data)||C.message)}},[h]),y=async(x,C,v)=>{var m,b;try{const R=localStorage.getItem("token"),k=await Oe.patch(`/api/user/change_password/${x}`,{current_password:C,new_password:v},{headers:{Authorization:`Bearer ${R}`}});return k.status===200?{success:!0,message:"Password updated successfully!"}:{success:!1,message:k.data.message||"Update failed!"}}catch(R){return R.response.status===403?{success:!1,message:R.response.data.message||"Incorrect current password"}:{success:!1,message:((b=(m=R.response)==null?void 0:m.data)==null?void 0:b.message)||"Network error"}}};return p.useEffect(()=>{const x=C=>{C.data&&C.data.type==="NEW_NOTIFICATION"&&(console.log("Notification received:",C.data.data),c({title:C.data.data.title,message:C.data.data.body}))};return navigator.serviceWorker.addEventListener("message",x),()=>{navigator.serviceWorker.removeEventListener("message",x)}},[c]),d.jsx(vr.Provider,{value:{user:r,setUser:o,logout:w,voiceEnabled:t,setVoiceEnabled:n,changePassword:y,incrementNotificationCount:f,notifications:s,removeNotification:u,addNotification:c},children:e})},fs={black:"#000",white:"#fff"},Xo={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"},Qo={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Jo={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"},Zo={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},ei={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"},ga={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"},XP={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Bo(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n=0)continue;n[r]=e[r]}return n}function Eb(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var JP=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ZP=Eb(function(e){return JP.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function eE(e){if(e.sheet)return e.sheet;for(var t=0;t0?Lt(Xi,--dn):0,Li--,bt===10&&(Li=1,cu--),bt}function bn(){return bt=dn2||hs(bt)>3?"":" "}function pE(e,t){for(;--t&&bn()&&!(bt<48||bt>102||bt>57&&bt<65||bt>70&&bt<97););return Ms(e,Nl()+(t<6&&hr()==32&&bn()==32))}function gp(e){for(;bn();)switch(bt){case e:return dn;case 34:case 39:e!==34&&e!==39&&gp(bt);break;case 40:e===41&&gp(e);break;case 92:bn();break}return dn}function hE(e,t){for(;bn()&&e+bt!==57;)if(e+bt===84&&hr()===47)break;return"/*"+Ms(t,dn-1)+"*"+lu(e===47?e:bn())}function mE(e){for(;!hs(hr());)bn();return Ms(e,dn)}function gE(e){return Ib(zl("",null,null,null,[""],e=Ob(e),0,[0],e))}function zl(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,f=a,h=0,w=0,y=0,x=1,C=1,v=1,m=0,b="",R=o,k=i,T=r,P=b;C;)switch(y=m,m=bn()){case 40:if(y!=108&&Lt(P,f-1)==58){mp(P+=We(Dl(m),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:P+=Dl(m);break;case 9:case 10:case 13:case 32:P+=fE(y);break;case 92:P+=pE(Nl()-1,7);continue;case 47:switch(hr()){case 42:case 47:ul(vE(hE(bn(),Nl()),t,n),l);break;default:P+="/"}break;case 123*x:s[c++]=cr(P)*v;case 125*x:case 59:case 0:switch(m){case 0:case 125:C=0;case 59+u:v==-1&&(P=We(P,/\f/g,"")),w>0&&cr(P)-f&&ul(w>32?n0(P+";",r,n,f-1):n0(We(P," ","")+";",r,n,f-2),l);break;case 59:P+=";";default:if(ul(T=t0(P,t,n,c,u,o,s,b,R=[],k=[],f),i),m===123)if(u===0)zl(P,t,T,T,R,i,f,s,k);else switch(h===99&&Lt(P,3)===110?100:h){case 100:case 108:case 109:case 115:zl(e,T,T,r&&ul(t0(e,T,T,0,0,o,s,b,o,R=[],f),k),o,k,f,s,r?R:k);break;default:zl(P,T,T,T,[""],k,0,s,k)}}c=u=w=0,x=v=1,b=P="",f=a;break;case 58:f=1+cr(P),w=y;default:if(x<1){if(m==123)--x;else if(m==125&&x++==0&&dE()==125)continue}switch(P+=lu(m),m*x){case 38:v=u>0?1:(P+="\f",-1);break;case 44:s[c++]=(cr(P)-1)*v,v=1;break;case 64:hr()===45&&(P+=Dl(bn())),h=hr(),u=f=cr(b=P+=mE(Nl())),m++;break;case 45:y===45&&cr(P)==2&&(x=0)}}return i}function t0(e,t,n,r,o,i,a,s,l,c,u){for(var f=o-1,h=o===0?i:[""],w=Uh(h),y=0,x=0,C=0;y0?h[v]+" "+m:We(m,/&\f/g,h[v])))&&(l[C++]=b);return uu(e,t,n,o===0?Bh:s,l,c,u)}function vE(e,t,n){return uu(e,t,n,Tb,lu(uE()),ps(e,2,-2),0)}function n0(e,t,n,r){return uu(e,t,n,Fh,ps(e,0,r),ps(e,r+1,-1),r)}function Ri(e,t){for(var n="",r=Uh(e),o=0;o6)switch(Lt(e,t+1)){case 109:if(Lt(e,t+4)!==45)break;case 102:return We(e,/(.+:)(.+)-([^]+)/,"$1"+Ue+"$2-$3$1"+wc+(Lt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~mp(e,"stretch")?_b(We(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Lt(e,t+1)!==115)break;case 6444:switch(Lt(e,cr(e)-3-(~mp(e,"!important")&&10))){case 107:return We(e,":",":"+Ue)+e;case 101:return We(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ue+(Lt(e,14)===45?"inline-":"")+"box$3$1"+Ue+"$2$3$1"+Ft+"$2box$3")+e}break;case 5936:switch(Lt(e,t+11)){case 114:return Ue+e+Ft+We(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ue+e+Ft+We(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ue+e+Ft+We(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ue+e+Ft+e+e}return e}var PE=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Fh:t.return=_b(t.value,t.length);break;case $b:return Ri([va(t,{value:We(t.value,"@","@"+Ue)})],o);case Bh:if(t.length)return cE(t.props,function(i){switch(lE(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ri([va(t,{props:[We(i,/:(read-\w+)/,":"+wc+"$1")]})],o);case"::placeholder":return Ri([va(t,{props:[We(i,/:(plac\w+)/,":"+Ue+"input-$1")]}),va(t,{props:[We(i,/:(plac\w+)/,":"+wc+"$1")]}),va(t,{props:[We(i,/:(plac\w+)/,Ft+"input-$1")]})],o)}return""})}},EE=[PE],Lb=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(x){var C=x.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var o=t.stylisPlugins||EE,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(x){for(var C=x.getAttribute("data-emotion").split(" "),v=1;v=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var zE={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},BE=/[A-Z]|^ms/g,FE=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ub=function(t){return t.charCodeAt(1)===45},o0=function(t){return t!=null&&typeof t!="boolean"},Wd=Eb(function(e){return Ub(e)?e:e.replace(BE,"-$&").toLowerCase()}),i0=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(FE,function(r,o,i){return ur={name:o,styles:i,next:ur},o})}return zE[t]!==1&&!Ub(t)&&typeof n=="number"&&n!==0?n+"px":n};function ms(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return ur={name:n.name,styles:n.styles,next:ur},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)ur={name:r.name,styles:r.styles,next:ur},r=r.next;var o=n.styles+";";return o}return UE(e,t,n)}case"function":{if(e!==void 0){var i=ur,a=n(e);return ur=i,ms(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function UE(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?GE:KE},u0=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},YE=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Bb(n,r,o),HE(function(){return Fb(n,r,o)}),null},XE=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var s=u0(t,n,r),l=s||c0(o),c=!l("as");return function(){var u=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else{f.push(u[0][0]);for(var h=u.length,w=1;wt(oT(o)?n:o):t;return d.jsx(qE,{styles:r})}function Gh(e,t){return vp(e,t)}const Qb=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},iT=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Xb,StyledEngineProvider:rT,ThemeContext:js,css:wu,default:Gh,internal_processStyles:Qb,keyframes:Qi},Symbol.toStringTag,{value:"Module"}));function Rr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Jb(e){if(!Rr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Jb(e[n])}),t}function Qt(e,t,n={clone:!0}){const r=n.clone?S({},e):e;return Rr(e)&&Rr(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Rr(t[o])&&o in e&&Rr(e[o])?r[o]=Qt(e[o],t[o],n):n.clone?r[o]=Rr(t[o])?Jb(t[o]):t[o]:r[o]=t[o])}),r}const aT=Object.freeze(Object.defineProperty({__proto__:null,default:Qt,isPlainObject:Rr},Symbol.toStringTag,{value:"Module"})),sT=["values","unit","step"],lT=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>S({},n,{[r.key]:r.val}),{})};function Zb(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=se(e,sT),i=lT(t),a=Object.keys(i);function s(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function l(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function c(h,w){const y=a.indexOf(w);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(y!==-1&&typeof t[a[y]]=="number"?t[a[y]]:w)-r/100}${n})`}function u(h){return a.indexOf(h)+1`@media (min-width:${Kh[e]}px)`};function or(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||d0;return t.reduce((a,s,l)=>(a[i.up(i.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const i=r.breakpoints||d0;return Object.keys(t).reduce((a,s)=>{if(Object.keys(i.values||Kh).indexOf(s)!==-1){const l=i.up(s);a[l]=n(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return n(t)}function ew(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function tw(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function uT(e,...t){const n=ew(e),r=[n,...t].reduce((o,i)=>Qt(o,i),{});return tw(Object.keys(n),r)}function dT(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i{e[o]!=null&&(n[o]=!0)}),n}function qd({values:e,breakpoints:t,base:n}){const r=n||dT(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((a,s,l)=>(Array.isArray(e)?(a[s]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[i],i=s):a[s]=e,a),{})}function Z(e){if(typeof e!="string")throw new Error(Bo(7));return e.charAt(0).toUpperCase()+e.slice(1)}const fT=Object.freeze(Object.defineProperty({__proto__:null,default:Z},Symbol.toStringTag,{value:"Module"}));function Su(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Sc(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Su(e,n)||r,t&&(o=t(o,r,e)),o}function yt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,c=Su(l,r)||{};return or(a,s,f=>{let h=Sc(c,o,f);return f===h&&typeof f=="string"&&(h=Sc(c,o,`${t}${f==="default"?"":Z(f)}`,f)),n===!1?h:{[n]:h}})};return i.propTypes={},i.filterProps=[t],i}function pT(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const hT={m:"margin",p:"padding"},mT={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},f0={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},gT=pT(e=>{if(e.length>2)if(f0[e])e=f0[e];else return[e];const[t,n]=e.split(""),r=hT[t],o=mT[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Yh=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Xh=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Yh,...Xh];function Os(e,t,n,r){var o;const i=(o=Su(e,t,!1))!=null?o:n;return typeof i=="number"?a=>typeof a=="string"?a:i*a:Array.isArray(i)?a=>typeof a=="string"?a:i[a]:typeof i=="function"?i:()=>{}}function Qh(e){return Os(e,"spacing",8)}function Uo(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function vT(e,t){return n=>e.reduce((r,o)=>(r[o]=Uo(t,n),r),{})}function yT(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=gT(n),i=vT(o,r),a=e[n];return or(e,a,i)}function nw(e,t){const n=Qh(e.theme);return Object.keys(e).map(r=>yT(e,t,r,n)).reduce(Ba,{})}function ht(e){return nw(e,Yh)}ht.propTypes={};ht.filterProps=Yh;function mt(e){return nw(e,Xh)}mt.propTypes={};mt.filterProps=Xh;function xT(e=8){if(e.mui)return e;const t=Qh({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function Cu(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?Ba(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function On(e){return typeof e!="number"?e:`${e}px solid`}function Hn(e,t){return yt({prop:e,themeKey:"borders",transform:t})}const bT=Hn("border",On),wT=Hn("borderTop",On),ST=Hn("borderRight",On),CT=Hn("borderBottom",On),RT=Hn("borderLeft",On),kT=Hn("borderColor"),PT=Hn("borderTopColor"),ET=Hn("borderRightColor"),TT=Hn("borderBottomColor"),$T=Hn("borderLeftColor"),MT=Hn("outline",On),jT=Hn("outlineColor"),Ru=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Os(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Uo(t,r)});return or(e,e.borderRadius,n)}return null};Ru.propTypes={};Ru.filterProps=["borderRadius"];Cu(bT,wT,ST,CT,RT,kT,PT,ET,TT,$T,Ru,MT,jT);const ku=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Os(e.theme,"spacing",8),n=r=>({gap:Uo(t,r)});return or(e,e.gap,n)}return null};ku.propTypes={};ku.filterProps=["gap"];const Pu=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Os(e.theme,"spacing",8),n=r=>({columnGap:Uo(t,r)});return or(e,e.columnGap,n)}return null};Pu.propTypes={};Pu.filterProps=["columnGap"];const Eu=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Os(e.theme,"spacing",8),n=r=>({rowGap:Uo(t,r)});return or(e,e.rowGap,n)}return null};Eu.propTypes={};Eu.filterProps=["rowGap"];const OT=yt({prop:"gridColumn"}),IT=yt({prop:"gridRow"}),_T=yt({prop:"gridAutoFlow"}),LT=yt({prop:"gridAutoColumns"}),AT=yt({prop:"gridAutoRows"}),NT=yt({prop:"gridTemplateColumns"}),DT=yt({prop:"gridTemplateRows"}),zT=yt({prop:"gridTemplateAreas"}),BT=yt({prop:"gridArea"});Cu(ku,Pu,Eu,OT,IT,_T,LT,AT,NT,DT,zT,BT);function ki(e,t){return t==="grey"?t:e}const FT=yt({prop:"color",themeKey:"palette",transform:ki}),UT=yt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ki}),WT=yt({prop:"backgroundColor",themeKey:"palette",transform:ki});Cu(FT,UT,WT);function vn(e){return e<=1&&e!==0?`${e*100}%`:e}const HT=yt({prop:"width",transform:vn}),Jh=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Kh[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:vn(n)}};return or(e,e.maxWidth,t)}return null};Jh.filterProps=["maxWidth"];const VT=yt({prop:"minWidth",transform:vn}),qT=yt({prop:"height",transform:vn}),GT=yt({prop:"maxHeight",transform:vn}),KT=yt({prop:"minHeight",transform:vn});yt({prop:"size",cssProperty:"width",transform:vn});yt({prop:"size",cssProperty:"height",transform:vn});const YT=yt({prop:"boxSizing"});Cu(HT,Jh,VT,qT,GT,KT,YT);const Is={border:{themeKey:"borders",transform:On},borderTop:{themeKey:"borders",transform:On},borderRight:{themeKey:"borders",transform:On},borderBottom:{themeKey:"borders",transform:On},borderLeft:{themeKey:"borders",transform:On},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:On},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ru},color:{themeKey:"palette",transform:ki},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ki},backgroundColor:{themeKey:"palette",transform:ki},p:{style:mt},pt:{style:mt},pr:{style:mt},pb:{style:mt},pl:{style:mt},px:{style:mt},py:{style:mt},padding:{style:mt},paddingTop:{style:mt},paddingRight:{style:mt},paddingBottom:{style:mt},paddingLeft:{style:mt},paddingX:{style:mt},paddingY:{style:mt},paddingInline:{style:mt},paddingInlineStart:{style:mt},paddingInlineEnd:{style:mt},paddingBlock:{style:mt},paddingBlockStart:{style:mt},paddingBlockEnd:{style:mt},m:{style:ht},mt:{style:ht},mr:{style:ht},mb:{style:ht},ml:{style:ht},mx:{style:ht},my:{style:ht},margin:{style:ht},marginTop:{style:ht},marginRight:{style:ht},marginBottom:{style:ht},marginLeft:{style:ht},marginX:{style:ht},marginY:{style:ht},marginInline:{style:ht},marginInlineStart:{style:ht},marginInlineEnd:{style:ht},marginBlock:{style:ht},marginBlockStart:{style:ht},marginBlockEnd:{style:ht},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:ku},rowGap:{style:Eu},columnGap:{style:Pu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:vn},maxWidth:{style:Jh},minWidth:{transform:vn},height:{transform:vn},maxHeight:{transform:vn},minHeight:{transform:vn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function XT(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function QT(e,t){return typeof e=="function"?e(t):e}function rw(){function e(n,r,o,i){const a={[n]:r,theme:o},s=i[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:f}=s;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const h=Su(o,c)||{};return f?f(a):or(a,r,y=>{let x=Sc(h,u,y);return y===x&&typeof y=="string"&&(x=Sc(h,u,`${n}${y==="default"?"":Z(y)}`,y)),l===!1?x:{[l]:x}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=(r=i.unstable_sxConfig)!=null?r:Is;function s(l){let c=l;if(typeof l=="function")c=l(i);else if(typeof l!="object")return l;if(!c)return null;const u=ew(i.breakpoints),f=Object.keys(u);let h=u;return Object.keys(c).forEach(w=>{const y=QT(c[w],i);if(y!=null)if(typeof y=="object")if(a[w])h=Ba(h,e(w,y,i,a));else{const x=or({theme:i},y,C=>({[w]:C}));XT(x,y)?h[w]=t({sx:y,theme:i}):h=Ba(h,x)}else h=Ba(h,e(w,y,i,a))}),tw(f,h)}return Array.isArray(o)?o.map(s):s(o)}return t}const Ji=rw();Ji.filterProps=["sx"];function ow(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const JT=["breakpoints","palette","spacing","shape"];function Zi(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=se(e,JT),s=Zb(n),l=xT(o);let c=Qt({breakpoints:s,direction:"ltr",components:{},palette:S({mode:"light"},r),spacing:l,shape:S({},cT,i)},a);return c.applyStyles=ow,c=t.reduce((u,f)=>Qt(u,f),c),c.unstable_sxConfig=S({},Is,a==null?void 0:a.unstable_sxConfig),c.unstable_sx=function(f){return Ji({sx:f,theme:this})},c}const ZT=Object.freeze(Object.defineProperty({__proto__:null,default:Zi,private_createBreakpoints:Zb,unstable_applyStyles:ow},Symbol.toStringTag,{value:"Module"}));function e$(e){return Object.keys(e).length===0}function iw(e=null){const t=p.useContext(js);return!t||e$(t)?e:t}const t$=Zi();function Tu(e=t$){return iw(e)}function n$({styles:e,themeId:t,defaultTheme:n={}}){const r=Tu(n),o=typeof e=="function"?e(t&&r[t]||r):e;return d.jsx(Xb,{styles:o})}const r$=["sx"],o$=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Is;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function $u(e){const{sx:t}=e,n=se(e,r$),{systemProps:r,otherProps:o}=o$(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return Rr(s)?S({},r,s):r}:i=S({},r,t),S({},o,{sx:i})}const i$=Object.freeze(Object.defineProperty({__proto__:null,default:Ji,extendSxProp:$u,unstable_createStyleFunctionSx:rw,unstable_defaultSxConfig:Is},Symbol.toStringTag,{value:"Module"})),p0=e=>e,a$=()=>{let e=p0;return{configure(t){e=t},generate(t){return e(t)},reset(){e=p0}}},Zh=a$();function aw(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(Ji);return p.forwardRef(function(l,c){const u=Tu(n),f=$u(l),{className:h,component:w="div"}=f,y=se(f,s$);return d.jsx(i,S({as:w,ref:c,className:le(h,o?o(r):r),theme:t&&u[t]||u},y))})}const sw={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function be(e,t,n="Mui"){const r=sw[t];return r?`${n}-${r}`:`${Zh.generate(e)}-${t}`}function we(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=be(e,o,n)}),r}var lw={exports:{}},qe={};/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var em=Symbol.for("react.element"),tm=Symbol.for("react.portal"),Mu=Symbol.for("react.fragment"),ju=Symbol.for("react.strict_mode"),Ou=Symbol.for("react.profiler"),Iu=Symbol.for("react.provider"),_u=Symbol.for("react.context"),c$=Symbol.for("react.server_context"),Lu=Symbol.for("react.forward_ref"),Au=Symbol.for("react.suspense"),Nu=Symbol.for("react.suspense_list"),Du=Symbol.for("react.memo"),zu=Symbol.for("react.lazy"),u$=Symbol.for("react.offscreen"),cw;cw=Symbol.for("react.module.reference");function Vn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case em:switch(e=e.type,e){case Mu:case Ou:case ju:case Au:case Nu:return e;default:switch(e=e&&e.$$typeof,e){case c$:case _u:case Lu:case zu:case Du:case Iu:return e;default:return t}}case tm:return t}}}qe.ContextConsumer=_u;qe.ContextProvider=Iu;qe.Element=em;qe.ForwardRef=Lu;qe.Fragment=Mu;qe.Lazy=zu;qe.Memo=Du;qe.Portal=tm;qe.Profiler=Ou;qe.StrictMode=ju;qe.Suspense=Au;qe.SuspenseList=Nu;qe.isAsyncMode=function(){return!1};qe.isConcurrentMode=function(){return!1};qe.isContextConsumer=function(e){return Vn(e)===_u};qe.isContextProvider=function(e){return Vn(e)===Iu};qe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===em};qe.isForwardRef=function(e){return Vn(e)===Lu};qe.isFragment=function(e){return Vn(e)===Mu};qe.isLazy=function(e){return Vn(e)===zu};qe.isMemo=function(e){return Vn(e)===Du};qe.isPortal=function(e){return Vn(e)===tm};qe.isProfiler=function(e){return Vn(e)===Ou};qe.isStrictMode=function(e){return Vn(e)===ju};qe.isSuspense=function(e){return Vn(e)===Au};qe.isSuspenseList=function(e){return Vn(e)===Nu};qe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Mu||e===Ou||e===ju||e===Au||e===Nu||e===u$||typeof e=="object"&&e!==null&&(e.$$typeof===zu||e.$$typeof===Du||e.$$typeof===Iu||e.$$typeof===_u||e.$$typeof===Lu||e.$$typeof===cw||e.getModuleId!==void 0)};qe.typeOf=Vn;lw.exports=qe;var h0=lw.exports;const d$=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function uw(e){const t=`${e}`.match(d$);return t&&t[1]||""}function dw(e,t=""){return e.displayName||e.name||uw(e)||t}function m0(e,t,n){const r=dw(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function f$(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return dw(e,"Component");if(typeof e=="object")switch(e.$$typeof){case h0.ForwardRef:return m0(e,e.render,"ForwardRef");case h0.Memo:return m0(e,e.type,"memo");default:return}}}const p$=Object.freeze(Object.defineProperty({__proto__:null,default:f$,getFunctionName:uw},Symbol.toStringTag,{value:"Module"})),h$=["ownerState"],m$=["variants"],g$=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function v$(e){return Object.keys(e).length===0}function y$(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Gd(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const x$=Zi(),b$=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function dl({defaultTheme:e,theme:t,themeId:n}){return v$(t)?e:t[n]||t}function w$(e){return e?(t,n)=>n[e]:null}function Bl(e,t){let{ownerState:n}=t,r=se(t,h$);const o=typeof e=="function"?e(S({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Bl(i,S({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let s=se(o,m$);return i.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props(S({ownerState:n},r,n)):Object.keys(l.props).forEach(u=>{(n==null?void 0:n[u])!==l.props[u]&&r[u]!==l.props[u]&&(c=!1)}),c&&(Array.isArray(s)||(s=[s]),s.push(typeof l.style=="function"?l.style(S({ownerState:n},r,n)):l.style))}),s}return o}function S$(e={}){const{themeId:t,defaultTheme:n=x$,rootShouldForwardProp:r=Gd,slotShouldForwardProp:o=Gd}=e,i=a=>Ji(S({},a,{theme:dl(S({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,s={})=>{Qb(a,k=>k.filter(T=>!(T!=null&&T.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:f,overridesResolver:h=w$(b$(c))}=s,w=se(s,g$),y=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,x=f||!1;let C,v=Gd;c==="Root"||c==="root"?v=r:c?v=o:y$(a)&&(v=void 0);const m=Gh(a,S({shouldForwardProp:v,label:C},w)),b=k=>typeof k=="function"&&k.__emotion_real!==k||Rr(k)?T=>Bl(k,S({},T,{theme:dl({theme:T.theme,defaultTheme:n,themeId:t})})):k,R=(k,...T)=>{let P=b(k);const j=T?T.map(b):[];l&&h&&j.push(F=>{const W=dl(S({},F,{defaultTheme:n,themeId:t}));if(!W.components||!W.components[l]||!W.components[l].styleOverrides)return null;const U=W.components[l].styleOverrides,G={};return Object.entries(U).forEach(([ee,J])=>{G[ee]=Bl(J,S({},F,{theme:W}))}),h(F,G)}),l&&!y&&j.push(F=>{var W;const U=dl(S({},F,{defaultTheme:n,themeId:t})),G=U==null||(W=U.components)==null||(W=W[l])==null?void 0:W.variants;return Bl({variants:G},S({},F,{theme:U}))}),x||j.push(i);const N=j.length-T.length;if(Array.isArray(k)&&N>0){const F=new Array(N).fill("");P=[...k,...F],P.raw=[...k.raw,...F]}const O=m(P,...j);return a.muiName&&(O.muiName=a.muiName),O};return m.withConfig&&(R.withConfig=m.withConfig),R}}const fw=S$();function nm(e,t){const n=S({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=S({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=S({},i),Object.keys(o).forEach(a=>{n[r][a]=nm(o[a],i[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function C$(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:nm(t.components[n].defaultProps,r)}function rm({props:e,name:t,defaultTheme:n,themeId:r}){let o=Tu(n);return r&&(o=o[r]||o),C$({theme:o,name:t,props:e})}const Sn=typeof window<"u"?p.useLayoutEffect:p.useEffect;function R$(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const k$=Object.freeze(Object.defineProperty({__proto__:null,default:R$},Symbol.toStringTag,{value:"Module"}));function xp(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function ea(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function P$(e,t){return()=>null}function Fa(e,t){var n,r;return p.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function St(e){return e&&e.ownerDocument||document}function Bn(e){return St(e).defaultView||window}function E$(e,t){return()=>null}function Cc(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let g0=0;function T$(e){const[t,n]=p.useState(e),r=e||t;return p.useEffect(()=>{t==null&&(g0+=1,n(`mui-${g0}`))},[t]),r}const v0=Vl.useId;function _s(e){if(v0!==void 0){const t=v0();return e??t}return T$(e)}function $$(e,t,n,r,o){return null}function gs({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=p.useRef(e!==void 0),[i,a]=p.useState(t),s=o?e:i,l=p.useCallback(c=>{o||a(c)},[]);return[s,l]}function Yt(e){const t=p.useRef(e);return Sn(()=>{t.current=e}),p.useRef((...n)=>(0,t.current)(...n)).current}function lt(...e){return p.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Cc(n,t)})},e)}const y0={};function M$(e,t){const n=p.useRef(y0);return n.current===y0&&(n.current=e(t)),n}const j$=[];function O$(e){p.useEffect(e,j$)}class Ls{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ls}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function To(){const e=M$(Ls.create).current;return O$(e.disposeEffect),e}let Bu=!0,bp=!1;const I$=new Ls,_$={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function L$(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&_$[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function A$(e){e.metaKey||e.altKey||e.ctrlKey||(Bu=!0)}function Kd(){Bu=!1}function N$(){this.visibilityState==="hidden"&&bp&&(Bu=!0)}function D$(e){e.addEventListener("keydown",A$,!0),e.addEventListener("mousedown",Kd,!0),e.addEventListener("pointerdown",Kd,!0),e.addEventListener("touchstart",Kd,!0),e.addEventListener("visibilitychange",N$,!0)}function z$(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Bu||L$(t)}function om(){const e=p.useCallback(o=>{o!=null&&D$(o.ownerDocument)},[]),t=p.useRef(!1);function n(){return t.current?(bp=!0,I$.start(100,()=>{bp=!1}),t.current=!1,!0):!1}function r(o){return z$(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function pw(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let ti;function hw(){if(ti)return ti;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),ti="reverse",e.scrollLeft>0?ti="default":(e.scrollLeft=1,e.scrollLeft===0&&(ti="negative")),document.body.removeChild(e),ti}function B$(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(hw()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const mw=e=>{const t=p.useRef({});return p.useEffect(()=>{t.current=e}),t.current};function Se(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,a)=>{if(a){const s=t(a);s!==""&&i.push(s),n&&n[a]&&i.push(n[a])}return i},[]).join(" ")}),r}const gw=p.createContext(null);function vw(){return p.useContext(gw)}const F$=typeof Symbol=="function"&&Symbol.for,U$=F$?Symbol.for("mui.nested"):"__THEME_NESTED__";function W$(e,t){return typeof t=="function"?t(e):S({},e,t)}function H$(e){const{children:t,theme:n}=e,r=vw(),o=p.useMemo(()=>{const i=r===null?n:W$(r,n);return i!=null&&(i[U$]=r!==null),i},[n,r]);return d.jsx(gw.Provider,{value:o,children:t})}const V$=["value"],yw=p.createContext();function q$(e){let{value:t}=e,n=se(e,V$);return d.jsx(yw.Provider,S({value:t??!0},n))}const As=()=>{const e=p.useContext(yw);return e??!1},x0={};function b0(e,t,n,r=!1){return p.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),a=e?S({},t,{[e]:i}):i;return r?()=>a:a}return e?S({},t,{[e]:n}):S({},t,n)},[e,t,n,r])}function G$(e){const{children:t,theme:n,themeId:r}=e,o=iw(x0),i=vw()||x0,a=b0(r,o,n),s=b0(r,i,n,!0),l=a.direction==="rtl";return d.jsx(H$,{theme:s,children:d.jsx(js.Provider,{value:a,children:d.jsx(q$,{value:l,children:t})})})}const K$=["className","component","disableGutters","fixed","maxWidth","classes"],Y$=Zi(),X$=fw("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Z(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),Q$=e=>rm({props:e,name:"MuiContainer",defaultTheme:Y$}),J$=(e,t)=>{const n=l=>be(t,l),{classes:r,fixed:o,disableGutters:i,maxWidth:a}=e,s={root:["root",a&&`maxWidth${Z(String(a))}`,o&&"fixed",i&&"disableGutters"]};return Se(s,n,r)};function Z$(e={}){const{createStyledComponent:t=X$,useThemeProps:n=Q$,componentName:r="MuiContainer"}=e,o=t(({theme:a,ownerState:s})=>S({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!s.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}),({theme:a,ownerState:s})=>s.fixed&&Object.keys(a.breakpoints.values).reduce((l,c)=>{const u=c,f=a.breakpoints.values[u];return f!==0&&(l[a.breakpoints.up(u)]={maxWidth:`${f}${a.breakpoints.unit}`}),l},{}),({theme:a,ownerState:s})=>S({},s.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},s.maxWidth&&s.maxWidth!=="xs"&&{[a.breakpoints.up(s.maxWidth)]:{maxWidth:`${a.breakpoints.values[s.maxWidth]}${a.breakpoints.unit}`}}));return p.forwardRef(function(s,l){const c=n(s),{className:u,component:f="div",disableGutters:h=!1,fixed:w=!1,maxWidth:y="lg"}=c,x=se(c,K$),C=S({},c,{component:f,disableGutters:h,fixed:w,maxWidth:y}),v=J$(C,r);return d.jsx(o,S({as:f,ownerState:C,className:le(v.root,u),ref:l},x))})}const e4=["component","direction","spacing","divider","children","className","useFlexGap"],t4=Zi(),n4=fw("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function r4(e){return rm({props:e,name:"MuiStack",defaultTheme:t4})}function o4(e,t){const n=p.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],a4=({ownerState:e,theme:t})=>{let n=S({display:"flex",flexDirection:"column"},or({theme:t},qd({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=Qh(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),i=qd({values:e.direction,base:o}),a=qd({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,c,u)=>{if(!i[l]){const h=c>0?i[u[c-1]]:"column";i[l]=h}}),n=Qt(n,or({theme:t},a,(l,c)=>e.useFlexGap?{gap:Uo(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${i4(c?i[c]:e.direction)}`]:Uo(r,l)}}))}return n=uT(t.breakpoints,n),n};function s4(e={}){const{createStyledComponent:t=n4,useThemeProps:n=r4,componentName:r="MuiStack"}=e,o=()=>Se({root:["root"]},l=>be(r,l),{}),i=t(a4);return p.forwardRef(function(l,c){const u=n(l),f=$u(u),{component:h="div",direction:w="column",spacing:y=0,divider:x,children:C,className:v,useFlexGap:m=!1}=f,b=se(f,e4),R={direction:w,spacing:y,useFlexGap:m},k=o();return d.jsx(i,S({as:h,ownerState:R,ref:c,className:le(k.root,v)},b,{children:x?o4(C,x):C}))})}function l4(e,t){return S({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var xt={},xw={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(xw);var Te=xw.exports;const c4=Lr(QP),u4=Lr(k$);var bw=Te;Object.defineProperty(xt,"__esModule",{value:!0});var Fe=xt.alpha=Rw;xt.blend=S4;xt.colorChannel=void 0;var Rc=xt.darken=am;xt.decomposeColor=Fn;var d4=xt.emphasize=kw,f4=xt.getContrastRatio=v4;xt.getLuminance=Pc;xt.hexToRgb=ww;xt.hslToRgb=Cw;var kc=xt.lighten=sm;xt.private_safeAlpha=y4;xt.private_safeColorChannel=void 0;xt.private_safeDarken=x4;xt.private_safeEmphasize=w4;xt.private_safeLighten=b4;xt.recomposeColor=ta;xt.rgbToHex=g4;var w0=bw(c4),p4=bw(u4);function im(e,t=0,n=1){return(0,p4.default)(e,t,n)}function ww(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function h4(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Fn(e){if(e.type)return e;if(e.charAt(0)==="#")return Fn(ww(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,w0.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,w0.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const Sw=e=>{const t=Fn(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};xt.colorChannel=Sw;const m4=(e,t)=>{try{return Sw(e)}catch{return e}};xt.private_safeColorChannel=m4;function ta(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function g4(e){if(e.indexOf("#")===0)return e;const{values:t}=Fn(e);return`#${t.map((n,r)=>h4(r===3?Math.round(255*n):n)).join("")}`}function Cw(e){e=Fn(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(c,u=(c+n/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),ta({type:s,values:l})}function Pc(e){e=Fn(e);let t=e.type==="hsl"||e.type==="hsla"?Fn(Cw(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function v4(e,t){const n=Pc(e),r=Pc(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Rw(e,t){return e=Fn(e),t=im(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ta(e)}function y4(e,t,n){try{return Rw(e,t)}catch{return e}}function am(e,t){if(e=Fn(e),t=im(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return ta(e)}function x4(e,t,n){try{return am(e,t)}catch{return e}}function sm(e,t){if(e=Fn(e),t=im(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return ta(e)}function b4(e,t,n){try{return sm(e,t)}catch{return e}}function kw(e,t=.15){return Pc(e)>.5?am(e,t):sm(e,t)}function w4(e,t,n){try{return kw(e,t)}catch{return e}}function S4(e,t,n,r=1){const o=(l,c)=>Math.round((l**(1/r)*(1-n)+c**(1/r)*n)**r),i=Fn(e),a=Fn(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return ta({type:"rgb",values:s})}const C4=["mode","contrastThreshold","tonalOffset"],S0={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:fs.white,default:fs.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Yd={text:{primary:fs.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:fs.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 C0(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=kc(e.main,o):t==="dark"&&(e.dark=Rc(e.main,i)))}function R4(e="light"){return e==="dark"?{main:Jo[200],light:Jo[50],dark:Jo[400]}:{main:Jo[700],light:Jo[400],dark:Jo[800]}}function k4(e="light"){return e==="dark"?{main:Qo[200],light:Qo[50],dark:Qo[400]}:{main:Qo[500],light:Qo[300],dark:Qo[700]}}function P4(e="light"){return e==="dark"?{main:Xo[500],light:Xo[300],dark:Xo[700]}:{main:Xo[700],light:Xo[400],dark:Xo[800]}}function E4(e="light"){return e==="dark"?{main:Zo[400],light:Zo[300],dark:Zo[700]}:{main:Zo[700],light:Zo[500],dark:Zo[900]}}function T4(e="light"){return e==="dark"?{main:ei[400],light:ei[300],dark:ei[700]}:{main:ei[800],light:ei[500],dark:ei[900]}}function $4(e="light"){return e==="dark"?{main:ga[400],light:ga[300],dark:ga[700]}:{main:"#ed6c02",light:ga[500],dark:ga[900]}}function M4(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=se(e,C4),i=e.primary||R4(t),a=e.secondary||k4(t),s=e.error||P4(t),l=e.info||E4(t),c=e.success||T4(t),u=e.warning||$4(t);function f(x){return f4(x,Yd.text.primary)>=n?Yd.text.primary:S0.text.primary}const h=({color:x,name:C,mainShade:v=500,lightShade:m=300,darkShade:b=700})=>{if(x=S({},x),!x.main&&x[v]&&(x.main=x[v]),!x.hasOwnProperty("main"))throw new Error(Bo(11,C?` (${C})`:"",v));if(typeof x.main!="string")throw new Error(Bo(12,C?` (${C})`:"",JSON.stringify(x.main)));return C0(x,"light",m,r),C0(x,"dark",b,r),x.contrastText||(x.contrastText=f(x.main)),x},w={dark:Yd,light:S0};return Qt(S({common:S({},fs),mode:t,primary:h({color:i,name:"primary"}),secondary:h({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:s,name:"error"}),warning:h({color:u,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:c,name:"success"}),grey:XP,contrastThreshold:n,getContrastText:f,augmentColor:h,tonalOffset:r},w[t]),o)}const j4=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function O4(e){return Math.round(e*1e5)/1e5}const R0={textTransform:"uppercase"},k0='"Roboto", "Helvetica", "Arial", sans-serif';function I4(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=k0,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:f}=n,h=se(n,j4),w=o/14,y=f||(v=>`${v/c*w}rem`),x=(v,m,b,R,k)=>S({fontFamily:r,fontWeight:v,fontSize:y(m),lineHeight:b},r===k0?{letterSpacing:`${O4(R/m)}em`}:{},k,u),C={h1:x(i,96,1.167,-1.5),h2:x(i,60,1.2,-.5),h3:x(a,48,1.167,0),h4:x(a,34,1.235,.25),h5:x(a,24,1.334,0),h6:x(s,20,1.6,.15),subtitle1:x(a,16,1.75,.15),subtitle2:x(s,14,1.57,.1),body1:x(a,16,1.5,.15),body2:x(a,14,1.43,.15),button:x(s,14,1.75,.4,R0),caption:x(a,12,1.66,.4),overline:x(a,12,2.66,1,R0),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Qt(S({htmlFontSize:c,pxToRem:y,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},C),h,{clone:!1})}const _4=.2,L4=.14,A4=.12;function ot(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${_4})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${L4})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${A4})`].join(",")}const N4=["none",ot(0,2,1,-1,0,1,1,0,0,1,3,0),ot(0,3,1,-2,0,2,2,0,0,1,5,0),ot(0,3,3,-2,0,3,4,0,0,1,8,0),ot(0,2,4,-1,0,4,5,0,0,1,10,0),ot(0,3,5,-1,0,5,8,0,0,1,14,0),ot(0,3,5,-1,0,6,10,0,0,1,18,0),ot(0,4,5,-2,0,7,10,1,0,2,16,1),ot(0,5,5,-3,0,8,10,1,0,3,14,2),ot(0,5,6,-3,0,9,12,1,0,3,16,2),ot(0,6,6,-3,0,10,14,1,0,4,18,3),ot(0,6,7,-4,0,11,15,1,0,4,20,3),ot(0,7,8,-4,0,12,17,2,0,5,22,4),ot(0,7,8,-4,0,13,19,2,0,5,24,4),ot(0,7,9,-4,0,14,21,2,0,5,26,4),ot(0,8,9,-5,0,15,22,2,0,6,28,5),ot(0,8,10,-5,0,16,24,2,0,6,30,5),ot(0,8,11,-5,0,17,26,2,0,6,32,5),ot(0,9,11,-5,0,18,28,2,0,7,34,6),ot(0,9,12,-6,0,19,29,2,0,7,36,6),ot(0,10,13,-6,0,20,31,3,0,8,38,7),ot(0,10,13,-6,0,21,33,3,0,8,40,7),ot(0,10,14,-6,0,22,35,3,0,8,42,7),ot(0,11,14,-7,0,23,36,3,0,9,44,8),ot(0,11,15,-7,0,24,38,3,0,9,46,8)],D4=["duration","easing","delay"],z4={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)"},B4={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function P0(e){return`${Math.round(e)}ms`}function F4(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function U4(e){const t=S({},z4,e.easing),n=S({},B4,e.duration);return S({getAutoHeightDuration:F4,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0}=i;return se(i,D4),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof a=="string"?a:P0(a)} ${s} ${typeof l=="string"?l:P0(l)}`).join(",")}},e,{easing:t,duration:n})}const W4={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},H4=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Ns(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=se(e,H4);if(e.vars)throw new Error(Bo(18));const s=M4(r),l=Zi(e);let c=Qt(l,{mixins:l4(l.breakpoints,n),palette:s,shadows:N4.slice(),typography:I4(s,i),transitions:U4(o),zIndex:S({},W4)});return c=Qt(c,a),c=t.reduce((u,f)=>Qt(u,f),c),c.unstable_sxConfig=S({},Is,a==null?void 0:a.unstable_sxConfig),c.unstable_sx=function(f){return Ji({sx:f,theme:this})},c}const Fu=Ns();function mo(){const e=Tu(Fu);return e[Fo]||e}function Re({props:e,name:t}){return rm({props:e,name:t,defaultTheme:Fu,themeId:Fo})}var Ds={},Xd={exports:{}},E0;function V4(){return E0||(E0=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(r.indexOf(i)>=0)continue;o[i]=n[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Xd)),Xd.exports}const Pw=Lr(iT),q4=Lr(aT),G4=Lr(fT),K4=Lr(p$),Y4=Lr(ZT),X4=Lr(i$);var na=Te;Object.defineProperty(Ds,"__esModule",{value:!0});var Q4=Ds.default=u5;Ds.shouldForwardProp=Fl;Ds.systemDefaultTheme=void 0;var Tn=na(qb()),wp=na(V4()),T0=o5(Pw),J4=q4;na(G4);na(K4);var Z4=na(Y4),e5=na(X4);const t5=["ownerState"],n5=["variants"],r5=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Ew(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Ew=function(r){return r?n:t})(e)}function o5(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Ew(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function i5(e){return Object.keys(e).length===0}function a5(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Fl(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const s5=Ds.systemDefaultTheme=(0,Z4.default)(),l5=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function fl({defaultTheme:e,theme:t,themeId:n}){return i5(t)?e:t[n]||t}function c5(e){return e?(t,n)=>n[e]:null}function Ul(e,t){let{ownerState:n}=t,r=(0,wp.default)(t,t5);const o=typeof e=="function"?e((0,Tn.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Ul(i,(0,Tn.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let s=(0,wp.default)(o,n5);return i.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props((0,Tn.default)({ownerState:n},r,n)):Object.keys(l.props).forEach(u=>{(n==null?void 0:n[u])!==l.props[u]&&r[u]!==l.props[u]&&(c=!1)}),c&&(Array.isArray(s)||(s=[s]),s.push(typeof l.style=="function"?l.style((0,Tn.default)({ownerState:n},r,n)):l.style))}),s}return o}function u5(e={}){const{themeId:t,defaultTheme:n=s5,rootShouldForwardProp:r=Fl,slotShouldForwardProp:o=Fl}=e,i=a=>(0,e5.default)((0,Tn.default)({},a,{theme:fl((0,Tn.default)({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,s={})=>{(0,T0.internal_processStyles)(a,k=>k.filter(T=>!(T!=null&&T.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:f,overridesResolver:h=c5(l5(c))}=s,w=(0,wp.default)(s,r5),y=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,x=f||!1;let C,v=Fl;c==="Root"||c==="root"?v=r:c?v=o:a5(a)&&(v=void 0);const m=(0,T0.default)(a,(0,Tn.default)({shouldForwardProp:v,label:C},w)),b=k=>typeof k=="function"&&k.__emotion_real!==k||(0,J4.isPlainObject)(k)?T=>Ul(k,(0,Tn.default)({},T,{theme:fl({theme:T.theme,defaultTheme:n,themeId:t})})):k,R=(k,...T)=>{let P=b(k);const j=T?T.map(b):[];l&&h&&j.push(F=>{const W=fl((0,Tn.default)({},F,{defaultTheme:n,themeId:t}));if(!W.components||!W.components[l]||!W.components[l].styleOverrides)return null;const U=W.components[l].styleOverrides,G={};return Object.entries(U).forEach(([ee,J])=>{G[ee]=Ul(J,(0,Tn.default)({},F,{theme:W}))}),h(F,G)}),l&&!y&&j.push(F=>{var W;const U=fl((0,Tn.default)({},F,{defaultTheme:n,themeId:t})),G=U==null||(W=U.components)==null||(W=W[l])==null?void 0:W.variants;return Ul({variants:G},(0,Tn.default)({},F,{theme:U}))}),x||j.push(i);const N=j.length-T.length;if(Array.isArray(k)&&N>0){const F=new Array(N).fill("");P=[...k,...F],P.raw=[...k.raw,...F]}const O=m(P,...j);return a.muiName&&(O.muiName=a.muiName),O};return m.withConfig&&(R.withConfig=m.withConfig),R}}function Tw(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ht=e=>Tw(e)&&e!=="classes",ie=Q4({themeId:Fo,defaultTheme:Fu,rootShouldForwardProp:Ht}),d5=["theme"];function lm(e){let{theme:t}=e,n=se(e,d5);const r=t[Fo];return d.jsx(G$,S({},n,{themeId:r?Fo:void 0,theme:r||t}))}const $0=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function f5(e){return be("MuiSvgIcon",e)}we("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const p5=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],h5=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Z(t)}`,`fontSize${Z(n)}`]};return Se(o,f5,r)},m5=ie("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Z(n.color)}`],t[`fontSize${Z(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,c,u,f,h,w,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(a=i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:(f=(h=(e.vars||e).palette)==null||(h=h[t.color])==null?void 0:h.main)!=null?f:{action:(w=(e.vars||e).palette)==null||(w=w.action)==null?void 0:w.active,disabled:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.disabled,inherit:void 0}[t.color]}}),Sp=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:f,viewBox:h="0 0 24 24"}=r,w=se(r,p5),y=p.isValidElement(o)&&o.type==="svg",x=S({},r,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:h,hasSvgAsChild:y}),C={};u||(C.viewBox=h);const v=h5(x);return d.jsxs(m5,S({as:s,className:le(v.root,i),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},C,w,y&&o.props,{ownerState:x,children:[y?o.props.children:o,f?d.jsx("title",{children:f}):null]}))});Sp.muiName="SvgIcon";function Vt(e,t){function n(r,o){return d.jsx(Sp,S({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=Sp.muiName,p.memo(p.forwardRef(n))}const g5={configure:e=>{Zh.configure(e)}},v5=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Z,createChainedFunction:xp,createSvgIcon:Vt,debounce:ea,deprecatedPropType:P$,isMuiElement:Fa,ownerDocument:St,ownerWindow:Bn,requirePropFactory:E$,setRef:Cc,unstable_ClassNameGenerator:g5,unstable_useEnhancedEffect:Sn,unstable_useId:_s,unsupportedProp:$$,useControlled:gs,useEventCallback:Yt,useForkRef:lt,useIsFocusVisible:om},Symbol.toStringTag,{value:"Module"}));var Ke={};/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var cm=Symbol.for("react.element"),um=Symbol.for("react.portal"),Uu=Symbol.for("react.fragment"),Wu=Symbol.for("react.strict_mode"),Hu=Symbol.for("react.profiler"),Vu=Symbol.for("react.provider"),qu=Symbol.for("react.context"),y5=Symbol.for("react.server_context"),Gu=Symbol.for("react.forward_ref"),Ku=Symbol.for("react.suspense"),Yu=Symbol.for("react.suspense_list"),Xu=Symbol.for("react.memo"),Qu=Symbol.for("react.lazy"),x5=Symbol.for("react.offscreen"),$w;$w=Symbol.for("react.module.reference");function qn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case cm:switch(e=e.type,e){case Uu:case Hu:case Wu:case Ku:case Yu:return e;default:switch(e=e&&e.$$typeof,e){case y5:case qu:case Gu:case Qu:case Xu:case Vu:return e;default:return t}}case um:return t}}}Ke.ContextConsumer=qu;Ke.ContextProvider=Vu;Ke.Element=cm;Ke.ForwardRef=Gu;Ke.Fragment=Uu;Ke.Lazy=Qu;Ke.Memo=Xu;Ke.Portal=um;Ke.Profiler=Hu;Ke.StrictMode=Wu;Ke.Suspense=Ku;Ke.SuspenseList=Yu;Ke.isAsyncMode=function(){return!1};Ke.isConcurrentMode=function(){return!1};Ke.isContextConsumer=function(e){return qn(e)===qu};Ke.isContextProvider=function(e){return qn(e)===Vu};Ke.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===cm};Ke.isForwardRef=function(e){return qn(e)===Gu};Ke.isFragment=function(e){return qn(e)===Uu};Ke.isLazy=function(e){return qn(e)===Qu};Ke.isMemo=function(e){return qn(e)===Xu};Ke.isPortal=function(e){return qn(e)===um};Ke.isProfiler=function(e){return qn(e)===Hu};Ke.isStrictMode=function(e){return qn(e)===Wu};Ke.isSuspense=function(e){return qn(e)===Ku};Ke.isSuspenseList=function(e){return qn(e)===Yu};Ke.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Uu||e===Hu||e===Wu||e===Ku||e===Yu||e===x5||typeof e=="object"&&e!==null&&(e.$$typeof===Qu||e.$$typeof===Xu||e.$$typeof===Vu||e.$$typeof===qu||e.$$typeof===Gu||e.$$typeof===$w||e.getModuleId!==void 0)};Ke.typeOf=qn;function Ju(e){return Re}function Cp(e,t){return Cp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Cp(e,t)}function Mw(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Cp(e,t)}const M0={disabled:!1},Ec=nn.createContext(null);var b5=function(t){return t.scrollTop},$a="unmounted",Co="exited",Ro="entering",ri="entered",Rp="exiting",ar=function(e){Mw(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,s=a&&!a.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?s?(l=Co,i.appearStatus=Ro):l=ri:r.unmountOnExit||r.mountOnEnter?l=$a:l=Co,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===$a?{status:Co}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==Ro&&a!==ri&&(i=Ro):(a===Ro||a===ri)&&(i=Rp)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,s;return i=a=s=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,s=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:s}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Ro){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:cl.findDOMNode(this);a&&b5(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Co&&this.setState({status:$a})},n.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[cl.findDOMNode(this),s],c=l[0],u=l[1],f=this.getTimeouts(),h=s?f.appear:f.enter;if(!o&&!a||M0.disabled){this.safeSetState({status:ri},function(){i.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Ro},function(){i.props.onEntering(c,u),i.onTransitionEnd(h,function(){i.safeSetState({status:ri},function(){i.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:cl.findDOMNode(this);if(!i||M0.disabled){this.safeSetState({status:Co},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Rp},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Co},function(){o.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,o(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:cl.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===$a)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=se(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return nn.createElement(Ec.Provider,{value:null},typeof a=="function"?a(o,s):nn.cloneElement(nn.Children.only(a),s))},t}(nn.Component);ar.contextType=Ec;ar.propTypes={};function ni(){}ar.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ni,onEntering:ni,onEntered:ni,onExit:ni,onExiting:ni,onExited:ni};ar.UNMOUNTED=$a;ar.EXITED=Co;ar.ENTERING=Ro;ar.ENTERED=ri;ar.EXITING=Rp;function w5(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dm(e,t){var n=function(i){return t&&p.isValidElement(i)?t(i):i},r=Object.create(null);return e&&p.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function S5(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,s={};for(var l in t){if(r[l])for(a=0;ae.scrollTop;function Ai(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:a.transitionDelay}}function E5(e){return be("MuiPaper",e)}we("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const T5=["className","component","elevation","square","variant"],$5=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Se(i,E5,o)},M5=ie("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return S({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&S({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Fe("#fff",$0(t.elevation))}, ${Fe("#fff",$0(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),En=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:a=1,square:s=!1,variant:l="elevation"}=r,c=se(r,T5),u=S({},r,{component:i,elevation:a,square:s,variant:l}),f=$5(u);return d.jsx(M5,S({as:i,ownerState:u,className:le(f.root,o),ref:n},c))});function Ni(e){return typeof e=="string"}function vi(e,t,n){return e===void 0||Ni(e)?t:S({},t,{ownerState:S({},t.ownerState,n)})}const j5={disableDefaultClasses:!1},O5=p.createContext(j5);function I5(e){const{disableDefaultClasses:t}=p.useContext(O5);return n=>t?"":e(n)}function Tc(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function jw(e,t,n){return typeof e=="function"?e(t,n):e}function j0(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Ow(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const w=le(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),y=S({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),x=S({},n,o,r);return w.length>0&&(x.className=w),Object.keys(y).length>0&&(x.style=y),{props:x,internalRef:void 0}}const a=Tc(S({},o,r)),s=j0(r),l=j0(o),c=t(a),u=le(c==null?void 0:c.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),f=S({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),h=S({},c,n,l,s);return u.length>0&&(h.className=u),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:c.ref}}const _5=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function fn(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=se(e,_5),s=i?{}:jw(r,o),{props:l,internalRef:c}=Ow(S({},a,{externalSlotProps:s})),u=lt(c,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return vi(n,S({},l,{ref:u}),o)}const L5=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],A5=["component","slots","slotProps"],N5=["component"];function kp(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,getSlotOwnerState:a,internalForwardedProps:s}=t,l=se(t,L5),{component:c,slots:u={[e]:void 0},slotProps:f={[e]:void 0}}=i,h=se(i,A5),w=u[e]||r,y=jw(f[e],o),x=Ow(S({className:n},l,{externalForwardedProps:e==="root"?h:void 0,externalSlotProps:y})),{props:{component:C},internalRef:v}=x,m=se(x.props,N5),b=lt(v,y==null?void 0:y.ref,t.ref),R=a?a(m):{},k=S({},o,R),T=e==="root"?C||c:C,P=vi(w,S({},e==="root"&&!c&&!u[e]&&s,e!=="root"&&!u[e]&&s,m,T&&{as:T},{ref:b}),k);return Object.keys(R).forEach(j=>{delete P[j]}),[w,P]}function D5(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,f]=p.useState(!1),h=le(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),w={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},y=le(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&f(!0),p.useEffect(()=>{if(!s&&l!=null){const x=setTimeout(l,c);return()=>{clearTimeout(x)}}},[l,s,c]),d.jsx("span",{className:h,style:w,children:d.jsx("span",{className:y})})}const $n=we("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),z5=["center","classes","className"];let Zu=e=>e,O0,I0,_0,L0;const Pp=550,B5=80,F5=Qi(O0||(O0=Zu` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),U5=Qi(I0||(I0=Zu` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),W5=Qi(_0||(_0=Zu` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),H5=ie("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),V5=ie(D5,{name:"MuiTouchRipple",slot:"Ripple"})(L0||(L0=Zu` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),$n.rippleVisible,F5,Pp,({theme:e})=>e.transitions.easing.easeInOut,$n.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,$n.child,$n.childLeaving,U5,Pp,({theme:e})=>e.transitions.easing.easeInOut,$n.childPulsate,W5,({theme:e})=>e.transitions.easing.easeInOut),q5=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,s=se(r,z5),[l,c]=p.useState([]),u=p.useRef(0),f=p.useRef(null);p.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const h=p.useRef(!1),w=To(),y=p.useRef(null),x=p.useRef(null),C=p.useCallback(R=>{const{pulsate:k,rippleX:T,rippleY:P,rippleSize:j,cb:N}=R;c(O=>[...O,d.jsx(V5,{classes:{ripple:le(i.ripple,$n.ripple),rippleVisible:le(i.rippleVisible,$n.rippleVisible),ripplePulsate:le(i.ripplePulsate,$n.ripplePulsate),child:le(i.child,$n.child),childLeaving:le(i.childLeaving,$n.childLeaving),childPulsate:le(i.childPulsate,$n.childPulsate)},timeout:Pp,pulsate:k,rippleX:T,rippleY:P,rippleSize:j},u.current)]),u.current+=1,f.current=N},[i]),v=p.useCallback((R={},k={},T=()=>{})=>{const{pulsate:P=!1,center:j=o||k.pulsate,fakeElement:N=!1}=k;if((R==null?void 0:R.type)==="mousedown"&&h.current){h.current=!1;return}(R==null?void 0:R.type)==="touchstart"&&(h.current=!0);const O=N?null:x.current,F=O?O.getBoundingClientRect():{width:0,height:0,left:0,top:0};let W,U,G;if(j||R===void 0||R.clientX===0&&R.clientY===0||!R.clientX&&!R.touches)W=Math.round(F.width/2),U=Math.round(F.height/2);else{const{clientX:ee,clientY:J}=R.touches&&R.touches.length>0?R.touches[0]:R;W=Math.round(ee-F.left),U=Math.round(J-F.top)}if(j)G=Math.sqrt((2*F.width**2+F.height**2)/3),G%2===0&&(G+=1);else{const ee=Math.max(Math.abs((O?O.clientWidth:0)-W),W)*2+2,J=Math.max(Math.abs((O?O.clientHeight:0)-U),U)*2+2;G=Math.sqrt(ee**2+J**2)}R!=null&&R.touches?y.current===null&&(y.current=()=>{C({pulsate:P,rippleX:W,rippleY:U,rippleSize:G,cb:T})},w.start(B5,()=>{y.current&&(y.current(),y.current=null)})):C({pulsate:P,rippleX:W,rippleY:U,rippleSize:G,cb:T})},[o,C,w]),m=p.useCallback(()=>{v({},{pulsate:!0})},[v]),b=p.useCallback((R,k)=>{if(w.clear(),(R==null?void 0:R.type)==="touchend"&&y.current){y.current(),y.current=null,w.start(0,()=>{b(R,k)});return}y.current=null,c(T=>T.length>0?T.slice(1):T),f.current=k},[w]);return p.useImperativeHandle(n,()=>({pulsate:m,start:v,stop:b}),[m,v,b]),d.jsx(H5,S({className:le($n.root,i.root,a),ref:x},s,{children:d.jsx(fm,{component:null,exit:!0,children:l})}))});function G5(e){return be("MuiButtonBase",e)}const K5=we("MuiButtonBase",["root","disabled","focusVisible"]),Y5=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],X5=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Se({root:["root",t&&"disabled",n&&"focusVisible"]},G5,o);return n&&r&&(a.root+=` ${r}`),a},Q5=ie("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${K5.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ir=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:h=!1,LinkComponent:w="a",onBlur:y,onClick:x,onContextMenu:C,onDragLeave:v,onFocus:m,onFocusVisible:b,onKeyDown:R,onKeyUp:k,onMouseDown:T,onMouseLeave:P,onMouseUp:j,onTouchEnd:N,onTouchMove:O,onTouchStart:F,tabIndex:W=0,TouchRippleProps:U,touchRippleRef:G,type:ee}=r,J=se(r,Y5),re=p.useRef(null),I=p.useRef(null),_=lt(I,G),{isFocusVisibleRef:E,onFocus:g,onBlur:$,ref:z}=om(),[L,B]=p.useState(!1);c&&L&&B(!1),p.useImperativeHandle(o,()=>({focusVisible:()=>{B(!0),re.current.focus()}}),[]);const[V,M]=p.useState(!1);p.useEffect(()=>{M(!0)},[]);const A=V&&!u&&!c;p.useEffect(()=>{L&&h&&!u&&V&&I.current.pulsate()},[u,h,L,V]);function Y(he,Ge,Xe=f){return Yt(Ye=>(Ge&&Ge(Ye),!Xe&&I.current&&I.current[he](Ye),!0))}const K=Y("start",T),q=Y("stop",C),oe=Y("stop",v),te=Y("stop",j),ne=Y("stop",he=>{L&&he.preventDefault(),P&&P(he)}),de=Y("start",F),ke=Y("stop",N),H=Y("stop",O),ae=Y("stop",he=>{$(he),E.current===!1&&B(!1),y&&y(he)},!1),ge=Yt(he=>{re.current||(re.current=he.currentTarget),g(he),E.current===!0&&(B(!0),b&&b(he)),m&&m(he)}),D=()=>{const he=re.current;return l&&l!=="button"&&!(he.tagName==="A"&&he.href)},X=p.useRef(!1),fe=Yt(he=>{h&&!X.current&&L&&I.current&&he.key===" "&&(X.current=!0,I.current.stop(he,()=>{I.current.start(he)})),he.target===he.currentTarget&&D()&&he.key===" "&&he.preventDefault(),R&&R(he),he.target===he.currentTarget&&D()&&he.key==="Enter"&&!c&&(he.preventDefault(),x&&x(he))}),pe=Yt(he=>{h&&he.key===" "&&I.current&&L&&!he.defaultPrevented&&(X.current=!1,I.current.stop(he,()=>{I.current.pulsate(he)})),k&&k(he),x&&he.target===he.currentTarget&&D()&&he.key===" "&&!he.defaultPrevented&&x(he)});let ve=l;ve==="button"&&(J.href||J.to)&&(ve=w);const Ce={};ve==="button"?(Ce.type=ee===void 0?"button":ee,Ce.disabled=c):(!J.href&&!J.to&&(Ce.role="button"),c&&(Ce["aria-disabled"]=c));const Le=lt(n,z,re),De=S({},r,{centerRipple:i,component:l,disabled:c,disableRipple:u,disableTouchRipple:f,focusRipple:h,tabIndex:W,focusVisible:L}),Ee=X5(De);return d.jsxs(Q5,S({as:ve,className:le(Ee.root,s),ownerState:De,onBlur:ae,onClick:x,onContextMenu:q,onFocus:ge,onKeyDown:fe,onKeyUp:pe,onMouseDown:K,onMouseLeave:ne,onMouseUp:te,onDragLeave:oe,onTouchEnd:ke,onTouchMove:H,onTouchStart:de,ref:Le,tabIndex:c?-1:W,type:ee},Ce,J,{children:[a,A?d.jsx(q5,S({ref:_,center:i},U)):null]}))});function J5(e){return be("MuiAlert",e)}const A0=we("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function Z5(e){return be("MuiIconButton",e)}const eM=we("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),tM=["edge","children","className","color","disabled","disableFocusRipple","size"],nM=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${Z(r)}`,o&&`edge${Z(o)}`,`size${Z(i)}`]};return Se(a,Z5,t)},rM=ie(Ir,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Z(n.color)}`],n.edge&&t[`edge${Z(n.edge)}`],t[`size${Z(n.size)}`]]}})(({theme:e,ownerState:t})=>S({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return S({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&S({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":S({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${eM.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),ut=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium"}=r,f=se(r,tM),h=S({},r,{edge:o,color:s,disabled:l,disableFocusRipple:c,size:u}),w=nM(h);return d.jsx(rM,S({className:le(w.root,a),centerRipple:!0,focusRipple:!c,disabled:l,ref:n},f,{ownerState:h,children:i}))}),oM=Vt(d.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),iM=Vt(d.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),aM=Vt(d.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),sM=Vt(d.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),lM=Vt(d.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),cM=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],uM=Ju(),dM=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`color${Z(n||r)}`,`${t}${Z(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Se(i,J5,o)},fM=ie(En,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Z(n.color||n.severity)}`]]}})(({theme:e})=>{const t=e.palette.mode==="light"?Rc:kc,n=e.palette.mode==="light"?kc:Rc;return S({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${A0.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${A0.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.dark).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:S({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)})}))]})}),pM=ie("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),hM=ie("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),N0=ie("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),D0={success:d.jsx(oM,{fontSize:"inherit"}),warning:d.jsx(iM,{fontSize:"inherit"}),error:d.jsx(aM,{fontSize:"inherit"}),info:d.jsx(sM,{fontSize:"inherit"})},xr=p.forwardRef(function(t,n){const r=uM({props:t,name:"MuiAlert"}),{action:o,children:i,className:a,closeText:s="Close",color:l,components:c={},componentsProps:u={},icon:f,iconMapping:h=D0,onClose:w,role:y="alert",severity:x="success",slotProps:C={},slots:v={},variant:m="standard"}=r,b=se(r,cM),R=S({},r,{color:l,severity:x,variant:m,colorSeverity:l||x}),k=dM(R),T={slots:S({closeButton:c.CloseButton,closeIcon:c.CloseIcon},v),slotProps:S({},u,C)},[P,j]=kp("closeButton",{elementType:ut,externalForwardedProps:T,ownerState:R}),[N,O]=kp("closeIcon",{elementType:lM,externalForwardedProps:T,ownerState:R});return d.jsxs(fM,S({role:y,elevation:0,ownerState:R,className:le(k.root,a),ref:n},b,{children:[f!==!1?d.jsx(pM,{ownerState:R,className:k.icon,children:f||h[x]||D0[x]}):null,d.jsx(hM,{ownerState:R,className:k.message,children:i}),o!=null?d.jsx(N0,{ownerState:R,className:k.action,children:o}):null,o==null&&w?d.jsx(N0,{ownerState:R,className:k.action,children:d.jsx(P,S({size:"small","aria-label":s,title:s,color:"inherit",onClick:w},j,{children:d.jsx(N,S({fontSize:"small"},O))}))}):null]}))});function mM(e){return be("MuiTypography",e)}we("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const gM=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],vM=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,e.align!=="inherit"&&`align${Z(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Se(s,mM,a)},yM=ie("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Z(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>S({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),z0={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},xM={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},bM=e=>xM[e]||e,Ie=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTypography"}),o=bM(r.color),i=$u(S({},r,{color:o})),{align:a="inherit",className:s,component:l,gutterBottom:c=!1,noWrap:u=!1,paragraph:f=!1,variant:h="body1",variantMapping:w=z0}=i,y=se(i,gM),x=S({},i,{align:a,color:o,className:s,component:l,gutterBottom:c,noWrap:u,paragraph:f,variant:h,variantMapping:w}),C=l||(f?"p":w[h]||z0[h])||"span",v=vM(x);return d.jsx(yM,S({as:C,ref:n,ownerState:x,className:le(v.root,s)},y))});function wM(e){return be("MuiAppBar",e)}we("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const SM=["className","color","enableColorOnDark","position"],CM=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${Z(t)}`,`position${Z(n)}`]};return Se(o,wM,r)},pl=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,RM=ie(En,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Z(n.position)}`],t[`color${Z(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return S({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&S({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&S({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&S({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:pl(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:pl(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:pl(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:pl(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),kM=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:a=!1,position:s="fixed"}=r,l=se(r,SM),c=S({},r,{color:i,position:s,enableColorOnDark:a}),u=CM(c);return d.jsx(RM,S({square:!0,component:"header",ownerState:c,elevation:4,className:le(u.root,o,s==="fixed"&&"mui-fixed"),ref:n},l))});function PM(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=mw({badgeContent:t,max:r});let a=n;n===!1&&t===0&&!o&&(a=!0);const{badgeContent:s,max:l=r}=a?i:e,c=s&&Number(s)>l?`${l}+`:s;return{badgeContent:s,invisible:a,max:l,displayValue:c}}const Iw="base";function EM(e){return`${Iw}--${e}`}function TM(e,t){return`${Iw}-${e}-${t}`}function _w(e,t){const n=sw[t];return n?EM(n):TM(e,t)}function $M(e,t){const n={};return t.forEach(r=>{n[r]=_w(e,r)}),n}function B0(e){return e.substring(2).toLowerCase()}function MM(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=lt(t.ref,s),f=Yt(y=>{const x=c.current;c.current=!1;const C=St(s.current);if(!l.current||!s.current||"clientX"in y&&MM(y,C))return;if(a.current){a.current=!1;return}let v;y.composedPath?v=y.composedPath().indexOf(s.current)>-1:v=!C.documentElement.contains(y.target)||s.current.contains(y.target),!v&&(n||!x)&&o(y)}),h=y=>x=>{c.current=!0;const C=t.props[y];C&&C(x)},w={ref:u};return i!==!1&&(w[i]=h(i)),p.useEffect(()=>{if(i!==!1){const y=B0(i),x=St(s.current),C=()=>{a.current=!0};return x.addEventListener(y,f),x.addEventListener("touchmove",C),()=>{x.removeEventListener(y,f),x.removeEventListener("touchmove",C)}}},[f,i]),r!==!1&&(w[r]=h(r)),p.useEffect(()=>{if(r!==!1){const y=B0(r),x=St(s.current);return x.addEventListener(y,f),()=>{x.removeEventListener(y,f)}}},[f,r]),d.jsx(p.Fragment,{children:p.cloneElement(t,w)})}const OM=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function IM(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function _M(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function LM(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||_M(e))}function AM(e){const t=[],n=[];return Array.from(e.querySelectorAll(OM)).forEach((r,o)=>{const i=IM(r);i===-1||!LM(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function NM(){return!0}function DM(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=AM,isEnabled:a=NM,open:s}=e,l=p.useRef(!1),c=p.useRef(null),u=p.useRef(null),f=p.useRef(null),h=p.useRef(null),w=p.useRef(!1),y=p.useRef(null),x=lt(t.ref,y),C=p.useRef(null);p.useEffect(()=>{!s||!y.current||(w.current=!n)},[n,s]),p.useEffect(()=>{if(!s||!y.current)return;const b=St(y.current);return y.current.contains(b.activeElement)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex","-1"),w.current&&y.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),p.useEffect(()=>{if(!s||!y.current)return;const b=St(y.current),R=P=>{C.current=P,!(r||!a()||P.key!=="Tab")&&b.activeElement===y.current&&P.shiftKey&&(l.current=!0,u.current&&u.current.focus())},k=()=>{const P=y.current;if(P===null)return;if(!b.hasFocus()||!a()||l.current){l.current=!1;return}if(P.contains(b.activeElement)||r&&b.activeElement!==c.current&&b.activeElement!==u.current)return;if(b.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!w.current)return;let j=[];if((b.activeElement===c.current||b.activeElement===u.current)&&(j=i(y.current)),j.length>0){var N,O;const F=!!((N=C.current)!=null&&N.shiftKey&&((O=C.current)==null?void 0:O.key)==="Tab"),W=j[0],U=j[j.length-1];typeof W!="string"&&typeof U!="string"&&(F?U.focus():W.focus())}else P.focus()};b.addEventListener("focusin",k),b.addEventListener("keydown",R,!0);const T=setInterval(()=>{b.activeElement&&b.activeElement.tagName==="BODY"&&k()},50);return()=>{clearInterval(T),b.removeEventListener("focusin",k),b.removeEventListener("keydown",R,!0)}},[n,r,o,a,s,i]);const v=b=>{f.current===null&&(f.current=b.relatedTarget),w.current=!0,h.current=b.target;const R=t.props.onFocus;R&&R(b)},m=b=>{f.current===null&&(f.current=b.relatedTarget),w.current=!0};return d.jsxs(p.Fragment,{children:[d.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:c,"data-testid":"sentinelStart"}),p.cloneElement(t,{ref:x,onFocus:v}),d.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:u,"data-testid":"sentinelEnd"})]})}function zM(e){return typeof e=="function"?e():e}const Lw=p.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[a,s]=p.useState(null),l=lt(p.isValidElement(r)?r.ref:null,n);if(Sn(()=>{i||s(zM(o)||document.body)},[o,i]),Sn(()=>{if(a&&!i)return Cc(n,a),()=>{Cc(n,null)}},[n,a,i]),i){if(p.isValidElement(r)){const c={ref:l};return p.cloneElement(r,c)}return d.jsx(p.Fragment,{children:r})}return d.jsx(p.Fragment,{children:a&&Oh.createPortal(r,a)})});function BM(e){const t=St(e);return t.body===e?Bn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Ua(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function F0(e){return parseInt(Bn(e).getComputedStyle(e).paddingRight,10)||0}function FM(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function U0(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const s=i.indexOf(a)===-1,l=!FM(a);s&&l&&Ua(a,o)})}function Qd(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function UM(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(BM(r)){const a=pw(St(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${F0(r)+a}px`;const s=St(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${F0(l)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=St(r).body;else{const a=r.parentElement,s=Bn(r);i=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:s})=>{i?a.style.setProperty(s,i):a.style.removeProperty(s)})}}function WM(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class HM{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Ua(t.modalRef,!1);const o=WM(n);U0(n,t.mount,t.modalRef,o,!0);const i=Qd(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Qd(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=UM(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Qd(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Ua(t.modalRef,n),U0(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&Ua(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function VM(e){return typeof e=="function"?e():e}function qM(e){return e?e.props.hasOwnProperty("in"):!1}const GM=new HM;function KM(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=GM,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:f}=e,h=p.useRef({}),w=p.useRef(null),y=p.useRef(null),x=lt(y,f),[C,v]=p.useState(!u),m=qM(l);let b=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(b=!1);const R=()=>St(w.current),k=()=>(h.current.modalRef=y.current,h.current.mount=w.current,h.current),T=()=>{o.mount(k(),{disableScrollLock:r}),y.current&&(y.current.scrollTop=0)},P=Yt(()=>{const J=VM(t)||R().body;o.add(k(),J),y.current&&T()}),j=p.useCallback(()=>o.isTopModal(k()),[o]),N=Yt(J=>{w.current=J,J&&(u&&j()?T():y.current&&Ua(y.current,b))}),O=p.useCallback(()=>{o.remove(k(),b)},[b,o]);p.useEffect(()=>()=>{O()},[O]),p.useEffect(()=>{u?P():(!m||!i)&&O()},[u,O,m,i,P]);const F=J=>re=>{var I;(I=J.onKeyDown)==null||I.call(J,re),!(re.key!=="Escape"||re.which===229||!j())&&(n||(re.stopPropagation(),c&&c(re,"escapeKeyDown")))},W=J=>re=>{var I;(I=J.onClick)==null||I.call(J,re),re.target===re.currentTarget&&c&&c(re,"backdropClick")};return{getRootProps:(J={})=>{const re=Tc(e);delete re.onTransitionEnter,delete re.onTransitionExited;const I=S({},re,J);return S({role:"presentation"},I,{onKeyDown:F(I),ref:x})},getBackdropProps:(J={})=>{const re=J;return S({"aria-hidden":!0},re,{onClick:W(re),open:u})},getTransitionProps:()=>{const J=()=>{v(!1),a&&a()},re=()=>{v(!0),s&&s(),i&&O()};return{onEnter:xp(J,l==null?void 0:l.props.onEnter),onExited:xp(re,l==null?void 0:l.props.onExited)}},rootRef:x,portalRef:N,isTopModal:j,exited:C,hasTransition:m}}var cn="top",Un="bottom",Wn="right",un="left",hm="auto",zs=[cn,Un,Wn,un],Di="start",vs="end",YM="clippingParents",Aw="viewport",ya="popper",XM="reference",W0=zs.reduce(function(e,t){return e.concat([t+"-"+Di,t+"-"+vs])},[]),Nw=[].concat(zs,[hm]).reduce(function(e,t){return e.concat([t,t+"-"+Di,t+"-"+vs])},[]),QM="beforeRead",JM="read",ZM="afterRead",ej="beforeMain",tj="main",nj="afterMain",rj="beforeWrite",oj="write",ij="afterWrite",aj=[QM,JM,ZM,ej,tj,nj,rj,oj,ij];function yr(e){return e?(e.nodeName||"").toLowerCase():null}function Cn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Wo(e){var t=Cn(e).Element;return e instanceof t||e instanceof Element}function Nn(e){var t=Cn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function mm(e){if(typeof ShadowRoot>"u")return!1;var t=Cn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function sj(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Nn(i)||!yr(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function lj(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,c){return l[c]="",l},{});!Nn(o)||!yr(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const cj={name:"applyStyles",enabled:!0,phase:"write",fn:sj,effect:lj,requires:["computeStyles"]};function mr(e){return e.split("-")[0]}var Io=Math.max,$c=Math.min,zi=Math.round;function Ep(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Dw(){return!/^((?!chrome|android).)*safari/i.test(Ep())}function Bi(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Nn(e)&&(o=e.offsetWidth>0&&zi(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&zi(r.height)/e.offsetHeight||1);var a=Wo(e)?Cn(e):window,s=a.visualViewport,l=!Dw()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/o,u=(r.top+(l&&s?s.offsetTop:0))/i,f=r.width/o,h=r.height/i;return{width:f,height:h,top:u,right:c+f,bottom:u+h,left:c,x:c,y:u}}function gm(e){var t=Bi(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function zw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&mm(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function _r(e){return Cn(e).getComputedStyle(e)}function uj(e){return["table","td","th"].indexOf(yr(e))>=0}function go(e){return((Wo(e)?e.ownerDocument:e.document)||window.document).documentElement}function ed(e){return yr(e)==="html"?e:e.assignedSlot||e.parentNode||(mm(e)?e.host:null)||go(e)}function H0(e){return!Nn(e)||_r(e).position==="fixed"?null:e.offsetParent}function dj(e){var t=/firefox/i.test(Ep()),n=/Trident/i.test(Ep());if(n&&Nn(e)){var r=_r(e);if(r.position==="fixed")return null}var o=ed(e);for(mm(o)&&(o=o.host);Nn(o)&&["html","body"].indexOf(yr(o))<0;){var i=_r(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Bs(e){for(var t=Cn(e),n=H0(e);n&&uj(n)&&_r(n).position==="static";)n=H0(n);return n&&(yr(n)==="html"||yr(n)==="body"&&_r(n).position==="static")?t:n||dj(e)||t}function vm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Wa(e,t,n){return Io(e,$c(t,n))}function fj(e,t,n){var r=Wa(e,t,n);return r>n?n:r}function Bw(){return{top:0,right:0,bottom:0,left:0}}function Fw(e){return Object.assign({},Bw(),e)}function Uw(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var pj=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Fw(typeof t!="number"?t:Uw(t,zs))};function hj(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=mr(n.placement),l=vm(s),c=[un,Wn].indexOf(s)>=0,u=c?"height":"width";if(!(!i||!a)){var f=pj(o.padding,n),h=gm(i),w=l==="y"?cn:un,y=l==="y"?Un:Wn,x=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],C=a[l]-n.rects.reference[l],v=Bs(i),m=v?l==="y"?v.clientHeight||0:v.clientWidth||0:0,b=x/2-C/2,R=f[w],k=m-h[u]-f[y],T=m/2-h[u]/2+b,P=Wa(R,T,k),j=l;n.modifiersData[r]=(t={},t[j]=P,t.centerOffset=P-T,t)}}function mj(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||zw(t.elements.popper,o)&&(t.elements.arrow=o))}const gj={name:"arrow",enabled:!0,phase:"main",fn:hj,effect:mj,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Fi(e){return e.split("-")[1]}var vj={top:"auto",right:"auto",bottom:"auto",left:"auto"};function yj(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:zi(n*o)/o||0,y:zi(r*o)/o||0}}function V0(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,h=a.x,w=h===void 0?0:h,y=a.y,x=y===void 0?0:y,C=typeof u=="function"?u({x:w,y:x}):{x:w,y:x};w=C.x,x=C.y;var v=a.hasOwnProperty("x"),m=a.hasOwnProperty("y"),b=un,R=cn,k=window;if(c){var T=Bs(n),P="clientHeight",j="clientWidth";if(T===Cn(n)&&(T=go(n),_r(T).position!=="static"&&s==="absolute"&&(P="scrollHeight",j="scrollWidth")),T=T,o===cn||(o===un||o===Wn)&&i===vs){R=Un;var N=f&&T===k&&k.visualViewport?k.visualViewport.height:T[P];x-=N-r.height,x*=l?1:-1}if(o===un||(o===cn||o===Un)&&i===vs){b=Wn;var O=f&&T===k&&k.visualViewport?k.visualViewport.width:T[j];w-=O-r.width,w*=l?1:-1}}var F=Object.assign({position:s},c&&vj),W=u===!0?yj({x:w,y:x},Cn(n)):{x:w,y:x};if(w=W.x,x=W.y,l){var U;return Object.assign({},F,(U={},U[R]=m?"0":"",U[b]=v?"0":"",U.transform=(k.devicePixelRatio||1)<=1?"translate("+w+"px, "+x+"px)":"translate3d("+w+"px, "+x+"px, 0)",U))}return Object.assign({},F,(t={},t[R]=m?x+"px":"",t[b]=v?w+"px":"",t.transform="",t))}function xj(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:mr(t.placement),variation:Fi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,V0(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,V0(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const bj={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:xj,data:{}};var hl={passive:!0};function wj(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,l=Cn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,hl)}),s&&l.addEventListener("resize",n.update,hl),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,hl)}),s&&l.removeEventListener("resize",n.update,hl)}}const Sj={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:wj,data:{}};var Cj={left:"right",right:"left",bottom:"top",top:"bottom"};function Wl(e){return e.replace(/left|right|bottom|top/g,function(t){return Cj[t]})}var Rj={start:"end",end:"start"};function q0(e){return e.replace(/start|end/g,function(t){return Rj[t]})}function ym(e){var t=Cn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function xm(e){return Bi(go(e)).left+ym(e).scrollLeft}function kj(e,t){var n=Cn(e),r=go(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=Dw();(c||!c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+xm(e),y:l}}function Pj(e){var t,n=go(e),r=ym(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Io(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Io(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+xm(e),l=-r.scrollTop;return _r(o||n).direction==="rtl"&&(s+=Io(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function bm(e){var t=_r(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Ww(e){return["html","body","#document"].indexOf(yr(e))>=0?e.ownerDocument.body:Nn(e)&&bm(e)?e:Ww(ed(e))}function Ha(e,t){var n;t===void 0&&(t=[]);var r=Ww(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Cn(r),a=o?[i].concat(i.visualViewport||[],bm(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Ha(ed(a)))}function Tp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ej(e,t){var n=Bi(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function G0(e,t,n){return t===Aw?Tp(kj(e,n)):Wo(t)?Ej(t,n):Tp(Pj(go(e)))}function Tj(e){var t=Ha(ed(e)),n=["absolute","fixed"].indexOf(_r(e).position)>=0,r=n&&Nn(e)?Bs(e):e;return Wo(r)?t.filter(function(o){return Wo(o)&&zw(o,r)&&yr(o)!=="body"}):[]}function $j(e,t,n,r){var o=t==="clippingParents"?Tj(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(l,c){var u=G0(e,c,r);return l.top=Io(u.top,l.top),l.right=$c(u.right,l.right),l.bottom=$c(u.bottom,l.bottom),l.left=Io(u.left,l.left),l},G0(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Hw(e){var t=e.reference,n=e.element,r=e.placement,o=r?mr(r):null,i=r?Fi(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case cn:l={x:a,y:t.y-n.height};break;case Un:l={x:a,y:t.y+t.height};break;case Wn:l={x:t.x+t.width,y:s};break;case un:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=o?vm(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case Di:l[c]=l[c]-(t[u]/2-n[u]/2);break;case vs:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function ys(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,s=n.boundary,l=s===void 0?YM:s,c=n.rootBoundary,u=c===void 0?Aw:c,f=n.elementContext,h=f===void 0?ya:f,w=n.altBoundary,y=w===void 0?!1:w,x=n.padding,C=x===void 0?0:x,v=Fw(typeof C!="number"?C:Uw(C,zs)),m=h===ya?XM:ya,b=e.rects.popper,R=e.elements[y?m:h],k=$j(Wo(R)?R:R.contextElement||go(e.elements.popper),l,u,a),T=Bi(e.elements.reference),P=Hw({reference:T,element:b,strategy:"absolute",placement:o}),j=Tp(Object.assign({},b,P)),N=h===ya?j:T,O={top:k.top-N.top+v.top,bottom:N.bottom-k.bottom+v.bottom,left:k.left-N.left+v.left,right:N.right-k.right+v.right},F=e.modifiersData.offset;if(h===ya&&F){var W=F[o];Object.keys(O).forEach(function(U){var G=[Wn,Un].indexOf(U)>=0?1:-1,ee=[cn,Un].indexOf(U)>=0?"y":"x";O[U]+=W[ee]*G})}return O}function Mj(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Nw:l,u=Fi(r),f=u?s?W0:W0.filter(function(y){return Fi(y)===u}):zs,h=f.filter(function(y){return c.indexOf(y)>=0});h.length===0&&(h=f);var w=h.reduce(function(y,x){return y[x]=ys(e,{placement:x,boundary:o,rootBoundary:i,padding:a})[mr(x)],y},{});return Object.keys(w).sort(function(y,x){return w[y]-w[x]})}function jj(e){if(mr(e)===hm)return[];var t=Wl(e);return[q0(e),t,q0(t)]}function Oj(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,h=n.altBoundary,w=n.flipVariations,y=w===void 0?!0:w,x=n.allowedAutoPlacements,C=t.options.placement,v=mr(C),m=v===C,b=l||(m||!y?[Wl(C)]:jj(C)),R=[C].concat(b).reduce(function(L,B){return L.concat(mr(B)===hm?Mj(t,{placement:B,boundary:u,rootBoundary:f,padding:c,flipVariations:y,allowedAutoPlacements:x}):B)},[]),k=t.rects.reference,T=t.rects.popper,P=new Map,j=!0,N=R[0],O=0;O=0,ee=G?"width":"height",J=ys(t,{placement:F,boundary:u,rootBoundary:f,altBoundary:h,padding:c}),re=G?U?Wn:un:U?Un:cn;k[ee]>T[ee]&&(re=Wl(re));var I=Wl(re),_=[];if(i&&_.push(J[W]<=0),s&&_.push(J[re]<=0,J[I]<=0),_.every(function(L){return L})){N=F,j=!1;break}P.set(F,_)}if(j)for(var E=y?3:1,g=function(B){var V=R.find(function(M){var A=P.get(M);if(A)return A.slice(0,B).every(function(Y){return Y})});if(V)return N=V,"break"},$=E;$>0;$--){var z=g($);if(z==="break")break}t.placement!==N&&(t.modifiersData[r]._skip=!0,t.placement=N,t.reset=!0)}}const Ij={name:"flip",enabled:!0,phase:"main",fn:Oj,requiresIfExists:["offset"],data:{_skip:!1}};function K0(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Y0(e){return[cn,Wn,Un,un].some(function(t){return e[t]>=0})}function _j(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ys(t,{elementContext:"reference"}),s=ys(t,{altBoundary:!0}),l=K0(a,r),c=K0(s,o,i),u=Y0(l),f=Y0(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const Lj={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:_j};function Aj(e,t,n){var r=mr(e),o=[un,cn].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[un,Wn].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function Nj(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=Nw.reduce(function(u,f){return u[f]=Aj(f,t.rects,i),u},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}const Dj={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Nj};function zj(e){var t=e.state,n=e.name;t.modifiersData[n]=Hw({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Bj={name:"popperOffsets",enabled:!0,phase:"read",fn:zj,data:{}};function Fj(e){return e==="x"?"y":"x"}function Uj(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,h=n.tether,w=h===void 0?!0:h,y=n.tetherOffset,x=y===void 0?0:y,C=ys(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),v=mr(t.placement),m=Fi(t.placement),b=!m,R=vm(v),k=Fj(R),T=t.modifiersData.popperOffsets,P=t.rects.reference,j=t.rects.popper,N=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,O=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,W={x:0,y:0};if(T){if(i){var U,G=R==="y"?cn:un,ee=R==="y"?Un:Wn,J=R==="y"?"height":"width",re=T[R],I=re+C[G],_=re-C[ee],E=w?-j[J]/2:0,g=m===Di?P[J]:j[J],$=m===Di?-j[J]:-P[J],z=t.elements.arrow,L=w&&z?gm(z):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Bw(),V=B[G],M=B[ee],A=Wa(0,P[J],L[J]),Y=b?P[J]/2-E-A-V-O.mainAxis:g-A-V-O.mainAxis,K=b?-P[J]/2+E+A+M+O.mainAxis:$+A+M+O.mainAxis,q=t.elements.arrow&&Bs(t.elements.arrow),oe=q?R==="y"?q.clientTop||0:q.clientLeft||0:0,te=(U=F==null?void 0:F[R])!=null?U:0,ne=re+Y-te-oe,de=re+K-te,ke=Wa(w?$c(I,ne):I,re,w?Io(_,de):_);T[R]=ke,W[R]=ke-re}if(s){var H,ae=R==="x"?cn:un,ge=R==="x"?Un:Wn,D=T[k],X=k==="y"?"height":"width",fe=D+C[ae],pe=D-C[ge],ve=[cn,un].indexOf(v)!==-1,Ce=(H=F==null?void 0:F[k])!=null?H:0,Le=ve?fe:D-P[X]-j[X]-Ce+O.altAxis,De=ve?D+P[X]+j[X]-Ce-O.altAxis:pe,Ee=w&&ve?fj(Le,D,De):Wa(w?Le:fe,D,w?De:pe);T[k]=Ee,W[k]=Ee-D}t.modifiersData[r]=W}}const Wj={name:"preventOverflow",enabled:!0,phase:"main",fn:Uj,requiresIfExists:["offset"]};function Hj(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Vj(e){return e===Cn(e)||!Nn(e)?ym(e):Hj(e)}function qj(e){var t=e.getBoundingClientRect(),n=zi(t.width)/e.offsetWidth||1,r=zi(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Gj(e,t,n){n===void 0&&(n=!1);var r=Nn(t),o=Nn(t)&&qj(t),i=go(t),a=Bi(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((yr(t)!=="body"||bm(i))&&(s=Vj(t)),Nn(t)?(l=Bi(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=xm(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Kj(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function Yj(e){var t=Kj(e);return aj.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Xj(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Qj(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var X0={placement:"bottom",modifiers:[],strategy:"absolute"};function Q0(){for(var e=arguments.length,t=new Array(e),n=0;nSe({root:["root"]},I5(tO)),sO={},lO=p.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:a,disablePortal:s,modifiers:l,open:c,placement:u,popperOptions:f,popperRef:h,slotProps:w={},slots:y={},TransitionProps:x}=t,C=se(t,nO),v=p.useRef(null),m=lt(v,n),b=p.useRef(null),R=lt(b,h),k=p.useRef(R);Sn(()=>{k.current=R},[R]),p.useImperativeHandle(h,()=>b.current,[]);const T=oO(u,a),[P,j]=p.useState(T),[N,O]=p.useState($p(o));p.useEffect(()=>{b.current&&b.current.forceUpdate()}),p.useEffect(()=>{o&&O($p(o))},[o]),Sn(()=>{if(!N||!c)return;const ee=I=>{j(I.placement)};let J=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:I})=>{ee(I)}}];l!=null&&(J=J.concat(l)),f&&f.modifiers!=null&&(J=J.concat(f.modifiers));const re=eO(N,v.current,S({placement:T},f,{modifiers:J}));return k.current(re),()=>{re.destroy(),k.current(null)}},[N,s,l,c,f,T]);const F={placement:P};x!==null&&(F.TransitionProps=x);const W=aO(),U=(r=y.root)!=null?r:"div",G=fn({elementType:U,externalSlotProps:w.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:m},ownerState:t,className:W.root});return d.jsx(U,S({},G,{children:typeof i=="function"?i(F):i}))}),cO=p.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:f="bottom",popperOptions:h=sO,popperRef:w,style:y,transition:x=!1,slotProps:C={},slots:v={}}=t,m=se(t,rO),[b,R]=p.useState(!0),k=()=>{R(!1)},T=()=>{R(!0)};if(!l&&!u&&(!x||b))return null;let P;if(i)P=i;else if(r){const O=$p(r);P=O&&iO(O)?St(O).body:St(null).body}const j=!u&&l&&(!x||b)?"none":void 0,N=x?{in:u,onEnter:k,onExited:T}:void 0;return d.jsx(Lw,{disablePortal:s,container:P,children:d.jsx(lO,S({anchorEl:r,direction:a,disablePortal:s,modifiers:c,ref:n,open:x?!b:u,placement:f,popperOptions:h,popperRef:w,slotProps:C,slots:v},m,{style:S({position:"fixed",top:0,left:0,display:j},y),TransitionProps:N,children:o}))})});function uO(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:i}=e,a=To();p.useEffect(()=>{if(!o)return;function v(m){m.defaultPrevented||(m.key==="Escape"||m.key==="Esc")&&(r==null||r(m,"escapeKeyDown"))}return document.addEventListener("keydown",v),()=>{document.removeEventListener("keydown",v)}},[o,r]);const s=Yt((v,m)=>{r==null||r(v,m)}),l=Yt(v=>{!r||v==null||a.start(v,()=>{s(null,"timeout")})});p.useEffect(()=>(o&&l(t),a.clear),[o,t,l,a]);const c=v=>{r==null||r(v,"clickaway")},u=a.clear,f=p.useCallback(()=>{t!=null&&l(i??t*.5)},[t,i,l]),h=v=>m=>{const b=v.onBlur;b==null||b(m),f()},w=v=>m=>{const b=v.onFocus;b==null||b(m),u()},y=v=>m=>{const b=v.onMouseEnter;b==null||b(m),u()},x=v=>m=>{const b=v.onMouseLeave;b==null||b(m),f()};return p.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",f),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",u)}},[n,o,f,u]),{getRootProps:(v={})=>{const m=S({},Tc(e),Tc(v));return S({role:"presentation"},v,m,{onBlur:h(m),onFocus:w(m),onMouseEnter:y(m),onMouseLeave:x(m)})},onClickAway:c}}const dO=["onChange","maxRows","minRows","style","value"];function ml(e){return parseInt(e,10)||0}const fO={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function pO(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const hO=p.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:s}=t,l=se(t,dO),{current:c}=p.useRef(s!=null),u=p.useRef(null),f=lt(n,u),h=p.useRef(null),w=p.useCallback(()=>{const C=u.current,m=Bn(C).getComputedStyle(C);if(m.width==="0px")return{outerHeightStyle:0,overflowing:!1};const b=h.current;b.style.width=m.width,b.value=C.value||t.placeholder||"x",b.value.slice(-1)===` +`&&(b.value+=" ");const R=m.boxSizing,k=ml(m.paddingBottom)+ml(m.paddingTop),T=ml(m.borderBottomWidth)+ml(m.borderTopWidth),P=b.scrollHeight;b.value="x";const j=b.scrollHeight;let N=P;i&&(N=Math.max(Number(i)*j,N)),o&&(N=Math.min(Number(o)*j,N)),N=Math.max(N,j);const O=N+(R==="border-box"?k+T:0),F=Math.abs(N-P)<=1;return{outerHeightStyle:O,overflowing:F}},[o,i,t.placeholder]),y=p.useCallback(()=>{const C=w();if(pO(C))return;const v=u.current;v.style.height=`${C.outerHeightStyle}px`,v.style.overflow=C.overflowing?"hidden":""},[w]);Sn(()=>{const C=()=>{y()};let v;const m=ea(C),b=u.current,R=Bn(b);R.addEventListener("resize",m);let k;return typeof ResizeObserver<"u"&&(k=new ResizeObserver(C),k.observe(b)),()=>{m.clear(),cancelAnimationFrame(v),R.removeEventListener("resize",m),k&&k.disconnect()}},[w,y]),Sn(()=>{y()});const x=C=>{c||y(),r&&r(C)};return d.jsxs(p.Fragment,{children:[d.jsx("textarea",S({value:s,onChange:x,ref:f,rows:i,style:a},l)),d.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:S({},fO.shadow,a,{paddingTop:0,paddingBottom:0})})]})});var wm={};Object.defineProperty(wm,"__esModule",{value:!0});var qw=wm.default=void 0,mO=vO(p),gO=Pw;function Gw(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Gw=function(r){return r?n:t})(e)}function vO(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Gw(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function yO(e){return Object.keys(e).length===0}function xO(e=null){const t=mO.useContext(gO.ThemeContext);return!t||yO(t)?e:t}qw=wm.default=xO;const bO=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],wO=ie(cO,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Kw=p.forwardRef(function(t,n){var r;const o=qw(),i=Re({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:l,componentsProps:c,container:u,disablePortal:f,keepMounted:h,modifiers:w,open:y,placement:x,popperOptions:C,popperRef:v,transition:m,slots:b,slotProps:R}=i,k=se(i,bO),T=(r=b==null?void 0:b.root)!=null?r:l==null?void 0:l.Root,P=S({anchorEl:a,container:u,disablePortal:f,keepMounted:h,modifiers:w,open:y,placement:x,popperOptions:C,popperRef:v,transition:m},k);return d.jsx(wO,S({as:s,direction:o==null?void 0:o.direction,slots:{root:T},slotProps:R??c},P,{ref:n}))}),SO=Vt(d.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function CO(e){return be("MuiChip",e)}const Be=we("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),RO=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],kO=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:a,clickable:s,variant:l}=e,c={root:["root",l,n&&"disabled",`size${Z(r)}`,`color${Z(o)}`,s&&"clickable",s&&`clickableColor${Z(o)}`,a&&"deletable",a&&`deletableColor${Z(o)}`,`${l}${Z(o)}`],label:["label",`label${Z(r)}`],avatar:["avatar",`avatar${Z(r)}`,`avatarColor${Z(o)}`],icon:["icon",`icon${Z(r)}`,`iconColor${Z(i)}`],deleteIcon:["deleteIcon",`deleteIcon${Z(r)}`,`deleteIconColor${Z(o)}`,`deleteIcon${Z(l)}Color${Z(o)}`]};return Se(c,CO,t)},PO=ie("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:a,size:s,variant:l}=n;return[{[`& .${Be.avatar}`]:t.avatar},{[`& .${Be.avatar}`]:t[`avatar${Z(s)}`]},{[`& .${Be.avatar}`]:t[`avatarColor${Z(r)}`]},{[`& .${Be.icon}`]:t.icon},{[`& .${Be.icon}`]:t[`icon${Z(s)}`]},{[`& .${Be.icon}`]:t[`iconColor${Z(o)}`]},{[`& .${Be.deleteIcon}`]:t.deleteIcon},{[`& .${Be.deleteIcon}`]:t[`deleteIcon${Z(s)}`]},{[`& .${Be.deleteIcon}`]:t[`deleteIconColor${Z(r)}`]},{[`& .${Be.deleteIcon}`]:t[`deleteIcon${Z(l)}Color${Z(r)}`]},t.root,t[`size${Z(s)}`],t[`color${Z(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${Z(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${Z(r)}`],t[l],t[`${l}${Z(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return S({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Be.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Be.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${Be.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Be.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Be.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Be.icon}`]:S({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&S({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${Be.deleteIcon}`]:S({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Fe(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Fe(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Fe(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Be.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fe(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Be.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>S({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fe(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Be.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fe(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${Be.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>S({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Be.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Be.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Be.avatar}`]:{marginLeft:4},[`& .${Be.avatarSmall}`]:{marginLeft:2},[`& .${Be.icon}`]:{marginLeft:4},[`& .${Be.iconSmall}`]:{marginLeft:2},[`& .${Be.deleteIcon}`]:{marginRight:5},[`& .${Be.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Fe(e.palette[t.color].main,.7)}`,[`&.${Be.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Be.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Fe(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Be.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Fe(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),EO=ie("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Z(r)}`]]}})(({ownerState:e})=>S({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function J0(e){return e.key==="Backspace"||e.key==="Delete"}const TO=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:a,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:f,label:h,onClick:w,onDelete:y,onKeyDown:x,onKeyUp:C,size:v="medium",variant:m="filled",tabIndex:b,skipFocusWhenDisabled:R=!1}=r,k=se(r,RO),T=p.useRef(null),P=lt(T,n),j=_=>{_.stopPropagation(),y&&y(_)},N=_=>{_.currentTarget===_.target&&J0(_)&&_.preventDefault(),x&&x(_)},O=_=>{_.currentTarget===_.target&&(y&&J0(_)?y(_):_.key==="Escape"&&T.current&&T.current.blur()),C&&C(_)},F=a!==!1&&w?!0:a,W=F||y?Ir:l||"div",U=S({},r,{component:W,disabled:u,size:v,color:s,iconColor:p.isValidElement(f)&&f.props.color||s,onDelete:!!y,clickable:F,variant:m}),G=kO(U),ee=W===Ir?S({component:l||"div",focusVisibleClassName:G.focusVisible},y&&{disableRipple:!0}):{};let J=null;y&&(J=c&&p.isValidElement(c)?p.cloneElement(c,{className:le(c.props.className,G.deleteIcon),onClick:j}):d.jsx(SO,{className:le(G.deleteIcon),onClick:j}));let re=null;o&&p.isValidElement(o)&&(re=p.cloneElement(o,{className:le(G.avatar,o.props.className)}));let I=null;return f&&p.isValidElement(f)&&(I=p.cloneElement(f,{className:le(G.icon,f.props.className)})),d.jsxs(PO,S({as:W,className:le(G.root,i),disabled:F&&u?!0:void 0,onClick:w,onKeyDown:N,onKeyUp:O,ref:P,tabIndex:R&&u?-1:b,ownerState:U},ee,k,{children:[re||I,d.jsx(EO,{className:le(G.label),ownerState:U,children:h}),J]}))});function vo({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const td=p.createContext(void 0);function br(){return p.useContext(td)}function Yw(e){return d.jsx(n$,S({},e,{defaultTheme:Fu,themeId:Fo}))}function Z0(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Mc(e,t=!1){return e&&(Z0(e.value)&&e.value!==""||t&&Z0(e.defaultValue)&&e.defaultValue!=="")}function $O(e){return e.startAdornment}function MO(e){return be("MuiInputBase",e)}const Ui=we("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),jO=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],nd=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Z(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},rd=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},OO=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:f,size:h,startAdornment:w,type:y}=e,x={root:["root",`color${Z(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",h&&h!=="medium"&&`size${Z(h)}`,u&&"multiline",w&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",y==="search"&&"inputTypeSearch",u&&"inputMultiline",h==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",w&&"inputAdornedStart",i&&"inputAdornedEnd",f&&"readOnly"]};return Se(x,MO,t)},od=ie("div",{name:"MuiInputBase",slot:"Root",overridesResolver:nd})(({theme:e,ownerState:t})=>S({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Ui.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&S({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),id=ie("input",{name:"MuiInputBase",slot:"Input",overridesResolver:rd})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=S({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return S({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ui.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Ui.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),IO=d.jsx(Yw,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),_O=p.forwardRef(function(t,n){var r;const o=Re({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:s,className:l,components:c={},componentsProps:u={},defaultValue:f,disabled:h,disableInjectingGlobalStyles:w,endAdornment:y,fullWidth:x=!1,id:C,inputComponent:v="input",inputProps:m={},inputRef:b,maxRows:R,minRows:k,multiline:T=!1,name:P,onBlur:j,onChange:N,onClick:O,onFocus:F,onKeyDown:W,onKeyUp:U,placeholder:G,readOnly:ee,renderSuffix:J,rows:re,slotProps:I={},slots:_={},startAdornment:E,type:g="text",value:$}=o,z=se(o,jO),L=m.value!=null?m.value:$,{current:B}=p.useRef(L!=null),V=p.useRef(),M=p.useCallback(Ee=>{},[]),A=lt(V,b,m.ref,M),[Y,K]=p.useState(!1),q=br(),oe=vo({props:o,muiFormControl:q,states:["color","disabled","error","hiddenLabel","size","required","filled"]});oe.focused=q?q.focused:Y,p.useEffect(()=>{!q&&h&&Y&&(K(!1),j&&j())},[q,h,Y,j]);const te=q&&q.onFilled,ne=q&&q.onEmpty,de=p.useCallback(Ee=>{Mc(Ee)?te&&te():ne&&ne()},[te,ne]);Sn(()=>{B&&de({value:L})},[L,de,B]);const ke=Ee=>{if(oe.disabled){Ee.stopPropagation();return}F&&F(Ee),m.onFocus&&m.onFocus(Ee),q&&q.onFocus?q.onFocus(Ee):K(!0)},H=Ee=>{j&&j(Ee),m.onBlur&&m.onBlur(Ee),q&&q.onBlur?q.onBlur(Ee):K(!1)},ae=(Ee,...he)=>{if(!B){const Ge=Ee.target||V.current;if(Ge==null)throw new Error(Bo(1));de({value:Ge.value})}m.onChange&&m.onChange(Ee,...he),N&&N(Ee,...he)};p.useEffect(()=>{de(V.current)},[]);const ge=Ee=>{V.current&&Ee.currentTarget===Ee.target&&V.current.focus(),O&&O(Ee)};let D=v,X=m;T&&D==="input"&&(re?X=S({type:void 0,minRows:re,maxRows:re},X):X=S({type:void 0,maxRows:R,minRows:k},X),D=hO);const fe=Ee=>{de(Ee.animationName==="mui-auto-fill-cancel"?V.current:{value:"x"})};p.useEffect(()=>{q&&q.setAdornedStart(!!E)},[q,E]);const pe=S({},o,{color:oe.color||"primary",disabled:oe.disabled,endAdornment:y,error:oe.error,focused:oe.focused,formControl:q,fullWidth:x,hiddenLabel:oe.hiddenLabel,multiline:T,size:oe.size,startAdornment:E,type:g}),ve=OO(pe),Ce=_.root||c.Root||od,Le=I.root||u.root||{},De=_.input||c.Input||id;return X=S({},X,(r=I.input)!=null?r:u.input),d.jsxs(p.Fragment,{children:[!w&&IO,d.jsxs(Ce,S({},Le,!Ni(Ce)&&{ownerState:S({},pe,Le.ownerState)},{ref:n,onClick:ge},z,{className:le(ve.root,Le.className,l,ee&&"MuiInputBase-readOnly"),children:[E,d.jsx(td.Provider,{value:null,children:d.jsx(De,S({ownerState:pe,"aria-invalid":oe.error,"aria-describedby":i,autoComplete:a,autoFocus:s,defaultValue:f,disabled:oe.disabled,id:C,onAnimationStart:fe,name:P,placeholder:G,readOnly:ee,required:oe.required,rows:re,value:L,onKeyDown:W,onKeyUp:U,type:g},X,!Ni(De)&&{as:D,ownerState:S({},pe,X.ownerState)},{ref:A,className:le(ve.input,X.className,ee&&"MuiInputBase-readOnly"),onBlur:H,onChange:ae,onFocus:ke}))}),y,J?J(S({},oe,{startAdornment:E})):null]}))]})}),Sm=_O;function LO(e){return be("MuiInput",e)}const xa=S({},Ui,we("MuiInput",["root","underline","input"]));function AO(e){return be("MuiOutlinedInput",e)}const Ur=S({},Ui,we("MuiOutlinedInput",["root","notchedOutline","input"]));function NO(e){return be("MuiFilledInput",e)}const xo=S({},Ui,we("MuiFilledInput",["root","underline","input"])),DO=Vt(d.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),zO=Vt(d.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function BO(e){return be("MuiAvatar",e)}we("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const FO=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],UO=Ju(),WO=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Se({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},BO,t)},HO=ie("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:S({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:S({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),VO=ie("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),qO=ie(zO,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function GO({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=p.useState(!1);return p.useEffect(()=>{if(!n&&!r)return;i(!1);let a=!0;const s=new Image;return s.onload=()=>{a&&i("loaded")},s.onerror=()=>{a&&i("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=n,r&&(s.srcset=r),()=>{a=!1}},[e,t,n,r]),o}const Er=p.forwardRef(function(t,n){const r=UO({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:a,component:s="div",slots:l={},slotProps:c={},imgProps:u,sizes:f,src:h,srcSet:w,variant:y="circular"}=r,x=se(r,FO);let C=null;const v=GO(S({},u,{src:h,srcSet:w})),m=h||w,b=m&&v!=="error",R=S({},r,{colorDefault:!b,component:s,variant:y}),k=WO(R),[T,P]=kp("img",{className:k.img,elementType:VO,externalForwardedProps:{slots:l,slotProps:{img:S({},u,c.img)}},additionalProps:{alt:o,src:h,srcSet:w,sizes:f},ownerState:R});return b?C=d.jsx(T,S({},P)):i||i===0?C=i:m&&o?C=o[0]:C=d.jsx(qO,{ownerState:R,className:k.fallback}),d.jsx(HO,S({as:s,ownerState:R,className:le(k.root,a),ref:n},x,{children:C}))}),KO=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],YO={entering:{opacity:1},entered:{opacity:1}},Xw=p.forwardRef(function(t,n){const r=mo(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:l,in:c,onEnter:u,onEntered:f,onEntering:h,onExit:w,onExited:y,onExiting:x,style:C,timeout:v=o,TransitionComponent:m=ar}=t,b=se(t,KO),R=p.useRef(null),k=lt(R,s.ref,n),T=G=>ee=>{if(G){const J=R.current;ee===void 0?G(J):G(J,ee)}},P=T(h),j=T((G,ee)=>{pm(G);const J=Ai({style:C,timeout:v,easing:l},{mode:"enter"});G.style.webkitTransition=r.transitions.create("opacity",J),G.style.transition=r.transitions.create("opacity",J),u&&u(G,ee)}),N=T(f),O=T(x),F=T(G=>{const ee=Ai({style:C,timeout:v,easing:l},{mode:"exit"});G.style.webkitTransition=r.transitions.create("opacity",ee),G.style.transition=r.transitions.create("opacity",ee),w&&w(G)}),W=T(y),U=G=>{i&&i(R.current,G)};return d.jsx(m,S({appear:a,in:c,nodeRef:R,onEnter:j,onEntered:N,onEntering:P,onExit:F,onExited:W,onExiting:O,addEndListener:U,timeout:v},b,{children:(G,ee)=>p.cloneElement(s,S({style:S({opacity:0,visibility:G==="exited"&&!c?"hidden":void 0},YO[G],C,s.props.style),ref:k},ee))}))});function XO(e){return be("MuiBackdrop",e)}we("MuiBackdrop",["root","invisible"]);const QO=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],JO=e=>{const{classes:t,invisible:n}=e;return Se({root:["root",n&&"invisible"]},XO,t)},ZO=ie("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>S({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Qw=p.forwardRef(function(t,n){var r,o,i;const a=Re({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:c="div",components:u={},componentsProps:f={},invisible:h=!1,open:w,slotProps:y={},slots:x={},TransitionComponent:C=Xw,transitionDuration:v}=a,m=se(a,QO),b=S({},a,{component:c,invisible:h}),R=JO(b),k=(r=y.root)!=null?r:f.root;return d.jsx(C,S({in:w,timeout:v},m,{children:d.jsx(ZO,S({"aria-hidden":!0},k,{as:(o=(i=x.root)!=null?i:u.Root)!=null?o:c,className:le(R.root,l,k==null?void 0:k.className),ownerState:S({},b,k==null?void 0:k.ownerState),classes:R,ref:n,children:s}))}))});function e3(e){return be("MuiBadge",e)}const Wr=we("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),t3=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Jd=10,Zd=4,n3=Ju(),r3=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:a={}}=e,s={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${Z(n.vertical)}${Z(n.horizontal)}`,`anchorOrigin${Z(n.vertical)}${Z(n.horizontal)}${Z(o)}`,`overlap${Z(o)}`,t!=="default"&&`color${Z(t)}`]};return Se(s,e3,a)},o3=ie("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),i3=ie("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Z(n.anchorOrigin.vertical)}${Z(n.anchorOrigin.horizontal)}${Z(n.overlap)}`],n.color!=="default"&&t[`color${Z(n.color)}`],n.invisible&&t.invisible]}})(({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Jd*2,lineHeight:1,padding:"0 6px",height:Jd*2,borderRadius:Jd,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r,o;return((r=e.vars)!=null?r:e).palette[n].main&&((o=e.vars)!=null?o:e).palette[n].contrastText}).map(n=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText}})),{props:{variant:"dot"},style:{borderRadius:Zd,height:Zd*2,minWidth:Zd*2,padding:0}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}),a3=p.forwardRef(function(t,n){var r,o,i,a,s,l;const c=n3({props:t,name:"MuiBadge"}),{anchorOrigin:u={vertical:"top",horizontal:"right"},className:f,component:h,components:w={},componentsProps:y={},children:x,overlap:C="rectangular",color:v="default",invisible:m=!1,max:b=99,badgeContent:R,slots:k,slotProps:T,showZero:P=!1,variant:j="standard"}=c,N=se(c,t3),{badgeContent:O,invisible:F,max:W,displayValue:U}=PM({max:b,invisible:m,badgeContent:R,showZero:P}),G=mw({anchorOrigin:u,color:v,overlap:C,variant:j,badgeContent:R}),ee=F||O==null&&j!=="dot",{color:J=v,overlap:re=C,anchorOrigin:I=u,variant:_=j}=ee?G:c,E=_!=="dot"?U:void 0,g=S({},c,{badgeContent:O,invisible:ee,max:W,displayValue:E,showZero:P,anchorOrigin:I,color:J,overlap:re,variant:_}),$=r3(g),z=(r=(o=k==null?void 0:k.root)!=null?o:w.Root)!=null?r:o3,L=(i=(a=k==null?void 0:k.badge)!=null?a:w.Badge)!=null?i:i3,B=(s=T==null?void 0:T.root)!=null?s:y.root,V=(l=T==null?void 0:T.badge)!=null?l:y.badge,M=fn({elementType:z,externalSlotProps:B,externalForwardedProps:N,additionalProps:{ref:n,as:h},ownerState:g,className:le(B==null?void 0:B.className,$.root,f)}),A=fn({elementType:L,externalSlotProps:V,ownerState:g,className:le($.badge,V==null?void 0:V.className)});return d.jsxs(z,S({},M,{children:[x,d.jsx(L,S({},A,{children:E}))]}))}),s3=we("MuiBox",["root"]),l3=Ns(),at=l$({themeId:Fo,defaultTheme:l3,defaultClassName:s3.root,generateClassName:Zh.generate});function c3(e){return be("MuiButton",e)}const gl=we("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),u3=p.createContext({}),d3=p.createContext(void 0),f3=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],p3=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,s={root:["root",i,`${i}${Z(t)}`,`size${Z(o)}`,`${i}Size${Z(o)}`,`color${Z(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Z(o)}`],endIcon:["icon","endIcon",`iconSize${Z(o)}`]},l=Se(s,c3,a);return S({},a,l)},Jw=e=>S({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),h3=ie(Ir,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Z(n.color)}`],t[`size${Z(n.size)}`],t[`${n.variant}Size${Z(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return S({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":S({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":S({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${gl.focusVisible}`]:S({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${gl.disabled}`]:S({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Fe(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${gl.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${gl.disabled}`]:{boxShadow:"none"}}),m3=ie("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Z(n.size)}`]]}})(({ownerState:e})=>S({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Jw(e))),g3=ie("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Z(n.size)}`]]}})(({ownerState:e})=>S({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Jw(e))),kt=p.forwardRef(function(t,n){const r=p.useContext(u3),o=p.useContext(d3),i=nm(r,t),a=Re({props:i,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:f=!1,disableElevation:h=!1,disableFocusRipple:w=!1,endIcon:y,focusVisibleClassName:x,fullWidth:C=!1,size:v="medium",startIcon:m,type:b,variant:R="text"}=a,k=se(a,f3),T=S({},a,{color:l,component:c,disabled:f,disableElevation:h,disableFocusRipple:w,fullWidth:C,size:v,type:b,variant:R}),P=p3(T),j=m&&d.jsx(m3,{className:P.startIcon,ownerState:T,children:m}),N=y&&d.jsx(g3,{className:P.endIcon,ownerState:T,children:y}),O=o||"";return d.jsxs(h3,S({ownerState:T,className:le(r.className,P.root,u,O),component:c,disabled:f,focusRipple:!w,focusVisibleClassName:le(P.focusVisible,x),ref:n,type:b},k,{classes:P,children:[j,s,N]}))});function v3(e){return be("MuiCard",e)}we("MuiCard",["root"]);const y3=["className","raised"],x3=e=>{const{classes:t}=e;return Se({root:["root"]},v3,t)},b3=ie(En,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),ad=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiCard"}),{className:o,raised:i=!1}=r,a=se(r,y3),s=S({},r,{raised:i}),l=x3(s);return d.jsx(b3,S({className:le(l.root,o),elevation:i?8:void 0,ref:n,ownerState:s},a))});function w3(e){return be("MuiCardContent",e)}we("MuiCardContent",["root"]);const S3=["className","component"],C3=e=>{const{classes:t}=e;return Se({root:["root"]},w3,t)},R3=ie("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),Cm=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiCardContent"}),{className:o,component:i="div"}=r,a=se(r,S3),s=S({},r,{component:i}),l=C3(s);return d.jsx(R3,S({as:i,className:le(l.root,o),ownerState:s,ref:n},a))});function k3(e){return be("PrivateSwitchBase",e)}we("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const P3=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],E3=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${Z(o)}`],input:["input"]};return Se(i,k3,t)},T3=ie(Ir)(({ownerState:e})=>S({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),$3=ie("input",{shouldForwardProp:Ht})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Zw=p.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:a,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:f,id:h,inputProps:w,inputRef:y,name:x,onBlur:C,onChange:v,onFocus:m,readOnly:b,required:R=!1,tabIndex:k,type:T,value:P}=t,j=se(t,P3),[N,O]=gs({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),F=br(),W=_=>{m&&m(_),F&&F.onFocus&&F.onFocus(_)},U=_=>{C&&C(_),F&&F.onBlur&&F.onBlur(_)},G=_=>{if(_.nativeEvent.defaultPrevented)return;const E=_.target.checked;O(E),v&&v(_,E)};let ee=l;F&&typeof ee>"u"&&(ee=F.disabled);const J=T==="checkbox"||T==="radio",re=S({},t,{checked:N,disabled:ee,disableFocusRipple:c,edge:u}),I=E3(re);return d.jsxs(T3,S({component:"span",className:le(I.root,a),centerRipple:!0,focusRipple:!c,disabled:ee,tabIndex:null,role:void 0,onFocus:W,onBlur:U,ownerState:re,ref:n},j,{children:[d.jsx($3,S({autoFocus:r,checked:o,defaultChecked:s,className:I.input,disabled:ee,id:J?h:void 0,name:x,onChange:G,readOnly:b,ref:y,required:R,ownerState:re,tabIndex:k,type:T},T==="checkbox"&&P===void 0?{}:{value:P},w)),N?i:f]}))}),M3=Vt(d.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),j3=Vt(d.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),O3=Vt(d.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function I3(e){return be("MuiCheckbox",e)}const ef=we("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),_3=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],L3=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate",`color${Z(r)}`,`size${Z(o)}`]},a=Se(i,I3,t);return S({},t,a)},A3=ie(Zw,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Z(n.size)}`],n.color!=="default"&&t[`color${Z(n.color)}`]]}})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${ef.checked}, &.${ef.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${ef.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),N3=d.jsx(j3,{}),D3=d.jsx(M3,{}),z3=d.jsx(O3,{}),Rm=p.forwardRef(function(t,n){var r,o;const i=Re({props:t,name:"MuiCheckbox"}),{checkedIcon:a=N3,color:s="primary",icon:l=D3,indeterminate:c=!1,indeterminateIcon:u=z3,inputProps:f,size:h="medium",className:w}=i,y=se(i,_3),x=c?u:l,C=c?u:a,v=S({},i,{color:s,indeterminate:c,size:h}),m=L3(v);return d.jsx(A3,S({type:"checkbox",inputProps:S({"data-indeterminate":c},f),icon:p.cloneElement(x,{fontSize:(r=x.props.fontSize)!=null?r:h}),checkedIcon:p.cloneElement(C,{fontSize:(o=C.props.fontSize)!=null?o:h}),ownerState:v,ref:n,className:le(m.root,w)},y,{classes:m}))});function B3(e){return be("MuiCircularProgress",e)}we("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const F3=["className","color","disableShrink","size","style","thickness","value","variant"];let sd=e=>e,ey,ty,ny,ry;const Hr=44,U3=Qi(ey||(ey=sd` + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } +`)),W3=Qi(ty||(ty=sd` + 0% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: 0; + } + + 50% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -15px; + } + + 100% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -125px; + } +`)),H3=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${Z(r)}`],svg:["svg"],circle:["circle",`circle${Z(n)}`,o&&"circleDisableShrink"]};return Se(i,B3,t)},V3=ie("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Z(n.color)}`]]}})(({ownerState:e,theme:t})=>S({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&wu(ny||(ny=sd` + animation: ${0} 1.4s linear infinite; + `),U3)),q3=ie("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),G3=ie("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Z(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>S({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&wu(ry||(ry=sd` + animation: ${0} 1.4s ease-in-out infinite; + `),W3)),_n=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:s=40,style:l,thickness:c=3.6,value:u=0,variant:f="indeterminate"}=r,h=se(r,F3),w=S({},r,{color:i,disableShrink:a,size:s,thickness:c,value:u,variant:f}),y=H3(w),x={},C={},v={};if(f==="determinate"){const m=2*Math.PI*((Hr-c)/2);x.strokeDasharray=m.toFixed(3),v["aria-valuenow"]=Math.round(u),x.strokeDashoffset=`${((100-u)/100*m).toFixed(3)}px`,C.transform="rotate(-90deg)"}return d.jsx(V3,S({className:le(y.root,o),style:S({width:s,height:s},C,l),ownerState:w,ref:n,role:"progressbar"},v,h,{children:d.jsx(q3,{className:y.svg,ownerState:w,viewBox:`${Hr/2} ${Hr/2} ${Hr} ${Hr}`,children:d.jsx(G3,{className:y.circle,style:x,ownerState:w,cx:Hr,cy:Hr,r:(Hr-c)/2,fill:"none",strokeWidth:c})})}))}),e2=Z$({createStyledComponent:ie("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Z(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Re({props:e,name:"MuiContainer"})}),K3=(e,t)=>S({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),Y3=e=>S({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),X3=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([a,s])=>{var l;r[e.getColorSchemeSelector(a).replace(/\s*&/,"")]={colorScheme:(l=s.palette)==null?void 0:l.mode}});let o=S({html:K3(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:S({margin:0},Y3(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const i=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return i&&(o=[o,i]),o};function km(e){const t=Re({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return d.jsxs(p.Fragment,{children:[d.jsx(Yw,{styles:o=>X3(o,r)}),n]})}function Q3(e){return be("MuiModal",e)}we("MuiModal",["root","hidden","backdrop"]);const J3=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Z3=e=>{const{open:t,exited:n,classes:r}=e;return Se({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Q3,r)},eI=ie("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>S({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),tI=ie(Qw,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Pm=p.forwardRef(function(t,n){var r,o,i,a,s,l;const c=Re({name:"MuiModal",props:t}),{BackdropComponent:u=tI,BackdropProps:f,className:h,closeAfterTransition:w=!1,children:y,container:x,component:C,components:v={},componentsProps:m={},disableAutoFocus:b=!1,disableEnforceFocus:R=!1,disableEscapeKeyDown:k=!1,disablePortal:T=!1,disableRestoreFocus:P=!1,disableScrollLock:j=!1,hideBackdrop:N=!1,keepMounted:O=!1,onBackdropClick:F,open:W,slotProps:U,slots:G}=c,ee=se(c,J3),J=S({},c,{closeAfterTransition:w,disableAutoFocus:b,disableEnforceFocus:R,disableEscapeKeyDown:k,disablePortal:T,disableRestoreFocus:P,disableScrollLock:j,hideBackdrop:N,keepMounted:O}),{getRootProps:re,getBackdropProps:I,getTransitionProps:_,portalRef:E,isTopModal:g,exited:$,hasTransition:z}=KM(S({},J,{rootRef:n})),L=S({},J,{exited:$}),B=Z3(L),V={};if(y.props.tabIndex===void 0&&(V.tabIndex="-1"),z){const{onEnter:te,onExited:ne}=_();V.onEnter=te,V.onExited=ne}const M=(r=(o=G==null?void 0:G.root)!=null?o:v.Root)!=null?r:eI,A=(i=(a=G==null?void 0:G.backdrop)!=null?a:v.Backdrop)!=null?i:u,Y=(s=U==null?void 0:U.root)!=null?s:m.root,K=(l=U==null?void 0:U.backdrop)!=null?l:m.backdrop,q=fn({elementType:M,externalSlotProps:Y,externalForwardedProps:ee,getSlotProps:re,additionalProps:{ref:n,as:C},ownerState:L,className:le(h,Y==null?void 0:Y.className,B==null?void 0:B.root,!L.open&&L.exited&&(B==null?void 0:B.hidden))}),oe=fn({elementType:A,externalSlotProps:K,additionalProps:f,getSlotProps:te=>I(S({},te,{onClick:ne=>{F&&F(ne),te!=null&&te.onClick&&te.onClick(ne)}})),className:le(K==null?void 0:K.className,f==null?void 0:f.className,B==null?void 0:B.backdrop),ownerState:L});return!O&&!W&&(!z||$)?null:d.jsx(Lw,{ref:E,container:x,disablePortal:T,children:d.jsxs(M,S({},q,{children:[!N&&u?d.jsx(A,S({},oe)):null,d.jsx(DM,{disableEnforceFocus:R,disableAutoFocus:b,disableRestoreFocus:P,isEnabled:g,open:W,children:p.cloneElement(y,V)})]}))})});function nI(e){return be("MuiDialog",e)}const tf=we("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),t2=p.createContext({}),rI=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],oI=ie(Qw,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),iI=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,a={root:["root"],container:["container",`scroll${Z(n)}`],paper:["paper",`paperScroll${Z(n)}`,`paperWidth${Z(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return Se(a,nI,t)},aI=ie(Pm,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),sI=ie("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Z(n.scroll)}`]]}})(({ownerState:e})=>S({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),lI=ie(En,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Z(n.scroll)}`],t[`paperWidth${Z(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>S({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${tf.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${tf.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${tf.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Mp=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialog"}),o=mo(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,BackdropComponent:l,BackdropProps:c,children:u,className:f,disableEscapeKeyDown:h=!1,fullScreen:w=!1,fullWidth:y=!1,maxWidth:x="sm",onBackdropClick:C,onClick:v,onClose:m,open:b,PaperComponent:R=En,PaperProps:k={},scroll:T="paper",TransitionComponent:P=Xw,transitionDuration:j=i,TransitionProps:N}=r,O=se(r,rI),F=S({},r,{disableEscapeKeyDown:h,fullScreen:w,fullWidth:y,maxWidth:x,scroll:T}),W=iI(F),U=p.useRef(),G=I=>{U.current=I.target===I.currentTarget},ee=I=>{v&&v(I),U.current&&(U.current=null,C&&C(I),m&&m(I,"backdropClick"))},J=_s(s),re=p.useMemo(()=>({titleId:J}),[J]);return d.jsx(aI,S({className:le(W.root,f),closeAfterTransition:!0,components:{Backdrop:oI},componentsProps:{backdrop:S({transitionDuration:j,as:l},c)},disableEscapeKeyDown:h,onClose:m,open:b,ref:n,onClick:ee,ownerState:F},O,{children:d.jsx(P,S({appear:!0,in:b,timeout:j,role:"presentation"},N,{children:d.jsx(sI,{className:le(W.container),onMouseDown:G,ownerState:F,children:d.jsx(lI,S({as:R,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":J},k,{className:le(W.paper,k.className),ownerState:F,children:d.jsx(t2.Provider,{value:re,children:u})}))})}))}))});function cI(e){return be("MuiDialogActions",e)}we("MuiDialogActions",["root","spacing"]);const uI=["className","disableSpacing"],dI=e=>{const{classes:t,disableSpacing:n}=e;return Se({root:["root",!n&&"spacing"]},cI,t)},fI=ie("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>S({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),jp=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1}=r,a=se(r,uI),s=S({},r,{disableSpacing:i}),l=dI(s);return d.jsx(fI,S({className:le(l.root,o),ownerState:s,ref:n},a))});function pI(e){return be("MuiDialogContent",e)}we("MuiDialogContent",["root","dividers"]);function hI(e){return be("MuiDialogTitle",e)}const mI=we("MuiDialogTitle",["root"]),gI=["className","dividers"],vI=e=>{const{classes:t,dividers:n}=e;return Se({root:["root",n&&"dividers"]},pI,t)},yI=ie("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>S({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${mI.root} + &`]:{paddingTop:0}})),Op=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,a=se(r,gI),s=S({},r,{dividers:i}),l=vI(s);return d.jsx(yI,S({className:le(l.root,o),ownerState:s,ref:n},a))});function xI(e){return be("MuiDialogContentText",e)}we("MuiDialogContentText",["root"]);const bI=["children","className"],wI=e=>{const{classes:t}=e,r=Se({root:["root"]},xI,t);return S({},t,r)},SI=ie(Ie,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),n2=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialogContentText"}),{className:o}=r,i=se(r,bI),a=wI(i);return d.jsx(SI,S({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:i,className:le(a.root,o)},r,{classes:a}))}),CI=["className","id"],RI=e=>{const{classes:t}=e;return Se({root:["root"]},hI,t)},kI=ie(Ie,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Ip=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialogTitle"}),{className:o,id:i}=r,a=se(r,CI),s=r,l=RI(s),{titleId:c=i}=p.useContext(t2);return d.jsx(kI,S({component:"h2",className:le(l.root,o),ownerState:s,ref:n,variant:"h6",id:i??c},a))});function PI(e){return be("MuiDivider",e)}const oy=we("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),EI=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],TI=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return Se({root:["root",t&&"absolute",l,i&&"light",a==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",s==="right"&&a!=="vertical"&&"textAlignRight",s==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},PI,r)},$I=ie("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>S({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Fe(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>S({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>S({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>S({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>S({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),MI=ie("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>S({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),xs=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:a,component:s=i?"div":"hr",flexItem:l=!1,light:c=!1,orientation:u="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:h="center",variant:w="fullWidth"}=r,y=se(r,EI),x=S({},r,{absolute:o,component:s,flexItem:l,light:c,orientation:u,role:f,textAlign:h,variant:w}),C=TI(x);return d.jsx($I,S({as:s,className:le(C.root,a),role:f,ref:n,ownerState:x},y,{children:i?d.jsx(MI,{className:C.wrapper,ownerState:x,children:i}):null}))});xs.muiSkipListHighlight=!0;const jI=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function OI(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=Bn(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const c=i.getComputedStyle(t);a=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let s=0,l=0;if(a&&a!=="none"&&typeof a=="string"){const c=a.split("(")[1].split(")")[0].split(",");s=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?o?`translateX(${o.right+s-r.left}px)`:`translateX(${i.innerWidth+s-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function II(e){return typeof e=="function"?e():e}function vl(e,t,n){const r=II(n),o=OI(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const _I=p.forwardRef(function(t,n){const r=mo(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,container:c,direction:u="down",easing:f=o,in:h,onEnter:w,onEntered:y,onEntering:x,onExit:C,onExited:v,onExiting:m,style:b,timeout:R=i,TransitionComponent:k=ar}=t,T=se(t,jI),P=p.useRef(null),j=lt(l.ref,P,n),N=I=>_=>{I&&(_===void 0?I(P.current):I(P.current,_))},O=N((I,_)=>{vl(u,I,c),pm(I),w&&w(I,_)}),F=N((I,_)=>{const E=Ai({timeout:R,style:b,easing:f},{mode:"enter"});I.style.webkitTransition=r.transitions.create("-webkit-transform",S({},E)),I.style.transition=r.transitions.create("transform",S({},E)),I.style.webkitTransform="none",I.style.transform="none",x&&x(I,_)}),W=N(y),U=N(m),G=N(I=>{const _=Ai({timeout:R,style:b,easing:f},{mode:"exit"});I.style.webkitTransition=r.transitions.create("-webkit-transform",_),I.style.transition=r.transitions.create("transform",_),vl(u,I,c),C&&C(I)}),ee=N(I=>{I.style.webkitTransition="",I.style.transition="",v&&v(I)}),J=I=>{a&&a(P.current,I)},re=p.useCallback(()=>{P.current&&vl(u,P.current,c)},[u,c]);return p.useEffect(()=>{if(h||u==="down"||u==="right")return;const I=ea(()=>{P.current&&vl(u,P.current,c)}),_=Bn(P.current);return _.addEventListener("resize",I),()=>{I.clear(),_.removeEventListener("resize",I)}},[u,h,c]),p.useEffect(()=>{h||re()},[h,re]),d.jsx(k,S({nodeRef:P,onEnter:O,onEntered:W,onEntering:F,onExit:G,onExited:ee,onExiting:U,addEndListener:J,appear:s,in:h,timeout:R},T,{children:(I,_)=>p.cloneElement(l,S({ref:j,style:S({visibility:I==="exited"&&!h?"hidden":void 0},b,l.props.style)},_))}))});function LI(e){return be("MuiDrawer",e)}we("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const AI=["BackdropProps"],NI=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],r2=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},DI=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Z(n)}`,r!=="temporary"&&`paperAnchorDocked${Z(n)}`]};return Se(o,LI,t)},zI=ie(Pm,{name:"MuiDrawer",slot:"Root",overridesResolver:r2})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),iy=ie("div",{shouldForwardProp:Ht,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:r2})({flex:"0 0 auto"}),BI=ie(En,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${Z(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${Z(n.anchor)}`]]}})(({theme:e,ownerState:t})=>S({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),o2={left:"right",right:"left",top:"down",bottom:"up"};function FI(e){return["left","right"].indexOf(e)!==-1}function UI({direction:e},t){return e==="rtl"&&FI(t)?o2[t]:t}const WI=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDrawer"}),o=mo(),i=As(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:l,children:c,className:u,elevation:f=16,hideBackdrop:h=!1,ModalProps:{BackdropProps:w}={},onClose:y,open:x=!1,PaperProps:C={},SlideProps:v,TransitionComponent:m=_I,transitionDuration:b=a,variant:R="temporary"}=r,k=se(r.ModalProps,AI),T=se(r,NI),P=p.useRef(!1);p.useEffect(()=>{P.current=!0},[]);const j=UI({direction:i?"rtl":"ltr"},s),O=S({},r,{anchor:s,elevation:f,open:x,variant:R},T),F=DI(O),W=d.jsx(BI,S({elevation:R==="temporary"?f:0,square:!0},C,{className:le(F.paper,C.className),ownerState:O,children:c}));if(R==="permanent")return d.jsx(iy,S({className:le(F.root,F.docked,u),ownerState:O,ref:n},T,{children:W}));const U=d.jsx(m,S({in:x,direction:o2[j],timeout:b,appear:P.current},v,{children:W}));return R==="persistent"?d.jsx(iy,S({className:le(F.root,F.docked,u),ownerState:O,ref:n},T,{children:U})):d.jsx(zI,S({BackdropProps:S({},l,w,{transitionDuration:b}),className:le(F.root,F.modal,u),open:x,ownerState:O,onClose:y,hideBackdrop:h,ref:n},T,k,{children:U}))}),HI=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],VI=e=>{const{classes:t,disableUnderline:n}=e,o=Se({root:["root",!n&&"underline"],input:["input"]},NO,t);return S({},t,o)},qI=ie(od,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...nd(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return S({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${xo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${xo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${xo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${xo.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${xo.disabled}, .${xo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${xo.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&S({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),GI=ie(id,{name:"MuiFilledInput",slot:"Input",overridesResolver:rd})(({theme:e,ownerState:t})=>S({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),Em=p.forwardRef(function(t,n){var r,o,i,a;const s=Re({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:f="input",multiline:h=!1,slotProps:w,slots:y={},type:x="text"}=s,C=se(s,HI),v=S({},s,{fullWidth:u,inputComponent:f,multiline:h,type:x}),m=VI(s),b={root:{ownerState:v},input:{ownerState:v}},R=w??c?Qt(b,w??c):b,k=(r=(o=y.root)!=null?o:l.Root)!=null?r:qI,T=(i=(a=y.input)!=null?a:l.Input)!=null?i:GI;return d.jsx(Sm,S({slots:{root:k,input:T},componentsProps:R,fullWidth:u,inputComponent:f,multiline:h,ref:n,type:x},C,{classes:m}))});Em.muiName="Input";function KI(e){return be("MuiFormControl",e)}we("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const YI=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],XI=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Z(n)}`,r&&"fullWidth"]};return Se(o,KI,t)},QI=ie("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,t[`margin${Z(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>S({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),ld=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:f=!1,hiddenLabel:h=!1,margin:w="none",required:y=!1,size:x="medium",variant:C="outlined"}=r,v=se(r,YI),m=S({},r,{color:a,component:s,disabled:l,error:c,fullWidth:f,hiddenLabel:h,margin:w,required:y,size:x,variant:C}),b=XI(m),[R,k]=p.useState(()=>{let U=!1;return o&&p.Children.forEach(o,G=>{if(!Fa(G,["Input","Select"]))return;const ee=Fa(G,["Select"])?G.props.input:G;ee&&$O(ee.props)&&(U=!0)}),U}),[T,P]=p.useState(()=>{let U=!1;return o&&p.Children.forEach(o,G=>{Fa(G,["Input","Select"])&&(Mc(G.props,!0)||Mc(G.props.inputProps,!0))&&(U=!0)}),U}),[j,N]=p.useState(!1);l&&j&&N(!1);const O=u!==void 0&&!l?u:j;let F;const W=p.useMemo(()=>({adornedStart:R,setAdornedStart:k,color:a,disabled:l,error:c,filled:T,focused:O,fullWidth:f,hiddenLabel:h,size:x,onBlur:()=>{N(!1)},onEmpty:()=>{P(!1)},onFilled:()=>{P(!0)},onFocus:()=>{N(!0)},registerEffect:F,required:y,variant:C}),[R,a,l,c,T,O,f,h,F,y,x,C]);return d.jsx(td.Provider,{value:W,children:d.jsx(QI,S({as:s,ownerState:m,className:le(b.root,i),ref:n},v,{children:o}))})}),JI=s4({createStyledComponent:ie("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Re({props:e,name:"MuiStack"})});function ZI(e){return be("MuiFormControlLabel",e)}const Ma=we("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),e_=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],t_=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,a={root:["root",n&&"disabled",`labelPlacement${Z(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Se(a,ZI,t)},n_=ie("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ma.label}`]:t.label},t.root,t[`labelPlacement${Z(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>S({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Ma.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Ma.label}`]:{[`&.${Ma.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),r_=ie("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Ma.error}`]:{color:(e.vars||e).palette.error.main}})),Tm=p.forwardRef(function(t,n){var r,o;const i=Re({props:t,name:"MuiFormControlLabel"}),{className:a,componentsProps:s={},control:l,disabled:c,disableTypography:u,label:f,labelPlacement:h="end",required:w,slotProps:y={}}=i,x=se(i,e_),C=br(),v=(r=c??l.props.disabled)!=null?r:C==null?void 0:C.disabled,m=w??l.props.required,b={disabled:v,required:m};["checked","name","onChange","value","inputRef"].forEach(N=>{typeof l.props[N]>"u"&&typeof i[N]<"u"&&(b[N]=i[N])});const R=vo({props:i,muiFormControl:C,states:["error"]}),k=S({},i,{disabled:v,labelPlacement:h,required:m,error:R.error}),T=t_(k),P=(o=y.typography)!=null?o:s.typography;let j=f;return j!=null&&j.type!==Ie&&!u&&(j=d.jsx(Ie,S({component:"span"},P,{className:le(T.label,P==null?void 0:P.className),children:j}))),d.jsxs(n_,S({className:le(T.root,a),ownerState:k,ref:n},x,{children:[p.cloneElement(l,b),m?d.jsxs(JI,{display:"block",children:[j,d.jsxs(r_,{ownerState:k,"aria-hidden":!0,className:T.asterisk,children:[" ","*"]})]}):j]}))});function o_(e){return be("MuiFormGroup",e)}we("MuiFormGroup",["root","row","error"]);const i_=["className","row"],a_=e=>{const{classes:t,row:n,error:r}=e;return Se({root:["root",n&&"row",r&&"error"]},o_,t)},s_=ie("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>S({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),i2=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiFormGroup"}),{className:o,row:i=!1}=r,a=se(r,i_),s=br(),l=vo({props:r,muiFormControl:s,states:["error"]}),c=S({},r,{row:i,error:l.error}),u=a_(c);return d.jsx(s_,S({className:le(u.root,o),ownerState:c,ref:n},a))});function l_(e){return be("MuiFormHelperText",e)}const ay=we("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var sy;const c_=["children","className","component","disabled","error","filled","focused","margin","required","variant"],u_=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:a,focused:s,required:l}=e,c={root:["root",o&&"disabled",i&&"error",r&&`size${Z(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return Se(c,l_,t)},d_=ie("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Z(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${ay.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ay.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),f_=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:a="p"}=r,s=se(r,c_),l=br(),c=vo({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),u=S({},r,{component:a,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=u_(u);return d.jsx(d_,S({as:a,ownerState:u,className:le(f.root,i),ref:n},s,{children:o===" "?sy||(sy=d.jsx("span",{className:"notranslate",children:"​"})):o}))});function p_(e){return be("MuiFormLabel",e)}const Va=we("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),h_=["children","className","color","component","disabled","error","filled","focused","required"],m_=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:s}=e,l={root:["root",`color${Z(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return Se(l,p_,t)},g_=ie("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Va.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Va.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Va.error}`]:{color:(e.vars||e).palette.error.main}})),v_=ie("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Va.error}`]:{color:(e.vars||e).palette.error.main}})),y_=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:a="label"}=r,s=se(r,h_),l=br(),c=vo({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),u=S({},r,{color:c.color||"primary",component:a,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=m_(u);return d.jsxs(g_,S({as:a,ownerState:u,className:le(f.root,i),ref:n},s,{children:[o,c.required&&d.jsxs(v_,{ownerState:u,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),x_=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function _p(e){return`scale(${e}, ${e**2})`}const b_={entering:{opacity:1,transform:_p(1)},entered:{opacity:1,transform:"none"}},nf=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),bs=p.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:f,onExited:h,onExiting:w,style:y,timeout:x="auto",TransitionComponent:C=ar}=t,v=se(t,x_),m=To(),b=p.useRef(),R=mo(),k=p.useRef(null),T=lt(k,i.ref,n),P=ee=>J=>{if(ee){const re=k.current;J===void 0?ee(re):ee(re,J)}},j=P(u),N=P((ee,J)=>{pm(ee);const{duration:re,delay:I,easing:_}=Ai({style:y,timeout:x,easing:a},{mode:"enter"});let E;x==="auto"?(E=R.transitions.getAutoHeightDuration(ee.clientHeight),b.current=E):E=re,ee.style.transition=[R.transitions.create("opacity",{duration:E,delay:I}),R.transitions.create("transform",{duration:nf?E:E*.666,delay:I,easing:_})].join(","),l&&l(ee,J)}),O=P(c),F=P(w),W=P(ee=>{const{duration:J,delay:re,easing:I}=Ai({style:y,timeout:x,easing:a},{mode:"exit"});let _;x==="auto"?(_=R.transitions.getAutoHeightDuration(ee.clientHeight),b.current=_):_=J,ee.style.transition=[R.transitions.create("opacity",{duration:_,delay:re}),R.transitions.create("transform",{duration:nf?_:_*.666,delay:nf?re:re||_*.333,easing:I})].join(","),ee.style.opacity=0,ee.style.transform=_p(.75),f&&f(ee)}),U=P(h),G=ee=>{x==="auto"&&m.start(b.current||0,ee),r&&r(k.current,ee)};return d.jsx(C,S({appear:o,in:s,nodeRef:k,onEnter:N,onEntered:O,onEntering:j,onExit:W,onExited:U,onExiting:F,addEndListener:G,timeout:x==="auto"?null:x},v,{children:(ee,J)=>p.cloneElement(i,S({style:S({opacity:0,transform:_p(.75),visibility:ee==="exited"&&!s?"hidden":void 0},b_[ee],y,i.props.style),ref:T},J))}))});bs.muiSupportAuto=!0;const w_=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],S_=e=>{const{classes:t,disableUnderline:n}=e,o=Se({root:["root",!n&&"underline"],input:["input"]},LO,t);return S({},t,o)},C_=ie(od,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...nd(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),S({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${xa.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${xa.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${xa.disabled}, .${xa.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${xa.disabled}:before`]:{borderBottomStyle:"dotted"}})}),R_=ie(id,{name:"MuiInput",slot:"Input",overridesResolver:rd})({}),$m=p.forwardRef(function(t,n){var r,o,i,a;const s=Re({props:t,name:"MuiInput"}),{disableUnderline:l,components:c={},componentsProps:u,fullWidth:f=!1,inputComponent:h="input",multiline:w=!1,slotProps:y,slots:x={},type:C="text"}=s,v=se(s,w_),m=S_(s),R={root:{ownerState:{disableUnderline:l}}},k=y??u?Qt(y??u,R):R,T=(r=(o=x.root)!=null?o:c.Root)!=null?r:C_,P=(i=(a=x.input)!=null?a:c.Input)!=null?i:R_;return d.jsx(Sm,S({slots:{root:T,input:P},slotProps:k,fullWidth:f,inputComponent:h,multiline:w,ref:n,type:C},v,{classes:m}))});$m.muiName="Input";function k_(e){return be("MuiInputAdornment",e)}const ly=we("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var cy;const P_=["children","className","component","disablePointerEvents","disableTypography","position","variant"],E_=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Z(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},T_=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${Z(o)}`,a,r&&"hiddenLabel",i&&`size${Z(i)}`]};return Se(s,k_,t)},$_=ie("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:E_})(({theme:e,ownerState:t})=>S({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${ly.positionStart}&:not(.${ly.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),jc=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u}=r,f=se(r,P_),h=br()||{};let w=u;u&&h.variant,h&&!w&&(w=h.variant);const y=S({},r,{hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:s,position:c,variant:w}),x=T_(y);return d.jsx(td.Provider,{value:null,children:d.jsx($_,S({as:a,ownerState:y,className:le(x.root,i),ref:n},f,{children:typeof o=="string"&&!l?d.jsx(Ie,{color:"text.secondary",children:o}):d.jsxs(p.Fragment,{children:[c==="start"?cy||(cy=d.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})});function M_(e){return be("MuiInputLabel",e)}we("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const j_=["disableAnimation","margin","shrink","variant","className"],O_=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:s}=e,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${Z(r)}`,a],asterisk:[s&&"asterisk"]},c=Se(l,M_,t);return S({},t,c)},I_=ie(y_,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Va.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>S({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&S({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&S({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&S({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),cd=p.forwardRef(function(t,n){const r=Re({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:a}=r,s=se(r,j_),l=br();let c=i;typeof c>"u"&&l&&(c=l.filled||l.focused||l.adornedStart);const u=vo({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),f=S({},r,{disableAnimation:o,formControl:l,shrink:c,size:u.size,variant:u.variant,required:u.required,focused:u.focused}),h=O_(f);return d.jsx(I_,S({"data-shrink":c,ownerState:f,ref:n,className:le(h.root,a)},s,{classes:h}))}),gr=p.createContext({});function __(e){return be("MuiList",e)}we("MuiList",["root","padding","dense","subheader"]);const L_=["children","className","component","dense","disablePadding","subheader"],A_=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Se({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},__,t)},N_=ie("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>S({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Fs=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:c}=r,u=se(r,L_),f=p.useMemo(()=>({dense:s}),[s]),h=S({},r,{component:a,dense:s,disablePadding:l}),w=A_(h);return d.jsx(gr.Provider,{value:f,children:d.jsxs(N_,S({as:a,className:le(w.root,i),ref:n,ownerState:h},u,{children:[c,o]}))})});function D_(e){return be("MuiListItem",e)}const oi=we("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),z_=we("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function B_(e){return be("MuiListItemSecondaryAction",e)}we("MuiListItemSecondaryAction",["root","disableGutters"]);const F_=["className"],U_=e=>{const{disableGutters:t,classes:n}=e;return Se({root:["root",t&&"disableGutters"]},B_,n)},W_=ie("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>S({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),a2=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=se(r,F_),a=p.useContext(gr),s=S({},r,{disableGutters:a.disableGutters}),l=U_(s);return d.jsx(W_,S({className:le(l.root,o),ownerState:s,ref:n},i))});a2.muiName="ListItemSecondaryAction";const H_=["className"],V_=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],q_=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},G_=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=e;return Se({root:["root",o&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},D_,r)},K_=ie("div",{name:"MuiListItem",slot:"Root",overridesResolver:q_})(({theme:e,ownerState:t})=>S({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&S({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${z_.root}`]:{paddingRight:48}},{[`&.${oi.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${oi.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${oi.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${oi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${oi.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Y_=ie("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Oc=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:a=!1,children:s,className:l,component:c,components:u={},componentsProps:f={},ContainerComponent:h="li",ContainerProps:{className:w}={},dense:y=!1,disabled:x=!1,disableGutters:C=!1,disablePadding:v=!1,divider:m=!1,focusVisibleClassName:b,secondaryAction:R,selected:k=!1,slotProps:T={},slots:P={}}=r,j=se(r.ContainerProps,H_),N=se(r,V_),O=p.useContext(gr),F=p.useMemo(()=>({dense:y||O.dense||!1,alignItems:o,disableGutters:C}),[o,O.dense,y,C]),W=p.useRef(null);Sn(()=>{i&&W.current&&W.current.focus()},[i]);const U=p.Children.toArray(s),G=U.length&&Fa(U[U.length-1],["ListItemSecondaryAction"]),ee=S({},r,{alignItems:o,autoFocus:i,button:a,dense:F.dense,disabled:x,disableGutters:C,disablePadding:v,divider:m,hasSecondaryAction:G,selected:k}),J=G_(ee),re=lt(W,n),I=P.root||u.Root||K_,_=T.root||f.root||{},E=S({className:le(J.root,_.className,l),disabled:x},N);let g=c||"li";return a&&(E.component=c||"div",E.focusVisibleClassName=le(oi.focusVisible,b),g=Ir),G?(g=!E.component&&!c?"div":g,h==="li"&&(g==="li"?g="div":E.component==="li"&&(E.component="div")),d.jsx(gr.Provider,{value:F,children:d.jsxs(Y_,S({as:h,className:le(J.container,w),ref:re,ownerState:ee},j,{children:[d.jsx(I,S({},_,!Ni(I)&&{as:g,ownerState:S({},ee,_.ownerState)},E,{children:U})),U.pop()]}))})):d.jsx(gr.Provider,{value:F,children:d.jsxs(I,S({},_,{as:g,ref:re},!Ni(I)&&{ownerState:S({},ee,_.ownerState)},E,{children:[U,R&&d.jsx(a2,{children:R})]}))})});function X_(e){return be("MuiListItemAvatar",e)}we("MuiListItemAvatar",["root","alignItemsFlexStart"]);const Q_=["className"],J_=e=>{const{alignItems:t,classes:n}=e;return Se({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},X_,n)},Z_=ie("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>S({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),eL=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiListItemAvatar"}),{className:o}=r,i=se(r,Q_),a=p.useContext(gr),s=S({},r,{alignItems:a.alignItems}),l=J_(s);return d.jsx(Z_,S({className:le(l.root,o),ownerState:s,ref:n},i))});function tL(e){return be("MuiListItemIcon",e)}const uy=we("MuiListItemIcon",["root","alignItemsFlexStart"]),nL=["className"],rL=e=>{const{alignItems:t,classes:n}=e;return Se({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},tL,n)},oL=ie("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>S({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),dy=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiListItemIcon"}),{className:o}=r,i=se(r,nL),a=p.useContext(gr),s=S({},r,{alignItems:a.alignItems}),l=rL(s);return d.jsx(oL,S({className:le(l.root,o),ownerState:s,ref:n},i))});function iL(e){return be("MuiListItemText",e)}const Ic=we("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),aL=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],sL=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return Se({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},iL,t)},lL=ie("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ic.primary}`]:t.primary},{[`& .${Ic.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>S({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),ws=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:f}=r,h=se(r,aL),{dense:w}=p.useContext(gr);let y=l??o,x=u;const C=S({},r,{disableTypography:a,inset:s,primary:!!y,secondary:!!x,dense:w}),v=sL(C);return y!=null&&y.type!==Ie&&!a&&(y=d.jsx(Ie,S({variant:w?"body2":"body1",className:v.primary,component:c!=null&&c.variant?void 0:"span",display:"block"},c,{children:y}))),x!=null&&x.type!==Ie&&!a&&(x=d.jsx(Ie,S({variant:"body2",className:v.secondary,color:"text.secondary",display:"block"},f,{children:x}))),d.jsxs(lL,S({className:le(v.root,i),ownerState:C,ref:n},h,{children:[y,x]}))}),cL=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function rf(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function fy(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function s2(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function ba(e,t,n,r,o,i){let a=!1,s=o(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!s2(s,i)||l)s=o(e,s,n);else return s.focus(),!0}return!1}const uL=p.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:f="selectedMenu"}=t,h=se(t,cL),w=p.useRef(null),y=p.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Sn(()=>{o&&w.current.focus()},[o]),p.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(b,{direction:R})=>{const k=!w.current.style.width;if(b.clientHeight{const R=w.current,k=b.key,T=St(R).activeElement;if(k==="ArrowDown")b.preventDefault(),ba(R,T,c,l,rf);else if(k==="ArrowUp")b.preventDefault(),ba(R,T,c,l,fy);else if(k==="Home")b.preventDefault(),ba(R,null,c,l,rf);else if(k==="End")b.preventDefault(),ba(R,null,c,l,fy);else if(k.length===1){const P=y.current,j=k.toLowerCase(),N=performance.now();P.keys.length>0&&(N-P.lastTime>500?(P.keys=[],P.repeating=!0,P.previousKeyMatched=!0):P.repeating&&j!==P.keys[0]&&(P.repeating=!1)),P.lastTime=N,P.keys.push(j);const O=T&&!P.repeating&&s2(T,P);P.previousKeyMatched&&(O||ba(R,T,!1,l,rf,P))?b.preventDefault():P.previousKeyMatched=!1}u&&u(b)},C=lt(w,n);let v=-1;p.Children.forEach(a,(b,R)=>{if(!p.isValidElement(b)){v===R&&(v+=1,v>=a.length&&(v=-1));return}b.props.disabled||(f==="selectedMenu"&&b.props.selected||v===-1)&&(v=R),v===R&&(b.props.disabled||b.props.muiSkipListHighlight||b.type.muiSkipListHighlight)&&(v+=1,v>=a.length&&(v=-1))});const m=p.Children.map(a,(b,R)=>{if(R===v){const k={};return i&&(k.autoFocus=!0),b.props.tabIndex===void 0&&f==="selectedMenu"&&(k.tabIndex=0),p.cloneElement(b,k)}return b});return d.jsx(Fs,S({role:"menu",ref:C,className:s,onKeyDown:x,tabIndex:o?0:-1},h,{children:m}))});function dL(e){return be("MuiPopover",e)}we("MuiPopover",["root","paper"]);const fL=["onEntering"],pL=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],hL=["slotProps"];function py(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function hy(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function my(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function of(e){return typeof e=="function"?e():e}const mL=e=>{const{classes:t}=e;return Se({root:["root"],paper:["paper"]},dL,t)},gL=ie(Pm,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),l2=ie(En,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),vL=p.forwardRef(function(t,n){var r,o,i;const a=Re({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:f="anchorEl",children:h,className:w,container:y,elevation:x=8,marginThreshold:C=16,open:v,PaperProps:m={},slots:b,slotProps:R,transformOrigin:k={vertical:"top",horizontal:"left"},TransitionComponent:T=bs,transitionDuration:P="auto",TransitionProps:{onEntering:j}={},disableScrollLock:N=!1}=a,O=se(a.TransitionProps,fL),F=se(a,pL),W=(r=R==null?void 0:R.paper)!=null?r:m,U=p.useRef(),G=lt(U,W.ref),ee=S({},a,{anchorOrigin:c,anchorReference:f,elevation:x,marginThreshold:C,externalPaperSlotProps:W,transformOrigin:k,TransitionComponent:T,transitionDuration:P,TransitionProps:O}),J=mL(ee),re=p.useCallback(()=>{if(f==="anchorPosition")return u;const te=of(l),de=(te&&te.nodeType===1?te:St(U.current).body).getBoundingClientRect();return{top:de.top+py(de,c.vertical),left:de.left+hy(de,c.horizontal)}},[l,c.horizontal,c.vertical,u,f]),I=p.useCallback(te=>({vertical:py(te,k.vertical),horizontal:hy(te,k.horizontal)}),[k.horizontal,k.vertical]),_=p.useCallback(te=>{const ne={width:te.offsetWidth,height:te.offsetHeight},de=I(ne);if(f==="none")return{top:null,left:null,transformOrigin:my(de)};const ke=re();let H=ke.top-de.vertical,ae=ke.left-de.horizontal;const ge=H+ne.height,D=ae+ne.width,X=Bn(of(l)),fe=X.innerHeight-C,pe=X.innerWidth-C;if(C!==null&&Hfe){const ve=ge-fe;H-=ve,de.vertical+=ve}if(C!==null&&aepe){const ve=D-pe;ae-=ve,de.horizontal+=ve}return{top:`${Math.round(H)}px`,left:`${Math.round(ae)}px`,transformOrigin:my(de)}},[l,f,re,I,C]),[E,g]=p.useState(v),$=p.useCallback(()=>{const te=U.current;if(!te)return;const ne=_(te);ne.top!==null&&(te.style.top=ne.top),ne.left!==null&&(te.style.left=ne.left),te.style.transformOrigin=ne.transformOrigin,g(!0)},[_]);p.useEffect(()=>(N&&window.addEventListener("scroll",$),()=>window.removeEventListener("scroll",$)),[l,N,$]);const z=(te,ne)=>{j&&j(te,ne),$()},L=()=>{g(!1)};p.useEffect(()=>{v&&$()}),p.useImperativeHandle(s,()=>v?{updatePosition:()=>{$()}}:null,[v,$]),p.useEffect(()=>{if(!v)return;const te=ea(()=>{$()}),ne=Bn(l);return ne.addEventListener("resize",te),()=>{te.clear(),ne.removeEventListener("resize",te)}},[l,v,$]);let B=P;P==="auto"&&!T.muiSupportAuto&&(B=void 0);const V=y||(l?St(of(l)).body:void 0),M=(o=b==null?void 0:b.root)!=null?o:gL,A=(i=b==null?void 0:b.paper)!=null?i:l2,Y=fn({elementType:A,externalSlotProps:S({},W,{style:E?W.style:S({},W.style,{opacity:0})}),additionalProps:{elevation:x,ref:G},ownerState:ee,className:le(J.paper,W==null?void 0:W.className)}),K=fn({elementType:M,externalSlotProps:(R==null?void 0:R.root)||{},externalForwardedProps:F,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:V,open:v},ownerState:ee,className:le(J.root,w)}),{slotProps:q}=K,oe=se(K,hL);return d.jsx(M,S({},oe,!Ni(M)&&{slotProps:q,disableScrollLock:N},{children:d.jsx(T,S({appear:!0,in:v,onEntering:z,onExited:L,timeout:B},O,{children:d.jsx(A,S({},Y,{children:h}))}))}))});function yL(e){return be("MuiMenu",e)}we("MuiMenu",["root","paper","list"]);const xL=["onEntering"],bL=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],wL={vertical:"top",horizontal:"right"},SL={vertical:"top",horizontal:"left"},CL=e=>{const{classes:t}=e;return Se({root:["root"],paper:["paper"],list:["list"]},yL,t)},RL=ie(vL,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),kL=ie(l2,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),PL=ie(uL,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),c2=p.forwardRef(function(t,n){var r,o;const i=Re({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:f,open:h,PaperProps:w={},PopoverClasses:y,transitionDuration:x="auto",TransitionProps:{onEntering:C}={},variant:v="selectedMenu",slots:m={},slotProps:b={}}=i,R=se(i.TransitionProps,xL),k=se(i,bL),T=As(),P=S({},i,{autoFocus:a,disableAutoFocusItem:c,MenuListProps:u,onEntering:C,PaperProps:w,transitionDuration:x,TransitionProps:R,variant:v}),j=CL(P),N=a&&!c&&h,O=p.useRef(null),F=(I,_)=>{O.current&&O.current.adjustStyleForScrollbar(I,{direction:T?"rtl":"ltr"}),C&&C(I,_)},W=I=>{I.key==="Tab"&&(I.preventDefault(),f&&f(I,"tabKeyDown"))};let U=-1;p.Children.map(s,(I,_)=>{p.isValidElement(I)&&(I.props.disabled||(v==="selectedMenu"&&I.props.selected||U===-1)&&(U=_))});const G=(r=m.paper)!=null?r:kL,ee=(o=b.paper)!=null?o:w,J=fn({elementType:m.root,externalSlotProps:b.root,ownerState:P,className:[j.root,l]}),re=fn({elementType:G,externalSlotProps:ee,ownerState:P,className:j.paper});return d.jsx(RL,S({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:T?"right":"left"},transformOrigin:T?wL:SL,slots:{paper:G,root:m.root},slotProps:{root:J,paper:re},open:h,ref:n,transitionDuration:x,TransitionProps:S({onEntering:F},R),ownerState:P},k,{classes:y,children:d.jsx(PL,S({onKeyDown:W,actions:O,autoFocus:a&&(U===-1||c),autoFocusItem:N,variant:v},u,{className:le(j.list,u.className),children:s}))}))});function EL(e){return be("MuiMenuItem",e)}const wa=we("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),TL=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],$L=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},ML=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,l=Se({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},EL,a);return S({},a,l)},jL=ie(Ir,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:$L})(({theme:e,ownerState:t})=>S({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${wa.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${wa.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${wa.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${wa.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${wa.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${oy.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${oy.inset}`]:{marginLeft:52},[`& .${Ic.root}`]:{marginTop:0,marginBottom:0},[`& .${Ic.inset}`]:{paddingLeft:36},[`& .${uy.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&S({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${uy.root} svg`]:{fontSize:"1.25rem"}}))),Jn=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:f,className:h}=r,w=se(r,TL),y=p.useContext(gr),x=p.useMemo(()=>({dense:a||y.dense||!1,disableGutters:l}),[y.dense,a,l]),C=p.useRef(null);Sn(()=>{o&&C.current&&C.current.focus()},[o]);const v=S({},r,{dense:x.dense,divider:s,disableGutters:l}),m=ML(r),b=lt(C,n);let R;return r.disabled||(R=f!==void 0?f:-1),d.jsx(gr.Provider,{value:x,children:d.jsx(jL,S({ref:b,role:u,tabIndex:R,component:i,focusVisibleClassName:le(m.focusVisible,c),className:le(m.root,h)},w,{ownerState:v,classes:m}))})});function OL(e){return be("MuiNativeSelect",e)}const Mm=we("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),IL=["className","disabled","error","IconComponent","inputRef","variant"],_L=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Z(n)}`,i&&"iconOpen",r&&"disabled"]};return Se(s,OL,t)},u2=({ownerState:e,theme:t})=>S({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":S({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Mm.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),LL=ie("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ht,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Mm.multiple}`]:t.multiple}]}})(u2),d2=({ownerState:e,theme:t})=>S({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Mm.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),AL=ie("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Z(n.variant)}`],n.open&&t.iconOpen]}})(d2),NL=p.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:a,inputRef:s,variant:l="standard"}=t,c=se(t,IL),u=S({},t,{disabled:o,variant:l,error:i}),f=_L(u);return d.jsxs(p.Fragment,{children:[d.jsx(LL,S({ownerState:u,className:le(f.select,r),disabled:o,ref:s||n},c)),t.multiple?null:d.jsx(AL,{as:a,ownerState:u,className:f.icon})]})});var gy;const DL=["children","classes","className","label","notched"],zL=ie("fieldset",{shouldForwardProp:Ht})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),BL=ie("legend",{shouldForwardProp:Ht})(({ownerState:e,theme:t})=>S({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&S({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function FL(e){const{className:t,label:n,notched:r}=e,o=se(e,DL),i=n!=null&&n!=="",a=S({},e,{notched:r,withLabel:i});return d.jsx(zL,S({"aria-hidden":!0,className:t,ownerState:a},o,{children:d.jsx(BL,{ownerState:a,children:i?d.jsx("span",{children:n}):gy||(gy=d.jsx("span",{className:"notranslate",children:"​"}))})}))}const UL=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],WL=e=>{const{classes:t}=e,r=Se({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},AO,t);return S({},t,r)},HL=ie(od,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:nd})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return S({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ur.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ur.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Ur.focused} .${Ur.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Ur.error} .${Ur.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ur.disabled} .${Ur.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&S({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),VL=ie(FL,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),qL=ie(id,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:rd})(({theme:e,ownerState:t})=>S({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),jm=p.forwardRef(function(t,n){var r,o,i,a,s;const l=Re({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:f="input",label:h,multiline:w=!1,notched:y,slots:x={},type:C="text"}=l,v=se(l,UL),m=WL(l),b=br(),R=vo({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),k=S({},l,{color:R.color||"primary",disabled:R.disabled,error:R.error,focused:R.focused,formControl:b,fullWidth:u,hiddenLabel:R.hiddenLabel,multiline:w,size:R.size,type:C}),T=(r=(o=x.root)!=null?o:c.Root)!=null?r:HL,P=(i=(a=x.input)!=null?a:c.Input)!=null?i:qL;return d.jsx(Sm,S({slots:{root:T,input:P},renderSuffix:j=>d.jsx(VL,{ownerState:k,className:m.notchedOutline,label:h!=null&&h!==""&&R.required?s||(s=d.jsxs(p.Fragment,{children:[h," ","*"]})):h,notched:typeof y<"u"?y:!!(j.startAdornment||j.filled||j.focused)}),fullWidth:u,inputComponent:f,multiline:w,ref:n,type:C},v,{classes:S({},m,{notchedOutline:null})}))});jm.muiName="Input";function GL(e){return be("MuiSelect",e)}const Sa=we("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var vy;const KL=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],YL=ie("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Sa.select}`]:t.select},{[`&.${Sa.select}`]:t[n.variant]},{[`&.${Sa.error}`]:t.error},{[`&.${Sa.multiple}`]:t.multiple}]}})(u2,{[`&.${Sa.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),XL=ie("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Z(n.variant)}`],n.open&&t.iconOpen]}})(d2),QL=ie("input",{shouldForwardProp:e=>Tw(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function yy(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function JL(e){return e==null||typeof e=="string"&&!e.trim()}const ZL=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Z(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Se(s,GL,t)},eA=p.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":i,autoFocus:a,autoWidth:s,children:l,className:c,defaultOpen:u,defaultValue:f,disabled:h,displayEmpty:w,error:y=!1,IconComponent:x,inputRef:C,labelId:v,MenuProps:m={},multiple:b,name:R,onBlur:k,onChange:T,onClose:P,onFocus:j,onOpen:N,open:O,readOnly:F,renderValue:W,SelectDisplayProps:U={},tabIndex:G,value:ee,variant:J="standard"}=t,re=se(t,KL),[I,_]=gs({controlled:ee,default:f,name:"Select"}),[E,g]=gs({controlled:O,default:u,name:"Select"}),$=p.useRef(null),z=p.useRef(null),[L,B]=p.useState(null),{current:V}=p.useRef(O!=null),[M,A]=p.useState(),Y=lt(n,C),K=p.useCallback(ye=>{z.current=ye,ye&&B(ye)},[]),q=L==null?void 0:L.parentNode;p.useImperativeHandle(Y,()=>({focus:()=>{z.current.focus()},node:$.current,value:I}),[I]),p.useEffect(()=>{u&&E&&L&&!V&&(A(s?null:q.clientWidth),z.current.focus())},[L,s]),p.useEffect(()=>{a&&z.current.focus()},[a]),p.useEffect(()=>{if(!v)return;const ye=St(z.current).getElementById(v);if(ye){const Pe=()=>{getSelection().isCollapsed&&z.current.focus()};return ye.addEventListener("click",Pe),()=>{ye.removeEventListener("click",Pe)}}},[v]);const oe=(ye,Pe)=>{ye?N&&N(Pe):P&&P(Pe),V||(A(s?null:q.clientWidth),g(ye))},te=ye=>{ye.button===0&&(ye.preventDefault(),z.current.focus(),oe(!0,ye))},ne=ye=>{oe(!1,ye)},de=p.Children.toArray(l),ke=ye=>{const Pe=de.find(ue=>ue.props.value===ye.target.value);Pe!==void 0&&(_(Pe.props.value),T&&T(ye,Pe))},H=ye=>Pe=>{let ue;if(Pe.currentTarget.hasAttribute("tabindex")){if(b){ue=Array.isArray(I)?I.slice():[];const me=I.indexOf(ye.props.value);me===-1?ue.push(ye.props.value):ue.splice(me,1)}else ue=ye.props.value;if(ye.props.onClick&&ye.props.onClick(Pe),I!==ue&&(_(ue),T)){const me=Pe.nativeEvent||Pe,$e=new me.constructor(me.type,me);Object.defineProperty($e,"target",{writable:!0,value:{value:ue,name:R}}),T($e,ye)}b||oe(!1,Pe)}},ae=ye=>{F||[" ","ArrowUp","ArrowDown","Enter"].indexOf(ye.key)!==-1&&(ye.preventDefault(),oe(!0,ye))},ge=L!==null&&E,D=ye=>{!ge&&k&&(Object.defineProperty(ye,"target",{writable:!0,value:{value:I,name:R}}),k(ye))};delete re["aria-invalid"];let X,fe;const pe=[];let ve=!1;(Mc({value:I})||w)&&(W?X=W(I):ve=!0);const Ce=de.map(ye=>{if(!p.isValidElement(ye))return null;let Pe;if(b){if(!Array.isArray(I))throw new Error(Bo(2));Pe=I.some(ue=>yy(ue,ye.props.value)),Pe&&ve&&pe.push(ye.props.children)}else Pe=yy(I,ye.props.value),Pe&&ve&&(fe=ye.props.children);return p.cloneElement(ye,{"aria-selected":Pe?"true":"false",onClick:H(ye),onKeyUp:ue=>{ue.key===" "&&ue.preventDefault(),ye.props.onKeyUp&&ye.props.onKeyUp(ue)},role:"option",selected:Pe,value:void 0,"data-value":ye.props.value})});ve&&(b?pe.length===0?X=null:X=pe.reduce((ye,Pe,ue)=>(ye.push(Pe),ue{const{classes:t}=e;return t},Om={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ht(e)&&e!=="variant",slot:"Root"},oA=ie($m,Om)(""),iA=ie(jm,Om)(""),aA=ie(Em,Om)(""),Us=p.forwardRef(function(t,n){const r=Re({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=DO,id:f,input:h,inputProps:w,label:y,labelId:x,MenuProps:C,multiple:v=!1,native:m=!1,onClose:b,onOpen:R,open:k,renderValue:T,SelectDisplayProps:P,variant:j="outlined"}=r,N=se(r,tA),O=m?NL:eA,F=br(),W=vo({props:r,muiFormControl:F,states:["variant","error"]}),U=W.variant||j,G=S({},r,{variant:U,classes:a}),ee=rA(G),J=se(ee,nA),re=h||{standard:d.jsx(oA,{ownerState:G}),outlined:d.jsx(iA,{label:y,ownerState:G}),filled:d.jsx(aA,{ownerState:G})}[U],I=lt(n,re.ref);return d.jsx(p.Fragment,{children:p.cloneElement(re,S({inputComponent:O,inputProps:S({children:i,error:W.error,IconComponent:u,variant:U,type:void 0,multiple:v},m?{id:f}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:x,MenuProps:C,onClose:b,onOpen:R,open:k,renderValue:T,SelectDisplayProps:S({id:f},P)},w,{classes:w?Qt(J,w.classes):J},h?h.props.inputProps:{})},(v&&m||c)&&U==="outlined"?{notched:!0}:{},{ref:I,className:le(re.props.className,s,ee.root)},!h&&{variant:U},N))})});Us.muiName="Select";function sA(e){return be("MuiSnackbarContent",e)}we("MuiSnackbarContent",["root","message","action"]);const lA=["action","className","message","role"],cA=e=>{const{classes:t}=e;return Se({root:["root"],action:["action"],message:["message"]},sA,t)},uA=ie(En,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=d4(e.palette.background.default,t);return S({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),dA=ie("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),fA=ie("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),pA=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiSnackbarContent"}),{action:o,className:i,message:a,role:s="alert"}=r,l=se(r,lA),c=r,u=cA(c);return d.jsxs(uA,S({role:s,square:!0,elevation:6,className:le(u.root,i),ownerState:c,ref:n},l,{children:[d.jsx(dA,{className:u.message,ownerState:c,children:a}),o?d.jsx(fA,{className:u.action,ownerState:c,children:o}):null]}))});function hA(e){return be("MuiSnackbar",e)}we("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const mA=["onEnter","onExited"],gA=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],vA=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${Z(n.vertical)}${Z(n.horizontal)}`]};return Se(r,hA,t)},xy=ie("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${Z(n.anchorOrigin.vertical)}${Z(n.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const n={left:"50%",right:"auto",transform:"translateX(-50%)"};return S({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:S({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&n,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),yo=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiSnackbar"}),o=mo(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:s,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:u,className:f,ClickAwayListenerProps:h,ContentProps:w,disableWindowBlurListener:y=!1,message:x,open:C,TransitionComponent:v=bs,transitionDuration:m=i,TransitionProps:{onEnter:b,onExited:R}={}}=r,k=se(r.TransitionProps,mA),T=se(r,gA),P=S({},r,{anchorOrigin:{vertical:s,horizontal:l},autoHideDuration:c,disableWindowBlurListener:y,TransitionComponent:v,transitionDuration:m}),j=vA(P),{getRootProps:N,onClickAway:O}=uO(S({},P)),[F,W]=p.useState(!0),U=fn({elementType:xy,getSlotProps:N,externalForwardedProps:T,ownerState:P,additionalProps:{ref:n},className:[j.root,f]}),G=J=>{W(!0),R&&R(J)},ee=(J,re)=>{W(!1),b&&b(J,re)};return!C&&F?null:d.jsx(jM,S({onClickAway:O},h,{children:d.jsx(xy,S({},U,{children:d.jsx(v,S({appear:!0,in:C,timeout:m,direction:s==="top"?"down":"up",onEnter:ee,onExited:G},k,{children:u||d.jsx(pA,S({message:x,action:a},w))}))}))}))});function yA(e){return be("MuiTooltip",e)}const Jr=we("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),xA=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function bA(e){return Math.round(e*1e5)/1e5}const wA=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Z(i.split("-")[0])}`],arrow:["arrow"]};return Se(a,yA,t)},SA=ie(Kw,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>S({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Jr.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Jr.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Jr.arrow}`]:S({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Jr.arrow}`]:S({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),CA=ie("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Z(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>S({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Fe(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${bA(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Jr.popper}[data-popper-placement*="left"] &`]:S({transformOrigin:"right center"},t.isRtl?S({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):S({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Jr.popper}[data-popper-placement*="right"] &`]:S({transformOrigin:"left center"},t.isRtl?S({marginRight:"14px"},t.touch&&{marginRight:"24px"}):S({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Jr.popper}[data-popper-placement*="top"] &`]:S({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Jr.popper}[data-popper-placement*="bottom"] &`]:S({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),RA=ie("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Fe(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let yl=!1;const by=new Ls;let Ca={x:0,y:0};function xl(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Zn=p.forwardRef(function(t,n){var r,o,i,a,s,l,c,u,f,h,w,y,x,C,v,m,b,R,k;const T=Re({props:t,name:"MuiTooltip"}),{arrow:P=!1,children:j,components:N={},componentsProps:O={},describeChild:F=!1,disableFocusListener:W=!1,disableHoverListener:U=!1,disableInteractive:G=!1,disableTouchListener:ee=!1,enterDelay:J=100,enterNextDelay:re=0,enterTouchDelay:I=700,followCursor:_=!1,id:E,leaveDelay:g=0,leaveTouchDelay:$=1500,onClose:z,onOpen:L,open:B,placement:V="bottom",PopperComponent:M,PopperProps:A={},slotProps:Y={},slots:K={},title:q,TransitionComponent:oe=bs,TransitionProps:te}=T,ne=se(T,xA),de=p.isValidElement(j)?j:d.jsx("span",{children:j}),ke=mo(),H=As(),[ae,ge]=p.useState(),[D,X]=p.useState(null),fe=p.useRef(!1),pe=G||_,ve=To(),Ce=To(),Le=To(),De=To(),[Ee,he]=gs({controlled:B,default:!1,name:"Tooltip",state:"open"});let Ge=Ee;const Xe=_s(E),Ye=p.useRef(),ye=Yt(()=>{Ye.current!==void 0&&(document.body.style.WebkitUserSelect=Ye.current,Ye.current=void 0),De.clear()});p.useEffect(()=>ye,[ye]);const Pe=Ne=>{by.clear(),yl=!0,he(!0),L&&!Ge&&L(Ne)},ue=Yt(Ne=>{by.start(800+g,()=>{yl=!1}),he(!1),z&&Ge&&z(Ne),ve.start(ke.transitions.duration.shortest,()=>{fe.current=!1})}),me=Ne=>{fe.current&&Ne.type!=="touchstart"||(ae&&ae.removeAttribute("title"),Ce.clear(),Le.clear(),J||yl&&re?Ce.start(yl?re:J,()=>{Pe(Ne)}):Pe(Ne))},$e=Ne=>{Ce.clear(),Le.start(g,()=>{ue(Ne)})},{isFocusVisibleRef:Ae,onBlur:Qe,onFocus:Ct,ref:Ot}=om(),[,pn]=p.useState(!1),Dt=Ne=>{Qe(Ne),Ae.current===!1&&(pn(!1),$e(Ne))},zr=Ne=>{ae||ge(Ne.currentTarget),Ct(Ne),Ae.current===!0&&(pn(!0),me(Ne))},Go=Ne=>{fe.current=!0;const hn=de.props;hn.onTouchStart&&hn.onTouchStart(Ne)},Et=Ne=>{Go(Ne),Le.clear(),ve.clear(),ye(),Ye.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",De.start(I,()=>{document.body.style.WebkitUserSelect=Ye.current,me(Ne)})},dd=Ne=>{de.props.onTouchEnd&&de.props.onTouchEnd(Ne),ye(),Le.start($,()=>{ue(Ne)})};p.useEffect(()=>{if(!Ge)return;function Ne(hn){(hn.key==="Escape"||hn.key==="Esc")&&ue(hn)}return document.addEventListener("keydown",Ne),()=>{document.removeEventListener("keydown",Ne)}},[ue,Ge]);const Ws=lt(de.ref,Ot,ge,n);!q&&q!==0&&(Ge=!1);const oa=p.useRef(),ia=Ne=>{const hn=de.props;hn.onMouseMove&&hn.onMouseMove(Ne),Ca={x:Ne.clientX,y:Ne.clientY},oa.current&&oa.current.update()},tt={},en=typeof q=="string";F?(tt.title=!Ge&&en&&!U?q:null,tt["aria-describedby"]=Ge?Xe:null):(tt["aria-label"]=en?q:null,tt["aria-labelledby"]=Ge&&!en?Xe:null);const nt=S({},tt,ne,de.props,{className:le(ne.className,de.props.className),onTouchStart:Go,ref:Ws},_?{onMouseMove:ia}:{}),Tt={};ee||(nt.onTouchStart=Et,nt.onTouchEnd=dd),U||(nt.onMouseOver=xl(me,nt.onMouseOver),nt.onMouseLeave=xl($e,nt.onMouseLeave),pe||(Tt.onMouseOver=me,Tt.onMouseLeave=$e)),W||(nt.onFocus=xl(zr,nt.onFocus),nt.onBlur=xl(Dt,nt.onBlur),pe||(Tt.onFocus=zr,Tt.onBlur=Dt));const It=p.useMemo(()=>{var Ne;let hn=[{name:"arrow",enabled:!!D,options:{element:D,padding:4}}];return(Ne=A.popperOptions)!=null&&Ne.modifiers&&(hn=hn.concat(A.popperOptions.modifiers)),S({},A.popperOptions,{modifiers:hn})},[D,A]),qt=S({},T,{isRtl:H,arrow:P,disableInteractive:pe,placement:V,PopperComponentProp:M,touch:fe.current}),Gn=wA(qt),Ko=(r=(o=K.popper)!=null?o:N.Popper)!=null?r:SA,aa=(i=(a=(s=K.transition)!=null?s:N.Transition)!=null?a:oe)!=null?i:bs,Hs=(l=(c=K.tooltip)!=null?c:N.Tooltip)!=null?l:CA,Vs=(u=(f=K.arrow)!=null?f:N.Arrow)!=null?u:RA,q2=vi(Ko,S({},A,(h=Y.popper)!=null?h:O.popper,{className:le(Gn.popper,A==null?void 0:A.className,(w=(y=Y.popper)!=null?y:O.popper)==null?void 0:w.className)}),qt),G2=vi(aa,S({},te,(x=Y.transition)!=null?x:O.transition),qt),K2=vi(Hs,S({},(C=Y.tooltip)!=null?C:O.tooltip,{className:le(Gn.tooltip,(v=(m=Y.tooltip)!=null?m:O.tooltip)==null?void 0:v.className)}),qt),Y2=vi(Vs,S({},(b=Y.arrow)!=null?b:O.arrow,{className:le(Gn.arrow,(R=(k=Y.arrow)!=null?k:O.arrow)==null?void 0:R.className)}),qt);return d.jsxs(p.Fragment,{children:[p.cloneElement(de,nt),d.jsx(Ko,S({as:M??Kw,placement:V,anchorEl:_?{getBoundingClientRect:()=>({top:Ca.y,left:Ca.x,right:Ca.x,bottom:Ca.y,width:0,height:0})}:ae,popperRef:oa,open:ae?Ge:!1,id:Xe,transition:!0},Tt,q2,{popperOptions:It,children:({TransitionProps:Ne})=>d.jsx(aa,S({timeout:ke.transitions.duration.shorter},Ne,G2,{children:d.jsxs(Hs,S({},K2,{children:[q,P?d.jsx(Vs,S({},Y2,{ref:X})):null]}))}))}))]})});function kA(e){return be("MuiSwitch",e)}const Gt=we("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),PA=["className","color","edge","size","sx"],EA=Ju(),TA=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:a}=e,s={root:["root",n&&`edge${Z(n)}`,`size${Z(r)}`],switchBase:["switchBase",`color${Z(o)}`,i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Se(s,kA,t);return S({},t,l)},$A=ie("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Z(n.edge)}`],t[`size${Z(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Gt.thumb}`]:{width:16,height:16},[`& .${Gt.switchBase}`]:{padding:4,[`&.${Gt.checked}`]:{transform:"translateX(16px)"}}}}]}),MA=ie(Zw,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Gt.input}`]:t.input},n.color!=="default"&&t[`color${Z(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Gt.checked}`]:{transform:"translateX(20px)"},[`&.${Gt.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Gt.checked} + .${Gt.track}`]:{opacity:.5},[`&.${Gt.disabled} + .${Gt.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Gt.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${Gt.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Gt.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?kc(e.palette[t].main,.62):Rc(e.palette[t].main,.55)}`}},[`&.${Gt.checked} + .${Gt.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),jA=ie("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),OA=ie("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),IA=p.forwardRef(function(t,n){const r=EA({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:a=!1,size:s="medium",sx:l}=r,c=se(r,PA),u=S({},r,{color:i,edge:a,size:s}),f=TA(u),h=d.jsx(OA,{className:f.thumb,ownerState:u});return d.jsxs($A,{className:le(f.root,o),sx:l,ownerState:u,children:[d.jsx(MA,S({type:"checkbox",icon:h,checkedIcon:h,ref:n,ownerState:u},c,{classes:S({},f,{root:f.switchBase})})),d.jsx(jA,{className:f.track,ownerState:u})]})});function _A(e){return be("MuiTab",e)}const bo=we("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),LA=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],AA=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:a,selected:s,disabled:l}=e,c={root:["root",i&&a&&"labelIcon",`textColor${Z(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Se(c,_A,t)},NA=ie(Ir,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Z(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>S({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${bo.iconWrapper}`]:S({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${bo.selected}`]:{opacity:1},[`&.${bo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${bo.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${bo.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${bo.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${bo.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),Hl=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:a=!1,fullWidth:s,icon:l,iconPosition:c="top",indicator:u,label:f,onChange:h,onClick:w,onFocus:y,selected:x,selectionFollowsFocus:C,textColor:v="inherit",value:m,wrapped:b=!1}=r,R=se(r,LA),k=S({},r,{disabled:i,disableFocusRipple:a,selected:x,icon:!!l,iconPosition:c,label:!!f,fullWidth:s,textColor:v,wrapped:b}),T=AA(k),P=l&&f&&p.isValidElement(l)?p.cloneElement(l,{className:le(T.iconWrapper,l.props.className)}):l,j=O=>{!x&&h&&h(O,m),w&&w(O)},N=O=>{C&&!x&&h&&h(O,m),y&&y(O)};return d.jsxs(NA,S({focusRipple:!a,className:le(T.root,o),ref:n,role:"tab","aria-selected":x,disabled:i,onClick:j,onFocus:N,ownerState:k,tabIndex:x?0:-1},R,{children:[c==="top"||c==="start"?d.jsxs(p.Fragment,{children:[P,f]}):d.jsxs(p.Fragment,{children:[f,P]}),u]}))});function DA(e){return be("MuiToolbar",e)}we("MuiToolbar",["root","gutters","regular","dense"]);const zA=["className","component","disableGutters","variant"],BA=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Se({root:["root",!n&&"gutters",r]},DA,t)},FA=ie("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>S({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),UA=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:a=!1,variant:s="regular"}=r,l=se(r,zA),c=S({},r,{component:i,disableGutters:a,variant:s}),u=BA(c);return d.jsx(FA,S({as:i,className:le(u.root,o),ref:n,ownerState:c},l))}),WA=Vt(d.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),HA=Vt(d.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function VA(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function qA(e,t,n,r={},o=()=>{}){const{ease:i=VA,duration:a=300}=r;let s=null;const l=t[e];let c=!1;const u=()=>{c=!0},f=h=>{if(c){o(new Error("Animation cancelled"));return}s===null&&(s=h);const w=Math.min(1,(h-s)/a);if(t[e]=i(w)*(n-l)+l,w>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(f)};return l===n?(o(new Error("Element already at target position")),u):(requestAnimationFrame(f),u)}const GA=["onChange"],KA={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function YA(e){const{onChange:t}=e,n=se(e,GA),r=p.useRef(),o=p.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Sn(()=>{const a=ea(()=>{const l=r.current;i(),l!==r.current&&t(r.current)}),s=Bn(o.current);return s.addEventListener("resize",a),()=>{a.clear(),s.removeEventListener("resize",a)}},[t]),p.useEffect(()=>{i(),t(r.current)},[t]),d.jsx("div",S({style:KA,ref:o},n))}function XA(e){return be("MuiTabScrollButton",e)}const QA=we("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),JA=["className","slots","slotProps","direction","orientation","disabled"],ZA=e=>{const{classes:t,orientation:n,disabled:r}=e;return Se({root:["root",n,r&&"disabled"]},XA,t)},eN=ie(Ir,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>S({width:40,flexShrink:0,opacity:.8,[`&.${QA.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),tN=p.forwardRef(function(t,n){var r,o;const i=Re({props:t,name:"MuiTabScrollButton"}),{className:a,slots:s={},slotProps:l={},direction:c}=i,u=se(i,JA),f=As(),h=S({isRtl:f},i),w=ZA(h),y=(r=s.StartScrollButtonIcon)!=null?r:WA,x=(o=s.EndScrollButtonIcon)!=null?o:HA,C=fn({elementType:y,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),v=fn({elementType:x,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return d.jsx(eN,S({component:"div",className:le(w.root,a),ref:n,role:null,ownerState:h,tabIndex:null},u,{children:c==="left"?d.jsx(y,S({},C)):d.jsx(x,S({},v))}))});function nN(e){return be("MuiTabs",e)}const af=we("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),rN=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],wy=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,Sy=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,bl=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const i=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||i)o=n(e,o);else{o.focus();return}}},oN=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return Se({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},nN,l)},iN=ie("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${af.scrollButtons}`]:t.scrollButtons},{[`& .${af.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>S({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${af.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),aN=ie("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>S({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),sN=ie("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>S({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),lN=ie("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>S({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),cN=ie(YA)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Cy={},f2=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTabs"}),o=mo(),i=As(),{"aria-label":a,"aria-labelledby":s,action:l,centered:c=!1,children:u,className:f,component:h="div",allowScrollButtonsMobile:w=!1,indicatorColor:y="primary",onChange:x,orientation:C="horizontal",ScrollButtonComponent:v=tN,scrollButtons:m="auto",selectionFollowsFocus:b,slots:R={},slotProps:k={},TabIndicatorProps:T={},TabScrollButtonProps:P={},textColor:j="primary",value:N,variant:O="standard",visibleScrollbar:F=!1}=r,W=se(r,rN),U=O==="scrollable",G=C==="vertical",ee=G?"scrollTop":"scrollLeft",J=G?"top":"left",re=G?"bottom":"right",I=G?"clientHeight":"clientWidth",_=G?"height":"width",E=S({},r,{component:h,allowScrollButtonsMobile:w,indicatorColor:y,orientation:C,vertical:G,scrollButtons:m,textColor:j,variant:O,visibleScrollbar:F,fixed:!U,hideScrollbar:U&&!F,scrollableX:U&&!G,scrollableY:U&&G,centered:c&&!U,scrollButtonsHideMobile:!w}),g=oN(E),$=fn({elementType:R.StartScrollButtonIcon,externalSlotProps:k.startScrollButtonIcon,ownerState:E}),z=fn({elementType:R.EndScrollButtonIcon,externalSlotProps:k.endScrollButtonIcon,ownerState:E}),[L,B]=p.useState(!1),[V,M]=p.useState(Cy),[A,Y]=p.useState(!1),[K,q]=p.useState(!1),[oe,te]=p.useState(!1),[ne,de]=p.useState({overflow:"hidden",scrollbarWidth:0}),ke=new Map,H=p.useRef(null),ae=p.useRef(null),ge=()=>{const ue=H.current;let me;if(ue){const Ae=ue.getBoundingClientRect();me={clientWidth:ue.clientWidth,scrollLeft:ue.scrollLeft,scrollTop:ue.scrollTop,scrollLeftNormalized:B$(ue,i?"rtl":"ltr"),scrollWidth:ue.scrollWidth,top:Ae.top,bottom:Ae.bottom,left:Ae.left,right:Ae.right}}let $e;if(ue&&N!==!1){const Ae=ae.current.children;if(Ae.length>0){const Qe=Ae[ke.get(N)];$e=Qe?Qe.getBoundingClientRect():null}}return{tabsMeta:me,tabMeta:$e}},D=Yt(()=>{const{tabsMeta:ue,tabMeta:me}=ge();let $e=0,Ae;if(G)Ae="top",me&&ue&&($e=me.top-ue.top+ue.scrollTop);else if(Ae=i?"right":"left",me&&ue){const Ct=i?ue.scrollLeftNormalized+ue.clientWidth-ue.scrollWidth:ue.scrollLeft;$e=(i?-1:1)*(me[Ae]-ue[Ae]+Ct)}const Qe={[Ae]:$e,[_]:me?me[_]:0};if(isNaN(V[Ae])||isNaN(V[_]))M(Qe);else{const Ct=Math.abs(V[Ae]-Qe[Ae]),Ot=Math.abs(V[_]-Qe[_]);(Ct>=1||Ot>=1)&&M(Qe)}}),X=(ue,{animation:me=!0}={})=>{me?qA(ee,H.current,ue,{duration:o.transitions.duration.standard}):H.current[ee]=ue},fe=ue=>{let me=H.current[ee];G?me+=ue:(me+=ue*(i?-1:1),me*=i&&hw()==="reverse"?-1:1),X(me)},pe=()=>{const ue=H.current[I];let me=0;const $e=Array.from(ae.current.children);for(let Ae=0;Ae<$e.length;Ae+=1){const Qe=$e[Ae];if(me+Qe[I]>ue){Ae===0&&(me=ue);break}me+=Qe[I]}return me},ve=()=>{fe(-1*pe())},Ce=()=>{fe(pe())},Le=p.useCallback(ue=>{de({overflow:null,scrollbarWidth:ue})},[]),De=()=>{const ue={};ue.scrollbarSizeListener=U?d.jsx(cN,{onChange:Le,className:le(g.scrollableX,g.hideScrollbar)}):null;const $e=U&&(m==="auto"&&(A||K)||m===!0);return ue.scrollButtonStart=$e?d.jsx(v,S({slots:{StartScrollButtonIcon:R.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:$},orientation:C,direction:i?"right":"left",onClick:ve,disabled:!A},P,{className:le(g.scrollButtons,P.className)})):null,ue.scrollButtonEnd=$e?d.jsx(v,S({slots:{EndScrollButtonIcon:R.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:z},orientation:C,direction:i?"left":"right",onClick:Ce,disabled:!K},P,{className:le(g.scrollButtons,P.className)})):null,ue},Ee=Yt(ue=>{const{tabsMeta:me,tabMeta:$e}=ge();if(!(!$e||!me)){if($e[J]me[re]){const Ae=me[ee]+($e[re]-me[re]);X(Ae,{animation:ue})}}}),he=Yt(()=>{U&&m!==!1&&te(!oe)});p.useEffect(()=>{const ue=ea(()=>{H.current&&D()});let me;const $e=Ct=>{Ct.forEach(Ot=>{Ot.removedNodes.forEach(pn=>{var Dt;(Dt=me)==null||Dt.unobserve(pn)}),Ot.addedNodes.forEach(pn=>{var Dt;(Dt=me)==null||Dt.observe(pn)})}),ue(),he()},Ae=Bn(H.current);Ae.addEventListener("resize",ue);let Qe;return typeof ResizeObserver<"u"&&(me=new ResizeObserver(ue),Array.from(ae.current.children).forEach(Ct=>{me.observe(Ct)})),typeof MutationObserver<"u"&&(Qe=new MutationObserver($e),Qe.observe(ae.current,{childList:!0})),()=>{var Ct,Ot;ue.clear(),Ae.removeEventListener("resize",ue),(Ct=Qe)==null||Ct.disconnect(),(Ot=me)==null||Ot.disconnect()}},[D,he]),p.useEffect(()=>{const ue=Array.from(ae.current.children),me=ue.length;if(typeof IntersectionObserver<"u"&&me>0&&U&&m!==!1){const $e=ue[0],Ae=ue[me-1],Qe={root:H.current,threshold:.99},Ct=zr=>{Y(!zr[0].isIntersecting)},Ot=new IntersectionObserver(Ct,Qe);Ot.observe($e);const pn=zr=>{q(!zr[0].isIntersecting)},Dt=new IntersectionObserver(pn,Qe);return Dt.observe(Ae),()=>{Ot.disconnect(),Dt.disconnect()}}},[U,m,oe,u==null?void 0:u.length]),p.useEffect(()=>{B(!0)},[]),p.useEffect(()=>{D()}),p.useEffect(()=>{Ee(Cy!==V)},[Ee,V]),p.useImperativeHandle(l,()=>({updateIndicator:D,updateScrollButtons:he}),[D,he]);const Ge=d.jsx(lN,S({},T,{className:le(g.indicator,T.className),ownerState:E,style:S({},V,T.style)}));let Xe=0;const Ye=p.Children.map(u,ue=>{if(!p.isValidElement(ue))return null;const me=ue.props.value===void 0?Xe:ue.props.value;ke.set(me,Xe);const $e=me===N;return Xe+=1,p.cloneElement(ue,S({fullWidth:O==="fullWidth",indicator:$e&&!L&&Ge,selected:$e,selectionFollowsFocus:b,onChange:x,textColor:j,value:me},Xe===1&&N===!1&&!ue.props.tabIndex?{tabIndex:0}:{}))}),ye=ue=>{const me=ae.current,$e=St(me).activeElement;if($e.getAttribute("role")!=="tab")return;let Qe=C==="horizontal"?"ArrowLeft":"ArrowUp",Ct=C==="horizontal"?"ArrowRight":"ArrowDown";switch(C==="horizontal"&&i&&(Qe="ArrowRight",Ct="ArrowLeft"),ue.key){case Qe:ue.preventDefault(),bl(me,$e,Sy);break;case Ct:ue.preventDefault(),bl(me,$e,wy);break;case"Home":ue.preventDefault(),bl(me,null,wy);break;case"End":ue.preventDefault(),bl(me,null,Sy);break}},Pe=De();return d.jsxs(iN,S({className:le(g.root,f),ownerState:E,ref:n,as:h},W,{children:[Pe.scrollButtonStart,Pe.scrollbarSizeListener,d.jsxs(aN,{className:g.scroller,ownerState:E,style:{overflow:ne.overflow,[G?`margin${i?"Left":"Right"}`:"marginBottom"]:F?void 0:-ne.scrollbarWidth},ref:H,children:[d.jsx(sN,{"aria-label":a,"aria-labelledby":s,"aria-orientation":C==="vertical"?"vertical":null,className:g.flexContainer,ownerState:E,onKeyDown:ye,ref:ae,role:"tablist",children:Ye}),L&&Ge]}),Pe.scrollButtonEnd]}))});function uN(e){return be("MuiTextField",e)}we("MuiTextField",["root"]);const dN=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],fN={standard:$m,filled:Em,outlined:jm},pN=e=>{const{classes:t}=e;return Se({root:["root"]},uN,t)},hN=ie(ld,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),it=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:a,className:s,color:l="primary",defaultValue:c,disabled:u=!1,error:f=!1,FormHelperTextProps:h,fullWidth:w=!1,helperText:y,id:x,InputLabelProps:C,inputProps:v,InputProps:m,inputRef:b,label:R,maxRows:k,minRows:T,multiline:P=!1,name:j,onBlur:N,onChange:O,onFocus:F,placeholder:W,required:U=!1,rows:G,select:ee=!1,SelectProps:J,type:re,value:I,variant:_="outlined"}=r,E=se(r,dN),g=S({},r,{autoFocus:i,color:l,disabled:u,error:f,fullWidth:w,multiline:P,required:U,select:ee,variant:_}),$=pN(g),z={};_==="outlined"&&(C&&typeof C.shrink<"u"&&(z.notched=C.shrink),z.label=R),ee&&((!J||!J.native)&&(z.id=void 0),z["aria-describedby"]=void 0);const L=_s(x),B=y&&L?`${L}-helper-text`:void 0,V=R&&L?`${L}-label`:void 0,M=fN[_],A=d.jsx(M,S({"aria-describedby":B,autoComplete:o,autoFocus:i,defaultValue:c,fullWidth:w,multiline:P,name:j,rows:G,maxRows:k,minRows:T,type:re,value:I,id:L,inputRef:b,onBlur:N,onChange:O,onFocus:F,placeholder:W,inputProps:v},z,m));return d.jsxs(hN,S({className:le($.root,s),disabled:u,error:f,fullWidth:w,ref:n,required:U,color:l,variant:_,ownerState:g},E,{children:[R!=null&&R!==""&&d.jsx(cd,S({htmlFor:L,id:V},C,{children:R})),ee?d.jsx(Us,S({"aria-describedby":B,id:L,labelId:V,value:I,input:A},J,{children:a})):A,y&&d.jsx(f_,S({id:B},h,{children:y}))]}))});var Im={},sf={};const mN=Lr(v5);var Ry;function je(){return Ry||(Ry=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=mN}(sf)),sf}var gN=Te;Object.defineProperty(Im,"__esModule",{value:!0});var ra=Im.default=void 0,vN=gN(je()),yN=d;ra=Im.default=(0,vN.default)((0,yN.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");var _m={},xN=Te;Object.defineProperty(_m,"__esModule",{value:!0});var Lm=_m.default=void 0,bN=xN(je()),wN=d;Lm=_m.default=(0,bN.default)((0,wN.jsx)("path",{d:"M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3m5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72z"}),"Mic");var Am={},SN=Te;Object.defineProperty(Am,"__esModule",{value:!0});var Nm=Am.default=void 0,CN=SN(je()),RN=d;Nm=Am.default=(0,CN.default)((0,RN.jsx)("path",{d:"M19 11h-1.7c0 .74-.16 1.43-.43 2.05l1.23 1.23c.56-.98.9-2.09.9-3.28m-4.02.17c0-.06.02-.11.02-.17V5c0-1.66-1.34-3-3-3S9 3.34 9 5v.18zM4.27 3 3 4.27l6.01 6.01V11c0 1.66 1.33 3 2.99 3 .22 0 .44-.03.65-.08l1.66 1.66c-.71.33-1.5.52-2.31.52-2.76 0-5.3-2.1-5.3-5.1H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c.91-.13 1.77-.45 2.54-.9L19.73 21 21 19.73z"}),"MicOff");var Dm={},kN=Te;Object.defineProperty(Dm,"__esModule",{value:!0});var ud=Dm.default=void 0,PN=kN(je()),EN=d;ud=Dm.default=(0,PN.default)((0,EN.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"Person");var zm={},TN=Te;Object.defineProperty(zm,"__esModule",{value:!0});var _c=zm.default=void 0,$N=TN(je()),MN=d;_c=zm.default=(0,$N.default)((0,MN.jsx)("path",{d:"M3 9v6h4l5 5V4L7 9zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02M14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77"}),"VolumeUp");var Bm={},jN=Te;Object.defineProperty(Bm,"__esModule",{value:!0});var Lc=Bm.default=void 0,ON=jN(je()),IN=d;Lc=Bm.default=(0,ON.default)((0,IN.jsx)("path",{d:"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63m2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71M4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9zM12 4 9.91 6.09 12 8.18z"}),"VolumeOff");var Fm={},_N=Te;Object.defineProperty(Fm,"__esModule",{value:!0});var Um=Fm.default=void 0,LN=_N(je()),AN=d;Um=Fm.default=(0,LN.default)((0,AN.jsx)("path",{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-1 9h-4v4h-2v-4H9V9h4V5h2v4h4z"}),"LibraryAdd");const Pi="/assets/Aria-BMTE8U_Y.jpg";var p2={exports:{}};(function(e){/** + * {@link https://github.com/muaz-khan/RecordRTC|RecordRTC} is a WebRTC JavaScript library for audio/video as well as screen activity recording. It supports Chrome, Firefox, Opera, Android, and Microsoft Edge. Platforms: Linux, Mac and Windows. + * @summary Record audio, video or screen inside the browser. + * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT} + * @author {@link https://MuazKhan.com|Muaz Khan} + * @typedef RecordRTC + * @class + * @example + * var recorder = RecordRTC(mediaStream or [arrayOfMediaStream], { + * type: 'video', // audio or video or gif or canvas + * recorderType: MediaStreamRecorder || CanvasRecorder || StereoAudioRecorder || Etc + * }); + * recorder.startRecording(); + * @see For further information: + * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code} + * @param {MediaStream} mediaStream - Single media-stream object, array of media-streams, html-canvas-element, etc. + * @param {object} config - {type:"video", recorderType: MediaStreamRecorder, disableLogs: true, numberOfAudioChannels: 1, bufferSize: 0, sampleRate: 0, desiredSampRate: 16000, video: HTMLVideoElement, etc.} + */function t(E,g){if(!E)throw"First parameter is required.";g=g||{type:"video"},g=new n(E,g);var $=this;function z(H){return g.disableLogs||console.log("RecordRTC version: ",$.version),H&&(g=new n(E,H)),g.disableLogs||console.log("started recording "+g.type+" stream."),ne?(ne.clearRecordedData(),ne.record(),q("recording"),$.recordingDuration&&K(),$):(L(function(){$.recordingDuration&&K()}),$)}function L(H){H&&(g.initCallback=function(){H(),H=g.initCallback=null});var ae=new r(E,g);ne=new ae(E,g),ne.record(),q("recording"),g.disableLogs||console.log("Initialized recorderType:",ne.constructor.name,"for output-type:",g.type)}function B(H){if(H=H||function(){},!ne){te();return}if($.state==="paused"){$.resumeRecording(),setTimeout(function(){B(H)},1);return}$.state!=="recording"&&!g.disableLogs&&console.warn('Recording state should be: "recording", however current state is: ',$.state),g.disableLogs||console.log("Stopped recording "+g.type+" stream."),g.type!=="gif"?ne.stop(ae):(ne.stop(),ae()),q("stopped");function ae(ge){if(!ne){typeof H.call=="function"?H.call($,""):H("");return}Object.keys(ne).forEach(function(fe){typeof ne[fe]!="function"&&($[fe]=ne[fe])});var D=ne.blob;if(!D)if(ge)ne.blob=D=ge;else throw"Recording failed.";if(D&&!g.disableLogs&&console.log(D.type,"->",v(D.size)),H){var X;try{X=u.createObjectURL(D)}catch{}typeof H.call=="function"?H.call($,X):H(X)}g.autoWriteToDisk&&Y(function(fe){var pe={};pe[g.type+"Blob"]=fe,G.Store(pe)})}}function V(){if(!ne){te();return}if($.state!=="recording"){g.disableLogs||console.warn("Unable to pause the recording. Recording state: ",$.state);return}q("paused"),ne.pause(),g.disableLogs||console.log("Paused recording.")}function M(){if(!ne){te();return}if($.state!=="paused"){g.disableLogs||console.warn("Unable to resume the recording. Recording state: ",$.state);return}q("recording"),ne.resume(),g.disableLogs||console.log("Resumed recording.")}function A(H){postMessage(new FileReaderSync().readAsDataURL(H))}function Y(H,ae){if(!H)throw"Pass a callback function over getDataURL.";var ge=ae?ae.blob:(ne||{}).blob;if(!ge){g.disableLogs||console.warn("Blob encoder did not finish its job yet."),setTimeout(function(){Y(H,ae)},1e3);return}if(typeof Worker<"u"&&!navigator.mozGetUserMedia){var D=fe(A);D.onmessage=function(pe){H(pe.data)},D.postMessage(ge)}else{var X=new FileReader;X.readAsDataURL(ge),X.onload=function(pe){H(pe.target.result)}}function fe(pe){try{var ve=u.createObjectURL(new Blob([pe.toString(),"this.onmessage = function (eee) {"+pe.name+"(eee.data);}"],{type:"application/javascript"})),Ce=new Worker(ve);return u.revokeObjectURL(ve),Ce}catch{}}}function K(H){if(H=H||0,$.state==="paused"){setTimeout(function(){K(H)},1e3);return}if($.state!=="stopped"){if(H>=$.recordingDuration){B($.onRecordingStopped);return}H+=1e3,setTimeout(function(){K(H)},1e3)}}function q(H){$&&($.state=H,typeof $.onStateChanged.call=="function"?$.onStateChanged.call($,H):$.onStateChanged(H))}var oe='It seems that recorder is destroyed or "startRecording" is not invoked for '+g.type+" recorder.";function te(){g.disableLogs!==!0&&console.warn(oe)}var ne,de={startRecording:z,stopRecording:B,pauseRecording:V,resumeRecording:M,initRecorder:L,setRecordingDuration:function(H,ae){if(typeof H>"u")throw"recordingDuration is required.";if(typeof H!="number")throw"recordingDuration must be a number.";return $.recordingDuration=H,$.onRecordingStopped=ae||function(){},{onRecordingStopped:function(ge){$.onRecordingStopped=ge}}},clearRecordedData:function(){if(!ne){te();return}ne.clearRecordedData(),g.disableLogs||console.log("Cleared old recorded data.")},getBlob:function(){if(!ne){te();return}return ne.blob},getDataURL:Y,toURL:function(){if(!ne){te();return}return u.createObjectURL(ne.blob)},getInternalRecorder:function(){return ne},save:function(H){if(!ne){te();return}m(ne.blob,H)},getFromDisk:function(H){if(!ne){te();return}t.getFromDisk(g.type,H)},setAdvertisementArray:function(H){g.advertisement=[];for(var ae=H.length,ge=0;ge"u"||(rt.navigator={userAgent:i,getUserMedia:function(){}},rt.console||(rt.console={}),(typeof rt.console.log>"u"||typeof rt.console.error>"u")&&(rt.console.error=rt.console.log=rt.console.log||function(){console.log(arguments)}),typeof document>"u"&&(E.document={documentElement:{appendChild:function(){return""}}},document.createElement=document.captureStream=document.mozCaptureStream=function(){var g={getContext:function(){return g},play:function(){},pause:function(){},drawImage:function(){},toDataURL:function(){return""},style:{}};return g},E.HTMLVideoElement=function(){}),typeof location>"u"&&(E.location={protocol:"file:",href:"",hash:""}),typeof screen>"u"&&(E.screen={width:0,height:0}),typeof u>"u"&&(E.URL={createObjectURL:function(){return""},revokeObjectURL:function(){return""}}),E.window=rt))})(typeof rt<"u"?rt:null);var a=window.requestAnimationFrame;if(typeof a>"u"){if(typeof webkitRequestAnimationFrame<"u")a=webkitRequestAnimationFrame;else if(typeof mozRequestAnimationFrame<"u")a=mozRequestAnimationFrame;else if(typeof msRequestAnimationFrame<"u")a=msRequestAnimationFrame;else if(typeof a>"u"){var s=0;a=function(E,g){var $=new Date().getTime(),z=Math.max(0,16-($-s)),L=setTimeout(function(){E($+z)},z);return s=$+z,L}}}var l=window.cancelAnimationFrame;typeof l>"u"&&(typeof webkitCancelAnimationFrame<"u"?l=webkitCancelAnimationFrame:typeof mozCancelAnimationFrame<"u"?l=mozCancelAnimationFrame:typeof msCancelAnimationFrame<"u"?l=msCancelAnimationFrame:typeof l>"u"&&(l=function(E){clearTimeout(E)}));var c=window.AudioContext;typeof c>"u"&&(typeof webkitAudioContext<"u"&&(c=webkitAudioContext),typeof mozAudioContext<"u"&&(c=mozAudioContext));var u=window.URL;typeof u>"u"&&typeof webkitURL<"u"&&(u=webkitURL),typeof navigator<"u"&&typeof navigator.getUserMedia>"u"&&(typeof navigator.webkitGetUserMedia<"u"&&(navigator.getUserMedia=navigator.webkitGetUserMedia),typeof navigator.mozGetUserMedia<"u"&&(navigator.getUserMedia=navigator.mozGetUserMedia));var f=navigator.userAgent.indexOf("Edge")!==-1&&(!!navigator.msSaveBlob||!!navigator.msSaveOrOpenBlob),h=!!window.opera||navigator.userAgent.indexOf("OPR/")!==-1,w=navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&"netscape"in window&&/ rv:/.test(navigator.userAgent),y=!h&&!f&&!!navigator.webkitGetUserMedia||b()||navigator.userAgent.toLowerCase().indexOf("chrome/")!==-1,x=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);x&&!y&&navigator.userAgent.indexOf("CriOS")!==-1&&(x=!1,y=!0);var C=window.MediaStream;typeof C>"u"&&typeof webkitMediaStream<"u"&&(C=webkitMediaStream),typeof C<"u"&&typeof C.prototype.stop>"u"&&(C.prototype.stop=function(){this.getTracks().forEach(function(E){E.stop()})});function v(E){var g=1e3,$=["Bytes","KB","MB","GB","TB"];if(E===0)return"0 Bytes";var z=parseInt(Math.floor(Math.log(E)/Math.log(g)),10);return(E/Math.pow(g,z)).toPrecision(3)+" "+$[z]}function m(E,g){if(!E)throw"Blob object is required.";if(!E.type)try{E.type="video/webm"}catch{}var $=(E.type||"video/webm").split("/")[1];if($.indexOf(";")!==-1&&($=$.split(";")[0]),g&&g.indexOf(".")!==-1){var z=g.split(".");g=z[0],$=z[1]}var L=(g||Math.round(Math.random()*9999999999)+888888888)+"."+$;if(typeof navigator.msSaveOrOpenBlob<"u")return navigator.msSaveOrOpenBlob(E,L);if(typeof navigator.msSaveBlob<"u")return navigator.msSaveBlob(E,L);var B=document.createElement("a");B.href=u.createObjectURL(E),B.download=L,B.style="display:none;opacity:0;color:transparent;",(document.body||document.documentElement).appendChild(B),typeof B.click=="function"?B.click():(B.target="_blank",B.dispatchEvent(new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0}))),u.revokeObjectURL(B.href)}function b(){return!!(typeof window<"u"&&typeof window.process=="object"&&window.process.type==="renderer"||typeof process<"u"&&typeof process.versions=="object"&&process.versions.electron||typeof navigator=="object"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Electron")>=0)}function R(E,g){return!E||!E.getTracks?[]:E.getTracks().filter(function($){return $.kind===(g||"audio")})}function k(E,g){"srcObject"in g?g.srcObject=E:"mozSrcObject"in g?g.mozSrcObject=E:g.srcObject=E}function T(E,g){if(typeof EBML>"u")throw new Error("Please link: https://www.webrtc-experiment.com/EBML.js");var $=new EBML.Reader,z=new EBML.Decoder,L=EBML.tools,B=new FileReader;B.onload=function(V){var M=z.decode(this.result);M.forEach(function(q){$.read(q)}),$.stop();var A=L.makeMetadataSeekable($.metadatas,$.duration,$.cues),Y=this.result.slice($.metadataSize),K=new Blob([A,Y],{type:"video/webm"});g(K)},B.readAsArrayBuffer(E)}typeof t<"u"&&(t.invokeSaveAsDialog=m,t.getTracks=R,t.getSeekableBlob=T,t.bytesToSize=v,t.isElectron=b);/** + * Storage is a standalone object used by {@link RecordRTC} to store reusable objects e.g. "new AudioContext". + * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT} + * @author {@link https://MuazKhan.com|Muaz Khan} + * @example + * Storage.AudioContext === webkitAudioContext + * @property {webkitAudioContext} AudioContext - Keeps a reference to AudioContext object. + * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code} + */var P={};typeof c<"u"?P.AudioContext=c:typeof webkitAudioContext<"u"&&(P.AudioContext=webkitAudioContext),typeof t<"u"&&(t.Storage=P);function j(){if(w||x||f)return!0;var E=navigator.userAgent,g=""+parseFloat(navigator.appVersion),$=parseInt(navigator.appVersion,10),z,L;return(y||h)&&(z=E.indexOf("Chrome"),g=E.substring(z+7)),(L=g.indexOf(";"))!==-1&&(g=g.substring(0,L)),(L=g.indexOf(" "))!==-1&&(g=g.substring(0,L)),$=parseInt(""+g,10),isNaN($)&&(g=""+parseFloat(navigator.appVersion),$=parseInt(navigator.appVersion,10)),$>=49}/** + * MediaStreamRecorder is an abstraction layer for {@link https://w3c.github.io/mediacapture-record/MediaRecorder.html|MediaRecorder API}. It is used by {@link RecordRTC} to record MediaStream(s) in both Chrome and Firefox. + * @summary Runs top over {@link https://w3c.github.io/mediacapture-record/MediaRecorder.html|MediaRecorder API}. + * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT} + * @author {@link https://github.com/muaz-khan|Muaz Khan} + * @typedef MediaStreamRecorder + * @class + * @example + * var config = { + * mimeType: 'video/webm', // vp8, vp9, h264, mkv, opus/vorbis + * audioBitsPerSecond : 256 * 8 * 1024, + * videoBitsPerSecond : 256 * 8 * 1024, + * bitsPerSecond: 256 * 8 * 1024, // if this is provided, skip above two + * checkForInactiveTracks: true, + * timeSlice: 1000, // concatenate intervals based blobs + * ondataavailable: function() {} // get intervals based blobs + * } + * var recorder = new MediaStreamRecorder(mediaStream, config); + * recorder.record(); + * recorder.stop(function(blob) { + * video.src = URL.createObjectURL(blob); + * + * // or + * var blob = recorder.blob; + * }); + * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code} + * @param {MediaStream} mediaStream - MediaStream object fetched using getUserMedia API or generated using captureStreamUntilEnded or WebAudio API. + * @param {object} config - {disableLogs:true, initCallback: function, mimeType: "video/webm", timeSlice: 1000} + * @throws Will throw an error if first argument "MediaStream" is missing. Also throws error if "MediaRecorder API" are not supported by the browser. + */function N(E,g){var K=this;if(typeof E>"u")throw'First argument "MediaStream" is required.';if(typeof MediaRecorder>"u")throw"Your browser does not support the Media Recorder API. Please try other modules e.g. WhammyRecorder or StereoAudioRecorder.";if(g=g||{mimeType:"video/webm"},g.type==="audio"){if(R(E,"video").length&&R(E,"audio").length){var $;navigator.mozGetUserMedia?($=new C,$.addTrack(R(E,"audio")[0])):$=new C(R(E,"audio")),E=$}(!g.mimeType||g.mimeType.toString().toLowerCase().indexOf("audio")===-1)&&(g.mimeType=y?"audio/webm":"audio/ogg"),g.mimeType&&g.mimeType.toString().toLowerCase()!=="audio/ogg"&&navigator.mozGetUserMedia&&(g.mimeType="audio/ogg")}var z=[];this.getArrayOfBlobs=function(){return z},this.record=function(){K.blob=null,K.clearRecordedData(),K.timestamps=[],Y=[],z=[];var q=g;g.disableLogs||console.log("Passing following config over MediaRecorder API.",q),M&&(M=null),y&&!j()&&(q="video/vp8"),typeof MediaRecorder.isTypeSupported=="function"&&q.mimeType&&(MediaRecorder.isTypeSupported(q.mimeType)||(g.disableLogs||console.warn("MediaRecorder API seems unable to record mimeType:",q.mimeType),q.mimeType=g.type==="audio"?"audio/webm":"video/webm"));try{M=new MediaRecorder(E,q),g.mimeType=q.mimeType}catch{M=new MediaRecorder(E)}q.mimeType&&!MediaRecorder.isTypeSupported&&"canRecordMimeType"in M&&M.canRecordMimeType(q.mimeType)===!1&&(g.disableLogs||console.warn("MediaRecorder API seems unable to record mimeType:",q.mimeType)),M.ondataavailable=function(oe){if(oe.data&&Y.push("ondataavailable: "+v(oe.data.size)),typeof g.timeSlice=="number"){if(oe.data&&oe.data.size&&(z.push(oe.data),L(),typeof g.ondataavailable=="function")){var te=g.getNativeBlob?oe.data:new Blob([oe.data],{type:B(q)});g.ondataavailable(te)}return}if(!oe.data||!oe.data.size||oe.data.size<100||K.blob){K.recordingCallback&&(K.recordingCallback(new Blob([],{type:B(q)})),K.recordingCallback=null);return}K.blob=g.getNativeBlob?oe.data:new Blob([oe.data],{type:B(q)}),K.recordingCallback&&(K.recordingCallback(K.blob),K.recordingCallback=null)},M.onstart=function(){Y.push("started")},M.onpause=function(){Y.push("paused")},M.onresume=function(){Y.push("resumed")},M.onstop=function(){Y.push("stopped")},M.onerror=function(oe){oe&&(oe.name||(oe.name="UnknownError"),Y.push("error: "+oe),g.disableLogs||(oe.name.toString().toLowerCase().indexOf("invalidstate")!==-1?console.error("The MediaRecorder is not in a state in which the proposed operation is allowed to be executed.",oe):oe.name.toString().toLowerCase().indexOf("notsupported")!==-1?console.error("MIME type (",q.mimeType,") is not supported.",oe):oe.name.toString().toLowerCase().indexOf("security")!==-1?console.error("MediaRecorder security error",oe):oe.name==="OutOfMemory"?console.error("The UA has exhaused the available memory. User agents SHOULD provide as much additional information as possible in the message attribute.",oe):oe.name==="IllegalStreamModification"?console.error("A modification to the stream has occurred that makes it impossible to continue recording. An example would be the addition of a Track while recording is occurring. User agents SHOULD provide as much additional information as possible in the message attribute.",oe):oe.name==="OtherRecordingError"?console.error("Used for an fatal error other than those listed above. User agents SHOULD provide as much additional information as possible in the message attribute.",oe):oe.name==="GenericError"?console.error("The UA cannot provide the codec or recording option that has been requested.",oe):console.error("MediaRecorder Error",oe)),function(te){if(!K.manuallyStopped&&M&&M.state==="inactive"){delete g.timeslice,M.start(10*60*1e3);return}setTimeout(te,1e3)}(),M.state!=="inactive"&&M.state!=="stopped"&&M.stop())},typeof g.timeSlice=="number"?(L(),M.start(g.timeSlice)):M.start(36e5),g.initCallback&&g.initCallback()},this.timestamps=[];function L(){K.timestamps.push(new Date().getTime()),typeof g.onTimeStamp=="function"&&g.onTimeStamp(K.timestamps[K.timestamps.length-1],K.timestamps)}function B(q){return M&&M.mimeType?M.mimeType:q.mimeType||"video/webm"}this.stop=function(q){q=q||function(){},K.manuallyStopped=!0,M&&(this.recordingCallback=q,M.state==="recording"&&M.stop(),typeof g.timeSlice=="number"&&setTimeout(function(){K.blob=new Blob(z,{type:B(g)}),K.recordingCallback(K.blob)},100))},this.pause=function(){M&&M.state==="recording"&&M.pause()},this.resume=function(){M&&M.state==="paused"&&M.resume()},this.clearRecordedData=function(){M&&M.state==="recording"&&K.stop(V),V()};function V(){z=[],M=null,K.timestamps=[]}var M;this.getInternalRecorder=function(){return M};function A(){if("active"in E){if(!E.active)return!1}else if("ended"in E&&E.ended)return!1;return!0}this.blob=null,this.getState=function(){return M&&M.state||"inactive"};var Y=[];this.getAllStates=function(){return Y},typeof g.checkForInactiveTracks>"u"&&(g.checkForInactiveTracks=!1);var K=this;(function q(){if(!(!M||g.checkForInactiveTracks===!1)){if(A()===!1){g.disableLogs||console.log("MediaStream seems stopped."),K.stop();return}setTimeout(q,1e3)}})(),this.name="MediaStreamRecorder",this.toString=function(){return this.name}}typeof t<"u"&&(t.MediaStreamRecorder=N);/** + * StereoAudioRecorder is a standalone class used by {@link RecordRTC} to bring "stereo" audio-recording in chrome. + * @summary JavaScript standalone object for stereo audio recording. + * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT} + * @author {@link https://MuazKhan.com|Muaz Khan} + * @typedef StereoAudioRecorder + * @class + * @example + * var recorder = new StereoAudioRecorder(MediaStream, { + * sampleRate: 44100, + * bufferSize: 4096 + * }); + * recorder.record(); + * recorder.stop(function(blob) { + * video.src = URL.createObjectURL(blob); + * }); + * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code} + * @param {MediaStream} mediaStream - MediaStream object fetched using getUserMedia API or generated using captureStreamUntilEnded or WebAudio API. + * @param {object} config - {sampleRate: 44100, bufferSize: 4096, numberOfAudioChannels: 1, etc.} + */function O(E,g){if(!R(E,"audio").length)throw"Your stream has no audio tracks.";g=g||{};var $=this,z=[],L=[],B=!1,V=0,M,A=2,Y=g.desiredSampRate;g.leftChannel===!0&&(A=1),g.numberOfAudioChannels===1&&(A=1),(!A||A<1)&&(A=2),g.disableLogs||console.log("StereoAudioRecorder is set to record number of channels: "+A),typeof g.checkForInactiveTracks>"u"&&(g.checkForInactiveTracks=!0);function K(){if(g.checkForInactiveTracks===!1)return!0;if("active"in E){if(!E.active)return!1}else if("ended"in E&&E.ended)return!1;return!0}this.record=function(){if(K()===!1)throw"Please make sure MediaStream is active.";ge(),X=ae=!1,B=!0,typeof g.timeSlice<"u"&&ve()};function q(Ce,Le){function De(he,Ge){var Xe=he.numberOfAudioChannels,Ye=he.leftBuffers.slice(0),ye=he.rightBuffers.slice(0),Pe=he.sampleRate,ue=he.internalInterleavedLength,me=he.desiredSampRate;Xe===2&&(Ye=Qe(Ye,ue),ye=Qe(ye,ue),me&&(Ye=$e(Ye,me,Pe),ye=$e(ye,me,Pe))),Xe===1&&(Ye=Qe(Ye,ue),me&&(Ye=$e(Ye,me,Pe))),me&&(Pe=me);function $e(tt,en,nt){var Tt=Math.round(tt.length*(en/nt)),It=[],qt=Number((tt.length-1)/(Tt-1));It[0]=tt[0];for(var Gn=1;Gn"u"&&(t.Storage={AudioContextConstructor:null,AudioContext:window.AudioContext||window.webkitAudioContext}),(!t.Storage.AudioContextConstructor||t.Storage.AudioContextConstructor.state==="closed")&&(t.Storage.AudioContextConstructor=new t.Storage.AudioContext);var te=t.Storage.AudioContextConstructor,ne=te.createMediaStreamSource(E),de=[0,256,512,1024,2048,4096,8192,16384],ke=typeof g.bufferSize>"u"?4096:g.bufferSize;if(de.indexOf(ke)===-1&&(g.disableLogs||console.log("Legal values for buffer-size are "+JSON.stringify(de,null," "))),te.createJavaScriptNode)M=te.createJavaScriptNode(ke,A,A);else if(te.createScriptProcessor)M=te.createScriptProcessor(ke,A,A);else throw"WebAudio API has no support on this browser.";ne.connect(M),g.bufferSize||(ke=M.bufferSize);var H=typeof g.sampleRate<"u"?g.sampleRate:te.sampleRate||44100;(H<22050||H>96e3)&&(g.disableLogs||console.log("sample-rate must be under range 22050 and 96000.")),g.disableLogs||g.desiredSampRate&&console.log("Desired sample-rate: "+g.desiredSampRate);var ae=!1;this.pause=function(){ae=!0},this.resume=function(){if(K()===!1)throw"Please make sure MediaStream is active.";if(!B){g.disableLogs||console.log("Seems recording has been restarted."),this.record();return}ae=!1},this.clearRecordedData=function(){g.checkForInactiveTracks=!1,B&&this.stop(D),D()};function ge(){z=[],L=[],V=0,X=!1,B=!1,ae=!1,te=null,$.leftchannel=z,$.rightchannel=L,$.numberOfAudioChannels=A,$.desiredSampRate=Y,$.sampleRate=H,$.recordingLength=V,pe={left:[],right:[],recordingLength:0}}function D(){M&&(M.onaudioprocess=null,M.disconnect(),M=null),ne&&(ne.disconnect(),ne=null),ge()}this.name="StereoAudioRecorder",this.toString=function(){return this.name};var X=!1;function fe(Ce){if(!ae){if(K()===!1&&(g.disableLogs||console.log("MediaStream seems stopped."),M.disconnect(),B=!1),!B){ne&&(ne.disconnect(),ne=null);return}X||(X=!0,g.onAudioProcessStarted&&g.onAudioProcessStarted(),g.initCallback&&g.initCallback());var Le=Ce.inputBuffer.getChannelData(0),De=new Float32Array(Le);if(z.push(De),A===2){var Ee=Ce.inputBuffer.getChannelData(1),he=new Float32Array(Ee);L.push(he)}V+=ke,$.recordingLength=V,typeof g.timeSlice<"u"&&(pe.recordingLength+=ke,pe.left.push(De),A===2&&pe.right.push(he))}}M.onaudioprocess=fe,te.createMediaStreamDestination?M.connect(te.createMediaStreamDestination()):M.connect(te.destination),this.leftchannel=z,this.rightchannel=L,this.numberOfAudioChannels=A,this.desiredSampRate=Y,this.sampleRate=H,$.recordingLength=V;var pe={left:[],right:[],recordingLength:0};function ve(){!B||typeof g.ondataavailable!="function"||typeof g.timeSlice>"u"||(pe.left.length?(q({desiredSampRate:Y,sampleRate:H,numberOfAudioChannels:A,internalInterleavedLength:pe.recordingLength,leftBuffers:pe.left,rightBuffers:A===1?[]:pe.right},function(Ce,Le){var De=new Blob([Le],{type:"audio/wav"});g.ondataavailable(De),setTimeout(ve,g.timeSlice)}),pe={left:[],right:[],recordingLength:0}):setTimeout(ve,g.timeSlice))}}typeof t<"u"&&(t.StereoAudioRecorder=O);/** + * CanvasRecorder is a standalone class used by {@link RecordRTC} to bring HTML5-Canvas recording into video WebM. It uses HTML2Canvas library and runs top over {@link Whammy}. + * @summary HTML2Canvas recording into video WebM. + * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT} + * @author {@link https://MuazKhan.com|Muaz Khan} + * @typedef CanvasRecorder + * @class + * @example + * var recorder = new CanvasRecorder(htmlElement, { disableLogs: true, useWhammyRecorder: true }); + * recorder.record(); + * recorder.stop(function(blob) { + * video.src = URL.createObjectURL(blob); + * }); + * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code} + * @param {HTMLElement} htmlElement - querySelector/getElementById/getElementsByTagName[0]/etc. + * @param {object} config - {disableLogs:true, initCallback: function} + */function F(E,g){if(typeof html2canvas>"u")throw"Please link: https://www.webrtc-experiment.com/screenshot.js";g=g||{},g.frameInterval||(g.frameInterval=10);var $=!1;["captureStream","mozCaptureStream","webkitCaptureStream"].forEach(function(de){de in document.createElement("canvas")&&($=!0)});var z=(!!window.webkitRTCPeerConnection||!!window.webkitGetUserMedia)&&!!window.chrome,L=50,B=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);z&&B&&B[2]&&(L=parseInt(B[2],10)),z&&L<52&&($=!1),g.useWhammyRecorder&&($=!1);var V,M;if($)if(g.disableLogs||console.log("Your browser supports both MediRecorder API and canvas.captureStream!"),E instanceof HTMLCanvasElement)V=E;else if(E instanceof CanvasRenderingContext2D)V=E.canvas;else throw"Please pass either HTMLCanvasElement or CanvasRenderingContext2D.";else navigator.mozGetUserMedia&&(g.disableLogs||console.error("Canvas recording is NOT supported in Firefox."));var A;this.record=function(){if(A=!0,$&&!g.useWhammyRecorder){var de;"captureStream"in V?de=V.captureStream(25):"mozCaptureStream"in V?de=V.mozCaptureStream(25):"webkitCaptureStream"in V&&(de=V.webkitCaptureStream(25));try{var ke=new C;ke.addTrack(R(de,"video")[0]),de=ke}catch{}if(!de)throw"captureStream API are NOT available.";M=new N(de,{mimeType:g.mimeType||"video/webm"}),M.record()}else ne.frames=[],te=new Date().getTime(),oe();g.initCallback&&g.initCallback()},this.getWebPImages=function(de){if(E.nodeName.toLowerCase()!=="canvas"){de();return}var ke=ne.frames.length;ne.frames.forEach(function(H,ae){var ge=ke-ae;g.disableLogs||console.log(ge+"/"+ke+" frames remaining"),g.onEncodingCallback&&g.onEncodingCallback(ge,ke);var D=H.image.toDataURL("image/webp",1);ne.frames[ae].image=D}),g.disableLogs||console.log("Generating WebM"),de()},this.stop=function(de){A=!1;var ke=this;if($&&M){M.stop(de);return}this.getWebPImages(function(){ne.compile(function(H){g.disableLogs||console.log("Recording finished!"),ke.blob=H,ke.blob.forEach&&(ke.blob=new Blob([],{type:"video/webm"})),de&&de(ke.blob),ne.frames=[]})})};var Y=!1;this.pause=function(){if(Y=!0,M instanceof N){M.pause();return}},this.resume=function(){if(Y=!1,M instanceof N){M.resume();return}A||this.record()},this.clearRecordedData=function(){A&&this.stop(K),K()};function K(){ne.frames=[],A=!1,Y=!1}this.name="CanvasRecorder",this.toString=function(){return this.name};function q(){var de=document.createElement("canvas"),ke=de.getContext("2d");return de.width=E.width,de.height=E.height,ke.drawImage(E,0,0),de}function oe(){if(Y)return te=new Date().getTime(),setTimeout(oe,500);if(E.nodeName.toLowerCase()==="canvas"){var de=new Date().getTime()-te;te=new Date().getTime(),ne.frames.push({image:q(),duration:de}),A&&setTimeout(oe,g.frameInterval);return}html2canvas(E,{grabMouse:typeof g.showMousePointer>"u"||g.showMousePointer,onrendered:function(ke){var H=new Date().getTime()-te;if(!H)return setTimeout(oe,g.frameInterval);te=new Date().getTime(),ne.frames.push({image:ke.toDataURL("image/webp",1),duration:H}),A&&setTimeout(oe,g.frameInterval)}})}var te=new Date().getTime(),ne=new U.Video(100)}typeof t<"u"&&(t.CanvasRecorder=F);/** + * WhammyRecorder is a standalone class used by {@link RecordRTC} to bring video recording in Chrome. It runs top over {@link Whammy}. + * @summary Video recording feature in Chrome. + * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT} + * @author {@link https://MuazKhan.com|Muaz Khan} + * @typedef WhammyRecorder + * @class + * @example + * var recorder = new WhammyRecorder(mediaStream); + * recorder.record(); + * recorder.stop(function(blob) { + * video.src = URL.createObjectURL(blob); + * }); + * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code} + * @param {MediaStream} mediaStream - MediaStream object fetched using getUserMedia API or generated using captureStreamUntilEnded or WebAudio API. + * @param {object} config - {disableLogs: true, initCallback: function, video: HTMLVideoElement, etc.} + */function W(E,g){g=g||{},g.frameInterval||(g.frameInterval=10),g.disableLogs||console.log("Using frames-interval:",g.frameInterval),this.record=function(){g.width||(g.width=320),g.height||(g.height=240),g.video||(g.video={width:g.width,height:g.height}),g.canvas||(g.canvas={width:g.width,height:g.height}),A.width=g.canvas.width||320,A.height=g.canvas.height||240,Y=A.getContext("2d"),g.video&&g.video instanceof HTMLVideoElement?(K=g.video.cloneNode(),g.initCallback&&g.initCallback()):(K=document.createElement("video"),k(E,K),K.onloadedmetadata=function(){g.initCallback&&g.initCallback()},K.width=g.video.width,K.height=g.video.height),K.muted=!0,K.play(),q=new Date().getTime(),oe=new U.Video,g.disableLogs||(console.log("canvas resolutions",A.width,"*",A.height),console.log("video width/height",K.width||A.width,"*",K.height||A.height)),$(g.frameInterval)};function $(te){te=typeof te<"u"?te:10;var ne=new Date().getTime()-q;if(!ne)return setTimeout($,te,te);if(V)return q=new Date().getTime(),setTimeout($,100);q=new Date().getTime(),K.paused&&K.play(),Y.drawImage(K,0,0,A.width,A.height),oe.frames.push({duration:ne,image:A.toDataURL("image/webp")}),B||setTimeout($,te,te)}function z(te){var ne=-1,de=te.length;(function ke(){if(ne++,ne===de){te.callback();return}setTimeout(function(){te.functionToLoop(ke,ne)},1)})()}function L(te,ne,de,ke,H){var ae=document.createElement("canvas");ae.width=A.width,ae.height=A.height;var ge=ae.getContext("2d"),D=[],X=te.length,fe={r:0,g:0,b:0},pe=Math.sqrt(Math.pow(255,2)+Math.pow(255,2)+Math.pow(255,2)),ve=0,Ce=0,Le=!1;z({length:X,functionToLoop:function(De,Ee){var he,Ge,Xe,Ye=function(){!Le&&Xe-he<=Xe*Ce||(Le=!0,D.push(te[Ee])),De()};if(Le)Ye();else{var ye=new Image;ye.onload=function(){ge.drawImage(ye,0,0,A.width,A.height);var Pe=ge.getImageData(0,0,A.width,A.height);he=0,Ge=Pe.data.length,Xe=Pe.data.length/4;for(var ue=0;ue0;)ae.push(H&255),H=H>>8;return new Uint8Array(ae.reverse())}function A(H){return new Uint8Array(H.split("").map(function(ae){return ae.charCodeAt(0)}))}function Y(H){var ae=[],ge=H.length%8?new Array(9-H.length%8).join("0"):"";H=ge+H;for(var D=0;D127)throw"TrackNumber > 127 not supported";var ge=[H.trackNum|128,H.timecode>>8,H.timecode&255,ae].map(function(D){return String.fromCharCode(D)}).join("")+H.frame;return ge}function oe(H){for(var ae=H.RIFF[0].WEBP[0],ge=ae.indexOf("*"),D=0,X=[];D<4;D++)X[D]=ae.charCodeAt(ge+3+D);var fe,pe,ve;return ve=X[1]<<8|X[0],fe=ve&16383,ve=X[3]<<8|X[2],pe=ve&16383,{width:fe,height:pe,data:ae,riff:H}}function te(H,ae){return parseInt(H.substr(ae+4,4).split("").map(function(ge){var D=ge.charCodeAt(0).toString(2);return new Array(8-D.length+1).join("0")+D}).join(""),2)}function ne(H){for(var ae=0,ge={};ae"u"||typeof indexedDB.open>"u"){console.error("IndexedDB API are not available in this browser.");return}var g=1,$=this.dbName||location.href.replace(/\/|:|#|%|\.|\[|\]/g,""),z,L=indexedDB.open($,g);function B(M){M.createObjectStore(E.dataStoreName)}function V(){var M=z.transaction([E.dataStoreName],"readwrite");E.videoBlob&&M.objectStore(E.dataStoreName).put(E.videoBlob,"videoBlob"),E.gifBlob&&M.objectStore(E.dataStoreName).put(E.gifBlob,"gifBlob"),E.audioBlob&&M.objectStore(E.dataStoreName).put(E.audioBlob,"audioBlob");function A(Y){M.objectStore(E.dataStoreName).get(Y).onsuccess=function(K){E.callback&&E.callback(K.target.result,Y)}}A("audioBlob"),A("videoBlob"),A("gifBlob")}L.onerror=E.onError,L.onsuccess=function(){if(z=L.result,z.onerror=E.onError,z.setVersion)if(z.version!==g){var M=z.setVersion(g);M.onsuccess=function(){B(z),V()}}else V();else V()},L.onupgradeneeded=function(M){B(M.target.result)}},Fetch:function(E){return this.callback=E,this.init(),this},Store:function(E){return this.audioBlob=E.audioBlob,this.videoBlob=E.videoBlob,this.gifBlob=E.gifBlob,this.init(),this},onError:function(E){console.error(JSON.stringify(E,null," "))},dataStoreName:"recordRTC",dbName:null};typeof t<"u"&&(t.DiskStorage=G);/** + * GifRecorder is standalone calss used by {@link RecordRTC} to record video or canvas into animated gif. + * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT} + * @author {@link https://MuazKhan.com|Muaz Khan} + * @typedef GifRecorder + * @class + * @example + * var recorder = new GifRecorder(mediaStream || canvas || context, { onGifPreview: function, onGifRecordingStarted: function, width: 1280, height: 720, frameRate: 200, quality: 10 }); + * recorder.record(); + * recorder.stop(function(blob) { + * img.src = URL.createObjectURL(blob); + * }); + * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code} + * @param {MediaStream} mediaStream - MediaStream object or HTMLCanvasElement or CanvasRenderingContext2D. + * @param {object} config - {disableLogs:true, initCallback: function, width: 320, height: 240, frameRate: 200, quality: 10} + */function ee(E,g){if(typeof GIFEncoder>"u"){var $=document.createElement("script");$.src="https://www.webrtc-experiment.com/gif-recorder.js",(document.body||document.documentElement).appendChild($)}g=g||{};var z=E instanceof CanvasRenderingContext2D||E instanceof HTMLCanvasElement;this.record=function(){if(typeof GIFEncoder>"u"){setTimeout(te.record,1e3);return}if(!A){setTimeout(te.record,1e3);return}z||(g.width||(g.width=Y.offsetWidth||320),g.height||(g.height=Y.offsetHeight||240),g.video||(g.video={width:g.width,height:g.height}),g.canvas||(g.canvas={width:g.width,height:g.height}),V.width=g.canvas.width||320,V.height=g.canvas.height||240,Y.width=g.video.width||320,Y.height=g.video.height||240),oe=new GIFEncoder,oe.setRepeat(0),oe.setDelay(g.frameRate||200),oe.setQuality(g.quality||10),oe.start(),typeof g.onGifRecordingStarted=="function"&&g.onGifRecordingStarted();function ne(de){if(te.clearedRecordedData!==!0){if(L)return setTimeout(function(){ne(de)},100);K=a(ne),typeof q===void 0&&(q=de),!(de-q<90)&&(!z&&Y.paused&&Y.play(),z||M.drawImage(Y,0,0,V.width,V.height),g.onGifPreview&&g.onGifPreview(V.toDataURL("image/png")),oe.addFrame(M),q=de)}}K=a(ne),g.initCallback&&g.initCallback()},this.stop=function(ne){ne=ne||function(){},K&&l(K),this.blob=new Blob([new Uint8Array(oe.stream().bin)],{type:"image/gif"}),ne(this.blob),oe.stream().bin=[]};var L=!1;this.pause=function(){L=!0},this.resume=function(){L=!1},this.clearRecordedData=function(){te.clearedRecordedData=!0,B()};function B(){oe&&(oe.stream().bin=[])}this.name="GifRecorder",this.toString=function(){return this.name};var V=document.createElement("canvas"),M=V.getContext("2d");z&&(E instanceof CanvasRenderingContext2D?(M=E,V=M.canvas):E instanceof HTMLCanvasElement&&(M=E.getContext("2d"),V=E));var A=!0;if(!z){var Y=document.createElement("video");Y.muted=!0,Y.autoplay=!0,Y.playsInline=!0,A=!1,Y.onloadedmetadata=function(){A=!0},k(E,Y),Y.play()}var K=null,q,oe,te=this}typeof t<"u"&&(t.GifRecorder=ee);function J(E,g){var $="Fake/5.0 (FakeOS) AppleWebKit/123 (KHTML, like Gecko) Fake/12.3.4567.89 Fake/123.45";(function(D){typeof t<"u"||D&&(typeof window<"u"||typeof rt>"u"||(rt.navigator={userAgent:$,getUserMedia:function(){}},rt.console||(rt.console={}),(typeof rt.console.log>"u"||typeof rt.console.error>"u")&&(rt.console.error=rt.console.log=rt.console.log||function(){console.log(arguments)}),typeof document>"u"&&(D.document={documentElement:{appendChild:function(){return""}}},document.createElement=document.captureStream=document.mozCaptureStream=function(){var X={getContext:function(){return X},play:function(){},pause:function(){},drawImage:function(){},toDataURL:function(){return""},style:{}};return X},D.HTMLVideoElement=function(){}),typeof location>"u"&&(D.location={protocol:"file:",href:"",hash:""}),typeof screen>"u"&&(D.screen={width:0,height:0}),typeof Y>"u"&&(D.URL={createObjectURL:function(){return""},revokeObjectURL:function(){return""}}),D.window=rt))})(typeof rt<"u"?rt:null),g=g||"multi-streams-mixer";var z=[],L=!1,B=document.createElement("canvas"),V=B.getContext("2d");B.style.opacity=0,B.style.position="absolute",B.style.zIndex=-1,B.style.top="-1000em",B.style.left="-1000em",B.className=g,(document.body||document.documentElement).appendChild(B),this.disableLogs=!1,this.frameInterval=10,this.width=360,this.height=240,this.useGainNode=!0;var M=this,A=window.AudioContext;typeof A>"u"&&(typeof webkitAudioContext<"u"&&(A=webkitAudioContext),typeof mozAudioContext<"u"&&(A=mozAudioContext));var Y=window.URL;typeof Y>"u"&&typeof webkitURL<"u"&&(Y=webkitURL),typeof navigator<"u"&&typeof navigator.getUserMedia>"u"&&(typeof navigator.webkitGetUserMedia<"u"&&(navigator.getUserMedia=navigator.webkitGetUserMedia),typeof navigator.mozGetUserMedia<"u"&&(navigator.getUserMedia=navigator.mozGetUserMedia));var K=window.MediaStream;typeof K>"u"&&typeof webkitMediaStream<"u"&&(K=webkitMediaStream),typeof K<"u"&&typeof K.prototype.stop>"u"&&(K.prototype.stop=function(){this.getTracks().forEach(function(D){D.stop()})});var q={};typeof A<"u"?q.AudioContext=A:typeof webkitAudioContext<"u"&&(q.AudioContext=webkitAudioContext);function oe(D,X){"srcObject"in X?X.srcObject=D:"mozSrcObject"in X?X.mozSrcObject=D:X.srcObject=D}this.startDrawingFrames=function(){te()};function te(){if(!L){var D=z.length,X=!1,fe=[];if(z.forEach(function(ve){ve.stream||(ve.stream={}),ve.stream.fullcanvas?X=ve:fe.push(ve)}),X)B.width=X.stream.width,B.height=X.stream.height;else if(fe.length){B.width=D>1?fe[0].width*2:fe[0].width;var pe=1;(D===3||D===4)&&(pe=2),(D===5||D===6)&&(pe=3),(D===7||D===8)&&(pe=4),(D===9||D===10)&&(pe=5),B.height=fe[0].height*pe}else B.width=M.width||360,B.height=M.height||240;X&&X instanceof HTMLVideoElement&&ne(X),fe.forEach(function(ve,Ce){ne(ve,Ce)}),setTimeout(te,M.frameInterval)}}function ne(D,X){if(!L){var fe=0,pe=0,ve=D.width,Ce=D.height;X===1&&(fe=D.width),X===2&&(pe=D.height),X===3&&(fe=D.width,pe=D.height),X===4&&(pe=D.height*2),X===5&&(fe=D.width,pe=D.height*2),X===6&&(pe=D.height*3),X===7&&(fe=D.width,pe=D.height*3),typeof D.stream.left<"u"&&(fe=D.stream.left),typeof D.stream.top<"u"&&(pe=D.stream.top),typeof D.stream.width<"u"&&(ve=D.stream.width),typeof D.stream.height<"u"&&(Ce=D.stream.height),V.drawImage(D,fe,pe,ve,Ce),typeof D.stream.onRender=="function"&&D.stream.onRender(V,fe,pe,ve,Ce,X)}}function de(){L=!1;var D=ke(),X=H();return X&&X.getTracks().filter(function(fe){return fe.kind==="audio"}).forEach(function(fe){D.addTrack(fe)}),E.forEach(function(fe){fe.fullcanvas}),D}function ke(){ge();var D;"captureStream"in B?D=B.captureStream():"mozCaptureStream"in B?D=B.mozCaptureStream():M.disableLogs||console.error("Upgrade to latest Chrome or otherwise enable this flag: chrome://flags/#enable-experimental-web-platform-features");var X=new K;return D.getTracks().filter(function(fe){return fe.kind==="video"}).forEach(function(fe){X.addTrack(fe)}),B.stream=X,X}function H(){q.AudioContextConstructor||(q.AudioContextConstructor=new q.AudioContext),M.audioContext=q.AudioContextConstructor,M.audioSources=[],M.useGainNode===!0&&(M.gainNode=M.audioContext.createGain(),M.gainNode.connect(M.audioContext.destination),M.gainNode.gain.value=0);var D=0;if(E.forEach(function(X){if(X.getTracks().filter(function(pe){return pe.kind==="audio"}).length){D++;var fe=M.audioContext.createMediaStreamSource(X);M.useGainNode===!0&&fe.connect(M.gainNode),M.audioSources.push(fe)}}),!!D)return M.audioDestination=M.audioContext.createMediaStreamDestination(),M.audioSources.forEach(function(X){X.connect(M.audioDestination)}),M.audioDestination.stream}function ae(D){var X=document.createElement("video");return oe(D,X),X.className=g,X.muted=!0,X.volume=0,X.width=D.width||M.width||360,X.height=D.height||M.height||240,X.play(),X}this.appendStreams=function(D){if(!D)throw"First parameter is required.";D instanceof Array||(D=[D]),D.forEach(function(X){var fe=new K;if(X.getTracks().filter(function(Ce){return Ce.kind==="video"}).length){var pe=ae(X);pe.stream=X,z.push(pe),fe.addTrack(X.getTracks().filter(function(Ce){return Ce.kind==="video"})[0])}if(X.getTracks().filter(function(Ce){return Ce.kind==="audio"}).length){var ve=M.audioContext.createMediaStreamSource(X);M.audioDestination=M.audioContext.createMediaStreamDestination(),ve.connect(M.audioDestination),fe.addTrack(M.audioDestination.stream.getTracks().filter(function(Ce){return Ce.kind==="audio"})[0])}E.push(fe)})},this.releaseStreams=function(){z=[],L=!0,M.gainNode&&(M.gainNode.disconnect(),M.gainNode=null),M.audioSources.length&&(M.audioSources.forEach(function(D){D.disconnect()}),M.audioSources=[]),M.audioDestination&&(M.audioDestination.disconnect(),M.audioDestination=null),M.audioContext&&M.audioContext.close(),M.audioContext=null,V.clearRect(0,0,B.width,B.height),B.stream&&(B.stream.stop(),B.stream=null)},this.resetVideoStreams=function(D){D&&!(D instanceof Array)&&(D=[D]),ge(D)};function ge(D){z=[],D=D||E,D.forEach(function(X){if(X.getTracks().filter(function(pe){return pe.kind==="video"}).length){var fe=ae(X);fe.stream=X,z.push(fe)}})}this.name="MultiStreamsMixer",this.toString=function(){return this.name},this.getMixedStream=de}typeof t>"u"&&(e.exports=J);/** + * MultiStreamRecorder can record multiple videos in single container. + * @summary Multi-videos recorder. + * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT} + * @author {@link https://MuazKhan.com|Muaz Khan} + * @typedef MultiStreamRecorder + * @class + * @example + * var options = { + * mimeType: 'video/webm' + * } + * var recorder = new MultiStreamRecorder(ArrayOfMediaStreams, options); + * recorder.record(); + * recorder.stop(function(blob) { + * video.src = URL.createObjectURL(blob); + * + * // or + * var blob = recorder.blob; + * }); + * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code} + * @param {MediaStreams} mediaStreams - Array of MediaStreams. + * @param {object} config - {disableLogs:true, frameInterval: 1, mimeType: "video/webm"} + */function re(E,g){E=E||[];var $=this,z,L;g=g||{elementClass:"multi-streams-mixer",mimeType:"video/webm",video:{width:360,height:240}},g.frameInterval||(g.frameInterval=10),g.video||(g.video={}),g.video.width||(g.video.width=360),g.video.height||(g.video.height=240),this.record=function(){z=new J(E,g.elementClass||"multi-streams-mixer"),B().length&&(z.frameInterval=g.frameInterval||10,z.width=g.video.width||360,z.height=g.video.height||240,z.startDrawingFrames()),g.previewStream&&typeof g.previewStream=="function"&&g.previewStream(z.getMixedStream()),L=new N(z.getMixedStream(),g),L.record()};function B(){var V=[];return E.forEach(function(M){R(M,"video").forEach(function(A){V.push(A)})}),V}this.stop=function(V){L&&L.stop(function(M){$.blob=M,V(M),$.clearRecordedData()})},this.pause=function(){L&&L.pause()},this.resume=function(){L&&L.resume()},this.clearRecordedData=function(){L&&(L.clearRecordedData(),L=null),z&&(z.releaseStreams(),z=null)},this.addStreams=function(V){if(!V)throw"First parameter is required.";V instanceof Array||(V=[V]),E.concat(V),!(!L||!z)&&(z.appendStreams(V),g.previewStream&&typeof g.previewStream=="function"&&g.previewStream(z.getMixedStream()))},this.resetVideoStreams=function(V){z&&(V&&!(V instanceof Array)&&(V=[V]),z.resetVideoStreams(V))},this.getMixer=function(){return z},this.name="MultiStreamRecorder",this.toString=function(){return this.name}}typeof t<"u"&&(t.MultiStreamRecorder=re);/** + * RecordRTCPromisesHandler adds promises support in {@link RecordRTC}. Try a {@link https://github.com/muaz-khan/RecordRTC/blob/master/simple-demos/RecordRTCPromisesHandler.html|demo here} + * @summary Promises for {@link RecordRTC} + * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT} + * @author {@link https://MuazKhan.com|Muaz Khan} + * @typedef RecordRTCPromisesHandler + * @class + * @example + * var recorder = new RecordRTCPromisesHandler(mediaStream, options); + * recorder.startRecording() + * .then(successCB) + * .catch(errorCB); + * // Note: You can access all RecordRTC API using "recorder.recordRTC" e.g. + * recorder.recordRTC.onStateChanged = function(state) {}; + * recorder.recordRTC.setRecordingDuration(5000); + * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code} + * @param {MediaStream} mediaStream - Single media-stream object, array of media-streams, html-canvas-element, etc. + * @param {object} config - {type:"video", recorderType: MediaStreamRecorder, disableLogs: true, numberOfAudioChannels: 1, bufferSize: 0, sampleRate: 0, video: HTMLVideoElement, etc.} + * @throws Will throw an error if "new" keyword is not used to initiate "RecordRTCPromisesHandler". Also throws error if first argument "MediaStream" is missing. + * @requires {@link RecordRTC} + */function I(E,g){if(!this)throw'Use "new RecordRTCPromisesHandler()"';if(typeof E>"u")throw'First argument "MediaStream" is required.';var $=this;$.recordRTC=new t(E,g),this.startRecording=function(){return new Promise(function(z,L){try{$.recordRTC.startRecording(),z()}catch(B){L(B)}})},this.stopRecording=function(){return new Promise(function(z,L){try{$.recordRTC.stopRecording(function(B){if($.blob=$.recordRTC.getBlob(),!$.blob||!$.blob.size){L("Empty blob.",$.blob);return}z(B)})}catch(B){L(B)}})},this.pauseRecording=function(){return new Promise(function(z,L){try{$.recordRTC.pauseRecording(),z()}catch(B){L(B)}})},this.resumeRecording=function(){return new Promise(function(z,L){try{$.recordRTC.resumeRecording(),z()}catch(B){L(B)}})},this.getDataURL=function(z){return new Promise(function(L,B){try{$.recordRTC.getDataURL(function(V){L(V)})}catch(V){B(V)}})},this.getBlob=function(){return new Promise(function(z,L){try{z($.recordRTC.getBlob())}catch(B){L(B)}})},this.getInternalRecorder=function(){return new Promise(function(z,L){try{z($.recordRTC.getInternalRecorder())}catch(B){L(B)}})},this.reset=function(){return new Promise(function(z,L){try{z($.recordRTC.reset())}catch(B){L(B)}})},this.destroy=function(){return new Promise(function(z,L){try{z($.recordRTC.destroy())}catch(B){L(B)}})},this.getState=function(){return new Promise(function(z,L){try{z($.recordRTC.getState())}catch(B){L(B)}})},this.blob=null,this.version="5.6.2"}typeof t<"u"&&(t.RecordRTCPromisesHandler=I);/** + * WebAssemblyRecorder lets you create webm videos in JavaScript via WebAssembly. The library consumes raw RGBA32 buffers (4 bytes per pixel) and turns them into a webm video with the given framerate and quality. This makes it compatible out-of-the-box with ImageData from a CANVAS. With realtime mode you can also use webm-wasm for streaming webm videos. + * @summary Video recording feature in Chrome, Firefox and maybe Edge. + * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT} + * @author {@link https://MuazKhan.com|Muaz Khan} + * @typedef WebAssemblyRecorder + * @class + * @example + * var recorder = new WebAssemblyRecorder(mediaStream); + * recorder.record(); + * recorder.stop(function(blob) { + * video.src = URL.createObjectURL(blob); + * }); + * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code} + * @param {MediaStream} mediaStream - MediaStream object fetched using getUserMedia API or generated using captureStreamUntilEnded or WebAudio API. + * @param {object} config - {webAssemblyPath:'webm-wasm.wasm',workerPath: 'webm-worker.js', frameRate: 30, width: 1920, height: 1080, bitrate: 1024, realtime: true} + */function _(E,g){(typeof ReadableStream>"u"||typeof WritableStream>"u")&&console.error("Following polyfill is strongly recommended: https://unpkg.com/@mattiasbuelens/web-streams-polyfill/dist/polyfill.min.js"),g=g||{},g.width=g.width||640,g.height=g.height||480,g.frameRate=g.frameRate||30,g.bitrate=g.bitrate||1200,g.realtime=g.realtime||!0;var $;function z(){return new ReadableStream({start:function(Y){var K=document.createElement("canvas"),q=document.createElement("video"),oe=!0;q.srcObject=E,q.muted=!0,q.height=g.height,q.width=g.width,q.volume=0,q.onplaying=function(){K.width=g.width,K.height=g.height;var te=K.getContext("2d"),ne=1e3/g.frameRate,de=setInterval(function(){if($&&(clearInterval(de),Y.close()),oe&&(oe=!1,g.onVideoProcessStarted&&g.onVideoProcessStarted()),te.drawImage(q,0,0),Y._controlledReadableStream.state!=="closed")try{Y.enqueue(te.getImageData(0,0,g.width,g.height))}catch{}},ne)},q.play()}})}var L;function B(Y,K){if(!g.workerPath&&!K){$=!1,fetch("https://unpkg.com/webm-wasm@latest/dist/webm-worker.js").then(function(oe){oe.arrayBuffer().then(function(te){B(Y,te)})});return}if(!g.workerPath&&K instanceof ArrayBuffer){var q=new Blob([K],{type:"text/javascript"});g.workerPath=u.createObjectURL(q)}g.workerPath||console.error("workerPath parameter is missing."),L=new Worker(g.workerPath),L.postMessage(g.webAssemblyPath||"https://unpkg.com/webm-wasm@latest/dist/webm-wasm.wasm"),L.addEventListener("message",function(oe){oe.data==="READY"?(L.postMessage({width:g.width,height:g.height,bitrate:g.bitrate||1200,timebaseDen:g.frameRate||30,realtime:g.realtime}),z().pipeTo(new WritableStream({write:function(te){if($){console.error("Got image, but recorder is finished!");return}L.postMessage(te.data.buffer,[te.data.buffer])}}))):oe.data&&(V||A.push(oe.data))})}this.record=function(){A=[],V=!1,this.blob=null,B(E),typeof g.initCallback=="function"&&g.initCallback()};var V;this.pause=function(){V=!0},this.resume=function(){V=!1};function M(Y){if(!L){Y&&Y();return}L.addEventListener("message",function(K){K.data===null&&(L.terminate(),L=null,Y&&Y())}),L.postMessage(null)}var A=[];this.stop=function(Y){$=!0;var K=this;M(function(){K.blob=new Blob(A,{type:"video/webm"}),Y(K.blob)})},this.name="WebAssemblyRecorder",this.toString=function(){return this.name},this.clearRecordedData=function(){A=[],V=!1,this.blob=null},this.blob=null}typeof t<"u"&&(t.WebAssemblyRecorder=_)})(p2);var NN=p2.exports;const ky=Nc(NN),DN=()=>d.jsxs(at,{sx:{display:"flex",alignItems:"center",color:"text.secondary"},children:[d.jsx(Er,{src:Pi,sx:{width:24,height:24,marginRight:1},alt:"Aria"}),d.jsxs("div",{style:{display:"flex"},children:[d.jsx("div",{style:{animation:"blink 1.4s infinite",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),d.jsx("div",{style:{animation:"blink 1.4s infinite 0.2s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),d.jsx("div",{style:{animation:"blink 1.4s infinite 0.4s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor"}})]})]}),zN=()=>{const{user:e,voiceEnabled:t,setVoiceEnabled:n}=p.useContext(vr),r=e==null?void 0:e.userId,[o,i]=p.useState(null),[a,s]=p.useState(0),[l,c]=p.useState(""),[u,f]=p.useState([]),[h,w]=p.useState(!1),[y,x]=p.useState(null),C=p.useRef([]),[v,m]=p.useState(!1),[b,R]=p.useState(""),[k,T]=p.useState(!1),[P,j]=p.useState(!1),[N,O]=p.useState(""),[F,W]=p.useState("info"),[U,G]=p.useState(null),ee=M=>{M.preventDefault(),n(!t)},J=M=>{if(!t||M===U){G(null),window.speechSynthesis.cancel();return}const A=window.speechSynthesis,Y=new SpeechSynthesisUtterance(M),K=()=>{const q=A.getVoices();console.log(q.map(te=>`${te.name} - ${te.lang} - ${te.gender}`));const oe=q.find(te=>te.name.includes("Microsoft Zira - English (United States)"));oe?Y.voice=oe:console.log("No female voice found"),Y.onend=()=>{G(null)},G(M),A.speak(Y)};A.getVoices().length===0?A.onvoiceschanged=K:K()},re=p.useCallback(async()=>{if(r){m(!0),T(!0);try{const M=await fetch(`/api/ai/mental_health/welcome/${r}`,{method:"POST",headers:{"Content-Type":"application/json"}}),A=await M.json();console.log(A),M.ok?(R(A.message),t&&A.message&&J(A.message),i(A.chat_id),console.log(A.chat_id)):(console.error("Failed to fetch welcome message:",A),R("Error fetching welcome message."))}catch(M){console.error("Network or server error:",M)}finally{m(!1),T(!1)}}},[r]);p.useEffect(()=>{re()},[]);const I=(M,A)=>{A!=="clickaway"&&j(!1)},_=p.useCallback(async()=>{if(o!==null){m(!0);try{const M=await fetch(`/api/ai/mental_health/finalize/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"}}),A=await M.json();M.ok?(O("Chat finalized successfully"),W("success"),i(null),s(0),f([]),re()):(O("Failed to finalize chat"),W("error"))}catch{O("Error finalizing chat"),W("error")}finally{m(!1),j(!0)}}},[r,o,re]),E=p.useCallback(async()=>{if(!(!l.trim()||o===void 0)){console.log(o),m(!0);try{const M=JSON.stringify({prompt:l,turn_id:a}),A=await fetch(`/api/ai/mental_health/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"},body:M}),Y=await A.json();console.log(Y),A.ok?(f(K=>[...K,{message:l,sender:"user"},{message:Y,sender:"agent"}]),t&&Y&&J(Y),s(K=>K+1),c("")):(console.error("Failed to send message:",Y.error||"Unknown error occurred"),O(Y.error||"An error occurred while sending the message."),W("error"),j(!0))}catch(M){console.error("Failed to send message:",M),O("Network or server error occurred."),W("error"),j(!0)}finally{m(!1)}}},[l,r,o,a]),g=()=>MediaRecorder.isTypeSupported?MediaRecorder.isTypeSupported("audio/webm; codecs=opus"):!1,$=()=>{navigator.mediaDevices.getUserMedia({audio:!0}).then(M=>{C.current=[];const A=g(),Y={type:"audio",mimeType:A?"audio/webm; codecs=opus":"audio/wav",recorderType:A?MediaRecorder:ky.StereoAudioRecorder,numberOfAudioChannels:1},K=A?new MediaRecorder(M,Y):new ky(M,Y);K.ondataavailable=q=>{console.log("Data available:",q.data.size),C.current.push(q.data)},K.startRecording(),x(K),w(!0)}).catch(M=>{console.error("Error accessing microphone:",M)})},z=()=>{y&&(y.onstop=()=>{L(C.current,{type:y.mimeType}),w(!1),x(null)},y.stop())},L=M=>{console.log("Audio chunks size:",M.reduce((K,q)=>K+q.size,0));const A=new Blob(M,{type:"audio/webm"});if(A.size===0){console.error("Audio Blob is empty");return}console.log(`Sending audio blob of size: ${A.size} bytes`);const Y=new FormData;Y.append("audio",A),m(!0),Oe.post("/api/ai/mental_health/voice-to-text",Y,{headers:{"Content-Type":"multipart/form-data"}}).then(K=>{const{message:q}=K.data;c(q),E()}).catch(K=>{console.error("Error uploading audio:",K),j(!0),O("Error processing voice input: "+K.message),W("error")}).finally(()=>{m(!1)})},B=p.useCallback(M=>{const A=M.target.value;A.split(/\s+/).length>200?(c(K=>K.split(/\s+/).slice(0,200).join(" ")),O("Word limit reached. Only 200 words allowed."),W("warning"),j(!0)):c(A)},[]),V=M=>M===U?d.jsx(Lc,{}):d.jsx(_c,{});return d.jsxs(d.Fragment,{children:[d.jsx("style",{children:` + @keyframes blink { + 0%, 100% { opacity: 0; } + 50% { opacity: 1; } + } + @media (max-width: 720px) { + .new-chat-button { + + top: 5px; + right: 5px; + padding: 4px 8px; /* Smaller padding */ + font-size: 0.8rem; /* Smaller font size */ + } + } + `}),d.jsxs(at,{sx:{maxWidth:"100%",mx:"auto",my:2,display:"flex",flexDirection:"column",height:"91vh",borderRadius:2,boxShadow:1},children:[d.jsxs(ad,{sx:{display:"flex",flexDirection:"column",height:"100%",borderRadius:2,boxShadow:3},children:[d.jsxs(Cm,{sx:{flexGrow:1,overflow:"auto",padding:3,position:"relative"},children:[d.jsxs(at,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",position:"relative",marginBottom:"5px"},children:[d.jsx(Zn,{title:"Toggle voice responses",children:d.jsx(ut,{color:"inherit",onClick:ee,sx:{padding:0},children:d.jsx(IA,{checked:t,onChange:M=>n(M.target.checked),icon:d.jsx(Lc,{}),checkedIcon:d.jsx(_c,{}),inputProps:{"aria-label":"Voice response toggle"},color:"default",sx:{height:42,"& .MuiSwitch-switchBase":{padding:"9px"},"& .MuiSwitch-switchBase.Mui-checked":{color:"white",transform:"translateX(16px)","& + .MuiSwitch-track":{backgroundColor:"primary.main"}}}})})}),d.jsx(Zn,{title:"Start a new chat",placement:"top",arrow:!0,children:d.jsx(ut,{"aria-label":"new chat",color:"primary",onClick:_,disabled:v,sx:{"&:hover":{backgroundColor:"primary.main",color:"common.white"}},children:d.jsx(Um,{})})})]}),d.jsx(xs,{sx:{marginBottom:"10px"}}),b.length===0&&d.jsxs(at,{sx:{display:"flex",marginBottom:2,marginTop:3},children:[d.jsx(Er,{src:Pi,sx:{width:44,height:44,marginRight:2},alt:"Aria"}),d.jsx(Ie,{variant:"h4",component:"h1",gutterBottom:!0,children:"Welcome to Mental Health Companion"})]}),k?d.jsx(DN,{}):u.length===0&&d.jsxs(at,{sx:{display:"flex"},children:[d.jsx(Er,{src:Pi,sx:{width:36,height:36,marginRight:1},alt:"Aria"}),d.jsxs(Ie,{variant:"body1",gutterBottom:!0,sx:{bgcolor:"grey.200",borderRadius:"16px",px:2,py:1,display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap"},children:[b,t&&b&&d.jsx(ut,{onClick:()=>J(b),size:"small",sx:{ml:1},children:V(b)})]})]}),d.jsx(Fs,{sx:{maxHeight:"100%",overflow:"auto"},children:u.map((M,A)=>d.jsx(Oc,{sx:{display:"flex",flexDirection:"column",alignItems:M.sender==="user"?"flex-end":"flex-start",borderRadius:2,mb:.5,p:1,border:"none","&:before":{display:"none"},"&:after":{display:"none"}},children:d.jsxs(at,{sx:{display:"flex",alignItems:"center",color:M.sender==="user"?"common.white":"text.primary",borderRadius:"16px"},children:[M.sender==="agent"&&d.jsx(Er,{src:Pi,sx:{width:36,height:36,mr:1},alt:"Aria"}),d.jsx(ws,{primary:d.jsxs(at,{sx:{display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap"},children:[M.message,t&&M.sender==="agent"&&d.jsx(ut,{onClick:()=>J(M.message),size:"small",sx:{ml:1},children:V(M.message)})]}),primaryTypographyProps:{sx:{color:M.sender==="user"?"common.white":"text.primary",bgcolor:M.sender==="user"?"primary.main":"grey.200",borderRadius:"16px",px:2,py:1,display:"inline-block"}}}),M.sender==="user"&&d.jsx(Er,{sx:{width:36,height:36,ml:1},children:d.jsx(ud,{})})]})},A))})]}),d.jsx(xs,{}),d.jsxs(at,{sx:{p:2,pb:1,display:"flex",alignItems:"center",bgcolor:"background.paper"},children:[d.jsx(it,{fullWidth:!0,variant:"outlined",placeholder:"Type your message here...",value:l,onChange:B,disabled:v,sx:{mr:1,flexGrow:1},InputProps:{endAdornment:d.jsx(jc,{position:"end",children:d.jsxs(ut,{onClick:h?z:$,color:"primary.main","aria-label":h?"Stop recording":"Start recording",size:"large",edge:"end",disabled:v,children:[h?d.jsx(Nm,{size:"small"}):d.jsx(Lm,{size:"small"}),h&&d.jsx(_n,{size:30,sx:{color:"primary.main",position:"absolute",zIndex:1}})]})})}}),v?d.jsx(_n,{size:24}):d.jsx(kt,{variant:"contained",color:"primary",onClick:E,disabled:v||!l.trim(),endIcon:d.jsx(ra,{}),children:"Send"})]})]}),d.jsx(yo,{open:P,autoHideDuration:6e3,onClose:I,children:d.jsx(xr,{elevation:6,variant:"filled",onClose:I,severity:F,children:N})})]})]})};var Wm={},BN=Te;Object.defineProperty(Wm,"__esModule",{value:!0});var h2=Wm.default=void 0,FN=BN(je()),UN=d;h2=Wm.default=(0,FN.default)((0,UN.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2M9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9zm9 14H6V10h12zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2"}),"LockOutlined");var Hm={},WN=Te;Object.defineProperty(Hm,"__esModule",{value:!0});var m2=Hm.default=void 0,HN=WN(je()),VN=d;m2=Hm.default=(0,HN.default)((0,VN.jsx)("path",{d:"M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m-9-2V7H4v3H1v2h3v3h2v-3h3v-2zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"PersonAdd");var Vm={},qN=Te;Object.defineProperty(Vm,"__esModule",{value:!0});var Ac=Vm.default=void 0,GN=qN(je()),KN=d;Ac=Vm.default=(0,GN.default)((0,KN.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");const Py=Vt(d.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),Ey=Vt(d.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");var qm={},YN=Te;Object.defineProperty(qm,"__esModule",{value:!0});var Gm=qm.default=void 0,XN=YN(je()),QN=d;Gm=qm.default=(0,XN.default)((0,QN.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info");const lf=Ns({palette:{primary:{main:"#556cd6"},secondary:{main:"#19857b"},background:{default:"linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)",paper:"#fff"}},typography:{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif',h5:{fontWeight:600,color:"#444"},button:{textTransform:"none",fontWeight:"bold"}},components:{MuiButton:{styleOverrides:{root:{margin:"8px"}}}}}),JN=ie(En)(({theme:e})=>({marginTop:e.spacing(12),display:"flex",flexDirection:"column",alignItems:"center",padding:e.spacing(4),borderRadius:e.shape.borderRadius,boxShadow:e.shadows[10],width:"90%",maxWidth:"450px",opacity:.98,backdropFilter:"blur(10px)"}));function ZN(){const e=qo(),[t,n]=p.useState(!1),{setUser:r}=p.useContext(vr),[o,i]=p.useState(0),[a,s]=p.useState(""),[l,c]=p.useState(""),[u,f]=p.useState(!1),[h,w]=p.useState(""),[y,x]=p.useState(!1),[C,v]=p.useState(""),[m,b]=p.useState(""),[R,k]=p.useState(""),[T,P]=p.useState(""),[j,N]=p.useState(""),[O,F]=p.useState(!1),[W,U]=p.useState(!1),[G,ee]=p.useState(""),[J,re]=p.useState("info"),I=[{id:"job_search",name:"Stress from job search"},{id:"classwork",name:"Stress from classwork"},{id:"social_anxiety",name:"Social anxiety"},{id:"impostor_syndrome",name:"Impostor Syndrome"},{id:"career_drift",name:"Career Drift"}],[_,E]=p.useState([]),g=A=>{const Y=A.target.value,K=_.includes(Y)?_.filter(q=>q!==Y):[..._,Y];E(K)},$=async A=>{var Y,K;A.preventDefault(),F(!0);try{const q=await Oe.post("/api/user/login",{username:a,password:h});if(q&&q.data){const oe=q.data.userId;localStorage.setItem("token",q.data.access_token),console.log("Token stored:",localStorage.getItem("token")),ee("Login successful!"),re("success"),n(!0),r({userId:oe}),e("/"),console.log("User logged in:",oe)}else throw new Error("Invalid response from server")}catch(q){console.error("Login failed:",q),ee("Login failed: "+(((K=(Y=q.response)==null?void 0:Y.data)==null?void 0:K.msg)||"Unknown error")),re("error"),f(!0)}U(!0),F(!1)},z=async A=>{var Y,K;A.preventDefault(),F(!0);try{const q=await Oe.post("/api/user/signup",{username:a,email:l,password:h,name:C,age:m,gender:R,placeOfResidence:T,fieldOfWork:j,mental_health_concerns:_});if(q&&q.data){const oe=q.data.userId;localStorage.setItem("token",q.data.access_token),console.log("Token stored:",localStorage.getItem("token")),ee("User registered successfully!"),re("success"),n(!0),r({userId:oe}),e("/"),console.log("User registered:",oe)}else throw new Error("Invalid response from server")}catch(q){console.error("Signup failed:",q),ee(((K=(Y=q.response)==null?void 0:Y.data)==null?void 0:K.error)||"Failed to register user."),re("error")}F(!1),U(!0)},L=async A=>{var Y,K;A.preventDefault(),F(!0);try{const q=await Oe.post("/api/user/anonymous_signin");if(q&&q.data)localStorage.setItem("token",q.data.access_token),console.log("Token stored:",localStorage.getItem("token")),ee("Anonymous sign-in successful!"),re("success"),n(!0),r({userId:null}),e("/");else throw new Error("Invalid response from server")}catch(q){console.error("Anonymous sign-in failed:",q),ee("Anonymous sign-in failed: "+(((K=(Y=q.response)==null?void 0:Y.data)==null?void 0:K.msg)||"Unknown error")),re("error")}F(!1),U(!0)},B=(A,Y)=>{i(Y)},V=(A,Y)=>{Y!=="clickaway"&&U(!1)},M=()=>{x(!y)};return d.jsxs(lm,{theme:lf,children:[d.jsx(km,{}),d.jsx(at,{sx:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",background:lf.palette.background.default},children:d.jsxs(JN,{children:[d.jsxs(f2,{value:o,onChange:B,variant:"fullWidth",centered:!0,indicatorColor:"primary",textColor:"primary",children:[d.jsx(Hl,{icon:d.jsx(h2,{}),label:"Login"}),d.jsx(Hl,{icon:d.jsx(m2,{}),label:"Sign Up"}),d.jsx(Hl,{icon:d.jsx(Ac,{}),label:"Anonymous"})]}),d.jsxs(at,{sx:{mt:3,width:"100%",px:3},children:[o===0&&d.jsxs("form",{onSubmit:$,children:[d.jsx(it,{label:"Username",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:a,onChange:A=>s(A.target.value)}),d.jsx(it,{label:"Password",type:y?"text":"password",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:h,onChange:A=>w(A.target.value),InputProps:{endAdornment:d.jsx(ut,{onClick:M,edge:"end",children:y?d.jsx(Ey,{}):d.jsx(Py,{})})}}),d.jsxs(kt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,sx:{mt:2,maxWidth:"325px"},disabled:O,children:[O?d.jsx(_n,{size:24}):"Login"," "]}),u&&d.jsxs(Ie,{variant:"body2",textAlign:"center",sx:{mt:2},children:["Forgot your password? ",d.jsx(Pb,{to:"/request_reset",style:{textDecoration:"none",color:lf.palette.secondary.main},children:"Reset it here"})]})]}),o===1&&d.jsxs("form",{onSubmit:z,children:[d.jsx(it,{label:"Username",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:a,onChange:A=>s(A.target.value)}),d.jsx(it,{label:"Email",type:"email",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:l,onChange:A=>c(A.target.value)}),d.jsx(it,{label:"Password",type:y?"text":"password",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:h,onChange:A=>w(A.target.value),InputProps:{endAdornment:d.jsx(ut,{onClick:M,edge:"end",children:y?d.jsx(Ey,{}):d.jsx(Py,{})})}}),d.jsx(it,{label:"Name",variant:"outlined",margin:"normal",fullWidth:!0,value:C,onChange:A=>v(A.target.value)}),d.jsx(it,{label:"Age",type:"number",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:m,onChange:A=>b(A.target.value)}),d.jsxs(ld,{required:!0,fullWidth:!0,margin:"normal",children:[d.jsx(cd,{children:"Gender"}),d.jsxs(Us,{value:R,label:"Gender",onChange:A=>k(A.target.value),children:[d.jsx(Jn,{value:"",children:"Select Gender"}),d.jsx(Jn,{value:"male",children:"Male"}),d.jsx(Jn,{value:"female",children:"Female"}),d.jsx(Jn,{value:"other",children:"Other"})]})]}),d.jsx(it,{label:"Place of Residence",variant:"outlined",margin:"normal",fullWidth:!0,value:T,onChange:A=>P(A.target.value)}),d.jsx(it,{label:"Field of Work",variant:"outlined",margin:"normal",fullWidth:!0,value:j,onChange:A=>N(A.target.value)}),d.jsxs(i2,{sx:{marginTop:"10px"},children:[d.jsx(Ie,{variant:"body1",gutterBottom:!0,children:"Select any mental stressors you are currently experiencing to help us better tailor your therapy sessions."}),I.map(A=>d.jsx(Tm,{control:d.jsx(Rm,{checked:_.includes(A.id),onChange:g,value:A.id}),label:d.jsxs(at,{display:"flex",alignItems:"center",children:[A.name,d.jsx(Zn,{title:d.jsx(Ie,{variant:"body2",children:eD(A.id)}),arrow:!0,placement:"right",children:d.jsx(Gm,{color:"action",style:{marginLeft:4,fontSize:20}})})]})},A.id))]}),d.jsx(kt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,sx:{mt:2},disabled:O,children:O?d.jsx(_n,{size:24}):"Sign Up"})]}),o===2&&d.jsx("form",{onSubmit:L,children:d.jsx(kt,{type:"submit",variant:"outlined",color:"secondary",fullWidth:!0,sx:{mt:2},disabled:O,children:O?d.jsx(_n,{size:24}):"Anonymous Sign-In"})})]}),d.jsx(yo,{open:W,autoHideDuration:6e3,onClose:V,children:d.jsx(xr,{onClose:V,severity:J,sx:{width:"100%"},children:G})})]})})]})}function eD(e){switch(e){case"job_search":return"Feelings of stress stemming from the job search process.";case"classwork":return"Stress related to managing coursework and academic responsibilities.";case"social_anxiety":return"Anxiety experienced during social interactions or in anticipation of social interactions.";case"impostor_syndrome":return"Persistent doubt concerning one's abilities or accomplishments coupled with a fear of being exposed as a fraud.";case"career_drift":return"Stress from uncertainty or dissatisfaction with one's career path or progress.";default:return"No description available."}}var Km={},tD=Te;Object.defineProperty(Km,"__esModule",{value:!0});var g2=Km.default=void 0,nD=tD(je()),rD=d;g2=Km.default=(0,nD.default)((0,rD.jsx)("path",{d:"M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"}),"VpnKey");var Ym={},oD=Te;Object.defineProperty(Ym,"__esModule",{value:!0});var v2=Ym.default=void 0,iD=oD(je()),aD=d;v2=Ym.default=(0,iD.default)((0,aD.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");const Ty=Ns({palette:{primary:{main:"#3F51B5"},secondary:{main:"#F6AE2D"}}}),sD=()=>{const{changePassword:e}=p.useContext(vr),[t,n]=p.useState(""),[r,o]=p.useState(""),[i,a]=p.useState(!1),[s,l]=p.useState(""),[c,u]=p.useState("success"),{userId:f}=$s(),h=async w=>{w.preventDefault();const y=await e(f,t,r);l(y.message),u(y.success?"success":"error"),a(!0)};return d.jsx(lm,{theme:Ty,children:d.jsx(e2,{component:"main",maxWidth:"xs",sx:{background:"#fff",borderRadius:"8px",boxShadow:"0px 2px 4px rgba(0,0,0,0.2)"},children:d.jsxs(at,{sx:{marginTop:8,display:"flex",flexDirection:"column",alignItems:"center"},children:[d.jsx(Ie,{component:"h1",variant:"h5",children:"Update Password"}),d.jsxs("form",{onSubmit:h,style:{width:"100%",marginTop:Ty.spacing(1)},children:[d.jsx(it,{variant:"outlined",margin:"normal",required:!0,fullWidth:!0,id:"current-password",label:"Current Password",name:"currentPassword",autoComplete:"current-password",type:"password",value:t,onChange:w=>n(w.target.value),InputProps:{startAdornment:d.jsx(v2,{color:"primary",style:{marginRight:"10px"}})}}),d.jsx(it,{variant:"outlined",margin:"normal",required:!0,fullWidth:!0,id:"new-password",label:"New Password",name:"newPassword",autoComplete:"new-password",type:"password",value:r,onChange:w=>o(w.target.value),InputProps:{startAdornment:d.jsx(g2,{color:"secondary",style:{marginRight:"10px"}})}}),d.jsx(kt,{type:"submit",fullWidth:!0,variant:"contained",color:"primary",sx:{mt:3,mb:2},children:"Update Password"})]}),d.jsx(yo,{open:i,autoHideDuration:6e3,onClose:()=>a(!1),children:d.jsx(xr,{onClose:()=>a(!1),severity:c,sx:{width:"100%"},children:s})})]})})})};var Xm={},lD=Te;Object.defineProperty(Xm,"__esModule",{value:!0});var y2=Xm.default=void 0,cD=lD(je()),uD=d;y2=Xm.default=(0,cD.default)((0,uD.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"}),"Email");var Qm={},dD=Te;Object.defineProperty(Qm,"__esModule",{value:!0});var x2=Qm.default=void 0,fD=dD(je()),pD=d;x2=Qm.default=(0,fD.default)((0,pD.jsx)("path",{d:"M12 6c1.11 0 2-.9 2-2 0-.38-.1-.73-.29-1.03L12 0l-1.71 2.97c-.19.3-.29.65-.29 1.03 0 1.1.9 2 2 2m4.6 9.99-1.07-1.07-1.08 1.07c-1.3 1.3-3.58 1.31-4.89 0l-1.07-1.07-1.09 1.07C6.75 16.64 5.88 17 4.96 17c-.73 0-1.4-.23-1.96-.61V21c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-4.61c-.56.38-1.23.61-1.96.61-.92 0-1.79-.36-2.44-1.01M18 9h-5V7h-2v2H6c-1.66 0-3 1.34-3 3v1.54c0 1.08.88 1.96 1.96 1.96.52 0 1.02-.2 1.38-.57l2.14-2.13 2.13 2.13c.74.74 2.03.74 2.77 0l2.14-2.13 2.13 2.13c.37.37.86.57 1.38.57 1.08 0 1.96-.88 1.96-1.96V12C21 10.34 19.66 9 18 9"}),"Cake");var Jm={},hD=Te;Object.defineProperty(Jm,"__esModule",{value:!0});var b2=Jm.default=void 0,mD=hD(je()),gD=d;b2=Jm.default=(0,mD.default)((0,gD.jsx)("path",{d:"M5.5 22v-7.5H4V9c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2v5.5H9.5V22zM18 22v-6h3l-2.54-7.63C18.18 7.55 17.42 7 16.56 7h-.12c-.86 0-1.63.55-1.9 1.37L12 16h3v6zM7.5 6c1.11 0 2-.89 2-2s-.89-2-2-2-2 .89-2 2 .89 2 2 2m9 0c1.11 0 2-.89 2-2s-.89-2-2-2-2 .89-2 2 .89 2 2 2"}),"Wc");var Zm={},vD=Te;Object.defineProperty(Zm,"__esModule",{value:!0});var w2=Zm.default=void 0,yD=vD(je()),xD=d;w2=Zm.default=(0,yD.default)((0,xD.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home");var eg={},bD=Te;Object.defineProperty(eg,"__esModule",{value:!0});var S2=eg.default=void 0,wD=bD(je()),SD=d;S2=eg.default=(0,wD.default)((0,SD.jsx)("path",{d:"M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-6 0h-4V4h4z"}),"Work");var tg={},CD=Te;Object.defineProperty(tg,"__esModule",{value:!0});var ng=tg.default=void 0,RD=CD(je()),kD=d;ng=tg.default=(0,RD.default)((0,kD.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 4c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6m0 14c-2.03 0-4.43-.82-6.14-2.88C7.55 15.8 9.68 15 12 15s4.45.8 6.14 2.12C16.43 19.18 14.03 20 12 20"}),"AccountCircle");var rg={},PD=Te;Object.defineProperty(rg,"__esModule",{value:!0});var C2=rg.default=void 0,ED=PD(je()),TD=d;C2=rg.default=(0,ED.default)((0,TD.jsx)("path",{d:"M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8z"}),"Update");const $D=ie(f2)({background:"#fff",borderRadius:"8px",boxShadow:"0 2px 4px rgba(0,0,0,0.1)",margin:"20px 0",maxWidth:"100%",overflow:"hidden"}),$y=ie(Hl)({fontSize:"1rem",fontWeight:"bold",color:"#3F51B5",marginRight:"4px",marginLeft:"4px",flex:1,maxWidth:"none","&.Mui-selected":{color:"#F6AE2D",background:"#e0e0e0"},"&:hover":{background:"#f4f4f4",transition:"background-color 0.3s"},"@media (max-width: 720px)":{padding:"6px 12px",fontSize:"0.8rem"}}),MD=Ns({palette:{primary:{main:"#3F51B5"},secondary:{main:"#F6AE2D"},background:{default:"#e0e0e0"}},typography:{fontFamily:'"Open Sans", "Helvetica", "Arial", sans-serif',button:{textTransform:"none",fontWeight:"bold"}},components:{MuiButton:{styleOverrides:{root:{boxShadow:"none",borderRadius:8,"&:hover":{boxShadow:"0px 2px 4px rgba(0,0,0,0.2)"}}}},MuiPaper:{styleOverrides:{root:{padding:"20px",borderRadius:"10px",boxShadow:"0px 4px 12px rgba(0,0,0,0.1)"}}}}}),jD=ie(En)(({theme:e})=>({marginTop:e.spacing(2),padding:e.spacing(2),display:"flex",flexDirection:"column",alignItems:"center",gap:e.spacing(2),boxShadow:e.shadows[3]}));function OD(){const{userId:e}=$s(),[t,n]=p.useState({username:"",name:"",email:"",age:"",gender:"",placeOfResidence:"",fieldOfWork:"",mental_health_concerns:[]}),[r,o]=p.useState(0),i=(v,m)=>{o(m)},[a,s]=p.useState(""),[l,c]=p.useState(!1),[u,f]=p.useState("info");p.useEffect(()=>{if(!e){console.error("User ID is undefined");return}(async()=>{try{const m=await Oe.get(`/api/user/profile/${e}`);console.log("Fetched data:",m.data);const b={username:m.data.username||"",name:m.data.name||"",email:m.data.email||"",age:m.data.age||"",gender:m.data.gender||"",placeOfResidence:m.data.placeOfResidence||"Not specified",fieldOfWork:m.data.fieldOfWork||"Not specified",mental_health_concerns:m.data.mental_health_concerns||[]};console.log("Formatted data:",b),n(b)}catch{s("Failed to fetch user data"),f("error"),c(!0)}})()},[e]);const h=[{label:"Stress from Job Search",value:"job_search"},{label:"Stress from Classwork",value:"classwork"},{label:"Social Anxiety",value:"social_anxiety"},{label:"Impostor Syndrome",value:"impostor_syndrome"},{label:"Career Drift",value:"career_drift"}];console.log("current mental health concerns: ",t.mental_health_concerns);const w=v=>{const{name:m,checked:b}=v.target;n(R=>{const k=b?[...R.mental_health_concerns,m]:R.mental_health_concerns.filter(T=>T!==m);return{...R,mental_health_concerns:k}})},y=v=>{const{name:m,value:b}=v.target;n(R=>({...R,[m]:b}))},x=async v=>{v.preventDefault();try{await Oe.patch(`/api/user/profile/${e}`,t),s("Profile updated successfully!"),f("success")}catch{s("Failed to update profile"),f("error")}c(!0)},C=()=>{c(!1)};return d.jsxs(lm,{theme:MD,children:[d.jsx(km,{}),d.jsxs(e2,{component:"main",maxWidth:"md",children:[d.jsxs($D,{value:r,onChange:i,centered:!0,children:[d.jsx($y,{label:"Profile"}),d.jsx($y,{label:"Update Password"})]}),r===0&&d.jsxs(jD,{component:"form",onSubmit:x,sx:{maxHeight:"81vh",overflow:"auto"},children:[d.jsxs(Ie,{variant:"h5",style:{fontWeight:700},children:[d.jsx(ng,{style:{marginRight:"10px"}})," ",t.username]}),d.jsx(it,{fullWidth:!0,label:"Name",variant:"outlined",name:"name",value:t.name||"",onChange:y,InputProps:{startAdornment:d.jsx(ut,{position:"start",children:d.jsx(ud,{})})}}),d.jsx(it,{fullWidth:!0,label:"Email",variant:"outlined",name:"email",value:t.email||"",onChange:y,InputProps:{startAdornment:d.jsx(ut,{position:"start",children:d.jsx(y2,{})})}}),d.jsx(it,{fullWidth:!0,label:"Age",variant:"outlined",name:"age",type:"number",value:t.age||"",onChange:y,InputProps:{startAdornment:d.jsx(ut,{children:d.jsx(x2,{})})}}),d.jsxs(ld,{fullWidth:!0,children:[d.jsx(cd,{children:"Gender"}),d.jsxs(Us,{name:"gender",value:t.gender||"",label:"Gender",onChange:y,startAdornment:d.jsx(ut,{children:d.jsx(b2,{})}),children:[d.jsx(Jn,{value:"male",children:"Male"}),d.jsx(Jn,{value:"female",children:"Female"}),d.jsx(Jn,{value:"other",children:"Other"})]})]}),d.jsx(it,{fullWidth:!0,label:"Place of Residence",variant:"outlined",name:"placeOfResidence",value:t.placeOfResidence||"",onChange:y,InputProps:{startAdornment:d.jsx(ut,{children:d.jsx(w2,{})})}}),d.jsx(it,{fullWidth:!0,label:"Field of Work",variant:"outlined",name:"fieldOfWork",value:t.fieldOfWork||"",onChange:y,InputProps:{startAdornment:d.jsx(ut,{position:"start",children:d.jsx(S2,{})})}}),d.jsx(i2,{children:h.map((v,m)=>(console.log(`Is "${v.label}" checked?`,t.mental_health_concerns.includes(v.value)),d.jsx(Tm,{control:d.jsx(Rm,{checked:t.mental_health_concerns.includes(v.value),onChange:w,name:v.value}),label:d.jsxs(at,{display:"flex",alignItems:"center",children:[v.label,d.jsx(Zn,{title:d.jsx(Ie,{variant:"body2",children:ID(v.value)}),arrow:!0,placement:"right",children:d.jsx(Gm,{color:"action",style:{marginLeft:4,fontSize:20}})})]})},m)))}),d.jsxs(kt,{type:"submit",color:"primary",variant:"contained",children:[d.jsx(C2,{style:{marginRight:"10px"}}),"Update Profile"]})]}),r===1&&d.jsx(sD,{userId:e}),d.jsx(yo,{open:l,autoHideDuration:6e3,onClose:C,children:d.jsx(xr,{onClose:C,severity:u,sx:{width:"100%"},children:a})})]})]})}function ID(e){switch(e){case"job_search":return"Feelings of stress stemming from the job search process.";case"classwork":return"Stress related to managing coursework and academic responsibilities.";case"social_anxiety":return"Anxiety experienced during social interactions or in anticipation of social interactions.";case"impostor_syndrome":return"Persistent doubt concerning one's abilities or accomplishments coupled with a fear of being exposed as a fraud.";case"career_drift":return"Stress from uncertainty or dissatisfaction with one's career path or progress.";default:return"No description available."}}var og={},_D=Te;Object.defineProperty(og,"__esModule",{value:!0});var R2=og.default=void 0,LD=_D(je()),My=d;R2=og.default=(0,LD.default)([(0,My.jsx)("path",{d:"M22 9 12 2 2 9h9v13h2V9z"},"0"),(0,My.jsx)("path",{d:"m4.14 12-1.96.37.82 4.37V22h2l.02-4H7v4h2v-6H4.9zm14.96 4H15v6h2v-4h1.98l.02 4h2v-5.26l.82-4.37-1.96-.37z"},"1")],"Deck");var ig={},AD=Te;Object.defineProperty(ig,"__esModule",{value:!0});var k2=ig.default=void 0,ND=AD(je()),DD=d;k2=ig.default=(0,ND.default)((0,DD.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5m-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11m3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5"}),"InsertEmoticon");var ag={},zD=Te;Object.defineProperty(ag,"__esModule",{value:!0});var sg=ag.default=void 0,BD=zD(je()),FD=d;sg=ag.default=(0,BD.default)((0,FD.jsx)("path",{d:"M19 5v14H5V5zm1.1-2H3.9c-.5 0-.9.4-.9.9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9M11 7h6v2h-6zm0 4h6v2h-6zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7z"}),"ListAlt");var lg={},UD=Te;Object.defineProperty(lg,"__esModule",{value:!0});var P2=lg.default=void 0,WD=UD(je()),HD=d;P2=lg.default=(0,WD.default)((0,HD.jsx)("path",{d:"M10.09 15.59 11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"ExitToApp");var cg={},VD=Te;Object.defineProperty(cg,"__esModule",{value:!0});var E2=cg.default=void 0,qD=VD(je()),GD=d;E2=cg.default=(0,qD.default)((0,GD.jsx)("path",{d:"M16.53 11.06 15.47 10l-4.88 4.88-2.12-2.12-1.06 1.06L10.59 17zM19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V8h14z"}),"EventAvailable");var ug={},KD=Te;Object.defineProperty(ug,"__esModule",{value:!0});var T2=ug.default=void 0,YD=KD(je()),jy=d;T2=ug.default=(0,YD.default)([(0,jy.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,jy.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"Schedule");var dg={},XD=Te;Object.defineProperty(dg,"__esModule",{value:!0});var $2=dg.default=void 0,QD=XD(je()),JD=d;$2=dg.default=(0,QD.default)((0,JD.jsx)("path",{d:"m22.69 18.37 1.14-1-1-1.73-1.45.49c-.32-.27-.68-.48-1.08-.63L20 14h-2l-.3 1.49c-.4.15-.76.36-1.08.63l-1.45-.49-1 1.73 1.14 1c-.08.5-.08.76 0 1.26l-1.14 1 1 1.73 1.45-.49c.32.27.68.48 1.08.63L18 24h2l.3-1.49c.4-.15.76-.36 1.08-.63l1.45.49 1-1.73-1.14-1c.08-.51.08-.77 0-1.27M19 21c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2M11 7v5.41l2.36 2.36 1.04-1.79-1.4-1.39V7zm10 5c0-4.97-4.03-9-9-9-2.83 0-5.35 1.32-7 3.36V4H3v6h6V8H6.26C7.53 6.19 9.63 5 12 5c3.86 0 7 3.14 7 7zm-10.14 6.91c-2.99-.49-5.35-2.9-5.78-5.91H3.06c.5 4.5 4.31 8 8.94 8h.07z"}),"ManageHistory");const Oy=230;function ZD(){const{logout:e,user:t}=p.useContext(vr),n=ho(),r=i=>n.pathname===i,o=[{text:"Mind Chat",icon:d.jsx(R2,{}),path:"/"},...t!=null&&t.userId?[{text:"Track Your Vibes",icon:d.jsx(k2,{}),path:"/user/mood_logging"},{text:"Mood Logs",icon:d.jsx(sg,{}),path:"/user/mood_logs"},{text:"Schedule Check-In",icon:d.jsx(T2,{}),path:"/user/check_in"},{text:"Check-In Reporting",icon:d.jsx(E2,{}),path:`/user/check_ins/${t==null?void 0:t.userId}`},{text:"Chat Log Manager",icon:d.jsx($2,{}),path:"/user/chat_log_Manager"}]:[]];return d.jsx(WI,{sx:{width:Oy,flexShrink:0,mt:8,"& .MuiDrawer-paper":{width:Oy,boxSizing:"border-box",position:"relative",height:"91vh",top:0,overflowX:"hidden",borderRadius:2,boxShadow:1}},variant:"permanent",anchor:"left",children:d.jsxs(Fs,{children:[o.map(i=>d.jsx(VP,{to:i.path,style:{textDecoration:"none",color:"inherit"},children:d.jsxs(Oc,{button:!0,sx:{backgroundColor:r(i.path)?"rgba(25, 118, 210, 0.5)":"inherit","&:hover":{bgcolor:"grey.200"}},children:[d.jsx(dy,{children:i.icon}),d.jsx(ws,{primary:i.text})]})},i.text)),d.jsxs(Oc,{button:!0,onClick:e,children:[d.jsx(dy,{children:d.jsx(P2,{})}),d.jsx(ws,{primary:"Logout"})]})]})})}var fg={},e6=Te;Object.defineProperty(fg,"__esModule",{value:!0});var M2=fg.default=void 0,t6=e6(je()),n6=d;M2=fg.default=(0,t6.default)((0,n6.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");var pg={},r6=Te;Object.defineProperty(pg,"__esModule",{value:!0});var j2=pg.default=void 0,o6=r6(je()),i6=d;j2=pg.default=(0,o6.default)((0,i6.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2m6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1z"}),"Notifications");var hg={},a6=Te;Object.defineProperty(hg,"__esModule",{value:!0});var O2=hg.default=void 0,s6=a6(je()),l6=d;O2=hg.default=(0,s6.default)((0,l6.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel");function c6({toggleSidebar:e}){const{incrementNotificationCount:t,notifications:n,addNotification:r,removeNotification:o}=p.useContext(vr),i=qo(),{user:a}=p.useContext(vr),[s,l]=p.useState(null),c=localStorage.getItem("token"),u=a==null?void 0:a.userId;console.log("User ID:",u),p.useEffect(()=>{u?f():console.error("No user ID available from URL parameters.")},[u]);const f=async()=>{if(!u){console.error("User ID is missing in context");return}try{const C=(await Oe.get(`/api/check-in/missed?user_id=${u}`,{headers:{Authorization:`Bearer ${c}`}})).data;console.log("Missed check-ins:",C),C.length>0?C.forEach(v=>{r({title:`Missed Check-in on ${new Date(v.check_in_time).toLocaleString()}`,message:"Please complete your check-in."})}):r({title:"You have no missed check-ins.",message:""})}catch(x){console.error("Failed to fetch missed check-ins:",x),r({title:"Failed to fetch missed check-ins. Please check the console for more details.",message:""})}},h=x=>{l(x.currentTarget)},w=x=>{l(null),o(x)},y=()=>{a&&a.userId?i(`/user/profile/${a.userId}`):console.error("User ID not found")};return p.useEffect(()=>{const x=C=>{C.data&&C.data.msg==="updateCount"&&(console.log("Received message from service worker:",C.data),r({title:C.data.title,message:C.data.body}),t())};return navigator.serviceWorker.addEventListener("message",x),()=>{navigator.serviceWorker.removeEventListener("message",x)}},[]),d.jsx(kM,{position:"fixed",sx:{zIndex:x=>x.zIndex.drawer+1},children:d.jsxs(UA,{children:[d.jsx(ut,{onClick:e,color:"inherit",edge:"start",sx:{marginRight:2},children:d.jsx(M2,{})}),d.jsx(Ie,{variant:"h6",noWrap:!0,component:"div",sx:{flexGrow:1},children:"Dashboard"}),(a==null?void 0:a.userId)&&d.jsx(ut,{color:"inherit",onClick:h,children:d.jsx(a3,{badgeContent:n.length,color:"secondary",children:d.jsx(j2,{})})}),d.jsx(c2,{anchorEl:s,open:!!s,onClose:()=>w(null),children:n.map((x,C)=>d.jsx(Jn,{onClick:()=>w(C),sx:{whiteSpace:"normal",maxWidth:350,padding:1},children:d.jsxs(ad,{elevation:2,sx:{display:"flex",alignItems:"center",width:"100%"},children:[d.jsx(O2,{color:"error"}),d.jsxs(Cm,{sx:{flex:"1 1 auto"},children:[d.jsx(Ie,{variant:"subtitle1",sx:{fontWeight:"bold"},children:x.title}),d.jsx(Ie,{variant:"body2",color:"text.secondary",children:x.message})]})]})},C))}),(a==null?void 0:a.userId)&&d.jsx(ut,{color:"inherit",onClick:y,children:d.jsx(ng,{})})]})})}var mg={},u6=Te;Object.defineProperty(mg,"__esModule",{value:!0});var I2=mg.default=void 0,d6=u6(je()),f6=d;I2=mg.default=(0,d6.default)((0,f6.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M17 13l-5 5-5-5h3V9h4v4z"}),"CloudDownload");var gg={},p6=Te;Object.defineProperty(gg,"__esModule",{value:!0});var Lp=gg.default=void 0,h6=p6(je()),m6=d;Lp=gg.default=(0,h6.default)((0,m6.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"DeleteForever");var vg={},g6=Te;Object.defineProperty(vg,"__esModule",{value:!0});var _2=vg.default=void 0,v6=g6(je()),y6=d;_2=vg.default=(0,v6.default)((0,y6.jsx)("path",{d:"M9 11H7v2h2zm4 0h-2v2h2zm4 0h-2v2h2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 16H5V9h14z"}),"DateRange");const x6=ie(En)(({theme:e})=>({padding:e.spacing(3),borderRadius:e.shape.borderRadius,boxShadow:1,maxWidth:"100%",margin:"auto",marginTop:e.spacing(2),backgroundColor:"#fff",overflow:"auto"})),wl=ie(kt)(({theme:e})=>({margin:e.spacing(0),paddingLeft:e.spacing(1),paddingRight:e.spacing(3)}));function b6(){const[e,t]=nn.useState(!1),[n,r]=p.useState(!1),[o,i]=nn.useState(""),[a,s]=nn.useState("info"),[l,c]=p.useState(!1),[u,f]=p.useState(""),[h,w]=p.useState(""),[y,x]=p.useState(!1),C=(k,T)=>{T!=="clickaway"&&t(!1)},v=()=>{r(!1)},m=k=>{x(k),r(!0)},b=async(k=!1)=>{var T,P;c(!0);try{const j=k?"/api/user/download_chat_logs/range":"/api/user/download_chat_logs",N=k?{params:{start_date:u,end_date:h}}:{},O=await Oe.get(j,{...N,headers:{Authorization:`Bearer ${localStorage.getItem("token")}`},responseType:"blob"}),F=window.URL.createObjectURL(new Blob([O.data])),W=document.createElement("a");W.href=F,W.setAttribute("download",k?"chat_logs_range.csv":"chat_logs.csv"),document.body.appendChild(W),W.click(),i("Chat logs downloaded successfully."),s("success")}catch(j){i(`Failed to download chat logs: ${((P=(T=j.response)==null?void 0:T.data)==null?void 0:P.error)||j.message}`),s("error")}finally{c(!1)}t(!0)},R=async()=>{var k,T;r(!1),c(!0);try{const P=y?"/api/user/delete_chat_logs/range":"/api/user/delete_chat_logs",j=y?{params:{start_date:u,end_date:h}}:{},N=await Oe.delete(P,{...j,headers:{Authorization:`Bearer ${localStorage.getItem("token")}`}});i(N.data.message),s("success")}catch(P){i(`Failed to delete chat logs: ${((T=(k=P.response)==null?void 0:k.data)==null?void 0:T.error)||P.message}`),s("error")}finally{c(!1)}t(!0)};return d.jsxs(x6,{sx:{height:"91vh"},children:[d.jsx(Ie,{variant:"h4",gutterBottom:!0,children:"Manage Your Chat Logs"}),d.jsx(Ie,{variant:"body1",paragraph:!0,children:"Manage your chat logs efficiently by downloading or deleting entries for specific dates or entire ranges. Please be cautious as deletion is permanent."}),d.jsxs("div",{style:{display:"flex",justifyContent:"center",flexDirection:"column",alignItems:"center",gap:20},children:[d.jsxs("div",{style:{display:"flex",gap:10,marginBottom:20},children:[d.jsx(it,{label:"Start Date",type:"date",value:u,onChange:k=>f(k.target.value),InputLabelProps:{shrink:!0}}),d.jsx(it,{label:"End Date",type:"date",value:h,onChange:k=>w(k.target.value),InputLabelProps:{shrink:!0}})]}),d.jsx(Ie,{variant:"body1",paragraph:!0,children:"Here you can download your chat logs as a CSV file, which includes details like chat IDs, content, type, and additional information for each session."}),d.jsx(Zn,{title:"Download chat logs for selected date range",children:d.jsx(wl,{variant:"outlined",startIcon:d.jsx(_2,{}),onClick:()=>b(!0),disabled:l||!u||!h,children:l?d.jsx(_n,{size:24,color:"inherit"}):"Download Range"})}),d.jsx(Zn,{title:"Download your chat logs as a CSV file",children:d.jsx(wl,{variant:"contained",color:"primary",startIcon:d.jsx(I2,{}),onClick:()=>b(!1),disabled:l,children:l?d.jsx(_n,{size:24,color:"inherit"}):"Download Chat Logs"})}),d.jsx(Ie,{variant:"body1",paragraph:!0,children:"If you need to clear your history for privacy or other reasons, you can also permanently delete your chat logs from the server."}),d.jsx(Zn,{title:"Delete chat logs for selected date range",children:d.jsx(wl,{variant:"outlined",color:"warning",startIcon:d.jsx(Lp,{}),onClick:()=>m(!0),disabled:l||!u||!h,children:l?d.jsx(_n,{size:24,color:"inherit"}):"Delete Range"})}),d.jsx(Zn,{title:"Permanently delete all your chat logs",children:d.jsx(wl,{variant:"contained",color:"secondary",startIcon:d.jsx(Lp,{}),onClick:()=>m(!1),disabled:l,children:l?d.jsx(_n,{size:24,color:"inherit"}):"Delete Chat Logs"})}),d.jsx(Ie,{variant:"body1",paragraph:!0,children:"Please use these options carefully as deleting your chat logs is irreversible."})]}),d.jsxs(Mp,{open:n,onClose:v,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[d.jsx(Ip,{id:"alert-dialog-title",children:"Confirm Deletion"}),d.jsx(Op,{children:d.jsx(n2,{id:"alert-dialog-description",children:"Are you sure you want to delete these chat logs? This action cannot be undone."})}),d.jsxs(jp,{children:[d.jsx(kt,{onClick:v,color:"primary",children:"Cancel"}),d.jsx(kt,{onClick:()=>R(),color:"secondary",autoFocus:!0,children:"Confirm"})]})]}),d.jsx(yo,{open:e,autoHideDuration:6e3,onClose:C,children:d.jsx(xr,{onClose:C,severity:a,sx:{width:"100%"},children:o})})]})}const Iy=()=>{const{user:e,voiceEnabled:t}=p.useContext(vr),n=e==null?void 0:e.userId,[r,o]=p.useState(0),[i,a]=p.useState(0),[s,l]=p.useState(""),[c,u]=p.useState([]),[f,h]=p.useState(!1),[w,y]=p.useState(null),x=p.useRef([]),[C,v]=p.useState(!1),[m,b]=p.useState(!1),[R,k]=p.useState(""),[T,P]=p.useState("info"),[j,N]=p.useState(null),O=_=>{if(!t||_===j){N(null),window.speechSynthesis.cancel();return}const E=window.speechSynthesis,g=new SpeechSynthesisUtterance(_),$=E.getVoices();console.log($.map(L=>`${L.name} - ${L.lang} - ${L.gender}`));const z=$.find(L=>L.name.includes("Microsoft Zira - English (United States)"));z?g.voice=z:console.log("No female voice found"),g.onend=()=>{N(null)},N(_),E.speak(g)},F=(_,E)=>{E!=="clickaway"&&b(!1)},W=p.useCallback(async()=>{if(r!==null){v(!0);try{const _=await fetch(`/api/ai/mental_health/finalize/${n}/${r}`,{method:"POST",headers:{"Content-Type":"application/json"}}),E=await _.json();_.ok?(k("Chat finalized successfully"),P("success"),o(null),a(0),u([])):(k("Failed to finalize chat"),P("error"))}catch{k("Error finalizing chat"),P("error")}finally{v(!1),b(!0)}}},[n,r]),U=p.useCallback(async()=>{if(s.trim()){console.log(r),v(!0);try{const _=JSON.stringify({prompt:s,turn_id:i}),E=await fetch(`/api/ai/mental_health/${n}/${r}`,{method:"POST",headers:{"Content-Type":"application/json"},body:_}),g=await E.json();console.log(g),E.ok?(u($=>[...$,{message:s,sender:"user"},{message:g,sender:"agent"}]),a($=>$+1),l("")):(console.error("Failed to send message:",g),k(g.error||"An error occurred while sending the message."),P("error"),b(!0))}catch(_){console.error("Failed to send message:",_),k("Network or server error occurred."),P("error"),b(!0)}finally{v(!1)}}},[s,n,r,i]),G=()=>{navigator.mediaDevices.getUserMedia({audio:!0}).then(_=>{x.current=[];const E={mimeType:"audio/webm"},g=new MediaRecorder(_,E);g.ondataavailable=$=>{console.log("Data available:",$.data.size),x.current.push($.data)},g.start(),y(g),h(!0)}).catch(console.error)},ee=()=>{w&&(w.onstop=()=>{J(x.current),h(!1),y(null)},w.stop())},J=_=>{console.log("Audio chunks size:",_.reduce(($,z)=>$+z.size,0));const E=new Blob(_,{type:"audio/webm"});if(E.size===0){console.error("Audio Blob is empty");return}console.log(`Sending audio blob of size: ${E.size} bytes`);const g=new FormData;g.append("audio",E),v(!0),Oe.post("/api/ai/mental_health/voice-to-text",g,{headers:{"Content-Type":"multipart/form-data"}}).then($=>{const{message:z}=$.data;l(z),U()}).catch($=>{console.error("Error uploading audio:",$),b(!0),k("Error processing voice input: "+$.message),P("error")}).finally(()=>{v(!1)})},re=p.useCallback(_=>{l(_.target.value)},[]),I=_=>_===j?d.jsx(Lc,{}):d.jsx(_c,{});return d.jsxs(d.Fragment,{children:[d.jsx("style",{children:` + @keyframes blink { + 0%, 100% { opacity: 0; } + 50% { opacity: 1; } + } + @media (max-width: 720px) { + .new-chat-button { + + top: 5px; + right: 5px; + padding: 4px 8px; /* Smaller padding */ + font-size: 0.8rem; /* Smaller font size */ + } + } + `}),d.jsxs(at,{sx:{maxWidth:"100%",mx:"auto",my:2,display:"flex",flexDirection:"column",height:"91vh",borderRadius:2,boxShadow:1},children:[d.jsxs(ad,{sx:{display:"flex",flexDirection:"column",height:"100%",borderRadius:2,boxShadow:3},children:[d.jsxs(Cm,{sx:{flexGrow:1,overflow:"auto",padding:3,position:"relative"},children:[d.jsx(Zn,{title:"Start a new chat",placement:"top",arrow:!0,children:d.jsx(ut,{"aria-label":"new chat",color:"primary",onClick:W,disabled:C,sx:{position:"absolute",top:5,right:5,"&:hover":{backgroundColor:"primary.main",color:"common.white"}},children:d.jsx(Um,{})})}),c.length===0&&d.jsxs(at,{sx:{display:"flex",marginBottom:2,marginTop:3},children:[d.jsx(Er,{src:Pi,sx:{width:44,height:44,marginRight:2},alt:"Aria"}),d.jsx(Ie,{variant:"h4",component:"h1",gutterBottom:!0,children:"Welcome to Mental Health Companion"})]}),d.jsx(Fs,{sx:{maxHeight:"100%",overflow:"auto"},children:c.map((_,E)=>d.jsx(Oc,{sx:{display:"flex",flexDirection:"column",alignItems:_.sender==="user"?"flex-end":"flex-start",borderRadius:2,mb:.5,p:1,border:"none","&:before":{display:"none"},"&:after":{display:"none"}},children:d.jsxs(at,{sx:{display:"flex",alignItems:"center",color:_.sender==="user"?"common.white":"text.primary",borderRadius:"16px"},children:[_.sender==="agent"&&d.jsx(Er,{src:Pi,sx:{width:36,height:36,mr:1},alt:"Aria"}),d.jsx(ws,{primary:d.jsxs(at,{sx:{display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap"},children:[_.message,t&&_.sender==="agent"&&d.jsx(ut,{onClick:()=>O(_.message),size:"small",sx:{ml:1},children:I(_.message)})]}),primaryTypographyProps:{sx:{color:_.sender==="user"?"common.white":"text.primary",bgcolor:_.sender==="user"?"primary.main":"grey.200",borderRadius:"16px",px:2,py:1,display:"inline-block"}}}),_.sender==="user"&&d.jsx(Er,{sx:{width:36,height:36,ml:1},children:d.jsx(ud,{})})]})},E))})]}),d.jsx(xs,{}),d.jsxs(at,{sx:{p:2,pb:1,display:"flex",alignItems:"center",bgcolor:"background.paper"},children:[d.jsx(it,{fullWidth:!0,variant:"outlined",placeholder:"Type your message here...",value:s,onChange:re,disabled:C,sx:{mr:1,flexGrow:1},InputProps:{endAdornment:d.jsx(jc,{position:"end",children:d.jsxs(ut,{onClick:f?ee:G,color:"primary.main","aria-label":f?"Stop recording":"Start recording",size:"large",edge:"end",disabled:C,children:[f?d.jsx(Nm,{size:"small"}):d.jsx(Lm,{size:"small"}),f&&d.jsx(_n,{size:30,sx:{color:"primary.main",position:"absolute",zIndex:1}})]})})}}),C?d.jsx(_n,{size:24}):d.jsx(kt,{variant:"contained",color:"primary",onClick:U,disabled:C||!s.trim(),endIcon:d.jsx(ra,{}),children:"Send"})]})]}),d.jsx(yo,{open:m,autoHideDuration:6e3,onClose:F,children:d.jsx(xr,{elevation:6,variant:"filled",onClose:F,severity:T,children:R})})]})]})};var yg={},w6=Te;Object.defineProperty(yg,"__esModule",{value:!0});var L2=yg.default=void 0,S6=w6(je()),C6=d;L2=yg.default=(0,S6.default)((0,C6.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5m-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11m3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5"}),"Mood");function R6(){const[e,t]=p.useState(""),[n,r]=p.useState(""),[o,i]=p.useState(""),a=async()=>{const s=localStorage.getItem("token");if(!e||!n){i("Both mood and activities are required.");return}if(!s){i("You are not logged in.");return}try{const l=await Oe.post("/api/user/log_mood",{mood:e,activities:n},{headers:{Authorization:`Bearer ${s}`}});i(l.data.message)}catch(l){i(l.response.data.error)}};return d.jsxs("div",{className:"mood-logging-container",children:[d.jsxs("h1",{children:[d.jsx(L2,{fontSize:"large"})," Track Your Vibes "]}),d.jsxs("div",{className:"mood-logging",children:[d.jsxs("div",{className:"input-group",children:[d.jsx("label",{htmlFor:"mood-input",children:"Mood:"}),d.jsx("input",{id:"mood-input",type:"text",value:e,onChange:s=>t(s.target.value),placeholder:"Enter your current mood"}),d.jsx("label",{htmlFor:"activities-input",children:"Activities:"}),d.jsx("input",{id:"activities-input",type:"text",value:n,onChange:s=>r(s.target.value),placeholder:"What are you doing?"})]}),d.jsx(kt,{variant:"contained",className:"submit-button",onClick:a,startIcon:d.jsx(ra,{}),children:"Log Mood"}),o&&d.jsx("div",{className:"message",children:o})]})]})}function k6(){const[e,t]=p.useState([]),[n,r]=p.useState("");p.useEffect(()=>{(async()=>{const a=localStorage.getItem("token");if(!a){r("You are not logged in.");return}try{const s=await Oe.get("/api/user/get_mood_logs",{headers:{Authorization:`Bearer ${a}`}});console.log("Received data:",s.data),t(s.data.mood_logs||[])}catch(s){r(s.response.data.error)}})()},[]);const o=i=>{const a={year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"};try{const s=i.$date;return new Date(s).toLocaleDateString("en-US",a)}catch(s){return console.error("Date parsing error:",s),"Invalid Date"}};return d.jsxs("div",{className:"mood-logs",children:[d.jsxs("h2",{children:[d.jsx(sg,{className:"icon-large"}),"Your Mood Journey"]}),n?d.jsx("div",{className:"error",children:n}):d.jsx("ul",{children:e.map((i,a)=>d.jsxs("li",{children:[d.jsxs("div",{children:[d.jsx("strong",{children:"Mood:"})," ",i.mood]}),d.jsxs("div",{children:[d.jsx("strong",{children:"Activities:"})," ",i.activities]}),d.jsxs("div",{children:[d.jsx("strong",{children:"Timestamp:"})," ",o(i.timestamp)]})]},a))})]})}function P6(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}const A2=6e4,N2=36e5;function cf(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}function E6(e,t){const n=P6(e);if(isNaN(n.getTime()))throw new RangeError("Invalid time value");const r=(t==null?void 0:t.format)??"extended";let o="";const i=r==="extended"?"-":"";{const a=cf(n.getDate(),2),s=cf(n.getMonth()+1,2);o=`${cf(n.getFullYear(),4)}${i}${s}${i}${a}`}return o}function T6(e,t){const r=O6(e);let o;if(r.date){const l=I6(r.date,2);o=_6(l.restDateString,l.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);const i=o.getTime();let a=0,s;if(r.time&&(a=L6(r.time),isNaN(a)))return new Date(NaN);if(r.timezone){if(s=A6(r.timezone),isNaN(s))return new Date(NaN)}else{const l=new Date(i+a),c=new Date(0);return c.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),c.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),c}return new Date(i+a+s)}const Sl={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},$6=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,M6=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,j6=/^([+-])(\d{2})(?::?(\d{2}))?$/;function O6(e){const t={},n=e.split(Sl.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Sl.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Sl.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const o=Sl.timezone.exec(r);o?(t.time=r.replace(o[1],""),t.timezone=o[1]):t.time=r}return t}function I6(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?o:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function _6(e,t){if(t===null)return new Date(NaN);const n=e.match($6);if(!n)return new Date(NaN);const r=!!n[4],o=Ra(n[1]),i=Ra(n[2])-1,a=Ra(n[3]),s=Ra(n[4]),l=Ra(n[5])-1;if(r)return F6(t,s,l)?N6(t,s,l):new Date(NaN);{const c=new Date(0);return!z6(t,i,a)||!B6(t,o)?new Date(NaN):(c.setUTCFullYear(t,i,Math.max(o,a)),c)}}function Ra(e){return e?parseInt(e):1}function L6(e){const t=e.match(M6);if(!t)return NaN;const n=uf(t[1]),r=uf(t[2]),o=uf(t[3]);return U6(n,r,o)?n*N2+r*A2+o*1e3:NaN}function uf(e){return e&&parseFloat(e.replace(",","."))||0}function A6(e){if(e==="Z")return 0;const t=e.match(j6);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return W6(r,o)?n*(r*N2+o*A2):NaN}function N6(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,i=(t-1)*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}const D6=[31,null,31,30,31,30,31,31,30,31,30,31];function D2(e){return e%400===0||e%4===0&&e%100!==0}function z6(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(D6[t]||(D2(e)?29:28))}function B6(e,t){return t>=1&&t<=(D2(e)?366:365)}function F6(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function U6(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function W6(e,t){return t>=0&&t<=59}function Ap({userId:e,update:t}){const[n,r]=p.useState(""),[o,i]=p.useState("daily"),[a,s]=p.useState(!1),{checkInId:l}=$s(),[c,u]=p.useState(!1),[f,h]=p.useState({open:!1,message:"",severity:"info"}),w=localStorage.getItem("token");p.useEffect(()=>{t&&l&&(u(!0),Oe.get(`/api/check-in/${l}`,{headers:{Authorization:`Bearer ${w}`}}).then(C=>{const v=C.data;console.log("Fetched check-in data:",v);const m=E6(T6(v.check_in_time),{representation:"date"});r(m.slice(0,16)),i(v.frequency),s(v.notify),u(!1)}).catch(C=>{console.error("Failed to fetch check-in details:",C),u(!1)}))},[t,l]);const y=async C=>{var P,j,N;if(C.preventDefault(),new Date(n)<=new Date){h({open:!0,message:"Cannot schedule check-in in the past. Please choose a future time.",severity:"error"});return}const b=t?`/api/check-in/${l}`:"/api/check-in/schedule",R={headers:{Authorization:`Bearer ${w}`,"Content-Type":"application/json"}};console.log("URL:",b);const k=t?"patch":"post",T={user_id:e,check_in_time:n,frequency:o,notify:a};console.log("Submitting:",T);try{const O=await Oe[k](b,T,R);console.log("Success:",O.data.message),h({open:!0,message:O.data.message,severity:"success"})}catch(O){console.error("Error:",((P=O.response)==null?void 0:P.data)||O);const F=((N=(j=O.response)==null?void 0:j.data)==null?void 0:N.error)||"An unexpected error occurred";h({open:!0,message:F,severity:"error"})}},x=(C,v)=>{v!=="clickaway"&&h({...f,open:!1})};return c?d.jsx(Ie,{children:"Loading..."}):d.jsxs(at,{component:"form",onSubmit:y,noValidate:!0,sx:{mt:4,padding:3,borderRadius:2,boxShadow:3},children:[d.jsx(it,{id:"datetime-local",label:"Check-in Time",type:"datetime-local",fullWidth:!0,value:n,onChange:C=>r(C.target.value),sx:{marginBottom:3},InputLabelProps:{shrink:!0},required:!0,helperText:"Select the date and time for your check-in."}),d.jsxs(ld,{fullWidth:!0,sx:{marginBottom:3},children:[d.jsx(cd,{id:"frequency-label",children:"Frequency"}),d.jsxs(Us,{labelId:"frequency-label",id:"frequency",value:o,label:"Frequency",onChange:C=>i(C.target.value),children:[d.jsx(Jn,{value:"daily",children:"Daily"}),d.jsx(Jn,{value:"weekly",children:"Weekly"}),d.jsx(Jn,{value:"monthly",children:"Monthly"})]}),d.jsx(Zn,{title:"Choose how often you want the check-ins to occur",children:d.jsx("i",{className:"fas fa-info-circle"})})]}),d.jsx(Tm,{control:d.jsx(Rm,{checked:a,onChange:C=>s(C.target.checked),color:"primary"}),label:"Notify me",sx:{marginBottom:2}}),d.jsx(kt,{type:"submit",fullWidth:!0,variant:"contained",color:"primary",sx:{mt:2,mb:2,padding:"10px 0"},children:t?"Update Check-In":"Schedule Check-In"}),d.jsx(yo,{open:f.open,autoHideDuration:6e3,onClose:x,children:d.jsx(xr,{onClose:x,severity:f.severity,children:f.message})})]})}Ap.propTypes={userId:Vd.string.isRequired,checkInId:Vd.string,update:Vd.bool.isRequired};var xg={},H6=Te;Object.defineProperty(xg,"__esModule",{value:!0});var z2=xg.default=void 0,V6=H6(je()),_y=d;z2=xg.default=(0,V6.default)([(0,_y.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,_y.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");var bg={},q6=Te;Object.defineProperty(bg,"__esModule",{value:!0});var B2=bg.default=void 0,G6=q6(je()),K6=d;B2=bg.default=(0,G6.default)((0,K6.jsx)("path",{d:"M7 7h10v3l4-4-4-4v3H5v6h2zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2z"}),"Repeat");var wg={},Y6=Te;Object.defineProperty(wg,"__esModule",{value:!0});var F2=wg.default=void 0,X6=Y6(je()),Q6=d;F2=wg.default=(0,X6.default)((0,Q6.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert");var Sg={},J6=Te;Object.defineProperty(Sg,"__esModule",{value:!0});var U2=Sg.default=void 0,Z6=J6(je()),ez=d;U2=Sg.default=(0,Z6.default)((0,ez.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");var Cg={},tz=Te;Object.defineProperty(Cg,"__esModule",{value:!0});var W2=Cg.default=void 0,nz=tz(je()),rz=d;W2=Cg.default=(0,nz.default)((0,rz.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");const oz=ie(ad)(({theme:e})=>({marginBottom:e.spacing(2),padding:e.spacing(2),display:"flex",alignItems:"center",justifyContent:"space-between",transition:"transform 0.1s ease-in-out","&:hover":{transform:"scale(1.01)",boxShadow:e.shadows[3]}})),iz=nn.forwardRef(function(t,n){return d.jsx(xr,{elevation:6,ref:n,variant:"filled",...t})});function az(){const{userId:e}=$s(),t=qo(),[n,r]=p.useState([]),[o,i]=p.useState(null),[a,s]=p.useState(!1),[l,c]=p.useState(!1),[u,f]=p.useState(!1),[h,w]=p.useState(""),[y,x]=p.useState(!1),[C,v]=p.useState(""),[m,b]=p.useState("info"),R=localStorage.getItem("token");p.useEffect(()=>{k()},[e]);const k=async()=>{if(!e){w("User not logged in");return}if(!R){w("No token found, please log in again");return}f(!0);try{const W=await Oe.get(`/api/check-in/all?user_id=${e}`,{headers:{Authorization:`Bearer ${R}`}});if(console.log("API Response:",W.data),Array.isArray(W.data)&&W.data.every(U=>U._id&&U._id.$oid&&U.check_in_time&&U.check_in_time.$date)){const U=W.data.map(G=>({...G,_id:G._id.$oid,check_in_time:new Date(G.check_in_time.$date).toLocaleString()}));r(U)}else console.error("Data received is not in expected array format:",W.data),w("Unexpected data format");f(!1)}catch(W){console.error("Error during fetch:",W),w(W.message),f(!1)}},T=W=>{const U=n.find(G=>G._id===W);U&&(i(U),console.log("Selected check-in for details or update:",U),s(!0))},P=()=>{s(!1),c(!1)},j=async()=>{if(o){try{await Oe.delete(`/api/check-in/${o._id}`,{headers:{Authorization:`Bearer ${R}`}}),v("Check-in deleted successfully"),b("success"),k(),P()}catch{v("Failed to delete check-in"),b("error")}x(!0)}},N=()=>{t(`/user/check_in/${o._id}`),console.log("Redirecting to update check-in form",o._id)},O=(W,U)=>{U!=="clickaway"&&x(!1)},F=()=>{c(!0)};return e?u?d.jsx(Ie,{variant:"h6",mt:"2",children:"Loading..."}):d.jsxs(at,{sx:{margin:3,maxWidth:600,mx:"auto",maxHeight:"91vh",overflow:"auto"},children:[d.jsx(Ie,{variant:"h4",gutterBottom:!0,children:"Track Your Commitments"}),d.jsx(xs,{sx:{mb:2}}),n.length>0?d.jsx(Fs,{children:n.map(W=>d.jsxs(oz,{children:[d.jsx(eL,{children:d.jsx(Er,{sx:{bgcolor:"primary.main"},children:d.jsx(z2,{})})}),d.jsx(ws,{primary:`Check-In: ${W.check_in_time}`,secondary:d.jsx(TO,{label:W.frequency,icon:d.jsx(B2,{}),size:"small"})}),d.jsx(Zn,{title:"More options",children:d.jsx(ut,{onClick:()=>T(W._id),children:d.jsx(F2,{})})})]},W._id))}):d.jsx(Ie,{variant:"h6",sx:{mb:2,mt:2,color:"error.main",fontWeight:"medium",textAlign:"center",padding:2,borderRadius:1,backgroundColor:"background.paper",boxShadow:2},children:"No check-ins found."}),d.jsxs(Mp,{open:a,onClose:P,children:[d.jsx(Ip,{children:"Check-In Details"}),d.jsx(Op,{children:d.jsxs(Ie,{component:"div",children:[d.jsxs(Ie,{variant:"body1",children:[d.jsx("strong",{children:"Time:"})," ",o==null?void 0:o.check_in_time]}),d.jsxs(Ie,{variant:"body1",children:[d.jsx("strong",{children:"Frequency:"})," ",o==null?void 0:o.frequency]}),d.jsxs(Ie,{variant:"body1",children:[d.jsx("strong",{children:"Status:"})," ",o==null?void 0:o.status]}),d.jsxs(Ie,{variant:"body1",children:[d.jsx("strong",{children:"Notify:"})," ",o!=null&&o.notify?"Yes":"No"]})]})}),d.jsxs(jp,{children:[d.jsx(kt,{onClick:N,startIcon:d.jsx(W2,{}),children:"Update"}),d.jsx(kt,{onClick:F,startIcon:d.jsx(U2,{}),color:"error",children:"Delete"}),d.jsx(kt,{onClick:P,children:"Close"})]})]}),d.jsxs(Mp,{open:l,onClose:P,children:[d.jsx(Ip,{children:"Confirm Deletion"}),d.jsx(Op,{children:d.jsx(n2,{children:"Are you sure you want to delete this check-in? This action cannot be undone."})}),d.jsxs(jp,{children:[d.jsx(kt,{onClick:j,color:"error",children:"Delete"}),d.jsx(kt,{onClick:P,children:"Cancel"})]})]}),d.jsx(yo,{open:y,autoHideDuration:6e3,onClose:O,children:d.jsx(iz,{onClose:O,severity:m,children:C})})]}):d.jsx(Ie,{variant:"h6",mt:"2",children:"Please log in to see your check-ins."})}const wr=({children:e})=>{const t=localStorage.getItem("token");return console.log("isAuthenticated:",t),t?e:d.jsx(OP,{to:"/auth",replace:!0})};var Rg={},sz=Te;Object.defineProperty(Rg,"__esModule",{value:!0});var H2=Rg.default=void 0,lz=sz(je()),cz=d;H2=Rg.default=(0,lz.default)((0,cz.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 14H4V8l8 5 8-5zm-8-7L4 6h16z"}),"MailOutline");function uz(){const[e,t]=p.useState(""),[n,r]=p.useState(""),[o,i]=p.useState(!1),[a,s]=p.useState(!1),l=async c=>{var u,f;c.preventDefault(),s(!0);try{const h=await Oe.post("/api/user/request_reset",{email:e});r(h.data.message),i(!1)}catch(h){r(((f=(u=h.response)==null?void 0:u.data)==null?void 0:f.message)||"Failed to send reset link. Please try again."),i(!0)}s(!1)};return d.jsx(at,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",sx:{background:"linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)","& .MuiPaper-root":{background:"#fff",padding:"30px",width:"400px",textAlign:"center"}},children:d.jsxs(En,{elevation:3,style:{padding:"30px",width:"400px",textAlign:"center"},children:[d.jsx(Ie,{variant:"h5",component:"h1",marginBottom:"20px",children:"Reset Your Password"}),d.jsxs("form",{onSubmit:l,children:[d.jsx(it,{label:"Email Address",type:"email",value:e,onChange:c=>t(c.target.value),variant:"outlined",fullWidth:!0,required:!0,margin:"normal",InputProps:{endAdornment:d.jsx(H2,{})}}),d.jsx(kt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,disabled:a,endIcon:a?null:d.jsx(ra,{}),children:a?d.jsx(_n,{size:24}):"Send Reset Link"})]}),n&&d.jsx(xr,{severity:o?"error":"success",sx:{maxWidth:"325px",mt:2},children:n})]})})}var kg={},dz=Te;Object.defineProperty(kg,"__esModule",{value:!0});var Np=kg.default=void 0,fz=dz(je()),pz=d;Np=kg.default=(0,fz.default)((0,pz.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");var Pg={},hz=Te;Object.defineProperty(Pg,"__esModule",{value:!0});var V2=Pg.default=void 0,mz=hz(je()),gz=d;V2=Pg.default=(0,mz.default)((0,gz.jsx)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l4 4 4-4H6c0-3.86 3.14-7 7-7s7 3.14 7 7-3.14 7-7 7c-1.9 0-3.62-.76-4.88-1.99L6.7 18.42C8.32 20.01 10.55 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m2 8v-1c0-1.1-.9-2-2-2s-2 .9-2 2v1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1m-1 0h-2v-1c0-.55.45-1 1-1s1 .45 1 1z"}),"LockReset");function vz(){const e=qo(),{token:t}=$s(),[n,r]=p.useState(""),[o,i]=p.useState(""),[a,s]=p.useState(!1),[l,c]=p.useState(""),[u,f]=p.useState(!1),h=async y=>{if(y.preventDefault(),n!==o){c("Passwords do not match."),f(!0);return}try{const x=await Oe.post(`/api/user/reset_password/${t}`,{password:n});c(x.data.message),f(!1),setTimeout(()=>e("/auth"),2e3)}catch(x){c(x.response.data.error),f(!0)}},w=()=>{s(!a)};return d.jsx(at,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",sx:{background:"linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)","& .MuiPaper-root":{padding:"40px",width:"400px",textAlign:"center",marginTop:"20px",borderRadius:"10px"}},children:d.jsxs(En,{elevation:6,children:[d.jsxs(Ie,{variant:"h5",component:"h1",marginBottom:"2",children:["Reset Your Password ",d.jsx(V2,{})]}),d.jsxs("form",{onSubmit:h,children:[d.jsx(it,{label:"New Password",type:a?"text":"password",value:n,onChange:y=>r(y.target.value),variant:"outlined",fullWidth:!0,required:!0,margin:"normal",InputProps:{endAdornment:d.jsx(jc,{position:"end",children:d.jsx(ut,{"aria-label":"toggle password visibility",onClick:w,children:a?d.jsx(Np,{}):d.jsx(Ac,{})})})}}),d.jsx(it,{label:"Confirm New Password",type:a?"text":"password",value:o,onChange:y=>i(y.target.value),variant:"outlined",fullWidth:!0,required:!0,margin:"normal",InputProps:{endAdornment:d.jsx(jc,{position:"end",children:d.jsx(ut,{"aria-label":"toggle password visibility",onClick:w,children:a?d.jsx(Np,{}):d.jsx(Ac,{})})})}}),d.jsx(kt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,sx:{mt:2},endIcon:d.jsx(ra,{}),children:"Reset Password"})]}),l&&d.jsx(xr,{severity:u?"error":"success",sx:{mt:2,maxWidth:"325px"},children:l})]})})}function yz(){const{user:e}=p.useContext(vr);return p.useEffect(()=>{document.body.style.backgroundColor="#f5f5f5"},[]),d.jsx(xz,{children:d.jsxs(_P,{children:[d.jsx(mn,{path:"/",element:d.jsx(wr,{children:e!=null&&e.userId?d.jsx(zN,{}):d.jsx(Iy,{})})}),d.jsx(mn,{path:"/chat",element:d.jsx(wr,{children:d.jsx(Iy,{})})}),d.jsx(mn,{path:"/reset_password/:token",element:d.jsx(vz,{})}),d.jsx(mn,{path:"/request_reset",element:d.jsx(uz,{})}),d.jsx(mn,{path:"/auth",element:d.jsx(ZN,{})}),d.jsx(mn,{path:"/user/profile/:userId",element:d.jsx(wr,{children:d.jsx(OD,{})})}),d.jsx(mn,{path:"/user/mood_logging",element:d.jsx(wr,{children:d.jsx(R6,{})})}),d.jsx(mn,{path:"/user/mood_logs",element:d.jsx(wr,{children:d.jsx(k6,{})})}),d.jsx(mn,{path:"/user/check_in",element:d.jsx(wr,{children:d.jsx(Ap,{userId:e==null?void 0:e.userId,checkInId:"",update:!1})})}),d.jsx(mn,{path:"/user/check_in/:checkInId",element:d.jsx(wr,{children:d.jsx(Ap,{userId:e==null?void 0:e.userId,update:!0})})}),d.jsx(mn,{path:"/user/chat_log_Manager",element:d.jsx(wr,{children:d.jsx(b6,{})})}),d.jsx(mn,{path:"/user/check_ins/:userId",element:d.jsx(wr,{children:d.jsx(az,{})})})]})})}function xz({children:e}){p.useContext(vr);const t=ho(),r=!["/auth","/request_reset",new RegExp("^/reset_password/[^/]+$")].some(l=>typeof l=="string"?l===t.pathname:l.test(t.pathname)),o=r?6:0,[i,a]=p.useState(!0),s=()=>{a(!i)};return d.jsxs(at,{sx:{display:"flex",maxHeight:"100vh"},children:[d.jsx(km,{}),r&&d.jsx(c6,{toggleSidebar:s}),r&&i&&d.jsx(ZD,{}),d.jsx(at,{component:"main",sx:{flexGrow:1,p:o},children:e})]})}function bz(e){const t="=".repeat((4-e.length%4)%4),n=(e+t).replace(/-/g,"+").replace(/_/g,"/"),r=window.atob(n),o=new Uint8Array(r.length);for(let i=0;i{if(t!=="granted")throw new Error("Permission not granted for Notification");return e.pushManager.getSubscription()}).then(function(t){return t||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:bz(Sz)})}).then(function(t){console.log("Subscription:",t);const n={p256dh:btoa(String.fromCharCode.apply(null,new Uint8Array(t.getKey("p256dh")))),auth:btoa(String.fromCharCode.apply(null,new Uint8Array(t.getKey("auth"))))};if(console.log("Subscription keys:",n),!n.p256dh||!n.auth)throw console.error("Subscription object:",t),new Error("Subscription keys are missing");const r={endpoint:t.endpoint,keys:n},o=wz();if(!o)throw new Error("No token found");return fetch("/api/subscribe",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`},body:JSON.stringify(r)})}).then(t=>t.json()).then(t=>console.log("Subscription response:",t)).catch(t=>console.error("Subscription failed:",t))}).catch(function(e){console.error("Service Worker registration failed:",e)})});df.createRoot(document.getElementById("root")).render(d.jsx(UP,{children:d.jsx(YP,{children:d.jsx(yz,{})})})); diff --git a/client/dist/index.html b/client/dist/index.html index a8609cf1..7002120e 100644 --- a/client/dist/index.html +++ b/client/dist/index.html @@ -10,7 +10,7 @@ content="Web site created using create-react-app" /> Mental Health App - + diff --git a/client/package-lock.json b/client/package-lock.json index 1b890564..89e03052 100644 --- a/client/package-lock.json +++ b/client/package-lock.json @@ -21,6 +21,7 @@ "react-dom": "^18.2.0", "react-redux": "^9.1.2", "react-router-dom": "^6.23.1", + "recordrtc": "^5.6.2", "redux": "^5.0.1", "redux-thunk": "^3.1.0" }, @@ -5433,6 +5434,11 @@ "react-dom": ">=16.6.0" } }, + "node_modules/recordrtc": { + "version": "5.6.2", + "resolved": "https://registry.npmjs.org/recordrtc/-/recordrtc-5.6.2.tgz", + "integrity": "sha512-1QNKKNtl7+KcwD1lyOgP3ZlbiJ1d0HtXnypUy7yq49xEERxk31PHvE9RCciDrulPCY7WJ+oz0R9hpNxgsIurGQ==" + }, "node_modules/redux": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/redux/-/redux-5.0.1.tgz", diff --git a/client/package.json b/client/package.json index 84bab0d6..750fec1b 100644 --- a/client/package.json +++ b/client/package.json @@ -23,6 +23,7 @@ "react-dom": "^18.2.0", "react-redux": "^9.1.2", "react-router-dom": "^6.23.1", + "recordrtc": "^5.6.2", "redux": "^5.0.1", "redux-thunk": "^3.1.0" }, diff --git a/client/src/Components/chatComponent.jsx b/client/src/Components/chatComponent.jsx index e83f9e32..7c7fd570 100644 --- a/client/src/Components/chatComponent.jsx +++ b/client/src/Components/chatComponent.jsx @@ -11,7 +11,7 @@ import VolumeOffIcon from '@mui/icons-material/VolumeOff'; import LibraryAddIcon from '@mui/icons-material/LibraryAdd'; import { UserContext } from './userContext'; import Aria from '../Assets/Images/Aria.jpg'; // Adjust the path to where your logo is stored - +import RecordRTC from 'recordrtc'; const TypingIndicator = () => ( @@ -206,29 +206,43 @@ const ChatComponent = () => { } }, [input, userId, chatId, turnId]); + + const supportsWebM = () => { + // This is a simple test; for more robust detection, consider specific codec checks + const mediaRecorderType = MediaRecorder.isTypeSupported ? MediaRecorder.isTypeSupported('audio/webm; codecs=opus') : false; + return mediaRecorderType; + }; + + // Function to handle recording start const startRecording = () => { navigator.mediaDevices.getUserMedia({ audio: true }) .then(stream => { audioChunksRef.current = []; // Clear the ref at the start of recording - const options = { mimeType: 'audio/webm; codecs=opus' }; - const recorder = new MediaRecorder(stream, options); + const isWebMSupported = supportsWebM(); + const options = { type: 'audio', + mimeType: isWebMSupported ? 'audio/webm; codecs=opus' : 'audio/wav', + recorderType: isWebMSupported ? MediaRecorder : RecordRTC.StereoAudioRecorder, // Use MediaRecorder if WebM is supported, otherwise use RecordRTC for wav + numberOfAudioChannels: 1, }; + const recorder = isWebMSupported ? new MediaRecorder(stream, options) : new RecordRTC(stream, options); recorder.ondataavailable = (e) => { console.log('Data available:', e.data.size); // Log size to check if data is present audioChunksRef.current.push(e.data); }; - recorder.start(); + recorder.startRecording(); setMediaRecorder(recorder); setIsRecording(true); - }).catch(console.error); + }).catch(error => { + console.error('Error accessing microphone:', error); + }); }; // Function to handle recording stop const stopRecording = () => { if (mediaRecorder) { mediaRecorder.onstop = () => { - sendAudioToServer(audioChunksRef.current); // Ensure sendAudioToServer is called only after recording has fully stopped + sendAudioToServer(audioChunksRef.current, { type: mediaRecorder.mimeType }); // Ensure sendAudioToServer is called only after recording has fully stopped setIsRecording(false); setMediaRecorder(null); }; @@ -238,7 +252,7 @@ const ChatComponent = () => { const sendAudioToServer = chunks => { console.log('Audio chunks size:', chunks.reduce((sum, chunk) => sum + chunk.size, 0)); // Log total size of chunks - const audioBlob = new Blob(chunks, { 'type': 'audio/webm; codecs=opus' }); + const audioBlob = new Blob(chunks, { 'type': 'audio/webm' }); if (audioBlob.size === 0) { console.error('Audio Blob is empty'); return; From 8c2122b6d096f71fa31e61088a2db03d613514f3 Mon Sep 17 00:00:00 2001 From: DHRUMIL PATEL <123137675+dhrumilp12@users.noreply.github.com> Date: Tue, 25 Jun 2024 16:28:16 -0400 Subject: [PATCH 28/38] start recording --- client/dist/assets/{index-PlwwHYOf.js => index-D4EToMvz.js} | 2 +- client/dist/index.html | 2 +- client/src/Components/chatComponent.jsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename client/dist/assets/{index-PlwwHYOf.js => index-D4EToMvz.js} (99%) diff --git a/client/dist/assets/index-PlwwHYOf.js b/client/dist/assets/index-D4EToMvz.js similarity index 99% rename from client/dist/assets/index-PlwwHYOf.js rename to client/dist/assets/index-D4EToMvz.js index 3e7f82af..3a35e335 100644 --- a/client/dist/assets/index-PlwwHYOf.js +++ b/client/dist/assets/index-D4EToMvz.js @@ -458,7 +458,7 @@ Error generating stack: `+i.message+` * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code} * @param {MediaStream} mediaStream - MediaStream object fetched using getUserMedia API or generated using captureStreamUntilEnded or WebAudio API. * @param {object} config - {webAssemblyPath:'webm-wasm.wasm',workerPath: 'webm-worker.js', frameRate: 30, width: 1920, height: 1080, bitrate: 1024, realtime: true} - */function _(E,g){(typeof ReadableStream>"u"||typeof WritableStream>"u")&&console.error("Following polyfill is strongly recommended: https://unpkg.com/@mattiasbuelens/web-streams-polyfill/dist/polyfill.min.js"),g=g||{},g.width=g.width||640,g.height=g.height||480,g.frameRate=g.frameRate||30,g.bitrate=g.bitrate||1200,g.realtime=g.realtime||!0;var $;function z(){return new ReadableStream({start:function(Y){var K=document.createElement("canvas"),q=document.createElement("video"),oe=!0;q.srcObject=E,q.muted=!0,q.height=g.height,q.width=g.width,q.volume=0,q.onplaying=function(){K.width=g.width,K.height=g.height;var te=K.getContext("2d"),ne=1e3/g.frameRate,de=setInterval(function(){if($&&(clearInterval(de),Y.close()),oe&&(oe=!1,g.onVideoProcessStarted&&g.onVideoProcessStarted()),te.drawImage(q,0,0),Y._controlledReadableStream.state!=="closed")try{Y.enqueue(te.getImageData(0,0,g.width,g.height))}catch{}},ne)},q.play()}})}var L;function B(Y,K){if(!g.workerPath&&!K){$=!1,fetch("https://unpkg.com/webm-wasm@latest/dist/webm-worker.js").then(function(oe){oe.arrayBuffer().then(function(te){B(Y,te)})});return}if(!g.workerPath&&K instanceof ArrayBuffer){var q=new Blob([K],{type:"text/javascript"});g.workerPath=u.createObjectURL(q)}g.workerPath||console.error("workerPath parameter is missing."),L=new Worker(g.workerPath),L.postMessage(g.webAssemblyPath||"https://unpkg.com/webm-wasm@latest/dist/webm-wasm.wasm"),L.addEventListener("message",function(oe){oe.data==="READY"?(L.postMessage({width:g.width,height:g.height,bitrate:g.bitrate||1200,timebaseDen:g.frameRate||30,realtime:g.realtime}),z().pipeTo(new WritableStream({write:function(te){if($){console.error("Got image, but recorder is finished!");return}L.postMessage(te.data.buffer,[te.data.buffer])}}))):oe.data&&(V||A.push(oe.data))})}this.record=function(){A=[],V=!1,this.blob=null,B(E),typeof g.initCallback=="function"&&g.initCallback()};var V;this.pause=function(){V=!0},this.resume=function(){V=!1};function M(Y){if(!L){Y&&Y();return}L.addEventListener("message",function(K){K.data===null&&(L.terminate(),L=null,Y&&Y())}),L.postMessage(null)}var A=[];this.stop=function(Y){$=!0;var K=this;M(function(){K.blob=new Blob(A,{type:"video/webm"}),Y(K.blob)})},this.name="WebAssemblyRecorder",this.toString=function(){return this.name},this.clearRecordedData=function(){A=[],V=!1,this.blob=null},this.blob=null}typeof t<"u"&&(t.WebAssemblyRecorder=_)})(p2);var NN=p2.exports;const ky=Nc(NN),DN=()=>d.jsxs(at,{sx:{display:"flex",alignItems:"center",color:"text.secondary"},children:[d.jsx(Er,{src:Pi,sx:{width:24,height:24,marginRight:1},alt:"Aria"}),d.jsxs("div",{style:{display:"flex"},children:[d.jsx("div",{style:{animation:"blink 1.4s infinite",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),d.jsx("div",{style:{animation:"blink 1.4s infinite 0.2s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),d.jsx("div",{style:{animation:"blink 1.4s infinite 0.4s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor"}})]})]}),zN=()=>{const{user:e,voiceEnabled:t,setVoiceEnabled:n}=p.useContext(vr),r=e==null?void 0:e.userId,[o,i]=p.useState(null),[a,s]=p.useState(0),[l,c]=p.useState(""),[u,f]=p.useState([]),[h,w]=p.useState(!1),[y,x]=p.useState(null),C=p.useRef([]),[v,m]=p.useState(!1),[b,R]=p.useState(""),[k,T]=p.useState(!1),[P,j]=p.useState(!1),[N,O]=p.useState(""),[F,W]=p.useState("info"),[U,G]=p.useState(null),ee=M=>{M.preventDefault(),n(!t)},J=M=>{if(!t||M===U){G(null),window.speechSynthesis.cancel();return}const A=window.speechSynthesis,Y=new SpeechSynthesisUtterance(M),K=()=>{const q=A.getVoices();console.log(q.map(te=>`${te.name} - ${te.lang} - ${te.gender}`));const oe=q.find(te=>te.name.includes("Microsoft Zira - English (United States)"));oe?Y.voice=oe:console.log("No female voice found"),Y.onend=()=>{G(null)},G(M),A.speak(Y)};A.getVoices().length===0?A.onvoiceschanged=K:K()},re=p.useCallback(async()=>{if(r){m(!0),T(!0);try{const M=await fetch(`/api/ai/mental_health/welcome/${r}`,{method:"POST",headers:{"Content-Type":"application/json"}}),A=await M.json();console.log(A),M.ok?(R(A.message),t&&A.message&&J(A.message),i(A.chat_id),console.log(A.chat_id)):(console.error("Failed to fetch welcome message:",A),R("Error fetching welcome message."))}catch(M){console.error("Network or server error:",M)}finally{m(!1),T(!1)}}},[r]);p.useEffect(()=>{re()},[]);const I=(M,A)=>{A!=="clickaway"&&j(!1)},_=p.useCallback(async()=>{if(o!==null){m(!0);try{const M=await fetch(`/api/ai/mental_health/finalize/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"}}),A=await M.json();M.ok?(O("Chat finalized successfully"),W("success"),i(null),s(0),f([]),re()):(O("Failed to finalize chat"),W("error"))}catch{O("Error finalizing chat"),W("error")}finally{m(!1),j(!0)}}},[r,o,re]),E=p.useCallback(async()=>{if(!(!l.trim()||o===void 0)){console.log(o),m(!0);try{const M=JSON.stringify({prompt:l,turn_id:a}),A=await fetch(`/api/ai/mental_health/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"},body:M}),Y=await A.json();console.log(Y),A.ok?(f(K=>[...K,{message:l,sender:"user"},{message:Y,sender:"agent"}]),t&&Y&&J(Y),s(K=>K+1),c("")):(console.error("Failed to send message:",Y.error||"Unknown error occurred"),O(Y.error||"An error occurred while sending the message."),W("error"),j(!0))}catch(M){console.error("Failed to send message:",M),O("Network or server error occurred."),W("error"),j(!0)}finally{m(!1)}}},[l,r,o,a]),g=()=>MediaRecorder.isTypeSupported?MediaRecorder.isTypeSupported("audio/webm; codecs=opus"):!1,$=()=>{navigator.mediaDevices.getUserMedia({audio:!0}).then(M=>{C.current=[];const A=g(),Y={type:"audio",mimeType:A?"audio/webm; codecs=opus":"audio/wav",recorderType:A?MediaRecorder:ky.StereoAudioRecorder,numberOfAudioChannels:1},K=A?new MediaRecorder(M,Y):new ky(M,Y);K.ondataavailable=q=>{console.log("Data available:",q.data.size),C.current.push(q.data)},K.startRecording(),x(K),w(!0)}).catch(M=>{console.error("Error accessing microphone:",M)})},z=()=>{y&&(y.onstop=()=>{L(C.current,{type:y.mimeType}),w(!1),x(null)},y.stop())},L=M=>{console.log("Audio chunks size:",M.reduce((K,q)=>K+q.size,0));const A=new Blob(M,{type:"audio/webm"});if(A.size===0){console.error("Audio Blob is empty");return}console.log(`Sending audio blob of size: ${A.size} bytes`);const Y=new FormData;Y.append("audio",A),m(!0),Oe.post("/api/ai/mental_health/voice-to-text",Y,{headers:{"Content-Type":"multipart/form-data"}}).then(K=>{const{message:q}=K.data;c(q),E()}).catch(K=>{console.error("Error uploading audio:",K),j(!0),O("Error processing voice input: "+K.message),W("error")}).finally(()=>{m(!1)})},B=p.useCallback(M=>{const A=M.target.value;A.split(/\s+/).length>200?(c(K=>K.split(/\s+/).slice(0,200).join(" ")),O("Word limit reached. Only 200 words allowed."),W("warning"),j(!0)):c(A)},[]),V=M=>M===U?d.jsx(Lc,{}):d.jsx(_c,{});return d.jsxs(d.Fragment,{children:[d.jsx("style",{children:` + */function _(E,g){(typeof ReadableStream>"u"||typeof WritableStream>"u")&&console.error("Following polyfill is strongly recommended: https://unpkg.com/@mattiasbuelens/web-streams-polyfill/dist/polyfill.min.js"),g=g||{},g.width=g.width||640,g.height=g.height||480,g.frameRate=g.frameRate||30,g.bitrate=g.bitrate||1200,g.realtime=g.realtime||!0;var $;function z(){return new ReadableStream({start:function(Y){var K=document.createElement("canvas"),q=document.createElement("video"),oe=!0;q.srcObject=E,q.muted=!0,q.height=g.height,q.width=g.width,q.volume=0,q.onplaying=function(){K.width=g.width,K.height=g.height;var te=K.getContext("2d"),ne=1e3/g.frameRate,de=setInterval(function(){if($&&(clearInterval(de),Y.close()),oe&&(oe=!1,g.onVideoProcessStarted&&g.onVideoProcessStarted()),te.drawImage(q,0,0),Y._controlledReadableStream.state!=="closed")try{Y.enqueue(te.getImageData(0,0,g.width,g.height))}catch{}},ne)},q.play()}})}var L;function B(Y,K){if(!g.workerPath&&!K){$=!1,fetch("https://unpkg.com/webm-wasm@latest/dist/webm-worker.js").then(function(oe){oe.arrayBuffer().then(function(te){B(Y,te)})});return}if(!g.workerPath&&K instanceof ArrayBuffer){var q=new Blob([K],{type:"text/javascript"});g.workerPath=u.createObjectURL(q)}g.workerPath||console.error("workerPath parameter is missing."),L=new Worker(g.workerPath),L.postMessage(g.webAssemblyPath||"https://unpkg.com/webm-wasm@latest/dist/webm-wasm.wasm"),L.addEventListener("message",function(oe){oe.data==="READY"?(L.postMessage({width:g.width,height:g.height,bitrate:g.bitrate||1200,timebaseDen:g.frameRate||30,realtime:g.realtime}),z().pipeTo(new WritableStream({write:function(te){if($){console.error("Got image, but recorder is finished!");return}L.postMessage(te.data.buffer,[te.data.buffer])}}))):oe.data&&(V||A.push(oe.data))})}this.record=function(){A=[],V=!1,this.blob=null,B(E),typeof g.initCallback=="function"&&g.initCallback()};var V;this.pause=function(){V=!0},this.resume=function(){V=!1};function M(Y){if(!L){Y&&Y();return}L.addEventListener("message",function(K){K.data===null&&(L.terminate(),L=null,Y&&Y())}),L.postMessage(null)}var A=[];this.stop=function(Y){$=!0;var K=this;M(function(){K.blob=new Blob(A,{type:"video/webm"}),Y(K.blob)})},this.name="WebAssemblyRecorder",this.toString=function(){return this.name},this.clearRecordedData=function(){A=[],V=!1,this.blob=null},this.blob=null}typeof t<"u"&&(t.WebAssemblyRecorder=_)})(p2);var NN=p2.exports;const ky=Nc(NN),DN=()=>d.jsxs(at,{sx:{display:"flex",alignItems:"center",color:"text.secondary"},children:[d.jsx(Er,{src:Pi,sx:{width:24,height:24,marginRight:1},alt:"Aria"}),d.jsxs("div",{style:{display:"flex"},children:[d.jsx("div",{style:{animation:"blink 1.4s infinite",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),d.jsx("div",{style:{animation:"blink 1.4s infinite 0.2s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),d.jsx("div",{style:{animation:"blink 1.4s infinite 0.4s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor"}})]})]}),zN=()=>{const{user:e,voiceEnabled:t,setVoiceEnabled:n}=p.useContext(vr),r=e==null?void 0:e.userId,[o,i]=p.useState(null),[a,s]=p.useState(0),[l,c]=p.useState(""),[u,f]=p.useState([]),[h,w]=p.useState(!1),[y,x]=p.useState(null),C=p.useRef([]),[v,m]=p.useState(!1),[b,R]=p.useState(""),[k,T]=p.useState(!1),[P,j]=p.useState(!1),[N,O]=p.useState(""),[F,W]=p.useState("info"),[U,G]=p.useState(null),ee=M=>{M.preventDefault(),n(!t)},J=M=>{if(!t||M===U){G(null),window.speechSynthesis.cancel();return}const A=window.speechSynthesis,Y=new SpeechSynthesisUtterance(M),K=()=>{const q=A.getVoices();console.log(q.map(te=>`${te.name} - ${te.lang} - ${te.gender}`));const oe=q.find(te=>te.name.includes("Microsoft Zira - English (United States)"));oe?Y.voice=oe:console.log("No female voice found"),Y.onend=()=>{G(null)},G(M),A.speak(Y)};A.getVoices().length===0?A.onvoiceschanged=K:K()},re=p.useCallback(async()=>{if(r){m(!0),T(!0);try{const M=await fetch(`/api/ai/mental_health/welcome/${r}`,{method:"POST",headers:{"Content-Type":"application/json"}}),A=await M.json();console.log(A),M.ok?(R(A.message),t&&A.message&&J(A.message),i(A.chat_id),console.log(A.chat_id)):(console.error("Failed to fetch welcome message:",A),R("Error fetching welcome message."))}catch(M){console.error("Network or server error:",M)}finally{m(!1),T(!1)}}},[r]);p.useEffect(()=>{re()},[]);const I=(M,A)=>{A!=="clickaway"&&j(!1)},_=p.useCallback(async()=>{if(o!==null){m(!0);try{const M=await fetch(`/api/ai/mental_health/finalize/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"}}),A=await M.json();M.ok?(O("Chat finalized successfully"),W("success"),i(null),s(0),f([]),re()):(O("Failed to finalize chat"),W("error"))}catch{O("Error finalizing chat"),W("error")}finally{m(!1),j(!0)}}},[r,o,re]),E=p.useCallback(async()=>{if(!(!l.trim()||o===void 0)){console.log(o),m(!0);try{const M=JSON.stringify({prompt:l,turn_id:a}),A=await fetch(`/api/ai/mental_health/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"},body:M}),Y=await A.json();console.log(Y),A.ok?(f(K=>[...K,{message:l,sender:"user"},{message:Y,sender:"agent"}]),t&&Y&&J(Y),s(K=>K+1),c("")):(console.error("Failed to send message:",Y.error||"Unknown error occurred"),O(Y.error||"An error occurred while sending the message."),W("error"),j(!0))}catch(M){console.error("Failed to send message:",M),O("Network or server error occurred."),W("error"),j(!0)}finally{m(!1)}}},[l,r,o,a]),g=()=>MediaRecorder.isTypeSupported?MediaRecorder.isTypeSupported("audio/webm; codecs=opus"):!1,$=()=>{navigator.mediaDevices.getUserMedia({audio:!0}).then(M=>{C.current=[];const A=g(),Y={type:"audio",mimeType:A?"audio/webm; codecs=opus":"audio/wav",recorderType:A?MediaRecorder:ky.StereoAudioRecorder,numberOfAudioChannels:1},K=A?new MediaRecorder(M,Y):new ky(M,Y);K.ondataavailable=q=>{console.log("Data available:",q.data.size),C.current.push(q.data)},K.start(),x(K),w(!0)}).catch(M=>{console.error("Error accessing microphone:",M)})},z=()=>{y&&(y.onstop=()=>{L(C.current,{type:y.mimeType}),w(!1),x(null)},y.stop())},L=M=>{console.log("Audio chunks size:",M.reduce((K,q)=>K+q.size,0));const A=new Blob(M,{type:"audio/webm"});if(A.size===0){console.error("Audio Blob is empty");return}console.log(`Sending audio blob of size: ${A.size} bytes`);const Y=new FormData;Y.append("audio",A),m(!0),Oe.post("/api/ai/mental_health/voice-to-text",Y,{headers:{"Content-Type":"multipart/form-data"}}).then(K=>{const{message:q}=K.data;c(q),E()}).catch(K=>{console.error("Error uploading audio:",K),j(!0),O("Error processing voice input: "+K.message),W("error")}).finally(()=>{m(!1)})},B=p.useCallback(M=>{const A=M.target.value;A.split(/\s+/).length>200?(c(K=>K.split(/\s+/).slice(0,200).join(" ")),O("Word limit reached. Only 200 words allowed."),W("warning"),j(!0)):c(A)},[]),V=M=>M===U?d.jsx(Lc,{}):d.jsx(_c,{});return d.jsxs(d.Fragment,{children:[d.jsx("style",{children:` @keyframes blink { 0%, 100% { opacity: 0; } 50% { opacity: 1; } diff --git a/client/dist/index.html b/client/dist/index.html index 7002120e..9ee7b9da 100644 --- a/client/dist/index.html +++ b/client/dist/index.html @@ -10,7 +10,7 @@ content="Web site created using create-react-app" /> Mental Health App - + diff --git a/client/src/Components/chatComponent.jsx b/client/src/Components/chatComponent.jsx index 7c7fd570..0bbdf056 100644 --- a/client/src/Components/chatComponent.jsx +++ b/client/src/Components/chatComponent.jsx @@ -230,7 +230,7 @@ const ChatComponent = () => { audioChunksRef.current.push(e.data); }; - recorder.startRecording(); + recorder.start(); setMediaRecorder(recorder); setIsRecording(true); }).catch(error => { From 8eb7728ba121d8b04be56581e780351898c8ed84 Mon Sep 17 00:00:00 2001 From: DHRUMIL PATEL <123137675+dhrumilp12@users.noreply.github.com> Date: Tue, 25 Jun 2024 17:28:07 -0400 Subject: [PATCH 29/38] mic. --- .../assets/{index-D4EToMvz.js => index-Bo8BCm21.js} | 2 +- client/dist/index.html | 2 +- client/src/Components/chatComponent.jsx | 13 ++++++++++++- 3 files changed, 14 insertions(+), 3 deletions(-) rename client/dist/assets/{index-D4EToMvz.js => index-Bo8BCm21.js} (99%) diff --git a/client/dist/assets/index-D4EToMvz.js b/client/dist/assets/index-Bo8BCm21.js similarity index 99% rename from client/dist/assets/index-D4EToMvz.js rename to client/dist/assets/index-Bo8BCm21.js index 3a35e335..ce6bda2a 100644 --- a/client/dist/assets/index-D4EToMvz.js +++ b/client/dist/assets/index-Bo8BCm21.js @@ -458,7 +458,7 @@ Error generating stack: `+i.message+` * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code} * @param {MediaStream} mediaStream - MediaStream object fetched using getUserMedia API or generated using captureStreamUntilEnded or WebAudio API. * @param {object} config - {webAssemblyPath:'webm-wasm.wasm',workerPath: 'webm-worker.js', frameRate: 30, width: 1920, height: 1080, bitrate: 1024, realtime: true} - */function _(E,g){(typeof ReadableStream>"u"||typeof WritableStream>"u")&&console.error("Following polyfill is strongly recommended: https://unpkg.com/@mattiasbuelens/web-streams-polyfill/dist/polyfill.min.js"),g=g||{},g.width=g.width||640,g.height=g.height||480,g.frameRate=g.frameRate||30,g.bitrate=g.bitrate||1200,g.realtime=g.realtime||!0;var $;function z(){return new ReadableStream({start:function(Y){var K=document.createElement("canvas"),q=document.createElement("video"),oe=!0;q.srcObject=E,q.muted=!0,q.height=g.height,q.width=g.width,q.volume=0,q.onplaying=function(){K.width=g.width,K.height=g.height;var te=K.getContext("2d"),ne=1e3/g.frameRate,de=setInterval(function(){if($&&(clearInterval(de),Y.close()),oe&&(oe=!1,g.onVideoProcessStarted&&g.onVideoProcessStarted()),te.drawImage(q,0,0),Y._controlledReadableStream.state!=="closed")try{Y.enqueue(te.getImageData(0,0,g.width,g.height))}catch{}},ne)},q.play()}})}var L;function B(Y,K){if(!g.workerPath&&!K){$=!1,fetch("https://unpkg.com/webm-wasm@latest/dist/webm-worker.js").then(function(oe){oe.arrayBuffer().then(function(te){B(Y,te)})});return}if(!g.workerPath&&K instanceof ArrayBuffer){var q=new Blob([K],{type:"text/javascript"});g.workerPath=u.createObjectURL(q)}g.workerPath||console.error("workerPath parameter is missing."),L=new Worker(g.workerPath),L.postMessage(g.webAssemblyPath||"https://unpkg.com/webm-wasm@latest/dist/webm-wasm.wasm"),L.addEventListener("message",function(oe){oe.data==="READY"?(L.postMessage({width:g.width,height:g.height,bitrate:g.bitrate||1200,timebaseDen:g.frameRate||30,realtime:g.realtime}),z().pipeTo(new WritableStream({write:function(te){if($){console.error("Got image, but recorder is finished!");return}L.postMessage(te.data.buffer,[te.data.buffer])}}))):oe.data&&(V||A.push(oe.data))})}this.record=function(){A=[],V=!1,this.blob=null,B(E),typeof g.initCallback=="function"&&g.initCallback()};var V;this.pause=function(){V=!0},this.resume=function(){V=!1};function M(Y){if(!L){Y&&Y();return}L.addEventListener("message",function(K){K.data===null&&(L.terminate(),L=null,Y&&Y())}),L.postMessage(null)}var A=[];this.stop=function(Y){$=!0;var K=this;M(function(){K.blob=new Blob(A,{type:"video/webm"}),Y(K.blob)})},this.name="WebAssemblyRecorder",this.toString=function(){return this.name},this.clearRecordedData=function(){A=[],V=!1,this.blob=null},this.blob=null}typeof t<"u"&&(t.WebAssemblyRecorder=_)})(p2);var NN=p2.exports;const ky=Nc(NN),DN=()=>d.jsxs(at,{sx:{display:"flex",alignItems:"center",color:"text.secondary"},children:[d.jsx(Er,{src:Pi,sx:{width:24,height:24,marginRight:1},alt:"Aria"}),d.jsxs("div",{style:{display:"flex"},children:[d.jsx("div",{style:{animation:"blink 1.4s infinite",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),d.jsx("div",{style:{animation:"blink 1.4s infinite 0.2s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),d.jsx("div",{style:{animation:"blink 1.4s infinite 0.4s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor"}})]})]}),zN=()=>{const{user:e,voiceEnabled:t,setVoiceEnabled:n}=p.useContext(vr),r=e==null?void 0:e.userId,[o,i]=p.useState(null),[a,s]=p.useState(0),[l,c]=p.useState(""),[u,f]=p.useState([]),[h,w]=p.useState(!1),[y,x]=p.useState(null),C=p.useRef([]),[v,m]=p.useState(!1),[b,R]=p.useState(""),[k,T]=p.useState(!1),[P,j]=p.useState(!1),[N,O]=p.useState(""),[F,W]=p.useState("info"),[U,G]=p.useState(null),ee=M=>{M.preventDefault(),n(!t)},J=M=>{if(!t||M===U){G(null),window.speechSynthesis.cancel();return}const A=window.speechSynthesis,Y=new SpeechSynthesisUtterance(M),K=()=>{const q=A.getVoices();console.log(q.map(te=>`${te.name} - ${te.lang} - ${te.gender}`));const oe=q.find(te=>te.name.includes("Microsoft Zira - English (United States)"));oe?Y.voice=oe:console.log("No female voice found"),Y.onend=()=>{G(null)},G(M),A.speak(Y)};A.getVoices().length===0?A.onvoiceschanged=K:K()},re=p.useCallback(async()=>{if(r){m(!0),T(!0);try{const M=await fetch(`/api/ai/mental_health/welcome/${r}`,{method:"POST",headers:{"Content-Type":"application/json"}}),A=await M.json();console.log(A),M.ok?(R(A.message),t&&A.message&&J(A.message),i(A.chat_id),console.log(A.chat_id)):(console.error("Failed to fetch welcome message:",A),R("Error fetching welcome message."))}catch(M){console.error("Network or server error:",M)}finally{m(!1),T(!1)}}},[r]);p.useEffect(()=>{re()},[]);const I=(M,A)=>{A!=="clickaway"&&j(!1)},_=p.useCallback(async()=>{if(o!==null){m(!0);try{const M=await fetch(`/api/ai/mental_health/finalize/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"}}),A=await M.json();M.ok?(O("Chat finalized successfully"),W("success"),i(null),s(0),f([]),re()):(O("Failed to finalize chat"),W("error"))}catch{O("Error finalizing chat"),W("error")}finally{m(!1),j(!0)}}},[r,o,re]),E=p.useCallback(async()=>{if(!(!l.trim()||o===void 0)){console.log(o),m(!0);try{const M=JSON.stringify({prompt:l,turn_id:a}),A=await fetch(`/api/ai/mental_health/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"},body:M}),Y=await A.json();console.log(Y),A.ok?(f(K=>[...K,{message:l,sender:"user"},{message:Y,sender:"agent"}]),t&&Y&&J(Y),s(K=>K+1),c("")):(console.error("Failed to send message:",Y.error||"Unknown error occurred"),O(Y.error||"An error occurred while sending the message."),W("error"),j(!0))}catch(M){console.error("Failed to send message:",M),O("Network or server error occurred."),W("error"),j(!0)}finally{m(!1)}}},[l,r,o,a]),g=()=>MediaRecorder.isTypeSupported?MediaRecorder.isTypeSupported("audio/webm; codecs=opus"):!1,$=()=>{navigator.mediaDevices.getUserMedia({audio:!0}).then(M=>{C.current=[];const A=g(),Y={type:"audio",mimeType:A?"audio/webm; codecs=opus":"audio/wav",recorderType:A?MediaRecorder:ky.StereoAudioRecorder,numberOfAudioChannels:1},K=A?new MediaRecorder(M,Y):new ky(M,Y);K.ondataavailable=q=>{console.log("Data available:",q.data.size),C.current.push(q.data)},K.start(),x(K),w(!0)}).catch(M=>{console.error("Error accessing microphone:",M)})},z=()=>{y&&(y.onstop=()=>{L(C.current,{type:y.mimeType}),w(!1),x(null)},y.stop())},L=M=>{console.log("Audio chunks size:",M.reduce((K,q)=>K+q.size,0));const A=new Blob(M,{type:"audio/webm"});if(A.size===0){console.error("Audio Blob is empty");return}console.log(`Sending audio blob of size: ${A.size} bytes`);const Y=new FormData;Y.append("audio",A),m(!0),Oe.post("/api/ai/mental_health/voice-to-text",Y,{headers:{"Content-Type":"multipart/form-data"}}).then(K=>{const{message:q}=K.data;c(q),E()}).catch(K=>{console.error("Error uploading audio:",K),j(!0),O("Error processing voice input: "+K.message),W("error")}).finally(()=>{m(!1)})},B=p.useCallback(M=>{const A=M.target.value;A.split(/\s+/).length>200?(c(K=>K.split(/\s+/).slice(0,200).join(" ")),O("Word limit reached. Only 200 words allowed."),W("warning"),j(!0)):c(A)},[]),V=M=>M===U?d.jsx(Lc,{}):d.jsx(_c,{});return d.jsxs(d.Fragment,{children:[d.jsx("style",{children:` + */function _(E,g){(typeof ReadableStream>"u"||typeof WritableStream>"u")&&console.error("Following polyfill is strongly recommended: https://unpkg.com/@mattiasbuelens/web-streams-polyfill/dist/polyfill.min.js"),g=g||{},g.width=g.width||640,g.height=g.height||480,g.frameRate=g.frameRate||30,g.bitrate=g.bitrate||1200,g.realtime=g.realtime||!0;var $;function z(){return new ReadableStream({start:function(Y){var K=document.createElement("canvas"),q=document.createElement("video"),oe=!0;q.srcObject=E,q.muted=!0,q.height=g.height,q.width=g.width,q.volume=0,q.onplaying=function(){K.width=g.width,K.height=g.height;var te=K.getContext("2d"),ne=1e3/g.frameRate,de=setInterval(function(){if($&&(clearInterval(de),Y.close()),oe&&(oe=!1,g.onVideoProcessStarted&&g.onVideoProcessStarted()),te.drawImage(q,0,0),Y._controlledReadableStream.state!=="closed")try{Y.enqueue(te.getImageData(0,0,g.width,g.height))}catch{}},ne)},q.play()}})}var L;function B(Y,K){if(!g.workerPath&&!K){$=!1,fetch("https://unpkg.com/webm-wasm@latest/dist/webm-worker.js").then(function(oe){oe.arrayBuffer().then(function(te){B(Y,te)})});return}if(!g.workerPath&&K instanceof ArrayBuffer){var q=new Blob([K],{type:"text/javascript"});g.workerPath=u.createObjectURL(q)}g.workerPath||console.error("workerPath parameter is missing."),L=new Worker(g.workerPath),L.postMessage(g.webAssemblyPath||"https://unpkg.com/webm-wasm@latest/dist/webm-wasm.wasm"),L.addEventListener("message",function(oe){oe.data==="READY"?(L.postMessage({width:g.width,height:g.height,bitrate:g.bitrate||1200,timebaseDen:g.frameRate||30,realtime:g.realtime}),z().pipeTo(new WritableStream({write:function(te){if($){console.error("Got image, but recorder is finished!");return}L.postMessage(te.data.buffer,[te.data.buffer])}}))):oe.data&&(V||A.push(oe.data))})}this.record=function(){A=[],V=!1,this.blob=null,B(E),typeof g.initCallback=="function"&&g.initCallback()};var V;this.pause=function(){V=!0},this.resume=function(){V=!1};function M(Y){if(!L){Y&&Y();return}L.addEventListener("message",function(K){K.data===null&&(L.terminate(),L=null,Y&&Y())}),L.postMessage(null)}var A=[];this.stop=function(Y){$=!0;var K=this;M(function(){K.blob=new Blob(A,{type:"video/webm"}),Y(K.blob)})},this.name="WebAssemblyRecorder",this.toString=function(){return this.name},this.clearRecordedData=function(){A=[],V=!1,this.blob=null},this.blob=null}typeof t<"u"&&(t.WebAssemblyRecorder=_)})(p2);var NN=p2.exports;const ky=Nc(NN),DN=()=>d.jsxs(at,{sx:{display:"flex",alignItems:"center",color:"text.secondary"},children:[d.jsx(Er,{src:Pi,sx:{width:24,height:24,marginRight:1},alt:"Aria"}),d.jsxs("div",{style:{display:"flex"},children:[d.jsx("div",{style:{animation:"blink 1.4s infinite",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),d.jsx("div",{style:{animation:"blink 1.4s infinite 0.2s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),d.jsx("div",{style:{animation:"blink 1.4s infinite 0.4s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor"}})]})]}),zN=()=>{const{user:e,voiceEnabled:t,setVoiceEnabled:n}=p.useContext(vr),r=e==null?void 0:e.userId,[o,i]=p.useState(null),[a,s]=p.useState(0),[l,c]=p.useState(""),[u,f]=p.useState([]),[h,w]=p.useState(!1),[y,x]=p.useState(null),C=p.useRef([]),[v,m]=p.useState(!1),[b,R]=p.useState(""),[k,T]=p.useState(!1),[P,j]=p.useState(!1),[N,O]=p.useState(""),[F,W]=p.useState("info"),[U,G]=p.useState(null),ee=M=>{M.preventDefault(),n(!t)},J=M=>{if(!t||M===U){G(null),window.speechSynthesis.cancel();return}const A=window.speechSynthesis,Y=new SpeechSynthesisUtterance(M),K=()=>{const q=A.getVoices();console.log(q.map(te=>`${te.name} - ${te.lang} - ${te.gender}`));const oe=q.find(te=>te.name.includes("Microsoft Zira - English (United States)"));oe?Y.voice=oe:console.log("No female voice found"),Y.onend=()=>{G(null)},G(M),A.speak(Y)};A.getVoices().length===0?A.onvoiceschanged=K:K()},re=p.useCallback(async()=>{if(r){m(!0),T(!0);try{const M=await fetch(`/api/ai/mental_health/welcome/${r}`,{method:"POST",headers:{"Content-Type":"application/json"}}),A=await M.json();console.log(A),M.ok?(R(A.message),t&&A.message&&J(A.message),i(A.chat_id),console.log(A.chat_id)):(console.error("Failed to fetch welcome message:",A),R("Error fetching welcome message."))}catch(M){console.error("Network or server error:",M)}finally{m(!1),T(!1)}}},[r]);p.useEffect(()=>{re()},[]);const I=(M,A)=>{A!=="clickaway"&&j(!1)},_=p.useCallback(async()=>{if(o!==null){m(!0);try{const M=await fetch(`/api/ai/mental_health/finalize/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"}}),A=await M.json();M.ok?(O("Chat finalized successfully"),W("success"),i(null),s(0),f([]),re()):(O("Failed to finalize chat"),W("error"))}catch{O("Error finalizing chat"),W("error")}finally{m(!1),j(!0)}}},[r,o,re]),E=p.useCallback(async()=>{if(!(!l.trim()||o===void 0)){console.log(o),m(!0);try{const M=JSON.stringify({prompt:l,turn_id:a}),A=await fetch(`/api/ai/mental_health/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"},body:M}),Y=await A.json();console.log(Y),A.ok?(f(K=>[...K,{message:l,sender:"user"},{message:Y,sender:"agent"}]),t&&Y&&J(Y),s(K=>K+1),c("")):(console.error("Failed to send message:",Y.error||"Unknown error occurred"),O(Y.error||"An error occurred while sending the message."),W("error"),j(!0))}catch(M){console.error("Failed to send message:",M),O("Network or server error occurred."),W("error"),j(!0)}finally{m(!1)}}},[l,r,o,a]),g=()=>MediaRecorder.isTypeSupported?MediaRecorder.isTypeSupported("audio/webm; codecs=opus"):!1,$=()=>{navigator.mediaDevices.getUserMedia({audio:{sampleRate:44100,channelCount:1,volume:1,echoCancellation:!0}}).then(M=>{C.current=[];const A=g(),Y={type:"audio",mimeType:A?"audio/webm; codecs=opus":"audio/wav",recorderType:A?MediaRecorder:ky.StereoAudioRecorder,numberOfAudioChannels:1},K=A?new MediaRecorder(M,Y):new ky(M,Y);K.ondataavailable=q=>{console.log("Data available:",q.data.size),C.current.push(q.data)},K.start(),x(K),w(!0)}).catch(M=>{console.error("Error accessing microphone:",M),j(!0),O("Unable to access microphone: "+M.message),W("error")})},z=()=>{y&&(y.onstop=()=>{L(C.current,{type:y.mimeType}),w(!1),x(null)},y.stop())},L=M=>{console.log("Audio chunks size:",M.reduce((K,q)=>K+q.size,0));const A=new Blob(M,{type:"audio/webm"});if(A.size===0){console.error("Audio Blob is empty"),O("Recording is empty. Please try again."),W("error"),j(!0);return}console.log(`Sending audio blob of size: ${A.size} bytes`);const Y=new FormData;Y.append("audio",A),m(!0),Oe.post("/api/ai/mental_health/voice-to-text",Y,{headers:{"Content-Type":"multipart/form-data"}}).then(K=>{const{message:q}=K.data;c(q),E()}).catch(K=>{console.error("Error uploading audio:",K),j(!0),O("Error processing voice input: "+K.message),W("error")}).finally(()=>{m(!1)})},B=p.useCallback(M=>{const A=M.target.value;A.split(/\s+/).length>200?(c(K=>K.split(/\s+/).slice(0,200).join(" ")),O("Word limit reached. Only 200 words allowed."),W("warning"),j(!0)):c(A)},[]),V=M=>M===U?d.jsx(Lc,{}):d.jsx(_c,{});return d.jsxs(d.Fragment,{children:[d.jsx("style",{children:` @keyframes blink { 0%, 100% { opacity: 0; } 50% { opacity: 1; } diff --git a/client/dist/index.html b/client/dist/index.html index 9ee7b9da..b68e36be 100644 --- a/client/dist/index.html +++ b/client/dist/index.html @@ -10,7 +10,7 @@ content="Web site created using create-react-app" /> Mental Health App - + diff --git a/client/src/Components/chatComponent.jsx b/client/src/Components/chatComponent.jsx index 0bbdf056..e992a4af 100644 --- a/client/src/Components/chatComponent.jsx +++ b/client/src/Components/chatComponent.jsx @@ -216,7 +216,12 @@ const ChatComponent = () => { // Function to handle recording start const startRecording = () => { - navigator.mediaDevices.getUserMedia({ audio: true }) + navigator.mediaDevices.getUserMedia({ audio: { + sampleRate: 44100, // iOS supports 44.1 kHz sample rate + channelCount: 1, // Mono audio + volume: 1.0, + echoCancellation: true + }}) .then(stream => { audioChunksRef.current = []; // Clear the ref at the start of recording const isWebMSupported = supportsWebM(); @@ -235,6 +240,9 @@ const ChatComponent = () => { setIsRecording(true); }).catch(error => { console.error('Error accessing microphone:', error); + setOpen(true); + setSnackbarMessage('Unable to access microphone: ' + error.message); + setSnackbarSeverity('error'); }); }; @@ -255,6 +263,9 @@ const ChatComponent = () => { const audioBlob = new Blob(chunks, { 'type': 'audio/webm' }); if (audioBlob.size === 0) { console.error('Audio Blob is empty'); + setSnackbarMessage('Recording is empty. Please try again.'); + setSnackbarSeverity('error'); + setOpen(true); return; } console.log(`Sending audio blob of size: ${audioBlob.size} bytes`); From b17709187e80369b7a4d1f0d3f99c08247fc2f0e Mon Sep 17 00:00:00 2001 From: DHRUMIL PATEL <123137675+dhrumilp12@users.noreply.github.com> Date: Tue, 25 Jun 2024 18:01:46 -0400 Subject: [PATCH 30/38] . --- .../{index-Bo8BCm21.js => index-BVNu1b7r.js} | 28 ++++++++--------- client/dist/index.html | 2 +- client/src/Components/chatComponent.jsx | 31 ++++++++++++++----- 3 files changed, 38 insertions(+), 23 deletions(-) rename client/dist/assets/{index-Bo8BCm21.js => index-BVNu1b7r.js} (98%) diff --git a/client/dist/assets/index-Bo8BCm21.js b/client/dist/assets/index-BVNu1b7r.js similarity index 98% rename from client/dist/assets/index-Bo8BCm21.js rename to client/dist/assets/index-BVNu1b7r.js index ce6bda2a..88a55483 100644 --- a/client/dist/assets/index-Bo8BCm21.js +++ b/client/dist/assets/index-BVNu1b7r.js @@ -165,8 +165,8 @@ Error generating stack: `+i.message+` animation-iteration-count: infinite; animation-delay: 200ms; } -`),$n.rippleVisible,F5,Pp,({theme:e})=>e.transitions.easing.easeInOut,$n.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,$n.child,$n.childLeaving,U5,Pp,({theme:e})=>e.transitions.easing.easeInOut,$n.childPulsate,W5,({theme:e})=>e.transitions.easing.easeInOut),q5=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,s=se(r,z5),[l,c]=p.useState([]),u=p.useRef(0),f=p.useRef(null);p.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const h=p.useRef(!1),w=To(),y=p.useRef(null),x=p.useRef(null),C=p.useCallback(R=>{const{pulsate:k,rippleX:T,rippleY:P,rippleSize:j,cb:N}=R;c(O=>[...O,d.jsx(V5,{classes:{ripple:le(i.ripple,$n.ripple),rippleVisible:le(i.rippleVisible,$n.rippleVisible),ripplePulsate:le(i.ripplePulsate,$n.ripplePulsate),child:le(i.child,$n.child),childLeaving:le(i.childLeaving,$n.childLeaving),childPulsate:le(i.childPulsate,$n.childPulsate)},timeout:Pp,pulsate:k,rippleX:T,rippleY:P,rippleSize:j},u.current)]),u.current+=1,f.current=N},[i]),v=p.useCallback((R={},k={},T=()=>{})=>{const{pulsate:P=!1,center:j=o||k.pulsate,fakeElement:N=!1}=k;if((R==null?void 0:R.type)==="mousedown"&&h.current){h.current=!1;return}(R==null?void 0:R.type)==="touchstart"&&(h.current=!0);const O=N?null:x.current,F=O?O.getBoundingClientRect():{width:0,height:0,left:0,top:0};let W,U,G;if(j||R===void 0||R.clientX===0&&R.clientY===0||!R.clientX&&!R.touches)W=Math.round(F.width/2),U=Math.round(F.height/2);else{const{clientX:ee,clientY:J}=R.touches&&R.touches.length>0?R.touches[0]:R;W=Math.round(ee-F.left),U=Math.round(J-F.top)}if(j)G=Math.sqrt((2*F.width**2+F.height**2)/3),G%2===0&&(G+=1);else{const ee=Math.max(Math.abs((O?O.clientWidth:0)-W),W)*2+2,J=Math.max(Math.abs((O?O.clientHeight:0)-U),U)*2+2;G=Math.sqrt(ee**2+J**2)}R!=null&&R.touches?y.current===null&&(y.current=()=>{C({pulsate:P,rippleX:W,rippleY:U,rippleSize:G,cb:T})},w.start(B5,()=>{y.current&&(y.current(),y.current=null)})):C({pulsate:P,rippleX:W,rippleY:U,rippleSize:G,cb:T})},[o,C,w]),m=p.useCallback(()=>{v({},{pulsate:!0})},[v]),b=p.useCallback((R,k)=>{if(w.clear(),(R==null?void 0:R.type)==="touchend"&&y.current){y.current(),y.current=null,w.start(0,()=>{b(R,k)});return}y.current=null,c(T=>T.length>0?T.slice(1):T),f.current=k},[w]);return p.useImperativeHandle(n,()=>({pulsate:m,start:v,stop:b}),[m,v,b]),d.jsx(H5,S({className:le($n.root,i.root,a),ref:x},s,{children:d.jsx(fm,{component:null,exit:!0,children:l})}))});function G5(e){return be("MuiButtonBase",e)}const K5=we("MuiButtonBase",["root","disabled","focusVisible"]),Y5=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],X5=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Se({root:["root",t&&"disabled",n&&"focusVisible"]},G5,o);return n&&r&&(a.root+=` ${r}`),a},Q5=ie("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${K5.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ir=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:h=!1,LinkComponent:w="a",onBlur:y,onClick:x,onContextMenu:C,onDragLeave:v,onFocus:m,onFocusVisible:b,onKeyDown:R,onKeyUp:k,onMouseDown:T,onMouseLeave:P,onMouseUp:j,onTouchEnd:N,onTouchMove:O,onTouchStart:F,tabIndex:W=0,TouchRippleProps:U,touchRippleRef:G,type:ee}=r,J=se(r,Y5),re=p.useRef(null),I=p.useRef(null),_=lt(I,G),{isFocusVisibleRef:E,onFocus:g,onBlur:$,ref:z}=om(),[L,B]=p.useState(!1);c&&L&&B(!1),p.useImperativeHandle(o,()=>({focusVisible:()=>{B(!0),re.current.focus()}}),[]);const[V,M]=p.useState(!1);p.useEffect(()=>{M(!0)},[]);const A=V&&!u&&!c;p.useEffect(()=>{L&&h&&!u&&V&&I.current.pulsate()},[u,h,L,V]);function Y(he,Ge,Xe=f){return Yt(Ye=>(Ge&&Ge(Ye),!Xe&&I.current&&I.current[he](Ye),!0))}const K=Y("start",T),q=Y("stop",C),oe=Y("stop",v),te=Y("stop",j),ne=Y("stop",he=>{L&&he.preventDefault(),P&&P(he)}),de=Y("start",F),ke=Y("stop",N),H=Y("stop",O),ae=Y("stop",he=>{$(he),E.current===!1&&B(!1),y&&y(he)},!1),ge=Yt(he=>{re.current||(re.current=he.currentTarget),g(he),E.current===!0&&(B(!0),b&&b(he)),m&&m(he)}),D=()=>{const he=re.current;return l&&l!=="button"&&!(he.tagName==="A"&&he.href)},X=p.useRef(!1),fe=Yt(he=>{h&&!X.current&&L&&I.current&&he.key===" "&&(X.current=!0,I.current.stop(he,()=>{I.current.start(he)})),he.target===he.currentTarget&&D()&&he.key===" "&&he.preventDefault(),R&&R(he),he.target===he.currentTarget&&D()&&he.key==="Enter"&&!c&&(he.preventDefault(),x&&x(he))}),pe=Yt(he=>{h&&he.key===" "&&I.current&&L&&!he.defaultPrevented&&(X.current=!1,I.current.stop(he,()=>{I.current.pulsate(he)})),k&&k(he),x&&he.target===he.currentTarget&&D()&&he.key===" "&&!he.defaultPrevented&&x(he)});let ve=l;ve==="button"&&(J.href||J.to)&&(ve=w);const Ce={};ve==="button"?(Ce.type=ee===void 0?"button":ee,Ce.disabled=c):(!J.href&&!J.to&&(Ce.role="button"),c&&(Ce["aria-disabled"]=c));const Le=lt(n,z,re),De=S({},r,{centerRipple:i,component:l,disabled:c,disableRipple:u,disableTouchRipple:f,focusRipple:h,tabIndex:W,focusVisible:L}),Ee=X5(De);return d.jsxs(Q5,S({as:ve,className:le(Ee.root,s),ownerState:De,onBlur:ae,onClick:x,onContextMenu:q,onFocus:ge,onKeyDown:fe,onKeyUp:pe,onMouseDown:K,onMouseLeave:ne,onMouseUp:te,onDragLeave:oe,onTouchEnd:ke,onTouchMove:H,onTouchStart:de,ref:Le,tabIndex:c?-1:W,type:ee},Ce,J,{children:[a,A?d.jsx(q5,S({ref:_,center:i},U)):null]}))});function J5(e){return be("MuiAlert",e)}const A0=we("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function Z5(e){return be("MuiIconButton",e)}const eM=we("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),tM=["edge","children","className","color","disabled","disableFocusRipple","size"],nM=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${Z(r)}`,o&&`edge${Z(o)}`,`size${Z(i)}`]};return Se(a,Z5,t)},rM=ie(Ir,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Z(n.color)}`],n.edge&&t[`edge${Z(n.edge)}`],t[`size${Z(n.size)}`]]}})(({theme:e,ownerState:t})=>S({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return S({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&S({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":S({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${eM.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),ut=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium"}=r,f=se(r,tM),h=S({},r,{edge:o,color:s,disabled:l,disableFocusRipple:c,size:u}),w=nM(h);return d.jsx(rM,S({className:le(w.root,a),centerRipple:!0,focusRipple:!c,disabled:l,ref:n},f,{ownerState:h,children:i}))}),oM=Vt(d.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),iM=Vt(d.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),aM=Vt(d.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),sM=Vt(d.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),lM=Vt(d.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),cM=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],uM=Ju(),dM=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`color${Z(n||r)}`,`${t}${Z(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Se(i,J5,o)},fM=ie(En,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Z(n.color||n.severity)}`]]}})(({theme:e})=>{const t=e.palette.mode==="light"?Rc:kc,n=e.palette.mode==="light"?kc:Rc;return S({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${A0.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${A0.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.dark).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:S({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)})}))]})}),pM=ie("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),hM=ie("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),N0=ie("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),D0={success:d.jsx(oM,{fontSize:"inherit"}),warning:d.jsx(iM,{fontSize:"inherit"}),error:d.jsx(aM,{fontSize:"inherit"}),info:d.jsx(sM,{fontSize:"inherit"})},xr=p.forwardRef(function(t,n){const r=uM({props:t,name:"MuiAlert"}),{action:o,children:i,className:a,closeText:s="Close",color:l,components:c={},componentsProps:u={},icon:f,iconMapping:h=D0,onClose:w,role:y="alert",severity:x="success",slotProps:C={},slots:v={},variant:m="standard"}=r,b=se(r,cM),R=S({},r,{color:l,severity:x,variant:m,colorSeverity:l||x}),k=dM(R),T={slots:S({closeButton:c.CloseButton,closeIcon:c.CloseIcon},v),slotProps:S({},u,C)},[P,j]=kp("closeButton",{elementType:ut,externalForwardedProps:T,ownerState:R}),[N,O]=kp("closeIcon",{elementType:lM,externalForwardedProps:T,ownerState:R});return d.jsxs(fM,S({role:y,elevation:0,ownerState:R,className:le(k.root,a),ref:n},b,{children:[f!==!1?d.jsx(pM,{ownerState:R,className:k.icon,children:f||h[x]||D0[x]}):null,d.jsx(hM,{ownerState:R,className:k.message,children:i}),o!=null?d.jsx(N0,{ownerState:R,className:k.action,children:o}):null,o==null&&w?d.jsx(N0,{ownerState:R,className:k.action,children:d.jsx(P,S({size:"small","aria-label":s,title:s,color:"inherit",onClick:w},j,{children:d.jsx(N,S({fontSize:"small"},O))}))}):null]}))});function mM(e){return be("MuiTypography",e)}we("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const gM=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],vM=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,e.align!=="inherit"&&`align${Z(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Se(s,mM,a)},yM=ie("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Z(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>S({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),z0={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},xM={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},bM=e=>xM[e]||e,Ie=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTypography"}),o=bM(r.color),i=$u(S({},r,{color:o})),{align:a="inherit",className:s,component:l,gutterBottom:c=!1,noWrap:u=!1,paragraph:f=!1,variant:h="body1",variantMapping:w=z0}=i,y=se(i,gM),x=S({},i,{align:a,color:o,className:s,component:l,gutterBottom:c,noWrap:u,paragraph:f,variant:h,variantMapping:w}),C=l||(f?"p":w[h]||z0[h])||"span",v=vM(x);return d.jsx(yM,S({as:C,ref:n,ownerState:x,className:le(v.root,s)},y))});function wM(e){return be("MuiAppBar",e)}we("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const SM=["className","color","enableColorOnDark","position"],CM=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${Z(t)}`,`position${Z(n)}`]};return Se(o,wM,r)},pl=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,RM=ie(En,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Z(n.position)}`],t[`color${Z(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return S({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&S({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&S({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&S({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:pl(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:pl(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:pl(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:pl(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),kM=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:a=!1,position:s="fixed"}=r,l=se(r,SM),c=S({},r,{color:i,position:s,enableColorOnDark:a}),u=CM(c);return d.jsx(RM,S({square:!0,component:"header",ownerState:c,elevation:4,className:le(u.root,o,s==="fixed"&&"mui-fixed"),ref:n},l))});function PM(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=mw({badgeContent:t,max:r});let a=n;n===!1&&t===0&&!o&&(a=!0);const{badgeContent:s,max:l=r}=a?i:e,c=s&&Number(s)>l?`${l}+`:s;return{badgeContent:s,invisible:a,max:l,displayValue:c}}const Iw="base";function EM(e){return`${Iw}--${e}`}function TM(e,t){return`${Iw}-${e}-${t}`}function _w(e,t){const n=sw[t];return n?EM(n):TM(e,t)}function $M(e,t){const n={};return t.forEach(r=>{n[r]=_w(e,r)}),n}function B0(e){return e.substring(2).toLowerCase()}function MM(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=lt(t.ref,s),f=Yt(y=>{const x=c.current;c.current=!1;const C=St(s.current);if(!l.current||!s.current||"clientX"in y&&MM(y,C))return;if(a.current){a.current=!1;return}let v;y.composedPath?v=y.composedPath().indexOf(s.current)>-1:v=!C.documentElement.contains(y.target)||s.current.contains(y.target),!v&&(n||!x)&&o(y)}),h=y=>x=>{c.current=!0;const C=t.props[y];C&&C(x)},w={ref:u};return i!==!1&&(w[i]=h(i)),p.useEffect(()=>{if(i!==!1){const y=B0(i),x=St(s.current),C=()=>{a.current=!0};return x.addEventListener(y,f),x.addEventListener("touchmove",C),()=>{x.removeEventListener(y,f),x.removeEventListener("touchmove",C)}}},[f,i]),r!==!1&&(w[r]=h(r)),p.useEffect(()=>{if(r!==!1){const y=B0(r),x=St(s.current);return x.addEventListener(y,f),()=>{x.removeEventListener(y,f)}}},[f,r]),d.jsx(p.Fragment,{children:p.cloneElement(t,w)})}const OM=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function IM(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function _M(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function LM(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||_M(e))}function AM(e){const t=[],n=[];return Array.from(e.querySelectorAll(OM)).forEach((r,o)=>{const i=IM(r);i===-1||!LM(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function NM(){return!0}function DM(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=AM,isEnabled:a=NM,open:s}=e,l=p.useRef(!1),c=p.useRef(null),u=p.useRef(null),f=p.useRef(null),h=p.useRef(null),w=p.useRef(!1),y=p.useRef(null),x=lt(t.ref,y),C=p.useRef(null);p.useEffect(()=>{!s||!y.current||(w.current=!n)},[n,s]),p.useEffect(()=>{if(!s||!y.current)return;const b=St(y.current);return y.current.contains(b.activeElement)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex","-1"),w.current&&y.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),p.useEffect(()=>{if(!s||!y.current)return;const b=St(y.current),R=P=>{C.current=P,!(r||!a()||P.key!=="Tab")&&b.activeElement===y.current&&P.shiftKey&&(l.current=!0,u.current&&u.current.focus())},k=()=>{const P=y.current;if(P===null)return;if(!b.hasFocus()||!a()||l.current){l.current=!1;return}if(P.contains(b.activeElement)||r&&b.activeElement!==c.current&&b.activeElement!==u.current)return;if(b.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!w.current)return;let j=[];if((b.activeElement===c.current||b.activeElement===u.current)&&(j=i(y.current)),j.length>0){var N,O;const F=!!((N=C.current)!=null&&N.shiftKey&&((O=C.current)==null?void 0:O.key)==="Tab"),W=j[0],U=j[j.length-1];typeof W!="string"&&typeof U!="string"&&(F?U.focus():W.focus())}else P.focus()};b.addEventListener("focusin",k),b.addEventListener("keydown",R,!0);const T=setInterval(()=>{b.activeElement&&b.activeElement.tagName==="BODY"&&k()},50);return()=>{clearInterval(T),b.removeEventListener("focusin",k),b.removeEventListener("keydown",R,!0)}},[n,r,o,a,s,i]);const v=b=>{f.current===null&&(f.current=b.relatedTarget),w.current=!0,h.current=b.target;const R=t.props.onFocus;R&&R(b)},m=b=>{f.current===null&&(f.current=b.relatedTarget),w.current=!0};return d.jsxs(p.Fragment,{children:[d.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:c,"data-testid":"sentinelStart"}),p.cloneElement(t,{ref:x,onFocus:v}),d.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:u,"data-testid":"sentinelEnd"})]})}function zM(e){return typeof e=="function"?e():e}const Lw=p.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[a,s]=p.useState(null),l=lt(p.isValidElement(r)?r.ref:null,n);if(Sn(()=>{i||s(zM(o)||document.body)},[o,i]),Sn(()=>{if(a&&!i)return Cc(n,a),()=>{Cc(n,null)}},[n,a,i]),i){if(p.isValidElement(r)){const c={ref:l};return p.cloneElement(r,c)}return d.jsx(p.Fragment,{children:r})}return d.jsx(p.Fragment,{children:a&&Oh.createPortal(r,a)})});function BM(e){const t=St(e);return t.body===e?Bn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Ua(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function F0(e){return parseInt(Bn(e).getComputedStyle(e).paddingRight,10)||0}function FM(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function U0(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const s=i.indexOf(a)===-1,l=!FM(a);s&&l&&Ua(a,o)})}function Qd(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function UM(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(BM(r)){const a=pw(St(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${F0(r)+a}px`;const s=St(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${F0(l)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=St(r).body;else{const a=r.parentElement,s=Bn(r);i=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:s})=>{i?a.style.setProperty(s,i):a.style.removeProperty(s)})}}function WM(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class HM{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Ua(t.modalRef,!1);const o=WM(n);U0(n,t.mount,t.modalRef,o,!0);const i=Qd(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Qd(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=UM(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Qd(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Ua(t.modalRef,n),U0(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&Ua(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function VM(e){return typeof e=="function"?e():e}function qM(e){return e?e.props.hasOwnProperty("in"):!1}const GM=new HM;function KM(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=GM,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:f}=e,h=p.useRef({}),w=p.useRef(null),y=p.useRef(null),x=lt(y,f),[C,v]=p.useState(!u),m=qM(l);let b=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(b=!1);const R=()=>St(w.current),k=()=>(h.current.modalRef=y.current,h.current.mount=w.current,h.current),T=()=>{o.mount(k(),{disableScrollLock:r}),y.current&&(y.current.scrollTop=0)},P=Yt(()=>{const J=VM(t)||R().body;o.add(k(),J),y.current&&T()}),j=p.useCallback(()=>o.isTopModal(k()),[o]),N=Yt(J=>{w.current=J,J&&(u&&j()?T():y.current&&Ua(y.current,b))}),O=p.useCallback(()=>{o.remove(k(),b)},[b,o]);p.useEffect(()=>()=>{O()},[O]),p.useEffect(()=>{u?P():(!m||!i)&&O()},[u,O,m,i,P]);const F=J=>re=>{var I;(I=J.onKeyDown)==null||I.call(J,re),!(re.key!=="Escape"||re.which===229||!j())&&(n||(re.stopPropagation(),c&&c(re,"escapeKeyDown")))},W=J=>re=>{var I;(I=J.onClick)==null||I.call(J,re),re.target===re.currentTarget&&c&&c(re,"backdropClick")};return{getRootProps:(J={})=>{const re=Tc(e);delete re.onTransitionEnter,delete re.onTransitionExited;const I=S({},re,J);return S({role:"presentation"},I,{onKeyDown:F(I),ref:x})},getBackdropProps:(J={})=>{const re=J;return S({"aria-hidden":!0},re,{onClick:W(re),open:u})},getTransitionProps:()=>{const J=()=>{v(!1),a&&a()},re=()=>{v(!0),s&&s(),i&&O()};return{onEnter:xp(J,l==null?void 0:l.props.onEnter),onExited:xp(re,l==null?void 0:l.props.onExited)}},rootRef:x,portalRef:N,isTopModal:j,exited:C,hasTransition:m}}var cn="top",Un="bottom",Wn="right",un="left",hm="auto",zs=[cn,Un,Wn,un],Di="start",vs="end",YM="clippingParents",Aw="viewport",ya="popper",XM="reference",W0=zs.reduce(function(e,t){return e.concat([t+"-"+Di,t+"-"+vs])},[]),Nw=[].concat(zs,[hm]).reduce(function(e,t){return e.concat([t,t+"-"+Di,t+"-"+vs])},[]),QM="beforeRead",JM="read",ZM="afterRead",ej="beforeMain",tj="main",nj="afterMain",rj="beforeWrite",oj="write",ij="afterWrite",aj=[QM,JM,ZM,ej,tj,nj,rj,oj,ij];function yr(e){return e?(e.nodeName||"").toLowerCase():null}function Cn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Wo(e){var t=Cn(e).Element;return e instanceof t||e instanceof Element}function Nn(e){var t=Cn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function mm(e){if(typeof ShadowRoot>"u")return!1;var t=Cn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function sj(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Nn(i)||!yr(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function lj(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,c){return l[c]="",l},{});!Nn(o)||!yr(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const cj={name:"applyStyles",enabled:!0,phase:"write",fn:sj,effect:lj,requires:["computeStyles"]};function mr(e){return e.split("-")[0]}var Io=Math.max,$c=Math.min,zi=Math.round;function Ep(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Dw(){return!/^((?!chrome|android).)*safari/i.test(Ep())}function Bi(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Nn(e)&&(o=e.offsetWidth>0&&zi(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&zi(r.height)/e.offsetHeight||1);var a=Wo(e)?Cn(e):window,s=a.visualViewport,l=!Dw()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/o,u=(r.top+(l&&s?s.offsetTop:0))/i,f=r.width/o,h=r.height/i;return{width:f,height:h,top:u,right:c+f,bottom:u+h,left:c,x:c,y:u}}function gm(e){var t=Bi(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function zw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&mm(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function _r(e){return Cn(e).getComputedStyle(e)}function uj(e){return["table","td","th"].indexOf(yr(e))>=0}function go(e){return((Wo(e)?e.ownerDocument:e.document)||window.document).documentElement}function ed(e){return yr(e)==="html"?e:e.assignedSlot||e.parentNode||(mm(e)?e.host:null)||go(e)}function H0(e){return!Nn(e)||_r(e).position==="fixed"?null:e.offsetParent}function dj(e){var t=/firefox/i.test(Ep()),n=/Trident/i.test(Ep());if(n&&Nn(e)){var r=_r(e);if(r.position==="fixed")return null}var o=ed(e);for(mm(o)&&(o=o.host);Nn(o)&&["html","body"].indexOf(yr(o))<0;){var i=_r(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Bs(e){for(var t=Cn(e),n=H0(e);n&&uj(n)&&_r(n).position==="static";)n=H0(n);return n&&(yr(n)==="html"||yr(n)==="body"&&_r(n).position==="static")?t:n||dj(e)||t}function vm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Wa(e,t,n){return Io(e,$c(t,n))}function fj(e,t,n){var r=Wa(e,t,n);return r>n?n:r}function Bw(){return{top:0,right:0,bottom:0,left:0}}function Fw(e){return Object.assign({},Bw(),e)}function Uw(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var pj=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Fw(typeof t!="number"?t:Uw(t,zs))};function hj(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=mr(n.placement),l=vm(s),c=[un,Wn].indexOf(s)>=0,u=c?"height":"width";if(!(!i||!a)){var f=pj(o.padding,n),h=gm(i),w=l==="y"?cn:un,y=l==="y"?Un:Wn,x=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],C=a[l]-n.rects.reference[l],v=Bs(i),m=v?l==="y"?v.clientHeight||0:v.clientWidth||0:0,b=x/2-C/2,R=f[w],k=m-h[u]-f[y],T=m/2-h[u]/2+b,P=Wa(R,T,k),j=l;n.modifiersData[r]=(t={},t[j]=P,t.centerOffset=P-T,t)}}function mj(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||zw(t.elements.popper,o)&&(t.elements.arrow=o))}const gj={name:"arrow",enabled:!0,phase:"main",fn:hj,effect:mj,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Fi(e){return e.split("-")[1]}var vj={top:"auto",right:"auto",bottom:"auto",left:"auto"};function yj(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:zi(n*o)/o||0,y:zi(r*o)/o||0}}function V0(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,h=a.x,w=h===void 0?0:h,y=a.y,x=y===void 0?0:y,C=typeof u=="function"?u({x:w,y:x}):{x:w,y:x};w=C.x,x=C.y;var v=a.hasOwnProperty("x"),m=a.hasOwnProperty("y"),b=un,R=cn,k=window;if(c){var T=Bs(n),P="clientHeight",j="clientWidth";if(T===Cn(n)&&(T=go(n),_r(T).position!=="static"&&s==="absolute"&&(P="scrollHeight",j="scrollWidth")),T=T,o===cn||(o===un||o===Wn)&&i===vs){R=Un;var N=f&&T===k&&k.visualViewport?k.visualViewport.height:T[P];x-=N-r.height,x*=l?1:-1}if(o===un||(o===cn||o===Un)&&i===vs){b=Wn;var O=f&&T===k&&k.visualViewport?k.visualViewport.width:T[j];w-=O-r.width,w*=l?1:-1}}var F=Object.assign({position:s},c&&vj),W=u===!0?yj({x:w,y:x},Cn(n)):{x:w,y:x};if(w=W.x,x=W.y,l){var U;return Object.assign({},F,(U={},U[R]=m?"0":"",U[b]=v?"0":"",U.transform=(k.devicePixelRatio||1)<=1?"translate("+w+"px, "+x+"px)":"translate3d("+w+"px, "+x+"px, 0)",U))}return Object.assign({},F,(t={},t[R]=m?x+"px":"",t[b]=v?w+"px":"",t.transform="",t))}function xj(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:mr(t.placement),variation:Fi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,V0(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,V0(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const bj={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:xj,data:{}};var hl={passive:!0};function wj(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,l=Cn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,hl)}),s&&l.addEventListener("resize",n.update,hl),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,hl)}),s&&l.removeEventListener("resize",n.update,hl)}}const Sj={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:wj,data:{}};var Cj={left:"right",right:"left",bottom:"top",top:"bottom"};function Wl(e){return e.replace(/left|right|bottom|top/g,function(t){return Cj[t]})}var Rj={start:"end",end:"start"};function q0(e){return e.replace(/start|end/g,function(t){return Rj[t]})}function ym(e){var t=Cn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function xm(e){return Bi(go(e)).left+ym(e).scrollLeft}function kj(e,t){var n=Cn(e),r=go(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=Dw();(c||!c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+xm(e),y:l}}function Pj(e){var t,n=go(e),r=ym(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Io(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Io(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+xm(e),l=-r.scrollTop;return _r(o||n).direction==="rtl"&&(s+=Io(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function bm(e){var t=_r(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Ww(e){return["html","body","#document"].indexOf(yr(e))>=0?e.ownerDocument.body:Nn(e)&&bm(e)?e:Ww(ed(e))}function Ha(e,t){var n;t===void 0&&(t=[]);var r=Ww(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Cn(r),a=o?[i].concat(i.visualViewport||[],bm(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Ha(ed(a)))}function Tp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ej(e,t){var n=Bi(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function G0(e,t,n){return t===Aw?Tp(kj(e,n)):Wo(t)?Ej(t,n):Tp(Pj(go(e)))}function Tj(e){var t=Ha(ed(e)),n=["absolute","fixed"].indexOf(_r(e).position)>=0,r=n&&Nn(e)?Bs(e):e;return Wo(r)?t.filter(function(o){return Wo(o)&&zw(o,r)&&yr(o)!=="body"}):[]}function $j(e,t,n,r){var o=t==="clippingParents"?Tj(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(l,c){var u=G0(e,c,r);return l.top=Io(u.top,l.top),l.right=$c(u.right,l.right),l.bottom=$c(u.bottom,l.bottom),l.left=Io(u.left,l.left),l},G0(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Hw(e){var t=e.reference,n=e.element,r=e.placement,o=r?mr(r):null,i=r?Fi(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case cn:l={x:a,y:t.y-n.height};break;case Un:l={x:a,y:t.y+t.height};break;case Wn:l={x:t.x+t.width,y:s};break;case un:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=o?vm(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case Di:l[c]=l[c]-(t[u]/2-n[u]/2);break;case vs:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function ys(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,s=n.boundary,l=s===void 0?YM:s,c=n.rootBoundary,u=c===void 0?Aw:c,f=n.elementContext,h=f===void 0?ya:f,w=n.altBoundary,y=w===void 0?!1:w,x=n.padding,C=x===void 0?0:x,v=Fw(typeof C!="number"?C:Uw(C,zs)),m=h===ya?XM:ya,b=e.rects.popper,R=e.elements[y?m:h],k=$j(Wo(R)?R:R.contextElement||go(e.elements.popper),l,u,a),T=Bi(e.elements.reference),P=Hw({reference:T,element:b,strategy:"absolute",placement:o}),j=Tp(Object.assign({},b,P)),N=h===ya?j:T,O={top:k.top-N.top+v.top,bottom:N.bottom-k.bottom+v.bottom,left:k.left-N.left+v.left,right:N.right-k.right+v.right},F=e.modifiersData.offset;if(h===ya&&F){var W=F[o];Object.keys(O).forEach(function(U){var G=[Wn,Un].indexOf(U)>=0?1:-1,ee=[cn,Un].indexOf(U)>=0?"y":"x";O[U]+=W[ee]*G})}return O}function Mj(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Nw:l,u=Fi(r),f=u?s?W0:W0.filter(function(y){return Fi(y)===u}):zs,h=f.filter(function(y){return c.indexOf(y)>=0});h.length===0&&(h=f);var w=h.reduce(function(y,x){return y[x]=ys(e,{placement:x,boundary:o,rootBoundary:i,padding:a})[mr(x)],y},{});return Object.keys(w).sort(function(y,x){return w[y]-w[x]})}function jj(e){if(mr(e)===hm)return[];var t=Wl(e);return[q0(e),t,q0(t)]}function Oj(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,h=n.altBoundary,w=n.flipVariations,y=w===void 0?!0:w,x=n.allowedAutoPlacements,C=t.options.placement,v=mr(C),m=v===C,b=l||(m||!y?[Wl(C)]:jj(C)),R=[C].concat(b).reduce(function(L,B){return L.concat(mr(B)===hm?Mj(t,{placement:B,boundary:u,rootBoundary:f,padding:c,flipVariations:y,allowedAutoPlacements:x}):B)},[]),k=t.rects.reference,T=t.rects.popper,P=new Map,j=!0,N=R[0],O=0;O=0,ee=G?"width":"height",J=ys(t,{placement:F,boundary:u,rootBoundary:f,altBoundary:h,padding:c}),re=G?U?Wn:un:U?Un:cn;k[ee]>T[ee]&&(re=Wl(re));var I=Wl(re),_=[];if(i&&_.push(J[W]<=0),s&&_.push(J[re]<=0,J[I]<=0),_.every(function(L){return L})){N=F,j=!1;break}P.set(F,_)}if(j)for(var E=y?3:1,g=function(B){var V=R.find(function(M){var A=P.get(M);if(A)return A.slice(0,B).every(function(Y){return Y})});if(V)return N=V,"break"},$=E;$>0;$--){var z=g($);if(z==="break")break}t.placement!==N&&(t.modifiersData[r]._skip=!0,t.placement=N,t.reset=!0)}}const Ij={name:"flip",enabled:!0,phase:"main",fn:Oj,requiresIfExists:["offset"],data:{_skip:!1}};function K0(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Y0(e){return[cn,Wn,Un,un].some(function(t){return e[t]>=0})}function _j(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ys(t,{elementContext:"reference"}),s=ys(t,{altBoundary:!0}),l=K0(a,r),c=K0(s,o,i),u=Y0(l),f=Y0(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const Lj={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:_j};function Aj(e,t,n){var r=mr(e),o=[un,cn].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[un,Wn].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function Nj(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=Nw.reduce(function(u,f){return u[f]=Aj(f,t.rects,i),u},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}const Dj={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Nj};function zj(e){var t=e.state,n=e.name;t.modifiersData[n]=Hw({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Bj={name:"popperOffsets",enabled:!0,phase:"read",fn:zj,data:{}};function Fj(e){return e==="x"?"y":"x"}function Uj(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,h=n.tether,w=h===void 0?!0:h,y=n.tetherOffset,x=y===void 0?0:y,C=ys(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),v=mr(t.placement),m=Fi(t.placement),b=!m,R=vm(v),k=Fj(R),T=t.modifiersData.popperOffsets,P=t.rects.reference,j=t.rects.popper,N=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,O=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,W={x:0,y:0};if(T){if(i){var U,G=R==="y"?cn:un,ee=R==="y"?Un:Wn,J=R==="y"?"height":"width",re=T[R],I=re+C[G],_=re-C[ee],E=w?-j[J]/2:0,g=m===Di?P[J]:j[J],$=m===Di?-j[J]:-P[J],z=t.elements.arrow,L=w&&z?gm(z):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Bw(),V=B[G],M=B[ee],A=Wa(0,P[J],L[J]),Y=b?P[J]/2-E-A-V-O.mainAxis:g-A-V-O.mainAxis,K=b?-P[J]/2+E+A+M+O.mainAxis:$+A+M+O.mainAxis,q=t.elements.arrow&&Bs(t.elements.arrow),oe=q?R==="y"?q.clientTop||0:q.clientLeft||0:0,te=(U=F==null?void 0:F[R])!=null?U:0,ne=re+Y-te-oe,de=re+K-te,ke=Wa(w?$c(I,ne):I,re,w?Io(_,de):_);T[R]=ke,W[R]=ke-re}if(s){var H,ae=R==="x"?cn:un,ge=R==="x"?Un:Wn,D=T[k],X=k==="y"?"height":"width",fe=D+C[ae],pe=D-C[ge],ve=[cn,un].indexOf(v)!==-1,Ce=(H=F==null?void 0:F[k])!=null?H:0,Le=ve?fe:D-P[X]-j[X]-Ce+O.altAxis,De=ve?D+P[X]+j[X]-Ce-O.altAxis:pe,Ee=w&&ve?fj(Le,D,De):Wa(w?Le:fe,D,w?De:pe);T[k]=Ee,W[k]=Ee-D}t.modifiersData[r]=W}}const Wj={name:"preventOverflow",enabled:!0,phase:"main",fn:Uj,requiresIfExists:["offset"]};function Hj(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Vj(e){return e===Cn(e)||!Nn(e)?ym(e):Hj(e)}function qj(e){var t=e.getBoundingClientRect(),n=zi(t.width)/e.offsetWidth||1,r=zi(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Gj(e,t,n){n===void 0&&(n=!1);var r=Nn(t),o=Nn(t)&&qj(t),i=go(t),a=Bi(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((yr(t)!=="body"||bm(i))&&(s=Vj(t)),Nn(t)?(l=Bi(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=xm(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Kj(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function Yj(e){var t=Kj(e);return aj.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Xj(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Qj(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var X0={placement:"bottom",modifiers:[],strategy:"absolute"};function Q0(){for(var e=arguments.length,t=new Array(e),n=0;nSe({root:["root"]},I5(tO)),sO={},lO=p.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:a,disablePortal:s,modifiers:l,open:c,placement:u,popperOptions:f,popperRef:h,slotProps:w={},slots:y={},TransitionProps:x}=t,C=se(t,nO),v=p.useRef(null),m=lt(v,n),b=p.useRef(null),R=lt(b,h),k=p.useRef(R);Sn(()=>{k.current=R},[R]),p.useImperativeHandle(h,()=>b.current,[]);const T=oO(u,a),[P,j]=p.useState(T),[N,O]=p.useState($p(o));p.useEffect(()=>{b.current&&b.current.forceUpdate()}),p.useEffect(()=>{o&&O($p(o))},[o]),Sn(()=>{if(!N||!c)return;const ee=I=>{j(I.placement)};let J=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:I})=>{ee(I)}}];l!=null&&(J=J.concat(l)),f&&f.modifiers!=null&&(J=J.concat(f.modifiers));const re=eO(N,v.current,S({placement:T},f,{modifiers:J}));return k.current(re),()=>{re.destroy(),k.current(null)}},[N,s,l,c,f,T]);const F={placement:P};x!==null&&(F.TransitionProps=x);const W=aO(),U=(r=y.root)!=null?r:"div",G=fn({elementType:U,externalSlotProps:w.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:m},ownerState:t,className:W.root});return d.jsx(U,S({},G,{children:typeof i=="function"?i(F):i}))}),cO=p.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:f="bottom",popperOptions:h=sO,popperRef:w,style:y,transition:x=!1,slotProps:C={},slots:v={}}=t,m=se(t,rO),[b,R]=p.useState(!0),k=()=>{R(!1)},T=()=>{R(!0)};if(!l&&!u&&(!x||b))return null;let P;if(i)P=i;else if(r){const O=$p(r);P=O&&iO(O)?St(O).body:St(null).body}const j=!u&&l&&(!x||b)?"none":void 0,N=x?{in:u,onEnter:k,onExited:T}:void 0;return d.jsx(Lw,{disablePortal:s,container:P,children:d.jsx(lO,S({anchorEl:r,direction:a,disablePortal:s,modifiers:c,ref:n,open:x?!b:u,placement:f,popperOptions:h,popperRef:w,slotProps:C,slots:v},m,{style:S({position:"fixed",top:0,left:0,display:j},y),TransitionProps:N,children:o}))})});function uO(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:i}=e,a=To();p.useEffect(()=>{if(!o)return;function v(m){m.defaultPrevented||(m.key==="Escape"||m.key==="Esc")&&(r==null||r(m,"escapeKeyDown"))}return document.addEventListener("keydown",v),()=>{document.removeEventListener("keydown",v)}},[o,r]);const s=Yt((v,m)=>{r==null||r(v,m)}),l=Yt(v=>{!r||v==null||a.start(v,()=>{s(null,"timeout")})});p.useEffect(()=>(o&&l(t),a.clear),[o,t,l,a]);const c=v=>{r==null||r(v,"clickaway")},u=a.clear,f=p.useCallback(()=>{t!=null&&l(i??t*.5)},[t,i,l]),h=v=>m=>{const b=v.onBlur;b==null||b(m),f()},w=v=>m=>{const b=v.onFocus;b==null||b(m),u()},y=v=>m=>{const b=v.onMouseEnter;b==null||b(m),u()},x=v=>m=>{const b=v.onMouseLeave;b==null||b(m),f()};return p.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",f),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",u)}},[n,o,f,u]),{getRootProps:(v={})=>{const m=S({},Tc(e),Tc(v));return S({role:"presentation"},v,m,{onBlur:h(m),onFocus:w(m),onMouseEnter:y(m),onMouseLeave:x(m)})},onClickAway:c}}const dO=["onChange","maxRows","minRows","style","value"];function ml(e){return parseInt(e,10)||0}const fO={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function pO(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const hO=p.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:s}=t,l=se(t,dO),{current:c}=p.useRef(s!=null),u=p.useRef(null),f=lt(n,u),h=p.useRef(null),w=p.useCallback(()=>{const C=u.current,m=Bn(C).getComputedStyle(C);if(m.width==="0px")return{outerHeightStyle:0,overflowing:!1};const b=h.current;b.style.width=m.width,b.value=C.value||t.placeholder||"x",b.value.slice(-1)===` -`&&(b.value+=" ");const R=m.boxSizing,k=ml(m.paddingBottom)+ml(m.paddingTop),T=ml(m.borderBottomWidth)+ml(m.borderTopWidth),P=b.scrollHeight;b.value="x";const j=b.scrollHeight;let N=P;i&&(N=Math.max(Number(i)*j,N)),o&&(N=Math.min(Number(o)*j,N)),N=Math.max(N,j);const O=N+(R==="border-box"?k+T:0),F=Math.abs(N-P)<=1;return{outerHeightStyle:O,overflowing:F}},[o,i,t.placeholder]),y=p.useCallback(()=>{const C=w();if(pO(C))return;const v=u.current;v.style.height=`${C.outerHeightStyle}px`,v.style.overflow=C.overflowing?"hidden":""},[w]);Sn(()=>{const C=()=>{y()};let v;const m=ea(C),b=u.current,R=Bn(b);R.addEventListener("resize",m);let k;return typeof ResizeObserver<"u"&&(k=new ResizeObserver(C),k.observe(b)),()=>{m.clear(),cancelAnimationFrame(v),R.removeEventListener("resize",m),k&&k.disconnect()}},[w,y]),Sn(()=>{y()});const x=C=>{c||y(),r&&r(C)};return d.jsxs(p.Fragment,{children:[d.jsx("textarea",S({value:s,onChange:x,ref:f,rows:i,style:a},l)),d.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:S({},fO.shadow,a,{paddingTop:0,paddingBottom:0})})]})});var wm={};Object.defineProperty(wm,"__esModule",{value:!0});var qw=wm.default=void 0,mO=vO(p),gO=Pw;function Gw(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Gw=function(r){return r?n:t})(e)}function vO(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Gw(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function yO(e){return Object.keys(e).length===0}function xO(e=null){const t=mO.useContext(gO.ThemeContext);return!t||yO(t)?e:t}qw=wm.default=xO;const bO=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],wO=ie(cO,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Kw=p.forwardRef(function(t,n){var r;const o=qw(),i=Re({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:l,componentsProps:c,container:u,disablePortal:f,keepMounted:h,modifiers:w,open:y,placement:x,popperOptions:C,popperRef:v,transition:m,slots:b,slotProps:R}=i,k=se(i,bO),T=(r=b==null?void 0:b.root)!=null?r:l==null?void 0:l.Root,P=S({anchorEl:a,container:u,disablePortal:f,keepMounted:h,modifiers:w,open:y,placement:x,popperOptions:C,popperRef:v,transition:m},k);return d.jsx(wO,S({as:s,direction:o==null?void 0:o.direction,slots:{root:T},slotProps:R??c},P,{ref:n}))}),SO=Vt(d.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function CO(e){return be("MuiChip",e)}const Be=we("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),RO=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],kO=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:a,clickable:s,variant:l}=e,c={root:["root",l,n&&"disabled",`size${Z(r)}`,`color${Z(o)}`,s&&"clickable",s&&`clickableColor${Z(o)}`,a&&"deletable",a&&`deletableColor${Z(o)}`,`${l}${Z(o)}`],label:["label",`label${Z(r)}`],avatar:["avatar",`avatar${Z(r)}`,`avatarColor${Z(o)}`],icon:["icon",`icon${Z(r)}`,`iconColor${Z(i)}`],deleteIcon:["deleteIcon",`deleteIcon${Z(r)}`,`deleteIconColor${Z(o)}`,`deleteIcon${Z(l)}Color${Z(o)}`]};return Se(c,CO,t)},PO=ie("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:a,size:s,variant:l}=n;return[{[`& .${Be.avatar}`]:t.avatar},{[`& .${Be.avatar}`]:t[`avatar${Z(s)}`]},{[`& .${Be.avatar}`]:t[`avatarColor${Z(r)}`]},{[`& .${Be.icon}`]:t.icon},{[`& .${Be.icon}`]:t[`icon${Z(s)}`]},{[`& .${Be.icon}`]:t[`iconColor${Z(o)}`]},{[`& .${Be.deleteIcon}`]:t.deleteIcon},{[`& .${Be.deleteIcon}`]:t[`deleteIcon${Z(s)}`]},{[`& .${Be.deleteIcon}`]:t[`deleteIconColor${Z(r)}`]},{[`& .${Be.deleteIcon}`]:t[`deleteIcon${Z(l)}Color${Z(r)}`]},t.root,t[`size${Z(s)}`],t[`color${Z(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${Z(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${Z(r)}`],t[l],t[`${l}${Z(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return S({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Be.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Be.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${Be.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Be.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Be.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Be.icon}`]:S({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&S({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${Be.deleteIcon}`]:S({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Fe(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Fe(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Fe(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Be.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fe(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Be.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>S({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fe(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Be.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fe(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${Be.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>S({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Be.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Be.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Be.avatar}`]:{marginLeft:4},[`& .${Be.avatarSmall}`]:{marginLeft:2},[`& .${Be.icon}`]:{marginLeft:4},[`& .${Be.iconSmall}`]:{marginLeft:2},[`& .${Be.deleteIcon}`]:{marginRight:5},[`& .${Be.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Fe(e.palette[t.color].main,.7)}`,[`&.${Be.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Be.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Fe(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Be.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Fe(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),EO=ie("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Z(r)}`]]}})(({ownerState:e})=>S({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function J0(e){return e.key==="Backspace"||e.key==="Delete"}const TO=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:a,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:f,label:h,onClick:w,onDelete:y,onKeyDown:x,onKeyUp:C,size:v="medium",variant:m="filled",tabIndex:b,skipFocusWhenDisabled:R=!1}=r,k=se(r,RO),T=p.useRef(null),P=lt(T,n),j=_=>{_.stopPropagation(),y&&y(_)},N=_=>{_.currentTarget===_.target&&J0(_)&&_.preventDefault(),x&&x(_)},O=_=>{_.currentTarget===_.target&&(y&&J0(_)?y(_):_.key==="Escape"&&T.current&&T.current.blur()),C&&C(_)},F=a!==!1&&w?!0:a,W=F||y?Ir:l||"div",U=S({},r,{component:W,disabled:u,size:v,color:s,iconColor:p.isValidElement(f)&&f.props.color||s,onDelete:!!y,clickable:F,variant:m}),G=kO(U),ee=W===Ir?S({component:l||"div",focusVisibleClassName:G.focusVisible},y&&{disableRipple:!0}):{};let J=null;y&&(J=c&&p.isValidElement(c)?p.cloneElement(c,{className:le(c.props.className,G.deleteIcon),onClick:j}):d.jsx(SO,{className:le(G.deleteIcon),onClick:j}));let re=null;o&&p.isValidElement(o)&&(re=p.cloneElement(o,{className:le(G.avatar,o.props.className)}));let I=null;return f&&p.isValidElement(f)&&(I=p.cloneElement(f,{className:le(G.icon,f.props.className)})),d.jsxs(PO,S({as:W,className:le(G.root,i),disabled:F&&u?!0:void 0,onClick:w,onKeyDown:N,onKeyUp:O,ref:P,tabIndex:R&&u?-1:b,ownerState:U},ee,k,{children:[re||I,d.jsx(EO,{className:le(G.label),ownerState:U,children:h}),J]}))});function vo({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const td=p.createContext(void 0);function br(){return p.useContext(td)}function Yw(e){return d.jsx(n$,S({},e,{defaultTheme:Fu,themeId:Fo}))}function Z0(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Mc(e,t=!1){return e&&(Z0(e.value)&&e.value!==""||t&&Z0(e.defaultValue)&&e.defaultValue!=="")}function $O(e){return e.startAdornment}function MO(e){return be("MuiInputBase",e)}const Ui=we("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),jO=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],nd=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Z(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},rd=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},OO=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:f,size:h,startAdornment:w,type:y}=e,x={root:["root",`color${Z(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",h&&h!=="medium"&&`size${Z(h)}`,u&&"multiline",w&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",y==="search"&&"inputTypeSearch",u&&"inputMultiline",h==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",w&&"inputAdornedStart",i&&"inputAdornedEnd",f&&"readOnly"]};return Se(x,MO,t)},od=ie("div",{name:"MuiInputBase",slot:"Root",overridesResolver:nd})(({theme:e,ownerState:t})=>S({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Ui.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&S({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),id=ie("input",{name:"MuiInputBase",slot:"Input",overridesResolver:rd})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=S({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return S({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ui.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Ui.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),IO=d.jsx(Yw,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),_O=p.forwardRef(function(t,n){var r;const o=Re({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:s,className:l,components:c={},componentsProps:u={},defaultValue:f,disabled:h,disableInjectingGlobalStyles:w,endAdornment:y,fullWidth:x=!1,id:C,inputComponent:v="input",inputProps:m={},inputRef:b,maxRows:R,minRows:k,multiline:T=!1,name:P,onBlur:j,onChange:N,onClick:O,onFocus:F,onKeyDown:W,onKeyUp:U,placeholder:G,readOnly:ee,renderSuffix:J,rows:re,slotProps:I={},slots:_={},startAdornment:E,type:g="text",value:$}=o,z=se(o,jO),L=m.value!=null?m.value:$,{current:B}=p.useRef(L!=null),V=p.useRef(),M=p.useCallback(Ee=>{},[]),A=lt(V,b,m.ref,M),[Y,K]=p.useState(!1),q=br(),oe=vo({props:o,muiFormControl:q,states:["color","disabled","error","hiddenLabel","size","required","filled"]});oe.focused=q?q.focused:Y,p.useEffect(()=>{!q&&h&&Y&&(K(!1),j&&j())},[q,h,Y,j]);const te=q&&q.onFilled,ne=q&&q.onEmpty,de=p.useCallback(Ee=>{Mc(Ee)?te&&te():ne&&ne()},[te,ne]);Sn(()=>{B&&de({value:L})},[L,de,B]);const ke=Ee=>{if(oe.disabled){Ee.stopPropagation();return}F&&F(Ee),m.onFocus&&m.onFocus(Ee),q&&q.onFocus?q.onFocus(Ee):K(!0)},H=Ee=>{j&&j(Ee),m.onBlur&&m.onBlur(Ee),q&&q.onBlur?q.onBlur(Ee):K(!1)},ae=(Ee,...he)=>{if(!B){const Ge=Ee.target||V.current;if(Ge==null)throw new Error(Bo(1));de({value:Ge.value})}m.onChange&&m.onChange(Ee,...he),N&&N(Ee,...he)};p.useEffect(()=>{de(V.current)},[]);const ge=Ee=>{V.current&&Ee.currentTarget===Ee.target&&V.current.focus(),O&&O(Ee)};let D=v,X=m;T&&D==="input"&&(re?X=S({type:void 0,minRows:re,maxRows:re},X):X=S({type:void 0,maxRows:R,minRows:k},X),D=hO);const fe=Ee=>{de(Ee.animationName==="mui-auto-fill-cancel"?V.current:{value:"x"})};p.useEffect(()=>{q&&q.setAdornedStart(!!E)},[q,E]);const pe=S({},o,{color:oe.color||"primary",disabled:oe.disabled,endAdornment:y,error:oe.error,focused:oe.focused,formControl:q,fullWidth:x,hiddenLabel:oe.hiddenLabel,multiline:T,size:oe.size,startAdornment:E,type:g}),ve=OO(pe),Ce=_.root||c.Root||od,Le=I.root||u.root||{},De=_.input||c.Input||id;return X=S({},X,(r=I.input)!=null?r:u.input),d.jsxs(p.Fragment,{children:[!w&&IO,d.jsxs(Ce,S({},Le,!Ni(Ce)&&{ownerState:S({},pe,Le.ownerState)},{ref:n,onClick:ge},z,{className:le(ve.root,Le.className,l,ee&&"MuiInputBase-readOnly"),children:[E,d.jsx(td.Provider,{value:null,children:d.jsx(De,S({ownerState:pe,"aria-invalid":oe.error,"aria-describedby":i,autoComplete:a,autoFocus:s,defaultValue:f,disabled:oe.disabled,id:C,onAnimationStart:fe,name:P,placeholder:G,readOnly:ee,required:oe.required,rows:re,value:L,onKeyDown:W,onKeyUp:U,type:g},X,!Ni(De)&&{as:D,ownerState:S({},pe,X.ownerState)},{ref:A,className:le(ve.input,X.className,ee&&"MuiInputBase-readOnly"),onBlur:H,onChange:ae,onFocus:ke}))}),y,J?J(S({},oe,{startAdornment:E})):null]}))]})}),Sm=_O;function LO(e){return be("MuiInput",e)}const xa=S({},Ui,we("MuiInput",["root","underline","input"]));function AO(e){return be("MuiOutlinedInput",e)}const Ur=S({},Ui,we("MuiOutlinedInput",["root","notchedOutline","input"]));function NO(e){return be("MuiFilledInput",e)}const xo=S({},Ui,we("MuiFilledInput",["root","underline","input"])),DO=Vt(d.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),zO=Vt(d.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function BO(e){return be("MuiAvatar",e)}we("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const FO=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],UO=Ju(),WO=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Se({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},BO,t)},HO=ie("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:S({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:S({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),VO=ie("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),qO=ie(zO,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function GO({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=p.useState(!1);return p.useEffect(()=>{if(!n&&!r)return;i(!1);let a=!0;const s=new Image;return s.onload=()=>{a&&i("loaded")},s.onerror=()=>{a&&i("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=n,r&&(s.srcset=r),()=>{a=!1}},[e,t,n,r]),o}const Er=p.forwardRef(function(t,n){const r=UO({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:a,component:s="div",slots:l={},slotProps:c={},imgProps:u,sizes:f,src:h,srcSet:w,variant:y="circular"}=r,x=se(r,FO);let C=null;const v=GO(S({},u,{src:h,srcSet:w})),m=h||w,b=m&&v!=="error",R=S({},r,{colorDefault:!b,component:s,variant:y}),k=WO(R),[T,P]=kp("img",{className:k.img,elementType:VO,externalForwardedProps:{slots:l,slotProps:{img:S({},u,c.img)}},additionalProps:{alt:o,src:h,srcSet:w,sizes:f},ownerState:R});return b?C=d.jsx(T,S({},P)):i||i===0?C=i:m&&o?C=o[0]:C=d.jsx(qO,{ownerState:R,className:k.fallback}),d.jsx(HO,S({as:s,ownerState:R,className:le(k.root,a),ref:n},x,{children:C}))}),KO=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],YO={entering:{opacity:1},entered:{opacity:1}},Xw=p.forwardRef(function(t,n){const r=mo(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:l,in:c,onEnter:u,onEntered:f,onEntering:h,onExit:w,onExited:y,onExiting:x,style:C,timeout:v=o,TransitionComponent:m=ar}=t,b=se(t,KO),R=p.useRef(null),k=lt(R,s.ref,n),T=G=>ee=>{if(G){const J=R.current;ee===void 0?G(J):G(J,ee)}},P=T(h),j=T((G,ee)=>{pm(G);const J=Ai({style:C,timeout:v,easing:l},{mode:"enter"});G.style.webkitTransition=r.transitions.create("opacity",J),G.style.transition=r.transitions.create("opacity",J),u&&u(G,ee)}),N=T(f),O=T(x),F=T(G=>{const ee=Ai({style:C,timeout:v,easing:l},{mode:"exit"});G.style.webkitTransition=r.transitions.create("opacity",ee),G.style.transition=r.transitions.create("opacity",ee),w&&w(G)}),W=T(y),U=G=>{i&&i(R.current,G)};return d.jsx(m,S({appear:a,in:c,nodeRef:R,onEnter:j,onEntered:N,onEntering:P,onExit:F,onExited:W,onExiting:O,addEndListener:U,timeout:v},b,{children:(G,ee)=>p.cloneElement(s,S({style:S({opacity:0,visibility:G==="exited"&&!c?"hidden":void 0},YO[G],C,s.props.style),ref:k},ee))}))});function XO(e){return be("MuiBackdrop",e)}we("MuiBackdrop",["root","invisible"]);const QO=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],JO=e=>{const{classes:t,invisible:n}=e;return Se({root:["root",n&&"invisible"]},XO,t)},ZO=ie("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>S({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Qw=p.forwardRef(function(t,n){var r,o,i;const a=Re({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:c="div",components:u={},componentsProps:f={},invisible:h=!1,open:w,slotProps:y={},slots:x={},TransitionComponent:C=Xw,transitionDuration:v}=a,m=se(a,QO),b=S({},a,{component:c,invisible:h}),R=JO(b),k=(r=y.root)!=null?r:f.root;return d.jsx(C,S({in:w,timeout:v},m,{children:d.jsx(ZO,S({"aria-hidden":!0},k,{as:(o=(i=x.root)!=null?i:u.Root)!=null?o:c,className:le(R.root,l,k==null?void 0:k.className),ownerState:S({},b,k==null?void 0:k.ownerState),classes:R,ref:n,children:s}))}))});function e3(e){return be("MuiBadge",e)}const Wr=we("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),t3=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Jd=10,Zd=4,n3=Ju(),r3=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:a={}}=e,s={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${Z(n.vertical)}${Z(n.horizontal)}`,`anchorOrigin${Z(n.vertical)}${Z(n.horizontal)}${Z(o)}`,`overlap${Z(o)}`,t!=="default"&&`color${Z(t)}`]};return Se(s,e3,a)},o3=ie("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),i3=ie("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Z(n.anchorOrigin.vertical)}${Z(n.anchorOrigin.horizontal)}${Z(n.overlap)}`],n.color!=="default"&&t[`color${Z(n.color)}`],n.invisible&&t.invisible]}})(({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Jd*2,lineHeight:1,padding:"0 6px",height:Jd*2,borderRadius:Jd,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r,o;return((r=e.vars)!=null?r:e).palette[n].main&&((o=e.vars)!=null?o:e).palette[n].contrastText}).map(n=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText}})),{props:{variant:"dot"},style:{borderRadius:Zd,height:Zd*2,minWidth:Zd*2,padding:0}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}),a3=p.forwardRef(function(t,n){var r,o,i,a,s,l;const c=n3({props:t,name:"MuiBadge"}),{anchorOrigin:u={vertical:"top",horizontal:"right"},className:f,component:h,components:w={},componentsProps:y={},children:x,overlap:C="rectangular",color:v="default",invisible:m=!1,max:b=99,badgeContent:R,slots:k,slotProps:T,showZero:P=!1,variant:j="standard"}=c,N=se(c,t3),{badgeContent:O,invisible:F,max:W,displayValue:U}=PM({max:b,invisible:m,badgeContent:R,showZero:P}),G=mw({anchorOrigin:u,color:v,overlap:C,variant:j,badgeContent:R}),ee=F||O==null&&j!=="dot",{color:J=v,overlap:re=C,anchorOrigin:I=u,variant:_=j}=ee?G:c,E=_!=="dot"?U:void 0,g=S({},c,{badgeContent:O,invisible:ee,max:W,displayValue:E,showZero:P,anchorOrigin:I,color:J,overlap:re,variant:_}),$=r3(g),z=(r=(o=k==null?void 0:k.root)!=null?o:w.Root)!=null?r:o3,L=(i=(a=k==null?void 0:k.badge)!=null?a:w.Badge)!=null?i:i3,B=(s=T==null?void 0:T.root)!=null?s:y.root,V=(l=T==null?void 0:T.badge)!=null?l:y.badge,M=fn({elementType:z,externalSlotProps:B,externalForwardedProps:N,additionalProps:{ref:n,as:h},ownerState:g,className:le(B==null?void 0:B.className,$.root,f)}),A=fn({elementType:L,externalSlotProps:V,ownerState:g,className:le($.badge,V==null?void 0:V.className)});return d.jsxs(z,S({},M,{children:[x,d.jsx(L,S({},A,{children:E}))]}))}),s3=we("MuiBox",["root"]),l3=Ns(),at=l$({themeId:Fo,defaultTheme:l3,defaultClassName:s3.root,generateClassName:Zh.generate});function c3(e){return be("MuiButton",e)}const gl=we("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),u3=p.createContext({}),d3=p.createContext(void 0),f3=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],p3=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,s={root:["root",i,`${i}${Z(t)}`,`size${Z(o)}`,`${i}Size${Z(o)}`,`color${Z(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Z(o)}`],endIcon:["icon","endIcon",`iconSize${Z(o)}`]},l=Se(s,c3,a);return S({},a,l)},Jw=e=>S({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),h3=ie(Ir,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Z(n.color)}`],t[`size${Z(n.size)}`],t[`${n.variant}Size${Z(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return S({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":S({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":S({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${gl.focusVisible}`]:S({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${gl.disabled}`]:S({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Fe(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${gl.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${gl.disabled}`]:{boxShadow:"none"}}),m3=ie("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Z(n.size)}`]]}})(({ownerState:e})=>S({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Jw(e))),g3=ie("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Z(n.size)}`]]}})(({ownerState:e})=>S({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Jw(e))),kt=p.forwardRef(function(t,n){const r=p.useContext(u3),o=p.useContext(d3),i=nm(r,t),a=Re({props:i,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:f=!1,disableElevation:h=!1,disableFocusRipple:w=!1,endIcon:y,focusVisibleClassName:x,fullWidth:C=!1,size:v="medium",startIcon:m,type:b,variant:R="text"}=a,k=se(a,f3),T=S({},a,{color:l,component:c,disabled:f,disableElevation:h,disableFocusRipple:w,fullWidth:C,size:v,type:b,variant:R}),P=p3(T),j=m&&d.jsx(m3,{className:P.startIcon,ownerState:T,children:m}),N=y&&d.jsx(g3,{className:P.endIcon,ownerState:T,children:y}),O=o||"";return d.jsxs(h3,S({ownerState:T,className:le(r.className,P.root,u,O),component:c,disabled:f,focusRipple:!w,focusVisibleClassName:le(P.focusVisible,x),ref:n,type:b},k,{classes:P,children:[j,s,N]}))});function v3(e){return be("MuiCard",e)}we("MuiCard",["root"]);const y3=["className","raised"],x3=e=>{const{classes:t}=e;return Se({root:["root"]},v3,t)},b3=ie(En,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),ad=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiCard"}),{className:o,raised:i=!1}=r,a=se(r,y3),s=S({},r,{raised:i}),l=x3(s);return d.jsx(b3,S({className:le(l.root,o),elevation:i?8:void 0,ref:n,ownerState:s},a))});function w3(e){return be("MuiCardContent",e)}we("MuiCardContent",["root"]);const S3=["className","component"],C3=e=>{const{classes:t}=e;return Se({root:["root"]},w3,t)},R3=ie("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),Cm=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiCardContent"}),{className:o,component:i="div"}=r,a=se(r,S3),s=S({},r,{component:i}),l=C3(s);return d.jsx(R3,S({as:i,className:le(l.root,o),ownerState:s,ref:n},a))});function k3(e){return be("PrivateSwitchBase",e)}we("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const P3=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],E3=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${Z(o)}`],input:["input"]};return Se(i,k3,t)},T3=ie(Ir)(({ownerState:e})=>S({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),$3=ie("input",{shouldForwardProp:Ht})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Zw=p.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:a,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:f,id:h,inputProps:w,inputRef:y,name:x,onBlur:C,onChange:v,onFocus:m,readOnly:b,required:R=!1,tabIndex:k,type:T,value:P}=t,j=se(t,P3),[N,O]=gs({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),F=br(),W=_=>{m&&m(_),F&&F.onFocus&&F.onFocus(_)},U=_=>{C&&C(_),F&&F.onBlur&&F.onBlur(_)},G=_=>{if(_.nativeEvent.defaultPrevented)return;const E=_.target.checked;O(E),v&&v(_,E)};let ee=l;F&&typeof ee>"u"&&(ee=F.disabled);const J=T==="checkbox"||T==="radio",re=S({},t,{checked:N,disabled:ee,disableFocusRipple:c,edge:u}),I=E3(re);return d.jsxs(T3,S({component:"span",className:le(I.root,a),centerRipple:!0,focusRipple:!c,disabled:ee,tabIndex:null,role:void 0,onFocus:W,onBlur:U,ownerState:re,ref:n},j,{children:[d.jsx($3,S({autoFocus:r,checked:o,defaultChecked:s,className:I.input,disabled:ee,id:J?h:void 0,name:x,onChange:G,readOnly:b,ref:y,required:R,ownerState:re,tabIndex:k,type:T},T==="checkbox"&&P===void 0?{}:{value:P},w)),N?i:f]}))}),M3=Vt(d.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),j3=Vt(d.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),O3=Vt(d.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function I3(e){return be("MuiCheckbox",e)}const ef=we("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),_3=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],L3=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate",`color${Z(r)}`,`size${Z(o)}`]},a=Se(i,I3,t);return S({},t,a)},A3=ie(Zw,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Z(n.size)}`],n.color!=="default"&&t[`color${Z(n.color)}`]]}})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${ef.checked}, &.${ef.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${ef.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),N3=d.jsx(j3,{}),D3=d.jsx(M3,{}),z3=d.jsx(O3,{}),Rm=p.forwardRef(function(t,n){var r,o;const i=Re({props:t,name:"MuiCheckbox"}),{checkedIcon:a=N3,color:s="primary",icon:l=D3,indeterminate:c=!1,indeterminateIcon:u=z3,inputProps:f,size:h="medium",className:w}=i,y=se(i,_3),x=c?u:l,C=c?u:a,v=S({},i,{color:s,indeterminate:c,size:h}),m=L3(v);return d.jsx(A3,S({type:"checkbox",inputProps:S({"data-indeterminate":c},f),icon:p.cloneElement(x,{fontSize:(r=x.props.fontSize)!=null?r:h}),checkedIcon:p.cloneElement(C,{fontSize:(o=C.props.fontSize)!=null?o:h}),ownerState:v,ref:n,className:le(m.root,w)},y,{classes:m}))});function B3(e){return be("MuiCircularProgress",e)}we("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const F3=["className","color","disableShrink","size","style","thickness","value","variant"];let sd=e=>e,ey,ty,ny,ry;const Hr=44,U3=Qi(ey||(ey=sd` +`),$n.rippleVisible,F5,Pp,({theme:e})=>e.transitions.easing.easeInOut,$n.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,$n.child,$n.childLeaving,U5,Pp,({theme:e})=>e.transitions.easing.easeInOut,$n.childPulsate,W5,({theme:e})=>e.transitions.easing.easeInOut),q5=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,s=se(r,z5),[l,c]=p.useState([]),u=p.useRef(0),f=p.useRef(null);p.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const h=p.useRef(!1),w=To(),y=p.useRef(null),x=p.useRef(null),C=p.useCallback(R=>{const{pulsate:k,rippleX:T,rippleY:P,rippleSize:j,cb:N}=R;c(O=>[...O,d.jsx(V5,{classes:{ripple:le(i.ripple,$n.ripple),rippleVisible:le(i.rippleVisible,$n.rippleVisible),ripplePulsate:le(i.ripplePulsate,$n.ripplePulsate),child:le(i.child,$n.child),childLeaving:le(i.childLeaving,$n.childLeaving),childPulsate:le(i.childPulsate,$n.childPulsate)},timeout:Pp,pulsate:k,rippleX:T,rippleY:P,rippleSize:j},u.current)]),u.current+=1,f.current=N},[i]),v=p.useCallback((R={},k={},T=()=>{})=>{const{pulsate:P=!1,center:j=o||k.pulsate,fakeElement:N=!1}=k;if((R==null?void 0:R.type)==="mousedown"&&h.current){h.current=!1;return}(R==null?void 0:R.type)==="touchstart"&&(h.current=!0);const O=N?null:x.current,F=O?O.getBoundingClientRect():{width:0,height:0,left:0,top:0};let W,U,G;if(j||R===void 0||R.clientX===0&&R.clientY===0||!R.clientX&&!R.touches)W=Math.round(F.width/2),U=Math.round(F.height/2);else{const{clientX:ee,clientY:J}=R.touches&&R.touches.length>0?R.touches[0]:R;W=Math.round(ee-F.left),U=Math.round(J-F.top)}if(j)G=Math.sqrt((2*F.width**2+F.height**2)/3),G%2===0&&(G+=1);else{const ee=Math.max(Math.abs((O?O.clientWidth:0)-W),W)*2+2,J=Math.max(Math.abs((O?O.clientHeight:0)-U),U)*2+2;G=Math.sqrt(ee**2+J**2)}R!=null&&R.touches?y.current===null&&(y.current=()=>{C({pulsate:P,rippleX:W,rippleY:U,rippleSize:G,cb:T})},w.start(B5,()=>{y.current&&(y.current(),y.current=null)})):C({pulsate:P,rippleX:W,rippleY:U,rippleSize:G,cb:T})},[o,C,w]),m=p.useCallback(()=>{v({},{pulsate:!0})},[v]),b=p.useCallback((R,k)=>{if(w.clear(),(R==null?void 0:R.type)==="touchend"&&y.current){y.current(),y.current=null,w.start(0,()=>{b(R,k)});return}y.current=null,c(T=>T.length>0?T.slice(1):T),f.current=k},[w]);return p.useImperativeHandle(n,()=>({pulsate:m,start:v,stop:b}),[m,v,b]),d.jsx(H5,S({className:le($n.root,i.root,a),ref:x},s,{children:d.jsx(fm,{component:null,exit:!0,children:l})}))});function G5(e){return be("MuiButtonBase",e)}const K5=we("MuiButtonBase",["root","disabled","focusVisible"]),Y5=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],X5=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Se({root:["root",t&&"disabled",n&&"focusVisible"]},G5,o);return n&&r&&(a.root+=` ${r}`),a},Q5=ie("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${K5.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ir=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:h=!1,LinkComponent:w="a",onBlur:y,onClick:x,onContextMenu:C,onDragLeave:v,onFocus:m,onFocusVisible:b,onKeyDown:R,onKeyUp:k,onMouseDown:T,onMouseLeave:P,onMouseUp:j,onTouchEnd:N,onTouchMove:O,onTouchStart:F,tabIndex:W=0,TouchRippleProps:U,touchRippleRef:G,type:ee}=r,J=se(r,Y5),re=p.useRef(null),I=p.useRef(null),_=lt(I,G),{isFocusVisibleRef:E,onFocus:g,onBlur:$,ref:z}=om(),[L,B]=p.useState(!1);c&&L&&B(!1),p.useImperativeHandle(o,()=>({focusVisible:()=>{B(!0),re.current.focus()}}),[]);const[V,M]=p.useState(!1);p.useEffect(()=>{M(!0)},[]);const A=V&&!u&&!c;p.useEffect(()=>{L&&h&&!u&&V&&I.current.pulsate()},[u,h,L,V]);function K(he,Ge,Xe=f){return Yt(Ye=>(Ge&&Ge(Ye),!Xe&&I.current&&I.current[he](Ye),!0))}const Y=K("start",T),q=K("stop",C),oe=K("stop",v),te=K("stop",j),ne=K("stop",he=>{L&&he.preventDefault(),P&&P(he)}),de=K("start",F),ke=K("stop",N),H=K("stop",O),ae=K("stop",he=>{$(he),E.current===!1&&B(!1),y&&y(he)},!1),ge=Yt(he=>{re.current||(re.current=he.currentTarget),g(he),E.current===!0&&(B(!0),b&&b(he)),m&&m(he)}),D=()=>{const he=re.current;return l&&l!=="button"&&!(he.tagName==="A"&&he.href)},X=p.useRef(!1),fe=Yt(he=>{h&&!X.current&&L&&I.current&&he.key===" "&&(X.current=!0,I.current.stop(he,()=>{I.current.start(he)})),he.target===he.currentTarget&&D()&&he.key===" "&&he.preventDefault(),R&&R(he),he.target===he.currentTarget&&D()&&he.key==="Enter"&&!c&&(he.preventDefault(),x&&x(he))}),pe=Yt(he=>{h&&he.key===" "&&I.current&&L&&!he.defaultPrevented&&(X.current=!1,I.current.stop(he,()=>{I.current.pulsate(he)})),k&&k(he),x&&he.target===he.currentTarget&&D()&&he.key===" "&&!he.defaultPrevented&&x(he)});let ve=l;ve==="button"&&(J.href||J.to)&&(ve=w);const Ce={};ve==="button"?(Ce.type=ee===void 0?"button":ee,Ce.disabled=c):(!J.href&&!J.to&&(Ce.role="button"),c&&(Ce["aria-disabled"]=c));const Le=lt(n,z,re),De=S({},r,{centerRipple:i,component:l,disabled:c,disableRipple:u,disableTouchRipple:f,focusRipple:h,tabIndex:W,focusVisible:L}),Ee=X5(De);return d.jsxs(Q5,S({as:ve,className:le(Ee.root,s),ownerState:De,onBlur:ae,onClick:x,onContextMenu:q,onFocus:ge,onKeyDown:fe,onKeyUp:pe,onMouseDown:Y,onMouseLeave:ne,onMouseUp:te,onDragLeave:oe,onTouchEnd:ke,onTouchMove:H,onTouchStart:de,ref:Le,tabIndex:c?-1:W,type:ee},Ce,J,{children:[a,A?d.jsx(q5,S({ref:_,center:i},U)):null]}))});function J5(e){return be("MuiAlert",e)}const A0=we("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function Z5(e){return be("MuiIconButton",e)}const eM=we("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),tM=["edge","children","className","color","disabled","disableFocusRipple","size"],nM=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${Z(r)}`,o&&`edge${Z(o)}`,`size${Z(i)}`]};return Se(a,Z5,t)},rM=ie(Ir,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Z(n.color)}`],n.edge&&t[`edge${Z(n.edge)}`],t[`size${Z(n.size)}`]]}})(({theme:e,ownerState:t})=>S({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return S({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&S({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":S({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${eM.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),ut=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium"}=r,f=se(r,tM),h=S({},r,{edge:o,color:s,disabled:l,disableFocusRipple:c,size:u}),w=nM(h);return d.jsx(rM,S({className:le(w.root,a),centerRipple:!0,focusRipple:!c,disabled:l,ref:n},f,{ownerState:h,children:i}))}),oM=Vt(d.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),iM=Vt(d.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),aM=Vt(d.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),sM=Vt(d.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),lM=Vt(d.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),cM=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],uM=Ju(),dM=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`color${Z(n||r)}`,`${t}${Z(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Se(i,J5,o)},fM=ie(En,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Z(n.color||n.severity)}`]]}})(({theme:e})=>{const t=e.palette.mode==="light"?Rc:kc,n=e.palette.mode==="light"?kc:Rc;return S({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${A0.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${A0.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.dark).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:S({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)})}))]})}),pM=ie("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),hM=ie("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),N0=ie("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),D0={success:d.jsx(oM,{fontSize:"inherit"}),warning:d.jsx(iM,{fontSize:"inherit"}),error:d.jsx(aM,{fontSize:"inherit"}),info:d.jsx(sM,{fontSize:"inherit"})},xr=p.forwardRef(function(t,n){const r=uM({props:t,name:"MuiAlert"}),{action:o,children:i,className:a,closeText:s="Close",color:l,components:c={},componentsProps:u={},icon:f,iconMapping:h=D0,onClose:w,role:y="alert",severity:x="success",slotProps:C={},slots:v={},variant:m="standard"}=r,b=se(r,cM),R=S({},r,{color:l,severity:x,variant:m,colorSeverity:l||x}),k=dM(R),T={slots:S({closeButton:c.CloseButton,closeIcon:c.CloseIcon},v),slotProps:S({},u,C)},[P,j]=kp("closeButton",{elementType:ut,externalForwardedProps:T,ownerState:R}),[N,O]=kp("closeIcon",{elementType:lM,externalForwardedProps:T,ownerState:R});return d.jsxs(fM,S({role:y,elevation:0,ownerState:R,className:le(k.root,a),ref:n},b,{children:[f!==!1?d.jsx(pM,{ownerState:R,className:k.icon,children:f||h[x]||D0[x]}):null,d.jsx(hM,{ownerState:R,className:k.message,children:i}),o!=null?d.jsx(N0,{ownerState:R,className:k.action,children:o}):null,o==null&&w?d.jsx(N0,{ownerState:R,className:k.action,children:d.jsx(P,S({size:"small","aria-label":s,title:s,color:"inherit",onClick:w},j,{children:d.jsx(N,S({fontSize:"small"},O))}))}):null]}))});function mM(e){return be("MuiTypography",e)}we("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const gM=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],vM=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,e.align!=="inherit"&&`align${Z(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Se(s,mM,a)},yM=ie("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Z(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>S({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),z0={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},xM={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},bM=e=>xM[e]||e,Ie=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTypography"}),o=bM(r.color),i=$u(S({},r,{color:o})),{align:a="inherit",className:s,component:l,gutterBottom:c=!1,noWrap:u=!1,paragraph:f=!1,variant:h="body1",variantMapping:w=z0}=i,y=se(i,gM),x=S({},i,{align:a,color:o,className:s,component:l,gutterBottom:c,noWrap:u,paragraph:f,variant:h,variantMapping:w}),C=l||(f?"p":w[h]||z0[h])||"span",v=vM(x);return d.jsx(yM,S({as:C,ref:n,ownerState:x,className:le(v.root,s)},y))});function wM(e){return be("MuiAppBar",e)}we("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const SM=["className","color","enableColorOnDark","position"],CM=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${Z(t)}`,`position${Z(n)}`]};return Se(o,wM,r)},pl=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,RM=ie(En,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Z(n.position)}`],t[`color${Z(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return S({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&S({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&S({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&S({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:pl(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:pl(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:pl(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:pl(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),kM=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:a=!1,position:s="fixed"}=r,l=se(r,SM),c=S({},r,{color:i,position:s,enableColorOnDark:a}),u=CM(c);return d.jsx(RM,S({square:!0,component:"header",ownerState:c,elevation:4,className:le(u.root,o,s==="fixed"&&"mui-fixed"),ref:n},l))});function PM(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=mw({badgeContent:t,max:r});let a=n;n===!1&&t===0&&!o&&(a=!0);const{badgeContent:s,max:l=r}=a?i:e,c=s&&Number(s)>l?`${l}+`:s;return{badgeContent:s,invisible:a,max:l,displayValue:c}}const Iw="base";function EM(e){return`${Iw}--${e}`}function TM(e,t){return`${Iw}-${e}-${t}`}function _w(e,t){const n=sw[t];return n?EM(n):TM(e,t)}function $M(e,t){const n={};return t.forEach(r=>{n[r]=_w(e,r)}),n}function B0(e){return e.substring(2).toLowerCase()}function MM(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=lt(t.ref,s),f=Yt(y=>{const x=c.current;c.current=!1;const C=St(s.current);if(!l.current||!s.current||"clientX"in y&&MM(y,C))return;if(a.current){a.current=!1;return}let v;y.composedPath?v=y.composedPath().indexOf(s.current)>-1:v=!C.documentElement.contains(y.target)||s.current.contains(y.target),!v&&(n||!x)&&o(y)}),h=y=>x=>{c.current=!0;const C=t.props[y];C&&C(x)},w={ref:u};return i!==!1&&(w[i]=h(i)),p.useEffect(()=>{if(i!==!1){const y=B0(i),x=St(s.current),C=()=>{a.current=!0};return x.addEventListener(y,f),x.addEventListener("touchmove",C),()=>{x.removeEventListener(y,f),x.removeEventListener("touchmove",C)}}},[f,i]),r!==!1&&(w[r]=h(r)),p.useEffect(()=>{if(r!==!1){const y=B0(r),x=St(s.current);return x.addEventListener(y,f),()=>{x.removeEventListener(y,f)}}},[f,r]),d.jsx(p.Fragment,{children:p.cloneElement(t,w)})}const OM=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function IM(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function _M(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function LM(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||_M(e))}function AM(e){const t=[],n=[];return Array.from(e.querySelectorAll(OM)).forEach((r,o)=>{const i=IM(r);i===-1||!LM(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function NM(){return!0}function DM(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=AM,isEnabled:a=NM,open:s}=e,l=p.useRef(!1),c=p.useRef(null),u=p.useRef(null),f=p.useRef(null),h=p.useRef(null),w=p.useRef(!1),y=p.useRef(null),x=lt(t.ref,y),C=p.useRef(null);p.useEffect(()=>{!s||!y.current||(w.current=!n)},[n,s]),p.useEffect(()=>{if(!s||!y.current)return;const b=St(y.current);return y.current.contains(b.activeElement)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex","-1"),w.current&&y.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),p.useEffect(()=>{if(!s||!y.current)return;const b=St(y.current),R=P=>{C.current=P,!(r||!a()||P.key!=="Tab")&&b.activeElement===y.current&&P.shiftKey&&(l.current=!0,u.current&&u.current.focus())},k=()=>{const P=y.current;if(P===null)return;if(!b.hasFocus()||!a()||l.current){l.current=!1;return}if(P.contains(b.activeElement)||r&&b.activeElement!==c.current&&b.activeElement!==u.current)return;if(b.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!w.current)return;let j=[];if((b.activeElement===c.current||b.activeElement===u.current)&&(j=i(y.current)),j.length>0){var N,O;const F=!!((N=C.current)!=null&&N.shiftKey&&((O=C.current)==null?void 0:O.key)==="Tab"),W=j[0],U=j[j.length-1];typeof W!="string"&&typeof U!="string"&&(F?U.focus():W.focus())}else P.focus()};b.addEventListener("focusin",k),b.addEventListener("keydown",R,!0);const T=setInterval(()=>{b.activeElement&&b.activeElement.tagName==="BODY"&&k()},50);return()=>{clearInterval(T),b.removeEventListener("focusin",k),b.removeEventListener("keydown",R,!0)}},[n,r,o,a,s,i]);const v=b=>{f.current===null&&(f.current=b.relatedTarget),w.current=!0,h.current=b.target;const R=t.props.onFocus;R&&R(b)},m=b=>{f.current===null&&(f.current=b.relatedTarget),w.current=!0};return d.jsxs(p.Fragment,{children:[d.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:c,"data-testid":"sentinelStart"}),p.cloneElement(t,{ref:x,onFocus:v}),d.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:u,"data-testid":"sentinelEnd"})]})}function zM(e){return typeof e=="function"?e():e}const Lw=p.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[a,s]=p.useState(null),l=lt(p.isValidElement(r)?r.ref:null,n);if(Sn(()=>{i||s(zM(o)||document.body)},[o,i]),Sn(()=>{if(a&&!i)return Cc(n,a),()=>{Cc(n,null)}},[n,a,i]),i){if(p.isValidElement(r)){const c={ref:l};return p.cloneElement(r,c)}return d.jsx(p.Fragment,{children:r})}return d.jsx(p.Fragment,{children:a&&Oh.createPortal(r,a)})});function BM(e){const t=St(e);return t.body===e?Bn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Ua(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function F0(e){return parseInt(Bn(e).getComputedStyle(e).paddingRight,10)||0}function FM(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function U0(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const s=i.indexOf(a)===-1,l=!FM(a);s&&l&&Ua(a,o)})}function Qd(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function UM(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(BM(r)){const a=pw(St(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${F0(r)+a}px`;const s=St(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${F0(l)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=St(r).body;else{const a=r.parentElement,s=Bn(r);i=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:s})=>{i?a.style.setProperty(s,i):a.style.removeProperty(s)})}}function WM(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class HM{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Ua(t.modalRef,!1);const o=WM(n);U0(n,t.mount,t.modalRef,o,!0);const i=Qd(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Qd(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=UM(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Qd(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Ua(t.modalRef,n),U0(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&Ua(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function VM(e){return typeof e=="function"?e():e}function qM(e){return e?e.props.hasOwnProperty("in"):!1}const GM=new HM;function KM(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=GM,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:f}=e,h=p.useRef({}),w=p.useRef(null),y=p.useRef(null),x=lt(y,f),[C,v]=p.useState(!u),m=qM(l);let b=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(b=!1);const R=()=>St(w.current),k=()=>(h.current.modalRef=y.current,h.current.mount=w.current,h.current),T=()=>{o.mount(k(),{disableScrollLock:r}),y.current&&(y.current.scrollTop=0)},P=Yt(()=>{const J=VM(t)||R().body;o.add(k(),J),y.current&&T()}),j=p.useCallback(()=>o.isTopModal(k()),[o]),N=Yt(J=>{w.current=J,J&&(u&&j()?T():y.current&&Ua(y.current,b))}),O=p.useCallback(()=>{o.remove(k(),b)},[b,o]);p.useEffect(()=>()=>{O()},[O]),p.useEffect(()=>{u?P():(!m||!i)&&O()},[u,O,m,i,P]);const F=J=>re=>{var I;(I=J.onKeyDown)==null||I.call(J,re),!(re.key!=="Escape"||re.which===229||!j())&&(n||(re.stopPropagation(),c&&c(re,"escapeKeyDown")))},W=J=>re=>{var I;(I=J.onClick)==null||I.call(J,re),re.target===re.currentTarget&&c&&c(re,"backdropClick")};return{getRootProps:(J={})=>{const re=Tc(e);delete re.onTransitionEnter,delete re.onTransitionExited;const I=S({},re,J);return S({role:"presentation"},I,{onKeyDown:F(I),ref:x})},getBackdropProps:(J={})=>{const re=J;return S({"aria-hidden":!0},re,{onClick:W(re),open:u})},getTransitionProps:()=>{const J=()=>{v(!1),a&&a()},re=()=>{v(!0),s&&s(),i&&O()};return{onEnter:xp(J,l==null?void 0:l.props.onEnter),onExited:xp(re,l==null?void 0:l.props.onExited)}},rootRef:x,portalRef:N,isTopModal:j,exited:C,hasTransition:m}}var cn="top",Un="bottom",Wn="right",un="left",hm="auto",zs=[cn,Un,Wn,un],Di="start",vs="end",YM="clippingParents",Aw="viewport",ya="popper",XM="reference",W0=zs.reduce(function(e,t){return e.concat([t+"-"+Di,t+"-"+vs])},[]),Nw=[].concat(zs,[hm]).reduce(function(e,t){return e.concat([t,t+"-"+Di,t+"-"+vs])},[]),QM="beforeRead",JM="read",ZM="afterRead",ej="beforeMain",tj="main",nj="afterMain",rj="beforeWrite",oj="write",ij="afterWrite",aj=[QM,JM,ZM,ej,tj,nj,rj,oj,ij];function yr(e){return e?(e.nodeName||"").toLowerCase():null}function Cn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Wo(e){var t=Cn(e).Element;return e instanceof t||e instanceof Element}function Nn(e){var t=Cn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function mm(e){if(typeof ShadowRoot>"u")return!1;var t=Cn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function sj(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Nn(i)||!yr(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function lj(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,c){return l[c]="",l},{});!Nn(o)||!yr(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const cj={name:"applyStyles",enabled:!0,phase:"write",fn:sj,effect:lj,requires:["computeStyles"]};function mr(e){return e.split("-")[0]}var Io=Math.max,$c=Math.min,zi=Math.round;function Ep(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Dw(){return!/^((?!chrome|android).)*safari/i.test(Ep())}function Bi(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Nn(e)&&(o=e.offsetWidth>0&&zi(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&zi(r.height)/e.offsetHeight||1);var a=Wo(e)?Cn(e):window,s=a.visualViewport,l=!Dw()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/o,u=(r.top+(l&&s?s.offsetTop:0))/i,f=r.width/o,h=r.height/i;return{width:f,height:h,top:u,right:c+f,bottom:u+h,left:c,x:c,y:u}}function gm(e){var t=Bi(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function zw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&mm(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function _r(e){return Cn(e).getComputedStyle(e)}function uj(e){return["table","td","th"].indexOf(yr(e))>=0}function go(e){return((Wo(e)?e.ownerDocument:e.document)||window.document).documentElement}function ed(e){return yr(e)==="html"?e:e.assignedSlot||e.parentNode||(mm(e)?e.host:null)||go(e)}function H0(e){return!Nn(e)||_r(e).position==="fixed"?null:e.offsetParent}function dj(e){var t=/firefox/i.test(Ep()),n=/Trident/i.test(Ep());if(n&&Nn(e)){var r=_r(e);if(r.position==="fixed")return null}var o=ed(e);for(mm(o)&&(o=o.host);Nn(o)&&["html","body"].indexOf(yr(o))<0;){var i=_r(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Bs(e){for(var t=Cn(e),n=H0(e);n&&uj(n)&&_r(n).position==="static";)n=H0(n);return n&&(yr(n)==="html"||yr(n)==="body"&&_r(n).position==="static")?t:n||dj(e)||t}function vm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Wa(e,t,n){return Io(e,$c(t,n))}function fj(e,t,n){var r=Wa(e,t,n);return r>n?n:r}function Bw(){return{top:0,right:0,bottom:0,left:0}}function Fw(e){return Object.assign({},Bw(),e)}function Uw(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var pj=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Fw(typeof t!="number"?t:Uw(t,zs))};function hj(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=mr(n.placement),l=vm(s),c=[un,Wn].indexOf(s)>=0,u=c?"height":"width";if(!(!i||!a)){var f=pj(o.padding,n),h=gm(i),w=l==="y"?cn:un,y=l==="y"?Un:Wn,x=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],C=a[l]-n.rects.reference[l],v=Bs(i),m=v?l==="y"?v.clientHeight||0:v.clientWidth||0:0,b=x/2-C/2,R=f[w],k=m-h[u]-f[y],T=m/2-h[u]/2+b,P=Wa(R,T,k),j=l;n.modifiersData[r]=(t={},t[j]=P,t.centerOffset=P-T,t)}}function mj(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||zw(t.elements.popper,o)&&(t.elements.arrow=o))}const gj={name:"arrow",enabled:!0,phase:"main",fn:hj,effect:mj,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Fi(e){return e.split("-")[1]}var vj={top:"auto",right:"auto",bottom:"auto",left:"auto"};function yj(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:zi(n*o)/o||0,y:zi(r*o)/o||0}}function V0(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,h=a.x,w=h===void 0?0:h,y=a.y,x=y===void 0?0:y,C=typeof u=="function"?u({x:w,y:x}):{x:w,y:x};w=C.x,x=C.y;var v=a.hasOwnProperty("x"),m=a.hasOwnProperty("y"),b=un,R=cn,k=window;if(c){var T=Bs(n),P="clientHeight",j="clientWidth";if(T===Cn(n)&&(T=go(n),_r(T).position!=="static"&&s==="absolute"&&(P="scrollHeight",j="scrollWidth")),T=T,o===cn||(o===un||o===Wn)&&i===vs){R=Un;var N=f&&T===k&&k.visualViewport?k.visualViewport.height:T[P];x-=N-r.height,x*=l?1:-1}if(o===un||(o===cn||o===Un)&&i===vs){b=Wn;var O=f&&T===k&&k.visualViewport?k.visualViewport.width:T[j];w-=O-r.width,w*=l?1:-1}}var F=Object.assign({position:s},c&&vj),W=u===!0?yj({x:w,y:x},Cn(n)):{x:w,y:x};if(w=W.x,x=W.y,l){var U;return Object.assign({},F,(U={},U[R]=m?"0":"",U[b]=v?"0":"",U.transform=(k.devicePixelRatio||1)<=1?"translate("+w+"px, "+x+"px)":"translate3d("+w+"px, "+x+"px, 0)",U))}return Object.assign({},F,(t={},t[R]=m?x+"px":"",t[b]=v?w+"px":"",t.transform="",t))}function xj(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:mr(t.placement),variation:Fi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,V0(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,V0(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const bj={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:xj,data:{}};var hl={passive:!0};function wj(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,l=Cn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,hl)}),s&&l.addEventListener("resize",n.update,hl),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,hl)}),s&&l.removeEventListener("resize",n.update,hl)}}const Sj={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:wj,data:{}};var Cj={left:"right",right:"left",bottom:"top",top:"bottom"};function Wl(e){return e.replace(/left|right|bottom|top/g,function(t){return Cj[t]})}var Rj={start:"end",end:"start"};function q0(e){return e.replace(/start|end/g,function(t){return Rj[t]})}function ym(e){var t=Cn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function xm(e){return Bi(go(e)).left+ym(e).scrollLeft}function kj(e,t){var n=Cn(e),r=go(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=Dw();(c||!c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+xm(e),y:l}}function Pj(e){var t,n=go(e),r=ym(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Io(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Io(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+xm(e),l=-r.scrollTop;return _r(o||n).direction==="rtl"&&(s+=Io(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function bm(e){var t=_r(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Ww(e){return["html","body","#document"].indexOf(yr(e))>=0?e.ownerDocument.body:Nn(e)&&bm(e)?e:Ww(ed(e))}function Ha(e,t){var n;t===void 0&&(t=[]);var r=Ww(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Cn(r),a=o?[i].concat(i.visualViewport||[],bm(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Ha(ed(a)))}function Tp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ej(e,t){var n=Bi(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function G0(e,t,n){return t===Aw?Tp(kj(e,n)):Wo(t)?Ej(t,n):Tp(Pj(go(e)))}function Tj(e){var t=Ha(ed(e)),n=["absolute","fixed"].indexOf(_r(e).position)>=0,r=n&&Nn(e)?Bs(e):e;return Wo(r)?t.filter(function(o){return Wo(o)&&zw(o,r)&&yr(o)!=="body"}):[]}function $j(e,t,n,r){var o=t==="clippingParents"?Tj(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(l,c){var u=G0(e,c,r);return l.top=Io(u.top,l.top),l.right=$c(u.right,l.right),l.bottom=$c(u.bottom,l.bottom),l.left=Io(u.left,l.left),l},G0(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Hw(e){var t=e.reference,n=e.element,r=e.placement,o=r?mr(r):null,i=r?Fi(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case cn:l={x:a,y:t.y-n.height};break;case Un:l={x:a,y:t.y+t.height};break;case Wn:l={x:t.x+t.width,y:s};break;case un:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=o?vm(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case Di:l[c]=l[c]-(t[u]/2-n[u]/2);break;case vs:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function ys(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,s=n.boundary,l=s===void 0?YM:s,c=n.rootBoundary,u=c===void 0?Aw:c,f=n.elementContext,h=f===void 0?ya:f,w=n.altBoundary,y=w===void 0?!1:w,x=n.padding,C=x===void 0?0:x,v=Fw(typeof C!="number"?C:Uw(C,zs)),m=h===ya?XM:ya,b=e.rects.popper,R=e.elements[y?m:h],k=$j(Wo(R)?R:R.contextElement||go(e.elements.popper),l,u,a),T=Bi(e.elements.reference),P=Hw({reference:T,element:b,strategy:"absolute",placement:o}),j=Tp(Object.assign({},b,P)),N=h===ya?j:T,O={top:k.top-N.top+v.top,bottom:N.bottom-k.bottom+v.bottom,left:k.left-N.left+v.left,right:N.right-k.right+v.right},F=e.modifiersData.offset;if(h===ya&&F){var W=F[o];Object.keys(O).forEach(function(U){var G=[Wn,Un].indexOf(U)>=0?1:-1,ee=[cn,Un].indexOf(U)>=0?"y":"x";O[U]+=W[ee]*G})}return O}function Mj(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Nw:l,u=Fi(r),f=u?s?W0:W0.filter(function(y){return Fi(y)===u}):zs,h=f.filter(function(y){return c.indexOf(y)>=0});h.length===0&&(h=f);var w=h.reduce(function(y,x){return y[x]=ys(e,{placement:x,boundary:o,rootBoundary:i,padding:a})[mr(x)],y},{});return Object.keys(w).sort(function(y,x){return w[y]-w[x]})}function jj(e){if(mr(e)===hm)return[];var t=Wl(e);return[q0(e),t,q0(t)]}function Oj(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,h=n.altBoundary,w=n.flipVariations,y=w===void 0?!0:w,x=n.allowedAutoPlacements,C=t.options.placement,v=mr(C),m=v===C,b=l||(m||!y?[Wl(C)]:jj(C)),R=[C].concat(b).reduce(function(L,B){return L.concat(mr(B)===hm?Mj(t,{placement:B,boundary:u,rootBoundary:f,padding:c,flipVariations:y,allowedAutoPlacements:x}):B)},[]),k=t.rects.reference,T=t.rects.popper,P=new Map,j=!0,N=R[0],O=0;O=0,ee=G?"width":"height",J=ys(t,{placement:F,boundary:u,rootBoundary:f,altBoundary:h,padding:c}),re=G?U?Wn:un:U?Un:cn;k[ee]>T[ee]&&(re=Wl(re));var I=Wl(re),_=[];if(i&&_.push(J[W]<=0),s&&_.push(J[re]<=0,J[I]<=0),_.every(function(L){return L})){N=F,j=!1;break}P.set(F,_)}if(j)for(var E=y?3:1,g=function(B){var V=R.find(function(M){var A=P.get(M);if(A)return A.slice(0,B).every(function(K){return K})});if(V)return N=V,"break"},$=E;$>0;$--){var z=g($);if(z==="break")break}t.placement!==N&&(t.modifiersData[r]._skip=!0,t.placement=N,t.reset=!0)}}const Ij={name:"flip",enabled:!0,phase:"main",fn:Oj,requiresIfExists:["offset"],data:{_skip:!1}};function K0(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Y0(e){return[cn,Wn,Un,un].some(function(t){return e[t]>=0})}function _j(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ys(t,{elementContext:"reference"}),s=ys(t,{altBoundary:!0}),l=K0(a,r),c=K0(s,o,i),u=Y0(l),f=Y0(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const Lj={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:_j};function Aj(e,t,n){var r=mr(e),o=[un,cn].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[un,Wn].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function Nj(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=Nw.reduce(function(u,f){return u[f]=Aj(f,t.rects,i),u},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}const Dj={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Nj};function zj(e){var t=e.state,n=e.name;t.modifiersData[n]=Hw({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Bj={name:"popperOffsets",enabled:!0,phase:"read",fn:zj,data:{}};function Fj(e){return e==="x"?"y":"x"}function Uj(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,h=n.tether,w=h===void 0?!0:h,y=n.tetherOffset,x=y===void 0?0:y,C=ys(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),v=mr(t.placement),m=Fi(t.placement),b=!m,R=vm(v),k=Fj(R),T=t.modifiersData.popperOffsets,P=t.rects.reference,j=t.rects.popper,N=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,O=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,W={x:0,y:0};if(T){if(i){var U,G=R==="y"?cn:un,ee=R==="y"?Un:Wn,J=R==="y"?"height":"width",re=T[R],I=re+C[G],_=re-C[ee],E=w?-j[J]/2:0,g=m===Di?P[J]:j[J],$=m===Di?-j[J]:-P[J],z=t.elements.arrow,L=w&&z?gm(z):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Bw(),V=B[G],M=B[ee],A=Wa(0,P[J],L[J]),K=b?P[J]/2-E-A-V-O.mainAxis:g-A-V-O.mainAxis,Y=b?-P[J]/2+E+A+M+O.mainAxis:$+A+M+O.mainAxis,q=t.elements.arrow&&Bs(t.elements.arrow),oe=q?R==="y"?q.clientTop||0:q.clientLeft||0:0,te=(U=F==null?void 0:F[R])!=null?U:0,ne=re+K-te-oe,de=re+Y-te,ke=Wa(w?$c(I,ne):I,re,w?Io(_,de):_);T[R]=ke,W[R]=ke-re}if(s){var H,ae=R==="x"?cn:un,ge=R==="x"?Un:Wn,D=T[k],X=k==="y"?"height":"width",fe=D+C[ae],pe=D-C[ge],ve=[cn,un].indexOf(v)!==-1,Ce=(H=F==null?void 0:F[k])!=null?H:0,Le=ve?fe:D-P[X]-j[X]-Ce+O.altAxis,De=ve?D+P[X]+j[X]-Ce-O.altAxis:pe,Ee=w&&ve?fj(Le,D,De):Wa(w?Le:fe,D,w?De:pe);T[k]=Ee,W[k]=Ee-D}t.modifiersData[r]=W}}const Wj={name:"preventOverflow",enabled:!0,phase:"main",fn:Uj,requiresIfExists:["offset"]};function Hj(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Vj(e){return e===Cn(e)||!Nn(e)?ym(e):Hj(e)}function qj(e){var t=e.getBoundingClientRect(),n=zi(t.width)/e.offsetWidth||1,r=zi(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Gj(e,t,n){n===void 0&&(n=!1);var r=Nn(t),o=Nn(t)&&qj(t),i=go(t),a=Bi(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((yr(t)!=="body"||bm(i))&&(s=Vj(t)),Nn(t)?(l=Bi(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=xm(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Kj(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function Yj(e){var t=Kj(e);return aj.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Xj(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Qj(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var X0={placement:"bottom",modifiers:[],strategy:"absolute"};function Q0(){for(var e=arguments.length,t=new Array(e),n=0;nSe({root:["root"]},I5(tO)),sO={},lO=p.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:a,disablePortal:s,modifiers:l,open:c,placement:u,popperOptions:f,popperRef:h,slotProps:w={},slots:y={},TransitionProps:x}=t,C=se(t,nO),v=p.useRef(null),m=lt(v,n),b=p.useRef(null),R=lt(b,h),k=p.useRef(R);Sn(()=>{k.current=R},[R]),p.useImperativeHandle(h,()=>b.current,[]);const T=oO(u,a),[P,j]=p.useState(T),[N,O]=p.useState($p(o));p.useEffect(()=>{b.current&&b.current.forceUpdate()}),p.useEffect(()=>{o&&O($p(o))},[o]),Sn(()=>{if(!N||!c)return;const ee=I=>{j(I.placement)};let J=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:I})=>{ee(I)}}];l!=null&&(J=J.concat(l)),f&&f.modifiers!=null&&(J=J.concat(f.modifiers));const re=eO(N,v.current,S({placement:T},f,{modifiers:J}));return k.current(re),()=>{re.destroy(),k.current(null)}},[N,s,l,c,f,T]);const F={placement:P};x!==null&&(F.TransitionProps=x);const W=aO(),U=(r=y.root)!=null?r:"div",G=fn({elementType:U,externalSlotProps:w.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:m},ownerState:t,className:W.root});return d.jsx(U,S({},G,{children:typeof i=="function"?i(F):i}))}),cO=p.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:f="bottom",popperOptions:h=sO,popperRef:w,style:y,transition:x=!1,slotProps:C={},slots:v={}}=t,m=se(t,rO),[b,R]=p.useState(!0),k=()=>{R(!1)},T=()=>{R(!0)};if(!l&&!u&&(!x||b))return null;let P;if(i)P=i;else if(r){const O=$p(r);P=O&&iO(O)?St(O).body:St(null).body}const j=!u&&l&&(!x||b)?"none":void 0,N=x?{in:u,onEnter:k,onExited:T}:void 0;return d.jsx(Lw,{disablePortal:s,container:P,children:d.jsx(lO,S({anchorEl:r,direction:a,disablePortal:s,modifiers:c,ref:n,open:x?!b:u,placement:f,popperOptions:h,popperRef:w,slotProps:C,slots:v},m,{style:S({position:"fixed",top:0,left:0,display:j},y),TransitionProps:N,children:o}))})});function uO(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:i}=e,a=To();p.useEffect(()=>{if(!o)return;function v(m){m.defaultPrevented||(m.key==="Escape"||m.key==="Esc")&&(r==null||r(m,"escapeKeyDown"))}return document.addEventListener("keydown",v),()=>{document.removeEventListener("keydown",v)}},[o,r]);const s=Yt((v,m)=>{r==null||r(v,m)}),l=Yt(v=>{!r||v==null||a.start(v,()=>{s(null,"timeout")})});p.useEffect(()=>(o&&l(t),a.clear),[o,t,l,a]);const c=v=>{r==null||r(v,"clickaway")},u=a.clear,f=p.useCallback(()=>{t!=null&&l(i??t*.5)},[t,i,l]),h=v=>m=>{const b=v.onBlur;b==null||b(m),f()},w=v=>m=>{const b=v.onFocus;b==null||b(m),u()},y=v=>m=>{const b=v.onMouseEnter;b==null||b(m),u()},x=v=>m=>{const b=v.onMouseLeave;b==null||b(m),f()};return p.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",f),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",u)}},[n,o,f,u]),{getRootProps:(v={})=>{const m=S({},Tc(e),Tc(v));return S({role:"presentation"},v,m,{onBlur:h(m),onFocus:w(m),onMouseEnter:y(m),onMouseLeave:x(m)})},onClickAway:c}}const dO=["onChange","maxRows","minRows","style","value"];function ml(e){return parseInt(e,10)||0}const fO={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function pO(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const hO=p.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:s}=t,l=se(t,dO),{current:c}=p.useRef(s!=null),u=p.useRef(null),f=lt(n,u),h=p.useRef(null),w=p.useCallback(()=>{const C=u.current,m=Bn(C).getComputedStyle(C);if(m.width==="0px")return{outerHeightStyle:0,overflowing:!1};const b=h.current;b.style.width=m.width,b.value=C.value||t.placeholder||"x",b.value.slice(-1)===` +`&&(b.value+=" ");const R=m.boxSizing,k=ml(m.paddingBottom)+ml(m.paddingTop),T=ml(m.borderBottomWidth)+ml(m.borderTopWidth),P=b.scrollHeight;b.value="x";const j=b.scrollHeight;let N=P;i&&(N=Math.max(Number(i)*j,N)),o&&(N=Math.min(Number(o)*j,N)),N=Math.max(N,j);const O=N+(R==="border-box"?k+T:0),F=Math.abs(N-P)<=1;return{outerHeightStyle:O,overflowing:F}},[o,i,t.placeholder]),y=p.useCallback(()=>{const C=w();if(pO(C))return;const v=u.current;v.style.height=`${C.outerHeightStyle}px`,v.style.overflow=C.overflowing?"hidden":""},[w]);Sn(()=>{const C=()=>{y()};let v;const m=ea(C),b=u.current,R=Bn(b);R.addEventListener("resize",m);let k;return typeof ResizeObserver<"u"&&(k=new ResizeObserver(C),k.observe(b)),()=>{m.clear(),cancelAnimationFrame(v),R.removeEventListener("resize",m),k&&k.disconnect()}},[w,y]),Sn(()=>{y()});const x=C=>{c||y(),r&&r(C)};return d.jsxs(p.Fragment,{children:[d.jsx("textarea",S({value:s,onChange:x,ref:f,rows:i,style:a},l)),d.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:S({},fO.shadow,a,{paddingTop:0,paddingBottom:0})})]})});var wm={};Object.defineProperty(wm,"__esModule",{value:!0});var qw=wm.default=void 0,mO=vO(p),gO=Pw;function Gw(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Gw=function(r){return r?n:t})(e)}function vO(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Gw(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function yO(e){return Object.keys(e).length===0}function xO(e=null){const t=mO.useContext(gO.ThemeContext);return!t||yO(t)?e:t}qw=wm.default=xO;const bO=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],wO=ie(cO,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Kw=p.forwardRef(function(t,n){var r;const o=qw(),i=Re({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:l,componentsProps:c,container:u,disablePortal:f,keepMounted:h,modifiers:w,open:y,placement:x,popperOptions:C,popperRef:v,transition:m,slots:b,slotProps:R}=i,k=se(i,bO),T=(r=b==null?void 0:b.root)!=null?r:l==null?void 0:l.Root,P=S({anchorEl:a,container:u,disablePortal:f,keepMounted:h,modifiers:w,open:y,placement:x,popperOptions:C,popperRef:v,transition:m},k);return d.jsx(wO,S({as:s,direction:o==null?void 0:o.direction,slots:{root:T},slotProps:R??c},P,{ref:n}))}),SO=Vt(d.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function CO(e){return be("MuiChip",e)}const Be=we("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),RO=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],kO=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:a,clickable:s,variant:l}=e,c={root:["root",l,n&&"disabled",`size${Z(r)}`,`color${Z(o)}`,s&&"clickable",s&&`clickableColor${Z(o)}`,a&&"deletable",a&&`deletableColor${Z(o)}`,`${l}${Z(o)}`],label:["label",`label${Z(r)}`],avatar:["avatar",`avatar${Z(r)}`,`avatarColor${Z(o)}`],icon:["icon",`icon${Z(r)}`,`iconColor${Z(i)}`],deleteIcon:["deleteIcon",`deleteIcon${Z(r)}`,`deleteIconColor${Z(o)}`,`deleteIcon${Z(l)}Color${Z(o)}`]};return Se(c,CO,t)},PO=ie("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:a,size:s,variant:l}=n;return[{[`& .${Be.avatar}`]:t.avatar},{[`& .${Be.avatar}`]:t[`avatar${Z(s)}`]},{[`& .${Be.avatar}`]:t[`avatarColor${Z(r)}`]},{[`& .${Be.icon}`]:t.icon},{[`& .${Be.icon}`]:t[`icon${Z(s)}`]},{[`& .${Be.icon}`]:t[`iconColor${Z(o)}`]},{[`& .${Be.deleteIcon}`]:t.deleteIcon},{[`& .${Be.deleteIcon}`]:t[`deleteIcon${Z(s)}`]},{[`& .${Be.deleteIcon}`]:t[`deleteIconColor${Z(r)}`]},{[`& .${Be.deleteIcon}`]:t[`deleteIcon${Z(l)}Color${Z(r)}`]},t.root,t[`size${Z(s)}`],t[`color${Z(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${Z(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${Z(r)}`],t[l],t[`${l}${Z(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return S({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Be.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Be.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${Be.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Be.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Be.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Be.icon}`]:S({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&S({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${Be.deleteIcon}`]:S({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Fe(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Fe(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Fe(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Be.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fe(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Be.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>S({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fe(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Be.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fe(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${Be.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>S({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Be.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Be.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Be.avatar}`]:{marginLeft:4},[`& .${Be.avatarSmall}`]:{marginLeft:2},[`& .${Be.icon}`]:{marginLeft:4},[`& .${Be.iconSmall}`]:{marginLeft:2},[`& .${Be.deleteIcon}`]:{marginRight:5},[`& .${Be.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Fe(e.palette[t.color].main,.7)}`,[`&.${Be.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Be.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Fe(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Be.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Fe(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),EO=ie("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Z(r)}`]]}})(({ownerState:e})=>S({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function J0(e){return e.key==="Backspace"||e.key==="Delete"}const TO=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:a,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:f,label:h,onClick:w,onDelete:y,onKeyDown:x,onKeyUp:C,size:v="medium",variant:m="filled",tabIndex:b,skipFocusWhenDisabled:R=!1}=r,k=se(r,RO),T=p.useRef(null),P=lt(T,n),j=_=>{_.stopPropagation(),y&&y(_)},N=_=>{_.currentTarget===_.target&&J0(_)&&_.preventDefault(),x&&x(_)},O=_=>{_.currentTarget===_.target&&(y&&J0(_)?y(_):_.key==="Escape"&&T.current&&T.current.blur()),C&&C(_)},F=a!==!1&&w?!0:a,W=F||y?Ir:l||"div",U=S({},r,{component:W,disabled:u,size:v,color:s,iconColor:p.isValidElement(f)&&f.props.color||s,onDelete:!!y,clickable:F,variant:m}),G=kO(U),ee=W===Ir?S({component:l||"div",focusVisibleClassName:G.focusVisible},y&&{disableRipple:!0}):{};let J=null;y&&(J=c&&p.isValidElement(c)?p.cloneElement(c,{className:le(c.props.className,G.deleteIcon),onClick:j}):d.jsx(SO,{className:le(G.deleteIcon),onClick:j}));let re=null;o&&p.isValidElement(o)&&(re=p.cloneElement(o,{className:le(G.avatar,o.props.className)}));let I=null;return f&&p.isValidElement(f)&&(I=p.cloneElement(f,{className:le(G.icon,f.props.className)})),d.jsxs(PO,S({as:W,className:le(G.root,i),disabled:F&&u?!0:void 0,onClick:w,onKeyDown:N,onKeyUp:O,ref:P,tabIndex:R&&u?-1:b,ownerState:U},ee,k,{children:[re||I,d.jsx(EO,{className:le(G.label),ownerState:U,children:h}),J]}))});function vo({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const td=p.createContext(void 0);function br(){return p.useContext(td)}function Yw(e){return d.jsx(n$,S({},e,{defaultTheme:Fu,themeId:Fo}))}function Z0(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Mc(e,t=!1){return e&&(Z0(e.value)&&e.value!==""||t&&Z0(e.defaultValue)&&e.defaultValue!=="")}function $O(e){return e.startAdornment}function MO(e){return be("MuiInputBase",e)}const Ui=we("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),jO=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],nd=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Z(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},rd=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},OO=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:f,size:h,startAdornment:w,type:y}=e,x={root:["root",`color${Z(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",h&&h!=="medium"&&`size${Z(h)}`,u&&"multiline",w&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",y==="search"&&"inputTypeSearch",u&&"inputMultiline",h==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",w&&"inputAdornedStart",i&&"inputAdornedEnd",f&&"readOnly"]};return Se(x,MO,t)},od=ie("div",{name:"MuiInputBase",slot:"Root",overridesResolver:nd})(({theme:e,ownerState:t})=>S({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Ui.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&S({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),id=ie("input",{name:"MuiInputBase",slot:"Input",overridesResolver:rd})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=S({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return S({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ui.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Ui.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),IO=d.jsx(Yw,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),_O=p.forwardRef(function(t,n){var r;const o=Re({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:s,className:l,components:c={},componentsProps:u={},defaultValue:f,disabled:h,disableInjectingGlobalStyles:w,endAdornment:y,fullWidth:x=!1,id:C,inputComponent:v="input",inputProps:m={},inputRef:b,maxRows:R,minRows:k,multiline:T=!1,name:P,onBlur:j,onChange:N,onClick:O,onFocus:F,onKeyDown:W,onKeyUp:U,placeholder:G,readOnly:ee,renderSuffix:J,rows:re,slotProps:I={},slots:_={},startAdornment:E,type:g="text",value:$}=o,z=se(o,jO),L=m.value!=null?m.value:$,{current:B}=p.useRef(L!=null),V=p.useRef(),M=p.useCallback(Ee=>{},[]),A=lt(V,b,m.ref,M),[K,Y]=p.useState(!1),q=br(),oe=vo({props:o,muiFormControl:q,states:["color","disabled","error","hiddenLabel","size","required","filled"]});oe.focused=q?q.focused:K,p.useEffect(()=>{!q&&h&&K&&(Y(!1),j&&j())},[q,h,K,j]);const te=q&&q.onFilled,ne=q&&q.onEmpty,de=p.useCallback(Ee=>{Mc(Ee)?te&&te():ne&&ne()},[te,ne]);Sn(()=>{B&&de({value:L})},[L,de,B]);const ke=Ee=>{if(oe.disabled){Ee.stopPropagation();return}F&&F(Ee),m.onFocus&&m.onFocus(Ee),q&&q.onFocus?q.onFocus(Ee):Y(!0)},H=Ee=>{j&&j(Ee),m.onBlur&&m.onBlur(Ee),q&&q.onBlur?q.onBlur(Ee):Y(!1)},ae=(Ee,...he)=>{if(!B){const Ge=Ee.target||V.current;if(Ge==null)throw new Error(Bo(1));de({value:Ge.value})}m.onChange&&m.onChange(Ee,...he),N&&N(Ee,...he)};p.useEffect(()=>{de(V.current)},[]);const ge=Ee=>{V.current&&Ee.currentTarget===Ee.target&&V.current.focus(),O&&O(Ee)};let D=v,X=m;T&&D==="input"&&(re?X=S({type:void 0,minRows:re,maxRows:re},X):X=S({type:void 0,maxRows:R,minRows:k},X),D=hO);const fe=Ee=>{de(Ee.animationName==="mui-auto-fill-cancel"?V.current:{value:"x"})};p.useEffect(()=>{q&&q.setAdornedStart(!!E)},[q,E]);const pe=S({},o,{color:oe.color||"primary",disabled:oe.disabled,endAdornment:y,error:oe.error,focused:oe.focused,formControl:q,fullWidth:x,hiddenLabel:oe.hiddenLabel,multiline:T,size:oe.size,startAdornment:E,type:g}),ve=OO(pe),Ce=_.root||c.Root||od,Le=I.root||u.root||{},De=_.input||c.Input||id;return X=S({},X,(r=I.input)!=null?r:u.input),d.jsxs(p.Fragment,{children:[!w&&IO,d.jsxs(Ce,S({},Le,!Ni(Ce)&&{ownerState:S({},pe,Le.ownerState)},{ref:n,onClick:ge},z,{className:le(ve.root,Le.className,l,ee&&"MuiInputBase-readOnly"),children:[E,d.jsx(td.Provider,{value:null,children:d.jsx(De,S({ownerState:pe,"aria-invalid":oe.error,"aria-describedby":i,autoComplete:a,autoFocus:s,defaultValue:f,disabled:oe.disabled,id:C,onAnimationStart:fe,name:P,placeholder:G,readOnly:ee,required:oe.required,rows:re,value:L,onKeyDown:W,onKeyUp:U,type:g},X,!Ni(De)&&{as:D,ownerState:S({},pe,X.ownerState)},{ref:A,className:le(ve.input,X.className,ee&&"MuiInputBase-readOnly"),onBlur:H,onChange:ae,onFocus:ke}))}),y,J?J(S({},oe,{startAdornment:E})):null]}))]})}),Sm=_O;function LO(e){return be("MuiInput",e)}const xa=S({},Ui,we("MuiInput",["root","underline","input"]));function AO(e){return be("MuiOutlinedInput",e)}const Ur=S({},Ui,we("MuiOutlinedInput",["root","notchedOutline","input"]));function NO(e){return be("MuiFilledInput",e)}const xo=S({},Ui,we("MuiFilledInput",["root","underline","input"])),DO=Vt(d.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),zO=Vt(d.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function BO(e){return be("MuiAvatar",e)}we("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const FO=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],UO=Ju(),WO=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Se({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},BO,t)},HO=ie("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:S({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:S({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),VO=ie("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),qO=ie(zO,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function GO({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=p.useState(!1);return p.useEffect(()=>{if(!n&&!r)return;i(!1);let a=!0;const s=new Image;return s.onload=()=>{a&&i("loaded")},s.onerror=()=>{a&&i("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=n,r&&(s.srcset=r),()=>{a=!1}},[e,t,n,r]),o}const Er=p.forwardRef(function(t,n){const r=UO({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:a,component:s="div",slots:l={},slotProps:c={},imgProps:u,sizes:f,src:h,srcSet:w,variant:y="circular"}=r,x=se(r,FO);let C=null;const v=GO(S({},u,{src:h,srcSet:w})),m=h||w,b=m&&v!=="error",R=S({},r,{colorDefault:!b,component:s,variant:y}),k=WO(R),[T,P]=kp("img",{className:k.img,elementType:VO,externalForwardedProps:{slots:l,slotProps:{img:S({},u,c.img)}},additionalProps:{alt:o,src:h,srcSet:w,sizes:f},ownerState:R});return b?C=d.jsx(T,S({},P)):i||i===0?C=i:m&&o?C=o[0]:C=d.jsx(qO,{ownerState:R,className:k.fallback}),d.jsx(HO,S({as:s,ownerState:R,className:le(k.root,a),ref:n},x,{children:C}))}),KO=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],YO={entering:{opacity:1},entered:{opacity:1}},Xw=p.forwardRef(function(t,n){const r=mo(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:l,in:c,onEnter:u,onEntered:f,onEntering:h,onExit:w,onExited:y,onExiting:x,style:C,timeout:v=o,TransitionComponent:m=ar}=t,b=se(t,KO),R=p.useRef(null),k=lt(R,s.ref,n),T=G=>ee=>{if(G){const J=R.current;ee===void 0?G(J):G(J,ee)}},P=T(h),j=T((G,ee)=>{pm(G);const J=Ai({style:C,timeout:v,easing:l},{mode:"enter"});G.style.webkitTransition=r.transitions.create("opacity",J),G.style.transition=r.transitions.create("opacity",J),u&&u(G,ee)}),N=T(f),O=T(x),F=T(G=>{const ee=Ai({style:C,timeout:v,easing:l},{mode:"exit"});G.style.webkitTransition=r.transitions.create("opacity",ee),G.style.transition=r.transitions.create("opacity",ee),w&&w(G)}),W=T(y),U=G=>{i&&i(R.current,G)};return d.jsx(m,S({appear:a,in:c,nodeRef:R,onEnter:j,onEntered:N,onEntering:P,onExit:F,onExited:W,onExiting:O,addEndListener:U,timeout:v},b,{children:(G,ee)=>p.cloneElement(s,S({style:S({opacity:0,visibility:G==="exited"&&!c?"hidden":void 0},YO[G],C,s.props.style),ref:k},ee))}))});function XO(e){return be("MuiBackdrop",e)}we("MuiBackdrop",["root","invisible"]);const QO=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],JO=e=>{const{classes:t,invisible:n}=e;return Se({root:["root",n&&"invisible"]},XO,t)},ZO=ie("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>S({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Qw=p.forwardRef(function(t,n){var r,o,i;const a=Re({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:c="div",components:u={},componentsProps:f={},invisible:h=!1,open:w,slotProps:y={},slots:x={},TransitionComponent:C=Xw,transitionDuration:v}=a,m=se(a,QO),b=S({},a,{component:c,invisible:h}),R=JO(b),k=(r=y.root)!=null?r:f.root;return d.jsx(C,S({in:w,timeout:v},m,{children:d.jsx(ZO,S({"aria-hidden":!0},k,{as:(o=(i=x.root)!=null?i:u.Root)!=null?o:c,className:le(R.root,l,k==null?void 0:k.className),ownerState:S({},b,k==null?void 0:k.ownerState),classes:R,ref:n,children:s}))}))});function e3(e){return be("MuiBadge",e)}const Wr=we("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),t3=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Jd=10,Zd=4,n3=Ju(),r3=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:a={}}=e,s={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${Z(n.vertical)}${Z(n.horizontal)}`,`anchorOrigin${Z(n.vertical)}${Z(n.horizontal)}${Z(o)}`,`overlap${Z(o)}`,t!=="default"&&`color${Z(t)}`]};return Se(s,e3,a)},o3=ie("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),i3=ie("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Z(n.anchorOrigin.vertical)}${Z(n.anchorOrigin.horizontal)}${Z(n.overlap)}`],n.color!=="default"&&t[`color${Z(n.color)}`],n.invisible&&t.invisible]}})(({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Jd*2,lineHeight:1,padding:"0 6px",height:Jd*2,borderRadius:Jd,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r,o;return((r=e.vars)!=null?r:e).palette[n].main&&((o=e.vars)!=null?o:e).palette[n].contrastText}).map(n=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText}})),{props:{variant:"dot"},style:{borderRadius:Zd,height:Zd*2,minWidth:Zd*2,padding:0}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}),a3=p.forwardRef(function(t,n){var r,o,i,a,s,l;const c=n3({props:t,name:"MuiBadge"}),{anchorOrigin:u={vertical:"top",horizontal:"right"},className:f,component:h,components:w={},componentsProps:y={},children:x,overlap:C="rectangular",color:v="default",invisible:m=!1,max:b=99,badgeContent:R,slots:k,slotProps:T,showZero:P=!1,variant:j="standard"}=c,N=se(c,t3),{badgeContent:O,invisible:F,max:W,displayValue:U}=PM({max:b,invisible:m,badgeContent:R,showZero:P}),G=mw({anchorOrigin:u,color:v,overlap:C,variant:j,badgeContent:R}),ee=F||O==null&&j!=="dot",{color:J=v,overlap:re=C,anchorOrigin:I=u,variant:_=j}=ee?G:c,E=_!=="dot"?U:void 0,g=S({},c,{badgeContent:O,invisible:ee,max:W,displayValue:E,showZero:P,anchorOrigin:I,color:J,overlap:re,variant:_}),$=r3(g),z=(r=(o=k==null?void 0:k.root)!=null?o:w.Root)!=null?r:o3,L=(i=(a=k==null?void 0:k.badge)!=null?a:w.Badge)!=null?i:i3,B=(s=T==null?void 0:T.root)!=null?s:y.root,V=(l=T==null?void 0:T.badge)!=null?l:y.badge,M=fn({elementType:z,externalSlotProps:B,externalForwardedProps:N,additionalProps:{ref:n,as:h},ownerState:g,className:le(B==null?void 0:B.className,$.root,f)}),A=fn({elementType:L,externalSlotProps:V,ownerState:g,className:le($.badge,V==null?void 0:V.className)});return d.jsxs(z,S({},M,{children:[x,d.jsx(L,S({},A,{children:E}))]}))}),s3=we("MuiBox",["root"]),l3=Ns(),at=l$({themeId:Fo,defaultTheme:l3,defaultClassName:s3.root,generateClassName:Zh.generate});function c3(e){return be("MuiButton",e)}const gl=we("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),u3=p.createContext({}),d3=p.createContext(void 0),f3=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],p3=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,s={root:["root",i,`${i}${Z(t)}`,`size${Z(o)}`,`${i}Size${Z(o)}`,`color${Z(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Z(o)}`],endIcon:["icon","endIcon",`iconSize${Z(o)}`]},l=Se(s,c3,a);return S({},a,l)},Jw=e=>S({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),h3=ie(Ir,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Z(n.color)}`],t[`size${Z(n.size)}`],t[`${n.variant}Size${Z(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return S({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":S({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":S({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${gl.focusVisible}`]:S({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${gl.disabled}`]:S({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Fe(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${gl.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${gl.disabled}`]:{boxShadow:"none"}}),m3=ie("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Z(n.size)}`]]}})(({ownerState:e})=>S({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Jw(e))),g3=ie("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Z(n.size)}`]]}})(({ownerState:e})=>S({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Jw(e))),kt=p.forwardRef(function(t,n){const r=p.useContext(u3),o=p.useContext(d3),i=nm(r,t),a=Re({props:i,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:f=!1,disableElevation:h=!1,disableFocusRipple:w=!1,endIcon:y,focusVisibleClassName:x,fullWidth:C=!1,size:v="medium",startIcon:m,type:b,variant:R="text"}=a,k=se(a,f3),T=S({},a,{color:l,component:c,disabled:f,disableElevation:h,disableFocusRipple:w,fullWidth:C,size:v,type:b,variant:R}),P=p3(T),j=m&&d.jsx(m3,{className:P.startIcon,ownerState:T,children:m}),N=y&&d.jsx(g3,{className:P.endIcon,ownerState:T,children:y}),O=o||"";return d.jsxs(h3,S({ownerState:T,className:le(r.className,P.root,u,O),component:c,disabled:f,focusRipple:!w,focusVisibleClassName:le(P.focusVisible,x),ref:n,type:b},k,{classes:P,children:[j,s,N]}))});function v3(e){return be("MuiCard",e)}we("MuiCard",["root"]);const y3=["className","raised"],x3=e=>{const{classes:t}=e;return Se({root:["root"]},v3,t)},b3=ie(En,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),ad=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiCard"}),{className:o,raised:i=!1}=r,a=se(r,y3),s=S({},r,{raised:i}),l=x3(s);return d.jsx(b3,S({className:le(l.root,o),elevation:i?8:void 0,ref:n,ownerState:s},a))});function w3(e){return be("MuiCardContent",e)}we("MuiCardContent",["root"]);const S3=["className","component"],C3=e=>{const{classes:t}=e;return Se({root:["root"]},w3,t)},R3=ie("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),Cm=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiCardContent"}),{className:o,component:i="div"}=r,a=se(r,S3),s=S({},r,{component:i}),l=C3(s);return d.jsx(R3,S({as:i,className:le(l.root,o),ownerState:s,ref:n},a))});function k3(e){return be("PrivateSwitchBase",e)}we("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const P3=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],E3=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${Z(o)}`],input:["input"]};return Se(i,k3,t)},T3=ie(Ir)(({ownerState:e})=>S({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),$3=ie("input",{shouldForwardProp:Ht})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Zw=p.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:a,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:f,id:h,inputProps:w,inputRef:y,name:x,onBlur:C,onChange:v,onFocus:m,readOnly:b,required:R=!1,tabIndex:k,type:T,value:P}=t,j=se(t,P3),[N,O]=gs({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),F=br(),W=_=>{m&&m(_),F&&F.onFocus&&F.onFocus(_)},U=_=>{C&&C(_),F&&F.onBlur&&F.onBlur(_)},G=_=>{if(_.nativeEvent.defaultPrevented)return;const E=_.target.checked;O(E),v&&v(_,E)};let ee=l;F&&typeof ee>"u"&&(ee=F.disabled);const J=T==="checkbox"||T==="radio",re=S({},t,{checked:N,disabled:ee,disableFocusRipple:c,edge:u}),I=E3(re);return d.jsxs(T3,S({component:"span",className:le(I.root,a),centerRipple:!0,focusRipple:!c,disabled:ee,tabIndex:null,role:void 0,onFocus:W,onBlur:U,ownerState:re,ref:n},j,{children:[d.jsx($3,S({autoFocus:r,checked:o,defaultChecked:s,className:I.input,disabled:ee,id:J?h:void 0,name:x,onChange:G,readOnly:b,ref:y,required:R,ownerState:re,tabIndex:k,type:T},T==="checkbox"&&P===void 0?{}:{value:P},w)),N?i:f]}))}),M3=Vt(d.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),j3=Vt(d.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),O3=Vt(d.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function I3(e){return be("MuiCheckbox",e)}const ef=we("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),_3=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],L3=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate",`color${Z(r)}`,`size${Z(o)}`]},a=Se(i,I3,t);return S({},t,a)},A3=ie(Zw,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Z(n.size)}`],n.color!=="default"&&t[`color${Z(n.color)}`]]}})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${ef.checked}, &.${ef.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${ef.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),N3=d.jsx(j3,{}),D3=d.jsx(M3,{}),z3=d.jsx(O3,{}),Rm=p.forwardRef(function(t,n){var r,o;const i=Re({props:t,name:"MuiCheckbox"}),{checkedIcon:a=N3,color:s="primary",icon:l=D3,indeterminate:c=!1,indeterminateIcon:u=z3,inputProps:f,size:h="medium",className:w}=i,y=se(i,_3),x=c?u:l,C=c?u:a,v=S({},i,{color:s,indeterminate:c,size:h}),m=L3(v);return d.jsx(A3,S({type:"checkbox",inputProps:S({"data-indeterminate":c},f),icon:p.cloneElement(x,{fontSize:(r=x.props.fontSize)!=null?r:h}),checkedIcon:p.cloneElement(C,{fontSize:(o=C.props.fontSize)!=null?o:h}),ownerState:v,ref:n,className:le(m.root,w)},y,{classes:m}))});function B3(e){return be("MuiCircularProgress",e)}we("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const F3=["className","color","disableShrink","size","style","thickness","value","variant"];let sd=e=>e,ey,ty,ny,ry;const Hr=44,U3=Qi(ey||(ey=sd` 0% { transform: rotate(0deg); } @@ -193,7 +193,7 @@ Error generating stack: `+i.message+` animation: ${0} 1.4s linear infinite; `),U3)),q3=ie("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),G3=ie("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Z(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>S({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&wu(ry||(ry=sd` animation: ${0} 1.4s ease-in-out infinite; - `),W3)),_n=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:s=40,style:l,thickness:c=3.6,value:u=0,variant:f="indeterminate"}=r,h=se(r,F3),w=S({},r,{color:i,disableShrink:a,size:s,thickness:c,value:u,variant:f}),y=H3(w),x={},C={},v={};if(f==="determinate"){const m=2*Math.PI*((Hr-c)/2);x.strokeDasharray=m.toFixed(3),v["aria-valuenow"]=Math.round(u),x.strokeDashoffset=`${((100-u)/100*m).toFixed(3)}px`,C.transform="rotate(-90deg)"}return d.jsx(V3,S({className:le(y.root,o),style:S({width:s,height:s},C,l),ownerState:w,ref:n,role:"progressbar"},v,h,{children:d.jsx(q3,{className:y.svg,ownerState:w,viewBox:`${Hr/2} ${Hr/2} ${Hr} ${Hr}`,children:d.jsx(G3,{className:y.circle,style:x,ownerState:w,cx:Hr,cy:Hr,r:(Hr-c)/2,fill:"none",strokeWidth:c})})}))}),e2=Z$({createStyledComponent:ie("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Z(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Re({props:e,name:"MuiContainer"})}),K3=(e,t)=>S({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),Y3=e=>S({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),X3=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([a,s])=>{var l;r[e.getColorSchemeSelector(a).replace(/\s*&/,"")]={colorScheme:(l=s.palette)==null?void 0:l.mode}});let o=S({html:K3(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:S({margin:0},Y3(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const i=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return i&&(o=[o,i]),o};function km(e){const t=Re({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return d.jsxs(p.Fragment,{children:[d.jsx(Yw,{styles:o=>X3(o,r)}),n]})}function Q3(e){return be("MuiModal",e)}we("MuiModal",["root","hidden","backdrop"]);const J3=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Z3=e=>{const{open:t,exited:n,classes:r}=e;return Se({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Q3,r)},eI=ie("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>S({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),tI=ie(Qw,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Pm=p.forwardRef(function(t,n){var r,o,i,a,s,l;const c=Re({name:"MuiModal",props:t}),{BackdropComponent:u=tI,BackdropProps:f,className:h,closeAfterTransition:w=!1,children:y,container:x,component:C,components:v={},componentsProps:m={},disableAutoFocus:b=!1,disableEnforceFocus:R=!1,disableEscapeKeyDown:k=!1,disablePortal:T=!1,disableRestoreFocus:P=!1,disableScrollLock:j=!1,hideBackdrop:N=!1,keepMounted:O=!1,onBackdropClick:F,open:W,slotProps:U,slots:G}=c,ee=se(c,J3),J=S({},c,{closeAfterTransition:w,disableAutoFocus:b,disableEnforceFocus:R,disableEscapeKeyDown:k,disablePortal:T,disableRestoreFocus:P,disableScrollLock:j,hideBackdrop:N,keepMounted:O}),{getRootProps:re,getBackdropProps:I,getTransitionProps:_,portalRef:E,isTopModal:g,exited:$,hasTransition:z}=KM(S({},J,{rootRef:n})),L=S({},J,{exited:$}),B=Z3(L),V={};if(y.props.tabIndex===void 0&&(V.tabIndex="-1"),z){const{onEnter:te,onExited:ne}=_();V.onEnter=te,V.onExited=ne}const M=(r=(o=G==null?void 0:G.root)!=null?o:v.Root)!=null?r:eI,A=(i=(a=G==null?void 0:G.backdrop)!=null?a:v.Backdrop)!=null?i:u,Y=(s=U==null?void 0:U.root)!=null?s:m.root,K=(l=U==null?void 0:U.backdrop)!=null?l:m.backdrop,q=fn({elementType:M,externalSlotProps:Y,externalForwardedProps:ee,getSlotProps:re,additionalProps:{ref:n,as:C},ownerState:L,className:le(h,Y==null?void 0:Y.className,B==null?void 0:B.root,!L.open&&L.exited&&(B==null?void 0:B.hidden))}),oe=fn({elementType:A,externalSlotProps:K,additionalProps:f,getSlotProps:te=>I(S({},te,{onClick:ne=>{F&&F(ne),te!=null&&te.onClick&&te.onClick(ne)}})),className:le(K==null?void 0:K.className,f==null?void 0:f.className,B==null?void 0:B.backdrop),ownerState:L});return!O&&!W&&(!z||$)?null:d.jsx(Lw,{ref:E,container:x,disablePortal:T,children:d.jsxs(M,S({},q,{children:[!N&&u?d.jsx(A,S({},oe)):null,d.jsx(DM,{disableEnforceFocus:R,disableAutoFocus:b,disableRestoreFocus:P,isEnabled:g,open:W,children:p.cloneElement(y,V)})]}))})});function nI(e){return be("MuiDialog",e)}const tf=we("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),t2=p.createContext({}),rI=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],oI=ie(Qw,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),iI=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,a={root:["root"],container:["container",`scroll${Z(n)}`],paper:["paper",`paperScroll${Z(n)}`,`paperWidth${Z(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return Se(a,nI,t)},aI=ie(Pm,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),sI=ie("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Z(n.scroll)}`]]}})(({ownerState:e})=>S({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),lI=ie(En,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Z(n.scroll)}`],t[`paperWidth${Z(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>S({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${tf.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${tf.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${tf.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Mp=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialog"}),o=mo(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,BackdropComponent:l,BackdropProps:c,children:u,className:f,disableEscapeKeyDown:h=!1,fullScreen:w=!1,fullWidth:y=!1,maxWidth:x="sm",onBackdropClick:C,onClick:v,onClose:m,open:b,PaperComponent:R=En,PaperProps:k={},scroll:T="paper",TransitionComponent:P=Xw,transitionDuration:j=i,TransitionProps:N}=r,O=se(r,rI),F=S({},r,{disableEscapeKeyDown:h,fullScreen:w,fullWidth:y,maxWidth:x,scroll:T}),W=iI(F),U=p.useRef(),G=I=>{U.current=I.target===I.currentTarget},ee=I=>{v&&v(I),U.current&&(U.current=null,C&&C(I),m&&m(I,"backdropClick"))},J=_s(s),re=p.useMemo(()=>({titleId:J}),[J]);return d.jsx(aI,S({className:le(W.root,f),closeAfterTransition:!0,components:{Backdrop:oI},componentsProps:{backdrop:S({transitionDuration:j,as:l},c)},disableEscapeKeyDown:h,onClose:m,open:b,ref:n,onClick:ee,ownerState:F},O,{children:d.jsx(P,S({appear:!0,in:b,timeout:j,role:"presentation"},N,{children:d.jsx(sI,{className:le(W.container),onMouseDown:G,ownerState:F,children:d.jsx(lI,S({as:R,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":J},k,{className:le(W.paper,k.className),ownerState:F,children:d.jsx(t2.Provider,{value:re,children:u})}))})}))}))});function cI(e){return be("MuiDialogActions",e)}we("MuiDialogActions",["root","spacing"]);const uI=["className","disableSpacing"],dI=e=>{const{classes:t,disableSpacing:n}=e;return Se({root:["root",!n&&"spacing"]},cI,t)},fI=ie("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>S({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),jp=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1}=r,a=se(r,uI),s=S({},r,{disableSpacing:i}),l=dI(s);return d.jsx(fI,S({className:le(l.root,o),ownerState:s,ref:n},a))});function pI(e){return be("MuiDialogContent",e)}we("MuiDialogContent",["root","dividers"]);function hI(e){return be("MuiDialogTitle",e)}const mI=we("MuiDialogTitle",["root"]),gI=["className","dividers"],vI=e=>{const{classes:t,dividers:n}=e;return Se({root:["root",n&&"dividers"]},pI,t)},yI=ie("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>S({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${mI.root} + &`]:{paddingTop:0}})),Op=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,a=se(r,gI),s=S({},r,{dividers:i}),l=vI(s);return d.jsx(yI,S({className:le(l.root,o),ownerState:s,ref:n},a))});function xI(e){return be("MuiDialogContentText",e)}we("MuiDialogContentText",["root"]);const bI=["children","className"],wI=e=>{const{classes:t}=e,r=Se({root:["root"]},xI,t);return S({},t,r)},SI=ie(Ie,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),n2=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialogContentText"}),{className:o}=r,i=se(r,bI),a=wI(i);return d.jsx(SI,S({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:i,className:le(a.root,o)},r,{classes:a}))}),CI=["className","id"],RI=e=>{const{classes:t}=e;return Se({root:["root"]},hI,t)},kI=ie(Ie,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Ip=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialogTitle"}),{className:o,id:i}=r,a=se(r,CI),s=r,l=RI(s),{titleId:c=i}=p.useContext(t2);return d.jsx(kI,S({component:"h2",className:le(l.root,o),ownerState:s,ref:n,variant:"h6",id:i??c},a))});function PI(e){return be("MuiDivider",e)}const oy=we("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),EI=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],TI=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return Se({root:["root",t&&"absolute",l,i&&"light",a==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",s==="right"&&a!=="vertical"&&"textAlignRight",s==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},PI,r)},$I=ie("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>S({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Fe(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>S({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>S({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>S({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>S({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),MI=ie("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>S({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),xs=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:a,component:s=i?"div":"hr",flexItem:l=!1,light:c=!1,orientation:u="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:h="center",variant:w="fullWidth"}=r,y=se(r,EI),x=S({},r,{absolute:o,component:s,flexItem:l,light:c,orientation:u,role:f,textAlign:h,variant:w}),C=TI(x);return d.jsx($I,S({as:s,className:le(C.root,a),role:f,ref:n,ownerState:x},y,{children:i?d.jsx(MI,{className:C.wrapper,ownerState:x,children:i}):null}))});xs.muiSkipListHighlight=!0;const jI=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function OI(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=Bn(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const c=i.getComputedStyle(t);a=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let s=0,l=0;if(a&&a!=="none"&&typeof a=="string"){const c=a.split("(")[1].split(")")[0].split(",");s=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?o?`translateX(${o.right+s-r.left}px)`:`translateX(${i.innerWidth+s-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function II(e){return typeof e=="function"?e():e}function vl(e,t,n){const r=II(n),o=OI(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const _I=p.forwardRef(function(t,n){const r=mo(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,container:c,direction:u="down",easing:f=o,in:h,onEnter:w,onEntered:y,onEntering:x,onExit:C,onExited:v,onExiting:m,style:b,timeout:R=i,TransitionComponent:k=ar}=t,T=se(t,jI),P=p.useRef(null),j=lt(l.ref,P,n),N=I=>_=>{I&&(_===void 0?I(P.current):I(P.current,_))},O=N((I,_)=>{vl(u,I,c),pm(I),w&&w(I,_)}),F=N((I,_)=>{const E=Ai({timeout:R,style:b,easing:f},{mode:"enter"});I.style.webkitTransition=r.transitions.create("-webkit-transform",S({},E)),I.style.transition=r.transitions.create("transform",S({},E)),I.style.webkitTransform="none",I.style.transform="none",x&&x(I,_)}),W=N(y),U=N(m),G=N(I=>{const _=Ai({timeout:R,style:b,easing:f},{mode:"exit"});I.style.webkitTransition=r.transitions.create("-webkit-transform",_),I.style.transition=r.transitions.create("transform",_),vl(u,I,c),C&&C(I)}),ee=N(I=>{I.style.webkitTransition="",I.style.transition="",v&&v(I)}),J=I=>{a&&a(P.current,I)},re=p.useCallback(()=>{P.current&&vl(u,P.current,c)},[u,c]);return p.useEffect(()=>{if(h||u==="down"||u==="right")return;const I=ea(()=>{P.current&&vl(u,P.current,c)}),_=Bn(P.current);return _.addEventListener("resize",I),()=>{I.clear(),_.removeEventListener("resize",I)}},[u,h,c]),p.useEffect(()=>{h||re()},[h,re]),d.jsx(k,S({nodeRef:P,onEnter:O,onEntered:W,onEntering:F,onExit:G,onExited:ee,onExiting:U,addEndListener:J,appear:s,in:h,timeout:R},T,{children:(I,_)=>p.cloneElement(l,S({ref:j,style:S({visibility:I==="exited"&&!h?"hidden":void 0},b,l.props.style)},_))}))});function LI(e){return be("MuiDrawer",e)}we("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const AI=["BackdropProps"],NI=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],r2=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},DI=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Z(n)}`,r!=="temporary"&&`paperAnchorDocked${Z(n)}`]};return Se(o,LI,t)},zI=ie(Pm,{name:"MuiDrawer",slot:"Root",overridesResolver:r2})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),iy=ie("div",{shouldForwardProp:Ht,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:r2})({flex:"0 0 auto"}),BI=ie(En,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${Z(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${Z(n.anchor)}`]]}})(({theme:e,ownerState:t})=>S({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),o2={left:"right",right:"left",top:"down",bottom:"up"};function FI(e){return["left","right"].indexOf(e)!==-1}function UI({direction:e},t){return e==="rtl"&&FI(t)?o2[t]:t}const WI=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDrawer"}),o=mo(),i=As(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:l,children:c,className:u,elevation:f=16,hideBackdrop:h=!1,ModalProps:{BackdropProps:w}={},onClose:y,open:x=!1,PaperProps:C={},SlideProps:v,TransitionComponent:m=_I,transitionDuration:b=a,variant:R="temporary"}=r,k=se(r.ModalProps,AI),T=se(r,NI),P=p.useRef(!1);p.useEffect(()=>{P.current=!0},[]);const j=UI({direction:i?"rtl":"ltr"},s),O=S({},r,{anchor:s,elevation:f,open:x,variant:R},T),F=DI(O),W=d.jsx(BI,S({elevation:R==="temporary"?f:0,square:!0},C,{className:le(F.paper,C.className),ownerState:O,children:c}));if(R==="permanent")return d.jsx(iy,S({className:le(F.root,F.docked,u),ownerState:O,ref:n},T,{children:W}));const U=d.jsx(m,S({in:x,direction:o2[j],timeout:b,appear:P.current},v,{children:W}));return R==="persistent"?d.jsx(iy,S({className:le(F.root,F.docked,u),ownerState:O,ref:n},T,{children:U})):d.jsx(zI,S({BackdropProps:S({},l,w,{transitionDuration:b}),className:le(F.root,F.modal,u),open:x,ownerState:O,onClose:y,hideBackdrop:h,ref:n},T,k,{children:U}))}),HI=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],VI=e=>{const{classes:t,disableUnderline:n}=e,o=Se({root:["root",!n&&"underline"],input:["input"]},NO,t);return S({},t,o)},qI=ie(od,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...nd(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return S({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${xo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${xo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${xo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${xo.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${xo.disabled}, .${xo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${xo.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&S({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),GI=ie(id,{name:"MuiFilledInput",slot:"Input",overridesResolver:rd})(({theme:e,ownerState:t})=>S({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),Em=p.forwardRef(function(t,n){var r,o,i,a;const s=Re({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:f="input",multiline:h=!1,slotProps:w,slots:y={},type:x="text"}=s,C=se(s,HI),v=S({},s,{fullWidth:u,inputComponent:f,multiline:h,type:x}),m=VI(s),b={root:{ownerState:v},input:{ownerState:v}},R=w??c?Qt(b,w??c):b,k=(r=(o=y.root)!=null?o:l.Root)!=null?r:qI,T=(i=(a=y.input)!=null?a:l.Input)!=null?i:GI;return d.jsx(Sm,S({slots:{root:k,input:T},componentsProps:R,fullWidth:u,inputComponent:f,multiline:h,ref:n,type:x},C,{classes:m}))});Em.muiName="Input";function KI(e){return be("MuiFormControl",e)}we("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const YI=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],XI=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Z(n)}`,r&&"fullWidth"]};return Se(o,KI,t)},QI=ie("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,t[`margin${Z(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>S({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),ld=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:f=!1,hiddenLabel:h=!1,margin:w="none",required:y=!1,size:x="medium",variant:C="outlined"}=r,v=se(r,YI),m=S({},r,{color:a,component:s,disabled:l,error:c,fullWidth:f,hiddenLabel:h,margin:w,required:y,size:x,variant:C}),b=XI(m),[R,k]=p.useState(()=>{let U=!1;return o&&p.Children.forEach(o,G=>{if(!Fa(G,["Input","Select"]))return;const ee=Fa(G,["Select"])?G.props.input:G;ee&&$O(ee.props)&&(U=!0)}),U}),[T,P]=p.useState(()=>{let U=!1;return o&&p.Children.forEach(o,G=>{Fa(G,["Input","Select"])&&(Mc(G.props,!0)||Mc(G.props.inputProps,!0))&&(U=!0)}),U}),[j,N]=p.useState(!1);l&&j&&N(!1);const O=u!==void 0&&!l?u:j;let F;const W=p.useMemo(()=>({adornedStart:R,setAdornedStart:k,color:a,disabled:l,error:c,filled:T,focused:O,fullWidth:f,hiddenLabel:h,size:x,onBlur:()=>{N(!1)},onEmpty:()=>{P(!1)},onFilled:()=>{P(!0)},onFocus:()=>{N(!0)},registerEffect:F,required:y,variant:C}),[R,a,l,c,T,O,f,h,F,y,x,C]);return d.jsx(td.Provider,{value:W,children:d.jsx(QI,S({as:s,ownerState:m,className:le(b.root,i),ref:n},v,{children:o}))})}),JI=s4({createStyledComponent:ie("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Re({props:e,name:"MuiStack"})});function ZI(e){return be("MuiFormControlLabel",e)}const Ma=we("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),e_=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],t_=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,a={root:["root",n&&"disabled",`labelPlacement${Z(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Se(a,ZI,t)},n_=ie("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ma.label}`]:t.label},t.root,t[`labelPlacement${Z(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>S({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Ma.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Ma.label}`]:{[`&.${Ma.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),r_=ie("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Ma.error}`]:{color:(e.vars||e).palette.error.main}})),Tm=p.forwardRef(function(t,n){var r,o;const i=Re({props:t,name:"MuiFormControlLabel"}),{className:a,componentsProps:s={},control:l,disabled:c,disableTypography:u,label:f,labelPlacement:h="end",required:w,slotProps:y={}}=i,x=se(i,e_),C=br(),v=(r=c??l.props.disabled)!=null?r:C==null?void 0:C.disabled,m=w??l.props.required,b={disabled:v,required:m};["checked","name","onChange","value","inputRef"].forEach(N=>{typeof l.props[N]>"u"&&typeof i[N]<"u"&&(b[N]=i[N])});const R=vo({props:i,muiFormControl:C,states:["error"]}),k=S({},i,{disabled:v,labelPlacement:h,required:m,error:R.error}),T=t_(k),P=(o=y.typography)!=null?o:s.typography;let j=f;return j!=null&&j.type!==Ie&&!u&&(j=d.jsx(Ie,S({component:"span"},P,{className:le(T.label,P==null?void 0:P.className),children:j}))),d.jsxs(n_,S({className:le(T.root,a),ownerState:k,ref:n},x,{children:[p.cloneElement(l,b),m?d.jsxs(JI,{display:"block",children:[j,d.jsxs(r_,{ownerState:k,"aria-hidden":!0,className:T.asterisk,children:[" ","*"]})]}):j]}))});function o_(e){return be("MuiFormGroup",e)}we("MuiFormGroup",["root","row","error"]);const i_=["className","row"],a_=e=>{const{classes:t,row:n,error:r}=e;return Se({root:["root",n&&"row",r&&"error"]},o_,t)},s_=ie("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>S({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),i2=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiFormGroup"}),{className:o,row:i=!1}=r,a=se(r,i_),s=br(),l=vo({props:r,muiFormControl:s,states:["error"]}),c=S({},r,{row:i,error:l.error}),u=a_(c);return d.jsx(s_,S({className:le(u.root,o),ownerState:c,ref:n},a))});function l_(e){return be("MuiFormHelperText",e)}const ay=we("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var sy;const c_=["children","className","component","disabled","error","filled","focused","margin","required","variant"],u_=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:a,focused:s,required:l}=e,c={root:["root",o&&"disabled",i&&"error",r&&`size${Z(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return Se(c,l_,t)},d_=ie("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Z(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${ay.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ay.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),f_=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:a="p"}=r,s=se(r,c_),l=br(),c=vo({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),u=S({},r,{component:a,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=u_(u);return d.jsx(d_,S({as:a,ownerState:u,className:le(f.root,i),ref:n},s,{children:o===" "?sy||(sy=d.jsx("span",{className:"notranslate",children:"​"})):o}))});function p_(e){return be("MuiFormLabel",e)}const Va=we("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),h_=["children","className","color","component","disabled","error","filled","focused","required"],m_=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:s}=e,l={root:["root",`color${Z(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return Se(l,p_,t)},g_=ie("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Va.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Va.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Va.error}`]:{color:(e.vars||e).palette.error.main}})),v_=ie("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Va.error}`]:{color:(e.vars||e).palette.error.main}})),y_=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:a="label"}=r,s=se(r,h_),l=br(),c=vo({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),u=S({},r,{color:c.color||"primary",component:a,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=m_(u);return d.jsxs(g_,S({as:a,ownerState:u,className:le(f.root,i),ref:n},s,{children:[o,c.required&&d.jsxs(v_,{ownerState:u,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),x_=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function _p(e){return`scale(${e}, ${e**2})`}const b_={entering:{opacity:1,transform:_p(1)},entered:{opacity:1,transform:"none"}},nf=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),bs=p.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:f,onExited:h,onExiting:w,style:y,timeout:x="auto",TransitionComponent:C=ar}=t,v=se(t,x_),m=To(),b=p.useRef(),R=mo(),k=p.useRef(null),T=lt(k,i.ref,n),P=ee=>J=>{if(ee){const re=k.current;J===void 0?ee(re):ee(re,J)}},j=P(u),N=P((ee,J)=>{pm(ee);const{duration:re,delay:I,easing:_}=Ai({style:y,timeout:x,easing:a},{mode:"enter"});let E;x==="auto"?(E=R.transitions.getAutoHeightDuration(ee.clientHeight),b.current=E):E=re,ee.style.transition=[R.transitions.create("opacity",{duration:E,delay:I}),R.transitions.create("transform",{duration:nf?E:E*.666,delay:I,easing:_})].join(","),l&&l(ee,J)}),O=P(c),F=P(w),W=P(ee=>{const{duration:J,delay:re,easing:I}=Ai({style:y,timeout:x,easing:a},{mode:"exit"});let _;x==="auto"?(_=R.transitions.getAutoHeightDuration(ee.clientHeight),b.current=_):_=J,ee.style.transition=[R.transitions.create("opacity",{duration:_,delay:re}),R.transitions.create("transform",{duration:nf?_:_*.666,delay:nf?re:re||_*.333,easing:I})].join(","),ee.style.opacity=0,ee.style.transform=_p(.75),f&&f(ee)}),U=P(h),G=ee=>{x==="auto"&&m.start(b.current||0,ee),r&&r(k.current,ee)};return d.jsx(C,S({appear:o,in:s,nodeRef:k,onEnter:N,onEntered:O,onEntering:j,onExit:W,onExited:U,onExiting:F,addEndListener:G,timeout:x==="auto"?null:x},v,{children:(ee,J)=>p.cloneElement(i,S({style:S({opacity:0,transform:_p(.75),visibility:ee==="exited"&&!s?"hidden":void 0},b_[ee],y,i.props.style),ref:T},J))}))});bs.muiSupportAuto=!0;const w_=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],S_=e=>{const{classes:t,disableUnderline:n}=e,o=Se({root:["root",!n&&"underline"],input:["input"]},LO,t);return S({},t,o)},C_=ie(od,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...nd(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),S({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${xa.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${xa.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${xa.disabled}, .${xa.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${xa.disabled}:before`]:{borderBottomStyle:"dotted"}})}),R_=ie(id,{name:"MuiInput",slot:"Input",overridesResolver:rd})({}),$m=p.forwardRef(function(t,n){var r,o,i,a;const s=Re({props:t,name:"MuiInput"}),{disableUnderline:l,components:c={},componentsProps:u,fullWidth:f=!1,inputComponent:h="input",multiline:w=!1,slotProps:y,slots:x={},type:C="text"}=s,v=se(s,w_),m=S_(s),R={root:{ownerState:{disableUnderline:l}}},k=y??u?Qt(y??u,R):R,T=(r=(o=x.root)!=null?o:c.Root)!=null?r:C_,P=(i=(a=x.input)!=null?a:c.Input)!=null?i:R_;return d.jsx(Sm,S({slots:{root:T,input:P},slotProps:k,fullWidth:f,inputComponent:h,multiline:w,ref:n,type:C},v,{classes:m}))});$m.muiName="Input";function k_(e){return be("MuiInputAdornment",e)}const ly=we("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var cy;const P_=["children","className","component","disablePointerEvents","disableTypography","position","variant"],E_=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Z(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},T_=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${Z(o)}`,a,r&&"hiddenLabel",i&&`size${Z(i)}`]};return Se(s,k_,t)},$_=ie("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:E_})(({theme:e,ownerState:t})=>S({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${ly.positionStart}&:not(.${ly.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),jc=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u}=r,f=se(r,P_),h=br()||{};let w=u;u&&h.variant,h&&!w&&(w=h.variant);const y=S({},r,{hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:s,position:c,variant:w}),x=T_(y);return d.jsx(td.Provider,{value:null,children:d.jsx($_,S({as:a,ownerState:y,className:le(x.root,i),ref:n},f,{children:typeof o=="string"&&!l?d.jsx(Ie,{color:"text.secondary",children:o}):d.jsxs(p.Fragment,{children:[c==="start"?cy||(cy=d.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})});function M_(e){return be("MuiInputLabel",e)}we("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const j_=["disableAnimation","margin","shrink","variant","className"],O_=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:s}=e,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${Z(r)}`,a],asterisk:[s&&"asterisk"]},c=Se(l,M_,t);return S({},t,c)},I_=ie(y_,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Va.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>S({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&S({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&S({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&S({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),cd=p.forwardRef(function(t,n){const r=Re({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:a}=r,s=se(r,j_),l=br();let c=i;typeof c>"u"&&l&&(c=l.filled||l.focused||l.adornedStart);const u=vo({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),f=S({},r,{disableAnimation:o,formControl:l,shrink:c,size:u.size,variant:u.variant,required:u.required,focused:u.focused}),h=O_(f);return d.jsx(I_,S({"data-shrink":c,ownerState:f,ref:n,className:le(h.root,a)},s,{classes:h}))}),gr=p.createContext({});function __(e){return be("MuiList",e)}we("MuiList",["root","padding","dense","subheader"]);const L_=["children","className","component","dense","disablePadding","subheader"],A_=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Se({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},__,t)},N_=ie("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>S({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Fs=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:c}=r,u=se(r,L_),f=p.useMemo(()=>({dense:s}),[s]),h=S({},r,{component:a,dense:s,disablePadding:l}),w=A_(h);return d.jsx(gr.Provider,{value:f,children:d.jsxs(N_,S({as:a,className:le(w.root,i),ref:n,ownerState:h},u,{children:[c,o]}))})});function D_(e){return be("MuiListItem",e)}const oi=we("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),z_=we("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function B_(e){return be("MuiListItemSecondaryAction",e)}we("MuiListItemSecondaryAction",["root","disableGutters"]);const F_=["className"],U_=e=>{const{disableGutters:t,classes:n}=e;return Se({root:["root",t&&"disableGutters"]},B_,n)},W_=ie("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>S({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),a2=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=se(r,F_),a=p.useContext(gr),s=S({},r,{disableGutters:a.disableGutters}),l=U_(s);return d.jsx(W_,S({className:le(l.root,o),ownerState:s,ref:n},i))});a2.muiName="ListItemSecondaryAction";const H_=["className"],V_=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],q_=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},G_=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=e;return Se({root:["root",o&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},D_,r)},K_=ie("div",{name:"MuiListItem",slot:"Root",overridesResolver:q_})(({theme:e,ownerState:t})=>S({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&S({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${z_.root}`]:{paddingRight:48}},{[`&.${oi.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${oi.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${oi.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${oi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${oi.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Y_=ie("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Oc=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:a=!1,children:s,className:l,component:c,components:u={},componentsProps:f={},ContainerComponent:h="li",ContainerProps:{className:w}={},dense:y=!1,disabled:x=!1,disableGutters:C=!1,disablePadding:v=!1,divider:m=!1,focusVisibleClassName:b,secondaryAction:R,selected:k=!1,slotProps:T={},slots:P={}}=r,j=se(r.ContainerProps,H_),N=se(r,V_),O=p.useContext(gr),F=p.useMemo(()=>({dense:y||O.dense||!1,alignItems:o,disableGutters:C}),[o,O.dense,y,C]),W=p.useRef(null);Sn(()=>{i&&W.current&&W.current.focus()},[i]);const U=p.Children.toArray(s),G=U.length&&Fa(U[U.length-1],["ListItemSecondaryAction"]),ee=S({},r,{alignItems:o,autoFocus:i,button:a,dense:F.dense,disabled:x,disableGutters:C,disablePadding:v,divider:m,hasSecondaryAction:G,selected:k}),J=G_(ee),re=lt(W,n),I=P.root||u.Root||K_,_=T.root||f.root||{},E=S({className:le(J.root,_.className,l),disabled:x},N);let g=c||"li";return a&&(E.component=c||"div",E.focusVisibleClassName=le(oi.focusVisible,b),g=Ir),G?(g=!E.component&&!c?"div":g,h==="li"&&(g==="li"?g="div":E.component==="li"&&(E.component="div")),d.jsx(gr.Provider,{value:F,children:d.jsxs(Y_,S({as:h,className:le(J.container,w),ref:re,ownerState:ee},j,{children:[d.jsx(I,S({},_,!Ni(I)&&{as:g,ownerState:S({},ee,_.ownerState)},E,{children:U})),U.pop()]}))})):d.jsx(gr.Provider,{value:F,children:d.jsxs(I,S({},_,{as:g,ref:re},!Ni(I)&&{ownerState:S({},ee,_.ownerState)},E,{children:[U,R&&d.jsx(a2,{children:R})]}))})});function X_(e){return be("MuiListItemAvatar",e)}we("MuiListItemAvatar",["root","alignItemsFlexStart"]);const Q_=["className"],J_=e=>{const{alignItems:t,classes:n}=e;return Se({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},X_,n)},Z_=ie("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>S({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),eL=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiListItemAvatar"}),{className:o}=r,i=se(r,Q_),a=p.useContext(gr),s=S({},r,{alignItems:a.alignItems}),l=J_(s);return d.jsx(Z_,S({className:le(l.root,o),ownerState:s,ref:n},i))});function tL(e){return be("MuiListItemIcon",e)}const uy=we("MuiListItemIcon",["root","alignItemsFlexStart"]),nL=["className"],rL=e=>{const{alignItems:t,classes:n}=e;return Se({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},tL,n)},oL=ie("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>S({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),dy=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiListItemIcon"}),{className:o}=r,i=se(r,nL),a=p.useContext(gr),s=S({},r,{alignItems:a.alignItems}),l=rL(s);return d.jsx(oL,S({className:le(l.root,o),ownerState:s,ref:n},i))});function iL(e){return be("MuiListItemText",e)}const Ic=we("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),aL=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],sL=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return Se({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},iL,t)},lL=ie("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ic.primary}`]:t.primary},{[`& .${Ic.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>S({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),ws=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:f}=r,h=se(r,aL),{dense:w}=p.useContext(gr);let y=l??o,x=u;const C=S({},r,{disableTypography:a,inset:s,primary:!!y,secondary:!!x,dense:w}),v=sL(C);return y!=null&&y.type!==Ie&&!a&&(y=d.jsx(Ie,S({variant:w?"body2":"body1",className:v.primary,component:c!=null&&c.variant?void 0:"span",display:"block"},c,{children:y}))),x!=null&&x.type!==Ie&&!a&&(x=d.jsx(Ie,S({variant:"body2",className:v.secondary,color:"text.secondary",display:"block"},f,{children:x}))),d.jsxs(lL,S({className:le(v.root,i),ownerState:C,ref:n},h,{children:[y,x]}))}),cL=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function rf(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function fy(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function s2(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function ba(e,t,n,r,o,i){let a=!1,s=o(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!s2(s,i)||l)s=o(e,s,n);else return s.focus(),!0}return!1}const uL=p.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:f="selectedMenu"}=t,h=se(t,cL),w=p.useRef(null),y=p.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Sn(()=>{o&&w.current.focus()},[o]),p.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(b,{direction:R})=>{const k=!w.current.style.width;if(b.clientHeight{const R=w.current,k=b.key,T=St(R).activeElement;if(k==="ArrowDown")b.preventDefault(),ba(R,T,c,l,rf);else if(k==="ArrowUp")b.preventDefault(),ba(R,T,c,l,fy);else if(k==="Home")b.preventDefault(),ba(R,null,c,l,rf);else if(k==="End")b.preventDefault(),ba(R,null,c,l,fy);else if(k.length===1){const P=y.current,j=k.toLowerCase(),N=performance.now();P.keys.length>0&&(N-P.lastTime>500?(P.keys=[],P.repeating=!0,P.previousKeyMatched=!0):P.repeating&&j!==P.keys[0]&&(P.repeating=!1)),P.lastTime=N,P.keys.push(j);const O=T&&!P.repeating&&s2(T,P);P.previousKeyMatched&&(O||ba(R,T,!1,l,rf,P))?b.preventDefault():P.previousKeyMatched=!1}u&&u(b)},C=lt(w,n);let v=-1;p.Children.forEach(a,(b,R)=>{if(!p.isValidElement(b)){v===R&&(v+=1,v>=a.length&&(v=-1));return}b.props.disabled||(f==="selectedMenu"&&b.props.selected||v===-1)&&(v=R),v===R&&(b.props.disabled||b.props.muiSkipListHighlight||b.type.muiSkipListHighlight)&&(v+=1,v>=a.length&&(v=-1))});const m=p.Children.map(a,(b,R)=>{if(R===v){const k={};return i&&(k.autoFocus=!0),b.props.tabIndex===void 0&&f==="selectedMenu"&&(k.tabIndex=0),p.cloneElement(b,k)}return b});return d.jsx(Fs,S({role:"menu",ref:C,className:s,onKeyDown:x,tabIndex:o?0:-1},h,{children:m}))});function dL(e){return be("MuiPopover",e)}we("MuiPopover",["root","paper"]);const fL=["onEntering"],pL=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],hL=["slotProps"];function py(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function hy(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function my(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function of(e){return typeof e=="function"?e():e}const mL=e=>{const{classes:t}=e;return Se({root:["root"],paper:["paper"]},dL,t)},gL=ie(Pm,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),l2=ie(En,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),vL=p.forwardRef(function(t,n){var r,o,i;const a=Re({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:f="anchorEl",children:h,className:w,container:y,elevation:x=8,marginThreshold:C=16,open:v,PaperProps:m={},slots:b,slotProps:R,transformOrigin:k={vertical:"top",horizontal:"left"},TransitionComponent:T=bs,transitionDuration:P="auto",TransitionProps:{onEntering:j}={},disableScrollLock:N=!1}=a,O=se(a.TransitionProps,fL),F=se(a,pL),W=(r=R==null?void 0:R.paper)!=null?r:m,U=p.useRef(),G=lt(U,W.ref),ee=S({},a,{anchorOrigin:c,anchorReference:f,elevation:x,marginThreshold:C,externalPaperSlotProps:W,transformOrigin:k,TransitionComponent:T,transitionDuration:P,TransitionProps:O}),J=mL(ee),re=p.useCallback(()=>{if(f==="anchorPosition")return u;const te=of(l),de=(te&&te.nodeType===1?te:St(U.current).body).getBoundingClientRect();return{top:de.top+py(de,c.vertical),left:de.left+hy(de,c.horizontal)}},[l,c.horizontal,c.vertical,u,f]),I=p.useCallback(te=>({vertical:py(te,k.vertical),horizontal:hy(te,k.horizontal)}),[k.horizontal,k.vertical]),_=p.useCallback(te=>{const ne={width:te.offsetWidth,height:te.offsetHeight},de=I(ne);if(f==="none")return{top:null,left:null,transformOrigin:my(de)};const ke=re();let H=ke.top-de.vertical,ae=ke.left-de.horizontal;const ge=H+ne.height,D=ae+ne.width,X=Bn(of(l)),fe=X.innerHeight-C,pe=X.innerWidth-C;if(C!==null&&Hfe){const ve=ge-fe;H-=ve,de.vertical+=ve}if(C!==null&&aepe){const ve=D-pe;ae-=ve,de.horizontal+=ve}return{top:`${Math.round(H)}px`,left:`${Math.round(ae)}px`,transformOrigin:my(de)}},[l,f,re,I,C]),[E,g]=p.useState(v),$=p.useCallback(()=>{const te=U.current;if(!te)return;const ne=_(te);ne.top!==null&&(te.style.top=ne.top),ne.left!==null&&(te.style.left=ne.left),te.style.transformOrigin=ne.transformOrigin,g(!0)},[_]);p.useEffect(()=>(N&&window.addEventListener("scroll",$),()=>window.removeEventListener("scroll",$)),[l,N,$]);const z=(te,ne)=>{j&&j(te,ne),$()},L=()=>{g(!1)};p.useEffect(()=>{v&&$()}),p.useImperativeHandle(s,()=>v?{updatePosition:()=>{$()}}:null,[v,$]),p.useEffect(()=>{if(!v)return;const te=ea(()=>{$()}),ne=Bn(l);return ne.addEventListener("resize",te),()=>{te.clear(),ne.removeEventListener("resize",te)}},[l,v,$]);let B=P;P==="auto"&&!T.muiSupportAuto&&(B=void 0);const V=y||(l?St(of(l)).body:void 0),M=(o=b==null?void 0:b.root)!=null?o:gL,A=(i=b==null?void 0:b.paper)!=null?i:l2,Y=fn({elementType:A,externalSlotProps:S({},W,{style:E?W.style:S({},W.style,{opacity:0})}),additionalProps:{elevation:x,ref:G},ownerState:ee,className:le(J.paper,W==null?void 0:W.className)}),K=fn({elementType:M,externalSlotProps:(R==null?void 0:R.root)||{},externalForwardedProps:F,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:V,open:v},ownerState:ee,className:le(J.root,w)}),{slotProps:q}=K,oe=se(K,hL);return d.jsx(M,S({},oe,!Ni(M)&&{slotProps:q,disableScrollLock:N},{children:d.jsx(T,S({appear:!0,in:v,onEntering:z,onExited:L,timeout:B},O,{children:d.jsx(A,S({},Y,{children:h}))}))}))});function yL(e){return be("MuiMenu",e)}we("MuiMenu",["root","paper","list"]);const xL=["onEntering"],bL=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],wL={vertical:"top",horizontal:"right"},SL={vertical:"top",horizontal:"left"},CL=e=>{const{classes:t}=e;return Se({root:["root"],paper:["paper"],list:["list"]},yL,t)},RL=ie(vL,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),kL=ie(l2,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),PL=ie(uL,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),c2=p.forwardRef(function(t,n){var r,o;const i=Re({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:f,open:h,PaperProps:w={},PopoverClasses:y,transitionDuration:x="auto",TransitionProps:{onEntering:C}={},variant:v="selectedMenu",slots:m={},slotProps:b={}}=i,R=se(i.TransitionProps,xL),k=se(i,bL),T=As(),P=S({},i,{autoFocus:a,disableAutoFocusItem:c,MenuListProps:u,onEntering:C,PaperProps:w,transitionDuration:x,TransitionProps:R,variant:v}),j=CL(P),N=a&&!c&&h,O=p.useRef(null),F=(I,_)=>{O.current&&O.current.adjustStyleForScrollbar(I,{direction:T?"rtl":"ltr"}),C&&C(I,_)},W=I=>{I.key==="Tab"&&(I.preventDefault(),f&&f(I,"tabKeyDown"))};let U=-1;p.Children.map(s,(I,_)=>{p.isValidElement(I)&&(I.props.disabled||(v==="selectedMenu"&&I.props.selected||U===-1)&&(U=_))});const G=(r=m.paper)!=null?r:kL,ee=(o=b.paper)!=null?o:w,J=fn({elementType:m.root,externalSlotProps:b.root,ownerState:P,className:[j.root,l]}),re=fn({elementType:G,externalSlotProps:ee,ownerState:P,className:j.paper});return d.jsx(RL,S({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:T?"right":"left"},transformOrigin:T?wL:SL,slots:{paper:G,root:m.root},slotProps:{root:J,paper:re},open:h,ref:n,transitionDuration:x,TransitionProps:S({onEntering:F},R),ownerState:P},k,{classes:y,children:d.jsx(PL,S({onKeyDown:W,actions:O,autoFocus:a&&(U===-1||c),autoFocusItem:N,variant:v},u,{className:le(j.list,u.className),children:s}))}))});function EL(e){return be("MuiMenuItem",e)}const wa=we("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),TL=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],$L=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},ML=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,l=Se({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},EL,a);return S({},a,l)},jL=ie(Ir,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:$L})(({theme:e,ownerState:t})=>S({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${wa.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${wa.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${wa.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${wa.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${wa.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${oy.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${oy.inset}`]:{marginLeft:52},[`& .${Ic.root}`]:{marginTop:0,marginBottom:0},[`& .${Ic.inset}`]:{paddingLeft:36},[`& .${uy.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&S({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${uy.root} svg`]:{fontSize:"1.25rem"}}))),Jn=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:f,className:h}=r,w=se(r,TL),y=p.useContext(gr),x=p.useMemo(()=>({dense:a||y.dense||!1,disableGutters:l}),[y.dense,a,l]),C=p.useRef(null);Sn(()=>{o&&C.current&&C.current.focus()},[o]);const v=S({},r,{dense:x.dense,divider:s,disableGutters:l}),m=ML(r),b=lt(C,n);let R;return r.disabled||(R=f!==void 0?f:-1),d.jsx(gr.Provider,{value:x,children:d.jsx(jL,S({ref:b,role:u,tabIndex:R,component:i,focusVisibleClassName:le(m.focusVisible,c),className:le(m.root,h)},w,{ownerState:v,classes:m}))})});function OL(e){return be("MuiNativeSelect",e)}const Mm=we("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),IL=["className","disabled","error","IconComponent","inputRef","variant"],_L=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Z(n)}`,i&&"iconOpen",r&&"disabled"]};return Se(s,OL,t)},u2=({ownerState:e,theme:t})=>S({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":S({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Mm.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),LL=ie("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ht,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Mm.multiple}`]:t.multiple}]}})(u2),d2=({ownerState:e,theme:t})=>S({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Mm.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),AL=ie("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Z(n.variant)}`],n.open&&t.iconOpen]}})(d2),NL=p.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:a,inputRef:s,variant:l="standard"}=t,c=se(t,IL),u=S({},t,{disabled:o,variant:l,error:i}),f=_L(u);return d.jsxs(p.Fragment,{children:[d.jsx(LL,S({ownerState:u,className:le(f.select,r),disabled:o,ref:s||n},c)),t.multiple?null:d.jsx(AL,{as:a,ownerState:u,className:f.icon})]})});var gy;const DL=["children","classes","className","label","notched"],zL=ie("fieldset",{shouldForwardProp:Ht})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),BL=ie("legend",{shouldForwardProp:Ht})(({ownerState:e,theme:t})=>S({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&S({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function FL(e){const{className:t,label:n,notched:r}=e,o=se(e,DL),i=n!=null&&n!=="",a=S({},e,{notched:r,withLabel:i});return d.jsx(zL,S({"aria-hidden":!0,className:t,ownerState:a},o,{children:d.jsx(BL,{ownerState:a,children:i?d.jsx("span",{children:n}):gy||(gy=d.jsx("span",{className:"notranslate",children:"​"}))})}))}const UL=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],WL=e=>{const{classes:t}=e,r=Se({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},AO,t);return S({},t,r)},HL=ie(od,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:nd})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return S({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ur.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ur.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Ur.focused} .${Ur.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Ur.error} .${Ur.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ur.disabled} .${Ur.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&S({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),VL=ie(FL,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),qL=ie(id,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:rd})(({theme:e,ownerState:t})=>S({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),jm=p.forwardRef(function(t,n){var r,o,i,a,s;const l=Re({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:f="input",label:h,multiline:w=!1,notched:y,slots:x={},type:C="text"}=l,v=se(l,UL),m=WL(l),b=br(),R=vo({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),k=S({},l,{color:R.color||"primary",disabled:R.disabled,error:R.error,focused:R.focused,formControl:b,fullWidth:u,hiddenLabel:R.hiddenLabel,multiline:w,size:R.size,type:C}),T=(r=(o=x.root)!=null?o:c.Root)!=null?r:HL,P=(i=(a=x.input)!=null?a:c.Input)!=null?i:qL;return d.jsx(Sm,S({slots:{root:T,input:P},renderSuffix:j=>d.jsx(VL,{ownerState:k,className:m.notchedOutline,label:h!=null&&h!==""&&R.required?s||(s=d.jsxs(p.Fragment,{children:[h," ","*"]})):h,notched:typeof y<"u"?y:!!(j.startAdornment||j.filled||j.focused)}),fullWidth:u,inputComponent:f,multiline:w,ref:n,type:C},v,{classes:S({},m,{notchedOutline:null})}))});jm.muiName="Input";function GL(e){return be("MuiSelect",e)}const Sa=we("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var vy;const KL=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],YL=ie("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Sa.select}`]:t.select},{[`&.${Sa.select}`]:t[n.variant]},{[`&.${Sa.error}`]:t.error},{[`&.${Sa.multiple}`]:t.multiple}]}})(u2,{[`&.${Sa.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),XL=ie("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Z(n.variant)}`],n.open&&t.iconOpen]}})(d2),QL=ie("input",{shouldForwardProp:e=>Tw(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function yy(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function JL(e){return e==null||typeof e=="string"&&!e.trim()}const ZL=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Z(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Se(s,GL,t)},eA=p.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":i,autoFocus:a,autoWidth:s,children:l,className:c,defaultOpen:u,defaultValue:f,disabled:h,displayEmpty:w,error:y=!1,IconComponent:x,inputRef:C,labelId:v,MenuProps:m={},multiple:b,name:R,onBlur:k,onChange:T,onClose:P,onFocus:j,onOpen:N,open:O,readOnly:F,renderValue:W,SelectDisplayProps:U={},tabIndex:G,value:ee,variant:J="standard"}=t,re=se(t,KL),[I,_]=gs({controlled:ee,default:f,name:"Select"}),[E,g]=gs({controlled:O,default:u,name:"Select"}),$=p.useRef(null),z=p.useRef(null),[L,B]=p.useState(null),{current:V}=p.useRef(O!=null),[M,A]=p.useState(),Y=lt(n,C),K=p.useCallback(ye=>{z.current=ye,ye&&B(ye)},[]),q=L==null?void 0:L.parentNode;p.useImperativeHandle(Y,()=>({focus:()=>{z.current.focus()},node:$.current,value:I}),[I]),p.useEffect(()=>{u&&E&&L&&!V&&(A(s?null:q.clientWidth),z.current.focus())},[L,s]),p.useEffect(()=>{a&&z.current.focus()},[a]),p.useEffect(()=>{if(!v)return;const ye=St(z.current).getElementById(v);if(ye){const Pe=()=>{getSelection().isCollapsed&&z.current.focus()};return ye.addEventListener("click",Pe),()=>{ye.removeEventListener("click",Pe)}}},[v]);const oe=(ye,Pe)=>{ye?N&&N(Pe):P&&P(Pe),V||(A(s?null:q.clientWidth),g(ye))},te=ye=>{ye.button===0&&(ye.preventDefault(),z.current.focus(),oe(!0,ye))},ne=ye=>{oe(!1,ye)},de=p.Children.toArray(l),ke=ye=>{const Pe=de.find(ue=>ue.props.value===ye.target.value);Pe!==void 0&&(_(Pe.props.value),T&&T(ye,Pe))},H=ye=>Pe=>{let ue;if(Pe.currentTarget.hasAttribute("tabindex")){if(b){ue=Array.isArray(I)?I.slice():[];const me=I.indexOf(ye.props.value);me===-1?ue.push(ye.props.value):ue.splice(me,1)}else ue=ye.props.value;if(ye.props.onClick&&ye.props.onClick(Pe),I!==ue&&(_(ue),T)){const me=Pe.nativeEvent||Pe,$e=new me.constructor(me.type,me);Object.defineProperty($e,"target",{writable:!0,value:{value:ue,name:R}}),T($e,ye)}b||oe(!1,Pe)}},ae=ye=>{F||[" ","ArrowUp","ArrowDown","Enter"].indexOf(ye.key)!==-1&&(ye.preventDefault(),oe(!0,ye))},ge=L!==null&&E,D=ye=>{!ge&&k&&(Object.defineProperty(ye,"target",{writable:!0,value:{value:I,name:R}}),k(ye))};delete re["aria-invalid"];let X,fe;const pe=[];let ve=!1;(Mc({value:I})||w)&&(W?X=W(I):ve=!0);const Ce=de.map(ye=>{if(!p.isValidElement(ye))return null;let Pe;if(b){if(!Array.isArray(I))throw new Error(Bo(2));Pe=I.some(ue=>yy(ue,ye.props.value)),Pe&&ve&&pe.push(ye.props.children)}else Pe=yy(I,ye.props.value),Pe&&ve&&(fe=ye.props.children);return p.cloneElement(ye,{"aria-selected":Pe?"true":"false",onClick:H(ye),onKeyUp:ue=>{ue.key===" "&&ue.preventDefault(),ye.props.onKeyUp&&ye.props.onKeyUp(ue)},role:"option",selected:Pe,value:void 0,"data-value":ye.props.value})});ve&&(b?pe.length===0?X=null:X=pe.reduce((ye,Pe,ue)=>(ye.push(Pe),ue{const{classes:t}=e;return t},Om={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ht(e)&&e!=="variant",slot:"Root"},oA=ie($m,Om)(""),iA=ie(jm,Om)(""),aA=ie(Em,Om)(""),Us=p.forwardRef(function(t,n){const r=Re({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=DO,id:f,input:h,inputProps:w,label:y,labelId:x,MenuProps:C,multiple:v=!1,native:m=!1,onClose:b,onOpen:R,open:k,renderValue:T,SelectDisplayProps:P,variant:j="outlined"}=r,N=se(r,tA),O=m?NL:eA,F=br(),W=vo({props:r,muiFormControl:F,states:["variant","error"]}),U=W.variant||j,G=S({},r,{variant:U,classes:a}),ee=rA(G),J=se(ee,nA),re=h||{standard:d.jsx(oA,{ownerState:G}),outlined:d.jsx(iA,{label:y,ownerState:G}),filled:d.jsx(aA,{ownerState:G})}[U],I=lt(n,re.ref);return d.jsx(p.Fragment,{children:p.cloneElement(re,S({inputComponent:O,inputProps:S({children:i,error:W.error,IconComponent:u,variant:U,type:void 0,multiple:v},m?{id:f}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:x,MenuProps:C,onClose:b,onOpen:R,open:k,renderValue:T,SelectDisplayProps:S({id:f},P)},w,{classes:w?Qt(J,w.classes):J},h?h.props.inputProps:{})},(v&&m||c)&&U==="outlined"?{notched:!0}:{},{ref:I,className:le(re.props.className,s,ee.root)},!h&&{variant:U},N))})});Us.muiName="Select";function sA(e){return be("MuiSnackbarContent",e)}we("MuiSnackbarContent",["root","message","action"]);const lA=["action","className","message","role"],cA=e=>{const{classes:t}=e;return Se({root:["root"],action:["action"],message:["message"]},sA,t)},uA=ie(En,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=d4(e.palette.background.default,t);return S({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),dA=ie("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),fA=ie("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),pA=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiSnackbarContent"}),{action:o,className:i,message:a,role:s="alert"}=r,l=se(r,lA),c=r,u=cA(c);return d.jsxs(uA,S({role:s,square:!0,elevation:6,className:le(u.root,i),ownerState:c,ref:n},l,{children:[d.jsx(dA,{className:u.message,ownerState:c,children:a}),o?d.jsx(fA,{className:u.action,ownerState:c,children:o}):null]}))});function hA(e){return be("MuiSnackbar",e)}we("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const mA=["onEnter","onExited"],gA=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],vA=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${Z(n.vertical)}${Z(n.horizontal)}`]};return Se(r,hA,t)},xy=ie("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${Z(n.anchorOrigin.vertical)}${Z(n.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const n={left:"50%",right:"auto",transform:"translateX(-50%)"};return S({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:S({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&n,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),yo=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiSnackbar"}),o=mo(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:s,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:u,className:f,ClickAwayListenerProps:h,ContentProps:w,disableWindowBlurListener:y=!1,message:x,open:C,TransitionComponent:v=bs,transitionDuration:m=i,TransitionProps:{onEnter:b,onExited:R}={}}=r,k=se(r.TransitionProps,mA),T=se(r,gA),P=S({},r,{anchorOrigin:{vertical:s,horizontal:l},autoHideDuration:c,disableWindowBlurListener:y,TransitionComponent:v,transitionDuration:m}),j=vA(P),{getRootProps:N,onClickAway:O}=uO(S({},P)),[F,W]=p.useState(!0),U=fn({elementType:xy,getSlotProps:N,externalForwardedProps:T,ownerState:P,additionalProps:{ref:n},className:[j.root,f]}),G=J=>{W(!0),R&&R(J)},ee=(J,re)=>{W(!1),b&&b(J,re)};return!C&&F?null:d.jsx(jM,S({onClickAway:O},h,{children:d.jsx(xy,S({},U,{children:d.jsx(v,S({appear:!0,in:C,timeout:m,direction:s==="top"?"down":"up",onEnter:ee,onExited:G},k,{children:u||d.jsx(pA,S({message:x,action:a},w))}))}))}))});function yA(e){return be("MuiTooltip",e)}const Jr=we("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),xA=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function bA(e){return Math.round(e*1e5)/1e5}const wA=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Z(i.split("-")[0])}`],arrow:["arrow"]};return Se(a,yA,t)},SA=ie(Kw,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>S({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Jr.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Jr.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Jr.arrow}`]:S({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Jr.arrow}`]:S({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),CA=ie("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Z(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>S({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Fe(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${bA(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Jr.popper}[data-popper-placement*="left"] &`]:S({transformOrigin:"right center"},t.isRtl?S({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):S({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Jr.popper}[data-popper-placement*="right"] &`]:S({transformOrigin:"left center"},t.isRtl?S({marginRight:"14px"},t.touch&&{marginRight:"24px"}):S({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Jr.popper}[data-popper-placement*="top"] &`]:S({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Jr.popper}[data-popper-placement*="bottom"] &`]:S({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),RA=ie("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Fe(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let yl=!1;const by=new Ls;let Ca={x:0,y:0};function xl(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Zn=p.forwardRef(function(t,n){var r,o,i,a,s,l,c,u,f,h,w,y,x,C,v,m,b,R,k;const T=Re({props:t,name:"MuiTooltip"}),{arrow:P=!1,children:j,components:N={},componentsProps:O={},describeChild:F=!1,disableFocusListener:W=!1,disableHoverListener:U=!1,disableInteractive:G=!1,disableTouchListener:ee=!1,enterDelay:J=100,enterNextDelay:re=0,enterTouchDelay:I=700,followCursor:_=!1,id:E,leaveDelay:g=0,leaveTouchDelay:$=1500,onClose:z,onOpen:L,open:B,placement:V="bottom",PopperComponent:M,PopperProps:A={},slotProps:Y={},slots:K={},title:q,TransitionComponent:oe=bs,TransitionProps:te}=T,ne=se(T,xA),de=p.isValidElement(j)?j:d.jsx("span",{children:j}),ke=mo(),H=As(),[ae,ge]=p.useState(),[D,X]=p.useState(null),fe=p.useRef(!1),pe=G||_,ve=To(),Ce=To(),Le=To(),De=To(),[Ee,he]=gs({controlled:B,default:!1,name:"Tooltip",state:"open"});let Ge=Ee;const Xe=_s(E),Ye=p.useRef(),ye=Yt(()=>{Ye.current!==void 0&&(document.body.style.WebkitUserSelect=Ye.current,Ye.current=void 0),De.clear()});p.useEffect(()=>ye,[ye]);const Pe=Ne=>{by.clear(),yl=!0,he(!0),L&&!Ge&&L(Ne)},ue=Yt(Ne=>{by.start(800+g,()=>{yl=!1}),he(!1),z&&Ge&&z(Ne),ve.start(ke.transitions.duration.shortest,()=>{fe.current=!1})}),me=Ne=>{fe.current&&Ne.type!=="touchstart"||(ae&&ae.removeAttribute("title"),Ce.clear(),Le.clear(),J||yl&&re?Ce.start(yl?re:J,()=>{Pe(Ne)}):Pe(Ne))},$e=Ne=>{Ce.clear(),Le.start(g,()=>{ue(Ne)})},{isFocusVisibleRef:Ae,onBlur:Qe,onFocus:Ct,ref:Ot}=om(),[,pn]=p.useState(!1),Dt=Ne=>{Qe(Ne),Ae.current===!1&&(pn(!1),$e(Ne))},zr=Ne=>{ae||ge(Ne.currentTarget),Ct(Ne),Ae.current===!0&&(pn(!0),me(Ne))},Go=Ne=>{fe.current=!0;const hn=de.props;hn.onTouchStart&&hn.onTouchStart(Ne)},Et=Ne=>{Go(Ne),Le.clear(),ve.clear(),ye(),Ye.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",De.start(I,()=>{document.body.style.WebkitUserSelect=Ye.current,me(Ne)})},dd=Ne=>{de.props.onTouchEnd&&de.props.onTouchEnd(Ne),ye(),Le.start($,()=>{ue(Ne)})};p.useEffect(()=>{if(!Ge)return;function Ne(hn){(hn.key==="Escape"||hn.key==="Esc")&&ue(hn)}return document.addEventListener("keydown",Ne),()=>{document.removeEventListener("keydown",Ne)}},[ue,Ge]);const Ws=lt(de.ref,Ot,ge,n);!q&&q!==0&&(Ge=!1);const oa=p.useRef(),ia=Ne=>{const hn=de.props;hn.onMouseMove&&hn.onMouseMove(Ne),Ca={x:Ne.clientX,y:Ne.clientY},oa.current&&oa.current.update()},tt={},en=typeof q=="string";F?(tt.title=!Ge&&en&&!U?q:null,tt["aria-describedby"]=Ge?Xe:null):(tt["aria-label"]=en?q:null,tt["aria-labelledby"]=Ge&&!en?Xe:null);const nt=S({},tt,ne,de.props,{className:le(ne.className,de.props.className),onTouchStart:Go,ref:Ws},_?{onMouseMove:ia}:{}),Tt={};ee||(nt.onTouchStart=Et,nt.onTouchEnd=dd),U||(nt.onMouseOver=xl(me,nt.onMouseOver),nt.onMouseLeave=xl($e,nt.onMouseLeave),pe||(Tt.onMouseOver=me,Tt.onMouseLeave=$e)),W||(nt.onFocus=xl(zr,nt.onFocus),nt.onBlur=xl(Dt,nt.onBlur),pe||(Tt.onFocus=zr,Tt.onBlur=Dt));const It=p.useMemo(()=>{var Ne;let hn=[{name:"arrow",enabled:!!D,options:{element:D,padding:4}}];return(Ne=A.popperOptions)!=null&&Ne.modifiers&&(hn=hn.concat(A.popperOptions.modifiers)),S({},A.popperOptions,{modifiers:hn})},[D,A]),qt=S({},T,{isRtl:H,arrow:P,disableInteractive:pe,placement:V,PopperComponentProp:M,touch:fe.current}),Gn=wA(qt),Ko=(r=(o=K.popper)!=null?o:N.Popper)!=null?r:SA,aa=(i=(a=(s=K.transition)!=null?s:N.Transition)!=null?a:oe)!=null?i:bs,Hs=(l=(c=K.tooltip)!=null?c:N.Tooltip)!=null?l:CA,Vs=(u=(f=K.arrow)!=null?f:N.Arrow)!=null?u:RA,q2=vi(Ko,S({},A,(h=Y.popper)!=null?h:O.popper,{className:le(Gn.popper,A==null?void 0:A.className,(w=(y=Y.popper)!=null?y:O.popper)==null?void 0:w.className)}),qt),G2=vi(aa,S({},te,(x=Y.transition)!=null?x:O.transition),qt),K2=vi(Hs,S({},(C=Y.tooltip)!=null?C:O.tooltip,{className:le(Gn.tooltip,(v=(m=Y.tooltip)!=null?m:O.tooltip)==null?void 0:v.className)}),qt),Y2=vi(Vs,S({},(b=Y.arrow)!=null?b:O.arrow,{className:le(Gn.arrow,(R=(k=Y.arrow)!=null?k:O.arrow)==null?void 0:R.className)}),qt);return d.jsxs(p.Fragment,{children:[p.cloneElement(de,nt),d.jsx(Ko,S({as:M??Kw,placement:V,anchorEl:_?{getBoundingClientRect:()=>({top:Ca.y,left:Ca.x,right:Ca.x,bottom:Ca.y,width:0,height:0})}:ae,popperRef:oa,open:ae?Ge:!1,id:Xe,transition:!0},Tt,q2,{popperOptions:It,children:({TransitionProps:Ne})=>d.jsx(aa,S({timeout:ke.transitions.duration.shorter},Ne,G2,{children:d.jsxs(Hs,S({},K2,{children:[q,P?d.jsx(Vs,S({},Y2,{ref:X})):null]}))}))}))]})});function kA(e){return be("MuiSwitch",e)}const Gt=we("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),PA=["className","color","edge","size","sx"],EA=Ju(),TA=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:a}=e,s={root:["root",n&&`edge${Z(n)}`,`size${Z(r)}`],switchBase:["switchBase",`color${Z(o)}`,i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Se(s,kA,t);return S({},t,l)},$A=ie("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Z(n.edge)}`],t[`size${Z(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Gt.thumb}`]:{width:16,height:16},[`& .${Gt.switchBase}`]:{padding:4,[`&.${Gt.checked}`]:{transform:"translateX(16px)"}}}}]}),MA=ie(Zw,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Gt.input}`]:t.input},n.color!=="default"&&t[`color${Z(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Gt.checked}`]:{transform:"translateX(20px)"},[`&.${Gt.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Gt.checked} + .${Gt.track}`]:{opacity:.5},[`&.${Gt.disabled} + .${Gt.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Gt.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${Gt.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Gt.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?kc(e.palette[t].main,.62):Rc(e.palette[t].main,.55)}`}},[`&.${Gt.checked} + .${Gt.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),jA=ie("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),OA=ie("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),IA=p.forwardRef(function(t,n){const r=EA({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:a=!1,size:s="medium",sx:l}=r,c=se(r,PA),u=S({},r,{color:i,edge:a,size:s}),f=TA(u),h=d.jsx(OA,{className:f.thumb,ownerState:u});return d.jsxs($A,{className:le(f.root,o),sx:l,ownerState:u,children:[d.jsx(MA,S({type:"checkbox",icon:h,checkedIcon:h,ref:n,ownerState:u},c,{classes:S({},f,{root:f.switchBase})})),d.jsx(jA,{className:f.track,ownerState:u})]})});function _A(e){return be("MuiTab",e)}const bo=we("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),LA=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],AA=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:a,selected:s,disabled:l}=e,c={root:["root",i&&a&&"labelIcon",`textColor${Z(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Se(c,_A,t)},NA=ie(Ir,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Z(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>S({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${bo.iconWrapper}`]:S({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${bo.selected}`]:{opacity:1},[`&.${bo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${bo.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${bo.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${bo.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${bo.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),Hl=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:a=!1,fullWidth:s,icon:l,iconPosition:c="top",indicator:u,label:f,onChange:h,onClick:w,onFocus:y,selected:x,selectionFollowsFocus:C,textColor:v="inherit",value:m,wrapped:b=!1}=r,R=se(r,LA),k=S({},r,{disabled:i,disableFocusRipple:a,selected:x,icon:!!l,iconPosition:c,label:!!f,fullWidth:s,textColor:v,wrapped:b}),T=AA(k),P=l&&f&&p.isValidElement(l)?p.cloneElement(l,{className:le(T.iconWrapper,l.props.className)}):l,j=O=>{!x&&h&&h(O,m),w&&w(O)},N=O=>{C&&!x&&h&&h(O,m),y&&y(O)};return d.jsxs(NA,S({focusRipple:!a,className:le(T.root,o),ref:n,role:"tab","aria-selected":x,disabled:i,onClick:j,onFocus:N,ownerState:k,tabIndex:x?0:-1},R,{children:[c==="top"||c==="start"?d.jsxs(p.Fragment,{children:[P,f]}):d.jsxs(p.Fragment,{children:[f,P]}),u]}))});function DA(e){return be("MuiToolbar",e)}we("MuiToolbar",["root","gutters","regular","dense"]);const zA=["className","component","disableGutters","variant"],BA=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Se({root:["root",!n&&"gutters",r]},DA,t)},FA=ie("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>S({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),UA=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:a=!1,variant:s="regular"}=r,l=se(r,zA),c=S({},r,{component:i,disableGutters:a,variant:s}),u=BA(c);return d.jsx(FA,S({as:i,className:le(u.root,o),ref:n,ownerState:c},l))}),WA=Vt(d.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),HA=Vt(d.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function VA(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function qA(e,t,n,r={},o=()=>{}){const{ease:i=VA,duration:a=300}=r;let s=null;const l=t[e];let c=!1;const u=()=>{c=!0},f=h=>{if(c){o(new Error("Animation cancelled"));return}s===null&&(s=h);const w=Math.min(1,(h-s)/a);if(t[e]=i(w)*(n-l)+l,w>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(f)};return l===n?(o(new Error("Element already at target position")),u):(requestAnimationFrame(f),u)}const GA=["onChange"],KA={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function YA(e){const{onChange:t}=e,n=se(e,GA),r=p.useRef(),o=p.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Sn(()=>{const a=ea(()=>{const l=r.current;i(),l!==r.current&&t(r.current)}),s=Bn(o.current);return s.addEventListener("resize",a),()=>{a.clear(),s.removeEventListener("resize",a)}},[t]),p.useEffect(()=>{i(),t(r.current)},[t]),d.jsx("div",S({style:KA,ref:o},n))}function XA(e){return be("MuiTabScrollButton",e)}const QA=we("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),JA=["className","slots","slotProps","direction","orientation","disabled"],ZA=e=>{const{classes:t,orientation:n,disabled:r}=e;return Se({root:["root",n,r&&"disabled"]},XA,t)},eN=ie(Ir,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>S({width:40,flexShrink:0,opacity:.8,[`&.${QA.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),tN=p.forwardRef(function(t,n){var r,o;const i=Re({props:t,name:"MuiTabScrollButton"}),{className:a,slots:s={},slotProps:l={},direction:c}=i,u=se(i,JA),f=As(),h=S({isRtl:f},i),w=ZA(h),y=(r=s.StartScrollButtonIcon)!=null?r:WA,x=(o=s.EndScrollButtonIcon)!=null?o:HA,C=fn({elementType:y,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),v=fn({elementType:x,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return d.jsx(eN,S({component:"div",className:le(w.root,a),ref:n,role:null,ownerState:h,tabIndex:null},u,{children:c==="left"?d.jsx(y,S({},C)):d.jsx(x,S({},v))}))});function nN(e){return be("MuiTabs",e)}const af=we("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),rN=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],wy=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,Sy=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,bl=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const i=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||i)o=n(e,o);else{o.focus();return}}},oN=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return Se({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},nN,l)},iN=ie("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${af.scrollButtons}`]:t.scrollButtons},{[`& .${af.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>S({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${af.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),aN=ie("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>S({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),sN=ie("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>S({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),lN=ie("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>S({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),cN=ie(YA)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Cy={},f2=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTabs"}),o=mo(),i=As(),{"aria-label":a,"aria-labelledby":s,action:l,centered:c=!1,children:u,className:f,component:h="div",allowScrollButtonsMobile:w=!1,indicatorColor:y="primary",onChange:x,orientation:C="horizontal",ScrollButtonComponent:v=tN,scrollButtons:m="auto",selectionFollowsFocus:b,slots:R={},slotProps:k={},TabIndicatorProps:T={},TabScrollButtonProps:P={},textColor:j="primary",value:N,variant:O="standard",visibleScrollbar:F=!1}=r,W=se(r,rN),U=O==="scrollable",G=C==="vertical",ee=G?"scrollTop":"scrollLeft",J=G?"top":"left",re=G?"bottom":"right",I=G?"clientHeight":"clientWidth",_=G?"height":"width",E=S({},r,{component:h,allowScrollButtonsMobile:w,indicatorColor:y,orientation:C,vertical:G,scrollButtons:m,textColor:j,variant:O,visibleScrollbar:F,fixed:!U,hideScrollbar:U&&!F,scrollableX:U&&!G,scrollableY:U&&G,centered:c&&!U,scrollButtonsHideMobile:!w}),g=oN(E),$=fn({elementType:R.StartScrollButtonIcon,externalSlotProps:k.startScrollButtonIcon,ownerState:E}),z=fn({elementType:R.EndScrollButtonIcon,externalSlotProps:k.endScrollButtonIcon,ownerState:E}),[L,B]=p.useState(!1),[V,M]=p.useState(Cy),[A,Y]=p.useState(!1),[K,q]=p.useState(!1),[oe,te]=p.useState(!1),[ne,de]=p.useState({overflow:"hidden",scrollbarWidth:0}),ke=new Map,H=p.useRef(null),ae=p.useRef(null),ge=()=>{const ue=H.current;let me;if(ue){const Ae=ue.getBoundingClientRect();me={clientWidth:ue.clientWidth,scrollLeft:ue.scrollLeft,scrollTop:ue.scrollTop,scrollLeftNormalized:B$(ue,i?"rtl":"ltr"),scrollWidth:ue.scrollWidth,top:Ae.top,bottom:Ae.bottom,left:Ae.left,right:Ae.right}}let $e;if(ue&&N!==!1){const Ae=ae.current.children;if(Ae.length>0){const Qe=Ae[ke.get(N)];$e=Qe?Qe.getBoundingClientRect():null}}return{tabsMeta:me,tabMeta:$e}},D=Yt(()=>{const{tabsMeta:ue,tabMeta:me}=ge();let $e=0,Ae;if(G)Ae="top",me&&ue&&($e=me.top-ue.top+ue.scrollTop);else if(Ae=i?"right":"left",me&&ue){const Ct=i?ue.scrollLeftNormalized+ue.clientWidth-ue.scrollWidth:ue.scrollLeft;$e=(i?-1:1)*(me[Ae]-ue[Ae]+Ct)}const Qe={[Ae]:$e,[_]:me?me[_]:0};if(isNaN(V[Ae])||isNaN(V[_]))M(Qe);else{const Ct=Math.abs(V[Ae]-Qe[Ae]),Ot=Math.abs(V[_]-Qe[_]);(Ct>=1||Ot>=1)&&M(Qe)}}),X=(ue,{animation:me=!0}={})=>{me?qA(ee,H.current,ue,{duration:o.transitions.duration.standard}):H.current[ee]=ue},fe=ue=>{let me=H.current[ee];G?me+=ue:(me+=ue*(i?-1:1),me*=i&&hw()==="reverse"?-1:1),X(me)},pe=()=>{const ue=H.current[I];let me=0;const $e=Array.from(ae.current.children);for(let Ae=0;Ae<$e.length;Ae+=1){const Qe=$e[Ae];if(me+Qe[I]>ue){Ae===0&&(me=ue);break}me+=Qe[I]}return me},ve=()=>{fe(-1*pe())},Ce=()=>{fe(pe())},Le=p.useCallback(ue=>{de({overflow:null,scrollbarWidth:ue})},[]),De=()=>{const ue={};ue.scrollbarSizeListener=U?d.jsx(cN,{onChange:Le,className:le(g.scrollableX,g.hideScrollbar)}):null;const $e=U&&(m==="auto"&&(A||K)||m===!0);return ue.scrollButtonStart=$e?d.jsx(v,S({slots:{StartScrollButtonIcon:R.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:$},orientation:C,direction:i?"right":"left",onClick:ve,disabled:!A},P,{className:le(g.scrollButtons,P.className)})):null,ue.scrollButtonEnd=$e?d.jsx(v,S({slots:{EndScrollButtonIcon:R.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:z},orientation:C,direction:i?"left":"right",onClick:Ce,disabled:!K},P,{className:le(g.scrollButtons,P.className)})):null,ue},Ee=Yt(ue=>{const{tabsMeta:me,tabMeta:$e}=ge();if(!(!$e||!me)){if($e[J]me[re]){const Ae=me[ee]+($e[re]-me[re]);X(Ae,{animation:ue})}}}),he=Yt(()=>{U&&m!==!1&&te(!oe)});p.useEffect(()=>{const ue=ea(()=>{H.current&&D()});let me;const $e=Ct=>{Ct.forEach(Ot=>{Ot.removedNodes.forEach(pn=>{var Dt;(Dt=me)==null||Dt.unobserve(pn)}),Ot.addedNodes.forEach(pn=>{var Dt;(Dt=me)==null||Dt.observe(pn)})}),ue(),he()},Ae=Bn(H.current);Ae.addEventListener("resize",ue);let Qe;return typeof ResizeObserver<"u"&&(me=new ResizeObserver(ue),Array.from(ae.current.children).forEach(Ct=>{me.observe(Ct)})),typeof MutationObserver<"u"&&(Qe=new MutationObserver($e),Qe.observe(ae.current,{childList:!0})),()=>{var Ct,Ot;ue.clear(),Ae.removeEventListener("resize",ue),(Ct=Qe)==null||Ct.disconnect(),(Ot=me)==null||Ot.disconnect()}},[D,he]),p.useEffect(()=>{const ue=Array.from(ae.current.children),me=ue.length;if(typeof IntersectionObserver<"u"&&me>0&&U&&m!==!1){const $e=ue[0],Ae=ue[me-1],Qe={root:H.current,threshold:.99},Ct=zr=>{Y(!zr[0].isIntersecting)},Ot=new IntersectionObserver(Ct,Qe);Ot.observe($e);const pn=zr=>{q(!zr[0].isIntersecting)},Dt=new IntersectionObserver(pn,Qe);return Dt.observe(Ae),()=>{Ot.disconnect(),Dt.disconnect()}}},[U,m,oe,u==null?void 0:u.length]),p.useEffect(()=>{B(!0)},[]),p.useEffect(()=>{D()}),p.useEffect(()=>{Ee(Cy!==V)},[Ee,V]),p.useImperativeHandle(l,()=>({updateIndicator:D,updateScrollButtons:he}),[D,he]);const Ge=d.jsx(lN,S({},T,{className:le(g.indicator,T.className),ownerState:E,style:S({},V,T.style)}));let Xe=0;const Ye=p.Children.map(u,ue=>{if(!p.isValidElement(ue))return null;const me=ue.props.value===void 0?Xe:ue.props.value;ke.set(me,Xe);const $e=me===N;return Xe+=1,p.cloneElement(ue,S({fullWidth:O==="fullWidth",indicator:$e&&!L&&Ge,selected:$e,selectionFollowsFocus:b,onChange:x,textColor:j,value:me},Xe===1&&N===!1&&!ue.props.tabIndex?{tabIndex:0}:{}))}),ye=ue=>{const me=ae.current,$e=St(me).activeElement;if($e.getAttribute("role")!=="tab")return;let Qe=C==="horizontal"?"ArrowLeft":"ArrowUp",Ct=C==="horizontal"?"ArrowRight":"ArrowDown";switch(C==="horizontal"&&i&&(Qe="ArrowRight",Ct="ArrowLeft"),ue.key){case Qe:ue.preventDefault(),bl(me,$e,Sy);break;case Ct:ue.preventDefault(),bl(me,$e,wy);break;case"Home":ue.preventDefault(),bl(me,null,wy);break;case"End":ue.preventDefault(),bl(me,null,Sy);break}},Pe=De();return d.jsxs(iN,S({className:le(g.root,f),ownerState:E,ref:n,as:h},W,{children:[Pe.scrollButtonStart,Pe.scrollbarSizeListener,d.jsxs(aN,{className:g.scroller,ownerState:E,style:{overflow:ne.overflow,[G?`margin${i?"Left":"Right"}`:"marginBottom"]:F?void 0:-ne.scrollbarWidth},ref:H,children:[d.jsx(sN,{"aria-label":a,"aria-labelledby":s,"aria-orientation":C==="vertical"?"vertical":null,className:g.flexContainer,ownerState:E,onKeyDown:ye,ref:ae,role:"tablist",children:Ye}),L&&Ge]}),Pe.scrollButtonEnd]}))});function uN(e){return be("MuiTextField",e)}we("MuiTextField",["root"]);const dN=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],fN={standard:$m,filled:Em,outlined:jm},pN=e=>{const{classes:t}=e;return Se({root:["root"]},uN,t)},hN=ie(ld,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),it=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:a,className:s,color:l="primary",defaultValue:c,disabled:u=!1,error:f=!1,FormHelperTextProps:h,fullWidth:w=!1,helperText:y,id:x,InputLabelProps:C,inputProps:v,InputProps:m,inputRef:b,label:R,maxRows:k,minRows:T,multiline:P=!1,name:j,onBlur:N,onChange:O,onFocus:F,placeholder:W,required:U=!1,rows:G,select:ee=!1,SelectProps:J,type:re,value:I,variant:_="outlined"}=r,E=se(r,dN),g=S({},r,{autoFocus:i,color:l,disabled:u,error:f,fullWidth:w,multiline:P,required:U,select:ee,variant:_}),$=pN(g),z={};_==="outlined"&&(C&&typeof C.shrink<"u"&&(z.notched=C.shrink),z.label=R),ee&&((!J||!J.native)&&(z.id=void 0),z["aria-describedby"]=void 0);const L=_s(x),B=y&&L?`${L}-helper-text`:void 0,V=R&&L?`${L}-label`:void 0,M=fN[_],A=d.jsx(M,S({"aria-describedby":B,autoComplete:o,autoFocus:i,defaultValue:c,fullWidth:w,multiline:P,name:j,rows:G,maxRows:k,minRows:T,type:re,value:I,id:L,inputRef:b,onBlur:N,onChange:O,onFocus:F,placeholder:W,inputProps:v},z,m));return d.jsxs(hN,S({className:le($.root,s),disabled:u,error:f,fullWidth:w,ref:n,required:U,color:l,variant:_,ownerState:g},E,{children:[R!=null&&R!==""&&d.jsx(cd,S({htmlFor:L,id:V},C,{children:R})),ee?d.jsx(Us,S({"aria-describedby":B,id:L,labelId:V,value:I,input:A},J,{children:a})):A,y&&d.jsx(f_,S({id:B},h,{children:y}))]}))});var Im={},sf={};const mN=Lr(v5);var Ry;function je(){return Ry||(Ry=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=mN}(sf)),sf}var gN=Te;Object.defineProperty(Im,"__esModule",{value:!0});var ra=Im.default=void 0,vN=gN(je()),yN=d;ra=Im.default=(0,vN.default)((0,yN.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");var _m={},xN=Te;Object.defineProperty(_m,"__esModule",{value:!0});var Lm=_m.default=void 0,bN=xN(je()),wN=d;Lm=_m.default=(0,bN.default)((0,wN.jsx)("path",{d:"M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3m5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72z"}),"Mic");var Am={},SN=Te;Object.defineProperty(Am,"__esModule",{value:!0});var Nm=Am.default=void 0,CN=SN(je()),RN=d;Nm=Am.default=(0,CN.default)((0,RN.jsx)("path",{d:"M19 11h-1.7c0 .74-.16 1.43-.43 2.05l1.23 1.23c.56-.98.9-2.09.9-3.28m-4.02.17c0-.06.02-.11.02-.17V5c0-1.66-1.34-3-3-3S9 3.34 9 5v.18zM4.27 3 3 4.27l6.01 6.01V11c0 1.66 1.33 3 2.99 3 .22 0 .44-.03.65-.08l1.66 1.66c-.71.33-1.5.52-2.31.52-2.76 0-5.3-2.1-5.3-5.1H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c.91-.13 1.77-.45 2.54-.9L19.73 21 21 19.73z"}),"MicOff");var Dm={},kN=Te;Object.defineProperty(Dm,"__esModule",{value:!0});var ud=Dm.default=void 0,PN=kN(je()),EN=d;ud=Dm.default=(0,PN.default)((0,EN.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"Person");var zm={},TN=Te;Object.defineProperty(zm,"__esModule",{value:!0});var _c=zm.default=void 0,$N=TN(je()),MN=d;_c=zm.default=(0,$N.default)((0,MN.jsx)("path",{d:"M3 9v6h4l5 5V4L7 9zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02M14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77"}),"VolumeUp");var Bm={},jN=Te;Object.defineProperty(Bm,"__esModule",{value:!0});var Lc=Bm.default=void 0,ON=jN(je()),IN=d;Lc=Bm.default=(0,ON.default)((0,IN.jsx)("path",{d:"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63m2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71M4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9zM12 4 9.91 6.09 12 8.18z"}),"VolumeOff");var Fm={},_N=Te;Object.defineProperty(Fm,"__esModule",{value:!0});var Um=Fm.default=void 0,LN=_N(je()),AN=d;Um=Fm.default=(0,LN.default)((0,AN.jsx)("path",{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-1 9h-4v4h-2v-4H9V9h4V5h2v4h4z"}),"LibraryAdd");const Pi="/assets/Aria-BMTE8U_Y.jpg";var p2={exports:{}};(function(e){/** + `),W3)),_n=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:s=40,style:l,thickness:c=3.6,value:u=0,variant:f="indeterminate"}=r,h=se(r,F3),w=S({},r,{color:i,disableShrink:a,size:s,thickness:c,value:u,variant:f}),y=H3(w),x={},C={},v={};if(f==="determinate"){const m=2*Math.PI*((Hr-c)/2);x.strokeDasharray=m.toFixed(3),v["aria-valuenow"]=Math.round(u),x.strokeDashoffset=`${((100-u)/100*m).toFixed(3)}px`,C.transform="rotate(-90deg)"}return d.jsx(V3,S({className:le(y.root,o),style:S({width:s,height:s},C,l),ownerState:w,ref:n,role:"progressbar"},v,h,{children:d.jsx(q3,{className:y.svg,ownerState:w,viewBox:`${Hr/2} ${Hr/2} ${Hr} ${Hr}`,children:d.jsx(G3,{className:y.circle,style:x,ownerState:w,cx:Hr,cy:Hr,r:(Hr-c)/2,fill:"none",strokeWidth:c})})}))}),e2=Z$({createStyledComponent:ie("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Z(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Re({props:e,name:"MuiContainer"})}),K3=(e,t)=>S({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),Y3=e=>S({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),X3=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([a,s])=>{var l;r[e.getColorSchemeSelector(a).replace(/\s*&/,"")]={colorScheme:(l=s.palette)==null?void 0:l.mode}});let o=S({html:K3(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:S({margin:0},Y3(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const i=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return i&&(o=[o,i]),o};function km(e){const t=Re({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return d.jsxs(p.Fragment,{children:[d.jsx(Yw,{styles:o=>X3(o,r)}),n]})}function Q3(e){return be("MuiModal",e)}we("MuiModal",["root","hidden","backdrop"]);const J3=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Z3=e=>{const{open:t,exited:n,classes:r}=e;return Se({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Q3,r)},eI=ie("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>S({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),tI=ie(Qw,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Pm=p.forwardRef(function(t,n){var r,o,i,a,s,l;const c=Re({name:"MuiModal",props:t}),{BackdropComponent:u=tI,BackdropProps:f,className:h,closeAfterTransition:w=!1,children:y,container:x,component:C,components:v={},componentsProps:m={},disableAutoFocus:b=!1,disableEnforceFocus:R=!1,disableEscapeKeyDown:k=!1,disablePortal:T=!1,disableRestoreFocus:P=!1,disableScrollLock:j=!1,hideBackdrop:N=!1,keepMounted:O=!1,onBackdropClick:F,open:W,slotProps:U,slots:G}=c,ee=se(c,J3),J=S({},c,{closeAfterTransition:w,disableAutoFocus:b,disableEnforceFocus:R,disableEscapeKeyDown:k,disablePortal:T,disableRestoreFocus:P,disableScrollLock:j,hideBackdrop:N,keepMounted:O}),{getRootProps:re,getBackdropProps:I,getTransitionProps:_,portalRef:E,isTopModal:g,exited:$,hasTransition:z}=KM(S({},J,{rootRef:n})),L=S({},J,{exited:$}),B=Z3(L),V={};if(y.props.tabIndex===void 0&&(V.tabIndex="-1"),z){const{onEnter:te,onExited:ne}=_();V.onEnter=te,V.onExited=ne}const M=(r=(o=G==null?void 0:G.root)!=null?o:v.Root)!=null?r:eI,A=(i=(a=G==null?void 0:G.backdrop)!=null?a:v.Backdrop)!=null?i:u,K=(s=U==null?void 0:U.root)!=null?s:m.root,Y=(l=U==null?void 0:U.backdrop)!=null?l:m.backdrop,q=fn({elementType:M,externalSlotProps:K,externalForwardedProps:ee,getSlotProps:re,additionalProps:{ref:n,as:C},ownerState:L,className:le(h,K==null?void 0:K.className,B==null?void 0:B.root,!L.open&&L.exited&&(B==null?void 0:B.hidden))}),oe=fn({elementType:A,externalSlotProps:Y,additionalProps:f,getSlotProps:te=>I(S({},te,{onClick:ne=>{F&&F(ne),te!=null&&te.onClick&&te.onClick(ne)}})),className:le(Y==null?void 0:Y.className,f==null?void 0:f.className,B==null?void 0:B.backdrop),ownerState:L});return!O&&!W&&(!z||$)?null:d.jsx(Lw,{ref:E,container:x,disablePortal:T,children:d.jsxs(M,S({},q,{children:[!N&&u?d.jsx(A,S({},oe)):null,d.jsx(DM,{disableEnforceFocus:R,disableAutoFocus:b,disableRestoreFocus:P,isEnabled:g,open:W,children:p.cloneElement(y,V)})]}))})});function nI(e){return be("MuiDialog",e)}const tf=we("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),t2=p.createContext({}),rI=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],oI=ie(Qw,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),iI=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,a={root:["root"],container:["container",`scroll${Z(n)}`],paper:["paper",`paperScroll${Z(n)}`,`paperWidth${Z(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return Se(a,nI,t)},aI=ie(Pm,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),sI=ie("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Z(n.scroll)}`]]}})(({ownerState:e})=>S({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),lI=ie(En,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Z(n.scroll)}`],t[`paperWidth${Z(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>S({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${tf.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${tf.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${tf.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Mp=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialog"}),o=mo(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,BackdropComponent:l,BackdropProps:c,children:u,className:f,disableEscapeKeyDown:h=!1,fullScreen:w=!1,fullWidth:y=!1,maxWidth:x="sm",onBackdropClick:C,onClick:v,onClose:m,open:b,PaperComponent:R=En,PaperProps:k={},scroll:T="paper",TransitionComponent:P=Xw,transitionDuration:j=i,TransitionProps:N}=r,O=se(r,rI),F=S({},r,{disableEscapeKeyDown:h,fullScreen:w,fullWidth:y,maxWidth:x,scroll:T}),W=iI(F),U=p.useRef(),G=I=>{U.current=I.target===I.currentTarget},ee=I=>{v&&v(I),U.current&&(U.current=null,C&&C(I),m&&m(I,"backdropClick"))},J=_s(s),re=p.useMemo(()=>({titleId:J}),[J]);return d.jsx(aI,S({className:le(W.root,f),closeAfterTransition:!0,components:{Backdrop:oI},componentsProps:{backdrop:S({transitionDuration:j,as:l},c)},disableEscapeKeyDown:h,onClose:m,open:b,ref:n,onClick:ee,ownerState:F},O,{children:d.jsx(P,S({appear:!0,in:b,timeout:j,role:"presentation"},N,{children:d.jsx(sI,{className:le(W.container),onMouseDown:G,ownerState:F,children:d.jsx(lI,S({as:R,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":J},k,{className:le(W.paper,k.className),ownerState:F,children:d.jsx(t2.Provider,{value:re,children:u})}))})}))}))});function cI(e){return be("MuiDialogActions",e)}we("MuiDialogActions",["root","spacing"]);const uI=["className","disableSpacing"],dI=e=>{const{classes:t,disableSpacing:n}=e;return Se({root:["root",!n&&"spacing"]},cI,t)},fI=ie("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>S({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),jp=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1}=r,a=se(r,uI),s=S({},r,{disableSpacing:i}),l=dI(s);return d.jsx(fI,S({className:le(l.root,o),ownerState:s,ref:n},a))});function pI(e){return be("MuiDialogContent",e)}we("MuiDialogContent",["root","dividers"]);function hI(e){return be("MuiDialogTitle",e)}const mI=we("MuiDialogTitle",["root"]),gI=["className","dividers"],vI=e=>{const{classes:t,dividers:n}=e;return Se({root:["root",n&&"dividers"]},pI,t)},yI=ie("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>S({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${mI.root} + &`]:{paddingTop:0}})),Op=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,a=se(r,gI),s=S({},r,{dividers:i}),l=vI(s);return d.jsx(yI,S({className:le(l.root,o),ownerState:s,ref:n},a))});function xI(e){return be("MuiDialogContentText",e)}we("MuiDialogContentText",["root"]);const bI=["children","className"],wI=e=>{const{classes:t}=e,r=Se({root:["root"]},xI,t);return S({},t,r)},SI=ie(Ie,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),n2=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialogContentText"}),{className:o}=r,i=se(r,bI),a=wI(i);return d.jsx(SI,S({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:i,className:le(a.root,o)},r,{classes:a}))}),CI=["className","id"],RI=e=>{const{classes:t}=e;return Se({root:["root"]},hI,t)},kI=ie(Ie,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Ip=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialogTitle"}),{className:o,id:i}=r,a=se(r,CI),s=r,l=RI(s),{titleId:c=i}=p.useContext(t2);return d.jsx(kI,S({component:"h2",className:le(l.root,o),ownerState:s,ref:n,variant:"h6",id:i??c},a))});function PI(e){return be("MuiDivider",e)}const oy=we("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),EI=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],TI=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return Se({root:["root",t&&"absolute",l,i&&"light",a==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",s==="right"&&a!=="vertical"&&"textAlignRight",s==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},PI,r)},$I=ie("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>S({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Fe(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>S({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>S({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>S({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>S({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),MI=ie("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>S({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),xs=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:a,component:s=i?"div":"hr",flexItem:l=!1,light:c=!1,orientation:u="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:h="center",variant:w="fullWidth"}=r,y=se(r,EI),x=S({},r,{absolute:o,component:s,flexItem:l,light:c,orientation:u,role:f,textAlign:h,variant:w}),C=TI(x);return d.jsx($I,S({as:s,className:le(C.root,a),role:f,ref:n,ownerState:x},y,{children:i?d.jsx(MI,{className:C.wrapper,ownerState:x,children:i}):null}))});xs.muiSkipListHighlight=!0;const jI=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function OI(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=Bn(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const c=i.getComputedStyle(t);a=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let s=0,l=0;if(a&&a!=="none"&&typeof a=="string"){const c=a.split("(")[1].split(")")[0].split(",");s=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?o?`translateX(${o.right+s-r.left}px)`:`translateX(${i.innerWidth+s-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function II(e){return typeof e=="function"?e():e}function vl(e,t,n){const r=II(n),o=OI(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const _I=p.forwardRef(function(t,n){const r=mo(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,container:c,direction:u="down",easing:f=o,in:h,onEnter:w,onEntered:y,onEntering:x,onExit:C,onExited:v,onExiting:m,style:b,timeout:R=i,TransitionComponent:k=ar}=t,T=se(t,jI),P=p.useRef(null),j=lt(l.ref,P,n),N=I=>_=>{I&&(_===void 0?I(P.current):I(P.current,_))},O=N((I,_)=>{vl(u,I,c),pm(I),w&&w(I,_)}),F=N((I,_)=>{const E=Ai({timeout:R,style:b,easing:f},{mode:"enter"});I.style.webkitTransition=r.transitions.create("-webkit-transform",S({},E)),I.style.transition=r.transitions.create("transform",S({},E)),I.style.webkitTransform="none",I.style.transform="none",x&&x(I,_)}),W=N(y),U=N(m),G=N(I=>{const _=Ai({timeout:R,style:b,easing:f},{mode:"exit"});I.style.webkitTransition=r.transitions.create("-webkit-transform",_),I.style.transition=r.transitions.create("transform",_),vl(u,I,c),C&&C(I)}),ee=N(I=>{I.style.webkitTransition="",I.style.transition="",v&&v(I)}),J=I=>{a&&a(P.current,I)},re=p.useCallback(()=>{P.current&&vl(u,P.current,c)},[u,c]);return p.useEffect(()=>{if(h||u==="down"||u==="right")return;const I=ea(()=>{P.current&&vl(u,P.current,c)}),_=Bn(P.current);return _.addEventListener("resize",I),()=>{I.clear(),_.removeEventListener("resize",I)}},[u,h,c]),p.useEffect(()=>{h||re()},[h,re]),d.jsx(k,S({nodeRef:P,onEnter:O,onEntered:W,onEntering:F,onExit:G,onExited:ee,onExiting:U,addEndListener:J,appear:s,in:h,timeout:R},T,{children:(I,_)=>p.cloneElement(l,S({ref:j,style:S({visibility:I==="exited"&&!h?"hidden":void 0},b,l.props.style)},_))}))});function LI(e){return be("MuiDrawer",e)}we("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const AI=["BackdropProps"],NI=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],r2=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},DI=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Z(n)}`,r!=="temporary"&&`paperAnchorDocked${Z(n)}`]};return Se(o,LI,t)},zI=ie(Pm,{name:"MuiDrawer",slot:"Root",overridesResolver:r2})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),iy=ie("div",{shouldForwardProp:Ht,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:r2})({flex:"0 0 auto"}),BI=ie(En,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${Z(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${Z(n.anchor)}`]]}})(({theme:e,ownerState:t})=>S({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),o2={left:"right",right:"left",top:"down",bottom:"up"};function FI(e){return["left","right"].indexOf(e)!==-1}function UI({direction:e},t){return e==="rtl"&&FI(t)?o2[t]:t}const WI=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDrawer"}),o=mo(),i=As(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:l,children:c,className:u,elevation:f=16,hideBackdrop:h=!1,ModalProps:{BackdropProps:w}={},onClose:y,open:x=!1,PaperProps:C={},SlideProps:v,TransitionComponent:m=_I,transitionDuration:b=a,variant:R="temporary"}=r,k=se(r.ModalProps,AI),T=se(r,NI),P=p.useRef(!1);p.useEffect(()=>{P.current=!0},[]);const j=UI({direction:i?"rtl":"ltr"},s),O=S({},r,{anchor:s,elevation:f,open:x,variant:R},T),F=DI(O),W=d.jsx(BI,S({elevation:R==="temporary"?f:0,square:!0},C,{className:le(F.paper,C.className),ownerState:O,children:c}));if(R==="permanent")return d.jsx(iy,S({className:le(F.root,F.docked,u),ownerState:O,ref:n},T,{children:W}));const U=d.jsx(m,S({in:x,direction:o2[j],timeout:b,appear:P.current},v,{children:W}));return R==="persistent"?d.jsx(iy,S({className:le(F.root,F.docked,u),ownerState:O,ref:n},T,{children:U})):d.jsx(zI,S({BackdropProps:S({},l,w,{transitionDuration:b}),className:le(F.root,F.modal,u),open:x,ownerState:O,onClose:y,hideBackdrop:h,ref:n},T,k,{children:U}))}),HI=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],VI=e=>{const{classes:t,disableUnderline:n}=e,o=Se({root:["root",!n&&"underline"],input:["input"]},NO,t);return S({},t,o)},qI=ie(od,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...nd(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return S({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${xo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${xo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${xo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${xo.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${xo.disabled}, .${xo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${xo.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&S({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),GI=ie(id,{name:"MuiFilledInput",slot:"Input",overridesResolver:rd})(({theme:e,ownerState:t})=>S({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),Em=p.forwardRef(function(t,n){var r,o,i,a;const s=Re({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:f="input",multiline:h=!1,slotProps:w,slots:y={},type:x="text"}=s,C=se(s,HI),v=S({},s,{fullWidth:u,inputComponent:f,multiline:h,type:x}),m=VI(s),b={root:{ownerState:v},input:{ownerState:v}},R=w??c?Qt(b,w??c):b,k=(r=(o=y.root)!=null?o:l.Root)!=null?r:qI,T=(i=(a=y.input)!=null?a:l.Input)!=null?i:GI;return d.jsx(Sm,S({slots:{root:k,input:T},componentsProps:R,fullWidth:u,inputComponent:f,multiline:h,ref:n,type:x},C,{classes:m}))});Em.muiName="Input";function KI(e){return be("MuiFormControl",e)}we("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const YI=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],XI=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Z(n)}`,r&&"fullWidth"]};return Se(o,KI,t)},QI=ie("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,t[`margin${Z(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>S({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),ld=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:f=!1,hiddenLabel:h=!1,margin:w="none",required:y=!1,size:x="medium",variant:C="outlined"}=r,v=se(r,YI),m=S({},r,{color:a,component:s,disabled:l,error:c,fullWidth:f,hiddenLabel:h,margin:w,required:y,size:x,variant:C}),b=XI(m),[R,k]=p.useState(()=>{let U=!1;return o&&p.Children.forEach(o,G=>{if(!Fa(G,["Input","Select"]))return;const ee=Fa(G,["Select"])?G.props.input:G;ee&&$O(ee.props)&&(U=!0)}),U}),[T,P]=p.useState(()=>{let U=!1;return o&&p.Children.forEach(o,G=>{Fa(G,["Input","Select"])&&(Mc(G.props,!0)||Mc(G.props.inputProps,!0))&&(U=!0)}),U}),[j,N]=p.useState(!1);l&&j&&N(!1);const O=u!==void 0&&!l?u:j;let F;const W=p.useMemo(()=>({adornedStart:R,setAdornedStart:k,color:a,disabled:l,error:c,filled:T,focused:O,fullWidth:f,hiddenLabel:h,size:x,onBlur:()=>{N(!1)},onEmpty:()=>{P(!1)},onFilled:()=>{P(!0)},onFocus:()=>{N(!0)},registerEffect:F,required:y,variant:C}),[R,a,l,c,T,O,f,h,F,y,x,C]);return d.jsx(td.Provider,{value:W,children:d.jsx(QI,S({as:s,ownerState:m,className:le(b.root,i),ref:n},v,{children:o}))})}),JI=s4({createStyledComponent:ie("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Re({props:e,name:"MuiStack"})});function ZI(e){return be("MuiFormControlLabel",e)}const Ma=we("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),e_=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],t_=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,a={root:["root",n&&"disabled",`labelPlacement${Z(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Se(a,ZI,t)},n_=ie("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ma.label}`]:t.label},t.root,t[`labelPlacement${Z(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>S({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Ma.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Ma.label}`]:{[`&.${Ma.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),r_=ie("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Ma.error}`]:{color:(e.vars||e).palette.error.main}})),Tm=p.forwardRef(function(t,n){var r,o;const i=Re({props:t,name:"MuiFormControlLabel"}),{className:a,componentsProps:s={},control:l,disabled:c,disableTypography:u,label:f,labelPlacement:h="end",required:w,slotProps:y={}}=i,x=se(i,e_),C=br(),v=(r=c??l.props.disabled)!=null?r:C==null?void 0:C.disabled,m=w??l.props.required,b={disabled:v,required:m};["checked","name","onChange","value","inputRef"].forEach(N=>{typeof l.props[N]>"u"&&typeof i[N]<"u"&&(b[N]=i[N])});const R=vo({props:i,muiFormControl:C,states:["error"]}),k=S({},i,{disabled:v,labelPlacement:h,required:m,error:R.error}),T=t_(k),P=(o=y.typography)!=null?o:s.typography;let j=f;return j!=null&&j.type!==Ie&&!u&&(j=d.jsx(Ie,S({component:"span"},P,{className:le(T.label,P==null?void 0:P.className),children:j}))),d.jsxs(n_,S({className:le(T.root,a),ownerState:k,ref:n},x,{children:[p.cloneElement(l,b),m?d.jsxs(JI,{display:"block",children:[j,d.jsxs(r_,{ownerState:k,"aria-hidden":!0,className:T.asterisk,children:[" ","*"]})]}):j]}))});function o_(e){return be("MuiFormGroup",e)}we("MuiFormGroup",["root","row","error"]);const i_=["className","row"],a_=e=>{const{classes:t,row:n,error:r}=e;return Se({root:["root",n&&"row",r&&"error"]},o_,t)},s_=ie("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>S({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),i2=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiFormGroup"}),{className:o,row:i=!1}=r,a=se(r,i_),s=br(),l=vo({props:r,muiFormControl:s,states:["error"]}),c=S({},r,{row:i,error:l.error}),u=a_(c);return d.jsx(s_,S({className:le(u.root,o),ownerState:c,ref:n},a))});function l_(e){return be("MuiFormHelperText",e)}const ay=we("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var sy;const c_=["children","className","component","disabled","error","filled","focused","margin","required","variant"],u_=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:a,focused:s,required:l}=e,c={root:["root",o&&"disabled",i&&"error",r&&`size${Z(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return Se(c,l_,t)},d_=ie("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Z(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${ay.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ay.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),f_=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:a="p"}=r,s=se(r,c_),l=br(),c=vo({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),u=S({},r,{component:a,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=u_(u);return d.jsx(d_,S({as:a,ownerState:u,className:le(f.root,i),ref:n},s,{children:o===" "?sy||(sy=d.jsx("span",{className:"notranslate",children:"​"})):o}))});function p_(e){return be("MuiFormLabel",e)}const Va=we("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),h_=["children","className","color","component","disabled","error","filled","focused","required"],m_=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:s}=e,l={root:["root",`color${Z(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return Se(l,p_,t)},g_=ie("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Va.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Va.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Va.error}`]:{color:(e.vars||e).palette.error.main}})),v_=ie("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Va.error}`]:{color:(e.vars||e).palette.error.main}})),y_=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:a="label"}=r,s=se(r,h_),l=br(),c=vo({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),u=S({},r,{color:c.color||"primary",component:a,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=m_(u);return d.jsxs(g_,S({as:a,ownerState:u,className:le(f.root,i),ref:n},s,{children:[o,c.required&&d.jsxs(v_,{ownerState:u,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),x_=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function _p(e){return`scale(${e}, ${e**2})`}const b_={entering:{opacity:1,transform:_p(1)},entered:{opacity:1,transform:"none"}},nf=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),bs=p.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:f,onExited:h,onExiting:w,style:y,timeout:x="auto",TransitionComponent:C=ar}=t,v=se(t,x_),m=To(),b=p.useRef(),R=mo(),k=p.useRef(null),T=lt(k,i.ref,n),P=ee=>J=>{if(ee){const re=k.current;J===void 0?ee(re):ee(re,J)}},j=P(u),N=P((ee,J)=>{pm(ee);const{duration:re,delay:I,easing:_}=Ai({style:y,timeout:x,easing:a},{mode:"enter"});let E;x==="auto"?(E=R.transitions.getAutoHeightDuration(ee.clientHeight),b.current=E):E=re,ee.style.transition=[R.transitions.create("opacity",{duration:E,delay:I}),R.transitions.create("transform",{duration:nf?E:E*.666,delay:I,easing:_})].join(","),l&&l(ee,J)}),O=P(c),F=P(w),W=P(ee=>{const{duration:J,delay:re,easing:I}=Ai({style:y,timeout:x,easing:a},{mode:"exit"});let _;x==="auto"?(_=R.transitions.getAutoHeightDuration(ee.clientHeight),b.current=_):_=J,ee.style.transition=[R.transitions.create("opacity",{duration:_,delay:re}),R.transitions.create("transform",{duration:nf?_:_*.666,delay:nf?re:re||_*.333,easing:I})].join(","),ee.style.opacity=0,ee.style.transform=_p(.75),f&&f(ee)}),U=P(h),G=ee=>{x==="auto"&&m.start(b.current||0,ee),r&&r(k.current,ee)};return d.jsx(C,S({appear:o,in:s,nodeRef:k,onEnter:N,onEntered:O,onEntering:j,onExit:W,onExited:U,onExiting:F,addEndListener:G,timeout:x==="auto"?null:x},v,{children:(ee,J)=>p.cloneElement(i,S({style:S({opacity:0,transform:_p(.75),visibility:ee==="exited"&&!s?"hidden":void 0},b_[ee],y,i.props.style),ref:T},J))}))});bs.muiSupportAuto=!0;const w_=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],S_=e=>{const{classes:t,disableUnderline:n}=e,o=Se({root:["root",!n&&"underline"],input:["input"]},LO,t);return S({},t,o)},C_=ie(od,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...nd(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),S({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${xa.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${xa.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${xa.disabled}, .${xa.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${xa.disabled}:before`]:{borderBottomStyle:"dotted"}})}),R_=ie(id,{name:"MuiInput",slot:"Input",overridesResolver:rd})({}),$m=p.forwardRef(function(t,n){var r,o,i,a;const s=Re({props:t,name:"MuiInput"}),{disableUnderline:l,components:c={},componentsProps:u,fullWidth:f=!1,inputComponent:h="input",multiline:w=!1,slotProps:y,slots:x={},type:C="text"}=s,v=se(s,w_),m=S_(s),R={root:{ownerState:{disableUnderline:l}}},k=y??u?Qt(y??u,R):R,T=(r=(o=x.root)!=null?o:c.Root)!=null?r:C_,P=(i=(a=x.input)!=null?a:c.Input)!=null?i:R_;return d.jsx(Sm,S({slots:{root:T,input:P},slotProps:k,fullWidth:f,inputComponent:h,multiline:w,ref:n,type:C},v,{classes:m}))});$m.muiName="Input";function k_(e){return be("MuiInputAdornment",e)}const ly=we("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var cy;const P_=["children","className","component","disablePointerEvents","disableTypography","position","variant"],E_=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Z(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},T_=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${Z(o)}`,a,r&&"hiddenLabel",i&&`size${Z(i)}`]};return Se(s,k_,t)},$_=ie("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:E_})(({theme:e,ownerState:t})=>S({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${ly.positionStart}&:not(.${ly.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),jc=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u}=r,f=se(r,P_),h=br()||{};let w=u;u&&h.variant,h&&!w&&(w=h.variant);const y=S({},r,{hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:s,position:c,variant:w}),x=T_(y);return d.jsx(td.Provider,{value:null,children:d.jsx($_,S({as:a,ownerState:y,className:le(x.root,i),ref:n},f,{children:typeof o=="string"&&!l?d.jsx(Ie,{color:"text.secondary",children:o}):d.jsxs(p.Fragment,{children:[c==="start"?cy||(cy=d.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})});function M_(e){return be("MuiInputLabel",e)}we("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const j_=["disableAnimation","margin","shrink","variant","className"],O_=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:s}=e,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${Z(r)}`,a],asterisk:[s&&"asterisk"]},c=Se(l,M_,t);return S({},t,c)},I_=ie(y_,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Va.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>S({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&S({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&S({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&S({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),cd=p.forwardRef(function(t,n){const r=Re({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:a}=r,s=se(r,j_),l=br();let c=i;typeof c>"u"&&l&&(c=l.filled||l.focused||l.adornedStart);const u=vo({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),f=S({},r,{disableAnimation:o,formControl:l,shrink:c,size:u.size,variant:u.variant,required:u.required,focused:u.focused}),h=O_(f);return d.jsx(I_,S({"data-shrink":c,ownerState:f,ref:n,className:le(h.root,a)},s,{classes:h}))}),gr=p.createContext({});function __(e){return be("MuiList",e)}we("MuiList",["root","padding","dense","subheader"]);const L_=["children","className","component","dense","disablePadding","subheader"],A_=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Se({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},__,t)},N_=ie("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>S({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Fs=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:c}=r,u=se(r,L_),f=p.useMemo(()=>({dense:s}),[s]),h=S({},r,{component:a,dense:s,disablePadding:l}),w=A_(h);return d.jsx(gr.Provider,{value:f,children:d.jsxs(N_,S({as:a,className:le(w.root,i),ref:n,ownerState:h},u,{children:[c,o]}))})});function D_(e){return be("MuiListItem",e)}const oi=we("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),z_=we("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function B_(e){return be("MuiListItemSecondaryAction",e)}we("MuiListItemSecondaryAction",["root","disableGutters"]);const F_=["className"],U_=e=>{const{disableGutters:t,classes:n}=e;return Se({root:["root",t&&"disableGutters"]},B_,n)},W_=ie("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>S({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),a2=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=se(r,F_),a=p.useContext(gr),s=S({},r,{disableGutters:a.disableGutters}),l=U_(s);return d.jsx(W_,S({className:le(l.root,o),ownerState:s,ref:n},i))});a2.muiName="ListItemSecondaryAction";const H_=["className"],V_=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],q_=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},G_=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=e;return Se({root:["root",o&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},D_,r)},K_=ie("div",{name:"MuiListItem",slot:"Root",overridesResolver:q_})(({theme:e,ownerState:t})=>S({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&S({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${z_.root}`]:{paddingRight:48}},{[`&.${oi.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${oi.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${oi.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${oi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${oi.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Y_=ie("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Oc=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:a=!1,children:s,className:l,component:c,components:u={},componentsProps:f={},ContainerComponent:h="li",ContainerProps:{className:w}={},dense:y=!1,disabled:x=!1,disableGutters:C=!1,disablePadding:v=!1,divider:m=!1,focusVisibleClassName:b,secondaryAction:R,selected:k=!1,slotProps:T={},slots:P={}}=r,j=se(r.ContainerProps,H_),N=se(r,V_),O=p.useContext(gr),F=p.useMemo(()=>({dense:y||O.dense||!1,alignItems:o,disableGutters:C}),[o,O.dense,y,C]),W=p.useRef(null);Sn(()=>{i&&W.current&&W.current.focus()},[i]);const U=p.Children.toArray(s),G=U.length&&Fa(U[U.length-1],["ListItemSecondaryAction"]),ee=S({},r,{alignItems:o,autoFocus:i,button:a,dense:F.dense,disabled:x,disableGutters:C,disablePadding:v,divider:m,hasSecondaryAction:G,selected:k}),J=G_(ee),re=lt(W,n),I=P.root||u.Root||K_,_=T.root||f.root||{},E=S({className:le(J.root,_.className,l),disabled:x},N);let g=c||"li";return a&&(E.component=c||"div",E.focusVisibleClassName=le(oi.focusVisible,b),g=Ir),G?(g=!E.component&&!c?"div":g,h==="li"&&(g==="li"?g="div":E.component==="li"&&(E.component="div")),d.jsx(gr.Provider,{value:F,children:d.jsxs(Y_,S({as:h,className:le(J.container,w),ref:re,ownerState:ee},j,{children:[d.jsx(I,S({},_,!Ni(I)&&{as:g,ownerState:S({},ee,_.ownerState)},E,{children:U})),U.pop()]}))})):d.jsx(gr.Provider,{value:F,children:d.jsxs(I,S({},_,{as:g,ref:re},!Ni(I)&&{ownerState:S({},ee,_.ownerState)},E,{children:[U,R&&d.jsx(a2,{children:R})]}))})});function X_(e){return be("MuiListItemAvatar",e)}we("MuiListItemAvatar",["root","alignItemsFlexStart"]);const Q_=["className"],J_=e=>{const{alignItems:t,classes:n}=e;return Se({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},X_,n)},Z_=ie("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>S({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),eL=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiListItemAvatar"}),{className:o}=r,i=se(r,Q_),a=p.useContext(gr),s=S({},r,{alignItems:a.alignItems}),l=J_(s);return d.jsx(Z_,S({className:le(l.root,o),ownerState:s,ref:n},i))});function tL(e){return be("MuiListItemIcon",e)}const uy=we("MuiListItemIcon",["root","alignItemsFlexStart"]),nL=["className"],rL=e=>{const{alignItems:t,classes:n}=e;return Se({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},tL,n)},oL=ie("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>S({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),dy=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiListItemIcon"}),{className:o}=r,i=se(r,nL),a=p.useContext(gr),s=S({},r,{alignItems:a.alignItems}),l=rL(s);return d.jsx(oL,S({className:le(l.root,o),ownerState:s,ref:n},i))});function iL(e){return be("MuiListItemText",e)}const Ic=we("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),aL=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],sL=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return Se({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},iL,t)},lL=ie("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ic.primary}`]:t.primary},{[`& .${Ic.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>S({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),ws=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:f}=r,h=se(r,aL),{dense:w}=p.useContext(gr);let y=l??o,x=u;const C=S({},r,{disableTypography:a,inset:s,primary:!!y,secondary:!!x,dense:w}),v=sL(C);return y!=null&&y.type!==Ie&&!a&&(y=d.jsx(Ie,S({variant:w?"body2":"body1",className:v.primary,component:c!=null&&c.variant?void 0:"span",display:"block"},c,{children:y}))),x!=null&&x.type!==Ie&&!a&&(x=d.jsx(Ie,S({variant:"body2",className:v.secondary,color:"text.secondary",display:"block"},f,{children:x}))),d.jsxs(lL,S({className:le(v.root,i),ownerState:C,ref:n},h,{children:[y,x]}))}),cL=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function rf(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function fy(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function s2(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function ba(e,t,n,r,o,i){let a=!1,s=o(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!s2(s,i)||l)s=o(e,s,n);else return s.focus(),!0}return!1}const uL=p.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:f="selectedMenu"}=t,h=se(t,cL),w=p.useRef(null),y=p.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Sn(()=>{o&&w.current.focus()},[o]),p.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(b,{direction:R})=>{const k=!w.current.style.width;if(b.clientHeight{const R=w.current,k=b.key,T=St(R).activeElement;if(k==="ArrowDown")b.preventDefault(),ba(R,T,c,l,rf);else if(k==="ArrowUp")b.preventDefault(),ba(R,T,c,l,fy);else if(k==="Home")b.preventDefault(),ba(R,null,c,l,rf);else if(k==="End")b.preventDefault(),ba(R,null,c,l,fy);else if(k.length===1){const P=y.current,j=k.toLowerCase(),N=performance.now();P.keys.length>0&&(N-P.lastTime>500?(P.keys=[],P.repeating=!0,P.previousKeyMatched=!0):P.repeating&&j!==P.keys[0]&&(P.repeating=!1)),P.lastTime=N,P.keys.push(j);const O=T&&!P.repeating&&s2(T,P);P.previousKeyMatched&&(O||ba(R,T,!1,l,rf,P))?b.preventDefault():P.previousKeyMatched=!1}u&&u(b)},C=lt(w,n);let v=-1;p.Children.forEach(a,(b,R)=>{if(!p.isValidElement(b)){v===R&&(v+=1,v>=a.length&&(v=-1));return}b.props.disabled||(f==="selectedMenu"&&b.props.selected||v===-1)&&(v=R),v===R&&(b.props.disabled||b.props.muiSkipListHighlight||b.type.muiSkipListHighlight)&&(v+=1,v>=a.length&&(v=-1))});const m=p.Children.map(a,(b,R)=>{if(R===v){const k={};return i&&(k.autoFocus=!0),b.props.tabIndex===void 0&&f==="selectedMenu"&&(k.tabIndex=0),p.cloneElement(b,k)}return b});return d.jsx(Fs,S({role:"menu",ref:C,className:s,onKeyDown:x,tabIndex:o?0:-1},h,{children:m}))});function dL(e){return be("MuiPopover",e)}we("MuiPopover",["root","paper"]);const fL=["onEntering"],pL=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],hL=["slotProps"];function py(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function hy(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function my(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function of(e){return typeof e=="function"?e():e}const mL=e=>{const{classes:t}=e;return Se({root:["root"],paper:["paper"]},dL,t)},gL=ie(Pm,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),l2=ie(En,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),vL=p.forwardRef(function(t,n){var r,o,i;const a=Re({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:f="anchorEl",children:h,className:w,container:y,elevation:x=8,marginThreshold:C=16,open:v,PaperProps:m={},slots:b,slotProps:R,transformOrigin:k={vertical:"top",horizontal:"left"},TransitionComponent:T=bs,transitionDuration:P="auto",TransitionProps:{onEntering:j}={},disableScrollLock:N=!1}=a,O=se(a.TransitionProps,fL),F=se(a,pL),W=(r=R==null?void 0:R.paper)!=null?r:m,U=p.useRef(),G=lt(U,W.ref),ee=S({},a,{anchorOrigin:c,anchorReference:f,elevation:x,marginThreshold:C,externalPaperSlotProps:W,transformOrigin:k,TransitionComponent:T,transitionDuration:P,TransitionProps:O}),J=mL(ee),re=p.useCallback(()=>{if(f==="anchorPosition")return u;const te=of(l),de=(te&&te.nodeType===1?te:St(U.current).body).getBoundingClientRect();return{top:de.top+py(de,c.vertical),left:de.left+hy(de,c.horizontal)}},[l,c.horizontal,c.vertical,u,f]),I=p.useCallback(te=>({vertical:py(te,k.vertical),horizontal:hy(te,k.horizontal)}),[k.horizontal,k.vertical]),_=p.useCallback(te=>{const ne={width:te.offsetWidth,height:te.offsetHeight},de=I(ne);if(f==="none")return{top:null,left:null,transformOrigin:my(de)};const ke=re();let H=ke.top-de.vertical,ae=ke.left-de.horizontal;const ge=H+ne.height,D=ae+ne.width,X=Bn(of(l)),fe=X.innerHeight-C,pe=X.innerWidth-C;if(C!==null&&Hfe){const ve=ge-fe;H-=ve,de.vertical+=ve}if(C!==null&&aepe){const ve=D-pe;ae-=ve,de.horizontal+=ve}return{top:`${Math.round(H)}px`,left:`${Math.round(ae)}px`,transformOrigin:my(de)}},[l,f,re,I,C]),[E,g]=p.useState(v),$=p.useCallback(()=>{const te=U.current;if(!te)return;const ne=_(te);ne.top!==null&&(te.style.top=ne.top),ne.left!==null&&(te.style.left=ne.left),te.style.transformOrigin=ne.transformOrigin,g(!0)},[_]);p.useEffect(()=>(N&&window.addEventListener("scroll",$),()=>window.removeEventListener("scroll",$)),[l,N,$]);const z=(te,ne)=>{j&&j(te,ne),$()},L=()=>{g(!1)};p.useEffect(()=>{v&&$()}),p.useImperativeHandle(s,()=>v?{updatePosition:()=>{$()}}:null,[v,$]),p.useEffect(()=>{if(!v)return;const te=ea(()=>{$()}),ne=Bn(l);return ne.addEventListener("resize",te),()=>{te.clear(),ne.removeEventListener("resize",te)}},[l,v,$]);let B=P;P==="auto"&&!T.muiSupportAuto&&(B=void 0);const V=y||(l?St(of(l)).body:void 0),M=(o=b==null?void 0:b.root)!=null?o:gL,A=(i=b==null?void 0:b.paper)!=null?i:l2,K=fn({elementType:A,externalSlotProps:S({},W,{style:E?W.style:S({},W.style,{opacity:0})}),additionalProps:{elevation:x,ref:G},ownerState:ee,className:le(J.paper,W==null?void 0:W.className)}),Y=fn({elementType:M,externalSlotProps:(R==null?void 0:R.root)||{},externalForwardedProps:F,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:V,open:v},ownerState:ee,className:le(J.root,w)}),{slotProps:q}=Y,oe=se(Y,hL);return d.jsx(M,S({},oe,!Ni(M)&&{slotProps:q,disableScrollLock:N},{children:d.jsx(T,S({appear:!0,in:v,onEntering:z,onExited:L,timeout:B},O,{children:d.jsx(A,S({},K,{children:h}))}))}))});function yL(e){return be("MuiMenu",e)}we("MuiMenu",["root","paper","list"]);const xL=["onEntering"],bL=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],wL={vertical:"top",horizontal:"right"},SL={vertical:"top",horizontal:"left"},CL=e=>{const{classes:t}=e;return Se({root:["root"],paper:["paper"],list:["list"]},yL,t)},RL=ie(vL,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),kL=ie(l2,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),PL=ie(uL,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),c2=p.forwardRef(function(t,n){var r,o;const i=Re({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:f,open:h,PaperProps:w={},PopoverClasses:y,transitionDuration:x="auto",TransitionProps:{onEntering:C}={},variant:v="selectedMenu",slots:m={},slotProps:b={}}=i,R=se(i.TransitionProps,xL),k=se(i,bL),T=As(),P=S({},i,{autoFocus:a,disableAutoFocusItem:c,MenuListProps:u,onEntering:C,PaperProps:w,transitionDuration:x,TransitionProps:R,variant:v}),j=CL(P),N=a&&!c&&h,O=p.useRef(null),F=(I,_)=>{O.current&&O.current.adjustStyleForScrollbar(I,{direction:T?"rtl":"ltr"}),C&&C(I,_)},W=I=>{I.key==="Tab"&&(I.preventDefault(),f&&f(I,"tabKeyDown"))};let U=-1;p.Children.map(s,(I,_)=>{p.isValidElement(I)&&(I.props.disabled||(v==="selectedMenu"&&I.props.selected||U===-1)&&(U=_))});const G=(r=m.paper)!=null?r:kL,ee=(o=b.paper)!=null?o:w,J=fn({elementType:m.root,externalSlotProps:b.root,ownerState:P,className:[j.root,l]}),re=fn({elementType:G,externalSlotProps:ee,ownerState:P,className:j.paper});return d.jsx(RL,S({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:T?"right":"left"},transformOrigin:T?wL:SL,slots:{paper:G,root:m.root},slotProps:{root:J,paper:re},open:h,ref:n,transitionDuration:x,TransitionProps:S({onEntering:F},R),ownerState:P},k,{classes:y,children:d.jsx(PL,S({onKeyDown:W,actions:O,autoFocus:a&&(U===-1||c),autoFocusItem:N,variant:v},u,{className:le(j.list,u.className),children:s}))}))});function EL(e){return be("MuiMenuItem",e)}const wa=we("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),TL=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],$L=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},ML=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,l=Se({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},EL,a);return S({},a,l)},jL=ie(Ir,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:$L})(({theme:e,ownerState:t})=>S({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${wa.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${wa.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${wa.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${wa.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${wa.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${oy.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${oy.inset}`]:{marginLeft:52},[`& .${Ic.root}`]:{marginTop:0,marginBottom:0},[`& .${Ic.inset}`]:{paddingLeft:36},[`& .${uy.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&S({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${uy.root} svg`]:{fontSize:"1.25rem"}}))),Jn=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:f,className:h}=r,w=se(r,TL),y=p.useContext(gr),x=p.useMemo(()=>({dense:a||y.dense||!1,disableGutters:l}),[y.dense,a,l]),C=p.useRef(null);Sn(()=>{o&&C.current&&C.current.focus()},[o]);const v=S({},r,{dense:x.dense,divider:s,disableGutters:l}),m=ML(r),b=lt(C,n);let R;return r.disabled||(R=f!==void 0?f:-1),d.jsx(gr.Provider,{value:x,children:d.jsx(jL,S({ref:b,role:u,tabIndex:R,component:i,focusVisibleClassName:le(m.focusVisible,c),className:le(m.root,h)},w,{ownerState:v,classes:m}))})});function OL(e){return be("MuiNativeSelect",e)}const Mm=we("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),IL=["className","disabled","error","IconComponent","inputRef","variant"],_L=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Z(n)}`,i&&"iconOpen",r&&"disabled"]};return Se(s,OL,t)},u2=({ownerState:e,theme:t})=>S({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":S({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Mm.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),LL=ie("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ht,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Mm.multiple}`]:t.multiple}]}})(u2),d2=({ownerState:e,theme:t})=>S({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Mm.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),AL=ie("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Z(n.variant)}`],n.open&&t.iconOpen]}})(d2),NL=p.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:a,inputRef:s,variant:l="standard"}=t,c=se(t,IL),u=S({},t,{disabled:o,variant:l,error:i}),f=_L(u);return d.jsxs(p.Fragment,{children:[d.jsx(LL,S({ownerState:u,className:le(f.select,r),disabled:o,ref:s||n},c)),t.multiple?null:d.jsx(AL,{as:a,ownerState:u,className:f.icon})]})});var gy;const DL=["children","classes","className","label","notched"],zL=ie("fieldset",{shouldForwardProp:Ht})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),BL=ie("legend",{shouldForwardProp:Ht})(({ownerState:e,theme:t})=>S({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&S({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function FL(e){const{className:t,label:n,notched:r}=e,o=se(e,DL),i=n!=null&&n!=="",a=S({},e,{notched:r,withLabel:i});return d.jsx(zL,S({"aria-hidden":!0,className:t,ownerState:a},o,{children:d.jsx(BL,{ownerState:a,children:i?d.jsx("span",{children:n}):gy||(gy=d.jsx("span",{className:"notranslate",children:"​"}))})}))}const UL=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],WL=e=>{const{classes:t}=e,r=Se({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},AO,t);return S({},t,r)},HL=ie(od,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:nd})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return S({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ur.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ur.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Ur.focused} .${Ur.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Ur.error} .${Ur.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ur.disabled} .${Ur.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&S({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),VL=ie(FL,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),qL=ie(id,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:rd})(({theme:e,ownerState:t})=>S({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),jm=p.forwardRef(function(t,n){var r,o,i,a,s;const l=Re({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:f="input",label:h,multiline:w=!1,notched:y,slots:x={},type:C="text"}=l,v=se(l,UL),m=WL(l),b=br(),R=vo({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),k=S({},l,{color:R.color||"primary",disabled:R.disabled,error:R.error,focused:R.focused,formControl:b,fullWidth:u,hiddenLabel:R.hiddenLabel,multiline:w,size:R.size,type:C}),T=(r=(o=x.root)!=null?o:c.Root)!=null?r:HL,P=(i=(a=x.input)!=null?a:c.Input)!=null?i:qL;return d.jsx(Sm,S({slots:{root:T,input:P},renderSuffix:j=>d.jsx(VL,{ownerState:k,className:m.notchedOutline,label:h!=null&&h!==""&&R.required?s||(s=d.jsxs(p.Fragment,{children:[h," ","*"]})):h,notched:typeof y<"u"?y:!!(j.startAdornment||j.filled||j.focused)}),fullWidth:u,inputComponent:f,multiline:w,ref:n,type:C},v,{classes:S({},m,{notchedOutline:null})}))});jm.muiName="Input";function GL(e){return be("MuiSelect",e)}const Sa=we("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var vy;const KL=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],YL=ie("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Sa.select}`]:t.select},{[`&.${Sa.select}`]:t[n.variant]},{[`&.${Sa.error}`]:t.error},{[`&.${Sa.multiple}`]:t.multiple}]}})(u2,{[`&.${Sa.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),XL=ie("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Z(n.variant)}`],n.open&&t.iconOpen]}})(d2),QL=ie("input",{shouldForwardProp:e=>Tw(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function yy(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function JL(e){return e==null||typeof e=="string"&&!e.trim()}const ZL=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Z(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Se(s,GL,t)},eA=p.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":i,autoFocus:a,autoWidth:s,children:l,className:c,defaultOpen:u,defaultValue:f,disabled:h,displayEmpty:w,error:y=!1,IconComponent:x,inputRef:C,labelId:v,MenuProps:m={},multiple:b,name:R,onBlur:k,onChange:T,onClose:P,onFocus:j,onOpen:N,open:O,readOnly:F,renderValue:W,SelectDisplayProps:U={},tabIndex:G,value:ee,variant:J="standard"}=t,re=se(t,KL),[I,_]=gs({controlled:ee,default:f,name:"Select"}),[E,g]=gs({controlled:O,default:u,name:"Select"}),$=p.useRef(null),z=p.useRef(null),[L,B]=p.useState(null),{current:V}=p.useRef(O!=null),[M,A]=p.useState(),K=lt(n,C),Y=p.useCallback(ye=>{z.current=ye,ye&&B(ye)},[]),q=L==null?void 0:L.parentNode;p.useImperativeHandle(K,()=>({focus:()=>{z.current.focus()},node:$.current,value:I}),[I]),p.useEffect(()=>{u&&E&&L&&!V&&(A(s?null:q.clientWidth),z.current.focus())},[L,s]),p.useEffect(()=>{a&&z.current.focus()},[a]),p.useEffect(()=>{if(!v)return;const ye=St(z.current).getElementById(v);if(ye){const Pe=()=>{getSelection().isCollapsed&&z.current.focus()};return ye.addEventListener("click",Pe),()=>{ye.removeEventListener("click",Pe)}}},[v]);const oe=(ye,Pe)=>{ye?N&&N(Pe):P&&P(Pe),V||(A(s?null:q.clientWidth),g(ye))},te=ye=>{ye.button===0&&(ye.preventDefault(),z.current.focus(),oe(!0,ye))},ne=ye=>{oe(!1,ye)},de=p.Children.toArray(l),ke=ye=>{const Pe=de.find(ue=>ue.props.value===ye.target.value);Pe!==void 0&&(_(Pe.props.value),T&&T(ye,Pe))},H=ye=>Pe=>{let ue;if(Pe.currentTarget.hasAttribute("tabindex")){if(b){ue=Array.isArray(I)?I.slice():[];const me=I.indexOf(ye.props.value);me===-1?ue.push(ye.props.value):ue.splice(me,1)}else ue=ye.props.value;if(ye.props.onClick&&ye.props.onClick(Pe),I!==ue&&(_(ue),T)){const me=Pe.nativeEvent||Pe,$e=new me.constructor(me.type,me);Object.defineProperty($e,"target",{writable:!0,value:{value:ue,name:R}}),T($e,ye)}b||oe(!1,Pe)}},ae=ye=>{F||[" ","ArrowUp","ArrowDown","Enter"].indexOf(ye.key)!==-1&&(ye.preventDefault(),oe(!0,ye))},ge=L!==null&&E,D=ye=>{!ge&&k&&(Object.defineProperty(ye,"target",{writable:!0,value:{value:I,name:R}}),k(ye))};delete re["aria-invalid"];let X,fe;const pe=[];let ve=!1;(Mc({value:I})||w)&&(W?X=W(I):ve=!0);const Ce=de.map(ye=>{if(!p.isValidElement(ye))return null;let Pe;if(b){if(!Array.isArray(I))throw new Error(Bo(2));Pe=I.some(ue=>yy(ue,ye.props.value)),Pe&&ve&&pe.push(ye.props.children)}else Pe=yy(I,ye.props.value),Pe&&ve&&(fe=ye.props.children);return p.cloneElement(ye,{"aria-selected":Pe?"true":"false",onClick:H(ye),onKeyUp:ue=>{ue.key===" "&&ue.preventDefault(),ye.props.onKeyUp&&ye.props.onKeyUp(ue)},role:"option",selected:Pe,value:void 0,"data-value":ye.props.value})});ve&&(b?pe.length===0?X=null:X=pe.reduce((ye,Pe,ue)=>(ye.push(Pe),ue{const{classes:t}=e;return t},Om={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ht(e)&&e!=="variant",slot:"Root"},oA=ie($m,Om)(""),iA=ie(jm,Om)(""),aA=ie(Em,Om)(""),Us=p.forwardRef(function(t,n){const r=Re({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=DO,id:f,input:h,inputProps:w,label:y,labelId:x,MenuProps:C,multiple:v=!1,native:m=!1,onClose:b,onOpen:R,open:k,renderValue:T,SelectDisplayProps:P,variant:j="outlined"}=r,N=se(r,tA),O=m?NL:eA,F=br(),W=vo({props:r,muiFormControl:F,states:["variant","error"]}),U=W.variant||j,G=S({},r,{variant:U,classes:a}),ee=rA(G),J=se(ee,nA),re=h||{standard:d.jsx(oA,{ownerState:G}),outlined:d.jsx(iA,{label:y,ownerState:G}),filled:d.jsx(aA,{ownerState:G})}[U],I=lt(n,re.ref);return d.jsx(p.Fragment,{children:p.cloneElement(re,S({inputComponent:O,inputProps:S({children:i,error:W.error,IconComponent:u,variant:U,type:void 0,multiple:v},m?{id:f}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:x,MenuProps:C,onClose:b,onOpen:R,open:k,renderValue:T,SelectDisplayProps:S({id:f},P)},w,{classes:w?Qt(J,w.classes):J},h?h.props.inputProps:{})},(v&&m||c)&&U==="outlined"?{notched:!0}:{},{ref:I,className:le(re.props.className,s,ee.root)},!h&&{variant:U},N))})});Us.muiName="Select";function sA(e){return be("MuiSnackbarContent",e)}we("MuiSnackbarContent",["root","message","action"]);const lA=["action","className","message","role"],cA=e=>{const{classes:t}=e;return Se({root:["root"],action:["action"],message:["message"]},sA,t)},uA=ie(En,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=d4(e.palette.background.default,t);return S({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),dA=ie("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),fA=ie("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),pA=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiSnackbarContent"}),{action:o,className:i,message:a,role:s="alert"}=r,l=se(r,lA),c=r,u=cA(c);return d.jsxs(uA,S({role:s,square:!0,elevation:6,className:le(u.root,i),ownerState:c,ref:n},l,{children:[d.jsx(dA,{className:u.message,ownerState:c,children:a}),o?d.jsx(fA,{className:u.action,ownerState:c,children:o}):null]}))});function hA(e){return be("MuiSnackbar",e)}we("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const mA=["onEnter","onExited"],gA=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],vA=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${Z(n.vertical)}${Z(n.horizontal)}`]};return Se(r,hA,t)},xy=ie("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${Z(n.anchorOrigin.vertical)}${Z(n.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const n={left:"50%",right:"auto",transform:"translateX(-50%)"};return S({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:S({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&n,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),yo=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiSnackbar"}),o=mo(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:s,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:u,className:f,ClickAwayListenerProps:h,ContentProps:w,disableWindowBlurListener:y=!1,message:x,open:C,TransitionComponent:v=bs,transitionDuration:m=i,TransitionProps:{onEnter:b,onExited:R}={}}=r,k=se(r.TransitionProps,mA),T=se(r,gA),P=S({},r,{anchorOrigin:{vertical:s,horizontal:l},autoHideDuration:c,disableWindowBlurListener:y,TransitionComponent:v,transitionDuration:m}),j=vA(P),{getRootProps:N,onClickAway:O}=uO(S({},P)),[F,W]=p.useState(!0),U=fn({elementType:xy,getSlotProps:N,externalForwardedProps:T,ownerState:P,additionalProps:{ref:n},className:[j.root,f]}),G=J=>{W(!0),R&&R(J)},ee=(J,re)=>{W(!1),b&&b(J,re)};return!C&&F?null:d.jsx(jM,S({onClickAway:O},h,{children:d.jsx(xy,S({},U,{children:d.jsx(v,S({appear:!0,in:C,timeout:m,direction:s==="top"?"down":"up",onEnter:ee,onExited:G},k,{children:u||d.jsx(pA,S({message:x,action:a},w))}))}))}))});function yA(e){return be("MuiTooltip",e)}const Jr=we("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),xA=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function bA(e){return Math.round(e*1e5)/1e5}const wA=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Z(i.split("-")[0])}`],arrow:["arrow"]};return Se(a,yA,t)},SA=ie(Kw,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>S({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Jr.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Jr.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Jr.arrow}`]:S({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Jr.arrow}`]:S({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),CA=ie("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Z(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>S({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Fe(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${bA(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Jr.popper}[data-popper-placement*="left"] &`]:S({transformOrigin:"right center"},t.isRtl?S({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):S({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Jr.popper}[data-popper-placement*="right"] &`]:S({transformOrigin:"left center"},t.isRtl?S({marginRight:"14px"},t.touch&&{marginRight:"24px"}):S({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Jr.popper}[data-popper-placement*="top"] &`]:S({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Jr.popper}[data-popper-placement*="bottom"] &`]:S({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),RA=ie("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Fe(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let yl=!1;const by=new Ls;let Ca={x:0,y:0};function xl(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Zn=p.forwardRef(function(t,n){var r,o,i,a,s,l,c,u,f,h,w,y,x,C,v,m,b,R,k;const T=Re({props:t,name:"MuiTooltip"}),{arrow:P=!1,children:j,components:N={},componentsProps:O={},describeChild:F=!1,disableFocusListener:W=!1,disableHoverListener:U=!1,disableInteractive:G=!1,disableTouchListener:ee=!1,enterDelay:J=100,enterNextDelay:re=0,enterTouchDelay:I=700,followCursor:_=!1,id:E,leaveDelay:g=0,leaveTouchDelay:$=1500,onClose:z,onOpen:L,open:B,placement:V="bottom",PopperComponent:M,PopperProps:A={},slotProps:K={},slots:Y={},title:q,TransitionComponent:oe=bs,TransitionProps:te}=T,ne=se(T,xA),de=p.isValidElement(j)?j:d.jsx("span",{children:j}),ke=mo(),H=As(),[ae,ge]=p.useState(),[D,X]=p.useState(null),fe=p.useRef(!1),pe=G||_,ve=To(),Ce=To(),Le=To(),De=To(),[Ee,he]=gs({controlled:B,default:!1,name:"Tooltip",state:"open"});let Ge=Ee;const Xe=_s(E),Ye=p.useRef(),ye=Yt(()=>{Ye.current!==void 0&&(document.body.style.WebkitUserSelect=Ye.current,Ye.current=void 0),De.clear()});p.useEffect(()=>ye,[ye]);const Pe=Ne=>{by.clear(),yl=!0,he(!0),L&&!Ge&&L(Ne)},ue=Yt(Ne=>{by.start(800+g,()=>{yl=!1}),he(!1),z&&Ge&&z(Ne),ve.start(ke.transitions.duration.shortest,()=>{fe.current=!1})}),me=Ne=>{fe.current&&Ne.type!=="touchstart"||(ae&&ae.removeAttribute("title"),Ce.clear(),Le.clear(),J||yl&&re?Ce.start(yl?re:J,()=>{Pe(Ne)}):Pe(Ne))},$e=Ne=>{Ce.clear(),Le.start(g,()=>{ue(Ne)})},{isFocusVisibleRef:Ae,onBlur:Qe,onFocus:Ct,ref:Ot}=om(),[,pn]=p.useState(!1),Dt=Ne=>{Qe(Ne),Ae.current===!1&&(pn(!1),$e(Ne))},zr=Ne=>{ae||ge(Ne.currentTarget),Ct(Ne),Ae.current===!0&&(pn(!0),me(Ne))},Go=Ne=>{fe.current=!0;const hn=de.props;hn.onTouchStart&&hn.onTouchStart(Ne)},Et=Ne=>{Go(Ne),Le.clear(),ve.clear(),ye(),Ye.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",De.start(I,()=>{document.body.style.WebkitUserSelect=Ye.current,me(Ne)})},dd=Ne=>{de.props.onTouchEnd&&de.props.onTouchEnd(Ne),ye(),Le.start($,()=>{ue(Ne)})};p.useEffect(()=>{if(!Ge)return;function Ne(hn){(hn.key==="Escape"||hn.key==="Esc")&&ue(hn)}return document.addEventListener("keydown",Ne),()=>{document.removeEventListener("keydown",Ne)}},[ue,Ge]);const Ws=lt(de.ref,Ot,ge,n);!q&&q!==0&&(Ge=!1);const oa=p.useRef(),ia=Ne=>{const hn=de.props;hn.onMouseMove&&hn.onMouseMove(Ne),Ca={x:Ne.clientX,y:Ne.clientY},oa.current&&oa.current.update()},tt={},en=typeof q=="string";F?(tt.title=!Ge&&en&&!U?q:null,tt["aria-describedby"]=Ge?Xe:null):(tt["aria-label"]=en?q:null,tt["aria-labelledby"]=Ge&&!en?Xe:null);const nt=S({},tt,ne,de.props,{className:le(ne.className,de.props.className),onTouchStart:Go,ref:Ws},_?{onMouseMove:ia}:{}),Tt={};ee||(nt.onTouchStart=Et,nt.onTouchEnd=dd),U||(nt.onMouseOver=xl(me,nt.onMouseOver),nt.onMouseLeave=xl($e,nt.onMouseLeave),pe||(Tt.onMouseOver=me,Tt.onMouseLeave=$e)),W||(nt.onFocus=xl(zr,nt.onFocus),nt.onBlur=xl(Dt,nt.onBlur),pe||(Tt.onFocus=zr,Tt.onBlur=Dt));const It=p.useMemo(()=>{var Ne;let hn=[{name:"arrow",enabled:!!D,options:{element:D,padding:4}}];return(Ne=A.popperOptions)!=null&&Ne.modifiers&&(hn=hn.concat(A.popperOptions.modifiers)),S({},A.popperOptions,{modifiers:hn})},[D,A]),qt=S({},T,{isRtl:H,arrow:P,disableInteractive:pe,placement:V,PopperComponentProp:M,touch:fe.current}),Gn=wA(qt),Ko=(r=(o=Y.popper)!=null?o:N.Popper)!=null?r:SA,aa=(i=(a=(s=Y.transition)!=null?s:N.Transition)!=null?a:oe)!=null?i:bs,Hs=(l=(c=Y.tooltip)!=null?c:N.Tooltip)!=null?l:CA,Vs=(u=(f=Y.arrow)!=null?f:N.Arrow)!=null?u:RA,q2=vi(Ko,S({},A,(h=K.popper)!=null?h:O.popper,{className:le(Gn.popper,A==null?void 0:A.className,(w=(y=K.popper)!=null?y:O.popper)==null?void 0:w.className)}),qt),G2=vi(aa,S({},te,(x=K.transition)!=null?x:O.transition),qt),K2=vi(Hs,S({},(C=K.tooltip)!=null?C:O.tooltip,{className:le(Gn.tooltip,(v=(m=K.tooltip)!=null?m:O.tooltip)==null?void 0:v.className)}),qt),Y2=vi(Vs,S({},(b=K.arrow)!=null?b:O.arrow,{className:le(Gn.arrow,(R=(k=K.arrow)!=null?k:O.arrow)==null?void 0:R.className)}),qt);return d.jsxs(p.Fragment,{children:[p.cloneElement(de,nt),d.jsx(Ko,S({as:M??Kw,placement:V,anchorEl:_?{getBoundingClientRect:()=>({top:Ca.y,left:Ca.x,right:Ca.x,bottom:Ca.y,width:0,height:0})}:ae,popperRef:oa,open:ae?Ge:!1,id:Xe,transition:!0},Tt,q2,{popperOptions:It,children:({TransitionProps:Ne})=>d.jsx(aa,S({timeout:ke.transitions.duration.shorter},Ne,G2,{children:d.jsxs(Hs,S({},K2,{children:[q,P?d.jsx(Vs,S({},Y2,{ref:X})):null]}))}))}))]})});function kA(e){return be("MuiSwitch",e)}const Gt=we("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),PA=["className","color","edge","size","sx"],EA=Ju(),TA=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:a}=e,s={root:["root",n&&`edge${Z(n)}`,`size${Z(r)}`],switchBase:["switchBase",`color${Z(o)}`,i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Se(s,kA,t);return S({},t,l)},$A=ie("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Z(n.edge)}`],t[`size${Z(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Gt.thumb}`]:{width:16,height:16},[`& .${Gt.switchBase}`]:{padding:4,[`&.${Gt.checked}`]:{transform:"translateX(16px)"}}}}]}),MA=ie(Zw,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Gt.input}`]:t.input},n.color!=="default"&&t[`color${Z(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Gt.checked}`]:{transform:"translateX(20px)"},[`&.${Gt.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Gt.checked} + .${Gt.track}`]:{opacity:.5},[`&.${Gt.disabled} + .${Gt.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Gt.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${Gt.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Gt.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?kc(e.palette[t].main,.62):Rc(e.palette[t].main,.55)}`}},[`&.${Gt.checked} + .${Gt.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),jA=ie("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),OA=ie("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),IA=p.forwardRef(function(t,n){const r=EA({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:a=!1,size:s="medium",sx:l}=r,c=se(r,PA),u=S({},r,{color:i,edge:a,size:s}),f=TA(u),h=d.jsx(OA,{className:f.thumb,ownerState:u});return d.jsxs($A,{className:le(f.root,o),sx:l,ownerState:u,children:[d.jsx(MA,S({type:"checkbox",icon:h,checkedIcon:h,ref:n,ownerState:u},c,{classes:S({},f,{root:f.switchBase})})),d.jsx(jA,{className:f.track,ownerState:u})]})});function _A(e){return be("MuiTab",e)}const bo=we("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),LA=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],AA=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:a,selected:s,disabled:l}=e,c={root:["root",i&&a&&"labelIcon",`textColor${Z(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Se(c,_A,t)},NA=ie(Ir,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Z(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>S({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${bo.iconWrapper}`]:S({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${bo.selected}`]:{opacity:1},[`&.${bo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${bo.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${bo.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${bo.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${bo.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),Hl=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:a=!1,fullWidth:s,icon:l,iconPosition:c="top",indicator:u,label:f,onChange:h,onClick:w,onFocus:y,selected:x,selectionFollowsFocus:C,textColor:v="inherit",value:m,wrapped:b=!1}=r,R=se(r,LA),k=S({},r,{disabled:i,disableFocusRipple:a,selected:x,icon:!!l,iconPosition:c,label:!!f,fullWidth:s,textColor:v,wrapped:b}),T=AA(k),P=l&&f&&p.isValidElement(l)?p.cloneElement(l,{className:le(T.iconWrapper,l.props.className)}):l,j=O=>{!x&&h&&h(O,m),w&&w(O)},N=O=>{C&&!x&&h&&h(O,m),y&&y(O)};return d.jsxs(NA,S({focusRipple:!a,className:le(T.root,o),ref:n,role:"tab","aria-selected":x,disabled:i,onClick:j,onFocus:N,ownerState:k,tabIndex:x?0:-1},R,{children:[c==="top"||c==="start"?d.jsxs(p.Fragment,{children:[P,f]}):d.jsxs(p.Fragment,{children:[f,P]}),u]}))});function DA(e){return be("MuiToolbar",e)}we("MuiToolbar",["root","gutters","regular","dense"]);const zA=["className","component","disableGutters","variant"],BA=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Se({root:["root",!n&&"gutters",r]},DA,t)},FA=ie("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>S({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),UA=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:a=!1,variant:s="regular"}=r,l=se(r,zA),c=S({},r,{component:i,disableGutters:a,variant:s}),u=BA(c);return d.jsx(FA,S({as:i,className:le(u.root,o),ref:n,ownerState:c},l))}),WA=Vt(d.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),HA=Vt(d.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function VA(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function qA(e,t,n,r={},o=()=>{}){const{ease:i=VA,duration:a=300}=r;let s=null;const l=t[e];let c=!1;const u=()=>{c=!0},f=h=>{if(c){o(new Error("Animation cancelled"));return}s===null&&(s=h);const w=Math.min(1,(h-s)/a);if(t[e]=i(w)*(n-l)+l,w>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(f)};return l===n?(o(new Error("Element already at target position")),u):(requestAnimationFrame(f),u)}const GA=["onChange"],KA={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function YA(e){const{onChange:t}=e,n=se(e,GA),r=p.useRef(),o=p.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Sn(()=>{const a=ea(()=>{const l=r.current;i(),l!==r.current&&t(r.current)}),s=Bn(o.current);return s.addEventListener("resize",a),()=>{a.clear(),s.removeEventListener("resize",a)}},[t]),p.useEffect(()=>{i(),t(r.current)},[t]),d.jsx("div",S({style:KA,ref:o},n))}function XA(e){return be("MuiTabScrollButton",e)}const QA=we("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),JA=["className","slots","slotProps","direction","orientation","disabled"],ZA=e=>{const{classes:t,orientation:n,disabled:r}=e;return Se({root:["root",n,r&&"disabled"]},XA,t)},eN=ie(Ir,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>S({width:40,flexShrink:0,opacity:.8,[`&.${QA.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),tN=p.forwardRef(function(t,n){var r,o;const i=Re({props:t,name:"MuiTabScrollButton"}),{className:a,slots:s={},slotProps:l={},direction:c}=i,u=se(i,JA),f=As(),h=S({isRtl:f},i),w=ZA(h),y=(r=s.StartScrollButtonIcon)!=null?r:WA,x=(o=s.EndScrollButtonIcon)!=null?o:HA,C=fn({elementType:y,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),v=fn({elementType:x,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return d.jsx(eN,S({component:"div",className:le(w.root,a),ref:n,role:null,ownerState:h,tabIndex:null},u,{children:c==="left"?d.jsx(y,S({},C)):d.jsx(x,S({},v))}))});function nN(e){return be("MuiTabs",e)}const af=we("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),rN=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],wy=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,Sy=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,bl=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const i=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||i)o=n(e,o);else{o.focus();return}}},oN=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return Se({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},nN,l)},iN=ie("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${af.scrollButtons}`]:t.scrollButtons},{[`& .${af.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>S({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${af.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),aN=ie("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>S({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),sN=ie("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>S({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),lN=ie("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>S({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),cN=ie(YA)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Cy={},f2=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTabs"}),o=mo(),i=As(),{"aria-label":a,"aria-labelledby":s,action:l,centered:c=!1,children:u,className:f,component:h="div",allowScrollButtonsMobile:w=!1,indicatorColor:y="primary",onChange:x,orientation:C="horizontal",ScrollButtonComponent:v=tN,scrollButtons:m="auto",selectionFollowsFocus:b,slots:R={},slotProps:k={},TabIndicatorProps:T={},TabScrollButtonProps:P={},textColor:j="primary",value:N,variant:O="standard",visibleScrollbar:F=!1}=r,W=se(r,rN),U=O==="scrollable",G=C==="vertical",ee=G?"scrollTop":"scrollLeft",J=G?"top":"left",re=G?"bottom":"right",I=G?"clientHeight":"clientWidth",_=G?"height":"width",E=S({},r,{component:h,allowScrollButtonsMobile:w,indicatorColor:y,orientation:C,vertical:G,scrollButtons:m,textColor:j,variant:O,visibleScrollbar:F,fixed:!U,hideScrollbar:U&&!F,scrollableX:U&&!G,scrollableY:U&&G,centered:c&&!U,scrollButtonsHideMobile:!w}),g=oN(E),$=fn({elementType:R.StartScrollButtonIcon,externalSlotProps:k.startScrollButtonIcon,ownerState:E}),z=fn({elementType:R.EndScrollButtonIcon,externalSlotProps:k.endScrollButtonIcon,ownerState:E}),[L,B]=p.useState(!1),[V,M]=p.useState(Cy),[A,K]=p.useState(!1),[Y,q]=p.useState(!1),[oe,te]=p.useState(!1),[ne,de]=p.useState({overflow:"hidden",scrollbarWidth:0}),ke=new Map,H=p.useRef(null),ae=p.useRef(null),ge=()=>{const ue=H.current;let me;if(ue){const Ae=ue.getBoundingClientRect();me={clientWidth:ue.clientWidth,scrollLeft:ue.scrollLeft,scrollTop:ue.scrollTop,scrollLeftNormalized:B$(ue,i?"rtl":"ltr"),scrollWidth:ue.scrollWidth,top:Ae.top,bottom:Ae.bottom,left:Ae.left,right:Ae.right}}let $e;if(ue&&N!==!1){const Ae=ae.current.children;if(Ae.length>0){const Qe=Ae[ke.get(N)];$e=Qe?Qe.getBoundingClientRect():null}}return{tabsMeta:me,tabMeta:$e}},D=Yt(()=>{const{tabsMeta:ue,tabMeta:me}=ge();let $e=0,Ae;if(G)Ae="top",me&&ue&&($e=me.top-ue.top+ue.scrollTop);else if(Ae=i?"right":"left",me&&ue){const Ct=i?ue.scrollLeftNormalized+ue.clientWidth-ue.scrollWidth:ue.scrollLeft;$e=(i?-1:1)*(me[Ae]-ue[Ae]+Ct)}const Qe={[Ae]:$e,[_]:me?me[_]:0};if(isNaN(V[Ae])||isNaN(V[_]))M(Qe);else{const Ct=Math.abs(V[Ae]-Qe[Ae]),Ot=Math.abs(V[_]-Qe[_]);(Ct>=1||Ot>=1)&&M(Qe)}}),X=(ue,{animation:me=!0}={})=>{me?qA(ee,H.current,ue,{duration:o.transitions.duration.standard}):H.current[ee]=ue},fe=ue=>{let me=H.current[ee];G?me+=ue:(me+=ue*(i?-1:1),me*=i&&hw()==="reverse"?-1:1),X(me)},pe=()=>{const ue=H.current[I];let me=0;const $e=Array.from(ae.current.children);for(let Ae=0;Ae<$e.length;Ae+=1){const Qe=$e[Ae];if(me+Qe[I]>ue){Ae===0&&(me=ue);break}me+=Qe[I]}return me},ve=()=>{fe(-1*pe())},Ce=()=>{fe(pe())},Le=p.useCallback(ue=>{de({overflow:null,scrollbarWidth:ue})},[]),De=()=>{const ue={};ue.scrollbarSizeListener=U?d.jsx(cN,{onChange:Le,className:le(g.scrollableX,g.hideScrollbar)}):null;const $e=U&&(m==="auto"&&(A||Y)||m===!0);return ue.scrollButtonStart=$e?d.jsx(v,S({slots:{StartScrollButtonIcon:R.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:$},orientation:C,direction:i?"right":"left",onClick:ve,disabled:!A},P,{className:le(g.scrollButtons,P.className)})):null,ue.scrollButtonEnd=$e?d.jsx(v,S({slots:{EndScrollButtonIcon:R.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:z},orientation:C,direction:i?"left":"right",onClick:Ce,disabled:!Y},P,{className:le(g.scrollButtons,P.className)})):null,ue},Ee=Yt(ue=>{const{tabsMeta:me,tabMeta:$e}=ge();if(!(!$e||!me)){if($e[J]me[re]){const Ae=me[ee]+($e[re]-me[re]);X(Ae,{animation:ue})}}}),he=Yt(()=>{U&&m!==!1&&te(!oe)});p.useEffect(()=>{const ue=ea(()=>{H.current&&D()});let me;const $e=Ct=>{Ct.forEach(Ot=>{Ot.removedNodes.forEach(pn=>{var Dt;(Dt=me)==null||Dt.unobserve(pn)}),Ot.addedNodes.forEach(pn=>{var Dt;(Dt=me)==null||Dt.observe(pn)})}),ue(),he()},Ae=Bn(H.current);Ae.addEventListener("resize",ue);let Qe;return typeof ResizeObserver<"u"&&(me=new ResizeObserver(ue),Array.from(ae.current.children).forEach(Ct=>{me.observe(Ct)})),typeof MutationObserver<"u"&&(Qe=new MutationObserver($e),Qe.observe(ae.current,{childList:!0})),()=>{var Ct,Ot;ue.clear(),Ae.removeEventListener("resize",ue),(Ct=Qe)==null||Ct.disconnect(),(Ot=me)==null||Ot.disconnect()}},[D,he]),p.useEffect(()=>{const ue=Array.from(ae.current.children),me=ue.length;if(typeof IntersectionObserver<"u"&&me>0&&U&&m!==!1){const $e=ue[0],Ae=ue[me-1],Qe={root:H.current,threshold:.99},Ct=zr=>{K(!zr[0].isIntersecting)},Ot=new IntersectionObserver(Ct,Qe);Ot.observe($e);const pn=zr=>{q(!zr[0].isIntersecting)},Dt=new IntersectionObserver(pn,Qe);return Dt.observe(Ae),()=>{Ot.disconnect(),Dt.disconnect()}}},[U,m,oe,u==null?void 0:u.length]),p.useEffect(()=>{B(!0)},[]),p.useEffect(()=>{D()}),p.useEffect(()=>{Ee(Cy!==V)},[Ee,V]),p.useImperativeHandle(l,()=>({updateIndicator:D,updateScrollButtons:he}),[D,he]);const Ge=d.jsx(lN,S({},T,{className:le(g.indicator,T.className),ownerState:E,style:S({},V,T.style)}));let Xe=0;const Ye=p.Children.map(u,ue=>{if(!p.isValidElement(ue))return null;const me=ue.props.value===void 0?Xe:ue.props.value;ke.set(me,Xe);const $e=me===N;return Xe+=1,p.cloneElement(ue,S({fullWidth:O==="fullWidth",indicator:$e&&!L&&Ge,selected:$e,selectionFollowsFocus:b,onChange:x,textColor:j,value:me},Xe===1&&N===!1&&!ue.props.tabIndex?{tabIndex:0}:{}))}),ye=ue=>{const me=ae.current,$e=St(me).activeElement;if($e.getAttribute("role")!=="tab")return;let Qe=C==="horizontal"?"ArrowLeft":"ArrowUp",Ct=C==="horizontal"?"ArrowRight":"ArrowDown";switch(C==="horizontal"&&i&&(Qe="ArrowRight",Ct="ArrowLeft"),ue.key){case Qe:ue.preventDefault(),bl(me,$e,Sy);break;case Ct:ue.preventDefault(),bl(me,$e,wy);break;case"Home":ue.preventDefault(),bl(me,null,wy);break;case"End":ue.preventDefault(),bl(me,null,Sy);break}},Pe=De();return d.jsxs(iN,S({className:le(g.root,f),ownerState:E,ref:n,as:h},W,{children:[Pe.scrollButtonStart,Pe.scrollbarSizeListener,d.jsxs(aN,{className:g.scroller,ownerState:E,style:{overflow:ne.overflow,[G?`margin${i?"Left":"Right"}`:"marginBottom"]:F?void 0:-ne.scrollbarWidth},ref:H,children:[d.jsx(sN,{"aria-label":a,"aria-labelledby":s,"aria-orientation":C==="vertical"?"vertical":null,className:g.flexContainer,ownerState:E,onKeyDown:ye,ref:ae,role:"tablist",children:Ye}),L&&Ge]}),Pe.scrollButtonEnd]}))});function uN(e){return be("MuiTextField",e)}we("MuiTextField",["root"]);const dN=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],fN={standard:$m,filled:Em,outlined:jm},pN=e=>{const{classes:t}=e;return Se({root:["root"]},uN,t)},hN=ie(ld,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),it=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:a,className:s,color:l="primary",defaultValue:c,disabled:u=!1,error:f=!1,FormHelperTextProps:h,fullWidth:w=!1,helperText:y,id:x,InputLabelProps:C,inputProps:v,InputProps:m,inputRef:b,label:R,maxRows:k,minRows:T,multiline:P=!1,name:j,onBlur:N,onChange:O,onFocus:F,placeholder:W,required:U=!1,rows:G,select:ee=!1,SelectProps:J,type:re,value:I,variant:_="outlined"}=r,E=se(r,dN),g=S({},r,{autoFocus:i,color:l,disabled:u,error:f,fullWidth:w,multiline:P,required:U,select:ee,variant:_}),$=pN(g),z={};_==="outlined"&&(C&&typeof C.shrink<"u"&&(z.notched=C.shrink),z.label=R),ee&&((!J||!J.native)&&(z.id=void 0),z["aria-describedby"]=void 0);const L=_s(x),B=y&&L?`${L}-helper-text`:void 0,V=R&&L?`${L}-label`:void 0,M=fN[_],A=d.jsx(M,S({"aria-describedby":B,autoComplete:o,autoFocus:i,defaultValue:c,fullWidth:w,multiline:P,name:j,rows:G,maxRows:k,minRows:T,type:re,value:I,id:L,inputRef:b,onBlur:N,onChange:O,onFocus:F,placeholder:W,inputProps:v},z,m));return d.jsxs(hN,S({className:le($.root,s),disabled:u,error:f,fullWidth:w,ref:n,required:U,color:l,variant:_,ownerState:g},E,{children:[R!=null&&R!==""&&d.jsx(cd,S({htmlFor:L,id:V},C,{children:R})),ee?d.jsx(Us,S({"aria-describedby":B,id:L,labelId:V,value:I,input:A},J,{children:a})):A,y&&d.jsx(f_,S({id:B},h,{children:y}))]}))});var Im={},sf={};const mN=Lr(v5);var Ry;function je(){return Ry||(Ry=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=mN}(sf)),sf}var gN=Te;Object.defineProperty(Im,"__esModule",{value:!0});var ra=Im.default=void 0,vN=gN(je()),yN=d;ra=Im.default=(0,vN.default)((0,yN.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");var _m={},xN=Te;Object.defineProperty(_m,"__esModule",{value:!0});var Lm=_m.default=void 0,bN=xN(je()),wN=d;Lm=_m.default=(0,bN.default)((0,wN.jsx)("path",{d:"M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3m5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72z"}),"Mic");var Am={},SN=Te;Object.defineProperty(Am,"__esModule",{value:!0});var Nm=Am.default=void 0,CN=SN(je()),RN=d;Nm=Am.default=(0,CN.default)((0,RN.jsx)("path",{d:"M19 11h-1.7c0 .74-.16 1.43-.43 2.05l1.23 1.23c.56-.98.9-2.09.9-3.28m-4.02.17c0-.06.02-.11.02-.17V5c0-1.66-1.34-3-3-3S9 3.34 9 5v.18zM4.27 3 3 4.27l6.01 6.01V11c0 1.66 1.33 3 2.99 3 .22 0 .44-.03.65-.08l1.66 1.66c-.71.33-1.5.52-2.31.52-2.76 0-5.3-2.1-5.3-5.1H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c.91-.13 1.77-.45 2.54-.9L19.73 21 21 19.73z"}),"MicOff");var Dm={},kN=Te;Object.defineProperty(Dm,"__esModule",{value:!0});var ud=Dm.default=void 0,PN=kN(je()),EN=d;ud=Dm.default=(0,PN.default)((0,EN.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"Person");var zm={},TN=Te;Object.defineProperty(zm,"__esModule",{value:!0});var _c=zm.default=void 0,$N=TN(je()),MN=d;_c=zm.default=(0,$N.default)((0,MN.jsx)("path",{d:"M3 9v6h4l5 5V4L7 9zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02M14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77"}),"VolumeUp");var Bm={},jN=Te;Object.defineProperty(Bm,"__esModule",{value:!0});var Lc=Bm.default=void 0,ON=jN(je()),IN=d;Lc=Bm.default=(0,ON.default)((0,IN.jsx)("path",{d:"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63m2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71M4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9zM12 4 9.91 6.09 12 8.18z"}),"VolumeOff");var Fm={},_N=Te;Object.defineProperty(Fm,"__esModule",{value:!0});var Um=Fm.default=void 0,LN=_N(je()),AN=d;Um=Fm.default=(0,LN.default)((0,AN.jsx)("path",{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-1 9h-4v4h-2v-4H9V9h4V5h2v4h4z"}),"LibraryAdd");const Pi="/assets/Aria-BMTE8U_Y.jpg";var p2={exports:{}};(function(e){/** * {@link https://github.com/muaz-khan/RecordRTC|RecordRTC} is a WebRTC JavaScript library for audio/video as well as screen activity recording. It supports Chrome, Firefox, Opera, Android, and Microsoft Edge. Platforms: Linux, Mac and Windows. * @summary Record audio, video or screen inside the browser. * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT} @@ -210,7 +210,7 @@ Error generating stack: `+i.message+` * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code} * @param {MediaStream} mediaStream - Single media-stream object, array of media-streams, html-canvas-element, etc. * @param {object} config - {type:"video", recorderType: MediaStreamRecorder, disableLogs: true, numberOfAudioChannels: 1, bufferSize: 0, sampleRate: 0, desiredSampRate: 16000, video: HTMLVideoElement, etc.} - */function t(E,g){if(!E)throw"First parameter is required.";g=g||{type:"video"},g=new n(E,g);var $=this;function z(H){return g.disableLogs||console.log("RecordRTC version: ",$.version),H&&(g=new n(E,H)),g.disableLogs||console.log("started recording "+g.type+" stream."),ne?(ne.clearRecordedData(),ne.record(),q("recording"),$.recordingDuration&&K(),$):(L(function(){$.recordingDuration&&K()}),$)}function L(H){H&&(g.initCallback=function(){H(),H=g.initCallback=null});var ae=new r(E,g);ne=new ae(E,g),ne.record(),q("recording"),g.disableLogs||console.log("Initialized recorderType:",ne.constructor.name,"for output-type:",g.type)}function B(H){if(H=H||function(){},!ne){te();return}if($.state==="paused"){$.resumeRecording(),setTimeout(function(){B(H)},1);return}$.state!=="recording"&&!g.disableLogs&&console.warn('Recording state should be: "recording", however current state is: ',$.state),g.disableLogs||console.log("Stopped recording "+g.type+" stream."),g.type!=="gif"?ne.stop(ae):(ne.stop(),ae()),q("stopped");function ae(ge){if(!ne){typeof H.call=="function"?H.call($,""):H("");return}Object.keys(ne).forEach(function(fe){typeof ne[fe]!="function"&&($[fe]=ne[fe])});var D=ne.blob;if(!D)if(ge)ne.blob=D=ge;else throw"Recording failed.";if(D&&!g.disableLogs&&console.log(D.type,"->",v(D.size)),H){var X;try{X=u.createObjectURL(D)}catch{}typeof H.call=="function"?H.call($,X):H(X)}g.autoWriteToDisk&&Y(function(fe){var pe={};pe[g.type+"Blob"]=fe,G.Store(pe)})}}function V(){if(!ne){te();return}if($.state!=="recording"){g.disableLogs||console.warn("Unable to pause the recording. Recording state: ",$.state);return}q("paused"),ne.pause(),g.disableLogs||console.log("Paused recording.")}function M(){if(!ne){te();return}if($.state!=="paused"){g.disableLogs||console.warn("Unable to resume the recording. Recording state: ",$.state);return}q("recording"),ne.resume(),g.disableLogs||console.log("Resumed recording.")}function A(H){postMessage(new FileReaderSync().readAsDataURL(H))}function Y(H,ae){if(!H)throw"Pass a callback function over getDataURL.";var ge=ae?ae.blob:(ne||{}).blob;if(!ge){g.disableLogs||console.warn("Blob encoder did not finish its job yet."),setTimeout(function(){Y(H,ae)},1e3);return}if(typeof Worker<"u"&&!navigator.mozGetUserMedia){var D=fe(A);D.onmessage=function(pe){H(pe.data)},D.postMessage(ge)}else{var X=new FileReader;X.readAsDataURL(ge),X.onload=function(pe){H(pe.target.result)}}function fe(pe){try{var ve=u.createObjectURL(new Blob([pe.toString(),"this.onmessage = function (eee) {"+pe.name+"(eee.data);}"],{type:"application/javascript"})),Ce=new Worker(ve);return u.revokeObjectURL(ve),Ce}catch{}}}function K(H){if(H=H||0,$.state==="paused"){setTimeout(function(){K(H)},1e3);return}if($.state!=="stopped"){if(H>=$.recordingDuration){B($.onRecordingStopped);return}H+=1e3,setTimeout(function(){K(H)},1e3)}}function q(H){$&&($.state=H,typeof $.onStateChanged.call=="function"?$.onStateChanged.call($,H):$.onStateChanged(H))}var oe='It seems that recorder is destroyed or "startRecording" is not invoked for '+g.type+" recorder.";function te(){g.disableLogs!==!0&&console.warn(oe)}var ne,de={startRecording:z,stopRecording:B,pauseRecording:V,resumeRecording:M,initRecorder:L,setRecordingDuration:function(H,ae){if(typeof H>"u")throw"recordingDuration is required.";if(typeof H!="number")throw"recordingDuration must be a number.";return $.recordingDuration=H,$.onRecordingStopped=ae||function(){},{onRecordingStopped:function(ge){$.onRecordingStopped=ge}}},clearRecordedData:function(){if(!ne){te();return}ne.clearRecordedData(),g.disableLogs||console.log("Cleared old recorded data.")},getBlob:function(){if(!ne){te();return}return ne.blob},getDataURL:Y,toURL:function(){if(!ne){te();return}return u.createObjectURL(ne.blob)},getInternalRecorder:function(){return ne},save:function(H){if(!ne){te();return}m(ne.blob,H)},getFromDisk:function(H){if(!ne){te();return}t.getFromDisk(g.type,H)},setAdvertisementArray:function(H){g.advertisement=[];for(var ae=H.length,ge=0;ge",v(D.size)),H){var X;try{X=u.createObjectURL(D)}catch{}typeof H.call=="function"?H.call($,X):H(X)}g.autoWriteToDisk&&K(function(fe){var pe={};pe[g.type+"Blob"]=fe,G.Store(pe)})}}function V(){if(!ne){te();return}if($.state!=="recording"){g.disableLogs||console.warn("Unable to pause the recording. Recording state: ",$.state);return}q("paused"),ne.pause(),g.disableLogs||console.log("Paused recording.")}function M(){if(!ne){te();return}if($.state!=="paused"){g.disableLogs||console.warn("Unable to resume the recording. Recording state: ",$.state);return}q("recording"),ne.resume(),g.disableLogs||console.log("Resumed recording.")}function A(H){postMessage(new FileReaderSync().readAsDataURL(H))}function K(H,ae){if(!H)throw"Pass a callback function over getDataURL.";var ge=ae?ae.blob:(ne||{}).blob;if(!ge){g.disableLogs||console.warn("Blob encoder did not finish its job yet."),setTimeout(function(){K(H,ae)},1e3);return}if(typeof Worker<"u"&&!navigator.mozGetUserMedia){var D=fe(A);D.onmessage=function(pe){H(pe.data)},D.postMessage(ge)}else{var X=new FileReader;X.readAsDataURL(ge),X.onload=function(pe){H(pe.target.result)}}function fe(pe){try{var ve=u.createObjectURL(new Blob([pe.toString(),"this.onmessage = function (eee) {"+pe.name+"(eee.data);}"],{type:"application/javascript"})),Ce=new Worker(ve);return u.revokeObjectURL(ve),Ce}catch{}}}function Y(H){if(H=H||0,$.state==="paused"){setTimeout(function(){Y(H)},1e3);return}if($.state!=="stopped"){if(H>=$.recordingDuration){B($.onRecordingStopped);return}H+=1e3,setTimeout(function(){Y(H)},1e3)}}function q(H){$&&($.state=H,typeof $.onStateChanged.call=="function"?$.onStateChanged.call($,H):$.onStateChanged(H))}var oe='It seems that recorder is destroyed or "startRecording" is not invoked for '+g.type+" recorder.";function te(){g.disableLogs!==!0&&console.warn(oe)}var ne,de={startRecording:z,stopRecording:B,pauseRecording:V,resumeRecording:M,initRecorder:L,setRecordingDuration:function(H,ae){if(typeof H>"u")throw"recordingDuration is required.";if(typeof H!="number")throw"recordingDuration must be a number.";return $.recordingDuration=H,$.onRecordingStopped=ae||function(){},{onRecordingStopped:function(ge){$.onRecordingStopped=ge}}},clearRecordedData:function(){if(!ne){te();return}ne.clearRecordedData(),g.disableLogs||console.log("Cleared old recorded data.")},getBlob:function(){if(!ne){te();return}return ne.blob},getDataURL:K,toURL:function(){if(!ne){te();return}return u.createObjectURL(ne.blob)},getInternalRecorder:function(){return ne},save:function(H){if(!ne){te();return}m(ne.blob,H)},getFromDisk:function(H){if(!ne){te();return}t.getFromDisk(g.type,H)},setAdvertisementArray:function(H){g.advertisement=[];for(var ae=H.length,ge=0;ge"u"||(rt.navigator={userAgent:i,getUserMedia:function(){}},rt.console||(rt.console={}),(typeof rt.console.log>"u"||typeof rt.console.error>"u")&&(rt.console.error=rt.console.log=rt.console.log||function(){console.log(arguments)}),typeof document>"u"&&(E.document={documentElement:{appendChild:function(){return""}}},document.createElement=document.captureStream=document.mozCaptureStream=function(){var g={getContext:function(){return g},play:function(){},pause:function(){},drawImage:function(){},toDataURL:function(){return""},style:{}};return g},E.HTMLVideoElement=function(){}),typeof location>"u"&&(E.location={protocol:"file:",href:"",hash:""}),typeof screen>"u"&&(E.screen={width:0,height:0}),typeof u>"u"&&(E.URL={createObjectURL:function(){return""},revokeObjectURL:function(){return""}}),E.window=rt))})(typeof rt<"u"?rt:null);var a=window.requestAnimationFrame;if(typeof a>"u"){if(typeof webkitRequestAnimationFrame<"u")a=webkitRequestAnimationFrame;else if(typeof mozRequestAnimationFrame<"u")a=mozRequestAnimationFrame;else if(typeof msRequestAnimationFrame<"u")a=msRequestAnimationFrame;else if(typeof a>"u"){var s=0;a=function(E,g){var $=new Date().getTime(),z=Math.max(0,16-($-s)),L=setTimeout(function(){E($+z)},z);return s=$+z,L}}}var l=window.cancelAnimationFrame;typeof l>"u"&&(typeof webkitCancelAnimationFrame<"u"?l=webkitCancelAnimationFrame:typeof mozCancelAnimationFrame<"u"?l=mozCancelAnimationFrame:typeof msCancelAnimationFrame<"u"?l=msCancelAnimationFrame:typeof l>"u"&&(l=function(E){clearTimeout(E)}));var c=window.AudioContext;typeof c>"u"&&(typeof webkitAudioContext<"u"&&(c=webkitAudioContext),typeof mozAudioContext<"u"&&(c=mozAudioContext));var u=window.URL;typeof u>"u"&&typeof webkitURL<"u"&&(u=webkitURL),typeof navigator<"u"&&typeof navigator.getUserMedia>"u"&&(typeof navigator.webkitGetUserMedia<"u"&&(navigator.getUserMedia=navigator.webkitGetUserMedia),typeof navigator.mozGetUserMedia<"u"&&(navigator.getUserMedia=navigator.mozGetUserMedia));var f=navigator.userAgent.indexOf("Edge")!==-1&&(!!navigator.msSaveBlob||!!navigator.msSaveOrOpenBlob),h=!!window.opera||navigator.userAgent.indexOf("OPR/")!==-1,w=navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&"netscape"in window&&/ rv:/.test(navigator.userAgent),y=!h&&!f&&!!navigator.webkitGetUserMedia||b()||navigator.userAgent.toLowerCase().indexOf("chrome/")!==-1,x=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);x&&!y&&navigator.userAgent.indexOf("CriOS")!==-1&&(x=!1,y=!0);var C=window.MediaStream;typeof C>"u"&&typeof webkitMediaStream<"u"&&(C=webkitMediaStream),typeof C<"u"&&typeof C.prototype.stop>"u"&&(C.prototype.stop=function(){this.getTracks().forEach(function(E){E.stop()})});function v(E){var g=1e3,$=["Bytes","KB","MB","GB","TB"];if(E===0)return"0 Bytes";var z=parseInt(Math.floor(Math.log(E)/Math.log(g)),10);return(E/Math.pow(g,z)).toPrecision(3)+" "+$[z]}function m(E,g){if(!E)throw"Blob object is required.";if(!E.type)try{E.type="video/webm"}catch{}var $=(E.type||"video/webm").split("/")[1];if($.indexOf(";")!==-1&&($=$.split(";")[0]),g&&g.indexOf(".")!==-1){var z=g.split(".");g=z[0],$=z[1]}var L=(g||Math.round(Math.random()*9999999999)+888888888)+"."+$;if(typeof navigator.msSaveOrOpenBlob<"u")return navigator.msSaveOrOpenBlob(E,L);if(typeof navigator.msSaveBlob<"u")return navigator.msSaveBlob(E,L);var B=document.createElement("a");B.href=u.createObjectURL(E),B.download=L,B.style="display:none;opacity:0;color:transparent;",(document.body||document.documentElement).appendChild(B),typeof B.click=="function"?B.click():(B.target="_blank",B.dispatchEvent(new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0}))),u.revokeObjectURL(B.href)}function b(){return!!(typeof window<"u"&&typeof window.process=="object"&&window.process.type==="renderer"||typeof process<"u"&&typeof process.versions=="object"&&process.versions.electron||typeof navigator=="object"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Electron")>=0)}function R(E,g){return!E||!E.getTracks?[]:E.getTracks().filter(function($){return $.kind===(g||"audio")})}function k(E,g){"srcObject"in g?g.srcObject=E:"mozSrcObject"in g?g.mozSrcObject=E:g.srcObject=E}function T(E,g){if(typeof EBML>"u")throw new Error("Please link: https://www.webrtc-experiment.com/EBML.js");var $=new EBML.Reader,z=new EBML.Decoder,L=EBML.tools,B=new FileReader;B.onload=function(V){var M=z.decode(this.result);M.forEach(function(q){$.read(q)}),$.stop();var A=L.makeMetadataSeekable($.metadatas,$.duration,$.cues),Y=this.result.slice($.metadataSize),K=new Blob([A,Y],{type:"video/webm"});g(K)},B.readAsArrayBuffer(E)}typeof t<"u"&&(t.invokeSaveAsDialog=m,t.getTracks=R,t.getSeekableBlob=T,t.bytesToSize=v,t.isElectron=b);/** + */function o(E){this.addStream=function(g){g&&(E=g)},this.mediaType={audio:!0,video:!0},this.startRecording=function(){var g=this.mediaType,$,z=this.mimeType||{audio:null,video:null,gif:null};if(typeof g.audio!="function"&&j()&&!R(E,"audio").length&&(g.audio=!1),typeof g.video!="function"&&j()&&!R(E,"video").length&&(g.video=!1),typeof g.gif!="function"&&j()&&!R(E,"video").length&&(g.gif=!1),!g.audio&&!g.video&&!g.gif)throw"MediaStream must have either audio or video tracks.";if(g.audio&&($=null,typeof g.audio=="function"&&($=g.audio),this.audioRecorder=new t(E,{type:"audio",bufferSize:this.bufferSize,sampleRate:this.sampleRate,numberOfAudioChannels:this.numberOfAudioChannels||2,disableLogs:this.disableLogs,recorderType:$,mimeType:z.audio,timeSlice:this.timeSlice,onTimeStamp:this.onTimeStamp}),g.video||this.audioRecorder.startRecording()),g.video){$=null,typeof g.video=="function"&&($=g.video);var L=E;if(j()&&g.audio&&typeof g.audio=="function"){var B=R(E,"video")[0];w?(L=new C,L.addTrack(B),$&&$===W&&($=N)):(L=new C,L.addTrack(B))}this.videoRecorder=new t(L,{type:"video",video:this.video,canvas:this.canvas,frameInterval:this.frameInterval||10,disableLogs:this.disableLogs,recorderType:$,mimeType:z.video,timeSlice:this.timeSlice,onTimeStamp:this.onTimeStamp,workerPath:this.workerPath,webAssemblyPath:this.webAssemblyPath,frameRate:this.frameRate,bitrate:this.bitrate}),g.audio||this.videoRecorder.startRecording()}if(g.audio&&g.video){var V=this,M=j()===!0;(g.audio instanceof O&&g.video||g.audio!==!0&&g.video!==!0&&g.audio!==g.video)&&(M=!1),M===!0?(V.audioRecorder=null,V.videoRecorder.startRecording()):V.videoRecorder.initRecorder(function(){V.audioRecorder.initRecorder(function(){V.videoRecorder.startRecording(),V.audioRecorder.startRecording()})})}g.gif&&($=null,typeof g.gif=="function"&&($=g.gif),this.gifRecorder=new t(E,{type:"gif",frameRate:this.frameRate||200,quality:this.quality||10,disableLogs:this.disableLogs,recorderType:$,mimeType:z.gif}),this.gifRecorder.startRecording())},this.stopRecording=function(g){g=g||function(){},this.audioRecorder&&this.audioRecorder.stopRecording(function($){g($,"audio")}),this.videoRecorder&&this.videoRecorder.stopRecording(function($){g($,"video")}),this.gifRecorder&&this.gifRecorder.stopRecording(function($){g($,"gif")})},this.pauseRecording=function(){this.audioRecorder&&this.audioRecorder.pauseRecording(),this.videoRecorder&&this.videoRecorder.pauseRecording(),this.gifRecorder&&this.gifRecorder.pauseRecording()},this.resumeRecording=function(){this.audioRecorder&&this.audioRecorder.resumeRecording(),this.videoRecorder&&this.videoRecorder.resumeRecording(),this.gifRecorder&&this.gifRecorder.resumeRecording()},this.getBlob=function(g){var $={};return this.audioRecorder&&($.audio=this.audioRecorder.getBlob()),this.videoRecorder&&($.video=this.videoRecorder.getBlob()),this.gifRecorder&&($.gif=this.gifRecorder.getBlob()),g&&g($),$},this.destroy=function(){this.audioRecorder&&(this.audioRecorder.destroy(),this.audioRecorder=null),this.videoRecorder&&(this.videoRecorder.destroy(),this.videoRecorder=null),this.gifRecorder&&(this.gifRecorder.destroy(),this.gifRecorder=null)},this.getDataURL=function(g){this.getBlob(function(L){L.audio&&L.video?$(L.audio,function(B){$(L.video,function(V){g({audio:B,video:V})})}):L.audio?$(L.audio,function(B){g({audio:B})}):L.video&&$(L.video,function(B){g({video:B})})});function $(L,B){if(typeof Worker<"u"){var V=z(function(K){postMessage(new FileReaderSync().readAsDataURL(K))});V.onmessage=function(A){B(A.data)},V.postMessage(L)}else{var M=new FileReader;M.readAsDataURL(L),M.onload=function(A){B(A.target.result)}}}function z(L){var B=u.createObjectURL(new Blob([L.toString(),"this.onmessage = function (eee) {"+L.name+"(eee.data);}"],{type:"application/javascript"})),V=new Worker(B),M;if(typeof u<"u")M=u;else if(typeof webkitURL<"u")M=webkitURL;else throw"Neither URL nor webkitURL detected.";return M.revokeObjectURL(B),V}},this.writeToDisk=function(){t.writeToDisk({audio:this.audioRecorder,video:this.videoRecorder,gif:this.gifRecorder})},this.save=function(g){g=g||{audio:!0,video:!0,gif:!0},g.audio&&this.audioRecorder&&this.audioRecorder.save(typeof g.audio=="string"?g.audio:""),g.video&&this.videoRecorder&&this.videoRecorder.save(typeof g.video=="string"?g.video:""),g.gif&&this.gifRecorder&&this.gifRecorder.save(typeof g.gif=="string"?g.gif:"")}}o.getFromDisk=t.getFromDisk,o.writeToDisk=t.writeToDisk,typeof t<"u"&&(t.MRecordRTC=o);var i="Fake/5.0 (FakeOS) AppleWebKit/123 (KHTML, like Gecko) Fake/12.3.4567.89 Fake/123.45";(function(E){E&&(typeof window<"u"||typeof rt>"u"||(rt.navigator={userAgent:i,getUserMedia:function(){}},rt.console||(rt.console={}),(typeof rt.console.log>"u"||typeof rt.console.error>"u")&&(rt.console.error=rt.console.log=rt.console.log||function(){console.log(arguments)}),typeof document>"u"&&(E.document={documentElement:{appendChild:function(){return""}}},document.createElement=document.captureStream=document.mozCaptureStream=function(){var g={getContext:function(){return g},play:function(){},pause:function(){},drawImage:function(){},toDataURL:function(){return""},style:{}};return g},E.HTMLVideoElement=function(){}),typeof location>"u"&&(E.location={protocol:"file:",href:"",hash:""}),typeof screen>"u"&&(E.screen={width:0,height:0}),typeof u>"u"&&(E.URL={createObjectURL:function(){return""},revokeObjectURL:function(){return""}}),E.window=rt))})(typeof rt<"u"?rt:null);var a=window.requestAnimationFrame;if(typeof a>"u"){if(typeof webkitRequestAnimationFrame<"u")a=webkitRequestAnimationFrame;else if(typeof mozRequestAnimationFrame<"u")a=mozRequestAnimationFrame;else if(typeof msRequestAnimationFrame<"u")a=msRequestAnimationFrame;else if(typeof a>"u"){var s=0;a=function(E,g){var $=new Date().getTime(),z=Math.max(0,16-($-s)),L=setTimeout(function(){E($+z)},z);return s=$+z,L}}}var l=window.cancelAnimationFrame;typeof l>"u"&&(typeof webkitCancelAnimationFrame<"u"?l=webkitCancelAnimationFrame:typeof mozCancelAnimationFrame<"u"?l=mozCancelAnimationFrame:typeof msCancelAnimationFrame<"u"?l=msCancelAnimationFrame:typeof l>"u"&&(l=function(E){clearTimeout(E)}));var c=window.AudioContext;typeof c>"u"&&(typeof webkitAudioContext<"u"&&(c=webkitAudioContext),typeof mozAudioContext<"u"&&(c=mozAudioContext));var u=window.URL;typeof u>"u"&&typeof webkitURL<"u"&&(u=webkitURL),typeof navigator<"u"&&typeof navigator.getUserMedia>"u"&&(typeof navigator.webkitGetUserMedia<"u"&&(navigator.getUserMedia=navigator.webkitGetUserMedia),typeof navigator.mozGetUserMedia<"u"&&(navigator.getUserMedia=navigator.mozGetUserMedia));var f=navigator.userAgent.indexOf("Edge")!==-1&&(!!navigator.msSaveBlob||!!navigator.msSaveOrOpenBlob),h=!!window.opera||navigator.userAgent.indexOf("OPR/")!==-1,w=navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&"netscape"in window&&/ rv:/.test(navigator.userAgent),y=!h&&!f&&!!navigator.webkitGetUserMedia||b()||navigator.userAgent.toLowerCase().indexOf("chrome/")!==-1,x=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);x&&!y&&navigator.userAgent.indexOf("CriOS")!==-1&&(x=!1,y=!0);var C=window.MediaStream;typeof C>"u"&&typeof webkitMediaStream<"u"&&(C=webkitMediaStream),typeof C<"u"&&typeof C.prototype.stop>"u"&&(C.prototype.stop=function(){this.getTracks().forEach(function(E){E.stop()})});function v(E){var g=1e3,$=["Bytes","KB","MB","GB","TB"];if(E===0)return"0 Bytes";var z=parseInt(Math.floor(Math.log(E)/Math.log(g)),10);return(E/Math.pow(g,z)).toPrecision(3)+" "+$[z]}function m(E,g){if(!E)throw"Blob object is required.";if(!E.type)try{E.type="video/webm"}catch{}var $=(E.type||"video/webm").split("/")[1];if($.indexOf(";")!==-1&&($=$.split(";")[0]),g&&g.indexOf(".")!==-1){var z=g.split(".");g=z[0],$=z[1]}var L=(g||Math.round(Math.random()*9999999999)+888888888)+"."+$;if(typeof navigator.msSaveOrOpenBlob<"u")return navigator.msSaveOrOpenBlob(E,L);if(typeof navigator.msSaveBlob<"u")return navigator.msSaveBlob(E,L);var B=document.createElement("a");B.href=u.createObjectURL(E),B.download=L,B.style="display:none;opacity:0;color:transparent;",(document.body||document.documentElement).appendChild(B),typeof B.click=="function"?B.click():(B.target="_blank",B.dispatchEvent(new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0}))),u.revokeObjectURL(B.href)}function b(){return!!(typeof window<"u"&&typeof window.process=="object"&&window.process.type==="renderer"||typeof process<"u"&&typeof process.versions=="object"&&process.versions.electron||typeof navigator=="object"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Electron")>=0)}function R(E,g){return!E||!E.getTracks?[]:E.getTracks().filter(function($){return $.kind===(g||"audio")})}function k(E,g){"srcObject"in g?g.srcObject=E:"mozSrcObject"in g?g.mozSrcObject=E:g.srcObject=E}function T(E,g){if(typeof EBML>"u")throw new Error("Please link: https://www.webrtc-experiment.com/EBML.js");var $=new EBML.Reader,z=new EBML.Decoder,L=EBML.tools,B=new FileReader;B.onload=function(V){var M=z.decode(this.result);M.forEach(function(q){$.read(q)}),$.stop();var A=L.makeMetadataSeekable($.metadatas,$.duration,$.cues),K=this.result.slice($.metadataSize),Y=new Blob([A,K],{type:"video/webm"});g(Y)},B.readAsArrayBuffer(E)}typeof t<"u"&&(t.invokeSaveAsDialog=m,t.getTracks=R,t.getSeekableBlob=T,t.bytesToSize=v,t.isElectron=b);/** * Storage is a standalone object used by {@link RecordRTC} to store reusable objects e.g. "new AudioContext". * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT} * @author {@link https://MuazKhan.com|Muaz Khan} @@ -298,7 +298,7 @@ Error generating stack: `+i.message+` * @param {MediaStream} mediaStream - MediaStream object fetched using getUserMedia API or generated using captureStreamUntilEnded or WebAudio API. * @param {object} config - {disableLogs:true, initCallback: function, mimeType: "video/webm", timeSlice: 1000} * @throws Will throw an error if first argument "MediaStream" is missing. Also throws error if "MediaRecorder API" are not supported by the browser. - */function N(E,g){var K=this;if(typeof E>"u")throw'First argument "MediaStream" is required.';if(typeof MediaRecorder>"u")throw"Your browser does not support the Media Recorder API. Please try other modules e.g. WhammyRecorder or StereoAudioRecorder.";if(g=g||{mimeType:"video/webm"},g.type==="audio"){if(R(E,"video").length&&R(E,"audio").length){var $;navigator.mozGetUserMedia?($=new C,$.addTrack(R(E,"audio")[0])):$=new C(R(E,"audio")),E=$}(!g.mimeType||g.mimeType.toString().toLowerCase().indexOf("audio")===-1)&&(g.mimeType=y?"audio/webm":"audio/ogg"),g.mimeType&&g.mimeType.toString().toLowerCase()!=="audio/ogg"&&navigator.mozGetUserMedia&&(g.mimeType="audio/ogg")}var z=[];this.getArrayOfBlobs=function(){return z},this.record=function(){K.blob=null,K.clearRecordedData(),K.timestamps=[],Y=[],z=[];var q=g;g.disableLogs||console.log("Passing following config over MediaRecorder API.",q),M&&(M=null),y&&!j()&&(q="video/vp8"),typeof MediaRecorder.isTypeSupported=="function"&&q.mimeType&&(MediaRecorder.isTypeSupported(q.mimeType)||(g.disableLogs||console.warn("MediaRecorder API seems unable to record mimeType:",q.mimeType),q.mimeType=g.type==="audio"?"audio/webm":"video/webm"));try{M=new MediaRecorder(E,q),g.mimeType=q.mimeType}catch{M=new MediaRecorder(E)}q.mimeType&&!MediaRecorder.isTypeSupported&&"canRecordMimeType"in M&&M.canRecordMimeType(q.mimeType)===!1&&(g.disableLogs||console.warn("MediaRecorder API seems unable to record mimeType:",q.mimeType)),M.ondataavailable=function(oe){if(oe.data&&Y.push("ondataavailable: "+v(oe.data.size)),typeof g.timeSlice=="number"){if(oe.data&&oe.data.size&&(z.push(oe.data),L(),typeof g.ondataavailable=="function")){var te=g.getNativeBlob?oe.data:new Blob([oe.data],{type:B(q)});g.ondataavailable(te)}return}if(!oe.data||!oe.data.size||oe.data.size<100||K.blob){K.recordingCallback&&(K.recordingCallback(new Blob([],{type:B(q)})),K.recordingCallback=null);return}K.blob=g.getNativeBlob?oe.data:new Blob([oe.data],{type:B(q)}),K.recordingCallback&&(K.recordingCallback(K.blob),K.recordingCallback=null)},M.onstart=function(){Y.push("started")},M.onpause=function(){Y.push("paused")},M.onresume=function(){Y.push("resumed")},M.onstop=function(){Y.push("stopped")},M.onerror=function(oe){oe&&(oe.name||(oe.name="UnknownError"),Y.push("error: "+oe),g.disableLogs||(oe.name.toString().toLowerCase().indexOf("invalidstate")!==-1?console.error("The MediaRecorder is not in a state in which the proposed operation is allowed to be executed.",oe):oe.name.toString().toLowerCase().indexOf("notsupported")!==-1?console.error("MIME type (",q.mimeType,") is not supported.",oe):oe.name.toString().toLowerCase().indexOf("security")!==-1?console.error("MediaRecorder security error",oe):oe.name==="OutOfMemory"?console.error("The UA has exhaused the available memory. User agents SHOULD provide as much additional information as possible in the message attribute.",oe):oe.name==="IllegalStreamModification"?console.error("A modification to the stream has occurred that makes it impossible to continue recording. An example would be the addition of a Track while recording is occurring. User agents SHOULD provide as much additional information as possible in the message attribute.",oe):oe.name==="OtherRecordingError"?console.error("Used for an fatal error other than those listed above. User agents SHOULD provide as much additional information as possible in the message attribute.",oe):oe.name==="GenericError"?console.error("The UA cannot provide the codec or recording option that has been requested.",oe):console.error("MediaRecorder Error",oe)),function(te){if(!K.manuallyStopped&&M&&M.state==="inactive"){delete g.timeslice,M.start(10*60*1e3);return}setTimeout(te,1e3)}(),M.state!=="inactive"&&M.state!=="stopped"&&M.stop())},typeof g.timeSlice=="number"?(L(),M.start(g.timeSlice)):M.start(36e5),g.initCallback&&g.initCallback()},this.timestamps=[];function L(){K.timestamps.push(new Date().getTime()),typeof g.onTimeStamp=="function"&&g.onTimeStamp(K.timestamps[K.timestamps.length-1],K.timestamps)}function B(q){return M&&M.mimeType?M.mimeType:q.mimeType||"video/webm"}this.stop=function(q){q=q||function(){},K.manuallyStopped=!0,M&&(this.recordingCallback=q,M.state==="recording"&&M.stop(),typeof g.timeSlice=="number"&&setTimeout(function(){K.blob=new Blob(z,{type:B(g)}),K.recordingCallback(K.blob)},100))},this.pause=function(){M&&M.state==="recording"&&M.pause()},this.resume=function(){M&&M.state==="paused"&&M.resume()},this.clearRecordedData=function(){M&&M.state==="recording"&&K.stop(V),V()};function V(){z=[],M=null,K.timestamps=[]}var M;this.getInternalRecorder=function(){return M};function A(){if("active"in E){if(!E.active)return!1}else if("ended"in E&&E.ended)return!1;return!0}this.blob=null,this.getState=function(){return M&&M.state||"inactive"};var Y=[];this.getAllStates=function(){return Y},typeof g.checkForInactiveTracks>"u"&&(g.checkForInactiveTracks=!1);var K=this;(function q(){if(!(!M||g.checkForInactiveTracks===!1)){if(A()===!1){g.disableLogs||console.log("MediaStream seems stopped."),K.stop();return}setTimeout(q,1e3)}})(),this.name="MediaStreamRecorder",this.toString=function(){return this.name}}typeof t<"u"&&(t.MediaStreamRecorder=N);/** + */function N(E,g){var Y=this;if(typeof E>"u")throw'First argument "MediaStream" is required.';if(typeof MediaRecorder>"u")throw"Your browser does not support the Media Recorder API. Please try other modules e.g. WhammyRecorder or StereoAudioRecorder.";if(g=g||{mimeType:"video/webm"},g.type==="audio"){if(R(E,"video").length&&R(E,"audio").length){var $;navigator.mozGetUserMedia?($=new C,$.addTrack(R(E,"audio")[0])):$=new C(R(E,"audio")),E=$}(!g.mimeType||g.mimeType.toString().toLowerCase().indexOf("audio")===-1)&&(g.mimeType=y?"audio/webm":"audio/ogg"),g.mimeType&&g.mimeType.toString().toLowerCase()!=="audio/ogg"&&navigator.mozGetUserMedia&&(g.mimeType="audio/ogg")}var z=[];this.getArrayOfBlobs=function(){return z},this.record=function(){Y.blob=null,Y.clearRecordedData(),Y.timestamps=[],K=[],z=[];var q=g;g.disableLogs||console.log("Passing following config over MediaRecorder API.",q),M&&(M=null),y&&!j()&&(q="video/vp8"),typeof MediaRecorder.isTypeSupported=="function"&&q.mimeType&&(MediaRecorder.isTypeSupported(q.mimeType)||(g.disableLogs||console.warn("MediaRecorder API seems unable to record mimeType:",q.mimeType),q.mimeType=g.type==="audio"?"audio/webm":"video/webm"));try{M=new MediaRecorder(E,q),g.mimeType=q.mimeType}catch{M=new MediaRecorder(E)}q.mimeType&&!MediaRecorder.isTypeSupported&&"canRecordMimeType"in M&&M.canRecordMimeType(q.mimeType)===!1&&(g.disableLogs||console.warn("MediaRecorder API seems unable to record mimeType:",q.mimeType)),M.ondataavailable=function(oe){if(oe.data&&K.push("ondataavailable: "+v(oe.data.size)),typeof g.timeSlice=="number"){if(oe.data&&oe.data.size&&(z.push(oe.data),L(),typeof g.ondataavailable=="function")){var te=g.getNativeBlob?oe.data:new Blob([oe.data],{type:B(q)});g.ondataavailable(te)}return}if(!oe.data||!oe.data.size||oe.data.size<100||Y.blob){Y.recordingCallback&&(Y.recordingCallback(new Blob([],{type:B(q)})),Y.recordingCallback=null);return}Y.blob=g.getNativeBlob?oe.data:new Blob([oe.data],{type:B(q)}),Y.recordingCallback&&(Y.recordingCallback(Y.blob),Y.recordingCallback=null)},M.onstart=function(){K.push("started")},M.onpause=function(){K.push("paused")},M.onresume=function(){K.push("resumed")},M.onstop=function(){K.push("stopped")},M.onerror=function(oe){oe&&(oe.name||(oe.name="UnknownError"),K.push("error: "+oe),g.disableLogs||(oe.name.toString().toLowerCase().indexOf("invalidstate")!==-1?console.error("The MediaRecorder is not in a state in which the proposed operation is allowed to be executed.",oe):oe.name.toString().toLowerCase().indexOf("notsupported")!==-1?console.error("MIME type (",q.mimeType,") is not supported.",oe):oe.name.toString().toLowerCase().indexOf("security")!==-1?console.error("MediaRecorder security error",oe):oe.name==="OutOfMemory"?console.error("The UA has exhaused the available memory. User agents SHOULD provide as much additional information as possible in the message attribute.",oe):oe.name==="IllegalStreamModification"?console.error("A modification to the stream has occurred that makes it impossible to continue recording. An example would be the addition of a Track while recording is occurring. User agents SHOULD provide as much additional information as possible in the message attribute.",oe):oe.name==="OtherRecordingError"?console.error("Used for an fatal error other than those listed above. User agents SHOULD provide as much additional information as possible in the message attribute.",oe):oe.name==="GenericError"?console.error("The UA cannot provide the codec or recording option that has been requested.",oe):console.error("MediaRecorder Error",oe)),function(te){if(!Y.manuallyStopped&&M&&M.state==="inactive"){delete g.timeslice,M.start(10*60*1e3);return}setTimeout(te,1e3)}(),M.state!=="inactive"&&M.state!=="stopped"&&M.stop())},typeof g.timeSlice=="number"?(L(),M.start(g.timeSlice)):M.start(36e5),g.initCallback&&g.initCallback()},this.timestamps=[];function L(){Y.timestamps.push(new Date().getTime()),typeof g.onTimeStamp=="function"&&g.onTimeStamp(Y.timestamps[Y.timestamps.length-1],Y.timestamps)}function B(q){return M&&M.mimeType?M.mimeType:q.mimeType||"video/webm"}this.stop=function(q){q=q||function(){},Y.manuallyStopped=!0,M&&(this.recordingCallback=q,M.state==="recording"&&M.stop(),typeof g.timeSlice=="number"&&setTimeout(function(){Y.blob=new Blob(z,{type:B(g)}),Y.recordingCallback(Y.blob)},100))},this.pause=function(){M&&M.state==="recording"&&M.pause()},this.resume=function(){M&&M.state==="paused"&&M.resume()},this.clearRecordedData=function(){M&&M.state==="recording"&&Y.stop(V),V()};function V(){z=[],M=null,Y.timestamps=[]}var M;this.getInternalRecorder=function(){return M};function A(){if("active"in E){if(!E.active)return!1}else if("ended"in E&&E.ended)return!1;return!0}this.blob=null,this.getState=function(){return M&&M.state||"inactive"};var K=[];this.getAllStates=function(){return K},typeof g.checkForInactiveTracks>"u"&&(g.checkForInactiveTracks=!1);var Y=this;(function q(){if(!(!M||g.checkForInactiveTracks===!1)){if(A()===!1){g.disableLogs||console.log("MediaStream seems stopped."),Y.stop();return}setTimeout(q,1e3)}})(),this.name="MediaStreamRecorder",this.toString=function(){return this.name}}typeof t<"u"&&(t.MediaStreamRecorder=N);/** * StereoAudioRecorder is a standalone class used by {@link RecordRTC} to bring "stereo" audio-recording in chrome. * @summary JavaScript standalone object for stereo audio recording. * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT} @@ -317,7 +317,7 @@ Error generating stack: `+i.message+` * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code} * @param {MediaStream} mediaStream - MediaStream object fetched using getUserMedia API or generated using captureStreamUntilEnded or WebAudio API. * @param {object} config - {sampleRate: 44100, bufferSize: 4096, numberOfAudioChannels: 1, etc.} - */function O(E,g){if(!R(E,"audio").length)throw"Your stream has no audio tracks.";g=g||{};var $=this,z=[],L=[],B=!1,V=0,M,A=2,Y=g.desiredSampRate;g.leftChannel===!0&&(A=1),g.numberOfAudioChannels===1&&(A=1),(!A||A<1)&&(A=2),g.disableLogs||console.log("StereoAudioRecorder is set to record number of channels: "+A),typeof g.checkForInactiveTracks>"u"&&(g.checkForInactiveTracks=!0);function K(){if(g.checkForInactiveTracks===!1)return!0;if("active"in E){if(!E.active)return!1}else if("ended"in E&&E.ended)return!1;return!0}this.record=function(){if(K()===!1)throw"Please make sure MediaStream is active.";ge(),X=ae=!1,B=!0,typeof g.timeSlice<"u"&&ve()};function q(Ce,Le){function De(he,Ge){var Xe=he.numberOfAudioChannels,Ye=he.leftBuffers.slice(0),ye=he.rightBuffers.slice(0),Pe=he.sampleRate,ue=he.internalInterleavedLength,me=he.desiredSampRate;Xe===2&&(Ye=Qe(Ye,ue),ye=Qe(ye,ue),me&&(Ye=$e(Ye,me,Pe),ye=$e(ye,me,Pe))),Xe===1&&(Ye=Qe(Ye,ue),me&&(Ye=$e(Ye,me,Pe))),me&&(Pe=me);function $e(tt,en,nt){var Tt=Math.round(tt.length*(en/nt)),It=[],qt=Number((tt.length-1)/(Tt-1));It[0]=tt[0];for(var Gn=1;Gn"u"&&(t.Storage={AudioContextConstructor:null,AudioContext:window.AudioContext||window.webkitAudioContext}),(!t.Storage.AudioContextConstructor||t.Storage.AudioContextConstructor.state==="closed")&&(t.Storage.AudioContextConstructor=new t.Storage.AudioContext);var te=t.Storage.AudioContextConstructor,ne=te.createMediaStreamSource(E),de=[0,256,512,1024,2048,4096,8192,16384],ke=typeof g.bufferSize>"u"?4096:g.bufferSize;if(de.indexOf(ke)===-1&&(g.disableLogs||console.log("Legal values for buffer-size are "+JSON.stringify(de,null," "))),te.createJavaScriptNode)M=te.createJavaScriptNode(ke,A,A);else if(te.createScriptProcessor)M=te.createScriptProcessor(ke,A,A);else throw"WebAudio API has no support on this browser.";ne.connect(M),g.bufferSize||(ke=M.bufferSize);var H=typeof g.sampleRate<"u"?g.sampleRate:te.sampleRate||44100;(H<22050||H>96e3)&&(g.disableLogs||console.log("sample-rate must be under range 22050 and 96000.")),g.disableLogs||g.desiredSampRate&&console.log("Desired sample-rate: "+g.desiredSampRate);var ae=!1;this.pause=function(){ae=!0},this.resume=function(){if(K()===!1)throw"Please make sure MediaStream is active.";if(!B){g.disableLogs||console.log("Seems recording has been restarted."),this.record();return}ae=!1},this.clearRecordedData=function(){g.checkForInactiveTracks=!1,B&&this.stop(D),D()};function ge(){z=[],L=[],V=0,X=!1,B=!1,ae=!1,te=null,$.leftchannel=z,$.rightchannel=L,$.numberOfAudioChannels=A,$.desiredSampRate=Y,$.sampleRate=H,$.recordingLength=V,pe={left:[],right:[],recordingLength:0}}function D(){M&&(M.onaudioprocess=null,M.disconnect(),M=null),ne&&(ne.disconnect(),ne=null),ge()}this.name="StereoAudioRecorder",this.toString=function(){return this.name};var X=!1;function fe(Ce){if(!ae){if(K()===!1&&(g.disableLogs||console.log("MediaStream seems stopped."),M.disconnect(),B=!1),!B){ne&&(ne.disconnect(),ne=null);return}X||(X=!0,g.onAudioProcessStarted&&g.onAudioProcessStarted(),g.initCallback&&g.initCallback());var Le=Ce.inputBuffer.getChannelData(0),De=new Float32Array(Le);if(z.push(De),A===2){var Ee=Ce.inputBuffer.getChannelData(1),he=new Float32Array(Ee);L.push(he)}V+=ke,$.recordingLength=V,typeof g.timeSlice<"u"&&(pe.recordingLength+=ke,pe.left.push(De),A===2&&pe.right.push(he))}}M.onaudioprocess=fe,te.createMediaStreamDestination?M.connect(te.createMediaStreamDestination()):M.connect(te.destination),this.leftchannel=z,this.rightchannel=L,this.numberOfAudioChannels=A,this.desiredSampRate=Y,this.sampleRate=H,$.recordingLength=V;var pe={left:[],right:[],recordingLength:0};function ve(){!B||typeof g.ondataavailable!="function"||typeof g.timeSlice>"u"||(pe.left.length?(q({desiredSampRate:Y,sampleRate:H,numberOfAudioChannels:A,internalInterleavedLength:pe.recordingLength,leftBuffers:pe.left,rightBuffers:A===1?[]:pe.right},function(Ce,Le){var De=new Blob([Le],{type:"audio/wav"});g.ondataavailable(De),setTimeout(ve,g.timeSlice)}),pe={left:[],right:[],recordingLength:0}):setTimeout(ve,g.timeSlice))}}typeof t<"u"&&(t.StereoAudioRecorder=O);/** + */function O(E,g){if(!R(E,"audio").length)throw"Your stream has no audio tracks.";g=g||{};var $=this,z=[],L=[],B=!1,V=0,M,A=2,K=g.desiredSampRate;g.leftChannel===!0&&(A=1),g.numberOfAudioChannels===1&&(A=1),(!A||A<1)&&(A=2),g.disableLogs||console.log("StereoAudioRecorder is set to record number of channels: "+A),typeof g.checkForInactiveTracks>"u"&&(g.checkForInactiveTracks=!0);function Y(){if(g.checkForInactiveTracks===!1)return!0;if("active"in E){if(!E.active)return!1}else if("ended"in E&&E.ended)return!1;return!0}this.record=function(){if(Y()===!1)throw"Please make sure MediaStream is active.";ge(),X=ae=!1,B=!0,typeof g.timeSlice<"u"&&ve()};function q(Ce,Le){function De(he,Ge){var Xe=he.numberOfAudioChannels,Ye=he.leftBuffers.slice(0),ye=he.rightBuffers.slice(0),Pe=he.sampleRate,ue=he.internalInterleavedLength,me=he.desiredSampRate;Xe===2&&(Ye=Qe(Ye,ue),ye=Qe(ye,ue),me&&(Ye=$e(Ye,me,Pe),ye=$e(ye,me,Pe))),Xe===1&&(Ye=Qe(Ye,ue),me&&(Ye=$e(Ye,me,Pe))),me&&(Pe=me);function $e(tt,en,nt){var Tt=Math.round(tt.length*(en/nt)),It=[],qt=Number((tt.length-1)/(Tt-1));It[0]=tt[0];for(var Gn=1;Gn"u"&&(t.Storage={AudioContextConstructor:null,AudioContext:window.AudioContext||window.webkitAudioContext}),(!t.Storage.AudioContextConstructor||t.Storage.AudioContextConstructor.state==="closed")&&(t.Storage.AudioContextConstructor=new t.Storage.AudioContext);var te=t.Storage.AudioContextConstructor,ne=te.createMediaStreamSource(E),de=[0,256,512,1024,2048,4096,8192,16384],ke=typeof g.bufferSize>"u"?4096:g.bufferSize;if(de.indexOf(ke)===-1&&(g.disableLogs||console.log("Legal values for buffer-size are "+JSON.stringify(de,null," "))),te.createJavaScriptNode)M=te.createJavaScriptNode(ke,A,A);else if(te.createScriptProcessor)M=te.createScriptProcessor(ke,A,A);else throw"WebAudio API has no support on this browser.";ne.connect(M),g.bufferSize||(ke=M.bufferSize);var H=typeof g.sampleRate<"u"?g.sampleRate:te.sampleRate||44100;(H<22050||H>96e3)&&(g.disableLogs||console.log("sample-rate must be under range 22050 and 96000.")),g.disableLogs||g.desiredSampRate&&console.log("Desired sample-rate: "+g.desiredSampRate);var ae=!1;this.pause=function(){ae=!0},this.resume=function(){if(Y()===!1)throw"Please make sure MediaStream is active.";if(!B){g.disableLogs||console.log("Seems recording has been restarted."),this.record();return}ae=!1},this.clearRecordedData=function(){g.checkForInactiveTracks=!1,B&&this.stop(D),D()};function ge(){z=[],L=[],V=0,X=!1,B=!1,ae=!1,te=null,$.leftchannel=z,$.rightchannel=L,$.numberOfAudioChannels=A,$.desiredSampRate=K,$.sampleRate=H,$.recordingLength=V,pe={left:[],right:[],recordingLength:0}}function D(){M&&(M.onaudioprocess=null,M.disconnect(),M=null),ne&&(ne.disconnect(),ne=null),ge()}this.name="StereoAudioRecorder",this.toString=function(){return this.name};var X=!1;function fe(Ce){if(!ae){if(Y()===!1&&(g.disableLogs||console.log("MediaStream seems stopped."),M.disconnect(),B=!1),!B){ne&&(ne.disconnect(),ne=null);return}X||(X=!0,g.onAudioProcessStarted&&g.onAudioProcessStarted(),g.initCallback&&g.initCallback());var Le=Ce.inputBuffer.getChannelData(0),De=new Float32Array(Le);if(z.push(De),A===2){var Ee=Ce.inputBuffer.getChannelData(1),he=new Float32Array(Ee);L.push(he)}V+=ke,$.recordingLength=V,typeof g.timeSlice<"u"&&(pe.recordingLength+=ke,pe.left.push(De),A===2&&pe.right.push(he))}}M.onaudioprocess=fe,te.createMediaStreamDestination?M.connect(te.createMediaStreamDestination()):M.connect(te.destination),this.leftchannel=z,this.rightchannel=L,this.numberOfAudioChannels=A,this.desiredSampRate=K,this.sampleRate=H,$.recordingLength=V;var pe={left:[],right:[],recordingLength:0};function ve(){!B||typeof g.ondataavailable!="function"||typeof g.timeSlice>"u"||(pe.left.length?(q({desiredSampRate:K,sampleRate:H,numberOfAudioChannels:A,internalInterleavedLength:pe.recordingLength,leftBuffers:pe.left,rightBuffers:A===1?[]:pe.right},function(Ce,Le){var De=new Blob([Le],{type:"audio/wav"});g.ondataavailable(De),setTimeout(ve,g.timeSlice)}),pe={left:[],right:[],recordingLength:0}):setTimeout(ve,g.timeSlice))}}typeof t<"u"&&(t.StereoAudioRecorder=O);/** * CanvasRecorder is a standalone class used by {@link RecordRTC} to bring HTML5-Canvas recording into video WebM. It uses HTML2Canvas library and runs top over {@link Whammy}. * @summary HTML2Canvas recording into video WebM. * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT} @@ -333,7 +333,7 @@ Error generating stack: `+i.message+` * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code} * @param {HTMLElement} htmlElement - querySelector/getElementById/getElementsByTagName[0]/etc. * @param {object} config - {disableLogs:true, initCallback: function} - */function F(E,g){if(typeof html2canvas>"u")throw"Please link: https://www.webrtc-experiment.com/screenshot.js";g=g||{},g.frameInterval||(g.frameInterval=10);var $=!1;["captureStream","mozCaptureStream","webkitCaptureStream"].forEach(function(de){de in document.createElement("canvas")&&($=!0)});var z=(!!window.webkitRTCPeerConnection||!!window.webkitGetUserMedia)&&!!window.chrome,L=50,B=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);z&&B&&B[2]&&(L=parseInt(B[2],10)),z&&L<52&&($=!1),g.useWhammyRecorder&&($=!1);var V,M;if($)if(g.disableLogs||console.log("Your browser supports both MediRecorder API and canvas.captureStream!"),E instanceof HTMLCanvasElement)V=E;else if(E instanceof CanvasRenderingContext2D)V=E.canvas;else throw"Please pass either HTMLCanvasElement or CanvasRenderingContext2D.";else navigator.mozGetUserMedia&&(g.disableLogs||console.error("Canvas recording is NOT supported in Firefox."));var A;this.record=function(){if(A=!0,$&&!g.useWhammyRecorder){var de;"captureStream"in V?de=V.captureStream(25):"mozCaptureStream"in V?de=V.mozCaptureStream(25):"webkitCaptureStream"in V&&(de=V.webkitCaptureStream(25));try{var ke=new C;ke.addTrack(R(de,"video")[0]),de=ke}catch{}if(!de)throw"captureStream API are NOT available.";M=new N(de,{mimeType:g.mimeType||"video/webm"}),M.record()}else ne.frames=[],te=new Date().getTime(),oe();g.initCallback&&g.initCallback()},this.getWebPImages=function(de){if(E.nodeName.toLowerCase()!=="canvas"){de();return}var ke=ne.frames.length;ne.frames.forEach(function(H,ae){var ge=ke-ae;g.disableLogs||console.log(ge+"/"+ke+" frames remaining"),g.onEncodingCallback&&g.onEncodingCallback(ge,ke);var D=H.image.toDataURL("image/webp",1);ne.frames[ae].image=D}),g.disableLogs||console.log("Generating WebM"),de()},this.stop=function(de){A=!1;var ke=this;if($&&M){M.stop(de);return}this.getWebPImages(function(){ne.compile(function(H){g.disableLogs||console.log("Recording finished!"),ke.blob=H,ke.blob.forEach&&(ke.blob=new Blob([],{type:"video/webm"})),de&&de(ke.blob),ne.frames=[]})})};var Y=!1;this.pause=function(){if(Y=!0,M instanceof N){M.pause();return}},this.resume=function(){if(Y=!1,M instanceof N){M.resume();return}A||this.record()},this.clearRecordedData=function(){A&&this.stop(K),K()};function K(){ne.frames=[],A=!1,Y=!1}this.name="CanvasRecorder",this.toString=function(){return this.name};function q(){var de=document.createElement("canvas"),ke=de.getContext("2d");return de.width=E.width,de.height=E.height,ke.drawImage(E,0,0),de}function oe(){if(Y)return te=new Date().getTime(),setTimeout(oe,500);if(E.nodeName.toLowerCase()==="canvas"){var de=new Date().getTime()-te;te=new Date().getTime(),ne.frames.push({image:q(),duration:de}),A&&setTimeout(oe,g.frameInterval);return}html2canvas(E,{grabMouse:typeof g.showMousePointer>"u"||g.showMousePointer,onrendered:function(ke){var H=new Date().getTime()-te;if(!H)return setTimeout(oe,g.frameInterval);te=new Date().getTime(),ne.frames.push({image:ke.toDataURL("image/webp",1),duration:H}),A&&setTimeout(oe,g.frameInterval)}})}var te=new Date().getTime(),ne=new U.Video(100)}typeof t<"u"&&(t.CanvasRecorder=F);/** + */function F(E,g){if(typeof html2canvas>"u")throw"Please link: https://www.webrtc-experiment.com/screenshot.js";g=g||{},g.frameInterval||(g.frameInterval=10);var $=!1;["captureStream","mozCaptureStream","webkitCaptureStream"].forEach(function(de){de in document.createElement("canvas")&&($=!0)});var z=(!!window.webkitRTCPeerConnection||!!window.webkitGetUserMedia)&&!!window.chrome,L=50,B=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);z&&B&&B[2]&&(L=parseInt(B[2],10)),z&&L<52&&($=!1),g.useWhammyRecorder&&($=!1);var V,M;if($)if(g.disableLogs||console.log("Your browser supports both MediRecorder API and canvas.captureStream!"),E instanceof HTMLCanvasElement)V=E;else if(E instanceof CanvasRenderingContext2D)V=E.canvas;else throw"Please pass either HTMLCanvasElement or CanvasRenderingContext2D.";else navigator.mozGetUserMedia&&(g.disableLogs||console.error("Canvas recording is NOT supported in Firefox."));var A;this.record=function(){if(A=!0,$&&!g.useWhammyRecorder){var de;"captureStream"in V?de=V.captureStream(25):"mozCaptureStream"in V?de=V.mozCaptureStream(25):"webkitCaptureStream"in V&&(de=V.webkitCaptureStream(25));try{var ke=new C;ke.addTrack(R(de,"video")[0]),de=ke}catch{}if(!de)throw"captureStream API are NOT available.";M=new N(de,{mimeType:g.mimeType||"video/webm"}),M.record()}else ne.frames=[],te=new Date().getTime(),oe();g.initCallback&&g.initCallback()},this.getWebPImages=function(de){if(E.nodeName.toLowerCase()!=="canvas"){de();return}var ke=ne.frames.length;ne.frames.forEach(function(H,ae){var ge=ke-ae;g.disableLogs||console.log(ge+"/"+ke+" frames remaining"),g.onEncodingCallback&&g.onEncodingCallback(ge,ke);var D=H.image.toDataURL("image/webp",1);ne.frames[ae].image=D}),g.disableLogs||console.log("Generating WebM"),de()},this.stop=function(de){A=!1;var ke=this;if($&&M){M.stop(de);return}this.getWebPImages(function(){ne.compile(function(H){g.disableLogs||console.log("Recording finished!"),ke.blob=H,ke.blob.forEach&&(ke.blob=new Blob([],{type:"video/webm"})),de&&de(ke.blob),ne.frames=[]})})};var K=!1;this.pause=function(){if(K=!0,M instanceof N){M.pause();return}},this.resume=function(){if(K=!1,M instanceof N){M.resume();return}A||this.record()},this.clearRecordedData=function(){A&&this.stop(Y),Y()};function Y(){ne.frames=[],A=!1,K=!1}this.name="CanvasRecorder",this.toString=function(){return this.name};function q(){var de=document.createElement("canvas"),ke=de.getContext("2d");return de.width=E.width,de.height=E.height,ke.drawImage(E,0,0),de}function oe(){if(K)return te=new Date().getTime(),setTimeout(oe,500);if(E.nodeName.toLowerCase()==="canvas"){var de=new Date().getTime()-te;te=new Date().getTime(),ne.frames.push({image:q(),duration:de}),A&&setTimeout(oe,g.frameInterval);return}html2canvas(E,{grabMouse:typeof g.showMousePointer>"u"||g.showMousePointer,onrendered:function(ke){var H=new Date().getTime()-te;if(!H)return setTimeout(oe,g.frameInterval);te=new Date().getTime(),ne.frames.push({image:ke.toDataURL("image/webp",1),duration:H}),A&&setTimeout(oe,g.frameInterval)}})}var te=new Date().getTime(),ne=new U.Video(100)}typeof t<"u"&&(t.CanvasRecorder=F);/** * WhammyRecorder is a standalone class used by {@link RecordRTC} to bring video recording in Chrome. It runs top over {@link Whammy}. * @summary Video recording feature in Chrome. * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT} @@ -349,7 +349,7 @@ Error generating stack: `+i.message+` * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code} * @param {MediaStream} mediaStream - MediaStream object fetched using getUserMedia API or generated using captureStreamUntilEnded or WebAudio API. * @param {object} config - {disableLogs: true, initCallback: function, video: HTMLVideoElement, etc.} - */function W(E,g){g=g||{},g.frameInterval||(g.frameInterval=10),g.disableLogs||console.log("Using frames-interval:",g.frameInterval),this.record=function(){g.width||(g.width=320),g.height||(g.height=240),g.video||(g.video={width:g.width,height:g.height}),g.canvas||(g.canvas={width:g.width,height:g.height}),A.width=g.canvas.width||320,A.height=g.canvas.height||240,Y=A.getContext("2d"),g.video&&g.video instanceof HTMLVideoElement?(K=g.video.cloneNode(),g.initCallback&&g.initCallback()):(K=document.createElement("video"),k(E,K),K.onloadedmetadata=function(){g.initCallback&&g.initCallback()},K.width=g.video.width,K.height=g.video.height),K.muted=!0,K.play(),q=new Date().getTime(),oe=new U.Video,g.disableLogs||(console.log("canvas resolutions",A.width,"*",A.height),console.log("video width/height",K.width||A.width,"*",K.height||A.height)),$(g.frameInterval)};function $(te){te=typeof te<"u"?te:10;var ne=new Date().getTime()-q;if(!ne)return setTimeout($,te,te);if(V)return q=new Date().getTime(),setTimeout($,100);q=new Date().getTime(),K.paused&&K.play(),Y.drawImage(K,0,0,A.width,A.height),oe.frames.push({duration:ne,image:A.toDataURL("image/webp")}),B||setTimeout($,te,te)}function z(te){var ne=-1,de=te.length;(function ke(){if(ne++,ne===de){te.callback();return}setTimeout(function(){te.functionToLoop(ke,ne)},1)})()}function L(te,ne,de,ke,H){var ae=document.createElement("canvas");ae.width=A.width,ae.height=A.height;var ge=ae.getContext("2d"),D=[],X=te.length,fe={r:0,g:0,b:0},pe=Math.sqrt(Math.pow(255,2)+Math.pow(255,2)+Math.pow(255,2)),ve=0,Ce=0,Le=!1;z({length:X,functionToLoop:function(De,Ee){var he,Ge,Xe,Ye=function(){!Le&&Xe-he<=Xe*Ce||(Le=!0,D.push(te[Ee])),De()};if(Le)Ye();else{var ye=new Image;ye.onload=function(){ge.drawImage(ye,0,0,A.width,A.height);var Pe=ge.getImageData(0,0,A.width,A.height);he=0,Ge=Pe.data.length,Xe=Pe.data.length/4;for(var ue=0;ue0;)ae.push(H&255),H=H>>8;return new Uint8Array(ae.reverse())}function A(H){return new Uint8Array(H.split("").map(function(ae){return ae.charCodeAt(0)}))}function Y(H){var ae=[],ge=H.length%8?new Array(9-H.length%8).join("0"):"";H=ge+H;for(var D=0;D127)throw"TrackNumber > 127 not supported";var ge=[H.trackNum|128,H.timecode>>8,H.timecode&255,ae].map(function(D){return String.fromCharCode(D)}).join("")+H.frame;return ge}function oe(H){for(var ae=H.RIFF[0].WEBP[0],ge=ae.indexOf("*"),D=0,X=[];D<4;D++)X[D]=ae.charCodeAt(ge+3+D);var fe,pe,ve;return ve=X[1]<<8|X[0],fe=ve&16383,ve=X[3]<<8|X[2],pe=ve&16383,{width:fe,height:pe,data:ae,riff:H}}function te(H,ae){return parseInt(H.substr(ae+4,4).split("").map(function(ge){var D=ge.charCodeAt(0).toString(2);return new Array(8-D.length+1).join("0")+D}).join(""),2)}function ne(H){for(var ae=0,ge={};ae0;)ae.push(H&255),H=H>>8;return new Uint8Array(ae.reverse())}function A(H){return new Uint8Array(H.split("").map(function(ae){return ae.charCodeAt(0)}))}function K(H){var ae=[],ge=H.length%8?new Array(9-H.length%8).join("0"):"";H=ge+H;for(var D=0;D127)throw"TrackNumber > 127 not supported";var ge=[H.trackNum|128,H.timecode>>8,H.timecode&255,ae].map(function(D){return String.fromCharCode(D)}).join("")+H.frame;return ge}function oe(H){for(var ae=H.RIFF[0].WEBP[0],ge=ae.indexOf("*"),D=0,X=[];D<4;D++)X[D]=ae.charCodeAt(ge+3+D);var fe,pe,ve;return ve=X[1]<<8|X[0],fe=ve&16383,ve=X[3]<<8|X[2],pe=ve&16383,{width:fe,height:pe,data:ae,riff:H}}function te(H,ae){return parseInt(H.substr(ae+4,4).split("").map(function(ge){var D=ge.charCodeAt(0).toString(2);return new Array(8-D.length+1).join("0")+D}).join(""),2)}function ne(H){for(var ae=0,ge={};ae"u"||typeof indexedDB.open>"u"){console.error("IndexedDB API are not available in this browser.");return}var g=1,$=this.dbName||location.href.replace(/\/|:|#|%|\.|\[|\]/g,""),z,L=indexedDB.open($,g);function B(M){M.createObjectStore(E.dataStoreName)}function V(){var M=z.transaction([E.dataStoreName],"readwrite");E.videoBlob&&M.objectStore(E.dataStoreName).put(E.videoBlob,"videoBlob"),E.gifBlob&&M.objectStore(E.dataStoreName).put(E.gifBlob,"gifBlob"),E.audioBlob&&M.objectStore(E.dataStoreName).put(E.audioBlob,"audioBlob");function A(Y){M.objectStore(E.dataStoreName).get(Y).onsuccess=function(K){E.callback&&E.callback(K.target.result,Y)}}A("audioBlob"),A("videoBlob"),A("gifBlob")}L.onerror=E.onError,L.onsuccess=function(){if(z=L.result,z.onerror=E.onError,z.setVersion)if(z.version!==g){var M=z.setVersion(g);M.onsuccess=function(){B(z),V()}}else V();else V()},L.onupgradeneeded=function(M){B(M.target.result)}},Fetch:function(E){return this.callback=E,this.init(),this},Store:function(E){return this.audioBlob=E.audioBlob,this.videoBlob=E.videoBlob,this.gifBlob=E.gifBlob,this.init(),this},onError:function(E){console.error(JSON.stringify(E,null," "))},dataStoreName:"recordRTC",dbName:null};typeof t<"u"&&(t.DiskStorage=G);/** + */var G={init:function(){var E=this;if(typeof indexedDB>"u"||typeof indexedDB.open>"u"){console.error("IndexedDB API are not available in this browser.");return}var g=1,$=this.dbName||location.href.replace(/\/|:|#|%|\.|\[|\]/g,""),z,L=indexedDB.open($,g);function B(M){M.createObjectStore(E.dataStoreName)}function V(){var M=z.transaction([E.dataStoreName],"readwrite");E.videoBlob&&M.objectStore(E.dataStoreName).put(E.videoBlob,"videoBlob"),E.gifBlob&&M.objectStore(E.dataStoreName).put(E.gifBlob,"gifBlob"),E.audioBlob&&M.objectStore(E.dataStoreName).put(E.audioBlob,"audioBlob");function A(K){M.objectStore(E.dataStoreName).get(K).onsuccess=function(Y){E.callback&&E.callback(Y.target.result,K)}}A("audioBlob"),A("videoBlob"),A("gifBlob")}L.onerror=E.onError,L.onsuccess=function(){if(z=L.result,z.onerror=E.onError,z.setVersion)if(z.version!==g){var M=z.setVersion(g);M.onsuccess=function(){B(z),V()}}else V();else V()},L.onupgradeneeded=function(M){B(M.target.result)}},Fetch:function(E){return this.callback=E,this.init(),this},Store:function(E){return this.audioBlob=E.audioBlob,this.videoBlob=E.videoBlob,this.gifBlob=E.gifBlob,this.init(),this},onError:function(E){console.error(JSON.stringify(E,null," "))},dataStoreName:"recordRTC",dbName:null};typeof t<"u"&&(t.DiskStorage=G);/** * GifRecorder is standalone calss used by {@link RecordRTC} to record video or canvas into animated gif. * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT} * @author {@link https://MuazKhan.com|Muaz Khan} @@ -400,7 +400,7 @@ Error generating stack: `+i.message+` * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code} * @param {MediaStream} mediaStream - MediaStream object or HTMLCanvasElement or CanvasRenderingContext2D. * @param {object} config - {disableLogs:true, initCallback: function, width: 320, height: 240, frameRate: 200, quality: 10} - */function ee(E,g){if(typeof GIFEncoder>"u"){var $=document.createElement("script");$.src="https://www.webrtc-experiment.com/gif-recorder.js",(document.body||document.documentElement).appendChild($)}g=g||{};var z=E instanceof CanvasRenderingContext2D||E instanceof HTMLCanvasElement;this.record=function(){if(typeof GIFEncoder>"u"){setTimeout(te.record,1e3);return}if(!A){setTimeout(te.record,1e3);return}z||(g.width||(g.width=Y.offsetWidth||320),g.height||(g.height=Y.offsetHeight||240),g.video||(g.video={width:g.width,height:g.height}),g.canvas||(g.canvas={width:g.width,height:g.height}),V.width=g.canvas.width||320,V.height=g.canvas.height||240,Y.width=g.video.width||320,Y.height=g.video.height||240),oe=new GIFEncoder,oe.setRepeat(0),oe.setDelay(g.frameRate||200),oe.setQuality(g.quality||10),oe.start(),typeof g.onGifRecordingStarted=="function"&&g.onGifRecordingStarted();function ne(de){if(te.clearedRecordedData!==!0){if(L)return setTimeout(function(){ne(de)},100);K=a(ne),typeof q===void 0&&(q=de),!(de-q<90)&&(!z&&Y.paused&&Y.play(),z||M.drawImage(Y,0,0,V.width,V.height),g.onGifPreview&&g.onGifPreview(V.toDataURL("image/png")),oe.addFrame(M),q=de)}}K=a(ne),g.initCallback&&g.initCallback()},this.stop=function(ne){ne=ne||function(){},K&&l(K),this.blob=new Blob([new Uint8Array(oe.stream().bin)],{type:"image/gif"}),ne(this.blob),oe.stream().bin=[]};var L=!1;this.pause=function(){L=!0},this.resume=function(){L=!1},this.clearRecordedData=function(){te.clearedRecordedData=!0,B()};function B(){oe&&(oe.stream().bin=[])}this.name="GifRecorder",this.toString=function(){return this.name};var V=document.createElement("canvas"),M=V.getContext("2d");z&&(E instanceof CanvasRenderingContext2D?(M=E,V=M.canvas):E instanceof HTMLCanvasElement&&(M=E.getContext("2d"),V=E));var A=!0;if(!z){var Y=document.createElement("video");Y.muted=!0,Y.autoplay=!0,Y.playsInline=!0,A=!1,Y.onloadedmetadata=function(){A=!0},k(E,Y),Y.play()}var K=null,q,oe,te=this}typeof t<"u"&&(t.GifRecorder=ee);function J(E,g){var $="Fake/5.0 (FakeOS) AppleWebKit/123 (KHTML, like Gecko) Fake/12.3.4567.89 Fake/123.45";(function(D){typeof t<"u"||D&&(typeof window<"u"||typeof rt>"u"||(rt.navigator={userAgent:$,getUserMedia:function(){}},rt.console||(rt.console={}),(typeof rt.console.log>"u"||typeof rt.console.error>"u")&&(rt.console.error=rt.console.log=rt.console.log||function(){console.log(arguments)}),typeof document>"u"&&(D.document={documentElement:{appendChild:function(){return""}}},document.createElement=document.captureStream=document.mozCaptureStream=function(){var X={getContext:function(){return X},play:function(){},pause:function(){},drawImage:function(){},toDataURL:function(){return""},style:{}};return X},D.HTMLVideoElement=function(){}),typeof location>"u"&&(D.location={protocol:"file:",href:"",hash:""}),typeof screen>"u"&&(D.screen={width:0,height:0}),typeof Y>"u"&&(D.URL={createObjectURL:function(){return""},revokeObjectURL:function(){return""}}),D.window=rt))})(typeof rt<"u"?rt:null),g=g||"multi-streams-mixer";var z=[],L=!1,B=document.createElement("canvas"),V=B.getContext("2d");B.style.opacity=0,B.style.position="absolute",B.style.zIndex=-1,B.style.top="-1000em",B.style.left="-1000em",B.className=g,(document.body||document.documentElement).appendChild(B),this.disableLogs=!1,this.frameInterval=10,this.width=360,this.height=240,this.useGainNode=!0;var M=this,A=window.AudioContext;typeof A>"u"&&(typeof webkitAudioContext<"u"&&(A=webkitAudioContext),typeof mozAudioContext<"u"&&(A=mozAudioContext));var Y=window.URL;typeof Y>"u"&&typeof webkitURL<"u"&&(Y=webkitURL),typeof navigator<"u"&&typeof navigator.getUserMedia>"u"&&(typeof navigator.webkitGetUserMedia<"u"&&(navigator.getUserMedia=navigator.webkitGetUserMedia),typeof navigator.mozGetUserMedia<"u"&&(navigator.getUserMedia=navigator.mozGetUserMedia));var K=window.MediaStream;typeof K>"u"&&typeof webkitMediaStream<"u"&&(K=webkitMediaStream),typeof K<"u"&&typeof K.prototype.stop>"u"&&(K.prototype.stop=function(){this.getTracks().forEach(function(D){D.stop()})});var q={};typeof A<"u"?q.AudioContext=A:typeof webkitAudioContext<"u"&&(q.AudioContext=webkitAudioContext);function oe(D,X){"srcObject"in X?X.srcObject=D:"mozSrcObject"in X?X.mozSrcObject=D:X.srcObject=D}this.startDrawingFrames=function(){te()};function te(){if(!L){var D=z.length,X=!1,fe=[];if(z.forEach(function(ve){ve.stream||(ve.stream={}),ve.stream.fullcanvas?X=ve:fe.push(ve)}),X)B.width=X.stream.width,B.height=X.stream.height;else if(fe.length){B.width=D>1?fe[0].width*2:fe[0].width;var pe=1;(D===3||D===4)&&(pe=2),(D===5||D===6)&&(pe=3),(D===7||D===8)&&(pe=4),(D===9||D===10)&&(pe=5),B.height=fe[0].height*pe}else B.width=M.width||360,B.height=M.height||240;X&&X instanceof HTMLVideoElement&&ne(X),fe.forEach(function(ve,Ce){ne(ve,Ce)}),setTimeout(te,M.frameInterval)}}function ne(D,X){if(!L){var fe=0,pe=0,ve=D.width,Ce=D.height;X===1&&(fe=D.width),X===2&&(pe=D.height),X===3&&(fe=D.width,pe=D.height),X===4&&(pe=D.height*2),X===5&&(fe=D.width,pe=D.height*2),X===6&&(pe=D.height*3),X===7&&(fe=D.width,pe=D.height*3),typeof D.stream.left<"u"&&(fe=D.stream.left),typeof D.stream.top<"u"&&(pe=D.stream.top),typeof D.stream.width<"u"&&(ve=D.stream.width),typeof D.stream.height<"u"&&(Ce=D.stream.height),V.drawImage(D,fe,pe,ve,Ce),typeof D.stream.onRender=="function"&&D.stream.onRender(V,fe,pe,ve,Ce,X)}}function de(){L=!1;var D=ke(),X=H();return X&&X.getTracks().filter(function(fe){return fe.kind==="audio"}).forEach(function(fe){D.addTrack(fe)}),E.forEach(function(fe){fe.fullcanvas}),D}function ke(){ge();var D;"captureStream"in B?D=B.captureStream():"mozCaptureStream"in B?D=B.mozCaptureStream():M.disableLogs||console.error("Upgrade to latest Chrome or otherwise enable this flag: chrome://flags/#enable-experimental-web-platform-features");var X=new K;return D.getTracks().filter(function(fe){return fe.kind==="video"}).forEach(function(fe){X.addTrack(fe)}),B.stream=X,X}function H(){q.AudioContextConstructor||(q.AudioContextConstructor=new q.AudioContext),M.audioContext=q.AudioContextConstructor,M.audioSources=[],M.useGainNode===!0&&(M.gainNode=M.audioContext.createGain(),M.gainNode.connect(M.audioContext.destination),M.gainNode.gain.value=0);var D=0;if(E.forEach(function(X){if(X.getTracks().filter(function(pe){return pe.kind==="audio"}).length){D++;var fe=M.audioContext.createMediaStreamSource(X);M.useGainNode===!0&&fe.connect(M.gainNode),M.audioSources.push(fe)}}),!!D)return M.audioDestination=M.audioContext.createMediaStreamDestination(),M.audioSources.forEach(function(X){X.connect(M.audioDestination)}),M.audioDestination.stream}function ae(D){var X=document.createElement("video");return oe(D,X),X.className=g,X.muted=!0,X.volume=0,X.width=D.width||M.width||360,X.height=D.height||M.height||240,X.play(),X}this.appendStreams=function(D){if(!D)throw"First parameter is required.";D instanceof Array||(D=[D]),D.forEach(function(X){var fe=new K;if(X.getTracks().filter(function(Ce){return Ce.kind==="video"}).length){var pe=ae(X);pe.stream=X,z.push(pe),fe.addTrack(X.getTracks().filter(function(Ce){return Ce.kind==="video"})[0])}if(X.getTracks().filter(function(Ce){return Ce.kind==="audio"}).length){var ve=M.audioContext.createMediaStreamSource(X);M.audioDestination=M.audioContext.createMediaStreamDestination(),ve.connect(M.audioDestination),fe.addTrack(M.audioDestination.stream.getTracks().filter(function(Ce){return Ce.kind==="audio"})[0])}E.push(fe)})},this.releaseStreams=function(){z=[],L=!0,M.gainNode&&(M.gainNode.disconnect(),M.gainNode=null),M.audioSources.length&&(M.audioSources.forEach(function(D){D.disconnect()}),M.audioSources=[]),M.audioDestination&&(M.audioDestination.disconnect(),M.audioDestination=null),M.audioContext&&M.audioContext.close(),M.audioContext=null,V.clearRect(0,0,B.width,B.height),B.stream&&(B.stream.stop(),B.stream=null)},this.resetVideoStreams=function(D){D&&!(D instanceof Array)&&(D=[D]),ge(D)};function ge(D){z=[],D=D||E,D.forEach(function(X){if(X.getTracks().filter(function(pe){return pe.kind==="video"}).length){var fe=ae(X);fe.stream=X,z.push(fe)}})}this.name="MultiStreamsMixer",this.toString=function(){return this.name},this.getMixedStream=de}typeof t>"u"&&(e.exports=J);/** + */function ee(E,g){if(typeof GIFEncoder>"u"){var $=document.createElement("script");$.src="https://www.webrtc-experiment.com/gif-recorder.js",(document.body||document.documentElement).appendChild($)}g=g||{};var z=E instanceof CanvasRenderingContext2D||E instanceof HTMLCanvasElement;this.record=function(){if(typeof GIFEncoder>"u"){setTimeout(te.record,1e3);return}if(!A){setTimeout(te.record,1e3);return}z||(g.width||(g.width=K.offsetWidth||320),g.height||(g.height=K.offsetHeight||240),g.video||(g.video={width:g.width,height:g.height}),g.canvas||(g.canvas={width:g.width,height:g.height}),V.width=g.canvas.width||320,V.height=g.canvas.height||240,K.width=g.video.width||320,K.height=g.video.height||240),oe=new GIFEncoder,oe.setRepeat(0),oe.setDelay(g.frameRate||200),oe.setQuality(g.quality||10),oe.start(),typeof g.onGifRecordingStarted=="function"&&g.onGifRecordingStarted();function ne(de){if(te.clearedRecordedData!==!0){if(L)return setTimeout(function(){ne(de)},100);Y=a(ne),typeof q===void 0&&(q=de),!(de-q<90)&&(!z&&K.paused&&K.play(),z||M.drawImage(K,0,0,V.width,V.height),g.onGifPreview&&g.onGifPreview(V.toDataURL("image/png")),oe.addFrame(M),q=de)}}Y=a(ne),g.initCallback&&g.initCallback()},this.stop=function(ne){ne=ne||function(){},Y&&l(Y),this.blob=new Blob([new Uint8Array(oe.stream().bin)],{type:"image/gif"}),ne(this.blob),oe.stream().bin=[]};var L=!1;this.pause=function(){L=!0},this.resume=function(){L=!1},this.clearRecordedData=function(){te.clearedRecordedData=!0,B()};function B(){oe&&(oe.stream().bin=[])}this.name="GifRecorder",this.toString=function(){return this.name};var V=document.createElement("canvas"),M=V.getContext("2d");z&&(E instanceof CanvasRenderingContext2D?(M=E,V=M.canvas):E instanceof HTMLCanvasElement&&(M=E.getContext("2d"),V=E));var A=!0;if(!z){var K=document.createElement("video");K.muted=!0,K.autoplay=!0,K.playsInline=!0,A=!1,K.onloadedmetadata=function(){A=!0},k(E,K),K.play()}var Y=null,q,oe,te=this}typeof t<"u"&&(t.GifRecorder=ee);function J(E,g){var $="Fake/5.0 (FakeOS) AppleWebKit/123 (KHTML, like Gecko) Fake/12.3.4567.89 Fake/123.45";(function(D){typeof t<"u"||D&&(typeof window<"u"||typeof rt>"u"||(rt.navigator={userAgent:$,getUserMedia:function(){}},rt.console||(rt.console={}),(typeof rt.console.log>"u"||typeof rt.console.error>"u")&&(rt.console.error=rt.console.log=rt.console.log||function(){console.log(arguments)}),typeof document>"u"&&(D.document={documentElement:{appendChild:function(){return""}}},document.createElement=document.captureStream=document.mozCaptureStream=function(){var X={getContext:function(){return X},play:function(){},pause:function(){},drawImage:function(){},toDataURL:function(){return""},style:{}};return X},D.HTMLVideoElement=function(){}),typeof location>"u"&&(D.location={protocol:"file:",href:"",hash:""}),typeof screen>"u"&&(D.screen={width:0,height:0}),typeof K>"u"&&(D.URL={createObjectURL:function(){return""},revokeObjectURL:function(){return""}}),D.window=rt))})(typeof rt<"u"?rt:null),g=g||"multi-streams-mixer";var z=[],L=!1,B=document.createElement("canvas"),V=B.getContext("2d");B.style.opacity=0,B.style.position="absolute",B.style.zIndex=-1,B.style.top="-1000em",B.style.left="-1000em",B.className=g,(document.body||document.documentElement).appendChild(B),this.disableLogs=!1,this.frameInterval=10,this.width=360,this.height=240,this.useGainNode=!0;var M=this,A=window.AudioContext;typeof A>"u"&&(typeof webkitAudioContext<"u"&&(A=webkitAudioContext),typeof mozAudioContext<"u"&&(A=mozAudioContext));var K=window.URL;typeof K>"u"&&typeof webkitURL<"u"&&(K=webkitURL),typeof navigator<"u"&&typeof navigator.getUserMedia>"u"&&(typeof navigator.webkitGetUserMedia<"u"&&(navigator.getUserMedia=navigator.webkitGetUserMedia),typeof navigator.mozGetUserMedia<"u"&&(navigator.getUserMedia=navigator.mozGetUserMedia));var Y=window.MediaStream;typeof Y>"u"&&typeof webkitMediaStream<"u"&&(Y=webkitMediaStream),typeof Y<"u"&&typeof Y.prototype.stop>"u"&&(Y.prototype.stop=function(){this.getTracks().forEach(function(D){D.stop()})});var q={};typeof A<"u"?q.AudioContext=A:typeof webkitAudioContext<"u"&&(q.AudioContext=webkitAudioContext);function oe(D,X){"srcObject"in X?X.srcObject=D:"mozSrcObject"in X?X.mozSrcObject=D:X.srcObject=D}this.startDrawingFrames=function(){te()};function te(){if(!L){var D=z.length,X=!1,fe=[];if(z.forEach(function(ve){ve.stream||(ve.stream={}),ve.stream.fullcanvas?X=ve:fe.push(ve)}),X)B.width=X.stream.width,B.height=X.stream.height;else if(fe.length){B.width=D>1?fe[0].width*2:fe[0].width;var pe=1;(D===3||D===4)&&(pe=2),(D===5||D===6)&&(pe=3),(D===7||D===8)&&(pe=4),(D===9||D===10)&&(pe=5),B.height=fe[0].height*pe}else B.width=M.width||360,B.height=M.height||240;X&&X instanceof HTMLVideoElement&&ne(X),fe.forEach(function(ve,Ce){ne(ve,Ce)}),setTimeout(te,M.frameInterval)}}function ne(D,X){if(!L){var fe=0,pe=0,ve=D.width,Ce=D.height;X===1&&(fe=D.width),X===2&&(pe=D.height),X===3&&(fe=D.width,pe=D.height),X===4&&(pe=D.height*2),X===5&&(fe=D.width,pe=D.height*2),X===6&&(pe=D.height*3),X===7&&(fe=D.width,pe=D.height*3),typeof D.stream.left<"u"&&(fe=D.stream.left),typeof D.stream.top<"u"&&(pe=D.stream.top),typeof D.stream.width<"u"&&(ve=D.stream.width),typeof D.stream.height<"u"&&(Ce=D.stream.height),V.drawImage(D,fe,pe,ve,Ce),typeof D.stream.onRender=="function"&&D.stream.onRender(V,fe,pe,ve,Ce,X)}}function de(){L=!1;var D=ke(),X=H();return X&&X.getTracks().filter(function(fe){return fe.kind==="audio"}).forEach(function(fe){D.addTrack(fe)}),E.forEach(function(fe){fe.fullcanvas}),D}function ke(){ge();var D;"captureStream"in B?D=B.captureStream():"mozCaptureStream"in B?D=B.mozCaptureStream():M.disableLogs||console.error("Upgrade to latest Chrome or otherwise enable this flag: chrome://flags/#enable-experimental-web-platform-features");var X=new Y;return D.getTracks().filter(function(fe){return fe.kind==="video"}).forEach(function(fe){X.addTrack(fe)}),B.stream=X,X}function H(){q.AudioContextConstructor||(q.AudioContextConstructor=new q.AudioContext),M.audioContext=q.AudioContextConstructor,M.audioSources=[],M.useGainNode===!0&&(M.gainNode=M.audioContext.createGain(),M.gainNode.connect(M.audioContext.destination),M.gainNode.gain.value=0);var D=0;if(E.forEach(function(X){if(X.getTracks().filter(function(pe){return pe.kind==="audio"}).length){D++;var fe=M.audioContext.createMediaStreamSource(X);M.useGainNode===!0&&fe.connect(M.gainNode),M.audioSources.push(fe)}}),!!D)return M.audioDestination=M.audioContext.createMediaStreamDestination(),M.audioSources.forEach(function(X){X.connect(M.audioDestination)}),M.audioDestination.stream}function ae(D){var X=document.createElement("video");return oe(D,X),X.className=g,X.muted=!0,X.volume=0,X.width=D.width||M.width||360,X.height=D.height||M.height||240,X.play(),X}this.appendStreams=function(D){if(!D)throw"First parameter is required.";D instanceof Array||(D=[D]),D.forEach(function(X){var fe=new Y;if(X.getTracks().filter(function(Ce){return Ce.kind==="video"}).length){var pe=ae(X);pe.stream=X,z.push(pe),fe.addTrack(X.getTracks().filter(function(Ce){return Ce.kind==="video"})[0])}if(X.getTracks().filter(function(Ce){return Ce.kind==="audio"}).length){var ve=M.audioContext.createMediaStreamSource(X);M.audioDestination=M.audioContext.createMediaStreamDestination(),ve.connect(M.audioDestination),fe.addTrack(M.audioDestination.stream.getTracks().filter(function(Ce){return Ce.kind==="audio"})[0])}E.push(fe)})},this.releaseStreams=function(){z=[],L=!0,M.gainNode&&(M.gainNode.disconnect(),M.gainNode=null),M.audioSources.length&&(M.audioSources.forEach(function(D){D.disconnect()}),M.audioSources=[]),M.audioDestination&&(M.audioDestination.disconnect(),M.audioDestination=null),M.audioContext&&M.audioContext.close(),M.audioContext=null,V.clearRect(0,0,B.width,B.height),B.stream&&(B.stream.stop(),B.stream=null)},this.resetVideoStreams=function(D){D&&!(D instanceof Array)&&(D=[D]),ge(D)};function ge(D){z=[],D=D||E,D.forEach(function(X){if(X.getTracks().filter(function(pe){return pe.kind==="video"}).length){var fe=ae(X);fe.stream=X,z.push(fe)}})}this.name="MultiStreamsMixer",this.toString=function(){return this.name},this.getMixedStream=de}typeof t>"u"&&(e.exports=J);/** * MultiStreamRecorder can record multiple videos in single container. * @summary Multi-videos recorder. * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT} @@ -458,7 +458,7 @@ Error generating stack: `+i.message+` * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code} * @param {MediaStream} mediaStream - MediaStream object fetched using getUserMedia API or generated using captureStreamUntilEnded or WebAudio API. * @param {object} config - {webAssemblyPath:'webm-wasm.wasm',workerPath: 'webm-worker.js', frameRate: 30, width: 1920, height: 1080, bitrate: 1024, realtime: true} - */function _(E,g){(typeof ReadableStream>"u"||typeof WritableStream>"u")&&console.error("Following polyfill is strongly recommended: https://unpkg.com/@mattiasbuelens/web-streams-polyfill/dist/polyfill.min.js"),g=g||{},g.width=g.width||640,g.height=g.height||480,g.frameRate=g.frameRate||30,g.bitrate=g.bitrate||1200,g.realtime=g.realtime||!0;var $;function z(){return new ReadableStream({start:function(Y){var K=document.createElement("canvas"),q=document.createElement("video"),oe=!0;q.srcObject=E,q.muted=!0,q.height=g.height,q.width=g.width,q.volume=0,q.onplaying=function(){K.width=g.width,K.height=g.height;var te=K.getContext("2d"),ne=1e3/g.frameRate,de=setInterval(function(){if($&&(clearInterval(de),Y.close()),oe&&(oe=!1,g.onVideoProcessStarted&&g.onVideoProcessStarted()),te.drawImage(q,0,0),Y._controlledReadableStream.state!=="closed")try{Y.enqueue(te.getImageData(0,0,g.width,g.height))}catch{}},ne)},q.play()}})}var L;function B(Y,K){if(!g.workerPath&&!K){$=!1,fetch("https://unpkg.com/webm-wasm@latest/dist/webm-worker.js").then(function(oe){oe.arrayBuffer().then(function(te){B(Y,te)})});return}if(!g.workerPath&&K instanceof ArrayBuffer){var q=new Blob([K],{type:"text/javascript"});g.workerPath=u.createObjectURL(q)}g.workerPath||console.error("workerPath parameter is missing."),L=new Worker(g.workerPath),L.postMessage(g.webAssemblyPath||"https://unpkg.com/webm-wasm@latest/dist/webm-wasm.wasm"),L.addEventListener("message",function(oe){oe.data==="READY"?(L.postMessage({width:g.width,height:g.height,bitrate:g.bitrate||1200,timebaseDen:g.frameRate||30,realtime:g.realtime}),z().pipeTo(new WritableStream({write:function(te){if($){console.error("Got image, but recorder is finished!");return}L.postMessage(te.data.buffer,[te.data.buffer])}}))):oe.data&&(V||A.push(oe.data))})}this.record=function(){A=[],V=!1,this.blob=null,B(E),typeof g.initCallback=="function"&&g.initCallback()};var V;this.pause=function(){V=!0},this.resume=function(){V=!1};function M(Y){if(!L){Y&&Y();return}L.addEventListener("message",function(K){K.data===null&&(L.terminate(),L=null,Y&&Y())}),L.postMessage(null)}var A=[];this.stop=function(Y){$=!0;var K=this;M(function(){K.blob=new Blob(A,{type:"video/webm"}),Y(K.blob)})},this.name="WebAssemblyRecorder",this.toString=function(){return this.name},this.clearRecordedData=function(){A=[],V=!1,this.blob=null},this.blob=null}typeof t<"u"&&(t.WebAssemblyRecorder=_)})(p2);var NN=p2.exports;const ky=Nc(NN),DN=()=>d.jsxs(at,{sx:{display:"flex",alignItems:"center",color:"text.secondary"},children:[d.jsx(Er,{src:Pi,sx:{width:24,height:24,marginRight:1},alt:"Aria"}),d.jsxs("div",{style:{display:"flex"},children:[d.jsx("div",{style:{animation:"blink 1.4s infinite",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),d.jsx("div",{style:{animation:"blink 1.4s infinite 0.2s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),d.jsx("div",{style:{animation:"blink 1.4s infinite 0.4s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor"}})]})]}),zN=()=>{const{user:e,voiceEnabled:t,setVoiceEnabled:n}=p.useContext(vr),r=e==null?void 0:e.userId,[o,i]=p.useState(null),[a,s]=p.useState(0),[l,c]=p.useState(""),[u,f]=p.useState([]),[h,w]=p.useState(!1),[y,x]=p.useState(null),C=p.useRef([]),[v,m]=p.useState(!1),[b,R]=p.useState(""),[k,T]=p.useState(!1),[P,j]=p.useState(!1),[N,O]=p.useState(""),[F,W]=p.useState("info"),[U,G]=p.useState(null),ee=M=>{M.preventDefault(),n(!t)},J=M=>{if(!t||M===U){G(null),window.speechSynthesis.cancel();return}const A=window.speechSynthesis,Y=new SpeechSynthesisUtterance(M),K=()=>{const q=A.getVoices();console.log(q.map(te=>`${te.name} - ${te.lang} - ${te.gender}`));const oe=q.find(te=>te.name.includes("Microsoft Zira - English (United States)"));oe?Y.voice=oe:console.log("No female voice found"),Y.onend=()=>{G(null)},G(M),A.speak(Y)};A.getVoices().length===0?A.onvoiceschanged=K:K()},re=p.useCallback(async()=>{if(r){m(!0),T(!0);try{const M=await fetch(`/api/ai/mental_health/welcome/${r}`,{method:"POST",headers:{"Content-Type":"application/json"}}),A=await M.json();console.log(A),M.ok?(R(A.message),t&&A.message&&J(A.message),i(A.chat_id),console.log(A.chat_id)):(console.error("Failed to fetch welcome message:",A),R("Error fetching welcome message."))}catch(M){console.error("Network or server error:",M)}finally{m(!1),T(!1)}}},[r]);p.useEffect(()=>{re()},[]);const I=(M,A)=>{A!=="clickaway"&&j(!1)},_=p.useCallback(async()=>{if(o!==null){m(!0);try{const M=await fetch(`/api/ai/mental_health/finalize/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"}}),A=await M.json();M.ok?(O("Chat finalized successfully"),W("success"),i(null),s(0),f([]),re()):(O("Failed to finalize chat"),W("error"))}catch{O("Error finalizing chat"),W("error")}finally{m(!1),j(!0)}}},[r,o,re]),E=p.useCallback(async()=>{if(!(!l.trim()||o===void 0)){console.log(o),m(!0);try{const M=JSON.stringify({prompt:l,turn_id:a}),A=await fetch(`/api/ai/mental_health/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"},body:M}),Y=await A.json();console.log(Y),A.ok?(f(K=>[...K,{message:l,sender:"user"},{message:Y,sender:"agent"}]),t&&Y&&J(Y),s(K=>K+1),c("")):(console.error("Failed to send message:",Y.error||"Unknown error occurred"),O(Y.error||"An error occurred while sending the message."),W("error"),j(!0))}catch(M){console.error("Failed to send message:",M),O("Network or server error occurred."),W("error"),j(!0)}finally{m(!1)}}},[l,r,o,a]),g=()=>MediaRecorder.isTypeSupported?MediaRecorder.isTypeSupported("audio/webm; codecs=opus"):!1,$=()=>{navigator.mediaDevices.getUserMedia({audio:{sampleRate:44100,channelCount:1,volume:1,echoCancellation:!0}}).then(M=>{C.current=[];const A=g(),Y={type:"audio",mimeType:A?"audio/webm; codecs=opus":"audio/wav",recorderType:A?MediaRecorder:ky.StereoAudioRecorder,numberOfAudioChannels:1},K=A?new MediaRecorder(M,Y):new ky(M,Y);K.ondataavailable=q=>{console.log("Data available:",q.data.size),C.current.push(q.data)},K.start(),x(K),w(!0)}).catch(M=>{console.error("Error accessing microphone:",M),j(!0),O("Unable to access microphone: "+M.message),W("error")})},z=()=>{y&&(y.onstop=()=>{L(C.current,{type:y.mimeType}),w(!1),x(null)},y.stop())},L=M=>{console.log("Audio chunks size:",M.reduce((K,q)=>K+q.size,0));const A=new Blob(M,{type:"audio/webm"});if(A.size===0){console.error("Audio Blob is empty"),O("Recording is empty. Please try again."),W("error"),j(!0);return}console.log(`Sending audio blob of size: ${A.size} bytes`);const Y=new FormData;Y.append("audio",A),m(!0),Oe.post("/api/ai/mental_health/voice-to-text",Y,{headers:{"Content-Type":"multipart/form-data"}}).then(K=>{const{message:q}=K.data;c(q),E()}).catch(K=>{console.error("Error uploading audio:",K),j(!0),O("Error processing voice input: "+K.message),W("error")}).finally(()=>{m(!1)})},B=p.useCallback(M=>{const A=M.target.value;A.split(/\s+/).length>200?(c(K=>K.split(/\s+/).slice(0,200).join(" ")),O("Word limit reached. Only 200 words allowed."),W("warning"),j(!0)):c(A)},[]),V=M=>M===U?d.jsx(Lc,{}):d.jsx(_c,{});return d.jsxs(d.Fragment,{children:[d.jsx("style",{children:` + */function _(E,g){(typeof ReadableStream>"u"||typeof WritableStream>"u")&&console.error("Following polyfill is strongly recommended: https://unpkg.com/@mattiasbuelens/web-streams-polyfill/dist/polyfill.min.js"),g=g||{},g.width=g.width||640,g.height=g.height||480,g.frameRate=g.frameRate||30,g.bitrate=g.bitrate||1200,g.realtime=g.realtime||!0;var $;function z(){return new ReadableStream({start:function(K){var Y=document.createElement("canvas"),q=document.createElement("video"),oe=!0;q.srcObject=E,q.muted=!0,q.height=g.height,q.width=g.width,q.volume=0,q.onplaying=function(){Y.width=g.width,Y.height=g.height;var te=Y.getContext("2d"),ne=1e3/g.frameRate,de=setInterval(function(){if($&&(clearInterval(de),K.close()),oe&&(oe=!1,g.onVideoProcessStarted&&g.onVideoProcessStarted()),te.drawImage(q,0,0),K._controlledReadableStream.state!=="closed")try{K.enqueue(te.getImageData(0,0,g.width,g.height))}catch{}},ne)},q.play()}})}var L;function B(K,Y){if(!g.workerPath&&!Y){$=!1,fetch("https://unpkg.com/webm-wasm@latest/dist/webm-worker.js").then(function(oe){oe.arrayBuffer().then(function(te){B(K,te)})});return}if(!g.workerPath&&Y instanceof ArrayBuffer){var q=new Blob([Y],{type:"text/javascript"});g.workerPath=u.createObjectURL(q)}g.workerPath||console.error("workerPath parameter is missing."),L=new Worker(g.workerPath),L.postMessage(g.webAssemblyPath||"https://unpkg.com/webm-wasm@latest/dist/webm-wasm.wasm"),L.addEventListener("message",function(oe){oe.data==="READY"?(L.postMessage({width:g.width,height:g.height,bitrate:g.bitrate||1200,timebaseDen:g.frameRate||30,realtime:g.realtime}),z().pipeTo(new WritableStream({write:function(te){if($){console.error("Got image, but recorder is finished!");return}L.postMessage(te.data.buffer,[te.data.buffer])}}))):oe.data&&(V||A.push(oe.data))})}this.record=function(){A=[],V=!1,this.blob=null,B(E),typeof g.initCallback=="function"&&g.initCallback()};var V;this.pause=function(){V=!0},this.resume=function(){V=!1};function M(K){if(!L){K&&K();return}L.addEventListener("message",function(Y){Y.data===null&&(L.terminate(),L=null,K&&K())}),L.postMessage(null)}var A=[];this.stop=function(K){$=!0;var Y=this;M(function(){Y.blob=new Blob(A,{type:"video/webm"}),K(Y.blob)})},this.name="WebAssemblyRecorder",this.toString=function(){return this.name},this.clearRecordedData=function(){A=[],V=!1,this.blob=null},this.blob=null}typeof t<"u"&&(t.WebAssemblyRecorder=_)})(p2);var NN=p2.exports;const ky=Nc(NN),DN=()=>d.jsxs(at,{sx:{display:"flex",alignItems:"center",color:"text.secondary"},children:[d.jsx(Er,{src:Pi,sx:{width:24,height:24,marginRight:1},alt:"Aria"}),d.jsxs("div",{style:{display:"flex"},children:[d.jsx("div",{style:{animation:"blink 1.4s infinite",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),d.jsx("div",{style:{animation:"blink 1.4s infinite 0.2s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),d.jsx("div",{style:{animation:"blink 1.4s infinite 0.4s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor"}})]})]}),zN=()=>{const{user:e,voiceEnabled:t,setVoiceEnabled:n}=p.useContext(vr),r=e==null?void 0:e.userId,[o,i]=p.useState(null),[a,s]=p.useState(0),[l,c]=p.useState(""),[u,f]=p.useState([]),[h,w]=p.useState(!1),[y,x]=p.useState(null),C=p.useRef([]),[v,m]=p.useState(!1),[b,R]=p.useState(""),[k,T]=p.useState(!1),[P,j]=p.useState(!1),[N,O]=p.useState(""),[F,W]=p.useState("info"),[U,G]=p.useState(null),ee=M=>{M.preventDefault(),n(!t)},J=M=>{if(!t||M===U){G(null),window.speechSynthesis.cancel();return}const A=window.speechSynthesis,K=new SpeechSynthesisUtterance(M),Y=()=>{const q=A.getVoices();console.log(q.map(te=>`${te.name} - ${te.lang} - ${te.gender}`));const oe=q.find(te=>te.name.includes("Microsoft Zira - English (United States)"));oe?K.voice=oe:console.log("No female voice found"),K.onend=()=>{G(null)},G(M),A.speak(K)};A.getVoices().length===0?A.onvoiceschanged=Y:Y()},re=p.useCallback(async()=>{if(r){m(!0),T(!0);try{const M=await fetch(`/api/ai/mental_health/welcome/${r}`,{method:"POST",headers:{"Content-Type":"application/json"}}),A=await M.json();console.log(A),M.ok?(R(A.message),t&&A.message&&J(A.message),i(A.chat_id),console.log(A.chat_id)):(console.error("Failed to fetch welcome message:",A),R("Error fetching welcome message."))}catch(M){console.error("Network or server error:",M)}finally{m(!1),T(!1)}}},[r]);p.useEffect(()=>{re()},[]);const I=(M,A)=>{A!=="clickaway"&&j(!1)},_=p.useCallback(async()=>{if(o!==null){m(!0);try{const M=await fetch(`/api/ai/mental_health/finalize/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"}}),A=await M.json();M.ok?(O("Chat finalized successfully"),W("success"),i(null),s(0),f([]),re()):(O("Failed to finalize chat"),W("error"))}catch{O("Error finalizing chat"),W("error")}finally{m(!1),j(!0)}}},[r,o,re]),E=p.useCallback(async()=>{if(!(!l.trim()||o===void 0)){console.log(o),m(!0);try{const M=JSON.stringify({prompt:l,turn_id:a}),A=await fetch(`/api/ai/mental_health/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"},body:M}),K=await A.json();console.log(K),A.ok?(f(Y=>[...Y,{message:l,sender:"user"},{message:K,sender:"agent"}]),t&&K&&J(K),s(Y=>Y+1),c("")):(console.error("Failed to send message:",K.error||"Unknown error occurred"),O(K.error||"An error occurred while sending the message."),W("error"),j(!0))}catch(M){console.error("Failed to send message:",M),O("Network or server error occurred."),W("error"),j(!0)}finally{m(!1)}}},[l,r,o,a]),g=()=>MediaRecorder.isTypeSupported?MediaRecorder.isTypeSupported("audio/webm; codecs=opus"):!1,$=()=>{navigator.mediaDevices.getUserMedia({audio:{sampleRate:44100,channelCount:1,volume:1,echoCancellation:!0}}).then(M=>{C.current=[];const A=g();let K;const Y={type:"audio",mimeType:A?"audio/webm; codecs=opus":"audio/wav"};A?K=new MediaRecorder(M,Y):(K=new ky(M,{type:"audio",mimeType:"audio/wav",recorderType:ky.StereoAudioRecorder,numberOfAudioChannels:1}),K.startRecording()),K.ondataavailable=q=>{console.log("Data available:",q.data.size),C.current.push(q.data)},K instanceof MediaRecorder&&K.start(),x(K),w(!0)}).catch(M=>{console.error("Error accessing microphone:",M),j(!0),O("Unable to access microphone: "+M.message),W("error")})},z=()=>{if(y){const M=y instanceof MediaRecorder?"stop":"stopRecording";y[M](),y.onstop=()=>{L(C.current,{type:y.mimeType}),w(!1),x(null)},y.stop()}},L=()=>{const M=y.mimeType;console.log("Audio chunks size:",C.current.reduce((Y,q)=>Y+q.size,0));const A=new Blob(C.current,{type:M});if(A.size===0){console.error("Audio Blob is empty"),O("Recording is empty. Please try again."),W("error"),j(!0);return}console.log(`Sending audio blob of size: ${A.size} bytes`);const K=new FormData;K.append("audio",A),m(!0),Oe.post("/api/ai/mental_health/voice-to-text",K,{headers:{"Content-Type":"multipart/form-data"}}).then(Y=>{const{message:q}=Y.data;c(q),E()}).catch(Y=>{console.error("Error uploading audio:",Y),j(!0),O("Error processing voice input: "+Y.message),W("error")}).finally(()=>{m(!1)})},B=p.useCallback(M=>{const A=M.target.value;A.split(/\s+/).length>200?(c(Y=>Y.split(/\s+/).slice(0,200).join(" ")),O("Word limit reached. Only 200 words allowed."),W("warning"),j(!0)):c(A)},[]),V=M=>M===U?d.jsx(Lc,{}):d.jsx(_c,{});return d.jsxs(d.Fragment,{children:[d.jsx("style",{children:` @keyframes blink { 0%, 100% { opacity: 0; } 50% { opacity: 1; } @@ -472,7 +472,7 @@ Error generating stack: `+i.message+` font-size: 0.8rem; /* Smaller font size */ } } - `}),d.jsxs(at,{sx:{maxWidth:"100%",mx:"auto",my:2,display:"flex",flexDirection:"column",height:"91vh",borderRadius:2,boxShadow:1},children:[d.jsxs(ad,{sx:{display:"flex",flexDirection:"column",height:"100%",borderRadius:2,boxShadow:3},children:[d.jsxs(Cm,{sx:{flexGrow:1,overflow:"auto",padding:3,position:"relative"},children:[d.jsxs(at,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",position:"relative",marginBottom:"5px"},children:[d.jsx(Zn,{title:"Toggle voice responses",children:d.jsx(ut,{color:"inherit",onClick:ee,sx:{padding:0},children:d.jsx(IA,{checked:t,onChange:M=>n(M.target.checked),icon:d.jsx(Lc,{}),checkedIcon:d.jsx(_c,{}),inputProps:{"aria-label":"Voice response toggle"},color:"default",sx:{height:42,"& .MuiSwitch-switchBase":{padding:"9px"},"& .MuiSwitch-switchBase.Mui-checked":{color:"white",transform:"translateX(16px)","& + .MuiSwitch-track":{backgroundColor:"primary.main"}}}})})}),d.jsx(Zn,{title:"Start a new chat",placement:"top",arrow:!0,children:d.jsx(ut,{"aria-label":"new chat",color:"primary",onClick:_,disabled:v,sx:{"&:hover":{backgroundColor:"primary.main",color:"common.white"}},children:d.jsx(Um,{})})})]}),d.jsx(xs,{sx:{marginBottom:"10px"}}),b.length===0&&d.jsxs(at,{sx:{display:"flex",marginBottom:2,marginTop:3},children:[d.jsx(Er,{src:Pi,sx:{width:44,height:44,marginRight:2},alt:"Aria"}),d.jsx(Ie,{variant:"h4",component:"h1",gutterBottom:!0,children:"Welcome to Mental Health Companion"})]}),k?d.jsx(DN,{}):u.length===0&&d.jsxs(at,{sx:{display:"flex"},children:[d.jsx(Er,{src:Pi,sx:{width:36,height:36,marginRight:1},alt:"Aria"}),d.jsxs(Ie,{variant:"body1",gutterBottom:!0,sx:{bgcolor:"grey.200",borderRadius:"16px",px:2,py:1,display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap"},children:[b,t&&b&&d.jsx(ut,{onClick:()=>J(b),size:"small",sx:{ml:1},children:V(b)})]})]}),d.jsx(Fs,{sx:{maxHeight:"100%",overflow:"auto"},children:u.map((M,A)=>d.jsx(Oc,{sx:{display:"flex",flexDirection:"column",alignItems:M.sender==="user"?"flex-end":"flex-start",borderRadius:2,mb:.5,p:1,border:"none","&:before":{display:"none"},"&:after":{display:"none"}},children:d.jsxs(at,{sx:{display:"flex",alignItems:"center",color:M.sender==="user"?"common.white":"text.primary",borderRadius:"16px"},children:[M.sender==="agent"&&d.jsx(Er,{src:Pi,sx:{width:36,height:36,mr:1},alt:"Aria"}),d.jsx(ws,{primary:d.jsxs(at,{sx:{display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap"},children:[M.message,t&&M.sender==="agent"&&d.jsx(ut,{onClick:()=>J(M.message),size:"small",sx:{ml:1},children:V(M.message)})]}),primaryTypographyProps:{sx:{color:M.sender==="user"?"common.white":"text.primary",bgcolor:M.sender==="user"?"primary.main":"grey.200",borderRadius:"16px",px:2,py:1,display:"inline-block"}}}),M.sender==="user"&&d.jsx(Er,{sx:{width:36,height:36,ml:1},children:d.jsx(ud,{})})]})},A))})]}),d.jsx(xs,{}),d.jsxs(at,{sx:{p:2,pb:1,display:"flex",alignItems:"center",bgcolor:"background.paper"},children:[d.jsx(it,{fullWidth:!0,variant:"outlined",placeholder:"Type your message here...",value:l,onChange:B,disabled:v,sx:{mr:1,flexGrow:1},InputProps:{endAdornment:d.jsx(jc,{position:"end",children:d.jsxs(ut,{onClick:h?z:$,color:"primary.main","aria-label":h?"Stop recording":"Start recording",size:"large",edge:"end",disabled:v,children:[h?d.jsx(Nm,{size:"small"}):d.jsx(Lm,{size:"small"}),h&&d.jsx(_n,{size:30,sx:{color:"primary.main",position:"absolute",zIndex:1}})]})})}}),v?d.jsx(_n,{size:24}):d.jsx(kt,{variant:"contained",color:"primary",onClick:E,disabled:v||!l.trim(),endIcon:d.jsx(ra,{}),children:"Send"})]})]}),d.jsx(yo,{open:P,autoHideDuration:6e3,onClose:I,children:d.jsx(xr,{elevation:6,variant:"filled",onClose:I,severity:F,children:N})})]})]})};var Wm={},BN=Te;Object.defineProperty(Wm,"__esModule",{value:!0});var h2=Wm.default=void 0,FN=BN(je()),UN=d;h2=Wm.default=(0,FN.default)((0,UN.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2M9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9zm9 14H6V10h12zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2"}),"LockOutlined");var Hm={},WN=Te;Object.defineProperty(Hm,"__esModule",{value:!0});var m2=Hm.default=void 0,HN=WN(je()),VN=d;m2=Hm.default=(0,HN.default)((0,VN.jsx)("path",{d:"M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m-9-2V7H4v3H1v2h3v3h2v-3h3v-2zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"PersonAdd");var Vm={},qN=Te;Object.defineProperty(Vm,"__esModule",{value:!0});var Ac=Vm.default=void 0,GN=qN(je()),KN=d;Ac=Vm.default=(0,GN.default)((0,KN.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");const Py=Vt(d.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),Ey=Vt(d.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");var qm={},YN=Te;Object.defineProperty(qm,"__esModule",{value:!0});var Gm=qm.default=void 0,XN=YN(je()),QN=d;Gm=qm.default=(0,XN.default)((0,QN.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info");const lf=Ns({palette:{primary:{main:"#556cd6"},secondary:{main:"#19857b"},background:{default:"linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)",paper:"#fff"}},typography:{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif',h5:{fontWeight:600,color:"#444"},button:{textTransform:"none",fontWeight:"bold"}},components:{MuiButton:{styleOverrides:{root:{margin:"8px"}}}}}),JN=ie(En)(({theme:e})=>({marginTop:e.spacing(12),display:"flex",flexDirection:"column",alignItems:"center",padding:e.spacing(4),borderRadius:e.shape.borderRadius,boxShadow:e.shadows[10],width:"90%",maxWidth:"450px",opacity:.98,backdropFilter:"blur(10px)"}));function ZN(){const e=qo(),[t,n]=p.useState(!1),{setUser:r}=p.useContext(vr),[o,i]=p.useState(0),[a,s]=p.useState(""),[l,c]=p.useState(""),[u,f]=p.useState(!1),[h,w]=p.useState(""),[y,x]=p.useState(!1),[C,v]=p.useState(""),[m,b]=p.useState(""),[R,k]=p.useState(""),[T,P]=p.useState(""),[j,N]=p.useState(""),[O,F]=p.useState(!1),[W,U]=p.useState(!1),[G,ee]=p.useState(""),[J,re]=p.useState("info"),I=[{id:"job_search",name:"Stress from job search"},{id:"classwork",name:"Stress from classwork"},{id:"social_anxiety",name:"Social anxiety"},{id:"impostor_syndrome",name:"Impostor Syndrome"},{id:"career_drift",name:"Career Drift"}],[_,E]=p.useState([]),g=A=>{const Y=A.target.value,K=_.includes(Y)?_.filter(q=>q!==Y):[..._,Y];E(K)},$=async A=>{var Y,K;A.preventDefault(),F(!0);try{const q=await Oe.post("/api/user/login",{username:a,password:h});if(q&&q.data){const oe=q.data.userId;localStorage.setItem("token",q.data.access_token),console.log("Token stored:",localStorage.getItem("token")),ee("Login successful!"),re("success"),n(!0),r({userId:oe}),e("/"),console.log("User logged in:",oe)}else throw new Error("Invalid response from server")}catch(q){console.error("Login failed:",q),ee("Login failed: "+(((K=(Y=q.response)==null?void 0:Y.data)==null?void 0:K.msg)||"Unknown error")),re("error"),f(!0)}U(!0),F(!1)},z=async A=>{var Y,K;A.preventDefault(),F(!0);try{const q=await Oe.post("/api/user/signup",{username:a,email:l,password:h,name:C,age:m,gender:R,placeOfResidence:T,fieldOfWork:j,mental_health_concerns:_});if(q&&q.data){const oe=q.data.userId;localStorage.setItem("token",q.data.access_token),console.log("Token stored:",localStorage.getItem("token")),ee("User registered successfully!"),re("success"),n(!0),r({userId:oe}),e("/"),console.log("User registered:",oe)}else throw new Error("Invalid response from server")}catch(q){console.error("Signup failed:",q),ee(((K=(Y=q.response)==null?void 0:Y.data)==null?void 0:K.error)||"Failed to register user."),re("error")}F(!1),U(!0)},L=async A=>{var Y,K;A.preventDefault(),F(!0);try{const q=await Oe.post("/api/user/anonymous_signin");if(q&&q.data)localStorage.setItem("token",q.data.access_token),console.log("Token stored:",localStorage.getItem("token")),ee("Anonymous sign-in successful!"),re("success"),n(!0),r({userId:null}),e("/");else throw new Error("Invalid response from server")}catch(q){console.error("Anonymous sign-in failed:",q),ee("Anonymous sign-in failed: "+(((K=(Y=q.response)==null?void 0:Y.data)==null?void 0:K.msg)||"Unknown error")),re("error")}F(!1),U(!0)},B=(A,Y)=>{i(Y)},V=(A,Y)=>{Y!=="clickaway"&&U(!1)},M=()=>{x(!y)};return d.jsxs(lm,{theme:lf,children:[d.jsx(km,{}),d.jsx(at,{sx:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",background:lf.palette.background.default},children:d.jsxs(JN,{children:[d.jsxs(f2,{value:o,onChange:B,variant:"fullWidth",centered:!0,indicatorColor:"primary",textColor:"primary",children:[d.jsx(Hl,{icon:d.jsx(h2,{}),label:"Login"}),d.jsx(Hl,{icon:d.jsx(m2,{}),label:"Sign Up"}),d.jsx(Hl,{icon:d.jsx(Ac,{}),label:"Anonymous"})]}),d.jsxs(at,{sx:{mt:3,width:"100%",px:3},children:[o===0&&d.jsxs("form",{onSubmit:$,children:[d.jsx(it,{label:"Username",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:a,onChange:A=>s(A.target.value)}),d.jsx(it,{label:"Password",type:y?"text":"password",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:h,onChange:A=>w(A.target.value),InputProps:{endAdornment:d.jsx(ut,{onClick:M,edge:"end",children:y?d.jsx(Ey,{}):d.jsx(Py,{})})}}),d.jsxs(kt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,sx:{mt:2,maxWidth:"325px"},disabled:O,children:[O?d.jsx(_n,{size:24}):"Login"," "]}),u&&d.jsxs(Ie,{variant:"body2",textAlign:"center",sx:{mt:2},children:["Forgot your password? ",d.jsx(Pb,{to:"/request_reset",style:{textDecoration:"none",color:lf.palette.secondary.main},children:"Reset it here"})]})]}),o===1&&d.jsxs("form",{onSubmit:z,children:[d.jsx(it,{label:"Username",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:a,onChange:A=>s(A.target.value)}),d.jsx(it,{label:"Email",type:"email",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:l,onChange:A=>c(A.target.value)}),d.jsx(it,{label:"Password",type:y?"text":"password",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:h,onChange:A=>w(A.target.value),InputProps:{endAdornment:d.jsx(ut,{onClick:M,edge:"end",children:y?d.jsx(Ey,{}):d.jsx(Py,{})})}}),d.jsx(it,{label:"Name",variant:"outlined",margin:"normal",fullWidth:!0,value:C,onChange:A=>v(A.target.value)}),d.jsx(it,{label:"Age",type:"number",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:m,onChange:A=>b(A.target.value)}),d.jsxs(ld,{required:!0,fullWidth:!0,margin:"normal",children:[d.jsx(cd,{children:"Gender"}),d.jsxs(Us,{value:R,label:"Gender",onChange:A=>k(A.target.value),children:[d.jsx(Jn,{value:"",children:"Select Gender"}),d.jsx(Jn,{value:"male",children:"Male"}),d.jsx(Jn,{value:"female",children:"Female"}),d.jsx(Jn,{value:"other",children:"Other"})]})]}),d.jsx(it,{label:"Place of Residence",variant:"outlined",margin:"normal",fullWidth:!0,value:T,onChange:A=>P(A.target.value)}),d.jsx(it,{label:"Field of Work",variant:"outlined",margin:"normal",fullWidth:!0,value:j,onChange:A=>N(A.target.value)}),d.jsxs(i2,{sx:{marginTop:"10px"},children:[d.jsx(Ie,{variant:"body1",gutterBottom:!0,children:"Select any mental stressors you are currently experiencing to help us better tailor your therapy sessions."}),I.map(A=>d.jsx(Tm,{control:d.jsx(Rm,{checked:_.includes(A.id),onChange:g,value:A.id}),label:d.jsxs(at,{display:"flex",alignItems:"center",children:[A.name,d.jsx(Zn,{title:d.jsx(Ie,{variant:"body2",children:eD(A.id)}),arrow:!0,placement:"right",children:d.jsx(Gm,{color:"action",style:{marginLeft:4,fontSize:20}})})]})},A.id))]}),d.jsx(kt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,sx:{mt:2},disabled:O,children:O?d.jsx(_n,{size:24}):"Sign Up"})]}),o===2&&d.jsx("form",{onSubmit:L,children:d.jsx(kt,{type:"submit",variant:"outlined",color:"secondary",fullWidth:!0,sx:{mt:2},disabled:O,children:O?d.jsx(_n,{size:24}):"Anonymous Sign-In"})})]}),d.jsx(yo,{open:W,autoHideDuration:6e3,onClose:V,children:d.jsx(xr,{onClose:V,severity:J,sx:{width:"100%"},children:G})})]})})]})}function eD(e){switch(e){case"job_search":return"Feelings of stress stemming from the job search process.";case"classwork":return"Stress related to managing coursework and academic responsibilities.";case"social_anxiety":return"Anxiety experienced during social interactions or in anticipation of social interactions.";case"impostor_syndrome":return"Persistent doubt concerning one's abilities or accomplishments coupled with a fear of being exposed as a fraud.";case"career_drift":return"Stress from uncertainty or dissatisfaction with one's career path or progress.";default:return"No description available."}}var Km={},tD=Te;Object.defineProperty(Km,"__esModule",{value:!0});var g2=Km.default=void 0,nD=tD(je()),rD=d;g2=Km.default=(0,nD.default)((0,rD.jsx)("path",{d:"M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"}),"VpnKey");var Ym={},oD=Te;Object.defineProperty(Ym,"__esModule",{value:!0});var v2=Ym.default=void 0,iD=oD(je()),aD=d;v2=Ym.default=(0,iD.default)((0,aD.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");const Ty=Ns({palette:{primary:{main:"#3F51B5"},secondary:{main:"#F6AE2D"}}}),sD=()=>{const{changePassword:e}=p.useContext(vr),[t,n]=p.useState(""),[r,o]=p.useState(""),[i,a]=p.useState(!1),[s,l]=p.useState(""),[c,u]=p.useState("success"),{userId:f}=$s(),h=async w=>{w.preventDefault();const y=await e(f,t,r);l(y.message),u(y.success?"success":"error"),a(!0)};return d.jsx(lm,{theme:Ty,children:d.jsx(e2,{component:"main",maxWidth:"xs",sx:{background:"#fff",borderRadius:"8px",boxShadow:"0px 2px 4px rgba(0,0,0,0.2)"},children:d.jsxs(at,{sx:{marginTop:8,display:"flex",flexDirection:"column",alignItems:"center"},children:[d.jsx(Ie,{component:"h1",variant:"h5",children:"Update Password"}),d.jsxs("form",{onSubmit:h,style:{width:"100%",marginTop:Ty.spacing(1)},children:[d.jsx(it,{variant:"outlined",margin:"normal",required:!0,fullWidth:!0,id:"current-password",label:"Current Password",name:"currentPassword",autoComplete:"current-password",type:"password",value:t,onChange:w=>n(w.target.value),InputProps:{startAdornment:d.jsx(v2,{color:"primary",style:{marginRight:"10px"}})}}),d.jsx(it,{variant:"outlined",margin:"normal",required:!0,fullWidth:!0,id:"new-password",label:"New Password",name:"newPassword",autoComplete:"new-password",type:"password",value:r,onChange:w=>o(w.target.value),InputProps:{startAdornment:d.jsx(g2,{color:"secondary",style:{marginRight:"10px"}})}}),d.jsx(kt,{type:"submit",fullWidth:!0,variant:"contained",color:"primary",sx:{mt:3,mb:2},children:"Update Password"})]}),d.jsx(yo,{open:i,autoHideDuration:6e3,onClose:()=>a(!1),children:d.jsx(xr,{onClose:()=>a(!1),severity:c,sx:{width:"100%"},children:s})})]})})})};var Xm={},lD=Te;Object.defineProperty(Xm,"__esModule",{value:!0});var y2=Xm.default=void 0,cD=lD(je()),uD=d;y2=Xm.default=(0,cD.default)((0,uD.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"}),"Email");var Qm={},dD=Te;Object.defineProperty(Qm,"__esModule",{value:!0});var x2=Qm.default=void 0,fD=dD(je()),pD=d;x2=Qm.default=(0,fD.default)((0,pD.jsx)("path",{d:"M12 6c1.11 0 2-.9 2-2 0-.38-.1-.73-.29-1.03L12 0l-1.71 2.97c-.19.3-.29.65-.29 1.03 0 1.1.9 2 2 2m4.6 9.99-1.07-1.07-1.08 1.07c-1.3 1.3-3.58 1.31-4.89 0l-1.07-1.07-1.09 1.07C6.75 16.64 5.88 17 4.96 17c-.73 0-1.4-.23-1.96-.61V21c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-4.61c-.56.38-1.23.61-1.96.61-.92 0-1.79-.36-2.44-1.01M18 9h-5V7h-2v2H6c-1.66 0-3 1.34-3 3v1.54c0 1.08.88 1.96 1.96 1.96.52 0 1.02-.2 1.38-.57l2.14-2.13 2.13 2.13c.74.74 2.03.74 2.77 0l2.14-2.13 2.13 2.13c.37.37.86.57 1.38.57 1.08 0 1.96-.88 1.96-1.96V12C21 10.34 19.66 9 18 9"}),"Cake");var Jm={},hD=Te;Object.defineProperty(Jm,"__esModule",{value:!0});var b2=Jm.default=void 0,mD=hD(je()),gD=d;b2=Jm.default=(0,mD.default)((0,gD.jsx)("path",{d:"M5.5 22v-7.5H4V9c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2v5.5H9.5V22zM18 22v-6h3l-2.54-7.63C18.18 7.55 17.42 7 16.56 7h-.12c-.86 0-1.63.55-1.9 1.37L12 16h3v6zM7.5 6c1.11 0 2-.89 2-2s-.89-2-2-2-2 .89-2 2 .89 2 2 2m9 0c1.11 0 2-.89 2-2s-.89-2-2-2-2 .89-2 2 .89 2 2 2"}),"Wc");var Zm={},vD=Te;Object.defineProperty(Zm,"__esModule",{value:!0});var w2=Zm.default=void 0,yD=vD(je()),xD=d;w2=Zm.default=(0,yD.default)((0,xD.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home");var eg={},bD=Te;Object.defineProperty(eg,"__esModule",{value:!0});var S2=eg.default=void 0,wD=bD(je()),SD=d;S2=eg.default=(0,wD.default)((0,SD.jsx)("path",{d:"M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-6 0h-4V4h4z"}),"Work");var tg={},CD=Te;Object.defineProperty(tg,"__esModule",{value:!0});var ng=tg.default=void 0,RD=CD(je()),kD=d;ng=tg.default=(0,RD.default)((0,kD.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 4c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6m0 14c-2.03 0-4.43-.82-6.14-2.88C7.55 15.8 9.68 15 12 15s4.45.8 6.14 2.12C16.43 19.18 14.03 20 12 20"}),"AccountCircle");var rg={},PD=Te;Object.defineProperty(rg,"__esModule",{value:!0});var C2=rg.default=void 0,ED=PD(je()),TD=d;C2=rg.default=(0,ED.default)((0,TD.jsx)("path",{d:"M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8z"}),"Update");const $D=ie(f2)({background:"#fff",borderRadius:"8px",boxShadow:"0 2px 4px rgba(0,0,0,0.1)",margin:"20px 0",maxWidth:"100%",overflow:"hidden"}),$y=ie(Hl)({fontSize:"1rem",fontWeight:"bold",color:"#3F51B5",marginRight:"4px",marginLeft:"4px",flex:1,maxWidth:"none","&.Mui-selected":{color:"#F6AE2D",background:"#e0e0e0"},"&:hover":{background:"#f4f4f4",transition:"background-color 0.3s"},"@media (max-width: 720px)":{padding:"6px 12px",fontSize:"0.8rem"}}),MD=Ns({palette:{primary:{main:"#3F51B5"},secondary:{main:"#F6AE2D"},background:{default:"#e0e0e0"}},typography:{fontFamily:'"Open Sans", "Helvetica", "Arial", sans-serif',button:{textTransform:"none",fontWeight:"bold"}},components:{MuiButton:{styleOverrides:{root:{boxShadow:"none",borderRadius:8,"&:hover":{boxShadow:"0px 2px 4px rgba(0,0,0,0.2)"}}}},MuiPaper:{styleOverrides:{root:{padding:"20px",borderRadius:"10px",boxShadow:"0px 4px 12px rgba(0,0,0,0.1)"}}}}}),jD=ie(En)(({theme:e})=>({marginTop:e.spacing(2),padding:e.spacing(2),display:"flex",flexDirection:"column",alignItems:"center",gap:e.spacing(2),boxShadow:e.shadows[3]}));function OD(){const{userId:e}=$s(),[t,n]=p.useState({username:"",name:"",email:"",age:"",gender:"",placeOfResidence:"",fieldOfWork:"",mental_health_concerns:[]}),[r,o]=p.useState(0),i=(v,m)=>{o(m)},[a,s]=p.useState(""),[l,c]=p.useState(!1),[u,f]=p.useState("info");p.useEffect(()=>{if(!e){console.error("User ID is undefined");return}(async()=>{try{const m=await Oe.get(`/api/user/profile/${e}`);console.log("Fetched data:",m.data);const b={username:m.data.username||"",name:m.data.name||"",email:m.data.email||"",age:m.data.age||"",gender:m.data.gender||"",placeOfResidence:m.data.placeOfResidence||"Not specified",fieldOfWork:m.data.fieldOfWork||"Not specified",mental_health_concerns:m.data.mental_health_concerns||[]};console.log("Formatted data:",b),n(b)}catch{s("Failed to fetch user data"),f("error"),c(!0)}})()},[e]);const h=[{label:"Stress from Job Search",value:"job_search"},{label:"Stress from Classwork",value:"classwork"},{label:"Social Anxiety",value:"social_anxiety"},{label:"Impostor Syndrome",value:"impostor_syndrome"},{label:"Career Drift",value:"career_drift"}];console.log("current mental health concerns: ",t.mental_health_concerns);const w=v=>{const{name:m,checked:b}=v.target;n(R=>{const k=b?[...R.mental_health_concerns,m]:R.mental_health_concerns.filter(T=>T!==m);return{...R,mental_health_concerns:k}})},y=v=>{const{name:m,value:b}=v.target;n(R=>({...R,[m]:b}))},x=async v=>{v.preventDefault();try{await Oe.patch(`/api/user/profile/${e}`,t),s("Profile updated successfully!"),f("success")}catch{s("Failed to update profile"),f("error")}c(!0)},C=()=>{c(!1)};return d.jsxs(lm,{theme:MD,children:[d.jsx(km,{}),d.jsxs(e2,{component:"main",maxWidth:"md",children:[d.jsxs($D,{value:r,onChange:i,centered:!0,children:[d.jsx($y,{label:"Profile"}),d.jsx($y,{label:"Update Password"})]}),r===0&&d.jsxs(jD,{component:"form",onSubmit:x,sx:{maxHeight:"81vh",overflow:"auto"},children:[d.jsxs(Ie,{variant:"h5",style:{fontWeight:700},children:[d.jsx(ng,{style:{marginRight:"10px"}})," ",t.username]}),d.jsx(it,{fullWidth:!0,label:"Name",variant:"outlined",name:"name",value:t.name||"",onChange:y,InputProps:{startAdornment:d.jsx(ut,{position:"start",children:d.jsx(ud,{})})}}),d.jsx(it,{fullWidth:!0,label:"Email",variant:"outlined",name:"email",value:t.email||"",onChange:y,InputProps:{startAdornment:d.jsx(ut,{position:"start",children:d.jsx(y2,{})})}}),d.jsx(it,{fullWidth:!0,label:"Age",variant:"outlined",name:"age",type:"number",value:t.age||"",onChange:y,InputProps:{startAdornment:d.jsx(ut,{children:d.jsx(x2,{})})}}),d.jsxs(ld,{fullWidth:!0,children:[d.jsx(cd,{children:"Gender"}),d.jsxs(Us,{name:"gender",value:t.gender||"",label:"Gender",onChange:y,startAdornment:d.jsx(ut,{children:d.jsx(b2,{})}),children:[d.jsx(Jn,{value:"male",children:"Male"}),d.jsx(Jn,{value:"female",children:"Female"}),d.jsx(Jn,{value:"other",children:"Other"})]})]}),d.jsx(it,{fullWidth:!0,label:"Place of Residence",variant:"outlined",name:"placeOfResidence",value:t.placeOfResidence||"",onChange:y,InputProps:{startAdornment:d.jsx(ut,{children:d.jsx(w2,{})})}}),d.jsx(it,{fullWidth:!0,label:"Field of Work",variant:"outlined",name:"fieldOfWork",value:t.fieldOfWork||"",onChange:y,InputProps:{startAdornment:d.jsx(ut,{position:"start",children:d.jsx(S2,{})})}}),d.jsx(i2,{children:h.map((v,m)=>(console.log(`Is "${v.label}" checked?`,t.mental_health_concerns.includes(v.value)),d.jsx(Tm,{control:d.jsx(Rm,{checked:t.mental_health_concerns.includes(v.value),onChange:w,name:v.value}),label:d.jsxs(at,{display:"flex",alignItems:"center",children:[v.label,d.jsx(Zn,{title:d.jsx(Ie,{variant:"body2",children:ID(v.value)}),arrow:!0,placement:"right",children:d.jsx(Gm,{color:"action",style:{marginLeft:4,fontSize:20}})})]})},m)))}),d.jsxs(kt,{type:"submit",color:"primary",variant:"contained",children:[d.jsx(C2,{style:{marginRight:"10px"}}),"Update Profile"]})]}),r===1&&d.jsx(sD,{userId:e}),d.jsx(yo,{open:l,autoHideDuration:6e3,onClose:C,children:d.jsx(xr,{onClose:C,severity:u,sx:{width:"100%"},children:a})})]})]})}function ID(e){switch(e){case"job_search":return"Feelings of stress stemming from the job search process.";case"classwork":return"Stress related to managing coursework and academic responsibilities.";case"social_anxiety":return"Anxiety experienced during social interactions or in anticipation of social interactions.";case"impostor_syndrome":return"Persistent doubt concerning one's abilities or accomplishments coupled with a fear of being exposed as a fraud.";case"career_drift":return"Stress from uncertainty or dissatisfaction with one's career path or progress.";default:return"No description available."}}var og={},_D=Te;Object.defineProperty(og,"__esModule",{value:!0});var R2=og.default=void 0,LD=_D(je()),My=d;R2=og.default=(0,LD.default)([(0,My.jsx)("path",{d:"M22 9 12 2 2 9h9v13h2V9z"},"0"),(0,My.jsx)("path",{d:"m4.14 12-1.96.37.82 4.37V22h2l.02-4H7v4h2v-6H4.9zm14.96 4H15v6h2v-4h1.98l.02 4h2v-5.26l.82-4.37-1.96-.37z"},"1")],"Deck");var ig={},AD=Te;Object.defineProperty(ig,"__esModule",{value:!0});var k2=ig.default=void 0,ND=AD(je()),DD=d;k2=ig.default=(0,ND.default)((0,DD.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5m-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11m3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5"}),"InsertEmoticon");var ag={},zD=Te;Object.defineProperty(ag,"__esModule",{value:!0});var sg=ag.default=void 0,BD=zD(je()),FD=d;sg=ag.default=(0,BD.default)((0,FD.jsx)("path",{d:"M19 5v14H5V5zm1.1-2H3.9c-.5 0-.9.4-.9.9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9M11 7h6v2h-6zm0 4h6v2h-6zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7z"}),"ListAlt");var lg={},UD=Te;Object.defineProperty(lg,"__esModule",{value:!0});var P2=lg.default=void 0,WD=UD(je()),HD=d;P2=lg.default=(0,WD.default)((0,HD.jsx)("path",{d:"M10.09 15.59 11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"ExitToApp");var cg={},VD=Te;Object.defineProperty(cg,"__esModule",{value:!0});var E2=cg.default=void 0,qD=VD(je()),GD=d;E2=cg.default=(0,qD.default)((0,GD.jsx)("path",{d:"M16.53 11.06 15.47 10l-4.88 4.88-2.12-2.12-1.06 1.06L10.59 17zM19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V8h14z"}),"EventAvailable");var ug={},KD=Te;Object.defineProperty(ug,"__esModule",{value:!0});var T2=ug.default=void 0,YD=KD(je()),jy=d;T2=ug.default=(0,YD.default)([(0,jy.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,jy.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"Schedule");var dg={},XD=Te;Object.defineProperty(dg,"__esModule",{value:!0});var $2=dg.default=void 0,QD=XD(je()),JD=d;$2=dg.default=(0,QD.default)((0,JD.jsx)("path",{d:"m22.69 18.37 1.14-1-1-1.73-1.45.49c-.32-.27-.68-.48-1.08-.63L20 14h-2l-.3 1.49c-.4.15-.76.36-1.08.63l-1.45-.49-1 1.73 1.14 1c-.08.5-.08.76 0 1.26l-1.14 1 1 1.73 1.45-.49c.32.27.68.48 1.08.63L18 24h2l.3-1.49c.4-.15.76-.36 1.08-.63l1.45.49 1-1.73-1.14-1c.08-.51.08-.77 0-1.27M19 21c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2M11 7v5.41l2.36 2.36 1.04-1.79-1.4-1.39V7zm10 5c0-4.97-4.03-9-9-9-2.83 0-5.35 1.32-7 3.36V4H3v6h6V8H6.26C7.53 6.19 9.63 5 12 5c3.86 0 7 3.14 7 7zm-10.14 6.91c-2.99-.49-5.35-2.9-5.78-5.91H3.06c.5 4.5 4.31 8 8.94 8h.07z"}),"ManageHistory");const Oy=230;function ZD(){const{logout:e,user:t}=p.useContext(vr),n=ho(),r=i=>n.pathname===i,o=[{text:"Mind Chat",icon:d.jsx(R2,{}),path:"/"},...t!=null&&t.userId?[{text:"Track Your Vibes",icon:d.jsx(k2,{}),path:"/user/mood_logging"},{text:"Mood Logs",icon:d.jsx(sg,{}),path:"/user/mood_logs"},{text:"Schedule Check-In",icon:d.jsx(T2,{}),path:"/user/check_in"},{text:"Check-In Reporting",icon:d.jsx(E2,{}),path:`/user/check_ins/${t==null?void 0:t.userId}`},{text:"Chat Log Manager",icon:d.jsx($2,{}),path:"/user/chat_log_Manager"}]:[]];return d.jsx(WI,{sx:{width:Oy,flexShrink:0,mt:8,"& .MuiDrawer-paper":{width:Oy,boxSizing:"border-box",position:"relative",height:"91vh",top:0,overflowX:"hidden",borderRadius:2,boxShadow:1}},variant:"permanent",anchor:"left",children:d.jsxs(Fs,{children:[o.map(i=>d.jsx(VP,{to:i.path,style:{textDecoration:"none",color:"inherit"},children:d.jsxs(Oc,{button:!0,sx:{backgroundColor:r(i.path)?"rgba(25, 118, 210, 0.5)":"inherit","&:hover":{bgcolor:"grey.200"}},children:[d.jsx(dy,{children:i.icon}),d.jsx(ws,{primary:i.text})]})},i.text)),d.jsxs(Oc,{button:!0,onClick:e,children:[d.jsx(dy,{children:d.jsx(P2,{})}),d.jsx(ws,{primary:"Logout"})]})]})})}var fg={},e6=Te;Object.defineProperty(fg,"__esModule",{value:!0});var M2=fg.default=void 0,t6=e6(je()),n6=d;M2=fg.default=(0,t6.default)((0,n6.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");var pg={},r6=Te;Object.defineProperty(pg,"__esModule",{value:!0});var j2=pg.default=void 0,o6=r6(je()),i6=d;j2=pg.default=(0,o6.default)((0,i6.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2m6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1z"}),"Notifications");var hg={},a6=Te;Object.defineProperty(hg,"__esModule",{value:!0});var O2=hg.default=void 0,s6=a6(je()),l6=d;O2=hg.default=(0,s6.default)((0,l6.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel");function c6({toggleSidebar:e}){const{incrementNotificationCount:t,notifications:n,addNotification:r,removeNotification:o}=p.useContext(vr),i=qo(),{user:a}=p.useContext(vr),[s,l]=p.useState(null),c=localStorage.getItem("token"),u=a==null?void 0:a.userId;console.log("User ID:",u),p.useEffect(()=>{u?f():console.error("No user ID available from URL parameters.")},[u]);const f=async()=>{if(!u){console.error("User ID is missing in context");return}try{const C=(await Oe.get(`/api/check-in/missed?user_id=${u}`,{headers:{Authorization:`Bearer ${c}`}})).data;console.log("Missed check-ins:",C),C.length>0?C.forEach(v=>{r({title:`Missed Check-in on ${new Date(v.check_in_time).toLocaleString()}`,message:"Please complete your check-in."})}):r({title:"You have no missed check-ins.",message:""})}catch(x){console.error("Failed to fetch missed check-ins:",x),r({title:"Failed to fetch missed check-ins. Please check the console for more details.",message:""})}},h=x=>{l(x.currentTarget)},w=x=>{l(null),o(x)},y=()=>{a&&a.userId?i(`/user/profile/${a.userId}`):console.error("User ID not found")};return p.useEffect(()=>{const x=C=>{C.data&&C.data.msg==="updateCount"&&(console.log("Received message from service worker:",C.data),r({title:C.data.title,message:C.data.body}),t())};return navigator.serviceWorker.addEventListener("message",x),()=>{navigator.serviceWorker.removeEventListener("message",x)}},[]),d.jsx(kM,{position:"fixed",sx:{zIndex:x=>x.zIndex.drawer+1},children:d.jsxs(UA,{children:[d.jsx(ut,{onClick:e,color:"inherit",edge:"start",sx:{marginRight:2},children:d.jsx(M2,{})}),d.jsx(Ie,{variant:"h6",noWrap:!0,component:"div",sx:{flexGrow:1},children:"Dashboard"}),(a==null?void 0:a.userId)&&d.jsx(ut,{color:"inherit",onClick:h,children:d.jsx(a3,{badgeContent:n.length,color:"secondary",children:d.jsx(j2,{})})}),d.jsx(c2,{anchorEl:s,open:!!s,onClose:()=>w(null),children:n.map((x,C)=>d.jsx(Jn,{onClick:()=>w(C),sx:{whiteSpace:"normal",maxWidth:350,padding:1},children:d.jsxs(ad,{elevation:2,sx:{display:"flex",alignItems:"center",width:"100%"},children:[d.jsx(O2,{color:"error"}),d.jsxs(Cm,{sx:{flex:"1 1 auto"},children:[d.jsx(Ie,{variant:"subtitle1",sx:{fontWeight:"bold"},children:x.title}),d.jsx(Ie,{variant:"body2",color:"text.secondary",children:x.message})]})]})},C))}),(a==null?void 0:a.userId)&&d.jsx(ut,{color:"inherit",onClick:y,children:d.jsx(ng,{})})]})})}var mg={},u6=Te;Object.defineProperty(mg,"__esModule",{value:!0});var I2=mg.default=void 0,d6=u6(je()),f6=d;I2=mg.default=(0,d6.default)((0,f6.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M17 13l-5 5-5-5h3V9h4v4z"}),"CloudDownload");var gg={},p6=Te;Object.defineProperty(gg,"__esModule",{value:!0});var Lp=gg.default=void 0,h6=p6(je()),m6=d;Lp=gg.default=(0,h6.default)((0,m6.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"DeleteForever");var vg={},g6=Te;Object.defineProperty(vg,"__esModule",{value:!0});var _2=vg.default=void 0,v6=g6(je()),y6=d;_2=vg.default=(0,v6.default)((0,y6.jsx)("path",{d:"M9 11H7v2h2zm4 0h-2v2h2zm4 0h-2v2h2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 16H5V9h14z"}),"DateRange");const x6=ie(En)(({theme:e})=>({padding:e.spacing(3),borderRadius:e.shape.borderRadius,boxShadow:1,maxWidth:"100%",margin:"auto",marginTop:e.spacing(2),backgroundColor:"#fff",overflow:"auto"})),wl=ie(kt)(({theme:e})=>({margin:e.spacing(0),paddingLeft:e.spacing(1),paddingRight:e.spacing(3)}));function b6(){const[e,t]=nn.useState(!1),[n,r]=p.useState(!1),[o,i]=nn.useState(""),[a,s]=nn.useState("info"),[l,c]=p.useState(!1),[u,f]=p.useState(""),[h,w]=p.useState(""),[y,x]=p.useState(!1),C=(k,T)=>{T!=="clickaway"&&t(!1)},v=()=>{r(!1)},m=k=>{x(k),r(!0)},b=async(k=!1)=>{var T,P;c(!0);try{const j=k?"/api/user/download_chat_logs/range":"/api/user/download_chat_logs",N=k?{params:{start_date:u,end_date:h}}:{},O=await Oe.get(j,{...N,headers:{Authorization:`Bearer ${localStorage.getItem("token")}`},responseType:"blob"}),F=window.URL.createObjectURL(new Blob([O.data])),W=document.createElement("a");W.href=F,W.setAttribute("download",k?"chat_logs_range.csv":"chat_logs.csv"),document.body.appendChild(W),W.click(),i("Chat logs downloaded successfully."),s("success")}catch(j){i(`Failed to download chat logs: ${((P=(T=j.response)==null?void 0:T.data)==null?void 0:P.error)||j.message}`),s("error")}finally{c(!1)}t(!0)},R=async()=>{var k,T;r(!1),c(!0);try{const P=y?"/api/user/delete_chat_logs/range":"/api/user/delete_chat_logs",j=y?{params:{start_date:u,end_date:h}}:{},N=await Oe.delete(P,{...j,headers:{Authorization:`Bearer ${localStorage.getItem("token")}`}});i(N.data.message),s("success")}catch(P){i(`Failed to delete chat logs: ${((T=(k=P.response)==null?void 0:k.data)==null?void 0:T.error)||P.message}`),s("error")}finally{c(!1)}t(!0)};return d.jsxs(x6,{sx:{height:"91vh"},children:[d.jsx(Ie,{variant:"h4",gutterBottom:!0,children:"Manage Your Chat Logs"}),d.jsx(Ie,{variant:"body1",paragraph:!0,children:"Manage your chat logs efficiently by downloading or deleting entries for specific dates or entire ranges. Please be cautious as deletion is permanent."}),d.jsxs("div",{style:{display:"flex",justifyContent:"center",flexDirection:"column",alignItems:"center",gap:20},children:[d.jsxs("div",{style:{display:"flex",gap:10,marginBottom:20},children:[d.jsx(it,{label:"Start Date",type:"date",value:u,onChange:k=>f(k.target.value),InputLabelProps:{shrink:!0}}),d.jsx(it,{label:"End Date",type:"date",value:h,onChange:k=>w(k.target.value),InputLabelProps:{shrink:!0}})]}),d.jsx(Ie,{variant:"body1",paragraph:!0,children:"Here you can download your chat logs as a CSV file, which includes details like chat IDs, content, type, and additional information for each session."}),d.jsx(Zn,{title:"Download chat logs for selected date range",children:d.jsx(wl,{variant:"outlined",startIcon:d.jsx(_2,{}),onClick:()=>b(!0),disabled:l||!u||!h,children:l?d.jsx(_n,{size:24,color:"inherit"}):"Download Range"})}),d.jsx(Zn,{title:"Download your chat logs as a CSV file",children:d.jsx(wl,{variant:"contained",color:"primary",startIcon:d.jsx(I2,{}),onClick:()=>b(!1),disabled:l,children:l?d.jsx(_n,{size:24,color:"inherit"}):"Download Chat Logs"})}),d.jsx(Ie,{variant:"body1",paragraph:!0,children:"If you need to clear your history for privacy or other reasons, you can also permanently delete your chat logs from the server."}),d.jsx(Zn,{title:"Delete chat logs for selected date range",children:d.jsx(wl,{variant:"outlined",color:"warning",startIcon:d.jsx(Lp,{}),onClick:()=>m(!0),disabled:l||!u||!h,children:l?d.jsx(_n,{size:24,color:"inherit"}):"Delete Range"})}),d.jsx(Zn,{title:"Permanently delete all your chat logs",children:d.jsx(wl,{variant:"contained",color:"secondary",startIcon:d.jsx(Lp,{}),onClick:()=>m(!1),disabled:l,children:l?d.jsx(_n,{size:24,color:"inherit"}):"Delete Chat Logs"})}),d.jsx(Ie,{variant:"body1",paragraph:!0,children:"Please use these options carefully as deleting your chat logs is irreversible."})]}),d.jsxs(Mp,{open:n,onClose:v,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[d.jsx(Ip,{id:"alert-dialog-title",children:"Confirm Deletion"}),d.jsx(Op,{children:d.jsx(n2,{id:"alert-dialog-description",children:"Are you sure you want to delete these chat logs? This action cannot be undone."})}),d.jsxs(jp,{children:[d.jsx(kt,{onClick:v,color:"primary",children:"Cancel"}),d.jsx(kt,{onClick:()=>R(),color:"secondary",autoFocus:!0,children:"Confirm"})]})]}),d.jsx(yo,{open:e,autoHideDuration:6e3,onClose:C,children:d.jsx(xr,{onClose:C,severity:a,sx:{width:"100%"},children:o})})]})}const Iy=()=>{const{user:e,voiceEnabled:t}=p.useContext(vr),n=e==null?void 0:e.userId,[r,o]=p.useState(0),[i,a]=p.useState(0),[s,l]=p.useState(""),[c,u]=p.useState([]),[f,h]=p.useState(!1),[w,y]=p.useState(null),x=p.useRef([]),[C,v]=p.useState(!1),[m,b]=p.useState(!1),[R,k]=p.useState(""),[T,P]=p.useState("info"),[j,N]=p.useState(null),O=_=>{if(!t||_===j){N(null),window.speechSynthesis.cancel();return}const E=window.speechSynthesis,g=new SpeechSynthesisUtterance(_),$=E.getVoices();console.log($.map(L=>`${L.name} - ${L.lang} - ${L.gender}`));const z=$.find(L=>L.name.includes("Microsoft Zira - English (United States)"));z?g.voice=z:console.log("No female voice found"),g.onend=()=>{N(null)},N(_),E.speak(g)},F=(_,E)=>{E!=="clickaway"&&b(!1)},W=p.useCallback(async()=>{if(r!==null){v(!0);try{const _=await fetch(`/api/ai/mental_health/finalize/${n}/${r}`,{method:"POST",headers:{"Content-Type":"application/json"}}),E=await _.json();_.ok?(k("Chat finalized successfully"),P("success"),o(null),a(0),u([])):(k("Failed to finalize chat"),P("error"))}catch{k("Error finalizing chat"),P("error")}finally{v(!1),b(!0)}}},[n,r]),U=p.useCallback(async()=>{if(s.trim()){console.log(r),v(!0);try{const _=JSON.stringify({prompt:s,turn_id:i}),E=await fetch(`/api/ai/mental_health/${n}/${r}`,{method:"POST",headers:{"Content-Type":"application/json"},body:_}),g=await E.json();console.log(g),E.ok?(u($=>[...$,{message:s,sender:"user"},{message:g,sender:"agent"}]),a($=>$+1),l("")):(console.error("Failed to send message:",g),k(g.error||"An error occurred while sending the message."),P("error"),b(!0))}catch(_){console.error("Failed to send message:",_),k("Network or server error occurred."),P("error"),b(!0)}finally{v(!1)}}},[s,n,r,i]),G=()=>{navigator.mediaDevices.getUserMedia({audio:!0}).then(_=>{x.current=[];const E={mimeType:"audio/webm"},g=new MediaRecorder(_,E);g.ondataavailable=$=>{console.log("Data available:",$.data.size),x.current.push($.data)},g.start(),y(g),h(!0)}).catch(console.error)},ee=()=>{w&&(w.onstop=()=>{J(x.current),h(!1),y(null)},w.stop())},J=_=>{console.log("Audio chunks size:",_.reduce(($,z)=>$+z.size,0));const E=new Blob(_,{type:"audio/webm"});if(E.size===0){console.error("Audio Blob is empty");return}console.log(`Sending audio blob of size: ${E.size} bytes`);const g=new FormData;g.append("audio",E),v(!0),Oe.post("/api/ai/mental_health/voice-to-text",g,{headers:{"Content-Type":"multipart/form-data"}}).then($=>{const{message:z}=$.data;l(z),U()}).catch($=>{console.error("Error uploading audio:",$),b(!0),k("Error processing voice input: "+$.message),P("error")}).finally(()=>{v(!1)})},re=p.useCallback(_=>{l(_.target.value)},[]),I=_=>_===j?d.jsx(Lc,{}):d.jsx(_c,{});return d.jsxs(d.Fragment,{children:[d.jsx("style",{children:` + `}),d.jsxs(at,{sx:{maxWidth:"100%",mx:"auto",my:2,display:"flex",flexDirection:"column",height:"91vh",borderRadius:2,boxShadow:1},children:[d.jsxs(ad,{sx:{display:"flex",flexDirection:"column",height:"100%",borderRadius:2,boxShadow:3},children:[d.jsxs(Cm,{sx:{flexGrow:1,overflow:"auto",padding:3,position:"relative"},children:[d.jsxs(at,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",position:"relative",marginBottom:"5px"},children:[d.jsx(Zn,{title:"Toggle voice responses",children:d.jsx(ut,{color:"inherit",onClick:ee,sx:{padding:0},children:d.jsx(IA,{checked:t,onChange:M=>n(M.target.checked),icon:d.jsx(Lc,{}),checkedIcon:d.jsx(_c,{}),inputProps:{"aria-label":"Voice response toggle"},color:"default",sx:{height:42,"& .MuiSwitch-switchBase":{padding:"9px"},"& .MuiSwitch-switchBase.Mui-checked":{color:"white",transform:"translateX(16px)","& + .MuiSwitch-track":{backgroundColor:"primary.main"}}}})})}),d.jsx(Zn,{title:"Start a new chat",placement:"top",arrow:!0,children:d.jsx(ut,{"aria-label":"new chat",color:"primary",onClick:_,disabled:v,sx:{"&:hover":{backgroundColor:"primary.main",color:"common.white"}},children:d.jsx(Um,{})})})]}),d.jsx(xs,{sx:{marginBottom:"10px"}}),b.length===0&&d.jsxs(at,{sx:{display:"flex",marginBottom:2,marginTop:3},children:[d.jsx(Er,{src:Pi,sx:{width:44,height:44,marginRight:2},alt:"Aria"}),d.jsx(Ie,{variant:"h4",component:"h1",gutterBottom:!0,children:"Welcome to Mental Health Companion"})]}),k?d.jsx(DN,{}):u.length===0&&d.jsxs(at,{sx:{display:"flex"},children:[d.jsx(Er,{src:Pi,sx:{width:36,height:36,marginRight:1},alt:"Aria"}),d.jsxs(Ie,{variant:"body1",gutterBottom:!0,sx:{bgcolor:"grey.200",borderRadius:"16px",px:2,py:1,display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap"},children:[b,t&&b&&d.jsx(ut,{onClick:()=>J(b),size:"small",sx:{ml:1},children:V(b)})]})]}),d.jsx(Fs,{sx:{maxHeight:"100%",overflow:"auto"},children:u.map((M,A)=>d.jsx(Oc,{sx:{display:"flex",flexDirection:"column",alignItems:M.sender==="user"?"flex-end":"flex-start",borderRadius:2,mb:.5,p:1,border:"none","&:before":{display:"none"},"&:after":{display:"none"}},children:d.jsxs(at,{sx:{display:"flex",alignItems:"center",color:M.sender==="user"?"common.white":"text.primary",borderRadius:"16px"},children:[M.sender==="agent"&&d.jsx(Er,{src:Pi,sx:{width:36,height:36,mr:1},alt:"Aria"}),d.jsx(ws,{primary:d.jsxs(at,{sx:{display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap"},children:[M.message,t&&M.sender==="agent"&&d.jsx(ut,{onClick:()=>J(M.message),size:"small",sx:{ml:1},children:V(M.message)})]}),primaryTypographyProps:{sx:{color:M.sender==="user"?"common.white":"text.primary",bgcolor:M.sender==="user"?"primary.main":"grey.200",borderRadius:"16px",px:2,py:1,display:"inline-block"}}}),M.sender==="user"&&d.jsx(Er,{sx:{width:36,height:36,ml:1},children:d.jsx(ud,{})})]})},A))})]}),d.jsx(xs,{}),d.jsxs(at,{sx:{p:2,pb:1,display:"flex",alignItems:"center",bgcolor:"background.paper"},children:[d.jsx(it,{fullWidth:!0,variant:"outlined",placeholder:"Type your message here...",value:l,onChange:B,disabled:v,sx:{mr:1,flexGrow:1},InputProps:{endAdornment:d.jsx(jc,{position:"end",children:d.jsxs(ut,{onClick:h?z:$,color:"primary.main","aria-label":h?"Stop recording":"Start recording",size:"large",edge:"end",disabled:v,children:[h?d.jsx(Nm,{size:"small"}):d.jsx(Lm,{size:"small"}),h&&d.jsx(_n,{size:30,sx:{color:"primary.main",position:"absolute",zIndex:1}})]})})}}),v?d.jsx(_n,{size:24}):d.jsx(kt,{variant:"contained",color:"primary",onClick:E,disabled:v||!l.trim(),endIcon:d.jsx(ra,{}),children:"Send"})]})]}),d.jsx(yo,{open:P,autoHideDuration:6e3,onClose:I,children:d.jsx(xr,{elevation:6,variant:"filled",onClose:I,severity:F,children:N})})]})]})};var Wm={},BN=Te;Object.defineProperty(Wm,"__esModule",{value:!0});var h2=Wm.default=void 0,FN=BN(je()),UN=d;h2=Wm.default=(0,FN.default)((0,UN.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2M9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9zm9 14H6V10h12zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2"}),"LockOutlined");var Hm={},WN=Te;Object.defineProperty(Hm,"__esModule",{value:!0});var m2=Hm.default=void 0,HN=WN(je()),VN=d;m2=Hm.default=(0,HN.default)((0,VN.jsx)("path",{d:"M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m-9-2V7H4v3H1v2h3v3h2v-3h3v-2zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"PersonAdd");var Vm={},qN=Te;Object.defineProperty(Vm,"__esModule",{value:!0});var Ac=Vm.default=void 0,GN=qN(je()),KN=d;Ac=Vm.default=(0,GN.default)((0,KN.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");const Py=Vt(d.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),Ey=Vt(d.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");var qm={},YN=Te;Object.defineProperty(qm,"__esModule",{value:!0});var Gm=qm.default=void 0,XN=YN(je()),QN=d;Gm=qm.default=(0,XN.default)((0,QN.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info");const lf=Ns({palette:{primary:{main:"#556cd6"},secondary:{main:"#19857b"},background:{default:"linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)",paper:"#fff"}},typography:{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif',h5:{fontWeight:600,color:"#444"},button:{textTransform:"none",fontWeight:"bold"}},components:{MuiButton:{styleOverrides:{root:{margin:"8px"}}}}}),JN=ie(En)(({theme:e})=>({marginTop:e.spacing(12),display:"flex",flexDirection:"column",alignItems:"center",padding:e.spacing(4),borderRadius:e.shape.borderRadius,boxShadow:e.shadows[10],width:"90%",maxWidth:"450px",opacity:.98,backdropFilter:"blur(10px)"}));function ZN(){const e=qo(),[t,n]=p.useState(!1),{setUser:r}=p.useContext(vr),[o,i]=p.useState(0),[a,s]=p.useState(""),[l,c]=p.useState(""),[u,f]=p.useState(!1),[h,w]=p.useState(""),[y,x]=p.useState(!1),[C,v]=p.useState(""),[m,b]=p.useState(""),[R,k]=p.useState(""),[T,P]=p.useState(""),[j,N]=p.useState(""),[O,F]=p.useState(!1),[W,U]=p.useState(!1),[G,ee]=p.useState(""),[J,re]=p.useState("info"),I=[{id:"job_search",name:"Stress from job search"},{id:"classwork",name:"Stress from classwork"},{id:"social_anxiety",name:"Social anxiety"},{id:"impostor_syndrome",name:"Impostor Syndrome"},{id:"career_drift",name:"Career Drift"}],[_,E]=p.useState([]),g=A=>{const K=A.target.value,Y=_.includes(K)?_.filter(q=>q!==K):[..._,K];E(Y)},$=async A=>{var K,Y;A.preventDefault(),F(!0);try{const q=await Oe.post("/api/user/login",{username:a,password:h});if(q&&q.data){const oe=q.data.userId;localStorage.setItem("token",q.data.access_token),console.log("Token stored:",localStorage.getItem("token")),ee("Login successful!"),re("success"),n(!0),r({userId:oe}),e("/"),console.log("User logged in:",oe)}else throw new Error("Invalid response from server")}catch(q){console.error("Login failed:",q),ee("Login failed: "+(((Y=(K=q.response)==null?void 0:K.data)==null?void 0:Y.msg)||"Unknown error")),re("error"),f(!0)}U(!0),F(!1)},z=async A=>{var K,Y;A.preventDefault(),F(!0);try{const q=await Oe.post("/api/user/signup",{username:a,email:l,password:h,name:C,age:m,gender:R,placeOfResidence:T,fieldOfWork:j,mental_health_concerns:_});if(q&&q.data){const oe=q.data.userId;localStorage.setItem("token",q.data.access_token),console.log("Token stored:",localStorage.getItem("token")),ee("User registered successfully!"),re("success"),n(!0),r({userId:oe}),e("/"),console.log("User registered:",oe)}else throw new Error("Invalid response from server")}catch(q){console.error("Signup failed:",q),ee(((Y=(K=q.response)==null?void 0:K.data)==null?void 0:Y.error)||"Failed to register user."),re("error")}F(!1),U(!0)},L=async A=>{var K,Y;A.preventDefault(),F(!0);try{const q=await Oe.post("/api/user/anonymous_signin");if(q&&q.data)localStorage.setItem("token",q.data.access_token),console.log("Token stored:",localStorage.getItem("token")),ee("Anonymous sign-in successful!"),re("success"),n(!0),r({userId:null}),e("/");else throw new Error("Invalid response from server")}catch(q){console.error("Anonymous sign-in failed:",q),ee("Anonymous sign-in failed: "+(((Y=(K=q.response)==null?void 0:K.data)==null?void 0:Y.msg)||"Unknown error")),re("error")}F(!1),U(!0)},B=(A,K)=>{i(K)},V=(A,K)=>{K!=="clickaway"&&U(!1)},M=()=>{x(!y)};return d.jsxs(lm,{theme:lf,children:[d.jsx(km,{}),d.jsx(at,{sx:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",background:lf.palette.background.default},children:d.jsxs(JN,{children:[d.jsxs(f2,{value:o,onChange:B,variant:"fullWidth",centered:!0,indicatorColor:"primary",textColor:"primary",children:[d.jsx(Hl,{icon:d.jsx(h2,{}),label:"Login"}),d.jsx(Hl,{icon:d.jsx(m2,{}),label:"Sign Up"}),d.jsx(Hl,{icon:d.jsx(Ac,{}),label:"Anonymous"})]}),d.jsxs(at,{sx:{mt:3,width:"100%",px:3},children:[o===0&&d.jsxs("form",{onSubmit:$,children:[d.jsx(it,{label:"Username",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:a,onChange:A=>s(A.target.value)}),d.jsx(it,{label:"Password",type:y?"text":"password",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:h,onChange:A=>w(A.target.value),InputProps:{endAdornment:d.jsx(ut,{onClick:M,edge:"end",children:y?d.jsx(Ey,{}):d.jsx(Py,{})})}}),d.jsxs(kt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,sx:{mt:2,maxWidth:"325px"},disabled:O,children:[O?d.jsx(_n,{size:24}):"Login"," "]}),u&&d.jsxs(Ie,{variant:"body2",textAlign:"center",sx:{mt:2},children:["Forgot your password? ",d.jsx(Pb,{to:"/request_reset",style:{textDecoration:"none",color:lf.palette.secondary.main},children:"Reset it here"})]})]}),o===1&&d.jsxs("form",{onSubmit:z,children:[d.jsx(it,{label:"Username",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:a,onChange:A=>s(A.target.value)}),d.jsx(it,{label:"Email",type:"email",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:l,onChange:A=>c(A.target.value)}),d.jsx(it,{label:"Password",type:y?"text":"password",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:h,onChange:A=>w(A.target.value),InputProps:{endAdornment:d.jsx(ut,{onClick:M,edge:"end",children:y?d.jsx(Ey,{}):d.jsx(Py,{})})}}),d.jsx(it,{label:"Name",variant:"outlined",margin:"normal",fullWidth:!0,value:C,onChange:A=>v(A.target.value)}),d.jsx(it,{label:"Age",type:"number",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:m,onChange:A=>b(A.target.value)}),d.jsxs(ld,{required:!0,fullWidth:!0,margin:"normal",children:[d.jsx(cd,{children:"Gender"}),d.jsxs(Us,{value:R,label:"Gender",onChange:A=>k(A.target.value),children:[d.jsx(Jn,{value:"",children:"Select Gender"}),d.jsx(Jn,{value:"male",children:"Male"}),d.jsx(Jn,{value:"female",children:"Female"}),d.jsx(Jn,{value:"other",children:"Other"})]})]}),d.jsx(it,{label:"Place of Residence",variant:"outlined",margin:"normal",fullWidth:!0,value:T,onChange:A=>P(A.target.value)}),d.jsx(it,{label:"Field of Work",variant:"outlined",margin:"normal",fullWidth:!0,value:j,onChange:A=>N(A.target.value)}),d.jsxs(i2,{sx:{marginTop:"10px"},children:[d.jsx(Ie,{variant:"body1",gutterBottom:!0,children:"Select any mental stressors you are currently experiencing to help us better tailor your therapy sessions."}),I.map(A=>d.jsx(Tm,{control:d.jsx(Rm,{checked:_.includes(A.id),onChange:g,value:A.id}),label:d.jsxs(at,{display:"flex",alignItems:"center",children:[A.name,d.jsx(Zn,{title:d.jsx(Ie,{variant:"body2",children:eD(A.id)}),arrow:!0,placement:"right",children:d.jsx(Gm,{color:"action",style:{marginLeft:4,fontSize:20}})})]})},A.id))]}),d.jsx(kt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,sx:{mt:2},disabled:O,children:O?d.jsx(_n,{size:24}):"Sign Up"})]}),o===2&&d.jsx("form",{onSubmit:L,children:d.jsx(kt,{type:"submit",variant:"outlined",color:"secondary",fullWidth:!0,sx:{mt:2},disabled:O,children:O?d.jsx(_n,{size:24}):"Anonymous Sign-In"})})]}),d.jsx(yo,{open:W,autoHideDuration:6e3,onClose:V,children:d.jsx(xr,{onClose:V,severity:J,sx:{width:"100%"},children:G})})]})})]})}function eD(e){switch(e){case"job_search":return"Feelings of stress stemming from the job search process.";case"classwork":return"Stress related to managing coursework and academic responsibilities.";case"social_anxiety":return"Anxiety experienced during social interactions or in anticipation of social interactions.";case"impostor_syndrome":return"Persistent doubt concerning one's abilities or accomplishments coupled with a fear of being exposed as a fraud.";case"career_drift":return"Stress from uncertainty or dissatisfaction with one's career path or progress.";default:return"No description available."}}var Km={},tD=Te;Object.defineProperty(Km,"__esModule",{value:!0});var g2=Km.default=void 0,nD=tD(je()),rD=d;g2=Km.default=(0,nD.default)((0,rD.jsx)("path",{d:"M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"}),"VpnKey");var Ym={},oD=Te;Object.defineProperty(Ym,"__esModule",{value:!0});var v2=Ym.default=void 0,iD=oD(je()),aD=d;v2=Ym.default=(0,iD.default)((0,aD.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");const Ty=Ns({palette:{primary:{main:"#3F51B5"},secondary:{main:"#F6AE2D"}}}),sD=()=>{const{changePassword:e}=p.useContext(vr),[t,n]=p.useState(""),[r,o]=p.useState(""),[i,a]=p.useState(!1),[s,l]=p.useState(""),[c,u]=p.useState("success"),{userId:f}=$s(),h=async w=>{w.preventDefault();const y=await e(f,t,r);l(y.message),u(y.success?"success":"error"),a(!0)};return d.jsx(lm,{theme:Ty,children:d.jsx(e2,{component:"main",maxWidth:"xs",sx:{background:"#fff",borderRadius:"8px",boxShadow:"0px 2px 4px rgba(0,0,0,0.2)"},children:d.jsxs(at,{sx:{marginTop:8,display:"flex",flexDirection:"column",alignItems:"center"},children:[d.jsx(Ie,{component:"h1",variant:"h5",children:"Update Password"}),d.jsxs("form",{onSubmit:h,style:{width:"100%",marginTop:Ty.spacing(1)},children:[d.jsx(it,{variant:"outlined",margin:"normal",required:!0,fullWidth:!0,id:"current-password",label:"Current Password",name:"currentPassword",autoComplete:"current-password",type:"password",value:t,onChange:w=>n(w.target.value),InputProps:{startAdornment:d.jsx(v2,{color:"primary",style:{marginRight:"10px"}})}}),d.jsx(it,{variant:"outlined",margin:"normal",required:!0,fullWidth:!0,id:"new-password",label:"New Password",name:"newPassword",autoComplete:"new-password",type:"password",value:r,onChange:w=>o(w.target.value),InputProps:{startAdornment:d.jsx(g2,{color:"secondary",style:{marginRight:"10px"}})}}),d.jsx(kt,{type:"submit",fullWidth:!0,variant:"contained",color:"primary",sx:{mt:3,mb:2},children:"Update Password"})]}),d.jsx(yo,{open:i,autoHideDuration:6e3,onClose:()=>a(!1),children:d.jsx(xr,{onClose:()=>a(!1),severity:c,sx:{width:"100%"},children:s})})]})})})};var Xm={},lD=Te;Object.defineProperty(Xm,"__esModule",{value:!0});var y2=Xm.default=void 0,cD=lD(je()),uD=d;y2=Xm.default=(0,cD.default)((0,uD.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"}),"Email");var Qm={},dD=Te;Object.defineProperty(Qm,"__esModule",{value:!0});var x2=Qm.default=void 0,fD=dD(je()),pD=d;x2=Qm.default=(0,fD.default)((0,pD.jsx)("path",{d:"M12 6c1.11 0 2-.9 2-2 0-.38-.1-.73-.29-1.03L12 0l-1.71 2.97c-.19.3-.29.65-.29 1.03 0 1.1.9 2 2 2m4.6 9.99-1.07-1.07-1.08 1.07c-1.3 1.3-3.58 1.31-4.89 0l-1.07-1.07-1.09 1.07C6.75 16.64 5.88 17 4.96 17c-.73 0-1.4-.23-1.96-.61V21c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-4.61c-.56.38-1.23.61-1.96.61-.92 0-1.79-.36-2.44-1.01M18 9h-5V7h-2v2H6c-1.66 0-3 1.34-3 3v1.54c0 1.08.88 1.96 1.96 1.96.52 0 1.02-.2 1.38-.57l2.14-2.13 2.13 2.13c.74.74 2.03.74 2.77 0l2.14-2.13 2.13 2.13c.37.37.86.57 1.38.57 1.08 0 1.96-.88 1.96-1.96V12C21 10.34 19.66 9 18 9"}),"Cake");var Jm={},hD=Te;Object.defineProperty(Jm,"__esModule",{value:!0});var b2=Jm.default=void 0,mD=hD(je()),gD=d;b2=Jm.default=(0,mD.default)((0,gD.jsx)("path",{d:"M5.5 22v-7.5H4V9c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2v5.5H9.5V22zM18 22v-6h3l-2.54-7.63C18.18 7.55 17.42 7 16.56 7h-.12c-.86 0-1.63.55-1.9 1.37L12 16h3v6zM7.5 6c1.11 0 2-.89 2-2s-.89-2-2-2-2 .89-2 2 .89 2 2 2m9 0c1.11 0 2-.89 2-2s-.89-2-2-2-2 .89-2 2 .89 2 2 2"}),"Wc");var Zm={},vD=Te;Object.defineProperty(Zm,"__esModule",{value:!0});var w2=Zm.default=void 0,yD=vD(je()),xD=d;w2=Zm.default=(0,yD.default)((0,xD.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home");var eg={},bD=Te;Object.defineProperty(eg,"__esModule",{value:!0});var S2=eg.default=void 0,wD=bD(je()),SD=d;S2=eg.default=(0,wD.default)((0,SD.jsx)("path",{d:"M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-6 0h-4V4h4z"}),"Work");var tg={},CD=Te;Object.defineProperty(tg,"__esModule",{value:!0});var ng=tg.default=void 0,RD=CD(je()),kD=d;ng=tg.default=(0,RD.default)((0,kD.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 4c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6m0 14c-2.03 0-4.43-.82-6.14-2.88C7.55 15.8 9.68 15 12 15s4.45.8 6.14 2.12C16.43 19.18 14.03 20 12 20"}),"AccountCircle");var rg={},PD=Te;Object.defineProperty(rg,"__esModule",{value:!0});var C2=rg.default=void 0,ED=PD(je()),TD=d;C2=rg.default=(0,ED.default)((0,TD.jsx)("path",{d:"M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8z"}),"Update");const $D=ie(f2)({background:"#fff",borderRadius:"8px",boxShadow:"0 2px 4px rgba(0,0,0,0.1)",margin:"20px 0",maxWidth:"100%",overflow:"hidden"}),$y=ie(Hl)({fontSize:"1rem",fontWeight:"bold",color:"#3F51B5",marginRight:"4px",marginLeft:"4px",flex:1,maxWidth:"none","&.Mui-selected":{color:"#F6AE2D",background:"#e0e0e0"},"&:hover":{background:"#f4f4f4",transition:"background-color 0.3s"},"@media (max-width: 720px)":{padding:"6px 12px",fontSize:"0.8rem"}}),MD=Ns({palette:{primary:{main:"#3F51B5"},secondary:{main:"#F6AE2D"},background:{default:"#e0e0e0"}},typography:{fontFamily:'"Open Sans", "Helvetica", "Arial", sans-serif',button:{textTransform:"none",fontWeight:"bold"}},components:{MuiButton:{styleOverrides:{root:{boxShadow:"none",borderRadius:8,"&:hover":{boxShadow:"0px 2px 4px rgba(0,0,0,0.2)"}}}},MuiPaper:{styleOverrides:{root:{padding:"20px",borderRadius:"10px",boxShadow:"0px 4px 12px rgba(0,0,0,0.1)"}}}}}),jD=ie(En)(({theme:e})=>({marginTop:e.spacing(2),padding:e.spacing(2),display:"flex",flexDirection:"column",alignItems:"center",gap:e.spacing(2),boxShadow:e.shadows[3]}));function OD(){const{userId:e}=$s(),[t,n]=p.useState({username:"",name:"",email:"",age:"",gender:"",placeOfResidence:"",fieldOfWork:"",mental_health_concerns:[]}),[r,o]=p.useState(0),i=(v,m)=>{o(m)},[a,s]=p.useState(""),[l,c]=p.useState(!1),[u,f]=p.useState("info");p.useEffect(()=>{if(!e){console.error("User ID is undefined");return}(async()=>{try{const m=await Oe.get(`/api/user/profile/${e}`);console.log("Fetched data:",m.data);const b={username:m.data.username||"",name:m.data.name||"",email:m.data.email||"",age:m.data.age||"",gender:m.data.gender||"",placeOfResidence:m.data.placeOfResidence||"Not specified",fieldOfWork:m.data.fieldOfWork||"Not specified",mental_health_concerns:m.data.mental_health_concerns||[]};console.log("Formatted data:",b),n(b)}catch{s("Failed to fetch user data"),f("error"),c(!0)}})()},[e]);const h=[{label:"Stress from Job Search",value:"job_search"},{label:"Stress from Classwork",value:"classwork"},{label:"Social Anxiety",value:"social_anxiety"},{label:"Impostor Syndrome",value:"impostor_syndrome"},{label:"Career Drift",value:"career_drift"}];console.log("current mental health concerns: ",t.mental_health_concerns);const w=v=>{const{name:m,checked:b}=v.target;n(R=>{const k=b?[...R.mental_health_concerns,m]:R.mental_health_concerns.filter(T=>T!==m);return{...R,mental_health_concerns:k}})},y=v=>{const{name:m,value:b}=v.target;n(R=>({...R,[m]:b}))},x=async v=>{v.preventDefault();try{await Oe.patch(`/api/user/profile/${e}`,t),s("Profile updated successfully!"),f("success")}catch{s("Failed to update profile"),f("error")}c(!0)},C=()=>{c(!1)};return d.jsxs(lm,{theme:MD,children:[d.jsx(km,{}),d.jsxs(e2,{component:"main",maxWidth:"md",children:[d.jsxs($D,{value:r,onChange:i,centered:!0,children:[d.jsx($y,{label:"Profile"}),d.jsx($y,{label:"Update Password"})]}),r===0&&d.jsxs(jD,{component:"form",onSubmit:x,sx:{maxHeight:"81vh",overflow:"auto"},children:[d.jsxs(Ie,{variant:"h5",style:{fontWeight:700},children:[d.jsx(ng,{style:{marginRight:"10px"}})," ",t.username]}),d.jsx(it,{fullWidth:!0,label:"Name",variant:"outlined",name:"name",value:t.name||"",onChange:y,InputProps:{startAdornment:d.jsx(ut,{position:"start",children:d.jsx(ud,{})})}}),d.jsx(it,{fullWidth:!0,label:"Email",variant:"outlined",name:"email",value:t.email||"",onChange:y,InputProps:{startAdornment:d.jsx(ut,{position:"start",children:d.jsx(y2,{})})}}),d.jsx(it,{fullWidth:!0,label:"Age",variant:"outlined",name:"age",type:"number",value:t.age||"",onChange:y,InputProps:{startAdornment:d.jsx(ut,{children:d.jsx(x2,{})})}}),d.jsxs(ld,{fullWidth:!0,children:[d.jsx(cd,{children:"Gender"}),d.jsxs(Us,{name:"gender",value:t.gender||"",label:"Gender",onChange:y,startAdornment:d.jsx(ut,{children:d.jsx(b2,{})}),children:[d.jsx(Jn,{value:"male",children:"Male"}),d.jsx(Jn,{value:"female",children:"Female"}),d.jsx(Jn,{value:"other",children:"Other"})]})]}),d.jsx(it,{fullWidth:!0,label:"Place of Residence",variant:"outlined",name:"placeOfResidence",value:t.placeOfResidence||"",onChange:y,InputProps:{startAdornment:d.jsx(ut,{children:d.jsx(w2,{})})}}),d.jsx(it,{fullWidth:!0,label:"Field of Work",variant:"outlined",name:"fieldOfWork",value:t.fieldOfWork||"",onChange:y,InputProps:{startAdornment:d.jsx(ut,{position:"start",children:d.jsx(S2,{})})}}),d.jsx(i2,{children:h.map((v,m)=>(console.log(`Is "${v.label}" checked?`,t.mental_health_concerns.includes(v.value)),d.jsx(Tm,{control:d.jsx(Rm,{checked:t.mental_health_concerns.includes(v.value),onChange:w,name:v.value}),label:d.jsxs(at,{display:"flex",alignItems:"center",children:[v.label,d.jsx(Zn,{title:d.jsx(Ie,{variant:"body2",children:ID(v.value)}),arrow:!0,placement:"right",children:d.jsx(Gm,{color:"action",style:{marginLeft:4,fontSize:20}})})]})},m)))}),d.jsxs(kt,{type:"submit",color:"primary",variant:"contained",children:[d.jsx(C2,{style:{marginRight:"10px"}}),"Update Profile"]})]}),r===1&&d.jsx(sD,{userId:e}),d.jsx(yo,{open:l,autoHideDuration:6e3,onClose:C,children:d.jsx(xr,{onClose:C,severity:u,sx:{width:"100%"},children:a})})]})]})}function ID(e){switch(e){case"job_search":return"Feelings of stress stemming from the job search process.";case"classwork":return"Stress related to managing coursework and academic responsibilities.";case"social_anxiety":return"Anxiety experienced during social interactions or in anticipation of social interactions.";case"impostor_syndrome":return"Persistent doubt concerning one's abilities or accomplishments coupled with a fear of being exposed as a fraud.";case"career_drift":return"Stress from uncertainty or dissatisfaction with one's career path or progress.";default:return"No description available."}}var og={},_D=Te;Object.defineProperty(og,"__esModule",{value:!0});var R2=og.default=void 0,LD=_D(je()),My=d;R2=og.default=(0,LD.default)([(0,My.jsx)("path",{d:"M22 9 12 2 2 9h9v13h2V9z"},"0"),(0,My.jsx)("path",{d:"m4.14 12-1.96.37.82 4.37V22h2l.02-4H7v4h2v-6H4.9zm14.96 4H15v6h2v-4h1.98l.02 4h2v-5.26l.82-4.37-1.96-.37z"},"1")],"Deck");var ig={},AD=Te;Object.defineProperty(ig,"__esModule",{value:!0});var k2=ig.default=void 0,ND=AD(je()),DD=d;k2=ig.default=(0,ND.default)((0,DD.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5m-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11m3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5"}),"InsertEmoticon");var ag={},zD=Te;Object.defineProperty(ag,"__esModule",{value:!0});var sg=ag.default=void 0,BD=zD(je()),FD=d;sg=ag.default=(0,BD.default)((0,FD.jsx)("path",{d:"M19 5v14H5V5zm1.1-2H3.9c-.5 0-.9.4-.9.9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9M11 7h6v2h-6zm0 4h6v2h-6zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7z"}),"ListAlt");var lg={},UD=Te;Object.defineProperty(lg,"__esModule",{value:!0});var P2=lg.default=void 0,WD=UD(je()),HD=d;P2=lg.default=(0,WD.default)((0,HD.jsx)("path",{d:"M10.09 15.59 11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"ExitToApp");var cg={},VD=Te;Object.defineProperty(cg,"__esModule",{value:!0});var E2=cg.default=void 0,qD=VD(je()),GD=d;E2=cg.default=(0,qD.default)((0,GD.jsx)("path",{d:"M16.53 11.06 15.47 10l-4.88 4.88-2.12-2.12-1.06 1.06L10.59 17zM19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V8h14z"}),"EventAvailable");var ug={},KD=Te;Object.defineProperty(ug,"__esModule",{value:!0});var T2=ug.default=void 0,YD=KD(je()),jy=d;T2=ug.default=(0,YD.default)([(0,jy.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,jy.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"Schedule");var dg={},XD=Te;Object.defineProperty(dg,"__esModule",{value:!0});var $2=dg.default=void 0,QD=XD(je()),JD=d;$2=dg.default=(0,QD.default)((0,JD.jsx)("path",{d:"m22.69 18.37 1.14-1-1-1.73-1.45.49c-.32-.27-.68-.48-1.08-.63L20 14h-2l-.3 1.49c-.4.15-.76.36-1.08.63l-1.45-.49-1 1.73 1.14 1c-.08.5-.08.76 0 1.26l-1.14 1 1 1.73 1.45-.49c.32.27.68.48 1.08.63L18 24h2l.3-1.49c.4-.15.76-.36 1.08-.63l1.45.49 1-1.73-1.14-1c.08-.51.08-.77 0-1.27M19 21c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2M11 7v5.41l2.36 2.36 1.04-1.79-1.4-1.39V7zm10 5c0-4.97-4.03-9-9-9-2.83 0-5.35 1.32-7 3.36V4H3v6h6V8H6.26C7.53 6.19 9.63 5 12 5c3.86 0 7 3.14 7 7zm-10.14 6.91c-2.99-.49-5.35-2.9-5.78-5.91H3.06c.5 4.5 4.31 8 8.94 8h.07z"}),"ManageHistory");const Oy=230;function ZD(){const{logout:e,user:t}=p.useContext(vr),n=ho(),r=i=>n.pathname===i,o=[{text:"Mind Chat",icon:d.jsx(R2,{}),path:"/"},...t!=null&&t.userId?[{text:"Track Your Vibes",icon:d.jsx(k2,{}),path:"/user/mood_logging"},{text:"Mood Logs",icon:d.jsx(sg,{}),path:"/user/mood_logs"},{text:"Schedule Check-In",icon:d.jsx(T2,{}),path:"/user/check_in"},{text:"Check-In Reporting",icon:d.jsx(E2,{}),path:`/user/check_ins/${t==null?void 0:t.userId}`},{text:"Chat Log Manager",icon:d.jsx($2,{}),path:"/user/chat_log_Manager"}]:[]];return d.jsx(WI,{sx:{width:Oy,flexShrink:0,mt:8,"& .MuiDrawer-paper":{width:Oy,boxSizing:"border-box",position:"relative",height:"91vh",top:0,overflowX:"hidden",borderRadius:2,boxShadow:1}},variant:"permanent",anchor:"left",children:d.jsxs(Fs,{children:[o.map(i=>d.jsx(VP,{to:i.path,style:{textDecoration:"none",color:"inherit"},children:d.jsxs(Oc,{button:!0,sx:{backgroundColor:r(i.path)?"rgba(25, 118, 210, 0.5)":"inherit","&:hover":{bgcolor:"grey.200"}},children:[d.jsx(dy,{children:i.icon}),d.jsx(ws,{primary:i.text})]})},i.text)),d.jsxs(Oc,{button:!0,onClick:e,children:[d.jsx(dy,{children:d.jsx(P2,{})}),d.jsx(ws,{primary:"Logout"})]})]})})}var fg={},e6=Te;Object.defineProperty(fg,"__esModule",{value:!0});var M2=fg.default=void 0,t6=e6(je()),n6=d;M2=fg.default=(0,t6.default)((0,n6.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");var pg={},r6=Te;Object.defineProperty(pg,"__esModule",{value:!0});var j2=pg.default=void 0,o6=r6(je()),i6=d;j2=pg.default=(0,o6.default)((0,i6.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2m6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1z"}),"Notifications");var hg={},a6=Te;Object.defineProperty(hg,"__esModule",{value:!0});var O2=hg.default=void 0,s6=a6(je()),l6=d;O2=hg.default=(0,s6.default)((0,l6.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel");function c6({toggleSidebar:e}){const{incrementNotificationCount:t,notifications:n,addNotification:r,removeNotification:o}=p.useContext(vr),i=qo(),{user:a}=p.useContext(vr),[s,l]=p.useState(null),c=localStorage.getItem("token"),u=a==null?void 0:a.userId;console.log("User ID:",u),p.useEffect(()=>{u?f():console.error("No user ID available from URL parameters.")},[u]);const f=async()=>{if(!u){console.error("User ID is missing in context");return}try{const C=(await Oe.get(`/api/check-in/missed?user_id=${u}`,{headers:{Authorization:`Bearer ${c}`}})).data;console.log("Missed check-ins:",C),C.length>0?C.forEach(v=>{r({title:`Missed Check-in on ${new Date(v.check_in_time).toLocaleString()}`,message:"Please complete your check-in."})}):r({title:"You have no missed check-ins.",message:""})}catch(x){console.error("Failed to fetch missed check-ins:",x),r({title:"Failed to fetch missed check-ins. Please check the console for more details.",message:""})}},h=x=>{l(x.currentTarget)},w=x=>{l(null),o(x)},y=()=>{a&&a.userId?i(`/user/profile/${a.userId}`):console.error("User ID not found")};return p.useEffect(()=>{const x=C=>{C.data&&C.data.msg==="updateCount"&&(console.log("Received message from service worker:",C.data),r({title:C.data.title,message:C.data.body}),t())};return navigator.serviceWorker.addEventListener("message",x),()=>{navigator.serviceWorker.removeEventListener("message",x)}},[]),d.jsx(kM,{position:"fixed",sx:{zIndex:x=>x.zIndex.drawer+1},children:d.jsxs(UA,{children:[d.jsx(ut,{onClick:e,color:"inherit",edge:"start",sx:{marginRight:2},children:d.jsx(M2,{})}),d.jsx(Ie,{variant:"h6",noWrap:!0,component:"div",sx:{flexGrow:1},children:"Dashboard"}),(a==null?void 0:a.userId)&&d.jsx(ut,{color:"inherit",onClick:h,children:d.jsx(a3,{badgeContent:n.length,color:"secondary",children:d.jsx(j2,{})})}),d.jsx(c2,{anchorEl:s,open:!!s,onClose:()=>w(null),children:n.map((x,C)=>d.jsx(Jn,{onClick:()=>w(C),sx:{whiteSpace:"normal",maxWidth:350,padding:1},children:d.jsxs(ad,{elevation:2,sx:{display:"flex",alignItems:"center",width:"100%"},children:[d.jsx(O2,{color:"error"}),d.jsxs(Cm,{sx:{flex:"1 1 auto"},children:[d.jsx(Ie,{variant:"subtitle1",sx:{fontWeight:"bold"},children:x.title}),d.jsx(Ie,{variant:"body2",color:"text.secondary",children:x.message})]})]})},C))}),(a==null?void 0:a.userId)&&d.jsx(ut,{color:"inherit",onClick:y,children:d.jsx(ng,{})})]})})}var mg={},u6=Te;Object.defineProperty(mg,"__esModule",{value:!0});var I2=mg.default=void 0,d6=u6(je()),f6=d;I2=mg.default=(0,d6.default)((0,f6.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M17 13l-5 5-5-5h3V9h4v4z"}),"CloudDownload");var gg={},p6=Te;Object.defineProperty(gg,"__esModule",{value:!0});var Lp=gg.default=void 0,h6=p6(je()),m6=d;Lp=gg.default=(0,h6.default)((0,m6.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"DeleteForever");var vg={},g6=Te;Object.defineProperty(vg,"__esModule",{value:!0});var _2=vg.default=void 0,v6=g6(je()),y6=d;_2=vg.default=(0,v6.default)((0,y6.jsx)("path",{d:"M9 11H7v2h2zm4 0h-2v2h2zm4 0h-2v2h2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 16H5V9h14z"}),"DateRange");const x6=ie(En)(({theme:e})=>({padding:e.spacing(3),borderRadius:e.shape.borderRadius,boxShadow:1,maxWidth:"100%",margin:"auto",marginTop:e.spacing(2),backgroundColor:"#fff",overflow:"auto"})),wl=ie(kt)(({theme:e})=>({margin:e.spacing(0),paddingLeft:e.spacing(1),paddingRight:e.spacing(3)}));function b6(){const[e,t]=nn.useState(!1),[n,r]=p.useState(!1),[o,i]=nn.useState(""),[a,s]=nn.useState("info"),[l,c]=p.useState(!1),[u,f]=p.useState(""),[h,w]=p.useState(""),[y,x]=p.useState(!1),C=(k,T)=>{T!=="clickaway"&&t(!1)},v=()=>{r(!1)},m=k=>{x(k),r(!0)},b=async(k=!1)=>{var T,P;c(!0);try{const j=k?"/api/user/download_chat_logs/range":"/api/user/download_chat_logs",N=k?{params:{start_date:u,end_date:h}}:{},O=await Oe.get(j,{...N,headers:{Authorization:`Bearer ${localStorage.getItem("token")}`},responseType:"blob"}),F=window.URL.createObjectURL(new Blob([O.data])),W=document.createElement("a");W.href=F,W.setAttribute("download",k?"chat_logs_range.csv":"chat_logs.csv"),document.body.appendChild(W),W.click(),i("Chat logs downloaded successfully."),s("success")}catch(j){i(`Failed to download chat logs: ${((P=(T=j.response)==null?void 0:T.data)==null?void 0:P.error)||j.message}`),s("error")}finally{c(!1)}t(!0)},R=async()=>{var k,T;r(!1),c(!0);try{const P=y?"/api/user/delete_chat_logs/range":"/api/user/delete_chat_logs",j=y?{params:{start_date:u,end_date:h}}:{},N=await Oe.delete(P,{...j,headers:{Authorization:`Bearer ${localStorage.getItem("token")}`}});i(N.data.message),s("success")}catch(P){i(`Failed to delete chat logs: ${((T=(k=P.response)==null?void 0:k.data)==null?void 0:T.error)||P.message}`),s("error")}finally{c(!1)}t(!0)};return d.jsxs(x6,{sx:{height:"91vh"},children:[d.jsx(Ie,{variant:"h4",gutterBottom:!0,children:"Manage Your Chat Logs"}),d.jsx(Ie,{variant:"body1",paragraph:!0,children:"Manage your chat logs efficiently by downloading or deleting entries for specific dates or entire ranges. Please be cautious as deletion is permanent."}),d.jsxs("div",{style:{display:"flex",justifyContent:"center",flexDirection:"column",alignItems:"center",gap:20},children:[d.jsxs("div",{style:{display:"flex",gap:10,marginBottom:20},children:[d.jsx(it,{label:"Start Date",type:"date",value:u,onChange:k=>f(k.target.value),InputLabelProps:{shrink:!0}}),d.jsx(it,{label:"End Date",type:"date",value:h,onChange:k=>w(k.target.value),InputLabelProps:{shrink:!0}})]}),d.jsx(Ie,{variant:"body1",paragraph:!0,children:"Here you can download your chat logs as a CSV file, which includes details like chat IDs, content, type, and additional information for each session."}),d.jsx(Zn,{title:"Download chat logs for selected date range",children:d.jsx(wl,{variant:"outlined",startIcon:d.jsx(_2,{}),onClick:()=>b(!0),disabled:l||!u||!h,children:l?d.jsx(_n,{size:24,color:"inherit"}):"Download Range"})}),d.jsx(Zn,{title:"Download your chat logs as a CSV file",children:d.jsx(wl,{variant:"contained",color:"primary",startIcon:d.jsx(I2,{}),onClick:()=>b(!1),disabled:l,children:l?d.jsx(_n,{size:24,color:"inherit"}):"Download Chat Logs"})}),d.jsx(Ie,{variant:"body1",paragraph:!0,children:"If you need to clear your history for privacy or other reasons, you can also permanently delete your chat logs from the server."}),d.jsx(Zn,{title:"Delete chat logs for selected date range",children:d.jsx(wl,{variant:"outlined",color:"warning",startIcon:d.jsx(Lp,{}),onClick:()=>m(!0),disabled:l||!u||!h,children:l?d.jsx(_n,{size:24,color:"inherit"}):"Delete Range"})}),d.jsx(Zn,{title:"Permanently delete all your chat logs",children:d.jsx(wl,{variant:"contained",color:"secondary",startIcon:d.jsx(Lp,{}),onClick:()=>m(!1),disabled:l,children:l?d.jsx(_n,{size:24,color:"inherit"}):"Delete Chat Logs"})}),d.jsx(Ie,{variant:"body1",paragraph:!0,children:"Please use these options carefully as deleting your chat logs is irreversible."})]}),d.jsxs(Mp,{open:n,onClose:v,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[d.jsx(Ip,{id:"alert-dialog-title",children:"Confirm Deletion"}),d.jsx(Op,{children:d.jsx(n2,{id:"alert-dialog-description",children:"Are you sure you want to delete these chat logs? This action cannot be undone."})}),d.jsxs(jp,{children:[d.jsx(kt,{onClick:v,color:"primary",children:"Cancel"}),d.jsx(kt,{onClick:()=>R(),color:"secondary",autoFocus:!0,children:"Confirm"})]})]}),d.jsx(yo,{open:e,autoHideDuration:6e3,onClose:C,children:d.jsx(xr,{onClose:C,severity:a,sx:{width:"100%"},children:o})})]})}const Iy=()=>{const{user:e,voiceEnabled:t}=p.useContext(vr),n=e==null?void 0:e.userId,[r,o]=p.useState(0),[i,a]=p.useState(0),[s,l]=p.useState(""),[c,u]=p.useState([]),[f,h]=p.useState(!1),[w,y]=p.useState(null),x=p.useRef([]),[C,v]=p.useState(!1),[m,b]=p.useState(!1),[R,k]=p.useState(""),[T,P]=p.useState("info"),[j,N]=p.useState(null),O=_=>{if(!t||_===j){N(null),window.speechSynthesis.cancel();return}const E=window.speechSynthesis,g=new SpeechSynthesisUtterance(_),$=E.getVoices();console.log($.map(L=>`${L.name} - ${L.lang} - ${L.gender}`));const z=$.find(L=>L.name.includes("Microsoft Zira - English (United States)"));z?g.voice=z:console.log("No female voice found"),g.onend=()=>{N(null)},N(_),E.speak(g)},F=(_,E)=>{E!=="clickaway"&&b(!1)},W=p.useCallback(async()=>{if(r!==null){v(!0);try{const _=await fetch(`/api/ai/mental_health/finalize/${n}/${r}`,{method:"POST",headers:{"Content-Type":"application/json"}}),E=await _.json();_.ok?(k("Chat finalized successfully"),P("success"),o(null),a(0),u([])):(k("Failed to finalize chat"),P("error"))}catch{k("Error finalizing chat"),P("error")}finally{v(!1),b(!0)}}},[n,r]),U=p.useCallback(async()=>{if(s.trim()){console.log(r),v(!0);try{const _=JSON.stringify({prompt:s,turn_id:i}),E=await fetch(`/api/ai/mental_health/${n}/${r}`,{method:"POST",headers:{"Content-Type":"application/json"},body:_}),g=await E.json();console.log(g),E.ok?(u($=>[...$,{message:s,sender:"user"},{message:g,sender:"agent"}]),a($=>$+1),l("")):(console.error("Failed to send message:",g),k(g.error||"An error occurred while sending the message."),P("error"),b(!0))}catch(_){console.error("Failed to send message:",_),k("Network or server error occurred."),P("error"),b(!0)}finally{v(!1)}}},[s,n,r,i]),G=()=>{navigator.mediaDevices.getUserMedia({audio:!0}).then(_=>{x.current=[];const E={mimeType:"audio/webm"},g=new MediaRecorder(_,E);g.ondataavailable=$=>{console.log("Data available:",$.data.size),x.current.push($.data)},g.start(),y(g),h(!0)}).catch(console.error)},ee=()=>{w&&(w.onstop=()=>{J(x.current),h(!1),y(null)},w.stop())},J=_=>{console.log("Audio chunks size:",_.reduce(($,z)=>$+z.size,0));const E=new Blob(_,{type:"audio/webm"});if(E.size===0){console.error("Audio Blob is empty");return}console.log(`Sending audio blob of size: ${E.size} bytes`);const g=new FormData;g.append("audio",E),v(!0),Oe.post("/api/ai/mental_health/voice-to-text",g,{headers:{"Content-Type":"multipart/form-data"}}).then($=>{const{message:z}=$.data;l(z),U()}).catch($=>{console.error("Error uploading audio:",$),b(!0),k("Error processing voice input: "+$.message),P("error")}).finally(()=>{v(!1)})},re=p.useCallback(_=>{l(_.target.value)},[]),I=_=>_===j?d.jsx(Lc,{}):d.jsx(_c,{});return d.jsxs(d.Fragment,{children:[d.jsx("style",{children:` @keyframes blink { 0%, 100% { opacity: 0; } 50% { opacity: 1; } diff --git a/client/dist/index.html b/client/dist/index.html index b68e36be..20129e68 100644 --- a/client/dist/index.html +++ b/client/dist/index.html @@ -10,7 +10,7 @@ content="Web site created using create-react-app" /> Mental Health App - + diff --git a/client/src/Components/chatComponent.jsx b/client/src/Components/chatComponent.jsx index e992a4af..0d8387bc 100644 --- a/client/src/Components/chatComponent.jsx +++ b/client/src/Components/chatComponent.jsx @@ -225,17 +225,29 @@ const ChatComponent = () => { .then(stream => { audioChunksRef.current = []; // Clear the ref at the start of recording const isWebMSupported = supportsWebM(); + let recorder; const options = { type: 'audio', - mimeType: isWebMSupported ? 'audio/webm; codecs=opus' : 'audio/wav', - recorderType: isWebMSupported ? MediaRecorder : RecordRTC.StereoAudioRecorder, // Use MediaRecorder if WebM is supported, otherwise use RecordRTC for wav - numberOfAudioChannels: 1, }; - const recorder = isWebMSupported ? new MediaRecorder(stream, options) : new RecordRTC(stream, options); + mimeType: isWebMSupported ? 'audio/webm; codecs=opus' : 'audio/wav' }; + if (isWebMSupported) { + recorder = new MediaRecorder(stream, options); + } else { + // RecordRTC options need to be adjusted if RecordRTC is used + recorder = new RecordRTC(stream, { + type: 'audio', + mimeType: 'audio/wav', + recorderType: RecordRTC.StereoAudioRecorder, + numberOfAudioChannels: 1 + }); + recorder.startRecording(); + } recorder.ondataavailable = (e) => { console.log('Data available:', e.data.size); // Log size to check if data is present audioChunksRef.current.push(e.data); }; - recorder.start(); + if (recorder instanceof MediaRecorder) { + recorder.start(); + } setMediaRecorder(recorder); setIsRecording(true); }).catch(error => { @@ -249,6 +261,8 @@ const ChatComponent = () => { // Function to handle recording stop const stopRecording = () => { if (mediaRecorder) { + const stopFunction = mediaRecorder instanceof MediaRecorder ? 'stop' : 'stopRecording'; + mediaRecorder[stopFunction](); mediaRecorder.onstop = () => { sendAudioToServer(audioChunksRef.current, { type: mediaRecorder.mimeType }); // Ensure sendAudioToServer is called only after recording has fully stopped setIsRecording(false); @@ -258,9 +272,10 @@ const ChatComponent = () => { } }; - const sendAudioToServer = chunks => { - console.log('Audio chunks size:', chunks.reduce((sum, chunk) => sum + chunk.size, 0)); // Log total size of chunks - const audioBlob = new Blob(chunks, { 'type': 'audio/webm' }); + const sendAudioToServer = () => { + const mimeType = mediaRecorder.mimeType; // Ensure this is defined in your recorder setup + console.log('Audio chunks size:', audioChunksRef.current.reduce((sum, chunk) => sum + chunk.size, 0)); + const audioBlob = new Blob(audioChunksRef.current, { type: mimeType }); if (audioBlob.size === 0) { console.error('Audio Blob is empty'); setSnackbarMessage('Recording is empty. Please try again.'); From 935ba9a12406cd4c027a7f2fab0f7591ee148d97 Mon Sep 17 00:00:00 2001 From: DHRUMIL PATEL <123137675+dhrumilp12@users.noreply.github.com> Date: Tue, 25 Jun 2024 18:08:44 -0400 Subject: [PATCH 31/38] . --- .../dist/assets/{index-BVNu1b7r.js => index-wBa-eXT0.js} | 2 +- client/dist/index.html | 2 +- client/src/Components/chatComponent.jsx | 7 ++++--- 3 files changed, 6 insertions(+), 5 deletions(-) rename client/dist/assets/{index-BVNu1b7r.js => index-wBa-eXT0.js} (99%) diff --git a/client/dist/assets/index-BVNu1b7r.js b/client/dist/assets/index-wBa-eXT0.js similarity index 99% rename from client/dist/assets/index-BVNu1b7r.js rename to client/dist/assets/index-wBa-eXT0.js index 88a55483..57caff48 100644 --- a/client/dist/assets/index-BVNu1b7r.js +++ b/client/dist/assets/index-wBa-eXT0.js @@ -458,7 +458,7 @@ Error generating stack: `+i.message+` * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code} * @param {MediaStream} mediaStream - MediaStream object fetched using getUserMedia API or generated using captureStreamUntilEnded or WebAudio API. * @param {object} config - {webAssemblyPath:'webm-wasm.wasm',workerPath: 'webm-worker.js', frameRate: 30, width: 1920, height: 1080, bitrate: 1024, realtime: true} - */function _(E,g){(typeof ReadableStream>"u"||typeof WritableStream>"u")&&console.error("Following polyfill is strongly recommended: https://unpkg.com/@mattiasbuelens/web-streams-polyfill/dist/polyfill.min.js"),g=g||{},g.width=g.width||640,g.height=g.height||480,g.frameRate=g.frameRate||30,g.bitrate=g.bitrate||1200,g.realtime=g.realtime||!0;var $;function z(){return new ReadableStream({start:function(K){var Y=document.createElement("canvas"),q=document.createElement("video"),oe=!0;q.srcObject=E,q.muted=!0,q.height=g.height,q.width=g.width,q.volume=0,q.onplaying=function(){Y.width=g.width,Y.height=g.height;var te=Y.getContext("2d"),ne=1e3/g.frameRate,de=setInterval(function(){if($&&(clearInterval(de),K.close()),oe&&(oe=!1,g.onVideoProcessStarted&&g.onVideoProcessStarted()),te.drawImage(q,0,0),K._controlledReadableStream.state!=="closed")try{K.enqueue(te.getImageData(0,0,g.width,g.height))}catch{}},ne)},q.play()}})}var L;function B(K,Y){if(!g.workerPath&&!Y){$=!1,fetch("https://unpkg.com/webm-wasm@latest/dist/webm-worker.js").then(function(oe){oe.arrayBuffer().then(function(te){B(K,te)})});return}if(!g.workerPath&&Y instanceof ArrayBuffer){var q=new Blob([Y],{type:"text/javascript"});g.workerPath=u.createObjectURL(q)}g.workerPath||console.error("workerPath parameter is missing."),L=new Worker(g.workerPath),L.postMessage(g.webAssemblyPath||"https://unpkg.com/webm-wasm@latest/dist/webm-wasm.wasm"),L.addEventListener("message",function(oe){oe.data==="READY"?(L.postMessage({width:g.width,height:g.height,bitrate:g.bitrate||1200,timebaseDen:g.frameRate||30,realtime:g.realtime}),z().pipeTo(new WritableStream({write:function(te){if($){console.error("Got image, but recorder is finished!");return}L.postMessage(te.data.buffer,[te.data.buffer])}}))):oe.data&&(V||A.push(oe.data))})}this.record=function(){A=[],V=!1,this.blob=null,B(E),typeof g.initCallback=="function"&&g.initCallback()};var V;this.pause=function(){V=!0},this.resume=function(){V=!1};function M(K){if(!L){K&&K();return}L.addEventListener("message",function(Y){Y.data===null&&(L.terminate(),L=null,K&&K())}),L.postMessage(null)}var A=[];this.stop=function(K){$=!0;var Y=this;M(function(){Y.blob=new Blob(A,{type:"video/webm"}),K(Y.blob)})},this.name="WebAssemblyRecorder",this.toString=function(){return this.name},this.clearRecordedData=function(){A=[],V=!1,this.blob=null},this.blob=null}typeof t<"u"&&(t.WebAssemblyRecorder=_)})(p2);var NN=p2.exports;const ky=Nc(NN),DN=()=>d.jsxs(at,{sx:{display:"flex",alignItems:"center",color:"text.secondary"},children:[d.jsx(Er,{src:Pi,sx:{width:24,height:24,marginRight:1},alt:"Aria"}),d.jsxs("div",{style:{display:"flex"},children:[d.jsx("div",{style:{animation:"blink 1.4s infinite",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),d.jsx("div",{style:{animation:"blink 1.4s infinite 0.2s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),d.jsx("div",{style:{animation:"blink 1.4s infinite 0.4s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor"}})]})]}),zN=()=>{const{user:e,voiceEnabled:t,setVoiceEnabled:n}=p.useContext(vr),r=e==null?void 0:e.userId,[o,i]=p.useState(null),[a,s]=p.useState(0),[l,c]=p.useState(""),[u,f]=p.useState([]),[h,w]=p.useState(!1),[y,x]=p.useState(null),C=p.useRef([]),[v,m]=p.useState(!1),[b,R]=p.useState(""),[k,T]=p.useState(!1),[P,j]=p.useState(!1),[N,O]=p.useState(""),[F,W]=p.useState("info"),[U,G]=p.useState(null),ee=M=>{M.preventDefault(),n(!t)},J=M=>{if(!t||M===U){G(null),window.speechSynthesis.cancel();return}const A=window.speechSynthesis,K=new SpeechSynthesisUtterance(M),Y=()=>{const q=A.getVoices();console.log(q.map(te=>`${te.name} - ${te.lang} - ${te.gender}`));const oe=q.find(te=>te.name.includes("Microsoft Zira - English (United States)"));oe?K.voice=oe:console.log("No female voice found"),K.onend=()=>{G(null)},G(M),A.speak(K)};A.getVoices().length===0?A.onvoiceschanged=Y:Y()},re=p.useCallback(async()=>{if(r){m(!0),T(!0);try{const M=await fetch(`/api/ai/mental_health/welcome/${r}`,{method:"POST",headers:{"Content-Type":"application/json"}}),A=await M.json();console.log(A),M.ok?(R(A.message),t&&A.message&&J(A.message),i(A.chat_id),console.log(A.chat_id)):(console.error("Failed to fetch welcome message:",A),R("Error fetching welcome message."))}catch(M){console.error("Network or server error:",M)}finally{m(!1),T(!1)}}},[r]);p.useEffect(()=>{re()},[]);const I=(M,A)=>{A!=="clickaway"&&j(!1)},_=p.useCallback(async()=>{if(o!==null){m(!0);try{const M=await fetch(`/api/ai/mental_health/finalize/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"}}),A=await M.json();M.ok?(O("Chat finalized successfully"),W("success"),i(null),s(0),f([]),re()):(O("Failed to finalize chat"),W("error"))}catch{O("Error finalizing chat"),W("error")}finally{m(!1),j(!0)}}},[r,o,re]),E=p.useCallback(async()=>{if(!(!l.trim()||o===void 0)){console.log(o),m(!0);try{const M=JSON.stringify({prompt:l,turn_id:a}),A=await fetch(`/api/ai/mental_health/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"},body:M}),K=await A.json();console.log(K),A.ok?(f(Y=>[...Y,{message:l,sender:"user"},{message:K,sender:"agent"}]),t&&K&&J(K),s(Y=>Y+1),c("")):(console.error("Failed to send message:",K.error||"Unknown error occurred"),O(K.error||"An error occurred while sending the message."),W("error"),j(!0))}catch(M){console.error("Failed to send message:",M),O("Network or server error occurred."),W("error"),j(!0)}finally{m(!1)}}},[l,r,o,a]),g=()=>MediaRecorder.isTypeSupported?MediaRecorder.isTypeSupported("audio/webm; codecs=opus"):!1,$=()=>{navigator.mediaDevices.getUserMedia({audio:{sampleRate:44100,channelCount:1,volume:1,echoCancellation:!0}}).then(M=>{C.current=[];const A=g();let K;const Y={type:"audio",mimeType:A?"audio/webm; codecs=opus":"audio/wav"};A?K=new MediaRecorder(M,Y):(K=new ky(M,{type:"audio",mimeType:"audio/wav",recorderType:ky.StereoAudioRecorder,numberOfAudioChannels:1}),K.startRecording()),K.ondataavailable=q=>{console.log("Data available:",q.data.size),C.current.push(q.data)},K instanceof MediaRecorder&&K.start(),x(K),w(!0)}).catch(M=>{console.error("Error accessing microphone:",M),j(!0),O("Unable to access microphone: "+M.message),W("error")})},z=()=>{if(y){const M=y instanceof MediaRecorder?"stop":"stopRecording";y[M](),y.onstop=()=>{L(C.current,{type:y.mimeType}),w(!1),x(null)},y.stop()}},L=()=>{const M=y.mimeType;console.log("Audio chunks size:",C.current.reduce((Y,q)=>Y+q.size,0));const A=new Blob(C.current,{type:M});if(A.size===0){console.error("Audio Blob is empty"),O("Recording is empty. Please try again."),W("error"),j(!0);return}console.log(`Sending audio blob of size: ${A.size} bytes`);const K=new FormData;K.append("audio",A),m(!0),Oe.post("/api/ai/mental_health/voice-to-text",K,{headers:{"Content-Type":"multipart/form-data"}}).then(Y=>{const{message:q}=Y.data;c(q),E()}).catch(Y=>{console.error("Error uploading audio:",Y),j(!0),O("Error processing voice input: "+Y.message),W("error")}).finally(()=>{m(!1)})},B=p.useCallback(M=>{const A=M.target.value;A.split(/\s+/).length>200?(c(Y=>Y.split(/\s+/).slice(0,200).join(" ")),O("Word limit reached. Only 200 words allowed."),W("warning"),j(!0)):c(A)},[]),V=M=>M===U?d.jsx(Lc,{}):d.jsx(_c,{});return d.jsxs(d.Fragment,{children:[d.jsx("style",{children:` + */function _(E,g){(typeof ReadableStream>"u"||typeof WritableStream>"u")&&console.error("Following polyfill is strongly recommended: https://unpkg.com/@mattiasbuelens/web-streams-polyfill/dist/polyfill.min.js"),g=g||{},g.width=g.width||640,g.height=g.height||480,g.frameRate=g.frameRate||30,g.bitrate=g.bitrate||1200,g.realtime=g.realtime||!0;var $;function z(){return new ReadableStream({start:function(K){var Y=document.createElement("canvas"),q=document.createElement("video"),oe=!0;q.srcObject=E,q.muted=!0,q.height=g.height,q.width=g.width,q.volume=0,q.onplaying=function(){Y.width=g.width,Y.height=g.height;var te=Y.getContext("2d"),ne=1e3/g.frameRate,de=setInterval(function(){if($&&(clearInterval(de),K.close()),oe&&(oe=!1,g.onVideoProcessStarted&&g.onVideoProcessStarted()),te.drawImage(q,0,0),K._controlledReadableStream.state!=="closed")try{K.enqueue(te.getImageData(0,0,g.width,g.height))}catch{}},ne)},q.play()}})}var L;function B(K,Y){if(!g.workerPath&&!Y){$=!1,fetch("https://unpkg.com/webm-wasm@latest/dist/webm-worker.js").then(function(oe){oe.arrayBuffer().then(function(te){B(K,te)})});return}if(!g.workerPath&&Y instanceof ArrayBuffer){var q=new Blob([Y],{type:"text/javascript"});g.workerPath=u.createObjectURL(q)}g.workerPath||console.error("workerPath parameter is missing."),L=new Worker(g.workerPath),L.postMessage(g.webAssemblyPath||"https://unpkg.com/webm-wasm@latest/dist/webm-wasm.wasm"),L.addEventListener("message",function(oe){oe.data==="READY"?(L.postMessage({width:g.width,height:g.height,bitrate:g.bitrate||1200,timebaseDen:g.frameRate||30,realtime:g.realtime}),z().pipeTo(new WritableStream({write:function(te){if($){console.error("Got image, but recorder is finished!");return}L.postMessage(te.data.buffer,[te.data.buffer])}}))):oe.data&&(V||A.push(oe.data))})}this.record=function(){A=[],V=!1,this.blob=null,B(E),typeof g.initCallback=="function"&&g.initCallback()};var V;this.pause=function(){V=!0},this.resume=function(){V=!1};function M(K){if(!L){K&&K();return}L.addEventListener("message",function(Y){Y.data===null&&(L.terminate(),L=null,K&&K())}),L.postMessage(null)}var A=[];this.stop=function(K){$=!0;var Y=this;M(function(){Y.blob=new Blob(A,{type:"video/webm"}),K(Y.blob)})},this.name="WebAssemblyRecorder",this.toString=function(){return this.name},this.clearRecordedData=function(){A=[],V=!1,this.blob=null},this.blob=null}typeof t<"u"&&(t.WebAssemblyRecorder=_)})(p2);var NN=p2.exports;const ky=Nc(NN),DN=()=>d.jsxs(at,{sx:{display:"flex",alignItems:"center",color:"text.secondary"},children:[d.jsx(Er,{src:Pi,sx:{width:24,height:24,marginRight:1},alt:"Aria"}),d.jsxs("div",{style:{display:"flex"},children:[d.jsx("div",{style:{animation:"blink 1.4s infinite",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),d.jsx("div",{style:{animation:"blink 1.4s infinite 0.2s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),d.jsx("div",{style:{animation:"blink 1.4s infinite 0.4s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor"}})]})]}),zN=()=>{const{user:e,voiceEnabled:t,setVoiceEnabled:n}=p.useContext(vr),r=e==null?void 0:e.userId,[o,i]=p.useState(null),[a,s]=p.useState(0),[l,c]=p.useState(""),[u,f]=p.useState([]),[h,w]=p.useState(!1),[y,x]=p.useState(null),C=p.useRef([]),[v,m]=p.useState(!1),[b,R]=p.useState(""),[k,T]=p.useState(!1),[P,j]=p.useState(!1),[N,O]=p.useState(""),[F,W]=p.useState("info"),[U,G]=p.useState(null),ee=M=>{M.preventDefault(),n(!t)},J=M=>{if(!t||M===U){G(null),window.speechSynthesis.cancel();return}const A=window.speechSynthesis,K=new SpeechSynthesisUtterance(M),Y=()=>{const q=A.getVoices();console.log(q.map(te=>`${te.name} - ${te.lang} - ${te.gender}`));const oe=q.find(te=>te.name.includes("Microsoft Zira - English (United States)"));oe?K.voice=oe:console.log("No female voice found"),K.onend=()=>{G(null)},G(M),A.speak(K)};A.getVoices().length===0?A.onvoiceschanged=Y:Y()},re=p.useCallback(async()=>{if(r){m(!0),T(!0);try{const M=await fetch(`/api/ai/mental_health/welcome/${r}`,{method:"POST",headers:{"Content-Type":"application/json"}}),A=await M.json();console.log(A),M.ok?(R(A.message),t&&A.message&&J(A.message),i(A.chat_id),console.log(A.chat_id)):(console.error("Failed to fetch welcome message:",A),R("Error fetching welcome message."))}catch(M){console.error("Network or server error:",M)}finally{m(!1),T(!1)}}},[r]);p.useEffect(()=>{re()},[]);const I=(M,A)=>{A!=="clickaway"&&j(!1)},_=p.useCallback(async()=>{if(o!==null){m(!0);try{const M=await fetch(`/api/ai/mental_health/finalize/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"}}),A=await M.json();M.ok?(O("Chat finalized successfully"),W("success"),i(null),s(0),f([]),re()):(O("Failed to finalize chat"),W("error"))}catch{O("Error finalizing chat"),W("error")}finally{m(!1),j(!0)}}},[r,o,re]),E=p.useCallback(async()=>{if(!(!l.trim()||o===void 0)){console.log(o),m(!0);try{const M=JSON.stringify({prompt:l,turn_id:a}),A=await fetch(`/api/ai/mental_health/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"},body:M}),K=await A.json();console.log(K),A.ok?(f(Y=>[...Y,{message:l,sender:"user"},{message:K,sender:"agent"}]),t&&K&&J(K),s(Y=>Y+1),c("")):(console.error("Failed to send message:",K.error||"Unknown error occurred"),O(K.error||"An error occurred while sending the message."),W("error"),j(!0))}catch(M){console.error("Failed to send message:",M),O("Network or server error occurred."),W("error"),j(!0)}finally{m(!1)}}},[l,r,o,a]),g=()=>MediaRecorder.isTypeSupported?MediaRecorder.isTypeSupported("audio/webm; codecs=opus"):!1,$=()=>{navigator.mediaDevices.getUserMedia({audio:{sampleRate:44100,channelCount:1,volume:1,echoCancellation:!0}}).then(M=>{C.current=[];const A=g();let K;const Y={type:"audio",mimeType:A?"audio/webm; codecs=opus":"audio/wav"};A?K=new MediaRecorder(M,Y):(K=new ky(M,{type:"audio",mimeType:"audio/wav",recorderType:ky.StereoAudioRecorder,numberOfAudioChannels:1}),K.startRecording()),K.ondataavailable=q=>{console.log("Data available:",q.data.size),C.current.push(q.data)},K instanceof MediaRecorder&&K.start(),x(K),w(!0)}).catch(M=>{console.error("Error accessing microphone:",M),j(!0),O("Unable to access microphone: "+M.message),W("error")})},z=()=>{if(y){y.onstop=()=>{L(C.current,{type:y.mimeType}),w(!1),x(null)};const M=y instanceof MediaRecorder?"stop":"stopRecording";y[M]()}},L=()=>{const M=y.mimeType;console.log("Audio chunks size:",C.current.reduce((Y,q)=>Y+q.size,0));const A=new Blob(C.current,{type:M});if(A.size===0){console.error("Audio Blob is empty"),O("Recording is empty. Please try again."),W("error"),j(!0);return}console.log(`Sending audio blob of size: ${A.size} bytes`);const K=new FormData;K.append("audio",A),m(!0),Oe.post("/api/ai/mental_health/voice-to-text",K,{headers:{"Content-Type":"multipart/form-data"}}).then(Y=>{const{message:q}=Y.data;c(q),E()}).catch(Y=>{console.error("Error uploading audio:",Y),j(!0),O("Error processing voice input: "+Y.message),W("error")}).finally(()=>{m(!1)})},B=p.useCallback(M=>{const A=M.target.value;A.split(/\s+/).length>200?(c(Y=>Y.split(/\s+/).slice(0,200).join(" ")),O("Word limit reached. Only 200 words allowed."),W("warning"),j(!0)):c(A)},[]),V=M=>M===U?d.jsx(Lc,{}):d.jsx(_c,{});return d.jsxs(d.Fragment,{children:[d.jsx("style",{children:` @keyframes blink { 0%, 100% { opacity: 0; } 50% { opacity: 1; } diff --git a/client/dist/index.html b/client/dist/index.html index 20129e68..735c5e49 100644 --- a/client/dist/index.html +++ b/client/dist/index.html @@ -10,7 +10,7 @@ content="Web site created using create-react-app" /> Mental Health App - + diff --git a/client/src/Components/chatComponent.jsx b/client/src/Components/chatComponent.jsx index 0d8387bc..f6670a37 100644 --- a/client/src/Components/chatComponent.jsx +++ b/client/src/Components/chatComponent.jsx @@ -261,14 +261,15 @@ const ChatComponent = () => { // Function to handle recording stop const stopRecording = () => { if (mediaRecorder) { - const stopFunction = mediaRecorder instanceof MediaRecorder ? 'stop' : 'stopRecording'; - mediaRecorder[stopFunction](); + + mediaRecorder.onstop = () => { sendAudioToServer(audioChunksRef.current, { type: mediaRecorder.mimeType }); // Ensure sendAudioToServer is called only after recording has fully stopped setIsRecording(false); setMediaRecorder(null); }; - mediaRecorder.stop(); // Stop recording, onstop will be triggered after this + const stopFunction = mediaRecorder instanceof MediaRecorder ? 'stop' : 'stopRecording'; + mediaRecorder[stopFunction](); // Stop recording, onstop will be triggered after this } }; From cd884cddbc35a94739bcc92944565a5cb5d56d93 Mon Sep 17 00:00:00 2001 From: DHRUMIL PATEL <123137675+dhrumilp12@users.noreply.github.com> Date: Tue, 25 Jun 2024 18:21:37 -0400 Subject: [PATCH 32/38] . --- .../{index-wBa-eXT0.js => index-BasONh0v.js} | 2 +- client/dist/index.html | 2 +- client/src/Components/chatComponent.jsx | 18 +++++++++++++----- 3 files changed, 15 insertions(+), 7 deletions(-) rename client/dist/assets/{index-wBa-eXT0.js => index-BasONh0v.js} (99%) diff --git a/client/dist/assets/index-wBa-eXT0.js b/client/dist/assets/index-BasONh0v.js similarity index 99% rename from client/dist/assets/index-wBa-eXT0.js rename to client/dist/assets/index-BasONh0v.js index 57caff48..54d81f9f 100644 --- a/client/dist/assets/index-wBa-eXT0.js +++ b/client/dist/assets/index-BasONh0v.js @@ -458,7 +458,7 @@ Error generating stack: `+i.message+` * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code} * @param {MediaStream} mediaStream - MediaStream object fetched using getUserMedia API or generated using captureStreamUntilEnded or WebAudio API. * @param {object} config - {webAssemblyPath:'webm-wasm.wasm',workerPath: 'webm-worker.js', frameRate: 30, width: 1920, height: 1080, bitrate: 1024, realtime: true} - */function _(E,g){(typeof ReadableStream>"u"||typeof WritableStream>"u")&&console.error("Following polyfill is strongly recommended: https://unpkg.com/@mattiasbuelens/web-streams-polyfill/dist/polyfill.min.js"),g=g||{},g.width=g.width||640,g.height=g.height||480,g.frameRate=g.frameRate||30,g.bitrate=g.bitrate||1200,g.realtime=g.realtime||!0;var $;function z(){return new ReadableStream({start:function(K){var Y=document.createElement("canvas"),q=document.createElement("video"),oe=!0;q.srcObject=E,q.muted=!0,q.height=g.height,q.width=g.width,q.volume=0,q.onplaying=function(){Y.width=g.width,Y.height=g.height;var te=Y.getContext("2d"),ne=1e3/g.frameRate,de=setInterval(function(){if($&&(clearInterval(de),K.close()),oe&&(oe=!1,g.onVideoProcessStarted&&g.onVideoProcessStarted()),te.drawImage(q,0,0),K._controlledReadableStream.state!=="closed")try{K.enqueue(te.getImageData(0,0,g.width,g.height))}catch{}},ne)},q.play()}})}var L;function B(K,Y){if(!g.workerPath&&!Y){$=!1,fetch("https://unpkg.com/webm-wasm@latest/dist/webm-worker.js").then(function(oe){oe.arrayBuffer().then(function(te){B(K,te)})});return}if(!g.workerPath&&Y instanceof ArrayBuffer){var q=new Blob([Y],{type:"text/javascript"});g.workerPath=u.createObjectURL(q)}g.workerPath||console.error("workerPath parameter is missing."),L=new Worker(g.workerPath),L.postMessage(g.webAssemblyPath||"https://unpkg.com/webm-wasm@latest/dist/webm-wasm.wasm"),L.addEventListener("message",function(oe){oe.data==="READY"?(L.postMessage({width:g.width,height:g.height,bitrate:g.bitrate||1200,timebaseDen:g.frameRate||30,realtime:g.realtime}),z().pipeTo(new WritableStream({write:function(te){if($){console.error("Got image, but recorder is finished!");return}L.postMessage(te.data.buffer,[te.data.buffer])}}))):oe.data&&(V||A.push(oe.data))})}this.record=function(){A=[],V=!1,this.blob=null,B(E),typeof g.initCallback=="function"&&g.initCallback()};var V;this.pause=function(){V=!0},this.resume=function(){V=!1};function M(K){if(!L){K&&K();return}L.addEventListener("message",function(Y){Y.data===null&&(L.terminate(),L=null,K&&K())}),L.postMessage(null)}var A=[];this.stop=function(K){$=!0;var Y=this;M(function(){Y.blob=new Blob(A,{type:"video/webm"}),K(Y.blob)})},this.name="WebAssemblyRecorder",this.toString=function(){return this.name},this.clearRecordedData=function(){A=[],V=!1,this.blob=null},this.blob=null}typeof t<"u"&&(t.WebAssemblyRecorder=_)})(p2);var NN=p2.exports;const ky=Nc(NN),DN=()=>d.jsxs(at,{sx:{display:"flex",alignItems:"center",color:"text.secondary"},children:[d.jsx(Er,{src:Pi,sx:{width:24,height:24,marginRight:1},alt:"Aria"}),d.jsxs("div",{style:{display:"flex"},children:[d.jsx("div",{style:{animation:"blink 1.4s infinite",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),d.jsx("div",{style:{animation:"blink 1.4s infinite 0.2s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),d.jsx("div",{style:{animation:"blink 1.4s infinite 0.4s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor"}})]})]}),zN=()=>{const{user:e,voiceEnabled:t,setVoiceEnabled:n}=p.useContext(vr),r=e==null?void 0:e.userId,[o,i]=p.useState(null),[a,s]=p.useState(0),[l,c]=p.useState(""),[u,f]=p.useState([]),[h,w]=p.useState(!1),[y,x]=p.useState(null),C=p.useRef([]),[v,m]=p.useState(!1),[b,R]=p.useState(""),[k,T]=p.useState(!1),[P,j]=p.useState(!1),[N,O]=p.useState(""),[F,W]=p.useState("info"),[U,G]=p.useState(null),ee=M=>{M.preventDefault(),n(!t)},J=M=>{if(!t||M===U){G(null),window.speechSynthesis.cancel();return}const A=window.speechSynthesis,K=new SpeechSynthesisUtterance(M),Y=()=>{const q=A.getVoices();console.log(q.map(te=>`${te.name} - ${te.lang} - ${te.gender}`));const oe=q.find(te=>te.name.includes("Microsoft Zira - English (United States)"));oe?K.voice=oe:console.log("No female voice found"),K.onend=()=>{G(null)},G(M),A.speak(K)};A.getVoices().length===0?A.onvoiceschanged=Y:Y()},re=p.useCallback(async()=>{if(r){m(!0),T(!0);try{const M=await fetch(`/api/ai/mental_health/welcome/${r}`,{method:"POST",headers:{"Content-Type":"application/json"}}),A=await M.json();console.log(A),M.ok?(R(A.message),t&&A.message&&J(A.message),i(A.chat_id),console.log(A.chat_id)):(console.error("Failed to fetch welcome message:",A),R("Error fetching welcome message."))}catch(M){console.error("Network or server error:",M)}finally{m(!1),T(!1)}}},[r]);p.useEffect(()=>{re()},[]);const I=(M,A)=>{A!=="clickaway"&&j(!1)},_=p.useCallback(async()=>{if(o!==null){m(!0);try{const M=await fetch(`/api/ai/mental_health/finalize/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"}}),A=await M.json();M.ok?(O("Chat finalized successfully"),W("success"),i(null),s(0),f([]),re()):(O("Failed to finalize chat"),W("error"))}catch{O("Error finalizing chat"),W("error")}finally{m(!1),j(!0)}}},[r,o,re]),E=p.useCallback(async()=>{if(!(!l.trim()||o===void 0)){console.log(o),m(!0);try{const M=JSON.stringify({prompt:l,turn_id:a}),A=await fetch(`/api/ai/mental_health/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"},body:M}),K=await A.json();console.log(K),A.ok?(f(Y=>[...Y,{message:l,sender:"user"},{message:K,sender:"agent"}]),t&&K&&J(K),s(Y=>Y+1),c("")):(console.error("Failed to send message:",K.error||"Unknown error occurred"),O(K.error||"An error occurred while sending the message."),W("error"),j(!0))}catch(M){console.error("Failed to send message:",M),O("Network or server error occurred."),W("error"),j(!0)}finally{m(!1)}}},[l,r,o,a]),g=()=>MediaRecorder.isTypeSupported?MediaRecorder.isTypeSupported("audio/webm; codecs=opus"):!1,$=()=>{navigator.mediaDevices.getUserMedia({audio:{sampleRate:44100,channelCount:1,volume:1,echoCancellation:!0}}).then(M=>{C.current=[];const A=g();let K;const Y={type:"audio",mimeType:A?"audio/webm; codecs=opus":"audio/wav"};A?K=new MediaRecorder(M,Y):(K=new ky(M,{type:"audio",mimeType:"audio/wav",recorderType:ky.StereoAudioRecorder,numberOfAudioChannels:1}),K.startRecording()),K.ondataavailable=q=>{console.log("Data available:",q.data.size),C.current.push(q.data)},K instanceof MediaRecorder&&K.start(),x(K),w(!0)}).catch(M=>{console.error("Error accessing microphone:",M),j(!0),O("Unable to access microphone: "+M.message),W("error")})},z=()=>{if(y){y.onstop=()=>{L(C.current,{type:y.mimeType}),w(!1),x(null)};const M=y instanceof MediaRecorder?"stop":"stopRecording";y[M]()}},L=()=>{const M=y.mimeType;console.log("Audio chunks size:",C.current.reduce((Y,q)=>Y+q.size,0));const A=new Blob(C.current,{type:M});if(A.size===0){console.error("Audio Blob is empty"),O("Recording is empty. Please try again."),W("error"),j(!0);return}console.log(`Sending audio blob of size: ${A.size} bytes`);const K=new FormData;K.append("audio",A),m(!0),Oe.post("/api/ai/mental_health/voice-to-text",K,{headers:{"Content-Type":"multipart/form-data"}}).then(Y=>{const{message:q}=Y.data;c(q),E()}).catch(Y=>{console.error("Error uploading audio:",Y),j(!0),O("Error processing voice input: "+Y.message),W("error")}).finally(()=>{m(!1)})},B=p.useCallback(M=>{const A=M.target.value;A.split(/\s+/).length>200?(c(Y=>Y.split(/\s+/).slice(0,200).join(" ")),O("Word limit reached. Only 200 words allowed."),W("warning"),j(!0)):c(A)},[]),V=M=>M===U?d.jsx(Lc,{}):d.jsx(_c,{});return d.jsxs(d.Fragment,{children:[d.jsx("style",{children:` + */function _(E,g){(typeof ReadableStream>"u"||typeof WritableStream>"u")&&console.error("Following polyfill is strongly recommended: https://unpkg.com/@mattiasbuelens/web-streams-polyfill/dist/polyfill.min.js"),g=g||{},g.width=g.width||640,g.height=g.height||480,g.frameRate=g.frameRate||30,g.bitrate=g.bitrate||1200,g.realtime=g.realtime||!0;var $;function z(){return new ReadableStream({start:function(K){var Y=document.createElement("canvas"),q=document.createElement("video"),oe=!0;q.srcObject=E,q.muted=!0,q.height=g.height,q.width=g.width,q.volume=0,q.onplaying=function(){Y.width=g.width,Y.height=g.height;var te=Y.getContext("2d"),ne=1e3/g.frameRate,de=setInterval(function(){if($&&(clearInterval(de),K.close()),oe&&(oe=!1,g.onVideoProcessStarted&&g.onVideoProcessStarted()),te.drawImage(q,0,0),K._controlledReadableStream.state!=="closed")try{K.enqueue(te.getImageData(0,0,g.width,g.height))}catch{}},ne)},q.play()}})}var L;function B(K,Y){if(!g.workerPath&&!Y){$=!1,fetch("https://unpkg.com/webm-wasm@latest/dist/webm-worker.js").then(function(oe){oe.arrayBuffer().then(function(te){B(K,te)})});return}if(!g.workerPath&&Y instanceof ArrayBuffer){var q=new Blob([Y],{type:"text/javascript"});g.workerPath=u.createObjectURL(q)}g.workerPath||console.error("workerPath parameter is missing."),L=new Worker(g.workerPath),L.postMessage(g.webAssemblyPath||"https://unpkg.com/webm-wasm@latest/dist/webm-wasm.wasm"),L.addEventListener("message",function(oe){oe.data==="READY"?(L.postMessage({width:g.width,height:g.height,bitrate:g.bitrate||1200,timebaseDen:g.frameRate||30,realtime:g.realtime}),z().pipeTo(new WritableStream({write:function(te){if($){console.error("Got image, but recorder is finished!");return}L.postMessage(te.data.buffer,[te.data.buffer])}}))):oe.data&&(V||A.push(oe.data))})}this.record=function(){A=[],V=!1,this.blob=null,B(E),typeof g.initCallback=="function"&&g.initCallback()};var V;this.pause=function(){V=!0},this.resume=function(){V=!1};function M(K){if(!L){K&&K();return}L.addEventListener("message",function(Y){Y.data===null&&(L.terminate(),L=null,K&&K())}),L.postMessage(null)}var A=[];this.stop=function(K){$=!0;var Y=this;M(function(){Y.blob=new Blob(A,{type:"video/webm"}),K(Y.blob)})},this.name="WebAssemblyRecorder",this.toString=function(){return this.name},this.clearRecordedData=function(){A=[],V=!1,this.blob=null},this.blob=null}typeof t<"u"&&(t.WebAssemblyRecorder=_)})(p2);var NN=p2.exports;const ky=Nc(NN),DN=()=>d.jsxs(at,{sx:{display:"flex",alignItems:"center",color:"text.secondary"},children:[d.jsx(Er,{src:Pi,sx:{width:24,height:24,marginRight:1},alt:"Aria"}),d.jsxs("div",{style:{display:"flex"},children:[d.jsx("div",{style:{animation:"blink 1.4s infinite",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),d.jsx("div",{style:{animation:"blink 1.4s infinite 0.2s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),d.jsx("div",{style:{animation:"blink 1.4s infinite 0.4s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor"}})]})]}),zN=()=>{const{user:e,voiceEnabled:t,setVoiceEnabled:n}=p.useContext(vr),r=e==null?void 0:e.userId,[o,i]=p.useState(null),[a,s]=p.useState(0),[l,c]=p.useState(""),[u,f]=p.useState([]),[h,w]=p.useState(!1),[y,x]=p.useState(null),C=p.useRef([]),[v,m]=p.useState(!1),[b,R]=p.useState(""),[k,T]=p.useState(!1),[P,j]=p.useState(!1),[N,O]=p.useState(""),[F,W]=p.useState("info"),[U,G]=p.useState(null),ee=M=>{M.preventDefault(),n(!t)},J=M=>{if(!t||M===U){G(null),window.speechSynthesis.cancel();return}const A=window.speechSynthesis,K=new SpeechSynthesisUtterance(M),Y=()=>{const q=A.getVoices();console.log(q.map(te=>`${te.name} - ${te.lang} - ${te.gender}`));const oe=q.find(te=>te.name.includes("Microsoft Zira - English (United States)"));oe?K.voice=oe:console.log("No female voice found"),K.onend=()=>{G(null)},G(M),A.speak(K)};A.getVoices().length===0?A.onvoiceschanged=Y:Y()},re=p.useCallback(async()=>{if(r){m(!0),T(!0);try{const M=await fetch(`/api/ai/mental_health/welcome/${r}`,{method:"POST",headers:{"Content-Type":"application/json"}}),A=await M.json();console.log(A),M.ok?(R(A.message),t&&A.message&&J(A.message),i(A.chat_id),console.log(A.chat_id)):(console.error("Failed to fetch welcome message:",A),R("Error fetching welcome message."))}catch(M){console.error("Network or server error:",M)}finally{m(!1),T(!1)}}},[r]);p.useEffect(()=>{re()},[]);const I=(M,A)=>{A!=="clickaway"&&j(!1)},_=p.useCallback(async()=>{if(o!==null){m(!0);try{const M=await fetch(`/api/ai/mental_health/finalize/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"}}),A=await M.json();M.ok?(O("Chat finalized successfully"),W("success"),i(null),s(0),f([]),re()):(O("Failed to finalize chat"),W("error"))}catch{O("Error finalizing chat"),W("error")}finally{m(!1),j(!0)}}},[r,o,re]),E=p.useCallback(async()=>{if(!(!l.trim()||o===void 0)){console.log(o),m(!0);try{const M=JSON.stringify({prompt:l,turn_id:a}),A=await fetch(`/api/ai/mental_health/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"},body:M}),K=await A.json();console.log(K),A.ok?(f(Y=>[...Y,{message:l,sender:"user"},{message:K,sender:"agent"}]),t&&K&&J(K),s(Y=>Y+1),c("")):(console.error("Failed to send message:",K.error||"Unknown error occurred"),O(K.error||"An error occurred while sending the message."),W("error"),j(!0))}catch(M){console.error("Failed to send message:",M),O("Network or server error occurred."),W("error"),j(!0)}finally{m(!1)}}},[l,r,o,a]),g=()=>MediaRecorder.isTypeSupported?MediaRecorder.isTypeSupported("audio/webm; codecs=opus"):!1,$=()=>{navigator.mediaDevices.getUserMedia({audio:{sampleRate:44100,channelCount:1,volume:1,echoCancellation:!0}}).then(M=>{C.current=[];const A=g();let K;const Y={type:"audio",mimeType:A?"audio/webm; codecs=opus":"audio/wav"};A?K=new MediaRecorder(M,Y):(K=new ky(M,{type:"audio",mimeType:"audio/wav",recorderType:ky.StereoAudioRecorder,numberOfAudioChannels:1}),K.startRecording()),K.ondataavailable=q=>{console.log("Data available:",q.data.size),C.current.push(q.data)},K instanceof MediaRecorder&&K.start(),x(K),w(!0)}).catch(M=>{console.error("Error accessing microphone:",M),j(!0),O("Unable to access microphone: "+M.message),W("error")})},z=()=>{if(y){const M=y instanceof MediaRecorder?"stop":"stopRecording";y.onstop=()=>{y.stream.getTracks().forEach(A=>A.stop()),L(C.current,{type:y.mimeType}),w(!1),x(null)},console.log("Stopping recording:",M),M==="stopRecording"?y[M](()=>{y.stream.getTracks().forEach(A=>A.stop())}):y[M]()}},L=()=>{const M=y.mimeType;console.log("Audio chunks size:",C.current.reduce((Y,q)=>Y+q.size,0));const A=new Blob(C.current,{type:M});if(A.size===0){console.error("Audio Blob is empty"),O("Recording is empty. Please try again."),W("error"),j(!0);return}console.log(`Sending audio blob of size: ${A.size} bytes`);const K=new FormData;K.append("audio",A),m(!0),Oe.post("/api/ai/mental_health/voice-to-text",K,{headers:{"Content-Type":"multipart/form-data"}}).then(Y=>{const{message:q}=Y.data;c(q),E()}).catch(Y=>{console.error("Error uploading audio:",Y),j(!0),O("Error processing voice input: "+Y.message),W("error")}).finally(()=>{m(!1)})},B=p.useCallback(M=>{const A=M.target.value;A.split(/\s+/).length>200?(c(Y=>Y.split(/\s+/).slice(0,200).join(" ")),O("Word limit reached. Only 200 words allowed."),W("warning"),j(!0)):c(A)},[]),V=M=>M===U?d.jsx(Lc,{}):d.jsx(_c,{});return d.jsxs(d.Fragment,{children:[d.jsx("style",{children:` @keyframes blink { 0%, 100% { opacity: 0; } 50% { opacity: 1; } diff --git a/client/dist/index.html b/client/dist/index.html index 735c5e49..e8012955 100644 --- a/client/dist/index.html +++ b/client/dist/index.html @@ -10,7 +10,7 @@ content="Web site created using create-react-app" /> Mental Health App - + diff --git a/client/src/Components/chatComponent.jsx b/client/src/Components/chatComponent.jsx index f6670a37..245540f4 100644 --- a/client/src/Components/chatComponent.jsx +++ b/client/src/Components/chatComponent.jsx @@ -261,17 +261,25 @@ const ChatComponent = () => { // Function to handle recording stop const stopRecording = () => { if (mediaRecorder) { - - + const stopFunction = mediaRecorder instanceof MediaRecorder ? 'stop' : 'stopRecording'; mediaRecorder.onstop = () => { - sendAudioToServer(audioChunksRef.current, { type: mediaRecorder.mimeType }); // Ensure sendAudioToServer is called only after recording has fully stopped + // Stop all tracks to ensure microphone is released + mediaRecorder.stream.getTracks().forEach(track => track.stop()); + sendAudioToServer(audioChunksRef.current, { type: mediaRecorder.mimeType }); setIsRecording(false); setMediaRecorder(null); }; - const stopFunction = mediaRecorder instanceof MediaRecorder ? 'stop' : 'stopRecording'; - mediaRecorder[stopFunction](); // Stop recording, onstop will be triggered after this + console.log('Stopping recording:', stopFunction); + if (stopFunction === 'stopRecording') { + mediaRecorder[stopFunction](() => { + mediaRecorder.stream.getTracks().forEach(track => track.stop()); + }); + } else { + mediaRecorder[stopFunction](); + } } }; + const sendAudioToServer = () => { const mimeType = mediaRecorder.mimeType; // Ensure this is defined in your recorder setup From cd755e5f5f14e171e2d10c6c17d77c0168be7691 Mon Sep 17 00:00:00 2001 From: DHRUMIL PATEL <123137675+dhrumilp12@users.noreply.github.com> Date: Tue, 25 Jun 2024 23:56:31 -0400 Subject: [PATCH 33/38] . --- .../{index-BasONh0v.js => index-Cztio95N.js} | 2 +- client/dist/index.html | 2 +- client/src/Components/chatComponent.jsx | 21 ++++++++++--------- 3 files changed, 13 insertions(+), 12 deletions(-) rename client/dist/assets/{index-BasONh0v.js => index-Cztio95N.js} (99%) diff --git a/client/dist/assets/index-BasONh0v.js b/client/dist/assets/index-Cztio95N.js similarity index 99% rename from client/dist/assets/index-BasONh0v.js rename to client/dist/assets/index-Cztio95N.js index 54d81f9f..bb51a3c7 100644 --- a/client/dist/assets/index-BasONh0v.js +++ b/client/dist/assets/index-Cztio95N.js @@ -458,7 +458,7 @@ Error generating stack: `+i.message+` * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code} * @param {MediaStream} mediaStream - MediaStream object fetched using getUserMedia API or generated using captureStreamUntilEnded or WebAudio API. * @param {object} config - {webAssemblyPath:'webm-wasm.wasm',workerPath: 'webm-worker.js', frameRate: 30, width: 1920, height: 1080, bitrate: 1024, realtime: true} - */function _(E,g){(typeof ReadableStream>"u"||typeof WritableStream>"u")&&console.error("Following polyfill is strongly recommended: https://unpkg.com/@mattiasbuelens/web-streams-polyfill/dist/polyfill.min.js"),g=g||{},g.width=g.width||640,g.height=g.height||480,g.frameRate=g.frameRate||30,g.bitrate=g.bitrate||1200,g.realtime=g.realtime||!0;var $;function z(){return new ReadableStream({start:function(K){var Y=document.createElement("canvas"),q=document.createElement("video"),oe=!0;q.srcObject=E,q.muted=!0,q.height=g.height,q.width=g.width,q.volume=0,q.onplaying=function(){Y.width=g.width,Y.height=g.height;var te=Y.getContext("2d"),ne=1e3/g.frameRate,de=setInterval(function(){if($&&(clearInterval(de),K.close()),oe&&(oe=!1,g.onVideoProcessStarted&&g.onVideoProcessStarted()),te.drawImage(q,0,0),K._controlledReadableStream.state!=="closed")try{K.enqueue(te.getImageData(0,0,g.width,g.height))}catch{}},ne)},q.play()}})}var L;function B(K,Y){if(!g.workerPath&&!Y){$=!1,fetch("https://unpkg.com/webm-wasm@latest/dist/webm-worker.js").then(function(oe){oe.arrayBuffer().then(function(te){B(K,te)})});return}if(!g.workerPath&&Y instanceof ArrayBuffer){var q=new Blob([Y],{type:"text/javascript"});g.workerPath=u.createObjectURL(q)}g.workerPath||console.error("workerPath parameter is missing."),L=new Worker(g.workerPath),L.postMessage(g.webAssemblyPath||"https://unpkg.com/webm-wasm@latest/dist/webm-wasm.wasm"),L.addEventListener("message",function(oe){oe.data==="READY"?(L.postMessage({width:g.width,height:g.height,bitrate:g.bitrate||1200,timebaseDen:g.frameRate||30,realtime:g.realtime}),z().pipeTo(new WritableStream({write:function(te){if($){console.error("Got image, but recorder is finished!");return}L.postMessage(te.data.buffer,[te.data.buffer])}}))):oe.data&&(V||A.push(oe.data))})}this.record=function(){A=[],V=!1,this.blob=null,B(E),typeof g.initCallback=="function"&&g.initCallback()};var V;this.pause=function(){V=!0},this.resume=function(){V=!1};function M(K){if(!L){K&&K();return}L.addEventListener("message",function(Y){Y.data===null&&(L.terminate(),L=null,K&&K())}),L.postMessage(null)}var A=[];this.stop=function(K){$=!0;var Y=this;M(function(){Y.blob=new Blob(A,{type:"video/webm"}),K(Y.blob)})},this.name="WebAssemblyRecorder",this.toString=function(){return this.name},this.clearRecordedData=function(){A=[],V=!1,this.blob=null},this.blob=null}typeof t<"u"&&(t.WebAssemblyRecorder=_)})(p2);var NN=p2.exports;const ky=Nc(NN),DN=()=>d.jsxs(at,{sx:{display:"flex",alignItems:"center",color:"text.secondary"},children:[d.jsx(Er,{src:Pi,sx:{width:24,height:24,marginRight:1},alt:"Aria"}),d.jsxs("div",{style:{display:"flex"},children:[d.jsx("div",{style:{animation:"blink 1.4s infinite",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),d.jsx("div",{style:{animation:"blink 1.4s infinite 0.2s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),d.jsx("div",{style:{animation:"blink 1.4s infinite 0.4s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor"}})]})]}),zN=()=>{const{user:e,voiceEnabled:t,setVoiceEnabled:n}=p.useContext(vr),r=e==null?void 0:e.userId,[o,i]=p.useState(null),[a,s]=p.useState(0),[l,c]=p.useState(""),[u,f]=p.useState([]),[h,w]=p.useState(!1),[y,x]=p.useState(null),C=p.useRef([]),[v,m]=p.useState(!1),[b,R]=p.useState(""),[k,T]=p.useState(!1),[P,j]=p.useState(!1),[N,O]=p.useState(""),[F,W]=p.useState("info"),[U,G]=p.useState(null),ee=M=>{M.preventDefault(),n(!t)},J=M=>{if(!t||M===U){G(null),window.speechSynthesis.cancel();return}const A=window.speechSynthesis,K=new SpeechSynthesisUtterance(M),Y=()=>{const q=A.getVoices();console.log(q.map(te=>`${te.name} - ${te.lang} - ${te.gender}`));const oe=q.find(te=>te.name.includes("Microsoft Zira - English (United States)"));oe?K.voice=oe:console.log("No female voice found"),K.onend=()=>{G(null)},G(M),A.speak(K)};A.getVoices().length===0?A.onvoiceschanged=Y:Y()},re=p.useCallback(async()=>{if(r){m(!0),T(!0);try{const M=await fetch(`/api/ai/mental_health/welcome/${r}`,{method:"POST",headers:{"Content-Type":"application/json"}}),A=await M.json();console.log(A),M.ok?(R(A.message),t&&A.message&&J(A.message),i(A.chat_id),console.log(A.chat_id)):(console.error("Failed to fetch welcome message:",A),R("Error fetching welcome message."))}catch(M){console.error("Network or server error:",M)}finally{m(!1),T(!1)}}},[r]);p.useEffect(()=>{re()},[]);const I=(M,A)=>{A!=="clickaway"&&j(!1)},_=p.useCallback(async()=>{if(o!==null){m(!0);try{const M=await fetch(`/api/ai/mental_health/finalize/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"}}),A=await M.json();M.ok?(O("Chat finalized successfully"),W("success"),i(null),s(0),f([]),re()):(O("Failed to finalize chat"),W("error"))}catch{O("Error finalizing chat"),W("error")}finally{m(!1),j(!0)}}},[r,o,re]),E=p.useCallback(async()=>{if(!(!l.trim()||o===void 0)){console.log(o),m(!0);try{const M=JSON.stringify({prompt:l,turn_id:a}),A=await fetch(`/api/ai/mental_health/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"},body:M}),K=await A.json();console.log(K),A.ok?(f(Y=>[...Y,{message:l,sender:"user"},{message:K,sender:"agent"}]),t&&K&&J(K),s(Y=>Y+1),c("")):(console.error("Failed to send message:",K.error||"Unknown error occurred"),O(K.error||"An error occurred while sending the message."),W("error"),j(!0))}catch(M){console.error("Failed to send message:",M),O("Network or server error occurred."),W("error"),j(!0)}finally{m(!1)}}},[l,r,o,a]),g=()=>MediaRecorder.isTypeSupported?MediaRecorder.isTypeSupported("audio/webm; codecs=opus"):!1,$=()=>{navigator.mediaDevices.getUserMedia({audio:{sampleRate:44100,channelCount:1,volume:1,echoCancellation:!0}}).then(M=>{C.current=[];const A=g();let K;const Y={type:"audio",mimeType:A?"audio/webm; codecs=opus":"audio/wav"};A?K=new MediaRecorder(M,Y):(K=new ky(M,{type:"audio",mimeType:"audio/wav",recorderType:ky.StereoAudioRecorder,numberOfAudioChannels:1}),K.startRecording()),K.ondataavailable=q=>{console.log("Data available:",q.data.size),C.current.push(q.data)},K instanceof MediaRecorder&&K.start(),x(K),w(!0)}).catch(M=>{console.error("Error accessing microphone:",M),j(!0),O("Unable to access microphone: "+M.message),W("error")})},z=()=>{if(y){const M=y instanceof MediaRecorder?"stop":"stopRecording";y.onstop=()=>{y.stream.getTracks().forEach(A=>A.stop()),L(C.current,{type:y.mimeType}),w(!1),x(null)},console.log("Stopping recording:",M),M==="stopRecording"?y[M](()=>{y.stream.getTracks().forEach(A=>A.stop())}):y[M]()}},L=()=>{const M=y.mimeType;console.log("Audio chunks size:",C.current.reduce((Y,q)=>Y+q.size,0));const A=new Blob(C.current,{type:M});if(A.size===0){console.error("Audio Blob is empty"),O("Recording is empty. Please try again."),W("error"),j(!0);return}console.log(`Sending audio blob of size: ${A.size} bytes`);const K=new FormData;K.append("audio",A),m(!0),Oe.post("/api/ai/mental_health/voice-to-text",K,{headers:{"Content-Type":"multipart/form-data"}}).then(Y=>{const{message:q}=Y.data;c(q),E()}).catch(Y=>{console.error("Error uploading audio:",Y),j(!0),O("Error processing voice input: "+Y.message),W("error")}).finally(()=>{m(!1)})},B=p.useCallback(M=>{const A=M.target.value;A.split(/\s+/).length>200?(c(Y=>Y.split(/\s+/).slice(0,200).join(" ")),O("Word limit reached. Only 200 words allowed."),W("warning"),j(!0)):c(A)},[]),V=M=>M===U?d.jsx(Lc,{}):d.jsx(_c,{});return d.jsxs(d.Fragment,{children:[d.jsx("style",{children:` + */function _(E,g){(typeof ReadableStream>"u"||typeof WritableStream>"u")&&console.error("Following polyfill is strongly recommended: https://unpkg.com/@mattiasbuelens/web-streams-polyfill/dist/polyfill.min.js"),g=g||{},g.width=g.width||640,g.height=g.height||480,g.frameRate=g.frameRate||30,g.bitrate=g.bitrate||1200,g.realtime=g.realtime||!0;var $;function z(){return new ReadableStream({start:function(K){var Y=document.createElement("canvas"),q=document.createElement("video"),oe=!0;q.srcObject=E,q.muted=!0,q.height=g.height,q.width=g.width,q.volume=0,q.onplaying=function(){Y.width=g.width,Y.height=g.height;var te=Y.getContext("2d"),ne=1e3/g.frameRate,de=setInterval(function(){if($&&(clearInterval(de),K.close()),oe&&(oe=!1,g.onVideoProcessStarted&&g.onVideoProcessStarted()),te.drawImage(q,0,0),K._controlledReadableStream.state!=="closed")try{K.enqueue(te.getImageData(0,0,g.width,g.height))}catch{}},ne)},q.play()}})}var L;function B(K,Y){if(!g.workerPath&&!Y){$=!1,fetch("https://unpkg.com/webm-wasm@latest/dist/webm-worker.js").then(function(oe){oe.arrayBuffer().then(function(te){B(K,te)})});return}if(!g.workerPath&&Y instanceof ArrayBuffer){var q=new Blob([Y],{type:"text/javascript"});g.workerPath=u.createObjectURL(q)}g.workerPath||console.error("workerPath parameter is missing."),L=new Worker(g.workerPath),L.postMessage(g.webAssemblyPath||"https://unpkg.com/webm-wasm@latest/dist/webm-wasm.wasm"),L.addEventListener("message",function(oe){oe.data==="READY"?(L.postMessage({width:g.width,height:g.height,bitrate:g.bitrate||1200,timebaseDen:g.frameRate||30,realtime:g.realtime}),z().pipeTo(new WritableStream({write:function(te){if($){console.error("Got image, but recorder is finished!");return}L.postMessage(te.data.buffer,[te.data.buffer])}}))):oe.data&&(V||A.push(oe.data))})}this.record=function(){A=[],V=!1,this.blob=null,B(E),typeof g.initCallback=="function"&&g.initCallback()};var V;this.pause=function(){V=!0},this.resume=function(){V=!1};function M(K){if(!L){K&&K();return}L.addEventListener("message",function(Y){Y.data===null&&(L.terminate(),L=null,K&&K())}),L.postMessage(null)}var A=[];this.stop=function(K){$=!0;var Y=this;M(function(){Y.blob=new Blob(A,{type:"video/webm"}),K(Y.blob)})},this.name="WebAssemblyRecorder",this.toString=function(){return this.name},this.clearRecordedData=function(){A=[],V=!1,this.blob=null},this.blob=null}typeof t<"u"&&(t.WebAssemblyRecorder=_)})(p2);var NN=p2.exports;const ky=Nc(NN),DN=()=>d.jsxs(at,{sx:{display:"flex",alignItems:"center",color:"text.secondary"},children:[d.jsx(Er,{src:Pi,sx:{width:24,height:24,marginRight:1},alt:"Aria"}),d.jsxs("div",{style:{display:"flex"},children:[d.jsx("div",{style:{animation:"blink 1.4s infinite",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),d.jsx("div",{style:{animation:"blink 1.4s infinite 0.2s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),d.jsx("div",{style:{animation:"blink 1.4s infinite 0.4s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor"}})]})]}),zN=()=>{const{user:e,voiceEnabled:t,setVoiceEnabled:n}=p.useContext(vr),r=e==null?void 0:e.userId,[o,i]=p.useState(null),[a,s]=p.useState(0),[l,c]=p.useState(""),[u,f]=p.useState([]),[h,w]=p.useState(!1),[y,x]=p.useState(null),C=p.useRef([]),[v,m]=p.useState(!1),[b,R]=p.useState(""),[k,T]=p.useState(!1),[P,j]=p.useState(!1),[N,O]=p.useState(""),[F,W]=p.useState("info"),[U,G]=p.useState(null),ee=M=>{M.preventDefault(),n(!t)},J=M=>{if(!t||M===U){G(null),window.speechSynthesis.cancel();return}const A=window.speechSynthesis,K=new SpeechSynthesisUtterance(M),Y=()=>{const q=A.getVoices();console.log(q.map(te=>`${te.name} - ${te.lang} - ${te.gender}`));const oe=q.find(te=>te.name.includes("Microsoft Zira - English (United States)"));oe?K.voice=oe:console.log("No female voice found"),K.onend=()=>{G(null)},G(M),A.speak(K)};A.getVoices().length===0?A.onvoiceschanged=Y:Y()},re=p.useCallback(async()=>{if(r){m(!0),T(!0);try{const M=await fetch(`/api/ai/mental_health/welcome/${r}`,{method:"POST",headers:{"Content-Type":"application/json"}}),A=await M.json();console.log(A),M.ok?(R(A.message),t&&A.message&&J(A.message),i(A.chat_id),console.log(A.chat_id)):(console.error("Failed to fetch welcome message:",A),R("Error fetching welcome message."))}catch(M){console.error("Network or server error:",M)}finally{m(!1),T(!1)}}},[r]);p.useEffect(()=>{re()},[]);const I=(M,A)=>{A!=="clickaway"&&j(!1)},_=p.useCallback(async()=>{if(o!==null){m(!0);try{const M=await fetch(`/api/ai/mental_health/finalize/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"}}),A=await M.json();M.ok?(O("Chat finalized successfully"),W("success"),i(null),s(0),f([]),re()):(O("Failed to finalize chat"),W("error"))}catch{O("Error finalizing chat"),W("error")}finally{m(!1),j(!0)}}},[r,o,re]),E=p.useCallback(async()=>{if(!(!l.trim()||o===void 0)){console.log(o),m(!0);try{const M=JSON.stringify({prompt:l,turn_id:a}),A=await fetch(`/api/ai/mental_health/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"},body:M}),K=await A.json();console.log(K),A.ok?(f(Y=>[...Y,{message:l,sender:"user"},{message:K,sender:"agent"}]),t&&K&&J(K),s(Y=>Y+1),c("")):(console.error("Failed to send message:",K.error||"Unknown error occurred"),O(K.error||"An error occurred while sending the message."),W("error"),j(!0))}catch(M){console.error("Failed to send message:",M),O("Network or server error occurred."),W("error"),j(!0)}finally{m(!1)}}},[l,r,o,a]),g=()=>MediaRecorder.isTypeSupported?MediaRecorder.isTypeSupported("audio/webm; codecs=opus"):!1,$=()=>{navigator.mediaDevices.getUserMedia({audio:{sampleRate:44100,channelCount:1,volume:1,echoCancellation:!0}}).then(M=>{C.current=[];const A=g();let K;const Y={type:"audio",mimeType:A?"audio/webm; codecs=opus":"audio/wav"};A?K=new MediaRecorder(M,Y):(K=new ky(M,{type:"audio",mimeType:"audio/wav",recorderType:ky.StereoAudioRecorder,numberOfAudioChannels:1}),K.startRecording()),K.ondataavailable=q=>{console.log("Data available:",q.data.size),C.current.push(q.data)},K instanceof MediaRecorder&&K.start(),x(K),w(!0)}).catch(M=>{console.error("Error accessing microphone:",M),j(!0),O("Unable to access microphone: "+M.message),W("error")})},z=()=>{y&&(y.stream&&y.stream.active&&y.stream.getTracks().forEach(M=>{M.stop()}),y.onstop=()=>{L(C.current,{type:y.mimeType}),w(!1),x(null)},y instanceof MediaRecorder?y.stop():typeof y.stopRecording=="function"&&y.stopRecording())},L=()=>{const M=y.mimeType;console.log("Audio chunks size:",C.current.reduce((Y,q)=>Y+q.size,0));const A=new Blob(C.current,{type:M});if(A.size===0){console.error("Audio Blob is empty"),O("Recording is empty. Please try again."),W("error"),j(!0);return}console.log(`Sending audio blob of size: ${A.size} bytes`);const K=new FormData;K.append("audio",A),m(!0),Oe.post("/api/ai/mental_health/voice-to-text",K,{headers:{"Content-Type":"multipart/form-data"}}).then(Y=>{const{message:q}=Y.data;c(q),E()}).catch(Y=>{console.error("Error uploading audio:",Y),j(!0),O("Error processing voice input: "+Y.message),W("error")}).finally(()=>{m(!1)})},B=p.useCallback(M=>{const A=M.target.value;A.split(/\s+/).length>200?(c(Y=>Y.split(/\s+/).slice(0,200).join(" ")),O("Word limit reached. Only 200 words allowed."),W("warning"),j(!0)):c(A)},[]),V=M=>M===U?d.jsx(Lc,{}):d.jsx(_c,{});return d.jsxs(d.Fragment,{children:[d.jsx("style",{children:` @keyframes blink { 0%, 100% { opacity: 0; } 50% { opacity: 1; } diff --git a/client/dist/index.html b/client/dist/index.html index e8012955..0cd94fba 100644 --- a/client/dist/index.html +++ b/client/dist/index.html @@ -10,7 +10,7 @@ content="Web site created using create-react-app" /> Mental Health App - + diff --git a/client/src/Components/chatComponent.jsx b/client/src/Components/chatComponent.jsx index 245540f4..69e408f9 100644 --- a/client/src/Components/chatComponent.jsx +++ b/client/src/Components/chatComponent.jsx @@ -261,21 +261,22 @@ const ChatComponent = () => { // Function to handle recording stop const stopRecording = () => { if (mediaRecorder) { - const stopFunction = mediaRecorder instanceof MediaRecorder ? 'stop' : 'stopRecording'; + if (mediaRecorder.stream && mediaRecorder.stream.active) { + mediaRecorder.stream.getTracks().forEach(track => { + track.stop(); // Stop each track immediately + }); + } + mediaRecorder.onstop = () => { - // Stop all tracks to ensure microphone is released - mediaRecorder.stream.getTracks().forEach(track => track.stop()); sendAudioToServer(audioChunksRef.current, { type: mediaRecorder.mimeType }); setIsRecording(false); setMediaRecorder(null); }; - console.log('Stopping recording:', stopFunction); - if (stopFunction === 'stopRecording') { - mediaRecorder[stopFunction](() => { - mediaRecorder.stream.getTracks().forEach(track => track.stop()); - }); - } else { - mediaRecorder[stopFunction](); + + if (mediaRecorder instanceof MediaRecorder) { + mediaRecorder.stop(); + } else if (typeof mediaRecorder.stopRecording === 'function') { + mediaRecorder.stopRecording(); } } }; From 229846d26abc35ea9333adc96f3bad99c94baec8 Mon Sep 17 00:00:00 2001 From: DHRUMIL PATEL <123137675+dhrumilp12@users.noreply.github.com> Date: Wed, 26 Jun 2024 00:14:47 -0400 Subject: [PATCH 34/38] . --- .../{index-Cztio95N.js => index-B2lBQPec.js} | 2 +- client/dist/index.html | 2 +- client/src/Components/chatComponent.jsx | 22 +++++++++---------- 3 files changed, 13 insertions(+), 13 deletions(-) rename client/dist/assets/{index-Cztio95N.js => index-B2lBQPec.js} (99%) diff --git a/client/dist/assets/index-Cztio95N.js b/client/dist/assets/index-B2lBQPec.js similarity index 99% rename from client/dist/assets/index-Cztio95N.js rename to client/dist/assets/index-B2lBQPec.js index bb51a3c7..1d1b74ce 100644 --- a/client/dist/assets/index-Cztio95N.js +++ b/client/dist/assets/index-B2lBQPec.js @@ -458,7 +458,7 @@ Error generating stack: `+i.message+` * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code} * @param {MediaStream} mediaStream - MediaStream object fetched using getUserMedia API or generated using captureStreamUntilEnded or WebAudio API. * @param {object} config - {webAssemblyPath:'webm-wasm.wasm',workerPath: 'webm-worker.js', frameRate: 30, width: 1920, height: 1080, bitrate: 1024, realtime: true} - */function _(E,g){(typeof ReadableStream>"u"||typeof WritableStream>"u")&&console.error("Following polyfill is strongly recommended: https://unpkg.com/@mattiasbuelens/web-streams-polyfill/dist/polyfill.min.js"),g=g||{},g.width=g.width||640,g.height=g.height||480,g.frameRate=g.frameRate||30,g.bitrate=g.bitrate||1200,g.realtime=g.realtime||!0;var $;function z(){return new ReadableStream({start:function(K){var Y=document.createElement("canvas"),q=document.createElement("video"),oe=!0;q.srcObject=E,q.muted=!0,q.height=g.height,q.width=g.width,q.volume=0,q.onplaying=function(){Y.width=g.width,Y.height=g.height;var te=Y.getContext("2d"),ne=1e3/g.frameRate,de=setInterval(function(){if($&&(clearInterval(de),K.close()),oe&&(oe=!1,g.onVideoProcessStarted&&g.onVideoProcessStarted()),te.drawImage(q,0,0),K._controlledReadableStream.state!=="closed")try{K.enqueue(te.getImageData(0,0,g.width,g.height))}catch{}},ne)},q.play()}})}var L;function B(K,Y){if(!g.workerPath&&!Y){$=!1,fetch("https://unpkg.com/webm-wasm@latest/dist/webm-worker.js").then(function(oe){oe.arrayBuffer().then(function(te){B(K,te)})});return}if(!g.workerPath&&Y instanceof ArrayBuffer){var q=new Blob([Y],{type:"text/javascript"});g.workerPath=u.createObjectURL(q)}g.workerPath||console.error("workerPath parameter is missing."),L=new Worker(g.workerPath),L.postMessage(g.webAssemblyPath||"https://unpkg.com/webm-wasm@latest/dist/webm-wasm.wasm"),L.addEventListener("message",function(oe){oe.data==="READY"?(L.postMessage({width:g.width,height:g.height,bitrate:g.bitrate||1200,timebaseDen:g.frameRate||30,realtime:g.realtime}),z().pipeTo(new WritableStream({write:function(te){if($){console.error("Got image, but recorder is finished!");return}L.postMessage(te.data.buffer,[te.data.buffer])}}))):oe.data&&(V||A.push(oe.data))})}this.record=function(){A=[],V=!1,this.blob=null,B(E),typeof g.initCallback=="function"&&g.initCallback()};var V;this.pause=function(){V=!0},this.resume=function(){V=!1};function M(K){if(!L){K&&K();return}L.addEventListener("message",function(Y){Y.data===null&&(L.terminate(),L=null,K&&K())}),L.postMessage(null)}var A=[];this.stop=function(K){$=!0;var Y=this;M(function(){Y.blob=new Blob(A,{type:"video/webm"}),K(Y.blob)})},this.name="WebAssemblyRecorder",this.toString=function(){return this.name},this.clearRecordedData=function(){A=[],V=!1,this.blob=null},this.blob=null}typeof t<"u"&&(t.WebAssemblyRecorder=_)})(p2);var NN=p2.exports;const ky=Nc(NN),DN=()=>d.jsxs(at,{sx:{display:"flex",alignItems:"center",color:"text.secondary"},children:[d.jsx(Er,{src:Pi,sx:{width:24,height:24,marginRight:1},alt:"Aria"}),d.jsxs("div",{style:{display:"flex"},children:[d.jsx("div",{style:{animation:"blink 1.4s infinite",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),d.jsx("div",{style:{animation:"blink 1.4s infinite 0.2s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),d.jsx("div",{style:{animation:"blink 1.4s infinite 0.4s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor"}})]})]}),zN=()=>{const{user:e,voiceEnabled:t,setVoiceEnabled:n}=p.useContext(vr),r=e==null?void 0:e.userId,[o,i]=p.useState(null),[a,s]=p.useState(0),[l,c]=p.useState(""),[u,f]=p.useState([]),[h,w]=p.useState(!1),[y,x]=p.useState(null),C=p.useRef([]),[v,m]=p.useState(!1),[b,R]=p.useState(""),[k,T]=p.useState(!1),[P,j]=p.useState(!1),[N,O]=p.useState(""),[F,W]=p.useState("info"),[U,G]=p.useState(null),ee=M=>{M.preventDefault(),n(!t)},J=M=>{if(!t||M===U){G(null),window.speechSynthesis.cancel();return}const A=window.speechSynthesis,K=new SpeechSynthesisUtterance(M),Y=()=>{const q=A.getVoices();console.log(q.map(te=>`${te.name} - ${te.lang} - ${te.gender}`));const oe=q.find(te=>te.name.includes("Microsoft Zira - English (United States)"));oe?K.voice=oe:console.log("No female voice found"),K.onend=()=>{G(null)},G(M),A.speak(K)};A.getVoices().length===0?A.onvoiceschanged=Y:Y()},re=p.useCallback(async()=>{if(r){m(!0),T(!0);try{const M=await fetch(`/api/ai/mental_health/welcome/${r}`,{method:"POST",headers:{"Content-Type":"application/json"}}),A=await M.json();console.log(A),M.ok?(R(A.message),t&&A.message&&J(A.message),i(A.chat_id),console.log(A.chat_id)):(console.error("Failed to fetch welcome message:",A),R("Error fetching welcome message."))}catch(M){console.error("Network or server error:",M)}finally{m(!1),T(!1)}}},[r]);p.useEffect(()=>{re()},[]);const I=(M,A)=>{A!=="clickaway"&&j(!1)},_=p.useCallback(async()=>{if(o!==null){m(!0);try{const M=await fetch(`/api/ai/mental_health/finalize/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"}}),A=await M.json();M.ok?(O("Chat finalized successfully"),W("success"),i(null),s(0),f([]),re()):(O("Failed to finalize chat"),W("error"))}catch{O("Error finalizing chat"),W("error")}finally{m(!1),j(!0)}}},[r,o,re]),E=p.useCallback(async()=>{if(!(!l.trim()||o===void 0)){console.log(o),m(!0);try{const M=JSON.stringify({prompt:l,turn_id:a}),A=await fetch(`/api/ai/mental_health/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"},body:M}),K=await A.json();console.log(K),A.ok?(f(Y=>[...Y,{message:l,sender:"user"},{message:K,sender:"agent"}]),t&&K&&J(K),s(Y=>Y+1),c("")):(console.error("Failed to send message:",K.error||"Unknown error occurred"),O(K.error||"An error occurred while sending the message."),W("error"),j(!0))}catch(M){console.error("Failed to send message:",M),O("Network or server error occurred."),W("error"),j(!0)}finally{m(!1)}}},[l,r,o,a]),g=()=>MediaRecorder.isTypeSupported?MediaRecorder.isTypeSupported("audio/webm; codecs=opus"):!1,$=()=>{navigator.mediaDevices.getUserMedia({audio:{sampleRate:44100,channelCount:1,volume:1,echoCancellation:!0}}).then(M=>{C.current=[];const A=g();let K;const Y={type:"audio",mimeType:A?"audio/webm; codecs=opus":"audio/wav"};A?K=new MediaRecorder(M,Y):(K=new ky(M,{type:"audio",mimeType:"audio/wav",recorderType:ky.StereoAudioRecorder,numberOfAudioChannels:1}),K.startRecording()),K.ondataavailable=q=>{console.log("Data available:",q.data.size),C.current.push(q.data)},K instanceof MediaRecorder&&K.start(),x(K),w(!0)}).catch(M=>{console.error("Error accessing microphone:",M),j(!0),O("Unable to access microphone: "+M.message),W("error")})},z=()=>{y&&(y.stream&&y.stream.active&&y.stream.getTracks().forEach(M=>{M.stop()}),y.onstop=()=>{L(C.current,{type:y.mimeType}),w(!1),x(null)},y instanceof MediaRecorder?y.stop():typeof y.stopRecording=="function"&&y.stopRecording())},L=()=>{const M=y.mimeType;console.log("Audio chunks size:",C.current.reduce((Y,q)=>Y+q.size,0));const A=new Blob(C.current,{type:M});if(A.size===0){console.error("Audio Blob is empty"),O("Recording is empty. Please try again."),W("error"),j(!0);return}console.log(`Sending audio blob of size: ${A.size} bytes`);const K=new FormData;K.append("audio",A),m(!0),Oe.post("/api/ai/mental_health/voice-to-text",K,{headers:{"Content-Type":"multipart/form-data"}}).then(Y=>{const{message:q}=Y.data;c(q),E()}).catch(Y=>{console.error("Error uploading audio:",Y),j(!0),O("Error processing voice input: "+Y.message),W("error")}).finally(()=>{m(!1)})},B=p.useCallback(M=>{const A=M.target.value;A.split(/\s+/).length>200?(c(Y=>Y.split(/\s+/).slice(0,200).join(" ")),O("Word limit reached. Only 200 words allowed."),W("warning"),j(!0)):c(A)},[]),V=M=>M===U?d.jsx(Lc,{}):d.jsx(_c,{});return d.jsxs(d.Fragment,{children:[d.jsx("style",{children:` + */function _(E,g){(typeof ReadableStream>"u"||typeof WritableStream>"u")&&console.error("Following polyfill is strongly recommended: https://unpkg.com/@mattiasbuelens/web-streams-polyfill/dist/polyfill.min.js"),g=g||{},g.width=g.width||640,g.height=g.height||480,g.frameRate=g.frameRate||30,g.bitrate=g.bitrate||1200,g.realtime=g.realtime||!0;var $;function z(){return new ReadableStream({start:function(K){var Y=document.createElement("canvas"),q=document.createElement("video"),oe=!0;q.srcObject=E,q.muted=!0,q.height=g.height,q.width=g.width,q.volume=0,q.onplaying=function(){Y.width=g.width,Y.height=g.height;var te=Y.getContext("2d"),ne=1e3/g.frameRate,de=setInterval(function(){if($&&(clearInterval(de),K.close()),oe&&(oe=!1,g.onVideoProcessStarted&&g.onVideoProcessStarted()),te.drawImage(q,0,0),K._controlledReadableStream.state!=="closed")try{K.enqueue(te.getImageData(0,0,g.width,g.height))}catch{}},ne)},q.play()}})}var L;function B(K,Y){if(!g.workerPath&&!Y){$=!1,fetch("https://unpkg.com/webm-wasm@latest/dist/webm-worker.js").then(function(oe){oe.arrayBuffer().then(function(te){B(K,te)})});return}if(!g.workerPath&&Y instanceof ArrayBuffer){var q=new Blob([Y],{type:"text/javascript"});g.workerPath=u.createObjectURL(q)}g.workerPath||console.error("workerPath parameter is missing."),L=new Worker(g.workerPath),L.postMessage(g.webAssemblyPath||"https://unpkg.com/webm-wasm@latest/dist/webm-wasm.wasm"),L.addEventListener("message",function(oe){oe.data==="READY"?(L.postMessage({width:g.width,height:g.height,bitrate:g.bitrate||1200,timebaseDen:g.frameRate||30,realtime:g.realtime}),z().pipeTo(new WritableStream({write:function(te){if($){console.error("Got image, but recorder is finished!");return}L.postMessage(te.data.buffer,[te.data.buffer])}}))):oe.data&&(V||A.push(oe.data))})}this.record=function(){A=[],V=!1,this.blob=null,B(E),typeof g.initCallback=="function"&&g.initCallback()};var V;this.pause=function(){V=!0},this.resume=function(){V=!1};function M(K){if(!L){K&&K();return}L.addEventListener("message",function(Y){Y.data===null&&(L.terminate(),L=null,K&&K())}),L.postMessage(null)}var A=[];this.stop=function(K){$=!0;var Y=this;M(function(){Y.blob=new Blob(A,{type:"video/webm"}),K(Y.blob)})},this.name="WebAssemblyRecorder",this.toString=function(){return this.name},this.clearRecordedData=function(){A=[],V=!1,this.blob=null},this.blob=null}typeof t<"u"&&(t.WebAssemblyRecorder=_)})(p2);var NN=p2.exports;const ky=Nc(NN),DN=()=>d.jsxs(at,{sx:{display:"flex",alignItems:"center",color:"text.secondary"},children:[d.jsx(Er,{src:Pi,sx:{width:24,height:24,marginRight:1},alt:"Aria"}),d.jsxs("div",{style:{display:"flex"},children:[d.jsx("div",{style:{animation:"blink 1.4s infinite",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),d.jsx("div",{style:{animation:"blink 1.4s infinite 0.2s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),d.jsx("div",{style:{animation:"blink 1.4s infinite 0.4s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor"}})]})]}),zN=()=>{const{user:e,voiceEnabled:t,setVoiceEnabled:n}=p.useContext(vr),r=e==null?void 0:e.userId,[o,i]=p.useState(null),[a,s]=p.useState(0),[l,c]=p.useState(""),[u,f]=p.useState([]),[h,w]=p.useState(!1),[y,x]=p.useState(null),C=p.useRef([]),[v,m]=p.useState(!1),[b,R]=p.useState(""),[k,T]=p.useState(!1),[P,j]=p.useState(!1),[N,O]=p.useState(""),[F,W]=p.useState("info"),[U,G]=p.useState(null),ee=M=>{M.preventDefault(),n(!t)},J=M=>{if(!t||M===U){G(null),window.speechSynthesis.cancel();return}const A=window.speechSynthesis,K=new SpeechSynthesisUtterance(M),Y=()=>{const q=A.getVoices();console.log(q.map(te=>`${te.name} - ${te.lang} - ${te.gender}`));const oe=q.find(te=>te.name.includes("Microsoft Zira - English (United States)"));oe?K.voice=oe:console.log("No female voice found"),K.onend=()=>{G(null)},G(M),A.speak(K)};A.getVoices().length===0?A.onvoiceschanged=Y:Y()},re=p.useCallback(async()=>{if(r){m(!0),T(!0);try{const M=await fetch(`/api/ai/mental_health/welcome/${r}`,{method:"POST",headers:{"Content-Type":"application/json"}}),A=await M.json();console.log(A),M.ok?(R(A.message),t&&A.message&&J(A.message),i(A.chat_id),console.log(A.chat_id)):(console.error("Failed to fetch welcome message:",A),R("Error fetching welcome message."))}catch(M){console.error("Network or server error:",M)}finally{m(!1),T(!1)}}},[r]);p.useEffect(()=>{re()},[]);const I=(M,A)=>{A!=="clickaway"&&j(!1)},_=p.useCallback(async()=>{if(o!==null){m(!0);try{const M=await fetch(`/api/ai/mental_health/finalize/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"}}),A=await M.json();M.ok?(O("Chat finalized successfully"),W("success"),i(null),s(0),f([]),re()):(O("Failed to finalize chat"),W("error"))}catch{O("Error finalizing chat"),W("error")}finally{m(!1),j(!0)}}},[r,o,re]),E=p.useCallback(async()=>{if(!(!l.trim()||o===void 0)){console.log(o),m(!0);try{const M=JSON.stringify({prompt:l,turn_id:a}),A=await fetch(`/api/ai/mental_health/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"},body:M}),K=await A.json();console.log(K),A.ok?(f(Y=>[...Y,{message:l,sender:"user"},{message:K,sender:"agent"}]),t&&K&&J(K),s(Y=>Y+1),c("")):(console.error("Failed to send message:",K.error||"Unknown error occurred"),O(K.error||"An error occurred while sending the message."),W("error"),j(!0))}catch(M){console.error("Failed to send message:",M),O("Network or server error occurred."),W("error"),j(!0)}finally{m(!1)}}},[l,r,o,a]),g=()=>MediaRecorder.isTypeSupported?MediaRecorder.isTypeSupported("audio/webm; codecs=opus"):!1,$=()=>{navigator.mediaDevices.getUserMedia({audio:{sampleRate:44100,channelCount:1,volume:1,echoCancellation:!0}}).then(M=>{C.current=[];const A=g();let K;const Y={type:"audio",mimeType:A?"audio/webm; codecs=opus":"audio/wav"};A?K=new MediaRecorder(M,Y):(K=new ky(M,{type:"audio",mimeType:"audio/wav",recorderType:ky.StereoAudioRecorder,numberOfAudioChannels:1}),K.startRecording()),K.ondataavailable=q=>{console.log("Data available:",q.data.size),C.current.push(q.data)},K instanceof MediaRecorder&&K.start(),x(K),w(!0)}).catch(M=>{console.error("Error accessing microphone:",M),j(!0),O("Unable to access microphone: "+M.message),W("error")})},z=()=>{y&&(y.stream&&y.stream.active&&y.stream.getTracks().forEach(M=>M.stop()),y.onstop=()=>{L(C.current,{type:y.mimeType}),w(!1),x(null)},y instanceof MediaRecorder?y.stop():typeof y.stopRecording=="function"&&y.stopRecording())},L=()=>{const M=y.mimeType;console.log("Audio chunks size:",C.current.reduce((Y,q)=>Y+q.size,0));const A=new Blob(C.current,{type:M});if(A.size===0){console.error("Audio Blob is empty"),O("Recording is empty. Please try again."),W("error"),j(!0);return}console.log(`Sending audio blob of size: ${A.size} bytes`);const K=new FormData;K.append("audio",A),m(!0),Oe.post("/api/ai/mental_health/voice-to-text",K,{headers:{"Content-Type":"multipart/form-data"}}).then(Y=>{const{message:q}=Y.data;c(q),E()}).catch(Y=>{console.error("Error uploading audio:",Y),j(!0),O("Error processing voice input: "+Y.message),W("error")}).finally(()=>{m(!1)})},B=p.useCallback(M=>{const A=M.target.value;A.split(/\s+/).length>200?(c(Y=>Y.split(/\s+/).slice(0,200).join(" ")),O("Word limit reached. Only 200 words allowed."),W("warning"),j(!0)):c(A)},[]),V=M=>M===U?d.jsx(Lc,{}):d.jsx(_c,{});return d.jsxs(d.Fragment,{children:[d.jsx("style",{children:` @keyframes blink { 0%, 100% { opacity: 0; } 50% { opacity: 1; } diff --git a/client/dist/index.html b/client/dist/index.html index 0cd94fba..5d63d852 100644 --- a/client/dist/index.html +++ b/client/dist/index.html @@ -10,7 +10,7 @@ content="Web site created using create-react-app" /> Mental Health App - + diff --git a/client/src/Components/chatComponent.jsx b/client/src/Components/chatComponent.jsx index 69e408f9..b98028c9 100644 --- a/client/src/Components/chatComponent.jsx +++ b/client/src/Components/chatComponent.jsx @@ -261,11 +261,10 @@ const ChatComponent = () => { // Function to handle recording stop const stopRecording = () => { if (mediaRecorder) { - if (mediaRecorder.stream && mediaRecorder.stream.active) { - mediaRecorder.stream.getTracks().forEach(track => { - track.stop(); // Stop each track immediately - }); - } + // First ensure all tracks are stopped + if (mediaRecorder.stream && mediaRecorder.stream.active) { + mediaRecorder.stream.getTracks().forEach(track => track.stop()); + } mediaRecorder.onstop = () => { sendAudioToServer(audioChunksRef.current, { type: mediaRecorder.mimeType }); @@ -273,13 +272,14 @@ const ChatComponent = () => { setMediaRecorder(null); }; - if (mediaRecorder instanceof MediaRecorder) { - mediaRecorder.stop(); - } else if (typeof mediaRecorder.stopRecording === 'function') { - mediaRecorder.stopRecording(); - } + // Now call stop on the recorder if it exists + if (mediaRecorder instanceof MediaRecorder) { + mediaRecorder.stop(); + } else if (typeof mediaRecorder.stopRecording === 'function') { + mediaRecorder.stopRecording(); } - }; + } +}; const sendAudioToServer = () => { From 9d48cf51142c641442dd222176c315c0e6b75018 Mon Sep 17 00:00:00 2001 From: DHRUMIL PATEL <123137675+dhrumilp12@users.noreply.github.com> Date: Wed, 26 Jun 2024 00:30:13 -0400 Subject: [PATCH 35/38] .. --- client/dist/assets/{index-B2lBQPec.js => index-BaW2c4Zj.js} | 2 +- client/dist/index.html | 2 +- client/src/Components/chatComponent.jsx | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) rename client/dist/assets/{index-B2lBQPec.js => index-BaW2c4Zj.js} (99%) diff --git a/client/dist/assets/index-B2lBQPec.js b/client/dist/assets/index-BaW2c4Zj.js similarity index 99% rename from client/dist/assets/index-B2lBQPec.js rename to client/dist/assets/index-BaW2c4Zj.js index 1d1b74ce..8c7a68e1 100644 --- a/client/dist/assets/index-B2lBQPec.js +++ b/client/dist/assets/index-BaW2c4Zj.js @@ -458,7 +458,7 @@ Error generating stack: `+i.message+` * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code} * @param {MediaStream} mediaStream - MediaStream object fetched using getUserMedia API or generated using captureStreamUntilEnded or WebAudio API. * @param {object} config - {webAssemblyPath:'webm-wasm.wasm',workerPath: 'webm-worker.js', frameRate: 30, width: 1920, height: 1080, bitrate: 1024, realtime: true} - */function _(E,g){(typeof ReadableStream>"u"||typeof WritableStream>"u")&&console.error("Following polyfill is strongly recommended: https://unpkg.com/@mattiasbuelens/web-streams-polyfill/dist/polyfill.min.js"),g=g||{},g.width=g.width||640,g.height=g.height||480,g.frameRate=g.frameRate||30,g.bitrate=g.bitrate||1200,g.realtime=g.realtime||!0;var $;function z(){return new ReadableStream({start:function(K){var Y=document.createElement("canvas"),q=document.createElement("video"),oe=!0;q.srcObject=E,q.muted=!0,q.height=g.height,q.width=g.width,q.volume=0,q.onplaying=function(){Y.width=g.width,Y.height=g.height;var te=Y.getContext("2d"),ne=1e3/g.frameRate,de=setInterval(function(){if($&&(clearInterval(de),K.close()),oe&&(oe=!1,g.onVideoProcessStarted&&g.onVideoProcessStarted()),te.drawImage(q,0,0),K._controlledReadableStream.state!=="closed")try{K.enqueue(te.getImageData(0,0,g.width,g.height))}catch{}},ne)},q.play()}})}var L;function B(K,Y){if(!g.workerPath&&!Y){$=!1,fetch("https://unpkg.com/webm-wasm@latest/dist/webm-worker.js").then(function(oe){oe.arrayBuffer().then(function(te){B(K,te)})});return}if(!g.workerPath&&Y instanceof ArrayBuffer){var q=new Blob([Y],{type:"text/javascript"});g.workerPath=u.createObjectURL(q)}g.workerPath||console.error("workerPath parameter is missing."),L=new Worker(g.workerPath),L.postMessage(g.webAssemblyPath||"https://unpkg.com/webm-wasm@latest/dist/webm-wasm.wasm"),L.addEventListener("message",function(oe){oe.data==="READY"?(L.postMessage({width:g.width,height:g.height,bitrate:g.bitrate||1200,timebaseDen:g.frameRate||30,realtime:g.realtime}),z().pipeTo(new WritableStream({write:function(te){if($){console.error("Got image, but recorder is finished!");return}L.postMessage(te.data.buffer,[te.data.buffer])}}))):oe.data&&(V||A.push(oe.data))})}this.record=function(){A=[],V=!1,this.blob=null,B(E),typeof g.initCallback=="function"&&g.initCallback()};var V;this.pause=function(){V=!0},this.resume=function(){V=!1};function M(K){if(!L){K&&K();return}L.addEventListener("message",function(Y){Y.data===null&&(L.terminate(),L=null,K&&K())}),L.postMessage(null)}var A=[];this.stop=function(K){$=!0;var Y=this;M(function(){Y.blob=new Blob(A,{type:"video/webm"}),K(Y.blob)})},this.name="WebAssemblyRecorder",this.toString=function(){return this.name},this.clearRecordedData=function(){A=[],V=!1,this.blob=null},this.blob=null}typeof t<"u"&&(t.WebAssemblyRecorder=_)})(p2);var NN=p2.exports;const ky=Nc(NN),DN=()=>d.jsxs(at,{sx:{display:"flex",alignItems:"center",color:"text.secondary"},children:[d.jsx(Er,{src:Pi,sx:{width:24,height:24,marginRight:1},alt:"Aria"}),d.jsxs("div",{style:{display:"flex"},children:[d.jsx("div",{style:{animation:"blink 1.4s infinite",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),d.jsx("div",{style:{animation:"blink 1.4s infinite 0.2s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),d.jsx("div",{style:{animation:"blink 1.4s infinite 0.4s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor"}})]})]}),zN=()=>{const{user:e,voiceEnabled:t,setVoiceEnabled:n}=p.useContext(vr),r=e==null?void 0:e.userId,[o,i]=p.useState(null),[a,s]=p.useState(0),[l,c]=p.useState(""),[u,f]=p.useState([]),[h,w]=p.useState(!1),[y,x]=p.useState(null),C=p.useRef([]),[v,m]=p.useState(!1),[b,R]=p.useState(""),[k,T]=p.useState(!1),[P,j]=p.useState(!1),[N,O]=p.useState(""),[F,W]=p.useState("info"),[U,G]=p.useState(null),ee=M=>{M.preventDefault(),n(!t)},J=M=>{if(!t||M===U){G(null),window.speechSynthesis.cancel();return}const A=window.speechSynthesis,K=new SpeechSynthesisUtterance(M),Y=()=>{const q=A.getVoices();console.log(q.map(te=>`${te.name} - ${te.lang} - ${te.gender}`));const oe=q.find(te=>te.name.includes("Microsoft Zira - English (United States)"));oe?K.voice=oe:console.log("No female voice found"),K.onend=()=>{G(null)},G(M),A.speak(K)};A.getVoices().length===0?A.onvoiceschanged=Y:Y()},re=p.useCallback(async()=>{if(r){m(!0),T(!0);try{const M=await fetch(`/api/ai/mental_health/welcome/${r}`,{method:"POST",headers:{"Content-Type":"application/json"}}),A=await M.json();console.log(A),M.ok?(R(A.message),t&&A.message&&J(A.message),i(A.chat_id),console.log(A.chat_id)):(console.error("Failed to fetch welcome message:",A),R("Error fetching welcome message."))}catch(M){console.error("Network or server error:",M)}finally{m(!1),T(!1)}}},[r]);p.useEffect(()=>{re()},[]);const I=(M,A)=>{A!=="clickaway"&&j(!1)},_=p.useCallback(async()=>{if(o!==null){m(!0);try{const M=await fetch(`/api/ai/mental_health/finalize/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"}}),A=await M.json();M.ok?(O("Chat finalized successfully"),W("success"),i(null),s(0),f([]),re()):(O("Failed to finalize chat"),W("error"))}catch{O("Error finalizing chat"),W("error")}finally{m(!1),j(!0)}}},[r,o,re]),E=p.useCallback(async()=>{if(!(!l.trim()||o===void 0)){console.log(o),m(!0);try{const M=JSON.stringify({prompt:l,turn_id:a}),A=await fetch(`/api/ai/mental_health/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"},body:M}),K=await A.json();console.log(K),A.ok?(f(Y=>[...Y,{message:l,sender:"user"},{message:K,sender:"agent"}]),t&&K&&J(K),s(Y=>Y+1),c("")):(console.error("Failed to send message:",K.error||"Unknown error occurred"),O(K.error||"An error occurred while sending the message."),W("error"),j(!0))}catch(M){console.error("Failed to send message:",M),O("Network or server error occurred."),W("error"),j(!0)}finally{m(!1)}}},[l,r,o,a]),g=()=>MediaRecorder.isTypeSupported?MediaRecorder.isTypeSupported("audio/webm; codecs=opus"):!1,$=()=>{navigator.mediaDevices.getUserMedia({audio:{sampleRate:44100,channelCount:1,volume:1,echoCancellation:!0}}).then(M=>{C.current=[];const A=g();let K;const Y={type:"audio",mimeType:A?"audio/webm; codecs=opus":"audio/wav"};A?K=new MediaRecorder(M,Y):(K=new ky(M,{type:"audio",mimeType:"audio/wav",recorderType:ky.StereoAudioRecorder,numberOfAudioChannels:1}),K.startRecording()),K.ondataavailable=q=>{console.log("Data available:",q.data.size),C.current.push(q.data)},K instanceof MediaRecorder&&K.start(),x(K),w(!0)}).catch(M=>{console.error("Error accessing microphone:",M),j(!0),O("Unable to access microphone: "+M.message),W("error")})},z=()=>{y&&(y.stream&&y.stream.active&&y.stream.getTracks().forEach(M=>M.stop()),y.onstop=()=>{L(C.current,{type:y.mimeType}),w(!1),x(null)},y instanceof MediaRecorder?y.stop():typeof y.stopRecording=="function"&&y.stopRecording())},L=()=>{const M=y.mimeType;console.log("Audio chunks size:",C.current.reduce((Y,q)=>Y+q.size,0));const A=new Blob(C.current,{type:M});if(A.size===0){console.error("Audio Blob is empty"),O("Recording is empty. Please try again."),W("error"),j(!0);return}console.log(`Sending audio blob of size: ${A.size} bytes`);const K=new FormData;K.append("audio",A),m(!0),Oe.post("/api/ai/mental_health/voice-to-text",K,{headers:{"Content-Type":"multipart/form-data"}}).then(Y=>{const{message:q}=Y.data;c(q),E()}).catch(Y=>{console.error("Error uploading audio:",Y),j(!0),O("Error processing voice input: "+Y.message),W("error")}).finally(()=>{m(!1)})},B=p.useCallback(M=>{const A=M.target.value;A.split(/\s+/).length>200?(c(Y=>Y.split(/\s+/).slice(0,200).join(" ")),O("Word limit reached. Only 200 words allowed."),W("warning"),j(!0)):c(A)},[]),V=M=>M===U?d.jsx(Lc,{}):d.jsx(_c,{});return d.jsxs(d.Fragment,{children:[d.jsx("style",{children:` + */function _(E,g){(typeof ReadableStream>"u"||typeof WritableStream>"u")&&console.error("Following polyfill is strongly recommended: https://unpkg.com/@mattiasbuelens/web-streams-polyfill/dist/polyfill.min.js"),g=g||{},g.width=g.width||640,g.height=g.height||480,g.frameRate=g.frameRate||30,g.bitrate=g.bitrate||1200,g.realtime=g.realtime||!0;var $;function z(){return new ReadableStream({start:function(K){var Y=document.createElement("canvas"),q=document.createElement("video"),oe=!0;q.srcObject=E,q.muted=!0,q.height=g.height,q.width=g.width,q.volume=0,q.onplaying=function(){Y.width=g.width,Y.height=g.height;var te=Y.getContext("2d"),ne=1e3/g.frameRate,de=setInterval(function(){if($&&(clearInterval(de),K.close()),oe&&(oe=!1,g.onVideoProcessStarted&&g.onVideoProcessStarted()),te.drawImage(q,0,0),K._controlledReadableStream.state!=="closed")try{K.enqueue(te.getImageData(0,0,g.width,g.height))}catch{}},ne)},q.play()}})}var L;function B(K,Y){if(!g.workerPath&&!Y){$=!1,fetch("https://unpkg.com/webm-wasm@latest/dist/webm-worker.js").then(function(oe){oe.arrayBuffer().then(function(te){B(K,te)})});return}if(!g.workerPath&&Y instanceof ArrayBuffer){var q=new Blob([Y],{type:"text/javascript"});g.workerPath=u.createObjectURL(q)}g.workerPath||console.error("workerPath parameter is missing."),L=new Worker(g.workerPath),L.postMessage(g.webAssemblyPath||"https://unpkg.com/webm-wasm@latest/dist/webm-wasm.wasm"),L.addEventListener("message",function(oe){oe.data==="READY"?(L.postMessage({width:g.width,height:g.height,bitrate:g.bitrate||1200,timebaseDen:g.frameRate||30,realtime:g.realtime}),z().pipeTo(new WritableStream({write:function(te){if($){console.error("Got image, but recorder is finished!");return}L.postMessage(te.data.buffer,[te.data.buffer])}}))):oe.data&&(V||A.push(oe.data))})}this.record=function(){A=[],V=!1,this.blob=null,B(E),typeof g.initCallback=="function"&&g.initCallback()};var V;this.pause=function(){V=!0},this.resume=function(){V=!1};function M(K){if(!L){K&&K();return}L.addEventListener("message",function(Y){Y.data===null&&(L.terminate(),L=null,K&&K())}),L.postMessage(null)}var A=[];this.stop=function(K){$=!0;var Y=this;M(function(){Y.blob=new Blob(A,{type:"video/webm"}),K(Y.blob)})},this.name="WebAssemblyRecorder",this.toString=function(){return this.name},this.clearRecordedData=function(){A=[],V=!1,this.blob=null},this.blob=null}typeof t<"u"&&(t.WebAssemblyRecorder=_)})(p2);var NN=p2.exports;const ky=Nc(NN),DN=()=>d.jsxs(at,{sx:{display:"flex",alignItems:"center",color:"text.secondary"},children:[d.jsx(Er,{src:Pi,sx:{width:24,height:24,marginRight:1},alt:"Aria"}),d.jsxs("div",{style:{display:"flex"},children:[d.jsx("div",{style:{animation:"blink 1.4s infinite",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),d.jsx("div",{style:{animation:"blink 1.4s infinite 0.2s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),d.jsx("div",{style:{animation:"blink 1.4s infinite 0.4s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor"}})]})]}),zN=()=>{const{user:e,voiceEnabled:t,setVoiceEnabled:n}=p.useContext(vr),r=e==null?void 0:e.userId,[o,i]=p.useState(null),[a,s]=p.useState(0),[l,c]=p.useState(""),[u,f]=p.useState([]),[h,w]=p.useState(!1),[y,x]=p.useState(null),C=p.useRef([]),[v,m]=p.useState(!1),[b,R]=p.useState(""),[k,T]=p.useState(!1),[P,j]=p.useState(!1),[N,O]=p.useState(""),[F,W]=p.useState("info"),[U,G]=p.useState(null),ee=M=>{M.preventDefault(),n(!t)},J=M=>{if(!t||M===U){G(null),window.speechSynthesis.cancel();return}const A=window.speechSynthesis,K=new SpeechSynthesisUtterance(M),Y=()=>{const q=A.getVoices();console.log(q.map(te=>`${te.name} - ${te.lang} - ${te.gender}`));const oe=q.find(te=>te.name.includes("Microsoft Zira - English (United States)"));oe?K.voice=oe:console.log("No female voice found"),K.onend=()=>{G(null)},G(M),A.speak(K)};A.getVoices().length===0?A.onvoiceschanged=Y:Y()},re=p.useCallback(async()=>{if(r){m(!0),T(!0);try{const M=await fetch(`/api/ai/mental_health/welcome/${r}`,{method:"POST",headers:{"Content-Type":"application/json"}}),A=await M.json();console.log(A),M.ok?(R(A.message),t&&A.message&&J(A.message),i(A.chat_id),console.log(A.chat_id)):(console.error("Failed to fetch welcome message:",A),R("Error fetching welcome message."))}catch(M){console.error("Network or server error:",M)}finally{m(!1),T(!1)}}},[r]);p.useEffect(()=>{re()},[]);const I=(M,A)=>{A!=="clickaway"&&j(!1)},_=p.useCallback(async()=>{if(o!==null){m(!0);try{const M=await fetch(`/api/ai/mental_health/finalize/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"}}),A=await M.json();M.ok?(O("Chat finalized successfully"),W("success"),i(null),s(0),f([]),re()):(O("Failed to finalize chat"),W("error"))}catch{O("Error finalizing chat"),W("error")}finally{m(!1),j(!0)}}},[r,o,re]),E=p.useCallback(async()=>{if(!(!l.trim()||o===void 0)){console.log(o),m(!0);try{const M=JSON.stringify({prompt:l,turn_id:a}),A=await fetch(`/api/ai/mental_health/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"},body:M}),K=await A.json();console.log(K),A.ok?(f(Y=>[...Y,{message:l,sender:"user"},{message:K,sender:"agent"}]),t&&K&&J(K),s(Y=>Y+1),c("")):(console.error("Failed to send message:",K.error||"Unknown error occurred"),O(K.error||"An error occurred while sending the message."),W("error"),j(!0))}catch(M){console.error("Failed to send message:",M),O("Network or server error occurred."),W("error"),j(!0)}finally{m(!1)}}},[l,r,o,a]),g=()=>MediaRecorder.isTypeSupported?MediaRecorder.isTypeSupported("audio/webm; codecs=opus"):!1,$=()=>{navigator.mediaDevices.getUserMedia({audio:{sampleRate:44100,channelCount:1,volume:1,echoCancellation:!0}}).then(M=>{C.current=[];const A=g();let K;const Y={type:"audio",mimeType:A?"audio/webm; codecs=opus":"audio/wav"};A?K=new MediaRecorder(M,Y):(K=new ky(M,{type:"audio",mimeType:"audio/wav",recorderType:ky.StereoAudioRecorder,numberOfAudioChannels:1}),K.startRecording()),K.ondataavailable=q=>{console.log("Data available:",q.data.size),C.current.push(q.data)},K instanceof MediaRecorder&&K.start(),x(K),w(!0)}).catch(M=>{console.error("Error accessing microphone:",M),j(!0),O("Unable to access microphone: "+M.message),W("error")})},z=()=>{y&&(y.stream&&y.stream.active&&y.stream.getTracks().forEach(M=>M.stop()),y.onstop=()=>{L(C.current,{type:y.mimeType}),w(!1),x(null)},y instanceof MediaRecorder?y.stop():typeof y.stopRecording=="function"&&y.stopRecording(function(){y.getBlob()}))},L=()=>{const M=y.mimeType;console.log("Audio chunks size:",C.current.reduce((Y,q)=>Y+q.size,0));const A=new Blob(C.current,{type:M});if(A.size===0){console.error("Audio Blob is empty"),O("Recording is empty. Please try again."),W("error"),j(!0);return}console.log(`Sending audio blob of size: ${A.size} bytes`);const K=new FormData;K.append("audio",A),m(!0),Oe.post("/api/ai/mental_health/voice-to-text",K,{headers:{"Content-Type":"multipart/form-data"}}).then(Y=>{const{message:q}=Y.data;c(q),E()}).catch(Y=>{console.error("Error uploading audio:",Y),j(!0),O("Error processing voice input: "+Y.message),W("error")}).finally(()=>{m(!1)})},B=p.useCallback(M=>{const A=M.target.value;A.split(/\s+/).length>200?(c(Y=>Y.split(/\s+/).slice(0,200).join(" ")),O("Word limit reached. Only 200 words allowed."),W("warning"),j(!0)):c(A)},[]),V=M=>M===U?d.jsx(Lc,{}):d.jsx(_c,{});return d.jsxs(d.Fragment,{children:[d.jsx("style",{children:` @keyframes blink { 0%, 100% { opacity: 0; } 50% { opacity: 1; } diff --git a/client/dist/index.html b/client/dist/index.html index 5d63d852..7ecaa4f9 100644 --- a/client/dist/index.html +++ b/client/dist/index.html @@ -10,7 +10,7 @@ content="Web site created using create-react-app" /> Mental Health App - + diff --git a/client/src/Components/chatComponent.jsx b/client/src/Components/chatComponent.jsx index b98028c9..046650c5 100644 --- a/client/src/Components/chatComponent.jsx +++ b/client/src/Components/chatComponent.jsx @@ -276,7 +276,10 @@ const ChatComponent = () => { if (mediaRecorder instanceof MediaRecorder) { mediaRecorder.stop(); } else if (typeof mediaRecorder.stopRecording === 'function') { - mediaRecorder.stopRecording(); + mediaRecorder.stopRecording(function() { + mediaRecorder.getBlob(); + // Do something with the blob + }); } } }; From a34bf36a754bcfd6725341fb1b9141af8470c242 Mon Sep 17 00:00:00 2001 From: DHRUMIL PATEL <123137675+dhrumilp12@users.noreply.github.com> Date: Wed, 26 Jun 2024 01:48:10 -0400 Subject: [PATCH 36/38] . --- .../{index-BaW2c4Zj.js => index-BJD7cLZJ.js} | 88 ++++----- client/dist/index.html | 2 +- client/src/Components/chatComponent.jsx | 184 ++++++++---------- 3 files changed, 126 insertions(+), 148 deletions(-) rename client/dist/assets/{index-BaW2c4Zj.js => index-BJD7cLZJ.js} (64%) diff --git a/client/dist/assets/index-BaW2c4Zj.js b/client/dist/assets/index-BJD7cLZJ.js similarity index 64% rename from client/dist/assets/index-BaW2c4Zj.js rename to client/dist/assets/index-BJD7cLZJ.js index 8c7a68e1..611cb06a 100644 --- a/client/dist/assets/index-BaW2c4Zj.js +++ b/client/dist/assets/index-BJD7cLZJ.js @@ -1,4 +1,4 @@ -function X2(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var rt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Lr(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Ly={exports:{}},Dc={},Ay={exports:{}},_e={};/** +function K2(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var rt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Np(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Lr(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var _y={exports:{}},Nc={},Ly={exports:{}},_e={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function X2(e,t){for(var n=0;n>>1,$=I[g];if(0>>1;go(B,E))V<$&&0>o(M,B)?(I[g]=M,I[V]=E,g=V):(I[g]=B,I[L]=E,g=L);else if(V<$&&0>o(M,E))I[g]=M,I[V]=E,g=V;else break e}}return _}function o(I,_){var E=I.sortIndex-_.sortIndex;return E!==0?E:I.id-_.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,f=null,h=3,w=!1,y=!1,x=!1,C=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(I){for(var _=n(c);_!==null;){if(_.callback===null)r(c);else if(_.startTime<=I)r(c),_.sortIndex=_.expirationTime,t(l,_);else break;_=n(c)}}function R(I){if(x=!1,b(I),!y)if(n(l)!==null)y=!0,J(k);else{var _=n(c);_!==null&&re(R,_.startTime-I)}}function k(I,_){y=!1,x&&(x=!1,v(j),j=-1),w=!0;var E=h;try{for(b(_),f=n(l);f!==null&&(!(f.expirationTime>_)||I&&!F());){var g=f.callback;if(typeof g=="function"){f.callback=null,h=f.priorityLevel;var $=g(f.expirationTime<=_);_=e.unstable_now(),typeof $=="function"?f.callback=$:f===n(l)&&r(l),b(_)}else r(l);f=n(l)}if(f!==null)var z=!0;else{var L=n(c);L!==null&&re(R,L.startTime-_),z=!1}return z}finally{f=null,h=E,w=!1}}var T=!1,P=null,j=-1,N=5,O=-1;function F(){return!(e.unstable_now()-OI||125g?(I.sortIndex=E,t(c,I),n(l)===null&&I===n(c)&&(x?(v(j),j=-1):x=!0,re(R,E-g))):(I.sortIndex=$,t(l,I),y||w||(y=!0,J(k))),I},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(I){var _=h;return function(){var E=h;h=_;try{return I.apply(this,arguments)}finally{h=E}}}})(Ky);Gy.exports=Ky;var yS=Gy.exports;/** + */(function(e){function t(O,_){var E=O.length;O.push(_);e:for(;0>>1,$=O[g];if(0>>1;go(B,E))V<$&&0>o(M,B)?(O[g]=M,O[V]=E,g=V):(O[g]=B,O[L]=E,g=L);else if(V<$&&0>o(M,E))O[g]=M,O[V]=E,g=V;else break e}}return _}function o(O,_){var E=O.sortIndex-_.sortIndex;return E!==0?E:O.id-_.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,f=null,h=3,w=!1,y=!1,x=!1,C=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(O){for(var _=n(c);_!==null;){if(_.callback===null)r(c);else if(_.startTime<=O)r(c),_.sortIndex=_.expirationTime,t(l,_);else break;_=n(c)}}function k(O){if(x=!1,b(O),!y)if(n(l)!==null)y=!0,J(R);else{var _=n(c);_!==null&&re(k,_.startTime-O)}}function R(O,_){y=!1,x&&(x=!1,v(j),j=-1),w=!0;var E=h;try{for(b(_),f=n(l);f!==null&&(!(f.expirationTime>_)||O&&!F());){var g=f.callback;if(typeof g=="function"){f.callback=null,h=f.priorityLevel;var $=g(f.expirationTime<=_);_=e.unstable_now(),typeof $=="function"?f.callback=$:f===n(l)&&r(l),b(_)}else r(l);f=n(l)}if(f!==null)var z=!0;else{var L=n(c);L!==null&&re(k,L.startTime-_),z=!1}return z}finally{f=null,h=E,w=!1}}var T=!1,P=null,j=-1,N=5,I=-1;function F(){return!(e.unstable_now()-IO||125g?(O.sortIndex=E,t(c,O),n(l)===null&&O===n(c)&&(x?(v(j),j=-1):x=!0,re(k,E-g))):(O.sortIndex=$,t(l,O),y||w||(y=!0,J(R))),O},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(O){var _=h;return function(){var E=h;h=_;try{return O.apply(this,arguments)}finally{h=E}}}})(Gy);qy.exports=Gy;var gS=qy.exports;/** * @license React * react-dom.production.min.js * @@ -30,19 +30,19 @@ function X2(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ff=Object.prototype.hasOwnProperty,bS=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Mg={},jg={};function wS(e){return ff.call(jg,e)?!0:ff.call(Mg,e)?!1:bS.test(e)?jg[e]=!0:(Mg[e]=!0,!1)}function SS(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function CS(e,t,n,r){if(t===null||typeof t>"u"||SS(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Zt(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Nt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Nt[e]=new Zt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Nt[t]=new Zt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Nt[e]=new Zt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Nt[e]=new Zt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Nt[e]=new Zt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Nt[e]=new Zt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Nt[e]=new Zt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Nt[e]=new Zt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Nt[e]=new Zt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Up=/[\-:]([a-z])/g;function Wp(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Up,Wp);Nt[t]=new Zt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Up,Wp);Nt[t]=new Zt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Up,Wp);Nt[t]=new Zt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Nt[e]=new Zt(e,1,!1,e.toLowerCase(),null,!1,!1)});Nt.xlinkHref=new Zt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Nt[e]=new Zt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Hp(e,t,n,r){var o=Nt.hasOwnProperty(t)?Nt[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),df=Object.prototype.hasOwnProperty,yS=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Mg={},jg={};function xS(e){return df.call(jg,e)?!0:df.call(Mg,e)?!1:yS.test(e)?jg[e]=!0:(Mg[e]=!0,!1)}function bS(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function wS(e,t,n,r){if(t===null||typeof t>"u"||bS(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Zt(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Nt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Nt[e]=new Zt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Nt[t]=new Zt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Nt[e]=new Zt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Nt[e]=new Zt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Nt[e]=new Zt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Nt[e]=new Zt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Nt[e]=new Zt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Nt[e]=new Zt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Nt[e]=new Zt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Up=/[\-:]([a-z])/g;function Wp(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Up,Wp);Nt[t]=new Zt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Up,Wp);Nt[t]=new Zt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Up,Wp);Nt[t]=new Zt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Nt[e]=new Zt(e,1,!1,e.toLowerCase(),null,!1,!1)});Nt.xlinkHref=new Zt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Nt[e]=new Zt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Hp(e,t,n,r){var o=Nt.hasOwnProperty(t)?Nt[t]:null;(o!==null?o.type!==0:r||!(2s||o[a]!==i[s]){var l=` -`+o[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{hd=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ka(e):""}function RS(e){switch(e.tag){case 5:return ka(e.type);case 16:return ka("Lazy");case 13:return ka("Suspense");case 19:return ka("SuspenseList");case 0:case 2:case 15:return e=md(e.type,!1),e;case 11:return e=md(e.type.render,!1),e;case 1:return e=md(e.type,!0),e;default:return""}}function gf(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ai:return"Fragment";case ii:return"Portal";case pf:return"Profiler";case Vp:return"StrictMode";case hf:return"Suspense";case mf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qy:return(e.displayName||"Context")+".Consumer";case Xy:return(e._context.displayName||"Context")+".Provider";case qp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Gp:return t=e.displayName||null,t!==null?t:gf(e.type)||"Memo";case Vr:t=e._payload,e=e._init;try{return gf(e(t))}catch{}}return null}function kS(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return gf(t);case 8:return t===Vp?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function lo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Zy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function PS(e){var t=Zy(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ks(e){e._valueTracker||(e._valueTracker=PS(e))}function e1(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Zy(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ql(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function vf(e,t){var n=t.checked;return pt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ig(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=lo(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function t1(e,t){t=t.checked,t!=null&&Hp(e,"checked",t,!1)}function yf(e,t){t1(e,t);var n=lo(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?xf(e,t.type,n):t.hasOwnProperty("defaultValue")&&xf(e,t.type,lo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function _g(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function xf(e,t,n){(t!=="number"||ql(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Pa=Array.isArray;function yi(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Ys.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ga(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ja={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ES=["Webkit","ms","Moz","O"];Object.keys(ja).forEach(function(e){ES.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ja[t]=ja[e]})});function i1(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ja.hasOwnProperty(e)&&ja[e]?(""+t).trim():t+"px"}function a1(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=i1(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var TS=pt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Sf(e,t){if(t){if(TS[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ce(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ce(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ce(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ce(62))}}function Cf(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Rf=null;function Kp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var kf=null,xi=null,bi=null;function Ng(e){if(e=ks(e)){if(typeof kf!="function")throw Error(ce(280));var t=e.stateNode;t&&(t=Wc(t),kf(e.stateNode,e.type,t))}}function s1(e){xi?bi?bi.push(e):bi=[e]:xi=e}function l1(){if(xi){var e=xi,t=bi;if(bi=xi=null,Ng(e),t)for(e=0;e>>=0,e===0?32:31-(zS(e)/BS|0)|0}var Xs=64,Qs=4194304;function Ea(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Xl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=Ea(s):(i&=a,i!==0&&(r=Ea(i)))}else a=n&~o,a!==0?r=Ea(a):i!==0&&(r=Ea(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Cs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-er(t),e[t]=n}function HS(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ia),qg=" ",Gg=!1;function T1(e,t){switch(e){case"keyup":return yC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var si=!1;function bC(e,t){switch(e){case"compositionend":return $1(t);case"keypress":return t.which!==32?null:(Gg=!0,qg);case"textInput":return e=t.data,e===qg&&Gg?null:e;default:return null}}function wC(e,t){if(si)return e==="compositionend"||!nh&&T1(e,t)?(e=P1(),Pl=Zp=Yr=null,si=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Qg(n)}}function I1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?I1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _1(){for(var e=window,t=ql();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ql(e.document)}return t}function rh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function MC(e){var t=_1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&I1(n.ownerDocument.documentElement,n)){if(r!==null&&rh(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Jg(n,i);var a=Jg(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,li=null,jf=null,La=null,Of=!1;function Zg(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Of||li==null||li!==ql(r)||(r=li,"selectionStart"in r&&rh(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),La&&Za(La,r)||(La=r,r=Zl(jf,"onSelect"),0di||(e.current=Df[di],Df[di]=null,di--)}function Je(e,t){di++,Df[di]=e.current,e.current=t}var co={},Wt=fo(co),on=fo(!1),_o=co;function Ti(e,t){var n=e.type.contextTypes;if(!n)return co;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function an(e){return e=e.childContextTypes,e!=null}function tc(){et(on),et(Wt)}function av(e,t,n){if(Wt.current!==co)throw Error(ce(168));Je(Wt,t),Je(on,n)}function W1(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(ce(108,kS(e)||"Unknown",o));return pt({},n,r)}function nc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||co,_o=Wt.current,Je(Wt,e),Je(on,on.current),!0}function sv(e,t,n){var r=e.stateNode;if(!r)throw Error(ce(169));n?(e=W1(e,t,_o),r.__reactInternalMemoizedMergedChildContext=e,et(on),et(Wt),Je(Wt,e)):et(on),Je(on,n)}var Cr=null,Hc=!1,$d=!1;function H1(e){Cr===null?Cr=[e]:Cr.push(e)}function UC(e){Hc=!0,H1(e)}function po(){if(!$d&&Cr!==null){$d=!0;var e=0,t=He;try{var n=Cr;for(He=1;e>=a,o-=a,kr=1<<32-er(t)+o|n<j?(N=P,P=null):N=P.sibling;var O=h(v,P,b[j],R);if(O===null){P===null&&(P=N);break}e&&P&&O.alternate===null&&t(v,P),m=i(O,m,j),T===null?k=O:T.sibling=O,T=O,P=N}if(j===b.length)return n(v,P),st&&wo(v,j),k;if(P===null){for(;jj?(N=P,P=null):N=P.sibling;var F=h(v,P,O.value,R);if(F===null){P===null&&(P=N);break}e&&P&&F.alternate===null&&t(v,P),m=i(F,m,j),T===null?k=F:T.sibling=F,T=F,P=N}if(O.done)return n(v,P),st&&wo(v,j),k;if(P===null){for(;!O.done;j++,O=b.next())O=f(v,O.value,R),O!==null&&(m=i(O,m,j),T===null?k=O:T.sibling=O,T=O);return st&&wo(v,j),k}for(P=r(v,P);!O.done;j++,O=b.next())O=w(P,v,j,O.value,R),O!==null&&(e&&O.alternate!==null&&P.delete(O.key===null?j:O.key),m=i(O,m,j),T===null?k=O:T.sibling=O,T=O);return e&&P.forEach(function(W){return t(v,W)}),st&&wo(v,j),k}function C(v,m,b,R){if(typeof b=="object"&&b!==null&&b.type===ai&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Gs:e:{for(var k=b.key,T=m;T!==null;){if(T.key===k){if(k=b.type,k===ai){if(T.tag===7){n(v,T.sibling),m=o(T,b.props.children),m.return=v,v=m;break e}}else if(T.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Vr&&uv(k)===T.type){n(v,T.sibling),m=o(T,b.props),m.ref=fa(v,T,b),m.return=v,v=m;break e}n(v,T);break}else t(v,T);T=T.sibling}b.type===ai?(m=jo(b.props.children,v.mode,R,b.key),m.return=v,v=m):(R=_l(b.type,b.key,b.props,null,v.mode,R),R.ref=fa(v,m,b),R.return=v,v=R)}return a(v);case ii:e:{for(T=b.key;m!==null;){if(m.key===T)if(m.tag===4&&m.stateNode.containerInfo===b.containerInfo&&m.stateNode.implementation===b.implementation){n(v,m.sibling),m=o(m,b.children||[]),m.return=v,v=m;break e}else{n(v,m);break}else t(v,m);m=m.sibling}m=Nd(b,v.mode,R),m.return=v,v=m}return a(v);case Vr:return T=b._init,C(v,m,T(b._payload),R)}if(Pa(b))return y(v,m,b,R);if(sa(b))return x(v,m,b,R);ol(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,m!==null&&m.tag===6?(n(v,m.sibling),m=o(m,b),m.return=v,v=m):(n(v,m),m=Ad(b,v.mode,R),m.return=v,v=m),a(v)):n(v,m)}return C}var Mi=K1(!0),Y1=K1(!1),ic=fo(null),ac=null,hi=null,sh=null;function lh(){sh=hi=ac=null}function ch(e){var t=ic.current;et(ic),e._currentValue=t}function Ff(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Si(e,t){ac=e,sh=hi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(rn=!0),e.firstContext=null)}function Dn(e){var t=e._currentValue;if(sh!==e)if(e={context:e,memoizedValue:t,next:null},hi===null){if(ac===null)throw Error(ce(308));hi=e,ac.dependencies={lanes:0,firstContext:e}}else hi=hi.next=e;return t}var Po=null;function uh(e){Po===null?Po=[e]:Po.push(e)}function X1(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,uh(t)):(n.next=o.next,o.next=n),t.interleaved=n,jr(e,r)}function jr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var qr=!1;function dh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Q1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Tr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ro(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ze&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,jr(e,n)}return o=r.interleaved,o===null?(t.next=t,uh(r)):(t.next=o.next,o.next=t),r.interleaved=t,jr(e,n)}function Tl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xp(e,n)}}function dv(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function sc(e,t,n,r){var o=e.updateQueue;qr=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?i=c:a.next=c,a=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==a&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(i!==null){var f=o.baseState;a=0,u=c=l=null,s=i;do{var h=s.lane,w=s.eventTime;if((r&h)===h){u!==null&&(u=u.next={eventTime:w,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var y=e,x=s;switch(h=t,w=n,x.tag){case 1:if(y=x.payload,typeof y=="function"){f=y.call(w,f,h);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=x.payload,h=typeof y=="function"?y.call(w,f,h):y,h==null)break e;f=pt({},f,h);break e;case 2:qr=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,h=o.effects,h===null?o.effects=[s]:h.push(s))}else w={eventTime:w,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=w,l=f):u=u.next=w,a|=h;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;h=s,s=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(!0);if(u===null&&(l=f),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);No|=a,e.lanes=a,e.memoizedState=f}}function fv(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=jd.transition;jd.transition={};try{e(!1),t()}finally{He=n,jd.transition=r}}function hx(){return zn().memoizedState}function qC(e,t,n){var r=io(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},mx(e))gx(t,n);else if(n=X1(e,t,n,r),n!==null){var o=Xt();tr(n,e,r,o),vx(n,t,r)}}function GC(e,t,n){var r=io(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(mx(e))gx(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,rr(s,a)){var l=t.interleaved;l===null?(o.next=o,uh(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=X1(e,t,o,r),n!==null&&(o=Xt(),tr(n,e,r,o),vx(n,t,r))}}function mx(e){var t=e.alternate;return e===dt||t!==null&&t===dt}function gx(e,t){Aa=cc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function vx(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xp(e,n)}}var uc={readContext:Dn,useCallback:zt,useContext:zt,useEffect:zt,useImperativeHandle:zt,useInsertionEffect:zt,useLayoutEffect:zt,useMemo:zt,useReducer:zt,useRef:zt,useState:zt,useDebugValue:zt,useDeferredValue:zt,useTransition:zt,useMutableSource:zt,useSyncExternalStore:zt,useId:zt,unstable_isNewReconciler:!1},KC={readContext:Dn,useCallback:function(e,t){return lr().memoizedState=[e,t===void 0?null:t],e},useContext:Dn,useEffect:hv,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ml(4194308,4,cx.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ml(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ml(4,2,e,t)},useMemo:function(e,t){var n=lr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=lr();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=qC.bind(null,dt,e),[r.memoizedState,e]},useRef:function(e){var t=lr();return e={current:e},t.memoizedState=e},useState:pv,useDebugValue:xh,useDeferredValue:function(e){return lr().memoizedState=e},useTransition:function(){var e=pv(!1),t=e[0];return e=VC.bind(null,e[1]),lr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=dt,o=lr();if(st){if(n===void 0)throw Error(ce(407));n=n()}else{if(n=t(),Mt===null)throw Error(ce(349));Ao&30||tx(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,hv(rx.bind(null,r,i,e),[e]),r.flags|=2048,ss(9,nx.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=lr(),t=Mt.identifierPrefix;if(st){var n=Pr,r=kr;n=(r&~(1<<32-er(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=is++,0")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{pd=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ra(e):""}function SS(e){switch(e.tag){case 5:return Ra(e.type);case 16:return Ra("Lazy");case 13:return Ra("Suspense");case 19:return Ra("SuspenseList");case 0:case 2:case 15:return e=hd(e.type,!1),e;case 11:return e=hd(e.type.render,!1),e;case 1:return e=hd(e.type,!0),e;default:return""}}function mf(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ai:return"Fragment";case ii:return"Portal";case ff:return"Profiler";case Vp:return"StrictMode";case pf:return"Suspense";case hf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Xy:return(e.displayName||"Context")+".Consumer";case Yy:return(e._context.displayName||"Context")+".Provider";case qp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Gp:return t=e.displayName||null,t!==null?t:mf(e.type)||"Memo";case Vr:t=e._payload,e=e._init;try{return mf(e(t))}catch{}}return null}function CS(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return mf(t);case 8:return t===Vp?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function lo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Jy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function kS(e){var t=Jy(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ks(e){e._valueTracker||(e._valueTracker=kS(e))}function Zy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Jy(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ql(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function gf(e,t){var n=t.checked;return pt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ig(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=lo(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function e1(e,t){t=t.checked,t!=null&&Hp(e,"checked",t,!1)}function vf(e,t){e1(e,t);var n=lo(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?yf(e,t.type,n):t.hasOwnProperty("defaultValue")&&yf(e,t.type,lo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function _g(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function yf(e,t,n){(t!=="number"||ql(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Pa=Array.isArray;function yi(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Ys.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ga(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ja={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},RS=["Webkit","ms","Moz","O"];Object.keys(ja).forEach(function(e){RS.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ja[t]=ja[e]})});function o1(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ja.hasOwnProperty(e)&&ja[e]?(""+t).trim():t+"px"}function i1(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=o1(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var PS=pt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function wf(e,t){if(t){if(PS[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ce(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ce(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ce(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ce(62))}}function Sf(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Cf=null;function Kp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var kf=null,xi=null,bi=null;function Ng(e){if(e=Rs(e)){if(typeof kf!="function")throw Error(ce(280));var t=e.stateNode;t&&(t=Uc(t),kf(e.stateNode,e.type,t))}}function a1(e){xi?bi?bi.push(e):bi=[e]:xi=e}function s1(){if(xi){var e=xi,t=bi;if(bi=xi=null,Ng(e),t)for(e=0;e>>=0,e===0?32:31-(NS(e)/DS|0)|0}var Xs=64,Qs=4194304;function Ea(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Xl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=Ea(s):(i&=a,i!==0&&(r=Ea(i)))}else a=n&~o,a!==0?r=Ea(a):i!==0&&(r=Ea(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Cs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-er(t),e[t]=n}function US(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ia),qg=" ",Gg=!1;function E1(e,t){switch(e){case"keyup":return gC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function T1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var si=!1;function yC(e,t){switch(e){case"compositionend":return T1(t);case"keypress":return t.which!==32?null:(Gg=!0,qg);case"textInput":return e=t.data,e===qg&&Gg?null:e;default:return null}}function xC(e,t){if(si)return e==="compositionend"||!nh&&E1(e,t)?(e=R1(),Pl=Zp=Yr=null,si=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Qg(n)}}function O1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?O1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function I1(){for(var e=window,t=ql();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ql(e.document)}return t}function rh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function TC(e){var t=I1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&O1(n.ownerDocument.documentElement,n)){if(r!==null&&rh(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Jg(n,i);var a=Jg(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,li=null,Mf=null,La=null,jf=!1;function Zg(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;jf||li==null||li!==ql(r)||(r=li,"selectionStart"in r&&rh(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),La&&Za(La,r)||(La=r,r=Zl(Mf,"onSelect"),0di||(e.current=Nf[di],Nf[di]=null,di--)}function Je(e,t){di++,Nf[di]=e.current,e.current=t}var co={},Wt=fo(co),on=fo(!1),_o=co;function Ti(e,t){var n=e.type.contextTypes;if(!n)return co;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function an(e){return e=e.childContextTypes,e!=null}function tc(){et(on),et(Wt)}function av(e,t,n){if(Wt.current!==co)throw Error(ce(168));Je(Wt,t),Je(on,n)}function U1(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(ce(108,CS(e)||"Unknown",o));return pt({},n,r)}function nc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||co,_o=Wt.current,Je(Wt,e),Je(on,on.current),!0}function sv(e,t,n){var r=e.stateNode;if(!r)throw Error(ce(169));n?(e=U1(e,t,_o),r.__reactInternalMemoizedMergedChildContext=e,et(on),et(Wt),Je(Wt,e)):et(on),Je(on,n)}var Cr=null,Wc=!1,Td=!1;function W1(e){Cr===null?Cr=[e]:Cr.push(e)}function BC(e){Wc=!0,W1(e)}function po(){if(!Td&&Cr!==null){Td=!0;var e=0,t=He;try{var n=Cr;for(He=1;e>=a,o-=a,Rr=1<<32-er(t)+o|n<j?(N=P,P=null):N=P.sibling;var I=h(v,P,b[j],k);if(I===null){P===null&&(P=N);break}e&&P&&I.alternate===null&&t(v,P),m=i(I,m,j),T===null?R=I:T.sibling=I,T=I,P=N}if(j===b.length)return n(v,P),st&&wo(v,j),R;if(P===null){for(;jj?(N=P,P=null):N=P.sibling;var F=h(v,P,I.value,k);if(F===null){P===null&&(P=N);break}e&&P&&F.alternate===null&&t(v,P),m=i(F,m,j),T===null?R=F:T.sibling=F,T=F,P=N}if(I.done)return n(v,P),st&&wo(v,j),R;if(P===null){for(;!I.done;j++,I=b.next())I=f(v,I.value,k),I!==null&&(m=i(I,m,j),T===null?R=I:T.sibling=I,T=I);return st&&wo(v,j),R}for(P=r(v,P);!I.done;j++,I=b.next())I=w(P,v,j,I.value,k),I!==null&&(e&&I.alternate!==null&&P.delete(I.key===null?j:I.key),m=i(I,m,j),T===null?R=I:T.sibling=I,T=I);return e&&P.forEach(function(H){return t(v,H)}),st&&wo(v,j),R}function C(v,m,b,k){if(typeof b=="object"&&b!==null&&b.type===ai&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Gs:e:{for(var R=b.key,T=m;T!==null;){if(T.key===R){if(R=b.type,R===ai){if(T.tag===7){n(v,T.sibling),m=o(T,b.props.children),m.return=v,v=m;break e}}else if(T.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===Vr&&uv(R)===T.type){n(v,T.sibling),m=o(T,b.props),m.ref=fa(v,T,b),m.return=v,v=m;break e}n(v,T);break}else t(v,T);T=T.sibling}b.type===ai?(m=jo(b.props.children,v.mode,k,b.key),m.return=v,v=m):(k=_l(b.type,b.key,b.props,null,v.mode,k),k.ref=fa(v,m,b),k.return=v,v=k)}return a(v);case ii:e:{for(T=b.key;m!==null;){if(m.key===T)if(m.tag===4&&m.stateNode.containerInfo===b.containerInfo&&m.stateNode.implementation===b.implementation){n(v,m.sibling),m=o(m,b.children||[]),m.return=v,v=m;break e}else{n(v,m);break}else t(v,m);m=m.sibling}m=Ad(b,v.mode,k),m.return=v,v=m}return a(v);case Vr:return T=b._init,C(v,m,T(b._payload),k)}if(Pa(b))return y(v,m,b,k);if(sa(b))return x(v,m,b,k);ol(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,m!==null&&m.tag===6?(n(v,m.sibling),m=o(m,b),m.return=v,v=m):(n(v,m),m=Ld(b,v.mode,k),m.return=v,v=m),a(v)):n(v,m)}return C}var Mi=G1(!0),K1=G1(!1),ic=fo(null),ac=null,hi=null,sh=null;function lh(){sh=hi=ac=null}function ch(e){var t=ic.current;et(ic),e._currentValue=t}function Bf(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Si(e,t){ac=e,sh=hi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(rn=!0),e.firstContext=null)}function Dn(e){var t=e._currentValue;if(sh!==e)if(e={context:e,memoizedValue:t,next:null},hi===null){if(ac===null)throw Error(ce(308));hi=e,ac.dependencies={lanes:0,firstContext:e}}else hi=hi.next=e;return t}var Po=null;function uh(e){Po===null?Po=[e]:Po.push(e)}function Y1(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,uh(t)):(n.next=o.next,o.next=n),t.interleaved=n,jr(e,r)}function jr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var qr=!1;function dh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function X1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Tr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ro(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ze&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,jr(e,n)}return o=r.interleaved,o===null?(t.next=t,uh(r)):(t.next=o.next,o.next=t),r.interleaved=t,jr(e,n)}function Tl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xp(e,n)}}function dv(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function sc(e,t,n,r){var o=e.updateQueue;qr=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?i=c:a.next=c,a=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==a&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(i!==null){var f=o.baseState;a=0,u=c=l=null,s=i;do{var h=s.lane,w=s.eventTime;if((r&h)===h){u!==null&&(u=u.next={eventTime:w,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var y=e,x=s;switch(h=t,w=n,x.tag){case 1:if(y=x.payload,typeof y=="function"){f=y.call(w,f,h);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=x.payload,h=typeof y=="function"?y.call(w,f,h):y,h==null)break e;f=pt({},f,h);break e;case 2:qr=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,h=o.effects,h===null?o.effects=[s]:h.push(s))}else w={eventTime:w,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=w,l=f):u=u.next=w,a|=h;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;h=s,s=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(!0);if(u===null&&(l=f),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);No|=a,e.lanes=a,e.memoizedState=f}}function fv(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Md.transition;Md.transition={};try{e(!1),t()}finally{He=n,Md.transition=r}}function px(){return zn().memoizedState}function HC(e,t,n){var r=io(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},hx(e))mx(t,n);else if(n=Y1(e,t,n,r),n!==null){var o=Xt();tr(n,e,r,o),gx(n,t,r)}}function VC(e,t,n){var r=io(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(hx(e))mx(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,rr(s,a)){var l=t.interleaved;l===null?(o.next=o,uh(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Y1(e,t,o,r),n!==null&&(o=Xt(),tr(n,e,r,o),gx(n,t,r))}}function hx(e){var t=e.alternate;return e===dt||t!==null&&t===dt}function mx(e,t){Aa=cc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function gx(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xp(e,n)}}var uc={readContext:Dn,useCallback:zt,useContext:zt,useEffect:zt,useImperativeHandle:zt,useInsertionEffect:zt,useLayoutEffect:zt,useMemo:zt,useReducer:zt,useRef:zt,useState:zt,useDebugValue:zt,useDeferredValue:zt,useTransition:zt,useMutableSource:zt,useSyncExternalStore:zt,useId:zt,unstable_isNewReconciler:!1},qC={readContext:Dn,useCallback:function(e,t){return lr().memoizedState=[e,t===void 0?null:t],e},useContext:Dn,useEffect:hv,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ml(4194308,4,lx.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ml(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ml(4,2,e,t)},useMemo:function(e,t){var n=lr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=lr();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=HC.bind(null,dt,e),[r.memoizedState,e]},useRef:function(e){var t=lr();return e={current:e},t.memoizedState=e},useState:pv,useDebugValue:xh,useDeferredValue:function(e){return lr().memoizedState=e},useTransition:function(){var e=pv(!1),t=e[0];return e=WC.bind(null,e[1]),lr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=dt,o=lr();if(st){if(n===void 0)throw Error(ce(407));n=n()}else{if(n=t(),Mt===null)throw Error(ce(349));Ao&30||ex(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,hv(nx.bind(null,r,i,e),[e]),r.flags|=2048,ss(9,tx.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=lr(),t=Mt.identifierPrefix;if(st){var n=Pr,r=Rr;n=(r&~(1<<32-er(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=is++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[dr]=t,e[ns]=r,Ex(e,t,!1,!1),t.stateNode=e;e:{switch(a=Cf(n,r),n){case"dialog":Ze("cancel",e),Ze("close",e),o=r;break;case"iframe":case"object":case"embed":Ze("load",e),o=r;break;case"video":case"audio":for(o=0;oIi&&(t.flags|=128,r=!0,pa(i,!1),t.lanes=4194304)}else{if(!r)if(e=lc(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),pa(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!st)return Bt(t),null}else 2*vt()-i.renderingStartTime>Ii&&n!==1073741824&&(t.flags|=128,r=!0,pa(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=vt(),t.sibling=null,n=ct.current,Je(ct,r?n&1|2:n&1),t):(Bt(t),null);case 22:case 23:return kh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?gn&1073741824&&(Bt(t),t.subtreeFlags&6&&(t.flags|=8192)):Bt(t),null;case 24:return null;case 25:return null}throw Error(ce(156,t.tag))}function nR(e,t){switch(ih(t),t.tag){case 1:return an(t.type)&&tc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ji(),et(on),et(Wt),hh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ph(t),null;case 13:if(et(ct),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ce(340));$i()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return et(ct),null;case 4:return ji(),null;case 10:return ch(t.type._context),null;case 22:case 23:return kh(),null;case 24:return null;default:return null}}var al=!1,Ut=!1,rR=typeof WeakSet=="function"?WeakSet:Set,xe=null;function mi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){gt(e,t,r)}else n.current=null}function Xf(e,t,n){try{n()}catch(r){gt(e,t,r)}}var kv=!1;function oR(e,t){if(If=Ql,e=_1(),rh(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,c=0,u=0,f=e,h=null;t:for(;;){for(var w;f!==n||o!==0&&f.nodeType!==3||(s=a+o),f!==i||r!==0&&f.nodeType!==3||(l=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(w=f.firstChild)!==null;)h=f,f=w;for(;;){if(f===e)break t;if(h===n&&++c===o&&(s=a),h===i&&++u===r&&(l=a),(w=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=w}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(_f={focusedElem:e,selectionRange:n},Ql=!1,xe=t;xe!==null;)if(t=xe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,xe=e;else for(;xe!==null;){t=xe;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var x=y.memoizedProps,C=y.memoizedState,v=t.stateNode,m=v.getSnapshotBeforeUpdate(t.elementType===t.type?x:Yn(t.type,x),C);v.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ce(163))}}catch(R){gt(t,t.return,R)}if(e=t.sibling,e!==null){e.return=t.return,xe=e;break}xe=t.return}return y=kv,kv=!1,y}function Na(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Xf(t,n,i)}o=o.next}while(o!==r)}}function Gc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Qf(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Mx(e){var t=e.alternate;t!==null&&(e.alternate=null,Mx(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[dr],delete t[ns],delete t[Nf],delete t[BC],delete t[FC])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function jx(e){return e.tag===5||e.tag===3||e.tag===4}function Pv(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||jx(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Jf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ec));else if(r!==4&&(e=e.child,e!==null))for(Jf(e,t,n),e=e.sibling;e!==null;)Jf(e,t,n),e=e.sibling}function Zf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Zf(e,t,n),e=e.sibling;e!==null;)Zf(e,t,n),e=e.sibling}var _t=null,Xn=!1;function Br(e,t,n){for(n=n.child;n!==null;)Ox(e,t,n),n=n.sibling}function Ox(e,t,n){if(fr&&typeof fr.onCommitFiberUnmount=="function")try{fr.onCommitFiberUnmount(zc,n)}catch{}switch(n.tag){case 5:Ut||mi(n,t);case 6:var r=_t,o=Xn;_t=null,Br(e,t,n),_t=r,Xn=o,_t!==null&&(Xn?(e=_t,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):_t.removeChild(n.stateNode));break;case 18:_t!==null&&(Xn?(e=_t,n=n.stateNode,e.nodeType===8?Td(e.parentNode,n):e.nodeType===1&&Td(e,n),Qa(e)):Td(_t,n.stateNode));break;case 4:r=_t,o=Xn,_t=n.stateNode.containerInfo,Xn=!0,Br(e,t,n),_t=r,Xn=o;break;case 0:case 11:case 14:case 15:if(!Ut&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Xf(n,t,a),o=o.next}while(o!==r)}Br(e,t,n);break;case 1:if(!Ut&&(mi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){gt(n,t,s)}Br(e,t,n);break;case 21:Br(e,t,n);break;case 22:n.mode&1?(Ut=(r=Ut)||n.memoizedState!==null,Br(e,t,n),Ut=r):Br(e,t,n);break;default:Br(e,t,n)}}function Ev(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new rR),t.forEach(function(r){var o=pR.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Kn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=vt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*aR(r/1960))-r,10e?16:e,Xr===null)var r=!1;else{if(e=Xr,Xr=null,pc=0,ze&6)throw Error(ce(331));var o=ze;for(ze|=4,xe=e.current;xe!==null;){var i=xe,a=i.child;if(xe.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lvt()-Ch?Mo(e,0):Sh|=n),sn(e,t)}function Bx(e,t){t===0&&(e.mode&1?(t=Qs,Qs<<=1,!(Qs&130023424)&&(Qs=4194304)):t=1);var n=Xt();e=jr(e,t),e!==null&&(Cs(e,t,n),sn(e,n))}function fR(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Bx(e,n)}function pR(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ce(314))}r!==null&&r.delete(t),Bx(e,n)}var Fx;Fx=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||on.current)rn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return rn=!1,eR(e,t,n);rn=!!(e.flags&131072)}else rn=!1,st&&t.flags&1048576&&V1(t,oc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;jl(e,t),e=t.pendingProps;var o=Ti(t,Wt.current);Si(t,n),o=gh(null,t,r,e,o,n);var i=vh();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,an(r)?(i=!0,nc(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,dh(t),o.updater=qc,t.stateNode=o,o._reactInternals=t,Wf(t,r,e,n),t=qf(null,t,r,!0,i,n)):(t.tag=0,st&&i&&oh(t),Kt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(jl(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=mR(r),e=Yn(r,e),o){case 0:t=Vf(null,t,r,e,n);break e;case 1:t=Sv(null,t,r,e,n);break e;case 11:t=bv(null,t,r,e,n);break e;case 14:t=wv(null,t,r,Yn(r.type,e),n);break e}throw Error(ce(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yn(r,o),Vf(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yn(r,o),Sv(e,t,r,o,n);case 3:e:{if(Rx(t),e===null)throw Error(ce(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Q1(e,t),sc(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Oi(Error(ce(423)),t),t=Cv(e,t,r,n,o);break e}else if(r!==o){o=Oi(Error(ce(424)),t),t=Cv(e,t,r,n,o);break e}else for(yn=no(t.stateNode.containerInfo.firstChild),xn=t,st=!0,Qn=null,n=Y1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($i(),r===o){t=Or(e,t,n);break e}Kt(e,t,r,n)}t=t.child}return t;case 5:return J1(t),e===null&&Bf(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Lf(r,o)?a=null:i!==null&&Lf(r,i)&&(t.flags|=32),Cx(e,t),Kt(e,t,a,n),t.child;case 6:return e===null&&Bf(t),null;case 13:return kx(e,t,n);case 4:return fh(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Mi(t,null,r,n):Kt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yn(r,o),bv(e,t,r,o,n);case 7:return Kt(e,t,t.pendingProps,n),t.child;case 8:return Kt(e,t,t.pendingProps.children,n),t.child;case 12:return Kt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Je(ic,r._currentValue),r._currentValue=a,i!==null)if(rr(i.value,a)){if(i.children===o.children&&!on.current){t=Or(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Tr(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Ff(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(ce(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Ff(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Kt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Si(t,n),o=Dn(o),r=r(o),t.flags|=1,Kt(e,t,r,n),t.child;case 14:return r=t.type,o=Yn(r,t.pendingProps),o=Yn(r.type,o),wv(e,t,r,o,n);case 15:return wx(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yn(r,o),jl(e,t),t.tag=1,an(r)?(e=!0,nc(t)):e=!1,Si(t,n),yx(t,r,o),Wf(t,r,o,n),qf(null,t,r,!0,e,n);case 19:return Px(e,t,n);case 22:return Sx(e,t,n)}throw Error(ce(156,t.tag))};function Ux(e,t){return m1(e,t)}function hR(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function In(e,t,n,r){return new hR(e,t,n,r)}function Eh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function mR(e){if(typeof e=="function")return Eh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===qp)return 11;if(e===Gp)return 14}return 2}function ao(e,t){var n=e.alternate;return n===null?(n=In(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function _l(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")Eh(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ai:return jo(n.children,o,i,t);case Vp:a=8,o|=8;break;case pf:return e=In(12,n,t,o|2),e.elementType=pf,e.lanes=i,e;case hf:return e=In(13,n,t,o),e.elementType=hf,e.lanes=i,e;case mf:return e=In(19,n,t,o),e.elementType=mf,e.lanes=i,e;case Jy:return Yc(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Xy:a=10;break e;case Qy:a=9;break e;case qp:a=11;break e;case Gp:a=14;break e;case Vr:a=16,r=null;break e}throw Error(ce(130,e==null?e:typeof e,""))}return t=In(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function jo(e,t,n,r){return e=In(7,e,r,t),e.lanes=n,e}function Yc(e,t,n,r){return e=In(22,e,r,t),e.elementType=Jy,e.lanes=n,e.stateNode={isHidden:!1},e}function Ad(e,t,n){return e=In(6,e,null,t),e.lanes=n,e}function Nd(e,t,n){return t=In(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function gR(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vd(0),this.expirationTimes=vd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vd(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Th(e,t,n,r,o,i,a,s,l){return e=new gR(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=In(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},dh(i),e}function vR(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(qx)}catch(e){console.error(e)}}qx(),qy.exports=Rn;var Oh=qy.exports;const cl=Nc(Oh);var Lv=Oh;df.createRoot=Lv.createRoot,df.hydrateRoot=Lv.hydrateRoot;function Gx(e,t){return function(){return e.apply(t,arguments)}}const{toString:SR}=Object.prototype,{getPrototypeOf:Ih}=Object,eu=(e=>t=>{const n=SR.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ir=e=>(e=e.toLowerCase(),t=>eu(t)===e),tu=e=>t=>typeof t===e,{isArray:qi}=Array,cs=tu("undefined");function CR(e){return e!==null&&!cs(e)&&e.constructor!==null&&!cs(e.constructor)&&An(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Kx=ir("ArrayBuffer");function RR(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Kx(e.buffer),t}const kR=tu("string"),An=tu("function"),Yx=tu("number"),nu=e=>e!==null&&typeof e=="object",PR=e=>e===!0||e===!1,Ll=e=>{if(eu(e)!=="object")return!1;const t=Ih(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},ER=ir("Date"),TR=ir("File"),$R=ir("Blob"),MR=ir("FileList"),jR=e=>nu(e)&&An(e.pipe),OR=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||An(e.append)&&((t=eu(e))==="formdata"||t==="object"&&An(e.toString)&&e.toString()==="[object FormData]"))},IR=ir("URLSearchParams"),[_R,LR,AR,NR]=["ReadableStream","Request","Response","Headers"].map(ir),DR=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Es(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),qi(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Qx=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Jx=e=>!cs(e)&&e!==Qx;function op(){const{caseless:e}=Jx(this)&&this||{},t={},n=(r,o)=>{const i=e&&Xx(t,o)||o;Ll(t[i])&&Ll(r)?t[i]=op(t[i],r):Ll(r)?t[i]=op({},r):qi(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(Es(t,(o,i)=>{n&&An(o)?e[i]=Gx(o,n):e[i]=o},{allOwnKeys:r}),e),BR=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),FR=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},UR=(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&Ih(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},WR=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},HR=e=>{if(!e)return null;if(qi(e))return e;let t=e.length;if(!Yx(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},VR=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ih(Uint8Array)),qR=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},GR=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},KR=ir("HTMLFormElement"),YR=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Av=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),XR=ir("RegExp"),Zx=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Es(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},QR=e=>{Zx(e,(t,n)=>{if(An(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(An(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},JR=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return qi(e)?r(e):r(String(e).split(t)),n},ZR=()=>{},ek=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Dd="abcdefghijklmnopqrstuvwxyz",Nv="0123456789",eb={DIGIT:Nv,ALPHA:Dd,ALPHA_DIGIT:Dd+Dd.toUpperCase()+Nv},tk=(e=16,t=eb.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function nk(e){return!!(e&&An(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const rk=e=>{const t=new Array(10),n=(r,o)=>{if(nu(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=qi(r)?[]:{};return Es(r,(a,s)=>{const l=n(a,o+1);!cs(l)&&(i[s]=l)}),t[o]=void 0,i}}return r};return n(e,0)},ok=ir("AsyncFunction"),ik=e=>e&&(nu(e)||An(e))&&An(e.then)&&An(e.catch),Q={isArray:qi,isArrayBuffer:Kx,isBuffer:CR,isFormData:OR,isArrayBufferView:RR,isString:kR,isNumber:Yx,isBoolean:PR,isObject:nu,isPlainObject:Ll,isReadableStream:_R,isRequest:LR,isResponse:AR,isHeaders:NR,isUndefined:cs,isDate:ER,isFile:TR,isBlob:$R,isRegExp:XR,isFunction:An,isStream:jR,isURLSearchParams:IR,isTypedArray:VR,isFileList:MR,forEach:Es,merge:op,extend:zR,trim:DR,stripBOM:BR,inherits:FR,toFlatObject:UR,kindOf:eu,kindOfTest:ir,endsWith:WR,toArray:HR,forEachEntry:qR,matchAll:GR,isHTMLForm:KR,hasOwnProperty:Av,hasOwnProp:Av,reduceDescriptors:Zx,freezeMethods:QR,toObjectSet:JR,toCamelCase:YR,noop:ZR,toFiniteNumber:ek,findKey:Xx,global:Qx,isContextDefined:Jx,ALPHABET:eb,generateString:tk,isSpecCompliantForm:nk,toJSONObject:rk,isAsyncFn:ok,isThenable:ik};function Me(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}Q.inherits(Me,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Q.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const tb=Me.prototype,nb={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{nb[e]={value:e}});Object.defineProperties(Me,nb);Object.defineProperty(tb,"isAxiosError",{value:!0});Me.from=(e,t,n,r,o,i)=>{const a=Object.create(tb);return Q.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Me.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const ak=null;function ip(e){return Q.isPlainObject(e)||Q.isArray(e)}function rb(e){return Q.endsWith(e,"[]")?e.slice(0,-2):e}function Dv(e,t,n){return e?e.concat(t).map(function(o,i){return o=rb(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function sk(e){return Q.isArray(e)&&!e.some(ip)}const lk=Q.toFlatObject(Q,{},null,function(t){return/^is[A-Z]/.test(t)});function ru(e,t,n){if(!Q.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,C){return!Q.isUndefined(C[x])});const r=n.metaTokens,o=n.visitor||u,i=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&Q.isSpecCompliantForm(t);if(!Q.isFunction(o))throw new TypeError("visitor must be a function");function c(y){if(y===null)return"";if(Q.isDate(y))return y.toISOString();if(!l&&Q.isBlob(y))throw new Me("Blob is not supported. Use a Buffer instead.");return Q.isArrayBuffer(y)||Q.isTypedArray(y)?l&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function u(y,x,C){let v=y;if(y&&!C&&typeof y=="object"){if(Q.endsWith(x,"{}"))x=r?x:x.slice(0,-2),y=JSON.stringify(y);else if(Q.isArray(y)&&sk(y)||(Q.isFileList(y)||Q.endsWith(x,"[]"))&&(v=Q.toArray(y)))return x=rb(x),v.forEach(function(b,R){!(Q.isUndefined(b)||b===null)&&t.append(a===!0?Dv([x],R,i):a===null?x:x+"[]",c(b))}),!1}return ip(y)?!0:(t.append(Dv(C,x,i),c(y)),!1)}const f=[],h=Object.assign(lk,{defaultVisitor:u,convertValue:c,isVisitable:ip});function w(y,x){if(!Q.isUndefined(y)){if(f.indexOf(y)!==-1)throw Error("Circular reference detected in "+x.join("."));f.push(y),Q.forEach(y,function(v,m){(!(Q.isUndefined(v)||v===null)&&o.call(t,v,Q.isString(m)?m.trim():m,x,h))===!0&&w(v,x?x.concat(m):[m])}),f.pop()}}if(!Q.isObject(e))throw new TypeError("data must be an object");return w(e),t}function zv(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function _h(e,t){this._pairs=[],e&&ru(e,this,t)}const ob=_h.prototype;ob.append=function(t,n){this._pairs.push([t,n])};ob.toString=function(t){const n=t?function(r){return t.call(this,r,zv)}:zv;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function ck(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ib(e,t,n){if(!t)return e;const r=n&&n.encode||ck,o=n&&n.serialize;let i;if(o?i=o(t,n):i=Q.isURLSearchParams(t)?t.toString():new _h(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Bv{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Q.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ab={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},uk=typeof URLSearchParams<"u"?URLSearchParams:_h,dk=typeof FormData<"u"?FormData:null,fk=typeof Blob<"u"?Blob:null,pk={isBrowser:!0,classes:{URLSearchParams:uk,FormData:dk,Blob:fk},protocols:["http","https","file","blob","url","data"]},Lh=typeof window<"u"&&typeof document<"u",hk=(e=>Lh&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),mk=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",gk=Lh&&window.location.href||"http://localhost",vk=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Lh,hasStandardBrowserEnv:hk,hasStandardBrowserWebWorkerEnv:mk,origin:gk},Symbol.toStringTag,{value:"Module"})),nr={...vk,...pk};function yk(e,t){return ru(e,new nr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return nr.isNode&&Q.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function xk(e){return Q.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function bk(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return a=!a&&Q.isArray(o)?o.length:a,l?(Q.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!s):((!o[a]||!Q.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&Q.isArray(o[a])&&(o[a]=bk(o[a])),!s)}if(Q.isFormData(e)&&Q.isFunction(e.entries)){const n={};return Q.forEachEntry(e,(r,o)=>{t(xk(r),o,n,0)}),n}return null}function wk(e,t,n){if(Q.isString(e))try{return(t||JSON.parse)(e),Q.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ts={transitional:ab,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=Q.isObject(t);if(i&&Q.isHTMLForm(t)&&(t=new FormData(t)),Q.isFormData(t))return o?JSON.stringify(sb(t)):t;if(Q.isArrayBuffer(t)||Q.isBuffer(t)||Q.isStream(t)||Q.isFile(t)||Q.isBlob(t)||Q.isReadableStream(t))return t;if(Q.isArrayBufferView(t))return t.buffer;if(Q.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return yk(t,this.formSerializer).toString();if((s=Q.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return ru(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),wk(t)):t}],transformResponse:[function(t){const n=this.transitional||Ts.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Q.isResponse(t)||Q.isReadableStream(t))return t;if(t&&Q.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?Me.from(s,Me.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:nr.classes.FormData,Blob:nr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Q.forEach(["delete","get","head","post","put","patch"],e=>{Ts.headers[e]={}});const Sk=Q.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ck=e=>{const t={};let n,r,o;return e&&e.split(` -`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&Sk[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Fv=Symbol("internals");function ma(e){return e&&String(e).trim().toLowerCase()}function Al(e){return e===!1||e==null?e:Q.isArray(e)?e.map(Al):String(e)}function Rk(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const kk=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function zd(e,t,n,r,o){if(Q.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Q.isString(t)){if(Q.isString(r))return t.indexOf(r)!==-1;if(Q.isRegExp(r))return r.test(t)}}function Pk(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Ek(e,t){const n=Q.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}class ln{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(s,l,c){const u=ma(l);if(!u)throw new Error("header name must be a non-empty string");const f=Q.findKey(o,u);(!f||o[f]===void 0||c===!0||c===void 0&&o[f]!==!1)&&(o[f||l]=Al(s))}const a=(s,l)=>Q.forEach(s,(c,u)=>i(c,u,l));if(Q.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(Q.isString(t)&&(t=t.trim())&&!kk(t))a(Ck(t),n);else if(Q.isHeaders(t))for(const[s,l]of t.entries())i(l,s,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=ma(t),t){const r=Q.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Rk(o);if(Q.isFunction(n))return n.call(this,o,r);if(Q.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ma(t),t){const r=Q.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||zd(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=ma(a),a){const s=Q.findKey(r,a);s&&(!n||zd(r,r[s],s,n))&&(delete r[s],o=!0)}}return Q.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||zd(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return Q.forEach(this,(o,i)=>{const a=Q.findKey(r,i);if(a){n[a]=Al(o),delete n[i];return}const s=t?Pk(i):String(i).trim();s!==i&&delete n[i],n[s]=Al(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Q.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Q.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Fv]=this[Fv]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=ma(a);r[s]||(Ek(o,a),r[s]=!0)}return Q.isArray(t)?t.forEach(i):i(t),this}}ln.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Q.reduceDescriptors(ln.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Q.freezeMethods(ln);function Bd(e,t){const n=this||Ts,r=t||n,o=ln.from(r.headers);let i=r.data;return Q.forEach(e,function(s){i=s.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function lb(e){return!!(e&&e.__CANCEL__)}function Gi(e,t,n){Me.call(this,e??"canceled",Me.ERR_CANCELED,t,n),this.name="CanceledError"}Q.inherits(Gi,Me,{__CANCEL__:!0});function cb(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Me("Request failed with status code "+n.status,[Me.ERR_BAD_REQUEST,Me.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Tk(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function $k(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[i];a||(a=c),n[o]=l,r[o]=c;let f=i,h=0;for(;f!==o;)h+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-ar)return o&&(clearTimeout(o),o=null),n=s,e.apply(null,arguments);o||(o=setTimeout(()=>(o=null,n=Date.now(),e.apply(null,arguments)),r-(s-n)))}}const gc=(e,t,n=3)=>{let r=0;const o=$k(50,250);return Mk(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,l=a-r,c=o(l),u=a<=s;r=a;const f={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-a)/c:void 0,event:i,lengthComputable:s!=null};f[t?"download":"upload"]=!0,e(f)},n)},jk=nr.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let a=i;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(a){const s=Q.isString(a)?o(a):a;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}(),Ok=nr.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Q.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Q.isString(r)&&a.push("path="+r),Q.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Ik(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function _k(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ub(e,t){return e&&!Ik(t)?_k(e,t):t}const Uv=e=>e instanceof ln?{...e}:e;function zo(e,t){t=t||{};const n={};function r(c,u,f){return Q.isPlainObject(c)&&Q.isPlainObject(u)?Q.merge.call({caseless:f},c,u):Q.isPlainObject(u)?Q.merge({},u):Q.isArray(u)?u.slice():u}function o(c,u,f){if(Q.isUndefined(u)){if(!Q.isUndefined(c))return r(void 0,c,f)}else return r(c,u,f)}function i(c,u){if(!Q.isUndefined(u))return r(void 0,u)}function a(c,u){if(Q.isUndefined(u)){if(!Q.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,f){if(f in t)return r(c,u);if(f in e)return r(void 0,c)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(c,u)=>o(Uv(c),Uv(u),!0)};return Q.forEach(Object.keys(Object.assign({},e,t)),function(u){const f=l[u]||o,h=f(e[u],t[u],u);Q.isUndefined(h)&&f!==s||(n[u]=h)}),n}const db=e=>{const t=zo({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;t.headers=a=ln.from(a),t.url=ib(ub(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(Q.isFormData(n)){if(nr.hasStandardBrowserEnv||nr.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[c,...u]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...u].join("; "))}}if(nr.hasStandardBrowserEnv&&(r&&Q.isFunction(r)&&(r=r(t)),r||r!==!1&&jk(t.url))){const c=o&&i&&Ok.read(i);c&&a.set(o,c)}return t},Lk=typeof XMLHttpRequest<"u",Ak=Lk&&function(e){return new Promise(function(n,r){const o=db(e);let i=o.data;const a=ln.from(o.headers).normalize();let{responseType:s}=o,l;function c(){o.cancelToken&&o.cancelToken.unsubscribe(l),o.signal&&o.signal.removeEventListener("abort",l)}let u=new XMLHttpRequest;u.open(o.method.toUpperCase(),o.url,!0),u.timeout=o.timeout;function f(){if(!u)return;const w=ln.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),x={data:!s||s==="text"||s==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:w,config:e,request:u};cb(function(v){n(v),c()},function(v){r(v),c()},x),u=null}"onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(f)},u.onabort=function(){u&&(r(new Me("Request aborted",Me.ECONNABORTED,o,u)),u=null)},u.onerror=function(){r(new Me("Network Error",Me.ERR_NETWORK,o,u)),u=null},u.ontimeout=function(){let y=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const x=o.transitional||ab;o.timeoutErrorMessage&&(y=o.timeoutErrorMessage),r(new Me(y,x.clarifyTimeoutError?Me.ETIMEDOUT:Me.ECONNABORTED,o,u)),u=null},i===void 0&&a.setContentType(null),"setRequestHeader"in u&&Q.forEach(a.toJSON(),function(y,x){u.setRequestHeader(x,y)}),Q.isUndefined(o.withCredentials)||(u.withCredentials=!!o.withCredentials),s&&s!=="json"&&(u.responseType=o.responseType),typeof o.onDownloadProgress=="function"&&u.addEventListener("progress",gc(o.onDownloadProgress,!0)),typeof o.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",gc(o.onUploadProgress)),(o.cancelToken||o.signal)&&(l=w=>{u&&(r(!w||w.type?new Gi(null,e,u):w),u.abort(),u=null)},o.cancelToken&&o.cancelToken.subscribe(l),o.signal&&(o.signal.aborted?l():o.signal.addEventListener("abort",l)));const h=Tk(o.url);if(h&&nr.protocols.indexOf(h)===-1){r(new Me("Unsupported protocol "+h+":",Me.ERR_BAD_REQUEST,e));return}u.send(i||null)})},Nk=(e,t)=>{let n=new AbortController,r;const o=function(l){if(!r){r=!0,a();const c=l instanceof Error?l:this.reason;n.abort(c instanceof Me?c:new Gi(c instanceof Error?c.message:c))}};let i=t&&setTimeout(()=>{o(new Me(`timeout ${t} of ms exceeded`,Me.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",o):l.unsubscribe(o))}),e=null)};e.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",o));const{signal:s}=n;return s.unsubscribe=a,[s,()=>{i&&clearTimeout(i),i=null}]},Dk=function*(e,t){let n=e.byteLength;if(!t||n{const i=zk(e,t,o);let a=0;return new ReadableStream({type:"bytes",async pull(s){const{done:l,value:c}=await i.next();if(l){s.close(),r();return}let u=c.byteLength;n&&n(a+=u),s.enqueue(new Uint8Array(c))},cancel(s){return r(s),i.return()}},{highWaterMark:2})},Hv=(e,t)=>{const n=e!=null;return r=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:r}))},ou=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",fb=ou&&typeof ReadableStream=="function",ap=ou&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Bk=fb&&(()=>{let e=!1;const t=new Request(nr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),Vv=64*1024,sp=fb&&!!(()=>{try{return Q.isReadableStream(new Response("").body)}catch{}})(),vc={stream:sp&&(e=>e.body)};ou&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!vc[t]&&(vc[t]=Q.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Me(`Response type '${t}' is not supported`,Me.ERR_NOT_SUPPORT,r)})})})(new Response);const Fk=async e=>{if(e==null)return 0;if(Q.isBlob(e))return e.size;if(Q.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(Q.isArrayBufferView(e))return e.byteLength;if(Q.isURLSearchParams(e)&&(e=e+""),Q.isString(e))return(await ap(e)).byteLength},Uk=async(e,t)=>{const n=Q.toFiniteNumber(e.getContentLength());return n??Fk(t)},Wk=ou&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:f="same-origin",fetchOptions:h}=db(e);c=c?(c+"").toLowerCase():"text";let[w,y]=o||i||a?Nk([o,i],a):[],x,C;const v=()=>{!x&&setTimeout(()=>{w&&w.unsubscribe()}),x=!0};let m;try{if(l&&Bk&&n!=="get"&&n!=="head"&&(m=await Uk(u,r))!==0){let T=new Request(t,{method:"POST",body:r,duplex:"half"}),P;Q.isFormData(r)&&(P=T.headers.get("content-type"))&&u.setContentType(P),T.body&&(r=Wv(T.body,Vv,Hv(m,gc(l)),null,ap))}Q.isString(f)||(f=f?"cors":"omit"),C=new Request(t,{...h,signal:w,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",withCredentials:f});let b=await fetch(C);const R=sp&&(c==="stream"||c==="response");if(sp&&(s||R)){const T={};["status","statusText","headers"].forEach(j=>{T[j]=b[j]});const P=Q.toFiniteNumber(b.headers.get("content-length"));b=new Response(Wv(b.body,Vv,s&&Hv(P,gc(s,!0)),R&&v,ap),T)}c=c||"text";let k=await vc[Q.findKey(vc,c)||"text"](b,e);return!R&&v(),y&&y(),await new Promise((T,P)=>{cb(T,P,{data:k,headers:ln.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:C})})}catch(b){throw v(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new Me("Network Error",Me.ERR_NETWORK,e,C),{cause:b.cause||b}):Me.from(b,b&&b.code,e,C)}}),lp={http:ak,xhr:Ak,fetch:Wk};Q.forEach(lp,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const qv=e=>`- ${e}`,Hk=e=>Q.isFunction(e)||e===null||e===!1,pb={getAdapter:e=>{e=Q.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since : +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Id(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Wf(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var YC=typeof WeakMap=="function"?WeakMap:Map;function yx(e,t,n){n=Tr(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){fc||(fc=!0,Zf=r),Wf(e,t)},n}function xx(e,t,n){n=Tr(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Wf(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Wf(e,t),typeof r!="function"&&(oo===null?oo=new Set([this]):oo.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function vv(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new YC;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=ck.bind(null,e,t,n),t.then(e,e))}function yv(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function xv(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Tr(-1,1),t.tag=2,ro(n,t,1))),n.lanes|=1),e)}var XC=Ar.ReactCurrentOwner,rn=!1;function Kt(e,t,n,r){t.child=e===null?K1(t,null,n,r):Mi(t,e.child,n,r)}function bv(e,t,n,r,o){n=n.render;var i=t.ref;return Si(t,o),r=gh(e,t,n,r,i,o),n=vh(),e!==null&&!rn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Or(e,t,o)):(st&&n&&oh(t),t.flags|=1,Kt(e,t,r,o),t.child)}function wv(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Eh(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,bx(e,t,i,r,o)):(e=_l(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:Za,n(a,r)&&e.ref===t.ref)return Or(e,t,o)}return t.flags|=1,e=ao(i,r),e.ref=t.ref,e.return=t,t.child=e}function bx(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Za(i,r)&&e.ref===t.ref)if(rn=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(rn=!0);else return t.lanes=e.lanes,Or(e,t,o)}return Hf(e,t,n,r,o)}function wx(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Je(gi,gn),gn|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Je(gi,gn),gn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Je(gi,gn),gn|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Je(gi,gn),gn|=r;return Kt(e,t,o,n),t.child}function Sx(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Hf(e,t,n,r,o){var i=an(n)?_o:Wt.current;return i=Ti(t,i),Si(t,o),n=gh(e,t,n,r,i,o),r=vh(),e!==null&&!rn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Or(e,t,o)):(st&&r&&oh(t),t.flags|=1,Kt(e,t,n,o),t.child)}function Sv(e,t,n,r,o){if(an(n)){var i=!0;nc(t)}else i=!1;if(Si(t,o),t.stateNode===null)jl(e,t),vx(t,n,r),Uf(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;typeof c=="object"&&c!==null?c=Dn(c):(c=an(n)?_o:Wt.current,c=Ti(t,c));var u=n.getDerivedStateFromProps,f=typeof u=="function"||typeof a.getSnapshotBeforeUpdate=="function";f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==c)&&gv(t,a,r,c),qr=!1;var h=t.memoizedState;a.state=h,sc(t,r,a,o),l=t.memoizedState,s!==r||h!==l||on.current||qr?(typeof u=="function"&&(Ff(t,n,u,r),l=t.memoizedState),(s=qr||mv(t,n,s,r,h,l,c))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,X1(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Yn(t.type,s),a.props=c,f=t.pendingProps,h=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=Dn(l):(l=an(n)?_o:Wt.current,l=Ti(t,l));var w=n.getDerivedStateFromProps;(u=typeof w=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==f||h!==l)&&gv(t,a,r,l),qr=!1,h=t.memoizedState,a.state=h,sc(t,r,a,o);var y=t.memoizedState;s!==f||h!==y||on.current||qr?(typeof w=="function"&&(Ff(t,n,w,r),y=t.memoizedState),(c=qr||mv(t,n,c,r,h,y,l)||!1)?(u||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,y,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,y,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),a.props=r,a.state=y,a.context=l,r=c):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Vf(e,t,n,r,i,o)}function Vf(e,t,n,r,o,i){Sx(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&sv(t,n,!1),Or(e,t,i);r=t.stateNode,XC.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Mi(t,e.child,null,i),t.child=Mi(t,null,s,i)):Kt(e,t,s,i),t.memoizedState=r.state,o&&sv(t,n,!0),t.child}function Cx(e){var t=e.stateNode;t.pendingContext?av(e,t.pendingContext,t.pendingContext!==t.context):t.context&&av(e,t.context,!1),fh(e,t.containerInfo)}function Cv(e,t,n,r,o){return $i(),ah(o),t.flags|=256,Kt(e,t,n,r),t.child}var qf={dehydrated:null,treeContext:null,retryLane:0};function Gf(e){return{baseLanes:e,cachePool:null,transitions:null}}function kx(e,t,n){var r=t.pendingProps,o=ct.current,i=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Je(ct,o&1),e===null)return zf(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=Kc(a,r,0,null),e=jo(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Gf(n),t.memoizedState=qf,e):bh(t,a));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return QC(e,t,a,r,s,o,n);if(i){i=r.fallback,a=t.mode,o=e.child,s=o.sibling;var l={mode:"hidden",children:r.children};return!(a&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=ao(o,l),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=ao(s,i):(i=jo(i,a,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,a=e.child.memoizedState,a=a===null?Gf(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=qf,r}return i=e.child,e=i.sibling,r=ao(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function bh(e,t){return t=Kc({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function il(e,t,n,r){return r!==null&&ah(r),Mi(t,e.child,null,n),e=bh(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function QC(e,t,n,r,o,i,a){if(n)return t.flags&256?(t.flags&=-257,r=Id(Error(ce(422))),il(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Kc({mode:"visible",children:r.children},o,0,null),i=jo(i,o,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Mi(t,e.child,null,a),t.child.memoizedState=Gf(a),t.memoizedState=qf,i);if(!(t.mode&1))return il(e,t,a,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(ce(419)),r=Id(i,r,void 0),il(e,t,a,r)}if(s=(a&e.childLanes)!==0,rn||s){if(r=Mt,r!==null){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|a)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,jr(e,o),tr(r,e,o,-1))}return Ph(),r=Id(Error(ce(421))),il(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=uk.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,yn=no(o.nextSibling),xn=t,st=!0,Qn=null,e!==null&&(Mn[jn++]=Rr,Mn[jn++]=Pr,Mn[jn++]=Lo,Rr=e.id,Pr=e.overflow,Lo=t),t=bh(t,r.children),t.flags|=4096,t)}function kv(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Bf(e.return,t,n)}function _d(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Rx(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Kt(e,t,r.children,n),r=ct.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&kv(e,n,t);else if(e.tag===19)kv(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Je(ct,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&lc(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),_d(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&lc(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}_d(t,!0,n,null,i);break;case"together":_d(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function jl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Or(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),No|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(ce(153));if(t.child!==null){for(e=t.child,n=ao(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ao(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function JC(e,t,n){switch(t.tag){case 3:Cx(t),$i();break;case 5:Q1(t);break;case 1:an(t.type)&&nc(t);break;case 4:fh(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Je(ic,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Je(ct,ct.current&1),t.flags|=128,null):n&t.child.childLanes?kx(e,t,n):(Je(ct,ct.current&1),e=Or(e,t,n),e!==null?e.sibling:null);Je(ct,ct.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Rx(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Je(ct,ct.current),r)break;return null;case 22:case 23:return t.lanes=0,wx(e,t,n)}return Or(e,t,n)}var Px,Kf,Ex,Tx;Px=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Kf=function(){};Ex=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Eo(pr.current);var i=null;switch(n){case"input":o=gf(e,o),r=gf(e,r),i=[];break;case"select":o=pt({},o,{value:void 0}),r=pt({},r,{value:void 0}),i=[];break;case"textarea":o=xf(e,o),r=xf(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ec)}wf(n,r);var a;n=null;for(c in o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var s=o[c];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(qa.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var l=r[c];if(s=o!=null?o[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(l!=null||s!=null))if(c==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(i||(i=[]),i.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(i=i||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(qa.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Ze("scroll",e),i||s===l||(i=[])):(i=i||[]).push(c,l))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};Tx=function(e,t,n,r){n!==r&&(t.flags|=4)};function pa(e,t){if(!st)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Bt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function ZC(e,t,n){var r=t.pendingProps;switch(ih(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Bt(t),null;case 1:return an(t.type)&&tc(),Bt(t),null;case 3:return r=t.stateNode,ji(),et(on),et(Wt),hh(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(rl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Qn!==null&&(np(Qn),Qn=null))),Kf(e,t),Bt(t),null;case 5:ph(t);var o=Eo(os.current);if(n=t.type,e!==null&&t.stateNode!=null)Ex(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(ce(166));return Bt(t),null}if(e=Eo(pr.current),rl(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[dr]=t,r[ns]=i,e=(t.mode&1)!==0,n){case"dialog":Ze("cancel",r),Ze("close",r);break;case"iframe":case"object":case"embed":Ze("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[dr]=t,e[ns]=r,Px(e,t,!1,!1),t.stateNode=e;e:{switch(a=Sf(n,r),n){case"dialog":Ze("cancel",e),Ze("close",e),o=r;break;case"iframe":case"object":case"embed":Ze("load",e),o=r;break;case"video":case"audio":for(o=0;oIi&&(t.flags|=128,r=!0,pa(i,!1),t.lanes=4194304)}else{if(!r)if(e=lc(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),pa(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!st)return Bt(t),null}else 2*vt()-i.renderingStartTime>Ii&&n!==1073741824&&(t.flags|=128,r=!0,pa(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=vt(),t.sibling=null,n=ct.current,Je(ct,r?n&1|2:n&1),t):(Bt(t),null);case 22:case 23:return Rh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?gn&1073741824&&(Bt(t),t.subtreeFlags&6&&(t.flags|=8192)):Bt(t),null;case 24:return null;case 25:return null}throw Error(ce(156,t.tag))}function ek(e,t){switch(ih(t),t.tag){case 1:return an(t.type)&&tc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ji(),et(on),et(Wt),hh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ph(t),null;case 13:if(et(ct),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ce(340));$i()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return et(ct),null;case 4:return ji(),null;case 10:return ch(t.type._context),null;case 22:case 23:return Rh(),null;case 24:return null;default:return null}}var al=!1,Ut=!1,tk=typeof WeakSet=="function"?WeakSet:Set,xe=null;function mi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){gt(e,t,r)}else n.current=null}function Yf(e,t,n){try{n()}catch(r){gt(e,t,r)}}var Rv=!1;function nk(e,t){if(Of=Ql,e=I1(),rh(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,c=0,u=0,f=e,h=null;t:for(;;){for(var w;f!==n||o!==0&&f.nodeType!==3||(s=a+o),f!==i||r!==0&&f.nodeType!==3||(l=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(w=f.firstChild)!==null;)h=f,f=w;for(;;){if(f===e)break t;if(h===n&&++c===o&&(s=a),h===i&&++u===r&&(l=a),(w=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=w}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(If={focusedElem:e,selectionRange:n},Ql=!1,xe=t;xe!==null;)if(t=xe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,xe=e;else for(;xe!==null;){t=xe;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var x=y.memoizedProps,C=y.memoizedState,v=t.stateNode,m=v.getSnapshotBeforeUpdate(t.elementType===t.type?x:Yn(t.type,x),C);v.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ce(163))}}catch(k){gt(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,xe=e;break}xe=t.return}return y=Rv,Rv=!1,y}function Na(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Yf(t,n,i)}o=o.next}while(o!==r)}}function qc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Xf(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function $x(e){var t=e.alternate;t!==null&&(e.alternate=null,$x(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[dr],delete t[ns],delete t[Af],delete t[DC],delete t[zC])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Mx(e){return e.tag===5||e.tag===3||e.tag===4}function Pv(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Mx(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Qf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ec));else if(r!==4&&(e=e.child,e!==null))for(Qf(e,t,n),e=e.sibling;e!==null;)Qf(e,t,n),e=e.sibling}function Jf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Jf(e,t,n),e=e.sibling;e!==null;)Jf(e,t,n),e=e.sibling}var _t=null,Xn=!1;function Br(e,t,n){for(n=n.child;n!==null;)jx(e,t,n),n=n.sibling}function jx(e,t,n){if(fr&&typeof fr.onCommitFiberUnmount=="function")try{fr.onCommitFiberUnmount(Dc,n)}catch{}switch(n.tag){case 5:Ut||mi(n,t);case 6:var r=_t,o=Xn;_t=null,Br(e,t,n),_t=r,Xn=o,_t!==null&&(Xn?(e=_t,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):_t.removeChild(n.stateNode));break;case 18:_t!==null&&(Xn?(e=_t,n=n.stateNode,e.nodeType===8?Ed(e.parentNode,n):e.nodeType===1&&Ed(e,n),Qa(e)):Ed(_t,n.stateNode));break;case 4:r=_t,o=Xn,_t=n.stateNode.containerInfo,Xn=!0,Br(e,t,n),_t=r,Xn=o;break;case 0:case 11:case 14:case 15:if(!Ut&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Yf(n,t,a),o=o.next}while(o!==r)}Br(e,t,n);break;case 1:if(!Ut&&(mi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){gt(n,t,s)}Br(e,t,n);break;case 21:Br(e,t,n);break;case 22:n.mode&1?(Ut=(r=Ut)||n.memoizedState!==null,Br(e,t,n),Ut=r):Br(e,t,n);break;default:Br(e,t,n)}}function Ev(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new tk),t.forEach(function(r){var o=dk.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Kn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=vt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ok(r/1960))-r,10e?16:e,Xr===null)var r=!1;else{if(e=Xr,Xr=null,pc=0,ze&6)throw Error(ce(331));var o=ze;for(ze|=4,xe=e.current;xe!==null;){var i=xe,a=i.child;if(xe.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lvt()-Ch?Mo(e,0):Sh|=n),sn(e,t)}function zx(e,t){t===0&&(e.mode&1?(t=Qs,Qs<<=1,!(Qs&130023424)&&(Qs=4194304)):t=1);var n=Xt();e=jr(e,t),e!==null&&(Cs(e,t,n),sn(e,n))}function uk(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),zx(e,n)}function dk(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ce(314))}r!==null&&r.delete(t),zx(e,n)}var Bx;Bx=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||on.current)rn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return rn=!1,JC(e,t,n);rn=!!(e.flags&131072)}else rn=!1,st&&t.flags&1048576&&H1(t,oc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;jl(e,t),e=t.pendingProps;var o=Ti(t,Wt.current);Si(t,n),o=gh(null,t,r,e,o,n);var i=vh();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,an(r)?(i=!0,nc(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,dh(t),o.updater=Vc,t.stateNode=o,o._reactInternals=t,Uf(t,r,e,n),t=Vf(null,t,r,!0,i,n)):(t.tag=0,st&&i&&oh(t),Kt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(jl(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=pk(r),e=Yn(r,e),o){case 0:t=Hf(null,t,r,e,n);break e;case 1:t=Sv(null,t,r,e,n);break e;case 11:t=bv(null,t,r,e,n);break e;case 14:t=wv(null,t,r,Yn(r.type,e),n);break e}throw Error(ce(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yn(r,o),Hf(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yn(r,o),Sv(e,t,r,o,n);case 3:e:{if(Cx(t),e===null)throw Error(ce(387));r=t.pendingProps,i=t.memoizedState,o=i.element,X1(e,t),sc(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Oi(Error(ce(423)),t),t=Cv(e,t,r,n,o);break e}else if(r!==o){o=Oi(Error(ce(424)),t),t=Cv(e,t,r,n,o);break e}else for(yn=no(t.stateNode.containerInfo.firstChild),xn=t,st=!0,Qn=null,n=K1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($i(),r===o){t=Or(e,t,n);break e}Kt(e,t,r,n)}t=t.child}return t;case 5:return Q1(t),e===null&&zf(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,_f(r,o)?a=null:i!==null&&_f(r,i)&&(t.flags|=32),Sx(e,t),Kt(e,t,a,n),t.child;case 6:return e===null&&zf(t),null;case 13:return kx(e,t,n);case 4:return fh(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Mi(t,null,r,n):Kt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yn(r,o),bv(e,t,r,o,n);case 7:return Kt(e,t,t.pendingProps,n),t.child;case 8:return Kt(e,t,t.pendingProps.children,n),t.child;case 12:return Kt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Je(ic,r._currentValue),r._currentValue=a,i!==null)if(rr(i.value,a)){if(i.children===o.children&&!on.current){t=Or(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Tr(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Bf(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(ce(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Bf(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Kt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Si(t,n),o=Dn(o),r=r(o),t.flags|=1,Kt(e,t,r,n),t.child;case 14:return r=t.type,o=Yn(r,t.pendingProps),o=Yn(r.type,o),wv(e,t,r,o,n);case 15:return bx(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yn(r,o),jl(e,t),t.tag=1,an(r)?(e=!0,nc(t)):e=!1,Si(t,n),vx(t,r,o),Uf(t,r,o,n),Vf(null,t,r,!0,e,n);case 19:return Rx(e,t,n);case 22:return wx(e,t,n)}throw Error(ce(156,t.tag))};function Fx(e,t){return h1(e,t)}function fk(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function In(e,t,n,r){return new fk(e,t,n,r)}function Eh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pk(e){if(typeof e=="function")return Eh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===qp)return 11;if(e===Gp)return 14}return 2}function ao(e,t){var n=e.alternate;return n===null?(n=In(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function _l(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")Eh(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ai:return jo(n.children,o,i,t);case Vp:a=8,o|=8;break;case ff:return e=In(12,n,t,o|2),e.elementType=ff,e.lanes=i,e;case pf:return e=In(13,n,t,o),e.elementType=pf,e.lanes=i,e;case hf:return e=In(19,n,t,o),e.elementType=hf,e.lanes=i,e;case Qy:return Kc(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Yy:a=10;break e;case Xy:a=9;break e;case qp:a=11;break e;case Gp:a=14;break e;case Vr:a=16,r=null;break e}throw Error(ce(130,e==null?e:typeof e,""))}return t=In(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function jo(e,t,n,r){return e=In(7,e,r,t),e.lanes=n,e}function Kc(e,t,n,r){return e=In(22,e,r,t),e.elementType=Qy,e.lanes=n,e.stateNode={isHidden:!1},e}function Ld(e,t,n){return e=In(6,e,null,t),e.lanes=n,e}function Ad(e,t,n){return t=In(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function hk(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gd(0),this.expirationTimes=gd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gd(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Th(e,t,n,r,o,i,a,s,l){return e=new hk(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=In(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},dh(i),e}function mk(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Vx)}catch(e){console.error(e)}}Vx(),Vy.exports=kn;var Oh=Vy.exports;const cl=Np(Oh);var Lv=Oh;uf.createRoot=Lv.createRoot,uf.hydrateRoot=Lv.hydrateRoot;function qx(e,t){return function(){return e.apply(t,arguments)}}const{toString:bk}=Object.prototype,{getPrototypeOf:Ih}=Object,Zc=(e=>t=>{const n=bk.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ir=e=>(e=e.toLowerCase(),t=>Zc(t)===e),eu=e=>t=>typeof t===e,{isArray:qi}=Array,cs=eu("undefined");function wk(e){return e!==null&&!cs(e)&&e.constructor!==null&&!cs(e.constructor)&&An(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Gx=ir("ArrayBuffer");function Sk(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Gx(e.buffer),t}const Ck=eu("string"),An=eu("function"),Kx=eu("number"),tu=e=>e!==null&&typeof e=="object",kk=e=>e===!0||e===!1,Ll=e=>{if(Zc(e)!=="object")return!1;const t=Ih(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Rk=ir("Date"),Pk=ir("File"),Ek=ir("Blob"),Tk=ir("FileList"),$k=e=>tu(e)&&An(e.pipe),Mk=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||An(e.append)&&((t=Zc(e))==="formdata"||t==="object"&&An(e.toString)&&e.toString()==="[object FormData]"))},jk=ir("URLSearchParams"),[Ok,Ik,_k,Lk]=["ReadableStream","Request","Response","Headers"].map(ir),Ak=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Es(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),qi(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Xx=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Qx=e=>!cs(e)&&e!==Xx;function rp(){const{caseless:e}=Qx(this)&&this||{},t={},n=(r,o)=>{const i=e&&Yx(t,o)||o;Ll(t[i])&&Ll(r)?t[i]=rp(t[i],r):Ll(r)?t[i]=rp({},r):qi(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(Es(t,(o,i)=>{n&&An(o)?e[i]=qx(o,n):e[i]=o},{allOwnKeys:r}),e),Dk=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),zk=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Bk=(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&Ih(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Fk=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Uk=e=>{if(!e)return null;if(qi(e))return e;let t=e.length;if(!Kx(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Wk=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ih(Uint8Array)),Hk=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Vk=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},qk=ir("HTMLFormElement"),Gk=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Av=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Kk=ir("RegExp"),Jx=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Es(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},Yk=e=>{Jx(e,(t,n)=>{if(An(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(An(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Xk=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return qi(e)?r(e):r(String(e).split(t)),n},Qk=()=>{},Jk=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Nd="abcdefghijklmnopqrstuvwxyz",Nv="0123456789",Zx={DIGIT:Nv,ALPHA:Nd,ALPHA_DIGIT:Nd+Nd.toUpperCase()+Nv},Zk=(e=16,t=Zx.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function eR(e){return!!(e&&An(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const tR=e=>{const t=new Array(10),n=(r,o)=>{if(tu(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=qi(r)?[]:{};return Es(r,(a,s)=>{const l=n(a,o+1);!cs(l)&&(i[s]=l)}),t[o]=void 0,i}}return r};return n(e,0)},nR=ir("AsyncFunction"),rR=e=>e&&(tu(e)||An(e))&&An(e.then)&&An(e.catch),Q={isArray:qi,isArrayBuffer:Gx,isBuffer:wk,isFormData:Mk,isArrayBufferView:Sk,isString:Ck,isNumber:Kx,isBoolean:kk,isObject:tu,isPlainObject:Ll,isReadableStream:Ok,isRequest:Ik,isResponse:_k,isHeaders:Lk,isUndefined:cs,isDate:Rk,isFile:Pk,isBlob:Ek,isRegExp:Kk,isFunction:An,isStream:$k,isURLSearchParams:jk,isTypedArray:Wk,isFileList:Tk,forEach:Es,merge:rp,extend:Nk,trim:Ak,stripBOM:Dk,inherits:zk,toFlatObject:Bk,kindOf:Zc,kindOfTest:ir,endsWith:Fk,toArray:Uk,forEachEntry:Hk,matchAll:Vk,isHTMLForm:qk,hasOwnProperty:Av,hasOwnProp:Av,reduceDescriptors:Jx,freezeMethods:Yk,toObjectSet:Xk,toCamelCase:Gk,noop:Qk,toFiniteNumber:Jk,findKey:Yx,global:Xx,isContextDefined:Qx,ALPHABET:Zx,generateString:Zk,isSpecCompliantForm:eR,toJSONObject:tR,isAsyncFn:nR,isThenable:rR};function Me(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}Q.inherits(Me,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Q.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const eb=Me.prototype,tb={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{tb[e]={value:e}});Object.defineProperties(Me,tb);Object.defineProperty(eb,"isAxiosError",{value:!0});Me.from=(e,t,n,r,o,i)=>{const a=Object.create(eb);return Q.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Me.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const oR=null;function op(e){return Q.isPlainObject(e)||Q.isArray(e)}function nb(e){return Q.endsWith(e,"[]")?e.slice(0,-2):e}function Dv(e,t,n){return e?e.concat(t).map(function(o,i){return o=nb(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function iR(e){return Q.isArray(e)&&!e.some(op)}const aR=Q.toFlatObject(Q,{},null,function(t){return/^is[A-Z]/.test(t)});function nu(e,t,n){if(!Q.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,C){return!Q.isUndefined(C[x])});const r=n.metaTokens,o=n.visitor||u,i=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&Q.isSpecCompliantForm(t);if(!Q.isFunction(o))throw new TypeError("visitor must be a function");function c(y){if(y===null)return"";if(Q.isDate(y))return y.toISOString();if(!l&&Q.isBlob(y))throw new Me("Blob is not supported. Use a Buffer instead.");return Q.isArrayBuffer(y)||Q.isTypedArray(y)?l&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function u(y,x,C){let v=y;if(y&&!C&&typeof y=="object"){if(Q.endsWith(x,"{}"))x=r?x:x.slice(0,-2),y=JSON.stringify(y);else if(Q.isArray(y)&&iR(y)||(Q.isFileList(y)||Q.endsWith(x,"[]"))&&(v=Q.toArray(y)))return x=nb(x),v.forEach(function(b,k){!(Q.isUndefined(b)||b===null)&&t.append(a===!0?Dv([x],k,i):a===null?x:x+"[]",c(b))}),!1}return op(y)?!0:(t.append(Dv(C,x,i),c(y)),!1)}const f=[],h=Object.assign(aR,{defaultVisitor:u,convertValue:c,isVisitable:op});function w(y,x){if(!Q.isUndefined(y)){if(f.indexOf(y)!==-1)throw Error("Circular reference detected in "+x.join("."));f.push(y),Q.forEach(y,function(v,m){(!(Q.isUndefined(v)||v===null)&&o.call(t,v,Q.isString(m)?m.trim():m,x,h))===!0&&w(v,x?x.concat(m):[m])}),f.pop()}}if(!Q.isObject(e))throw new TypeError("data must be an object");return w(e),t}function zv(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function _h(e,t){this._pairs=[],e&&nu(e,this,t)}const rb=_h.prototype;rb.append=function(t,n){this._pairs.push([t,n])};rb.toString=function(t){const n=t?function(r){return t.call(this,r,zv)}:zv;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function sR(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ob(e,t,n){if(!t)return e;const r=n&&n.encode||sR,o=n&&n.serialize;let i;if(o?i=o(t,n):i=Q.isURLSearchParams(t)?t.toString():new _h(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Bv{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Q.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ib={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},lR=typeof URLSearchParams<"u"?URLSearchParams:_h,cR=typeof FormData<"u"?FormData:null,uR=typeof Blob<"u"?Blob:null,dR={isBrowser:!0,classes:{URLSearchParams:lR,FormData:cR,Blob:uR},protocols:["http","https","file","blob","url","data"]},Lh=typeof window<"u"&&typeof document<"u",fR=(e=>Lh&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),pR=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",hR=Lh&&window.location.href||"http://localhost",mR=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Lh,hasStandardBrowserEnv:fR,hasStandardBrowserWebWorkerEnv:pR,origin:hR},Symbol.toStringTag,{value:"Module"})),nr={...mR,...dR};function gR(e,t){return nu(e,new nr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return nr.isNode&&Q.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function vR(e){return Q.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function yR(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return a=!a&&Q.isArray(o)?o.length:a,l?(Q.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!s):((!o[a]||!Q.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&Q.isArray(o[a])&&(o[a]=yR(o[a])),!s)}if(Q.isFormData(e)&&Q.isFunction(e.entries)){const n={};return Q.forEachEntry(e,(r,o)=>{t(vR(r),o,n,0)}),n}return null}function xR(e,t,n){if(Q.isString(e))try{return(t||JSON.parse)(e),Q.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ts={transitional:ib,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=Q.isObject(t);if(i&&Q.isHTMLForm(t)&&(t=new FormData(t)),Q.isFormData(t))return o?JSON.stringify(ab(t)):t;if(Q.isArrayBuffer(t)||Q.isBuffer(t)||Q.isStream(t)||Q.isFile(t)||Q.isBlob(t)||Q.isReadableStream(t))return t;if(Q.isArrayBufferView(t))return t.buffer;if(Q.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return gR(t,this.formSerializer).toString();if((s=Q.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return nu(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),xR(t)):t}],transformResponse:[function(t){const n=this.transitional||Ts.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Q.isResponse(t)||Q.isReadableStream(t))return t;if(t&&Q.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?Me.from(s,Me.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:nr.classes.FormData,Blob:nr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Q.forEach(["delete","get","head","post","put","patch"],e=>{Ts.headers[e]={}});const bR=Q.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),wR=e=>{const t={};let n,r,o;return e&&e.split(` +`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&bR[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Fv=Symbol("internals");function ma(e){return e&&String(e).trim().toLowerCase()}function Al(e){return e===!1||e==null?e:Q.isArray(e)?e.map(Al):String(e)}function SR(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const CR=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Dd(e,t,n,r,o){if(Q.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Q.isString(t)){if(Q.isString(r))return t.indexOf(r)!==-1;if(Q.isRegExp(r))return r.test(t)}}function kR(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function RR(e,t){const n=Q.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}class ln{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(s,l,c){const u=ma(l);if(!u)throw new Error("header name must be a non-empty string");const f=Q.findKey(o,u);(!f||o[f]===void 0||c===!0||c===void 0&&o[f]!==!1)&&(o[f||l]=Al(s))}const a=(s,l)=>Q.forEach(s,(c,u)=>i(c,u,l));if(Q.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(Q.isString(t)&&(t=t.trim())&&!CR(t))a(wR(t),n);else if(Q.isHeaders(t))for(const[s,l]of t.entries())i(l,s,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=ma(t),t){const r=Q.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return SR(o);if(Q.isFunction(n))return n.call(this,o,r);if(Q.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ma(t),t){const r=Q.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Dd(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=ma(a),a){const s=Q.findKey(r,a);s&&(!n||Dd(r,r[s],s,n))&&(delete r[s],o=!0)}}return Q.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Dd(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return Q.forEach(this,(o,i)=>{const a=Q.findKey(r,i);if(a){n[a]=Al(o),delete n[i];return}const s=t?kR(i):String(i).trim();s!==i&&delete n[i],n[s]=Al(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Q.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Q.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Fv]=this[Fv]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=ma(a);r[s]||(RR(o,a),r[s]=!0)}return Q.isArray(t)?t.forEach(i):i(t),this}}ln.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Q.reduceDescriptors(ln.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Q.freezeMethods(ln);function zd(e,t){const n=this||Ts,r=t||n,o=ln.from(r.headers);let i=r.data;return Q.forEach(e,function(s){i=s.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function sb(e){return!!(e&&e.__CANCEL__)}function Gi(e,t,n){Me.call(this,e??"canceled",Me.ERR_CANCELED,t,n),this.name="CanceledError"}Q.inherits(Gi,Me,{__CANCEL__:!0});function lb(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Me("Request failed with status code "+n.status,[Me.ERR_BAD_REQUEST,Me.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function PR(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ER(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[i];a||(a=c),n[o]=l,r[o]=c;let f=i,h=0;for(;f!==o;)h+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-ar)return o&&(clearTimeout(o),o=null),n=s,e.apply(null,arguments);o||(o=setTimeout(()=>(o=null,n=Date.now(),e.apply(null,arguments)),r-(s-n)))}}const gc=(e,t,n=3)=>{let r=0;const o=ER(50,250);return TR(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,l=a-r,c=o(l),u=a<=s;r=a;const f={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-a)/c:void 0,event:i,lengthComputable:s!=null};f[t?"download":"upload"]=!0,e(f)},n)},$R=nr.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let a=i;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(a){const s=Q.isString(a)?o(a):a;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}(),MR=nr.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Q.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Q.isString(r)&&a.push("path="+r),Q.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function jR(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function OR(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function cb(e,t){return e&&!jR(t)?OR(e,t):t}const Uv=e=>e instanceof ln?{...e}:e;function zo(e,t){t=t||{};const n={};function r(c,u,f){return Q.isPlainObject(c)&&Q.isPlainObject(u)?Q.merge.call({caseless:f},c,u):Q.isPlainObject(u)?Q.merge({},u):Q.isArray(u)?u.slice():u}function o(c,u,f){if(Q.isUndefined(u)){if(!Q.isUndefined(c))return r(void 0,c,f)}else return r(c,u,f)}function i(c,u){if(!Q.isUndefined(u))return r(void 0,u)}function a(c,u){if(Q.isUndefined(u)){if(!Q.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,f){if(f in t)return r(c,u);if(f in e)return r(void 0,c)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(c,u)=>o(Uv(c),Uv(u),!0)};return Q.forEach(Object.keys(Object.assign({},e,t)),function(u){const f=l[u]||o,h=f(e[u],t[u],u);Q.isUndefined(h)&&f!==s||(n[u]=h)}),n}const ub=e=>{const t=zo({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;t.headers=a=ln.from(a),t.url=ob(cb(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(Q.isFormData(n)){if(nr.hasStandardBrowserEnv||nr.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[c,...u]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...u].join("; "))}}if(nr.hasStandardBrowserEnv&&(r&&Q.isFunction(r)&&(r=r(t)),r||r!==!1&&$R(t.url))){const c=o&&i&&MR.read(i);c&&a.set(o,c)}return t},IR=typeof XMLHttpRequest<"u",_R=IR&&function(e){return new Promise(function(n,r){const o=ub(e);let i=o.data;const a=ln.from(o.headers).normalize();let{responseType:s}=o,l;function c(){o.cancelToken&&o.cancelToken.unsubscribe(l),o.signal&&o.signal.removeEventListener("abort",l)}let u=new XMLHttpRequest;u.open(o.method.toUpperCase(),o.url,!0),u.timeout=o.timeout;function f(){if(!u)return;const w=ln.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),x={data:!s||s==="text"||s==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:w,config:e,request:u};lb(function(v){n(v),c()},function(v){r(v),c()},x),u=null}"onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(f)},u.onabort=function(){u&&(r(new Me("Request aborted",Me.ECONNABORTED,o,u)),u=null)},u.onerror=function(){r(new Me("Network Error",Me.ERR_NETWORK,o,u)),u=null},u.ontimeout=function(){let y=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const x=o.transitional||ib;o.timeoutErrorMessage&&(y=o.timeoutErrorMessage),r(new Me(y,x.clarifyTimeoutError?Me.ETIMEDOUT:Me.ECONNABORTED,o,u)),u=null},i===void 0&&a.setContentType(null),"setRequestHeader"in u&&Q.forEach(a.toJSON(),function(y,x){u.setRequestHeader(x,y)}),Q.isUndefined(o.withCredentials)||(u.withCredentials=!!o.withCredentials),s&&s!=="json"&&(u.responseType=o.responseType),typeof o.onDownloadProgress=="function"&&u.addEventListener("progress",gc(o.onDownloadProgress,!0)),typeof o.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",gc(o.onUploadProgress)),(o.cancelToken||o.signal)&&(l=w=>{u&&(r(!w||w.type?new Gi(null,e,u):w),u.abort(),u=null)},o.cancelToken&&o.cancelToken.subscribe(l),o.signal&&(o.signal.aborted?l():o.signal.addEventListener("abort",l)));const h=PR(o.url);if(h&&nr.protocols.indexOf(h)===-1){r(new Me("Unsupported protocol "+h+":",Me.ERR_BAD_REQUEST,e));return}u.send(i||null)})},LR=(e,t)=>{let n=new AbortController,r;const o=function(l){if(!r){r=!0,a();const c=l instanceof Error?l:this.reason;n.abort(c instanceof Me?c:new Gi(c instanceof Error?c.message:c))}};let i=t&&setTimeout(()=>{o(new Me(`timeout ${t} of ms exceeded`,Me.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",o):l.unsubscribe(o))}),e=null)};e.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",o));const{signal:s}=n;return s.unsubscribe=a,[s,()=>{i&&clearTimeout(i),i=null}]},AR=function*(e,t){let n=e.byteLength;if(!t||n{const i=NR(e,t,o);let a=0;return new ReadableStream({type:"bytes",async pull(s){const{done:l,value:c}=await i.next();if(l){s.close(),r();return}let u=c.byteLength;n&&n(a+=u),s.enqueue(new Uint8Array(c))},cancel(s){return r(s),i.return()}},{highWaterMark:2})},Hv=(e,t)=>{const n=e!=null;return r=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:r}))},ru=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",db=ru&&typeof ReadableStream=="function",ip=ru&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),DR=db&&(()=>{let e=!1;const t=new Request(nr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),Vv=64*1024,ap=db&&!!(()=>{try{return Q.isReadableStream(new Response("").body)}catch{}})(),vc={stream:ap&&(e=>e.body)};ru&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!vc[t]&&(vc[t]=Q.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Me(`Response type '${t}' is not supported`,Me.ERR_NOT_SUPPORT,r)})})})(new Response);const zR=async e=>{if(e==null)return 0;if(Q.isBlob(e))return e.size;if(Q.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(Q.isArrayBufferView(e))return e.byteLength;if(Q.isURLSearchParams(e)&&(e=e+""),Q.isString(e))return(await ip(e)).byteLength},BR=async(e,t)=>{const n=Q.toFiniteNumber(e.getContentLength());return n??zR(t)},FR=ru&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:f="same-origin",fetchOptions:h}=ub(e);c=c?(c+"").toLowerCase():"text";let[w,y]=o||i||a?LR([o,i],a):[],x,C;const v=()=>{!x&&setTimeout(()=>{w&&w.unsubscribe()}),x=!0};let m;try{if(l&&DR&&n!=="get"&&n!=="head"&&(m=await BR(u,r))!==0){let T=new Request(t,{method:"POST",body:r,duplex:"half"}),P;Q.isFormData(r)&&(P=T.headers.get("content-type"))&&u.setContentType(P),T.body&&(r=Wv(T.body,Vv,Hv(m,gc(l)),null,ip))}Q.isString(f)||(f=f?"cors":"omit"),C=new Request(t,{...h,signal:w,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",withCredentials:f});let b=await fetch(C);const k=ap&&(c==="stream"||c==="response");if(ap&&(s||k)){const T={};["status","statusText","headers"].forEach(j=>{T[j]=b[j]});const P=Q.toFiniteNumber(b.headers.get("content-length"));b=new Response(Wv(b.body,Vv,s&&Hv(P,gc(s,!0)),k&&v,ip),T)}c=c||"text";let R=await vc[Q.findKey(vc,c)||"text"](b,e);return!k&&v(),y&&y(),await new Promise((T,P)=>{lb(T,P,{data:R,headers:ln.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:C})})}catch(b){throw v(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new Me("Network Error",Me.ERR_NETWORK,e,C),{cause:b.cause||b}):Me.from(b,b&&b.code,e,C)}}),sp={http:oR,xhr:_R,fetch:FR};Q.forEach(sp,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const qv=e=>`- ${e}`,UR=e=>Q.isFunction(e)||e===null||e===!1,fb={getAdapter:e=>{e=Q.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since : `+i.map(qv).join(` -`):" "+qv(i[0]):"as no adapter specified";throw new Me("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:lp};function Fd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Gi(null,e)}function Gv(e){return Fd(e),e.headers=ln.from(e.headers),e.data=Bd.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),pb.getAdapter(e.adapter||Ts.adapter)(e).then(function(r){return Fd(e),r.data=Bd.call(e,e.transformResponse,r),r.headers=ln.from(r.headers),r},function(r){return lb(r)||(Fd(e),r&&r.response&&(r.response.data=Bd.call(e,e.transformResponse,r.response),r.response.headers=ln.from(r.response.headers))),Promise.reject(r)})}const hb="1.7.2",Ah={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ah[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Kv={};Ah.transitional=function(t,n,r){function o(i,a){return"[Axios v"+hb+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,s)=>{if(t===!1)throw new Me(o(a," has been removed"+(n?" in "+n:"")),Me.ERR_DEPRECATED);return n&&!Kv[a]&&(Kv[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,s):!0}};function Vk(e,t,n){if(typeof e!="object")throw new Me("options must be an object",Me.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new Me("option "+i+" must be "+l,Me.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Me("Unknown option "+i,Me.ERR_BAD_OPTION)}}const cp={assertOptions:Vk,validators:Ah},Fr=cp.validators;class Oo{constructor(t){this.defaults=t,this.interceptors={request:new Bv,response:new Bv}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=zo(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&cp.assertOptions(r,{silentJSONParsing:Fr.transitional(Fr.boolean),forcedJSONParsing:Fr.transitional(Fr.boolean),clarifyTimeoutError:Fr.transitional(Fr.boolean)},!1),o!=null&&(Q.isFunction(o)?n.paramsSerializer={serialize:o}:cp.assertOptions(o,{encode:Fr.function,serialize:Fr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&Q.merge(i.common,i[n.method]);i&&Q.forEach(["delete","get","head","post","put","patch","common"],y=>{delete i[y]}),n.headers=ln.concat(a,i);const s=[];let l=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(n)===!1||(l=l&&x.synchronous,s.unshift(x.fulfilled,x.rejected))});const c=[];this.interceptors.response.forEach(function(x){c.push(x.fulfilled,x.rejected)});let u,f=0,h;if(!l){const y=[Gv.bind(this),void 0];for(y.unshift.apply(y,s),y.push.apply(y,c),h=y.length,u=Promise.resolve(n);f{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{r.subscribe(s),i=s}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,s){r.reason||(r.reason=new Gi(i,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Nh(function(o){t=o}),cancel:t}}}function qk(e){return function(n){return e.apply(null,n)}}function Gk(e){return Q.isObject(e)&&e.isAxiosError===!0}const up={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(up).forEach(([e,t])=>{up[t]=e});function mb(e){const t=new Oo(e),n=Gx(Oo.prototype.request,t);return Q.extend(n,Oo.prototype,t,{allOwnKeys:!0}),Q.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return mb(zo(e,o))},n}const Oe=mb(Ts);Oe.Axios=Oo;Oe.CanceledError=Gi;Oe.CancelToken=Nh;Oe.isCancel=lb;Oe.VERSION=hb;Oe.toFormData=ru;Oe.AxiosError=Me;Oe.Cancel=Oe.CanceledError;Oe.all=function(t){return Promise.all(t)};Oe.spread=qk;Oe.isAxiosError=Gk;Oe.mergeConfig=zo;Oe.AxiosHeaders=ln;Oe.formToJSON=e=>sb(Q.isHTMLForm(e)?new FormData(e):e);Oe.getAdapter=pb.getAdapter;Oe.HttpStatusCode=up;Oe.default=Oe;/** +`):" "+qv(i[0]):"as no adapter specified";throw new Me("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:sp};function Bd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Gi(null,e)}function Gv(e){return Bd(e),e.headers=ln.from(e.headers),e.data=zd.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),fb.getAdapter(e.adapter||Ts.adapter)(e).then(function(r){return Bd(e),r.data=zd.call(e,e.transformResponse,r),r.headers=ln.from(r.headers),r},function(r){return sb(r)||(Bd(e),r&&r.response&&(r.response.data=zd.call(e,e.transformResponse,r.response),r.response.headers=ln.from(r.response.headers))),Promise.reject(r)})}const pb="1.7.2",Ah={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ah[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Kv={};Ah.transitional=function(t,n,r){function o(i,a){return"[Axios v"+pb+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,s)=>{if(t===!1)throw new Me(o(a," has been removed"+(n?" in "+n:"")),Me.ERR_DEPRECATED);return n&&!Kv[a]&&(Kv[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,s):!0}};function WR(e,t,n){if(typeof e!="object")throw new Me("options must be an object",Me.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new Me("option "+i+" must be "+l,Me.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Me("Unknown option "+i,Me.ERR_BAD_OPTION)}}const lp={assertOptions:WR,validators:Ah},Fr=lp.validators;class Oo{constructor(t){this.defaults=t,this.interceptors={request:new Bv,response:new Bv}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=zo(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&lp.assertOptions(r,{silentJSONParsing:Fr.transitional(Fr.boolean),forcedJSONParsing:Fr.transitional(Fr.boolean),clarifyTimeoutError:Fr.transitional(Fr.boolean)},!1),o!=null&&(Q.isFunction(o)?n.paramsSerializer={serialize:o}:lp.assertOptions(o,{encode:Fr.function,serialize:Fr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&Q.merge(i.common,i[n.method]);i&&Q.forEach(["delete","get","head","post","put","patch","common"],y=>{delete i[y]}),n.headers=ln.concat(a,i);const s=[];let l=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(n)===!1||(l=l&&x.synchronous,s.unshift(x.fulfilled,x.rejected))});const c=[];this.interceptors.response.forEach(function(x){c.push(x.fulfilled,x.rejected)});let u,f=0,h;if(!l){const y=[Gv.bind(this),void 0];for(y.unshift.apply(y,s),y.push.apply(y,c),h=y.length,u=Promise.resolve(n);f{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{r.subscribe(s),i=s}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,s){r.reason||(r.reason=new Gi(i,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Nh(function(o){t=o}),cancel:t}}}function HR(e){return function(n){return e.apply(null,n)}}function VR(e){return Q.isObject(e)&&e.isAxiosError===!0}const cp={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(cp).forEach(([e,t])=>{cp[t]=e});function hb(e){const t=new Oo(e),n=qx(Oo.prototype.request,t);return Q.extend(n,Oo.prototype,t,{allOwnKeys:!0}),Q.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return hb(zo(e,o))},n}const Oe=hb(Ts);Oe.Axios=Oo;Oe.CanceledError=Gi;Oe.CancelToken=Nh;Oe.isCancel=sb;Oe.VERSION=pb;Oe.toFormData=nu;Oe.AxiosError=Me;Oe.Cancel=Oe.CanceledError;Oe.all=function(t){return Promise.all(t)};Oe.spread=HR;Oe.isAxiosError=VR;Oe.mergeConfig=zo;Oe.AxiosHeaders=ln;Oe.formToJSON=e=>ab(Q.isHTMLForm(e)?new FormData(e):e);Oe.getAdapter=fb.getAdapter;Oe.HttpStatusCode=cp;Oe.default=Oe;/** * @remix-run/router v1.16.1 * * Copyright (c) Remix Software Inc. @@ -51,7 +51,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function us(){return us=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function gb(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Yk(){return Math.random().toString(36).substr(2,8)}function Xv(e,t){return{usr:e.state,key:e.key,idx:t}}function dp(e,t,n,r){return n===void 0&&(n=null),us({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ki(t):t,{state:n,key:t&&t.key||r||Yk()})}function yc(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ki(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Xk(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=Qr.Pop,l=null,c=u();c==null&&(c=0,a.replaceState(us({},a.state,{idx:c}),""));function u(){return(a.state||{idx:null}).idx}function f(){s=Qr.Pop;let C=u(),v=C==null?null:C-c;c=C,l&&l({action:s,location:x.location,delta:v})}function h(C,v){s=Qr.Push;let m=dp(x.location,C,v);c=u()+1;let b=Xv(m,c),R=x.createHref(m);try{a.pushState(b,"",R)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;o.location.assign(R)}i&&l&&l({action:s,location:x.location,delta:1})}function w(C,v){s=Qr.Replace;let m=dp(x.location,C,v);c=u();let b=Xv(m,c),R=x.createHref(m);a.replaceState(b,"",R),i&&l&&l({action:s,location:x.location,delta:0})}function y(C){let v=o.location.origin!=="null"?o.location.origin:o.location.href,m=typeof C=="string"?C:yc(C);return m=m.replace(/ $/,"%20"),ft(v,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,v)}let x={get action(){return s},get location(){return e(o,a)},listen(C){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Yv,f),l=C,()=>{o.removeEventListener(Yv,f),l=null}},createHref(C){return t(o,C)},createURL:y,encodeLocation(C){let v=y(C);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:h,replace:w,go(C){return a.go(C)}};return x}var Qv;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Qv||(Qv={}));function Qk(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Ki(t):t,o=_i(r.pathname||"/",n);if(o==null)return null;let i=vb(e);Jk(i);let a=null;for(let s=0;a==null&&s{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(ft(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=so([r,l.relativePath]),u=n.concat(l);i.children&&i.children.length>0&&(ft(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),vb(i.children,t,u,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:iP(c,i.index),routesMeta:u})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let l of yb(i.path))o(i,a,l)}),t}function yb(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=yb(r.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function Jk(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:aP(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Zk=/^:[\w-]+$/,eP=3,tP=2,nP=1,rP=10,oP=-2,Jv=e=>e==="*";function iP(e,t){let n=e.split("/"),r=n.length;return n.some(Jv)&&(r+=oP),t&&(r+=tP),n.filter(o=>!Jv(o)).reduce((o,i)=>o+(Zk.test(i)?eP:i===""?nP:rP),r)}function aP(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function sP(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let a=0;a{let{paramName:h,isOptional:w}=u;if(h==="*"){let x=s[f]||"";a=i.slice(0,i.length-x.length).replace(/(.)\/+$/,"$1")}const y=s[f];return w&&!y?c[h]=void 0:c[h]=(y||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:e}}function lP(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),gb(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function cP(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return gb(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function _i(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function uP(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Ki(e):e;return{pathname:n?n.startsWith("/")?n:dP(n,t):t,search:hP(r),hash:mP(o)}}function dP(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Ud(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function fP(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Dh(e,t){let n=fP(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function zh(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Ki(e):(o=us({},e),ft(!o.pathname||!o.pathname.includes("?"),Ud("?","pathname","search",o)),ft(!o.pathname||!o.pathname.includes("#"),Ud("#","pathname","hash",o)),ft(!o.search||!o.search.includes("#"),Ud("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(a==null)s=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),f-=1;o.pathname=h.join("/")}s=f>=0?t[f]:"/"}let l=uP(o,s),c=a&&a!=="/"&&a.endsWith("/"),u=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const so=e=>e.join("/").replace(/\/\/+/g,"/"),pP=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),hP=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,mP=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function gP(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const xb=["post","put","patch","delete"];new Set(xb);const vP=["get",...xb];new Set(vP);/** + */function us(){return us=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function mb(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function GR(){return Math.random().toString(36).substr(2,8)}function Xv(e,t){return{usr:e.state,key:e.key,idx:t}}function up(e,t,n,r){return n===void 0&&(n=null),us({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ki(t):t,{state:n,key:t&&t.key||r||GR()})}function yc(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ki(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function KR(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=Qr.Pop,l=null,c=u();c==null&&(c=0,a.replaceState(us({},a.state,{idx:c}),""));function u(){return(a.state||{idx:null}).idx}function f(){s=Qr.Pop;let C=u(),v=C==null?null:C-c;c=C,l&&l({action:s,location:x.location,delta:v})}function h(C,v){s=Qr.Push;let m=up(x.location,C,v);c=u()+1;let b=Xv(m,c),k=x.createHref(m);try{a.pushState(b,"",k)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;o.location.assign(k)}i&&l&&l({action:s,location:x.location,delta:1})}function w(C,v){s=Qr.Replace;let m=up(x.location,C,v);c=u();let b=Xv(m,c),k=x.createHref(m);a.replaceState(b,"",k),i&&l&&l({action:s,location:x.location,delta:0})}function y(C){let v=o.location.origin!=="null"?o.location.origin:o.location.href,m=typeof C=="string"?C:yc(C);return m=m.replace(/ $/,"%20"),ft(v,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,v)}let x={get action(){return s},get location(){return e(o,a)},listen(C){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Yv,f),l=C,()=>{o.removeEventListener(Yv,f),l=null}},createHref(C){return t(o,C)},createURL:y,encodeLocation(C){let v=y(C);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:h,replace:w,go(C){return a.go(C)}};return x}var Qv;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Qv||(Qv={}));function YR(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Ki(t):t,o=_i(r.pathname||"/",n);if(o==null)return null;let i=gb(e);XR(i);let a=null;for(let s=0;a==null&&s{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(ft(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=so([r,l.relativePath]),u=n.concat(l);i.children&&i.children.length>0&&(ft(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),gb(i.children,t,u,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:rP(c,i.index),routesMeta:u})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let l of vb(i.path))o(i,a,l)}),t}function vb(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=vb(r.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function XR(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:oP(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const QR=/^:[\w-]+$/,JR=3,ZR=2,eP=1,tP=10,nP=-2,Jv=e=>e==="*";function rP(e,t){let n=e.split("/"),r=n.length;return n.some(Jv)&&(r+=nP),t&&(r+=ZR),n.filter(o=>!Jv(o)).reduce((o,i)=>o+(QR.test(i)?JR:i===""?eP:tP),r)}function oP(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function iP(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let a=0;a{let{paramName:h,isOptional:w}=u;if(h==="*"){let x=s[f]||"";a=i.slice(0,i.length-x.length).replace(/(.)\/+$/,"$1")}const y=s[f];return w&&!y?c[h]=void 0:c[h]=(y||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:e}}function aP(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),mb(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function sP(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return mb(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function _i(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function lP(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Ki(e):e;return{pathname:n?n.startsWith("/")?n:cP(n,t):t,search:fP(r),hash:pP(o)}}function cP(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Fd(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function uP(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Dh(e,t){let n=uP(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function zh(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Ki(e):(o=us({},e),ft(!o.pathname||!o.pathname.includes("?"),Fd("?","pathname","search",o)),ft(!o.pathname||!o.pathname.includes("#"),Fd("#","pathname","hash",o)),ft(!o.search||!o.search.includes("#"),Fd("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(a==null)s=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),f-=1;o.pathname=h.join("/")}s=f>=0?t[f]:"/"}let l=lP(o,s),c=a&&a!=="/"&&a.endsWith("/"),u=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const so=e=>e.join("/").replace(/\/\/+/g,"/"),dP=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),fP=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,pP=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function hP(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const yb=["post","put","patch","delete"];new Set(yb);const mP=["get",...yb];new Set(mP);/** * React Router v6.23.1 * * Copyright (c) Remix Software Inc. @@ -60,7 +60,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function ds(){return ds=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),p.useCallback(function(c,u){if(u===void 0&&(u={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let f=zh(c,JSON.parse(a),i,u.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:so([t,f.pathname])),(u.replace?r.replace:r.push)(f,u.state,u)},[t,r,a,i,e])}function $s(){let{matches:e}=p.useContext(Dr),t=e[e.length-1];return t?t.params:{}}function su(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=p.useContext(Nr),{matches:o}=p.useContext(Dr),{pathname:i}=ho(),a=JSON.stringify(Dh(o,r.v7_relativeSplatPath));return p.useMemo(()=>zh(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function bP(e,t){return wP(e,t)}function wP(e,t,n,r){Yi()||ft(!1);let{navigator:o}=p.useContext(Nr),{matches:i}=p.useContext(Dr),a=i[i.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let c=ho(),u;if(t){var f;let C=typeof t=="string"?Ki(t):t;l==="/"||(f=C.pathname)!=null&&f.startsWith(l)||ft(!1),u=C}else u=c;let h=u.pathname||"/",w=h;if(l!=="/"){let C=l.replace(/^\//,"").split("/");w="/"+h.replace(/^\//,"").split("/").slice(C.length).join("/")}let y=Qk(e,{pathname:w}),x=PP(y&&y.map(C=>Object.assign({},C,{params:Object.assign({},s,C.params),pathname:so([l,o.encodeLocation?o.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?l:so([l,o.encodeLocation?o.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),i,n,r);return t&&x?p.createElement(au.Provider,{value:{location:ds({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Qr.Pop}},x):x}function SP(){let e=MP(),t=gP(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:o},n):null,null)}const CP=p.createElement(SP,null);class RP extends p.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?p.createElement(Dr.Provider,{value:this.props.routeContext},p.createElement(wb.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function kP(e){let{routeContext:t,match:n,children:r}=e,o=p.useContext(iu);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),p.createElement(Dr.Provider,{value:t},r)}function PP(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let a=e,s=(o=n)==null?void 0:o.errors;if(s!=null){let u=a.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);u>=0||ft(!1),a=a.slice(0,Math.min(a.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((u,f,h)=>{let w,y=!1,x=null,C=null;n&&(w=s&&f.route.id?s[f.route.id]:void 0,x=f.route.errorElement||CP,l&&(c<0&&h===0?(y=!0,C=null):c===h&&(y=!0,C=f.route.hydrateFallbackElement||null)));let v=t.concat(a.slice(0,h+1)),m=()=>{let b;return w?b=x:y?b=C:f.route.Component?b=p.createElement(f.route.Component,null):f.route.element?b=f.route.element:b=u,p.createElement(kP,{match:f,routeContext:{outlet:u,matches:v,isDataRoute:n!=null},children:b})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?p.createElement(RP,{location:n.location,revalidation:n.revalidation,component:x,error:w,children:m(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):m()},null)}var Cb=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Cb||{}),xc=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(xc||{});function EP(e){let t=p.useContext(iu);return t||ft(!1),t}function TP(e){let t=p.useContext(bb);return t||ft(!1),t}function $P(e){let t=p.useContext(Dr);return t||ft(!1),t}function Rb(e){let t=$P(),n=t.matches[t.matches.length-1];return n.route.id||ft(!1),n.route.id}function MP(){var e;let t=p.useContext(wb),n=TP(xc.UseRouteError),r=Rb(xc.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function jP(){let{router:e}=EP(Cb.UseNavigateStable),t=Rb(xc.UseNavigateStable),n=p.useRef(!1);return Sb(()=>{n.current=!0}),p.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,ds({fromRouteId:t},i)))},[e,t])}function OP(e){let{to:t,replace:n,state:r,relative:o}=e;Yi()||ft(!1);let{future:i,static:a}=p.useContext(Nr),{matches:s}=p.useContext(Dr),{pathname:l}=ho(),c=qo(),u=zh(t,Dh(s,i.v7_relativeSplatPath),l,o==="path"),f=JSON.stringify(u);return p.useEffect(()=>c(JSON.parse(f),{replace:n,state:r,relative:o}),[c,f,o,n,r]),null}function mn(e){ft(!1)}function IP(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Qr.Pop,navigator:i,static:a=!1,future:s}=e;Yi()&&ft(!1);let l=t.replace(/^\/*/,"/"),c=p.useMemo(()=>({basename:l,navigator:i,static:a,future:ds({v7_relativeSplatPath:!1},s)}),[l,s,i,a]);typeof r=="string"&&(r=Ki(r));let{pathname:u="/",search:f="",hash:h="",state:w=null,key:y="default"}=r,x=p.useMemo(()=>{let C=_i(u,l);return C==null?null:{location:{pathname:C,search:f,hash:h,state:w,key:y},navigationType:o}},[l,u,f,h,w,y,o]);return x==null?null:p.createElement(Nr.Provider,{value:c},p.createElement(au.Provider,{children:n,value:x}))}function _P(e){let{children:t,location:n}=e;return bP(pp(t),n)}new Promise(()=>{});function pp(e,t){t===void 0&&(t=[]);let n=[];return p.Children.forEach(e,(r,o)=>{if(!p.isValidElement(r))return;let i=[...t,o];if(r.type===p.Fragment){n.push.apply(n,pp(r.props.children,i));return}r.type!==mn&&ft(!1),!r.props.index||!r.props.children||ft(!1);let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=pp(r.props.children,i)),n.push(a)}),n}/** + */function ds(){return ds=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),p.useCallback(function(c,u){if(u===void 0&&(u={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let f=zh(c,JSON.parse(a),i,u.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:so([t,f.pathname])),(u.replace?r.replace:r.push)(f,u.state,u)},[t,r,a,i,e])}function $s(){let{matches:e}=p.useContext(Dr),t=e[e.length-1];return t?t.params:{}}function au(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=p.useContext(Nr),{matches:o}=p.useContext(Dr),{pathname:i}=ho(),a=JSON.stringify(Dh(o,r.v7_relativeSplatPath));return p.useMemo(()=>zh(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function yP(e,t){return xP(e,t)}function xP(e,t,n,r){Yi()||ft(!1);let{navigator:o}=p.useContext(Nr),{matches:i}=p.useContext(Dr),a=i[i.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let c=ho(),u;if(t){var f;let C=typeof t=="string"?Ki(t):t;l==="/"||(f=C.pathname)!=null&&f.startsWith(l)||ft(!1),u=C}else u=c;let h=u.pathname||"/",w=h;if(l!=="/"){let C=l.replace(/^\//,"").split("/");w="/"+h.replace(/^\//,"").split("/").slice(C.length).join("/")}let y=YR(e,{pathname:w}),x=kP(y&&y.map(C=>Object.assign({},C,{params:Object.assign({},s,C.params),pathname:so([l,o.encodeLocation?o.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?l:so([l,o.encodeLocation?o.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),i,n,r);return t&&x?p.createElement(iu.Provider,{value:{location:ds({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Qr.Pop}},x):x}function bP(){let e=TP(),t=hP(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:o},n):null,null)}const wP=p.createElement(bP,null);class SP extends p.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?p.createElement(Dr.Provider,{value:this.props.routeContext},p.createElement(bb.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function CP(e){let{routeContext:t,match:n,children:r}=e,o=p.useContext(ou);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),p.createElement(Dr.Provider,{value:t},r)}function kP(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let a=e,s=(o=n)==null?void 0:o.errors;if(s!=null){let u=a.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);u>=0||ft(!1),a=a.slice(0,Math.min(a.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((u,f,h)=>{let w,y=!1,x=null,C=null;n&&(w=s&&f.route.id?s[f.route.id]:void 0,x=f.route.errorElement||wP,l&&(c<0&&h===0?(y=!0,C=null):c===h&&(y=!0,C=f.route.hydrateFallbackElement||null)));let v=t.concat(a.slice(0,h+1)),m=()=>{let b;return w?b=x:y?b=C:f.route.Component?b=p.createElement(f.route.Component,null):f.route.element?b=f.route.element:b=u,p.createElement(CP,{match:f,routeContext:{outlet:u,matches:v,isDataRoute:n!=null},children:b})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?p.createElement(SP,{location:n.location,revalidation:n.revalidation,component:x,error:w,children:m(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):m()},null)}var Sb=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Sb||{}),xc=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(xc||{});function RP(e){let t=p.useContext(ou);return t||ft(!1),t}function PP(e){let t=p.useContext(xb);return t||ft(!1),t}function EP(e){let t=p.useContext(Dr);return t||ft(!1),t}function Cb(e){let t=EP(),n=t.matches[t.matches.length-1];return n.route.id||ft(!1),n.route.id}function TP(){var e;let t=p.useContext(bb),n=PP(xc.UseRouteError),r=Cb(xc.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function $P(){let{router:e}=RP(Sb.UseNavigateStable),t=Cb(xc.UseNavigateStable),n=p.useRef(!1);return wb(()=>{n.current=!0}),p.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,ds({fromRouteId:t},i)))},[e,t])}function MP(e){let{to:t,replace:n,state:r,relative:o}=e;Yi()||ft(!1);let{future:i,static:a}=p.useContext(Nr),{matches:s}=p.useContext(Dr),{pathname:l}=ho(),c=qo(),u=zh(t,Dh(s,i.v7_relativeSplatPath),l,o==="path"),f=JSON.stringify(u);return p.useEffect(()=>c(JSON.parse(f),{replace:n,state:r,relative:o}),[c,f,o,n,r]),null}function mn(e){ft(!1)}function jP(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Qr.Pop,navigator:i,static:a=!1,future:s}=e;Yi()&&ft(!1);let l=t.replace(/^\/*/,"/"),c=p.useMemo(()=>({basename:l,navigator:i,static:a,future:ds({v7_relativeSplatPath:!1},s)}),[l,s,i,a]);typeof r=="string"&&(r=Ki(r));let{pathname:u="/",search:f="",hash:h="",state:w=null,key:y="default"}=r,x=p.useMemo(()=>{let C=_i(u,l);return C==null?null:{location:{pathname:C,search:f,hash:h,state:w,key:y},navigationType:o}},[l,u,f,h,w,y,o]);return x==null?null:p.createElement(Nr.Provider,{value:c},p.createElement(iu.Provider,{children:n,value:x}))}function OP(e){let{children:t,location:n}=e;return yP(fp(t),n)}new Promise(()=>{});function fp(e,t){t===void 0&&(t=[]);let n=[];return p.Children.forEach(e,(r,o)=>{if(!p.isValidElement(r))return;let i=[...t,o];if(r.type===p.Fragment){n.push.apply(n,fp(r.props.children,i));return}r.type!==mn&&ft(!1),!r.props.index||!r.props.children||ft(!1);let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=fp(r.props.children,i)),n.push(a)}),n}/** * React Router DOM v6.23.1 * * Copyright (c) Remix Software Inc. @@ -69,14 +69,14 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function bc(){return bc=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function LP(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function AP(e,t){return e.button===0&&(!t||t==="_self")&&!LP(e)}const NP=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],DP=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],zP="6";try{window.__reactRouterVersion=zP}catch{}const BP=p.createContext({isTransitioning:!1}),FP="startTransition",Zv=Vl[FP];function UP(e){let{basename:t,children:n,future:r,window:o}=e,i=p.useRef();i.current==null&&(i.current=Kk({window:o,v5Compat:!0}));let a=i.current,[s,l]=p.useState({action:a.action,location:a.location}),{v7_startTransition:c}=r||{},u=p.useCallback(f=>{c&&Zv?Zv(()=>l(f)):l(f)},[l,c]);return p.useLayoutEffect(()=>a.listen(u),[a,u]),p.createElement(IP,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a,future:r})}const WP=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",HP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pb=p.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:s,target:l,to:c,preventScrollReset:u,unstable_viewTransition:f}=t,h=kb(t,NP),{basename:w}=p.useContext(Nr),y,x=!1;if(typeof c=="string"&&HP.test(c)&&(y=c,WP))try{let b=new URL(window.location.href),R=c.startsWith("//")?new URL(b.protocol+c):new URL(c),k=_i(R.pathname,w);R.origin===b.origin&&k!=null?c=k+R.search+R.hash:x=!0}catch{}let C=yP(c,{relative:o}),v=GP(c,{replace:a,state:s,target:l,preventScrollReset:u,relative:o,unstable_viewTransition:f});function m(b){r&&r(b),b.defaultPrevented||v(b)}return p.createElement("a",bc({},h,{href:y||C,onClick:x||i?r:m,ref:n,target:l}))}),VP=p.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:a=!1,style:s,to:l,unstable_viewTransition:c,children:u}=t,f=kb(t,DP),h=su(l,{relative:f.relative}),w=ho(),y=p.useContext(bb),{navigator:x,basename:C}=p.useContext(Nr),v=y!=null&&KP(h)&&c===!0,m=x.encodeLocation?x.encodeLocation(h).pathname:h.pathname,b=w.pathname,R=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;o||(b=b.toLowerCase(),R=R?R.toLowerCase():null,m=m.toLowerCase()),R&&C&&(R=_i(R,C)||R);const k=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let T=b===m||!a&&b.startsWith(m)&&b.charAt(k)==="/",P=R!=null&&(R===m||!a&&R.startsWith(m)&&R.charAt(m.length)==="/"),j={isActive:T,isPending:P,isTransitioning:v},N=T?r:void 0,O;typeof i=="function"?O=i(j):O=[i,T?"active":null,P?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let F=typeof s=="function"?s(j):s;return p.createElement(Pb,bc({},f,{"aria-current":N,className:O,ref:n,style:F,to:l,unstable_viewTransition:c}),typeof u=="function"?u(j):u)});var hp;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(hp||(hp={}));var e0;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(e0||(e0={}));function qP(e){let t=p.useContext(iu);return t||ft(!1),t}function GP(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:s}=t===void 0?{}:t,l=qo(),c=ho(),u=su(e,{relative:a});return p.useCallback(f=>{if(AP(f,n)){f.preventDefault();let h=r!==void 0?r:yc(c)===yc(u);l(e,{replace:h,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:s})}},[c,l,u,r,o,n,e,i,a,s])}function KP(e,t){t===void 0&&(t={});let n=p.useContext(BP);n==null&&ft(!1);let{basename:r}=qP(hp.useViewTransitionState),o=su(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=_i(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=_i(n.nextLocation.pathname,r)||n.nextLocation.pathname;return fp(o.pathname,a)!=null||fp(o.pathname,i)!=null}const vr=p.createContext({user:null}),YP=({children:e})=>{const[t,n]=p.useState(!1),[r,o]=p.useState(null),[i,a]=p.useState(0),[s,l]=p.useState([]),c=p.useCallback(x=>{l(C=>[...C,x])},[l]),u=x=>{l(C=>C.filter((v,m)=>m!==x))},f=()=>{a(i+1)},h=qo();p.useEffect(()=>{const x=localStorage.getItem("user");console.log("Attempting to load user:",x),x?(console.log("User found in storage:",x),o(JSON.parse(x))):console.log("No user found in storage at initialization.")},[]),p.useEffect(()=>{r?(console.log("Storing user in storage:",r),localStorage.setItem("user",JSON.stringify(r))):(console.log("Removing user from storage."),localStorage.removeItem("user"))},[r]);const w=p.useCallback(async()=>{var x;try{const C=localStorage.getItem("token");if(console.log("Logging out with token:",C),!C){console.error("No token available for logout");return}const v=await Oe.post("/api/user/logout",{},{headers:{Authorization:`Bearer ${C}`}});if(v.status===200)o(null),localStorage.removeItem("token"),h("/auth");else throw new Error("Logout failed with status: "+v.status)}catch(C){console.error("Logout failed:",((x=C.response)==null?void 0:x.data)||C.message)}},[h]),y=async(x,C,v)=>{var m,b;try{const R=localStorage.getItem("token"),k=await Oe.patch(`/api/user/change_password/${x}`,{current_password:C,new_password:v},{headers:{Authorization:`Bearer ${R}`}});return k.status===200?{success:!0,message:"Password updated successfully!"}:{success:!1,message:k.data.message||"Update failed!"}}catch(R){return R.response.status===403?{success:!1,message:R.response.data.message||"Incorrect current password"}:{success:!1,message:((b=(m=R.response)==null?void 0:m.data)==null?void 0:b.message)||"Network error"}}};return p.useEffect(()=>{const x=C=>{C.data&&C.data.type==="NEW_NOTIFICATION"&&(console.log("Notification received:",C.data.data),c({title:C.data.data.title,message:C.data.data.body}))};return navigator.serviceWorker.addEventListener("message",x),()=>{navigator.serviceWorker.removeEventListener("message",x)}},[c]),d.jsx(vr.Provider,{value:{user:r,setUser:o,logout:w,voiceEnabled:t,setVoiceEnabled:n,changePassword:y,incrementNotificationCount:f,notifications:s,removeNotification:u,addNotification:c},children:e})},fs={black:"#000",white:"#fff"},Xo={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"},Qo={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Jo={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"},Zo={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},ei={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"},ga={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"},XP={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Bo(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n=0)continue;n[r]=e[r]}return n}function Eb(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var JP=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ZP=Eb(function(e){return JP.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function eE(e){if(e.sheet)return e.sheet;for(var t=0;t0?Lt(Xi,--dn):0,Li--,bt===10&&(Li=1,cu--),bt}function bn(){return bt=dn2||hs(bt)>3?"":" "}function pE(e,t){for(;--t&&bn()&&!(bt<48||bt>102||bt>57&&bt<65||bt>70&&bt<97););return Ms(e,Nl()+(t<6&&hr()==32&&bn()==32))}function gp(e){for(;bn();)switch(bt){case e:return dn;case 34:case 39:e!==34&&e!==39&&gp(bt);break;case 40:e===41&&gp(e);break;case 92:bn();break}return dn}function hE(e,t){for(;bn()&&e+bt!==57;)if(e+bt===84&&hr()===47)break;return"/*"+Ms(t,dn-1)+"*"+lu(e===47?e:bn())}function mE(e){for(;!hs(hr());)bn();return Ms(e,dn)}function gE(e){return Ib(zl("",null,null,null,[""],e=Ob(e),0,[0],e))}function zl(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,f=a,h=0,w=0,y=0,x=1,C=1,v=1,m=0,b="",R=o,k=i,T=r,P=b;C;)switch(y=m,m=bn()){case 40:if(y!=108&&Lt(P,f-1)==58){mp(P+=We(Dl(m),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:P+=Dl(m);break;case 9:case 10:case 13:case 32:P+=fE(y);break;case 92:P+=pE(Nl()-1,7);continue;case 47:switch(hr()){case 42:case 47:ul(vE(hE(bn(),Nl()),t,n),l);break;default:P+="/"}break;case 123*x:s[c++]=cr(P)*v;case 125*x:case 59:case 0:switch(m){case 0:case 125:C=0;case 59+u:v==-1&&(P=We(P,/\f/g,"")),w>0&&cr(P)-f&&ul(w>32?n0(P+";",r,n,f-1):n0(We(P," ","")+";",r,n,f-2),l);break;case 59:P+=";";default:if(ul(T=t0(P,t,n,c,u,o,s,b,R=[],k=[],f),i),m===123)if(u===0)zl(P,t,T,T,R,i,f,s,k);else switch(h===99&&Lt(P,3)===110?100:h){case 100:case 108:case 109:case 115:zl(e,T,T,r&&ul(t0(e,T,T,0,0,o,s,b,o,R=[],f),k),o,k,f,s,r?R:k);break;default:zl(P,T,T,T,[""],k,0,s,k)}}c=u=w=0,x=v=1,b=P="",f=a;break;case 58:f=1+cr(P),w=y;default:if(x<1){if(m==123)--x;else if(m==125&&x++==0&&dE()==125)continue}switch(P+=lu(m),m*x){case 38:v=u>0?1:(P+="\f",-1);break;case 44:s[c++]=(cr(P)-1)*v,v=1;break;case 64:hr()===45&&(P+=Dl(bn())),h=hr(),u=f=cr(b=P+=mE(Nl())),m++;break;case 45:y===45&&cr(P)==2&&(x=0)}}return i}function t0(e,t,n,r,o,i,a,s,l,c,u){for(var f=o-1,h=o===0?i:[""],w=Uh(h),y=0,x=0,C=0;y0?h[v]+" "+m:We(m,/&\f/g,h[v])))&&(l[C++]=b);return uu(e,t,n,o===0?Bh:s,l,c,u)}function vE(e,t,n){return uu(e,t,n,Tb,lu(uE()),ps(e,2,-2),0)}function n0(e,t,n,r){return uu(e,t,n,Fh,ps(e,0,r),ps(e,r+1,-1),r)}function Ri(e,t){for(var n="",r=Uh(e),o=0;o6)switch(Lt(e,t+1)){case 109:if(Lt(e,t+4)!==45)break;case 102:return We(e,/(.+:)(.+)-([^]+)/,"$1"+Ue+"$2-$3$1"+wc+(Lt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~mp(e,"stretch")?_b(We(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Lt(e,t+1)!==115)break;case 6444:switch(Lt(e,cr(e)-3-(~mp(e,"!important")&&10))){case 107:return We(e,":",":"+Ue)+e;case 101:return We(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ue+(Lt(e,14)===45?"inline-":"")+"box$3$1"+Ue+"$2$3$1"+Ft+"$2box$3")+e}break;case 5936:switch(Lt(e,t+11)){case 114:return Ue+e+Ft+We(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ue+e+Ft+We(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ue+e+Ft+We(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ue+e+Ft+e+e}return e}var PE=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Fh:t.return=_b(t.value,t.length);break;case $b:return Ri([va(t,{value:We(t.value,"@","@"+Ue)})],o);case Bh:if(t.length)return cE(t.props,function(i){switch(lE(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ri([va(t,{props:[We(i,/:(read-\w+)/,":"+wc+"$1")]})],o);case"::placeholder":return Ri([va(t,{props:[We(i,/:(plac\w+)/,":"+Ue+"input-$1")]}),va(t,{props:[We(i,/:(plac\w+)/,":"+wc+"$1")]}),va(t,{props:[We(i,/:(plac\w+)/,Ft+"input-$1")]})],o)}return""})}},EE=[PE],Lb=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(x){var C=x.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var o=t.stylisPlugins||EE,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(x){for(var C=x.getAttribute("data-emotion").split(" "),v=1;v=0)&&(n[o]=e[o]);return n}function IP(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function _P(e,t){return e.button===0&&(!t||t==="_self")&&!IP(e)}const LP=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],AP=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],NP="6";try{window.__reactRouterVersion=NP}catch{}const DP=p.createContext({isTransitioning:!1}),zP="startTransition",Zv=Vl[zP];function BP(e){let{basename:t,children:n,future:r,window:o}=e,i=p.useRef();i.current==null&&(i.current=qR({window:o,v5Compat:!0}));let a=i.current,[s,l]=p.useState({action:a.action,location:a.location}),{v7_startTransition:c}=r||{},u=p.useCallback(f=>{c&&Zv?Zv(()=>l(f)):l(f)},[l,c]);return p.useLayoutEffect(()=>a.listen(u),[a,u]),p.createElement(jP,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a,future:r})}const FP=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",UP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Rb=p.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:s,target:l,to:c,preventScrollReset:u,unstable_viewTransition:f}=t,h=kb(t,LP),{basename:w}=p.useContext(Nr),y,x=!1;if(typeof c=="string"&&UP.test(c)&&(y=c,FP))try{let b=new URL(window.location.href),k=c.startsWith("//")?new URL(b.protocol+c):new URL(c),R=_i(k.pathname,w);k.origin===b.origin&&R!=null?c=R+k.search+k.hash:x=!0}catch{}let C=gP(c,{relative:o}),v=VP(c,{replace:a,state:s,target:l,preventScrollReset:u,relative:o,unstable_viewTransition:f});function m(b){r&&r(b),b.defaultPrevented||v(b)}return p.createElement("a",bc({},h,{href:y||C,onClick:x||i?r:m,ref:n,target:l}))}),WP=p.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:a=!1,style:s,to:l,unstable_viewTransition:c,children:u}=t,f=kb(t,AP),h=au(l,{relative:f.relative}),w=ho(),y=p.useContext(xb),{navigator:x,basename:C}=p.useContext(Nr),v=y!=null&&qP(h)&&c===!0,m=x.encodeLocation?x.encodeLocation(h).pathname:h.pathname,b=w.pathname,k=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;o||(b=b.toLowerCase(),k=k?k.toLowerCase():null,m=m.toLowerCase()),k&&C&&(k=_i(k,C)||k);const R=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let T=b===m||!a&&b.startsWith(m)&&b.charAt(R)==="/",P=k!=null&&(k===m||!a&&k.startsWith(m)&&k.charAt(m.length)==="/"),j={isActive:T,isPending:P,isTransitioning:v},N=T?r:void 0,I;typeof i=="function"?I=i(j):I=[i,T?"active":null,P?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let F=typeof s=="function"?s(j):s;return p.createElement(Rb,bc({},f,{"aria-current":N,className:I,ref:n,style:F,to:l,unstable_viewTransition:c}),typeof u=="function"?u(j):u)});var pp;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(pp||(pp={}));var e0;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(e0||(e0={}));function HP(e){let t=p.useContext(ou);return t||ft(!1),t}function VP(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:s}=t===void 0?{}:t,l=qo(),c=ho(),u=au(e,{relative:a});return p.useCallback(f=>{if(_P(f,n)){f.preventDefault();let h=r!==void 0?r:yc(c)===yc(u);l(e,{replace:h,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:s})}},[c,l,u,r,o,n,e,i,a,s])}function qP(e,t){t===void 0&&(t={});let n=p.useContext(DP);n==null&&ft(!1);let{basename:r}=HP(pp.useViewTransitionState),o=au(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=_i(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=_i(n.nextLocation.pathname,r)||n.nextLocation.pathname;return dp(o.pathname,a)!=null||dp(o.pathname,i)!=null}const vr=p.createContext({user:null}),GP=({children:e})=>{const[t,n]=p.useState(!1),[r,o]=p.useState(null),[i,a]=p.useState(0),[s,l]=p.useState([]),c=p.useCallback(x=>{l(C=>[...C,x])},[l]),u=x=>{l(C=>C.filter((v,m)=>m!==x))},f=()=>{a(i+1)},h=qo();p.useEffect(()=>{const x=localStorage.getItem("user");console.log("Attempting to load user:",x),x?(console.log("User found in storage:",x),o(JSON.parse(x))):console.log("No user found in storage at initialization.")},[]),p.useEffect(()=>{r?(console.log("Storing user in storage:",r),localStorage.setItem("user",JSON.stringify(r))):(console.log("Removing user from storage."),localStorage.removeItem("user"))},[r]);const w=p.useCallback(async()=>{var x;try{const C=localStorage.getItem("token");if(console.log("Logging out with token:",C),!C){console.error("No token available for logout");return}const v=await Oe.post("/api/user/logout",{},{headers:{Authorization:`Bearer ${C}`}});if(v.status===200)o(null),localStorage.removeItem("token"),h("/auth");else throw new Error("Logout failed with status: "+v.status)}catch(C){console.error("Logout failed:",((x=C.response)==null?void 0:x.data)||C.message)}},[h]),y=async(x,C,v)=>{var m,b;try{const k=localStorage.getItem("token"),R=await Oe.patch(`/api/user/change_password/${x}`,{current_password:C,new_password:v},{headers:{Authorization:`Bearer ${k}`}});return R.status===200?{success:!0,message:"Password updated successfully!"}:{success:!1,message:R.data.message||"Update failed!"}}catch(k){return k.response.status===403?{success:!1,message:k.response.data.message||"Incorrect current password"}:{success:!1,message:((b=(m=k.response)==null?void 0:m.data)==null?void 0:b.message)||"Network error"}}};return p.useEffect(()=>{const x=C=>{C.data&&C.data.type==="NEW_NOTIFICATION"&&(console.log("Notification received:",C.data.data),c({title:C.data.data.title,message:C.data.data.body}))};return navigator.serviceWorker.addEventListener("message",x),()=>{navigator.serviceWorker.removeEventListener("message",x)}},[c]),d.jsx(vr.Provider,{value:{user:r,setUser:o,logout:w,voiceEnabled:t,setVoiceEnabled:n,changePassword:y,incrementNotificationCount:f,notifications:s,removeNotification:u,addNotification:c},children:e})},fs={black:"#000",white:"#fff"},Xo={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"},Qo={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Jo={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"},Zo={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},ei={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"},ga={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"},KP={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Bo(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n=0)continue;n[r]=e[r]}return n}function Pb(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var XP=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,QP=Pb(function(e){return XP.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function JP(e){if(e.sheet)return e.sheet;for(var t=0;t0?Lt(Xi,--dn):0,Li--,bt===10&&(Li=1,lu--),bt}function bn(){return bt=dn2||hs(bt)>3?"":" "}function dE(e,t){for(;--t&&bn()&&!(bt<48||bt>102||bt>57&&bt<65||bt>70&&bt<97););return Ms(e,Nl()+(t<6&&hr()==32&&bn()==32))}function mp(e){for(;bn();)switch(bt){case e:return dn;case 34:case 39:e!==34&&e!==39&&mp(bt);break;case 40:e===41&&mp(e);break;case 92:bn();break}return dn}function fE(e,t){for(;bn()&&e+bt!==57;)if(e+bt===84&&hr()===47)break;return"/*"+Ms(t,dn-1)+"*"+su(e===47?e:bn())}function pE(e){for(;!hs(hr());)bn();return Ms(e,dn)}function hE(e){return Ob(zl("",null,null,null,[""],e=jb(e),0,[0],e))}function zl(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,f=a,h=0,w=0,y=0,x=1,C=1,v=1,m=0,b="",k=o,R=i,T=r,P=b;C;)switch(y=m,m=bn()){case 40:if(y!=108&&Lt(P,f-1)==58){hp(P+=We(Dl(m),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:P+=Dl(m);break;case 9:case 10:case 13:case 32:P+=uE(y);break;case 92:P+=dE(Nl()-1,7);continue;case 47:switch(hr()){case 42:case 47:ul(mE(fE(bn(),Nl()),t,n),l);break;default:P+="/"}break;case 123*x:s[c++]=cr(P)*v;case 125*x:case 59:case 0:switch(m){case 0:case 125:C=0;case 59+u:v==-1&&(P=We(P,/\f/g,"")),w>0&&cr(P)-f&&ul(w>32?n0(P+";",r,n,f-1):n0(We(P," ","")+";",r,n,f-2),l);break;case 59:P+=";";default:if(ul(T=t0(P,t,n,c,u,o,s,b,k=[],R=[],f),i),m===123)if(u===0)zl(P,t,T,T,k,i,f,s,R);else switch(h===99&&Lt(P,3)===110?100:h){case 100:case 108:case 109:case 115:zl(e,T,T,r&&ul(t0(e,T,T,0,0,o,s,b,o,k=[],f),R),o,R,f,s,r?k:R);break;default:zl(P,T,T,T,[""],R,0,s,R)}}c=u=w=0,x=v=1,b=P="",f=a;break;case 58:f=1+cr(P),w=y;default:if(x<1){if(m==123)--x;else if(m==125&&x++==0&&cE()==125)continue}switch(P+=su(m),m*x){case 38:v=u>0?1:(P+="\f",-1);break;case 44:s[c++]=(cr(P)-1)*v,v=1;break;case 64:hr()===45&&(P+=Dl(bn())),h=hr(),u=f=cr(b=P+=pE(Nl())),m++;break;case 45:y===45&&cr(P)==2&&(x=0)}}return i}function t0(e,t,n,r,o,i,a,s,l,c,u){for(var f=o-1,h=o===0?i:[""],w=Uh(h),y=0,x=0,C=0;y0?h[v]+" "+m:We(m,/&\f/g,h[v])))&&(l[C++]=b);return cu(e,t,n,o===0?Bh:s,l,c,u)}function mE(e,t,n){return cu(e,t,n,Eb,su(lE()),ps(e,2,-2),0)}function n0(e,t,n,r){return cu(e,t,n,Fh,ps(e,0,r),ps(e,r+1,-1),r)}function ki(e,t){for(var n="",r=Uh(e),o=0;o6)switch(Lt(e,t+1)){case 109:if(Lt(e,t+4)!==45)break;case 102:return We(e,/(.+:)(.+)-([^]+)/,"$1"+Ue+"$2-$3$1"+wc+(Lt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~hp(e,"stretch")?Ib(We(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Lt(e,t+1)!==115)break;case 6444:switch(Lt(e,cr(e)-3-(~hp(e,"!important")&&10))){case 107:return We(e,":",":"+Ue)+e;case 101:return We(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ue+(Lt(e,14)===45?"inline-":"")+"box$3$1"+Ue+"$2$3$1"+Ft+"$2box$3")+e}break;case 5936:switch(Lt(e,t+11)){case 114:return Ue+e+Ft+We(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ue+e+Ft+We(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ue+e+Ft+We(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ue+e+Ft+e+e}return e}var kE=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Fh:t.return=Ib(t.value,t.length);break;case Tb:return ki([va(t,{value:We(t.value,"@","@"+Ue)})],o);case Bh:if(t.length)return sE(t.props,function(i){switch(aE(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ki([va(t,{props:[We(i,/:(read-\w+)/,":"+wc+"$1")]})],o);case"::placeholder":return ki([va(t,{props:[We(i,/:(plac\w+)/,":"+Ue+"input-$1")]}),va(t,{props:[We(i,/:(plac\w+)/,":"+wc+"$1")]}),va(t,{props:[We(i,/:(plac\w+)/,Ft+"input-$1")]})],o)}return""})}},RE=[kE],_b=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(x){var C=x.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var o=t.stylisPlugins||RE,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(x){for(var C=x.getAttribute("data-emotion").split(" "),v=1;v=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var zE={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},BE=/[A-Z]|^ms/g,FE=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ub=function(t){return t.charCodeAt(1)===45},o0=function(t){return t!=null&&typeof t!="boolean"},Wd=Eb(function(e){return Ub(e)?e:e.replace(BE,"-$&").toLowerCase()}),i0=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(FE,function(r,o,i){return ur={name:o,styles:i,next:ur},o})}return zE[t]!==1&&!Ub(t)&&typeof n=="number"&&n!==0?n+"px":n};function ms(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return ur={name:n.name,styles:n.styles,next:ur},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)ur={name:r.name,styles:r.styles,next:ur},r=r.next;var o=n.styles+";";return o}return UE(e,t,n)}case"function":{if(e!==void 0){var i=ur,a=n(e);return ur=i,ms(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function UE(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?GE:KE},u0=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},YE=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Bb(n,r,o),HE(function(){return Fb(n,r,o)}),null},XE=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var s=u0(t,n,r),l=s||c0(o),c=!l("as");return function(){var u=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else{f.push(u[0][0]);for(var h=u.length,w=1;wt(oT(o)?n:o):t;return d.jsx(qE,{styles:r})}function Gh(e,t){return vp(e,t)}const Qb=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},iT=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Xb,StyledEngineProvider:rT,ThemeContext:js,css:wu,default:Gh,internal_processStyles:Qb,keyframes:Qi},Symbol.toStringTag,{value:"Module"}));function Rr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Jb(e){if(!Rr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Jb(e[n])}),t}function Qt(e,t,n={clone:!0}){const r=n.clone?S({},e):e;return Rr(e)&&Rr(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Rr(t[o])&&o in e&&Rr(e[o])?r[o]=Qt(e[o],t[o],n):n.clone?r[o]=Rr(t[o])?Jb(t[o]):t[o]:r[o]=t[o])}),r}const aT=Object.freeze(Object.defineProperty({__proto__:null,default:Qt,isPlainObject:Rr},Symbol.toStringTag,{value:"Module"})),sT=["values","unit","step"],lT=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>S({},n,{[r.key]:r.val}),{})};function Zb(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=se(e,sT),i=lT(t),a=Object.keys(i);function s(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function l(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function c(h,w){const y=a.indexOf(w);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(y!==-1&&typeof t[a[y]]=="number"?t[a[y]]:w)-r/100}${n})`}function u(h){return a.indexOf(h)+1`@media (min-width:${Kh[e]}px)`};function or(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||d0;return t.reduce((a,s,l)=>(a[i.up(i.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const i=r.breakpoints||d0;return Object.keys(t).reduce((a,s)=>{if(Object.keys(i.values||Kh).indexOf(s)!==-1){const l=i.up(s);a[l]=n(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return n(t)}function ew(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function tw(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function uT(e,...t){const n=ew(e),r=[n,...t].reduce((o,i)=>Qt(o,i),{});return tw(Object.keys(n),r)}function dT(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i{e[o]!=null&&(n[o]=!0)}),n}function qd({values:e,breakpoints:t,base:n}){const r=n||dT(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((a,s,l)=>(Array.isArray(e)?(a[s]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[i],i=s):a[s]=e,a),{})}function Z(e){if(typeof e!="string")throw new Error(Bo(7));return e.charAt(0).toUpperCase()+e.slice(1)}const fT=Object.freeze(Object.defineProperty({__proto__:null,default:Z},Symbol.toStringTag,{value:"Module"}));function Su(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Sc(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Su(e,n)||r,t&&(o=t(o,r,e)),o}function yt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,c=Su(l,r)||{};return or(a,s,f=>{let h=Sc(c,o,f);return f===h&&typeof f=="string"&&(h=Sc(c,o,`${t}${f==="default"?"":Z(f)}`,f)),n===!1?h:{[n]:h}})};return i.propTypes={},i.filterProps=[t],i}function pT(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const hT={m:"margin",p:"padding"},mT={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},f0={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},gT=pT(e=>{if(e.length>2)if(f0[e])e=f0[e];else return[e];const[t,n]=e.split(""),r=hT[t],o=mT[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Yh=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Xh=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Yh,...Xh];function Os(e,t,n,r){var o;const i=(o=Su(e,t,!1))!=null?o:n;return typeof i=="number"?a=>typeof a=="string"?a:i*a:Array.isArray(i)?a=>typeof a=="string"?a:i[a]:typeof i=="function"?i:()=>{}}function Qh(e){return Os(e,"spacing",8)}function Uo(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function vT(e,t){return n=>e.reduce((r,o)=>(r[o]=Uo(t,n),r),{})}function yT(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=gT(n),i=vT(o,r),a=e[n];return or(e,a,i)}function nw(e,t){const n=Qh(e.theme);return Object.keys(e).map(r=>yT(e,t,r,n)).reduce(Ba,{})}function ht(e){return nw(e,Yh)}ht.propTypes={};ht.filterProps=Yh;function mt(e){return nw(e,Xh)}mt.propTypes={};mt.filterProps=Xh;function xT(e=8){if(e.mui)return e;const t=Qh({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function Cu(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?Ba(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function On(e){return typeof e!="number"?e:`${e}px solid`}function Hn(e,t){return yt({prop:e,themeKey:"borders",transform:t})}const bT=Hn("border",On),wT=Hn("borderTop",On),ST=Hn("borderRight",On),CT=Hn("borderBottom",On),RT=Hn("borderLeft",On),kT=Hn("borderColor"),PT=Hn("borderTopColor"),ET=Hn("borderRightColor"),TT=Hn("borderBottomColor"),$T=Hn("borderLeftColor"),MT=Hn("outline",On),jT=Hn("outlineColor"),Ru=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Os(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Uo(t,r)});return or(e,e.borderRadius,n)}return null};Ru.propTypes={};Ru.filterProps=["borderRadius"];Cu(bT,wT,ST,CT,RT,kT,PT,ET,TT,$T,Ru,MT,jT);const ku=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Os(e.theme,"spacing",8),n=r=>({gap:Uo(t,r)});return or(e,e.gap,n)}return null};ku.propTypes={};ku.filterProps=["gap"];const Pu=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Os(e.theme,"spacing",8),n=r=>({columnGap:Uo(t,r)});return or(e,e.columnGap,n)}return null};Pu.propTypes={};Pu.filterProps=["columnGap"];const Eu=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Os(e.theme,"spacing",8),n=r=>({rowGap:Uo(t,r)});return or(e,e.rowGap,n)}return null};Eu.propTypes={};Eu.filterProps=["rowGap"];const OT=yt({prop:"gridColumn"}),IT=yt({prop:"gridRow"}),_T=yt({prop:"gridAutoFlow"}),LT=yt({prop:"gridAutoColumns"}),AT=yt({prop:"gridAutoRows"}),NT=yt({prop:"gridTemplateColumns"}),DT=yt({prop:"gridTemplateRows"}),zT=yt({prop:"gridTemplateAreas"}),BT=yt({prop:"gridArea"});Cu(ku,Pu,Eu,OT,IT,_T,LT,AT,NT,DT,zT,BT);function ki(e,t){return t==="grey"?t:e}const FT=yt({prop:"color",themeKey:"palette",transform:ki}),UT=yt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ki}),WT=yt({prop:"backgroundColor",themeKey:"palette",transform:ki});Cu(FT,UT,WT);function vn(e){return e<=1&&e!==0?`${e*100}%`:e}const HT=yt({prop:"width",transform:vn}),Jh=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Kh[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:vn(n)}};return or(e,e.maxWidth,t)}return null};Jh.filterProps=["maxWidth"];const VT=yt({prop:"minWidth",transform:vn}),qT=yt({prop:"height",transform:vn}),GT=yt({prop:"maxHeight",transform:vn}),KT=yt({prop:"minHeight",transform:vn});yt({prop:"size",cssProperty:"width",transform:vn});yt({prop:"size",cssProperty:"height",transform:vn});const YT=yt({prop:"boxSizing"});Cu(HT,Jh,VT,qT,GT,KT,YT);const Is={border:{themeKey:"borders",transform:On},borderTop:{themeKey:"borders",transform:On},borderRight:{themeKey:"borders",transform:On},borderBottom:{themeKey:"borders",transform:On},borderLeft:{themeKey:"borders",transform:On},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:On},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ru},color:{themeKey:"palette",transform:ki},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ki},backgroundColor:{themeKey:"palette",transform:ki},p:{style:mt},pt:{style:mt},pr:{style:mt},pb:{style:mt},pl:{style:mt},px:{style:mt},py:{style:mt},padding:{style:mt},paddingTop:{style:mt},paddingRight:{style:mt},paddingBottom:{style:mt},paddingLeft:{style:mt},paddingX:{style:mt},paddingY:{style:mt},paddingInline:{style:mt},paddingInlineStart:{style:mt},paddingInlineEnd:{style:mt},paddingBlock:{style:mt},paddingBlockStart:{style:mt},paddingBlockEnd:{style:mt},m:{style:ht},mt:{style:ht},mr:{style:ht},mb:{style:ht},ml:{style:ht},mx:{style:ht},my:{style:ht},margin:{style:ht},marginTop:{style:ht},marginRight:{style:ht},marginBottom:{style:ht},marginLeft:{style:ht},marginX:{style:ht},marginY:{style:ht},marginInline:{style:ht},marginInlineStart:{style:ht},marginInlineEnd:{style:ht},marginBlock:{style:ht},marginBlockStart:{style:ht},marginBlockEnd:{style:ht},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:ku},rowGap:{style:Eu},columnGap:{style:Pu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:vn},maxWidth:{style:Jh},minWidth:{transform:vn},height:{transform:vn},maxHeight:{transform:vn},minHeight:{transform:vn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function XT(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function QT(e,t){return typeof e=="function"?e(t):e}function rw(){function e(n,r,o,i){const a={[n]:r,theme:o},s=i[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:f}=s;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const h=Su(o,c)||{};return f?f(a):or(a,r,y=>{let x=Sc(h,u,y);return y===x&&typeof y=="string"&&(x=Sc(h,u,`${n}${y==="default"?"":Z(y)}`,y)),l===!1?x:{[l]:x}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=(r=i.unstable_sxConfig)!=null?r:Is;function s(l){let c=l;if(typeof l=="function")c=l(i);else if(typeof l!="object")return l;if(!c)return null;const u=ew(i.breakpoints),f=Object.keys(u);let h=u;return Object.keys(c).forEach(w=>{const y=QT(c[w],i);if(y!=null)if(typeof y=="object")if(a[w])h=Ba(h,e(w,y,i,a));else{const x=or({theme:i},y,C=>({[w]:C}));XT(x,y)?h[w]=t({sx:y,theme:i}):h=Ba(h,x)}else h=Ba(h,e(w,y,i,a))}),tw(f,h)}return Array.isArray(o)?o.map(s):s(o)}return t}const Ji=rw();Ji.filterProps=["sx"];function ow(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const JT=["breakpoints","palette","spacing","shape"];function Zi(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=se(e,JT),s=Zb(n),l=xT(o);let c=Qt({breakpoints:s,direction:"ltr",components:{},palette:S({mode:"light"},r),spacing:l,shape:S({},cT,i)},a);return c.applyStyles=ow,c=t.reduce((u,f)=>Qt(u,f),c),c.unstable_sxConfig=S({},Is,a==null?void 0:a.unstable_sxConfig),c.unstable_sx=function(f){return Ji({sx:f,theme:this})},c}const ZT=Object.freeze(Object.defineProperty({__proto__:null,default:Zi,private_createBreakpoints:Zb,unstable_applyStyles:ow},Symbol.toStringTag,{value:"Module"}));function e$(e){return Object.keys(e).length===0}function iw(e=null){const t=p.useContext(js);return!t||e$(t)?e:t}const t$=Zi();function Tu(e=t$){return iw(e)}function n$({styles:e,themeId:t,defaultTheme:n={}}){const r=Tu(n),o=typeof e=="function"?e(t&&r[t]||r):e;return d.jsx(Xb,{styles:o})}const r$=["sx"],o$=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Is;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function $u(e){const{sx:t}=e,n=se(e,r$),{systemProps:r,otherProps:o}=o$(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return Rr(s)?S({},r,s):r}:i=S({},r,t),S({},o,{sx:i})}const i$=Object.freeze(Object.defineProperty({__proto__:null,default:Ji,extendSxProp:$u,unstable_createStyleFunctionSx:rw,unstable_defaultSxConfig:Is},Symbol.toStringTag,{value:"Module"})),p0=e=>e,a$=()=>{let e=p0;return{configure(t){e=t},generate(t){return e(t)},reset(){e=p0}}},Zh=a$();function aw(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(Ji);return p.forwardRef(function(l,c){const u=Tu(n),f=$u(l),{className:h,component:w="div"}=f,y=se(f,s$);return d.jsx(i,S({as:w,ref:c,className:le(h,o?o(r):r),theme:t&&u[t]||u},y))})}const sw={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function be(e,t,n="Mui"){const r=sw[t];return r?`${n}-${r}`:`${Zh.generate(e)}-${t}`}function we(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=be(e,o,n)}),r}var lw={exports:{}},qe={};/** + */var jt=typeof Symbol=="function"&&Symbol.for,Wh=jt?Symbol.for("react.element"):60103,Hh=jt?Symbol.for("react.portal"):60106,uu=jt?Symbol.for("react.fragment"):60107,du=jt?Symbol.for("react.strict_mode"):60108,fu=jt?Symbol.for("react.profiler"):60114,pu=jt?Symbol.for("react.provider"):60109,hu=jt?Symbol.for("react.context"):60110,Vh=jt?Symbol.for("react.async_mode"):60111,mu=jt?Symbol.for("react.concurrent_mode"):60111,gu=jt?Symbol.for("react.forward_ref"):60112,vu=jt?Symbol.for("react.suspense"):60113,PE=jt?Symbol.for("react.suspense_list"):60120,yu=jt?Symbol.for("react.memo"):60115,xu=jt?Symbol.for("react.lazy"):60116,EE=jt?Symbol.for("react.block"):60121,TE=jt?Symbol.for("react.fundamental"):60117,$E=jt?Symbol.for("react.responder"):60118,ME=jt?Symbol.for("react.scope"):60119;function Pn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Wh:switch(e=e.type,e){case Vh:case mu:case uu:case fu:case du:case vu:return e;default:switch(e=e&&e.$$typeof,e){case hu:case gu:case xu:case yu:case pu:return e;default:return t}}case Hh:return t}}}function Ab(e){return Pn(e)===mu}Ve.AsyncMode=Vh;Ve.ConcurrentMode=mu;Ve.ContextConsumer=hu;Ve.ContextProvider=pu;Ve.Element=Wh;Ve.ForwardRef=gu;Ve.Fragment=uu;Ve.Lazy=xu;Ve.Memo=yu;Ve.Portal=Hh;Ve.Profiler=fu;Ve.StrictMode=du;Ve.Suspense=vu;Ve.isAsyncMode=function(e){return Ab(e)||Pn(e)===Vh};Ve.isConcurrentMode=Ab;Ve.isContextConsumer=function(e){return Pn(e)===hu};Ve.isContextProvider=function(e){return Pn(e)===pu};Ve.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Wh};Ve.isForwardRef=function(e){return Pn(e)===gu};Ve.isFragment=function(e){return Pn(e)===uu};Ve.isLazy=function(e){return Pn(e)===xu};Ve.isMemo=function(e){return Pn(e)===yu};Ve.isPortal=function(e){return Pn(e)===Hh};Ve.isProfiler=function(e){return Pn(e)===fu};Ve.isStrictMode=function(e){return Pn(e)===du};Ve.isSuspense=function(e){return Pn(e)===vu};Ve.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===uu||e===mu||e===fu||e===du||e===vu||e===PE||typeof e=="object"&&e!==null&&(e.$$typeof===xu||e.$$typeof===yu||e.$$typeof===pu||e.$$typeof===hu||e.$$typeof===gu||e.$$typeof===TE||e.$$typeof===$E||e.$$typeof===ME||e.$$typeof===EE)};Ve.typeOf=Pn;Lb.exports=Ve;var jE=Lb.exports,Nb=jE,OE={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},IE={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Db={};Db[Nb.ForwardRef]=OE;Db[Nb.Memo]=IE;var _E=!0;function LE(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var zb=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||_E===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},Bb=function(t,n,r){zb(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function AE(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var NE={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},DE=/[A-Z]|^ms/g,zE=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Fb=function(t){return t.charCodeAt(1)===45},o0=function(t){return t!=null&&typeof t!="boolean"},Ud=Pb(function(e){return Fb(e)?e:e.replace(DE,"-$&").toLowerCase()}),i0=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(zE,function(r,o,i){return ur={name:o,styles:i,next:ur},o})}return NE[t]!==1&&!Fb(t)&&typeof n=="number"&&n!==0?n+"px":n};function ms(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return ur={name:n.name,styles:n.styles,next:ur},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)ur={name:r.name,styles:r.styles,next:ur},r=r.next;var o=n.styles+";";return o}return BE(e,t,n)}case"function":{if(e!==void 0){var i=ur,a=n(e);return ur=i,ms(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function BE(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?VE:qE},u0=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},GE=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return zb(n,r,o),UE(function(){return Bb(n,r,o)}),null},KE=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var s=u0(t,n,r),l=s||c0(o),c=!l("as");return function(){var u=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else{f.push(u[0][0]);for(var h=u.length,w=1;wt(nT(o)?n:o):t;return d.jsx(HE,{styles:r})}function Gh(e,t){return gp(e,t)}const Xb=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},rT=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Yb,StyledEngineProvider:tT,ThemeContext:js,css:bu,default:Gh,internal_processStyles:Xb,keyframes:Qi},Symbol.toStringTag,{value:"Module"}));function kr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Qb(e){if(!kr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Qb(e[n])}),t}function Qt(e,t,n={clone:!0}){const r=n.clone?S({},e):e;return kr(e)&&kr(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(kr(t[o])&&o in e&&kr(e[o])?r[o]=Qt(e[o],t[o],n):n.clone?r[o]=kr(t[o])?Qb(t[o]):t[o]:r[o]=t[o])}),r}const oT=Object.freeze(Object.defineProperty({__proto__:null,default:Qt,isPlainObject:kr},Symbol.toStringTag,{value:"Module"})),iT=["values","unit","step"],aT=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>S({},n,{[r.key]:r.val}),{})};function Jb(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=se(e,iT),i=aT(t),a=Object.keys(i);function s(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function l(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function c(h,w){const y=a.indexOf(w);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(y!==-1&&typeof t[a[y]]=="number"?t[a[y]]:w)-r/100}${n})`}function u(h){return a.indexOf(h)+1`@media (min-width:${Kh[e]}px)`};function or(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||d0;return t.reduce((a,s,l)=>(a[i.up(i.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const i=r.breakpoints||d0;return Object.keys(t).reduce((a,s)=>{if(Object.keys(i.values||Kh).indexOf(s)!==-1){const l=i.up(s);a[l]=n(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return n(t)}function Zb(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function ew(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function lT(e,...t){const n=Zb(e),r=[n,...t].reduce((o,i)=>Qt(o,i),{});return ew(Object.keys(n),r)}function cT(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i{e[o]!=null&&(n[o]=!0)}),n}function Vd({values:e,breakpoints:t,base:n}){const r=n||cT(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((a,s,l)=>(Array.isArray(e)?(a[s]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[i],i=s):a[s]=e,a),{})}function Z(e){if(typeof e!="string")throw new Error(Bo(7));return e.charAt(0).toUpperCase()+e.slice(1)}const uT=Object.freeze(Object.defineProperty({__proto__:null,default:Z},Symbol.toStringTag,{value:"Module"}));function wu(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Sc(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=wu(e,n)||r,t&&(o=t(o,r,e)),o}function yt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,c=wu(l,r)||{};return or(a,s,f=>{let h=Sc(c,o,f);return f===h&&typeof f=="string"&&(h=Sc(c,o,`${t}${f==="default"?"":Z(f)}`,f)),n===!1?h:{[n]:h}})};return i.propTypes={},i.filterProps=[t],i}function dT(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const fT={m:"margin",p:"padding"},pT={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},f0={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},hT=dT(e=>{if(e.length>2)if(f0[e])e=f0[e];else return[e];const[t,n]=e.split(""),r=fT[t],o=pT[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Yh=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Xh=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Yh,...Xh];function Os(e,t,n,r){var o;const i=(o=wu(e,t,!1))!=null?o:n;return typeof i=="number"?a=>typeof a=="string"?a:i*a:Array.isArray(i)?a=>typeof a=="string"?a:i[a]:typeof i=="function"?i:()=>{}}function Qh(e){return Os(e,"spacing",8)}function Uo(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function mT(e,t){return n=>e.reduce((r,o)=>(r[o]=Uo(t,n),r),{})}function gT(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=hT(n),i=mT(o,r),a=e[n];return or(e,a,i)}function tw(e,t){const n=Qh(e.theme);return Object.keys(e).map(r=>gT(e,t,r,n)).reduce(Ba,{})}function ht(e){return tw(e,Yh)}ht.propTypes={};ht.filterProps=Yh;function mt(e){return tw(e,Xh)}mt.propTypes={};mt.filterProps=Xh;function vT(e=8){if(e.mui)return e;const t=Qh({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function Su(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?Ba(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function On(e){return typeof e!="number"?e:`${e}px solid`}function Hn(e,t){return yt({prop:e,themeKey:"borders",transform:t})}const yT=Hn("border",On),xT=Hn("borderTop",On),bT=Hn("borderRight",On),wT=Hn("borderBottom",On),ST=Hn("borderLeft",On),CT=Hn("borderColor"),kT=Hn("borderTopColor"),RT=Hn("borderRightColor"),PT=Hn("borderBottomColor"),ET=Hn("borderLeftColor"),TT=Hn("outline",On),$T=Hn("outlineColor"),Cu=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Os(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Uo(t,r)});return or(e,e.borderRadius,n)}return null};Cu.propTypes={};Cu.filterProps=["borderRadius"];Su(yT,xT,bT,wT,ST,CT,kT,RT,PT,ET,Cu,TT,$T);const ku=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Os(e.theme,"spacing",8),n=r=>({gap:Uo(t,r)});return or(e,e.gap,n)}return null};ku.propTypes={};ku.filterProps=["gap"];const Ru=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Os(e.theme,"spacing",8),n=r=>({columnGap:Uo(t,r)});return or(e,e.columnGap,n)}return null};Ru.propTypes={};Ru.filterProps=["columnGap"];const Pu=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Os(e.theme,"spacing",8),n=r=>({rowGap:Uo(t,r)});return or(e,e.rowGap,n)}return null};Pu.propTypes={};Pu.filterProps=["rowGap"];const MT=yt({prop:"gridColumn"}),jT=yt({prop:"gridRow"}),OT=yt({prop:"gridAutoFlow"}),IT=yt({prop:"gridAutoColumns"}),_T=yt({prop:"gridAutoRows"}),LT=yt({prop:"gridTemplateColumns"}),AT=yt({prop:"gridTemplateRows"}),NT=yt({prop:"gridTemplateAreas"}),DT=yt({prop:"gridArea"});Su(ku,Ru,Pu,MT,jT,OT,IT,_T,LT,AT,NT,DT);function Ri(e,t){return t==="grey"?t:e}const zT=yt({prop:"color",themeKey:"palette",transform:Ri}),BT=yt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ri}),FT=yt({prop:"backgroundColor",themeKey:"palette",transform:Ri});Su(zT,BT,FT);function vn(e){return e<=1&&e!==0?`${e*100}%`:e}const UT=yt({prop:"width",transform:vn}),Jh=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Kh[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:vn(n)}};return or(e,e.maxWidth,t)}return null};Jh.filterProps=["maxWidth"];const WT=yt({prop:"minWidth",transform:vn}),HT=yt({prop:"height",transform:vn}),VT=yt({prop:"maxHeight",transform:vn}),qT=yt({prop:"minHeight",transform:vn});yt({prop:"size",cssProperty:"width",transform:vn});yt({prop:"size",cssProperty:"height",transform:vn});const GT=yt({prop:"boxSizing"});Su(UT,Jh,WT,HT,VT,qT,GT);const Is={border:{themeKey:"borders",transform:On},borderTop:{themeKey:"borders",transform:On},borderRight:{themeKey:"borders",transform:On},borderBottom:{themeKey:"borders",transform:On},borderLeft:{themeKey:"borders",transform:On},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:On},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Cu},color:{themeKey:"palette",transform:Ri},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ri},backgroundColor:{themeKey:"palette",transform:Ri},p:{style:mt},pt:{style:mt},pr:{style:mt},pb:{style:mt},pl:{style:mt},px:{style:mt},py:{style:mt},padding:{style:mt},paddingTop:{style:mt},paddingRight:{style:mt},paddingBottom:{style:mt},paddingLeft:{style:mt},paddingX:{style:mt},paddingY:{style:mt},paddingInline:{style:mt},paddingInlineStart:{style:mt},paddingInlineEnd:{style:mt},paddingBlock:{style:mt},paddingBlockStart:{style:mt},paddingBlockEnd:{style:mt},m:{style:ht},mt:{style:ht},mr:{style:ht},mb:{style:ht},ml:{style:ht},mx:{style:ht},my:{style:ht},margin:{style:ht},marginTop:{style:ht},marginRight:{style:ht},marginBottom:{style:ht},marginLeft:{style:ht},marginX:{style:ht},marginY:{style:ht},marginInline:{style:ht},marginInlineStart:{style:ht},marginInlineEnd:{style:ht},marginBlock:{style:ht},marginBlockStart:{style:ht},marginBlockEnd:{style:ht},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:ku},rowGap:{style:Pu},columnGap:{style:Ru},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:vn},maxWidth:{style:Jh},minWidth:{transform:vn},height:{transform:vn},maxHeight:{transform:vn},minHeight:{transform:vn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function KT(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function YT(e,t){return typeof e=="function"?e(t):e}function nw(){function e(n,r,o,i){const a={[n]:r,theme:o},s=i[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:f}=s;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const h=wu(o,c)||{};return f?f(a):or(a,r,y=>{let x=Sc(h,u,y);return y===x&&typeof y=="string"&&(x=Sc(h,u,`${n}${y==="default"?"":Z(y)}`,y)),l===!1?x:{[l]:x}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=(r=i.unstable_sxConfig)!=null?r:Is;function s(l){let c=l;if(typeof l=="function")c=l(i);else if(typeof l!="object")return l;if(!c)return null;const u=Zb(i.breakpoints),f=Object.keys(u);let h=u;return Object.keys(c).forEach(w=>{const y=YT(c[w],i);if(y!=null)if(typeof y=="object")if(a[w])h=Ba(h,e(w,y,i,a));else{const x=or({theme:i},y,C=>({[w]:C}));KT(x,y)?h[w]=t({sx:y,theme:i}):h=Ba(h,x)}else h=Ba(h,e(w,y,i,a))}),ew(f,h)}return Array.isArray(o)?o.map(s):s(o)}return t}const Ji=nw();Ji.filterProps=["sx"];function rw(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const XT=["breakpoints","palette","spacing","shape"];function Zi(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=se(e,XT),s=Jb(n),l=vT(o);let c=Qt({breakpoints:s,direction:"ltr",components:{},palette:S({mode:"light"},r),spacing:l,shape:S({},sT,i)},a);return c.applyStyles=rw,c=t.reduce((u,f)=>Qt(u,f),c),c.unstable_sxConfig=S({},Is,a==null?void 0:a.unstable_sxConfig),c.unstable_sx=function(f){return Ji({sx:f,theme:this})},c}const QT=Object.freeze(Object.defineProperty({__proto__:null,default:Zi,private_createBreakpoints:Jb,unstable_applyStyles:rw},Symbol.toStringTag,{value:"Module"}));function JT(e){return Object.keys(e).length===0}function ow(e=null){const t=p.useContext(js);return!t||JT(t)?e:t}const ZT=Zi();function Eu(e=ZT){return ow(e)}function e$({styles:e,themeId:t,defaultTheme:n={}}){const r=Eu(n),o=typeof e=="function"?e(t&&r[t]||r):e;return d.jsx(Yb,{styles:o})}const t$=["sx"],n$=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Is;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function Tu(e){const{sx:t}=e,n=se(e,t$),{systemProps:r,otherProps:o}=n$(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return kr(s)?S({},r,s):r}:i=S({},r,t),S({},o,{sx:i})}const r$=Object.freeze(Object.defineProperty({__proto__:null,default:Ji,extendSxProp:Tu,unstable_createStyleFunctionSx:nw,unstable_defaultSxConfig:Is},Symbol.toStringTag,{value:"Module"})),p0=e=>e,o$=()=>{let e=p0;return{configure(t){e=t},generate(t){return e(t)},reset(){e=p0}}},Zh=o$();function iw(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(Ji);return p.forwardRef(function(l,c){const u=Eu(n),f=Tu(l),{className:h,component:w="div"}=f,y=se(f,i$);return d.jsx(i,S({as:w,ref:c,className:le(h,o?o(r):r),theme:t&&u[t]||u},y))})}const aw={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function be(e,t,n="Mui"){const r=aw[t];return r?`${n}-${r}`:`${Zh.generate(e)}-${t}`}function we(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=be(e,o,n)}),r}var sw={exports:{}},qe={};/** * @license React * react-is.production.min.js * @@ -84,7 +84,7 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var em=Symbol.for("react.element"),tm=Symbol.for("react.portal"),Mu=Symbol.for("react.fragment"),ju=Symbol.for("react.strict_mode"),Ou=Symbol.for("react.profiler"),Iu=Symbol.for("react.provider"),_u=Symbol.for("react.context"),c$=Symbol.for("react.server_context"),Lu=Symbol.for("react.forward_ref"),Au=Symbol.for("react.suspense"),Nu=Symbol.for("react.suspense_list"),Du=Symbol.for("react.memo"),zu=Symbol.for("react.lazy"),u$=Symbol.for("react.offscreen"),cw;cw=Symbol.for("react.module.reference");function Vn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case em:switch(e=e.type,e){case Mu:case Ou:case ju:case Au:case Nu:return e;default:switch(e=e&&e.$$typeof,e){case c$:case _u:case Lu:case zu:case Du:case Iu:return e;default:return t}}case tm:return t}}}qe.ContextConsumer=_u;qe.ContextProvider=Iu;qe.Element=em;qe.ForwardRef=Lu;qe.Fragment=Mu;qe.Lazy=zu;qe.Memo=Du;qe.Portal=tm;qe.Profiler=Ou;qe.StrictMode=ju;qe.Suspense=Au;qe.SuspenseList=Nu;qe.isAsyncMode=function(){return!1};qe.isConcurrentMode=function(){return!1};qe.isContextConsumer=function(e){return Vn(e)===_u};qe.isContextProvider=function(e){return Vn(e)===Iu};qe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===em};qe.isForwardRef=function(e){return Vn(e)===Lu};qe.isFragment=function(e){return Vn(e)===Mu};qe.isLazy=function(e){return Vn(e)===zu};qe.isMemo=function(e){return Vn(e)===Du};qe.isPortal=function(e){return Vn(e)===tm};qe.isProfiler=function(e){return Vn(e)===Ou};qe.isStrictMode=function(e){return Vn(e)===ju};qe.isSuspense=function(e){return Vn(e)===Au};qe.isSuspenseList=function(e){return Vn(e)===Nu};qe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Mu||e===Ou||e===ju||e===Au||e===Nu||e===u$||typeof e=="object"&&e!==null&&(e.$$typeof===zu||e.$$typeof===Du||e.$$typeof===Iu||e.$$typeof===_u||e.$$typeof===Lu||e.$$typeof===cw||e.getModuleId!==void 0)};qe.typeOf=Vn;lw.exports=qe;var h0=lw.exports;const d$=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function uw(e){const t=`${e}`.match(d$);return t&&t[1]||""}function dw(e,t=""){return e.displayName||e.name||uw(e)||t}function m0(e,t,n){const r=dw(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function f$(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return dw(e,"Component");if(typeof e=="object")switch(e.$$typeof){case h0.ForwardRef:return m0(e,e.render,"ForwardRef");case h0.Memo:return m0(e,e.type,"memo");default:return}}}const p$=Object.freeze(Object.defineProperty({__proto__:null,default:f$,getFunctionName:uw},Symbol.toStringTag,{value:"Module"})),h$=["ownerState"],m$=["variants"],g$=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function v$(e){return Object.keys(e).length===0}function y$(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Gd(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const x$=Zi(),b$=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function dl({defaultTheme:e,theme:t,themeId:n}){return v$(t)?e:t[n]||t}function w$(e){return e?(t,n)=>n[e]:null}function Bl(e,t){let{ownerState:n}=t,r=se(t,h$);const o=typeof e=="function"?e(S({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Bl(i,S({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let s=se(o,m$);return i.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props(S({ownerState:n},r,n)):Object.keys(l.props).forEach(u=>{(n==null?void 0:n[u])!==l.props[u]&&r[u]!==l.props[u]&&(c=!1)}),c&&(Array.isArray(s)||(s=[s]),s.push(typeof l.style=="function"?l.style(S({ownerState:n},r,n)):l.style))}),s}return o}function S$(e={}){const{themeId:t,defaultTheme:n=x$,rootShouldForwardProp:r=Gd,slotShouldForwardProp:o=Gd}=e,i=a=>Ji(S({},a,{theme:dl(S({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,s={})=>{Qb(a,k=>k.filter(T=>!(T!=null&&T.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:f,overridesResolver:h=w$(b$(c))}=s,w=se(s,g$),y=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,x=f||!1;let C,v=Gd;c==="Root"||c==="root"?v=r:c?v=o:y$(a)&&(v=void 0);const m=Gh(a,S({shouldForwardProp:v,label:C},w)),b=k=>typeof k=="function"&&k.__emotion_real!==k||Rr(k)?T=>Bl(k,S({},T,{theme:dl({theme:T.theme,defaultTheme:n,themeId:t})})):k,R=(k,...T)=>{let P=b(k);const j=T?T.map(b):[];l&&h&&j.push(F=>{const W=dl(S({},F,{defaultTheme:n,themeId:t}));if(!W.components||!W.components[l]||!W.components[l].styleOverrides)return null;const U=W.components[l].styleOverrides,G={};return Object.entries(U).forEach(([ee,J])=>{G[ee]=Bl(J,S({},F,{theme:W}))}),h(F,G)}),l&&!y&&j.push(F=>{var W;const U=dl(S({},F,{defaultTheme:n,themeId:t})),G=U==null||(W=U.components)==null||(W=W[l])==null?void 0:W.variants;return Bl({variants:G},S({},F,{theme:U}))}),x||j.push(i);const N=j.length-T.length;if(Array.isArray(k)&&N>0){const F=new Array(N).fill("");P=[...k,...F],P.raw=[...k.raw,...F]}const O=m(P,...j);return a.muiName&&(O.muiName=a.muiName),O};return m.withConfig&&(R.withConfig=m.withConfig),R}}const fw=S$();function nm(e,t){const n=S({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=S({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=S({},i),Object.keys(o).forEach(a=>{n[r][a]=nm(o[a],i[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function C$(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:nm(t.components[n].defaultProps,r)}function rm({props:e,name:t,defaultTheme:n,themeId:r}){let o=Tu(n);return r&&(o=o[r]||o),C$({theme:o,name:t,props:e})}const Sn=typeof window<"u"?p.useLayoutEffect:p.useEffect;function R$(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const k$=Object.freeze(Object.defineProperty({__proto__:null,default:R$},Symbol.toStringTag,{value:"Module"}));function xp(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function ea(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function P$(e,t){return()=>null}function Fa(e,t){var n,r;return p.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function St(e){return e&&e.ownerDocument||document}function Bn(e){return St(e).defaultView||window}function E$(e,t){return()=>null}function Cc(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let g0=0;function T$(e){const[t,n]=p.useState(e),r=e||t;return p.useEffect(()=>{t==null&&(g0+=1,n(`mui-${g0}`))},[t]),r}const v0=Vl.useId;function _s(e){if(v0!==void 0){const t=v0();return e??t}return T$(e)}function $$(e,t,n,r,o){return null}function gs({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=p.useRef(e!==void 0),[i,a]=p.useState(t),s=o?e:i,l=p.useCallback(c=>{o||a(c)},[]);return[s,l]}function Yt(e){const t=p.useRef(e);return Sn(()=>{t.current=e}),p.useRef((...n)=>(0,t.current)(...n)).current}function lt(...e){return p.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Cc(n,t)})},e)}const y0={};function M$(e,t){const n=p.useRef(y0);return n.current===y0&&(n.current=e(t)),n}const j$=[];function O$(e){p.useEffect(e,j$)}class Ls{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ls}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function To(){const e=M$(Ls.create).current;return O$(e.disposeEffect),e}let Bu=!0,bp=!1;const I$=new Ls,_$={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function L$(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&_$[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function A$(e){e.metaKey||e.altKey||e.ctrlKey||(Bu=!0)}function Kd(){Bu=!1}function N$(){this.visibilityState==="hidden"&&bp&&(Bu=!0)}function D$(e){e.addEventListener("keydown",A$,!0),e.addEventListener("mousedown",Kd,!0),e.addEventListener("pointerdown",Kd,!0),e.addEventListener("touchstart",Kd,!0),e.addEventListener("visibilitychange",N$,!0)}function z$(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Bu||L$(t)}function om(){const e=p.useCallback(o=>{o!=null&&D$(o.ownerDocument)},[]),t=p.useRef(!1);function n(){return t.current?(bp=!0,I$.start(100,()=>{bp=!1}),t.current=!1,!0):!1}function r(o){return z$(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function pw(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let ti;function hw(){if(ti)return ti;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),ti="reverse",e.scrollLeft>0?ti="default":(e.scrollLeft=1,e.scrollLeft===0&&(ti="negative")),document.body.removeChild(e),ti}function B$(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(hw()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const mw=e=>{const t=p.useRef({});return p.useEffect(()=>{t.current=e}),t.current};function Se(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,a)=>{if(a){const s=t(a);s!==""&&i.push(s),n&&n[a]&&i.push(n[a])}return i},[]).join(" ")}),r}const gw=p.createContext(null);function vw(){return p.useContext(gw)}const F$=typeof Symbol=="function"&&Symbol.for,U$=F$?Symbol.for("mui.nested"):"__THEME_NESTED__";function W$(e,t){return typeof t=="function"?t(e):S({},e,t)}function H$(e){const{children:t,theme:n}=e,r=vw(),o=p.useMemo(()=>{const i=r===null?n:W$(r,n);return i!=null&&(i[U$]=r!==null),i},[n,r]);return d.jsx(gw.Provider,{value:o,children:t})}const V$=["value"],yw=p.createContext();function q$(e){let{value:t}=e,n=se(e,V$);return d.jsx(yw.Provider,S({value:t??!0},n))}const As=()=>{const e=p.useContext(yw);return e??!1},x0={};function b0(e,t,n,r=!1){return p.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),a=e?S({},t,{[e]:i}):i;return r?()=>a:a}return e?S({},t,{[e]:n}):S({},t,n)},[e,t,n,r])}function G$(e){const{children:t,theme:n,themeId:r}=e,o=iw(x0),i=vw()||x0,a=b0(r,o,n),s=b0(r,i,n,!0),l=a.direction==="rtl";return d.jsx(H$,{theme:s,children:d.jsx(js.Provider,{value:a,children:d.jsx(q$,{value:l,children:t})})})}const K$=["className","component","disableGutters","fixed","maxWidth","classes"],Y$=Zi(),X$=fw("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Z(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),Q$=e=>rm({props:e,name:"MuiContainer",defaultTheme:Y$}),J$=(e,t)=>{const n=l=>be(t,l),{classes:r,fixed:o,disableGutters:i,maxWidth:a}=e,s={root:["root",a&&`maxWidth${Z(String(a))}`,o&&"fixed",i&&"disableGutters"]};return Se(s,n,r)};function Z$(e={}){const{createStyledComponent:t=X$,useThemeProps:n=Q$,componentName:r="MuiContainer"}=e,o=t(({theme:a,ownerState:s})=>S({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!s.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}),({theme:a,ownerState:s})=>s.fixed&&Object.keys(a.breakpoints.values).reduce((l,c)=>{const u=c,f=a.breakpoints.values[u];return f!==0&&(l[a.breakpoints.up(u)]={maxWidth:`${f}${a.breakpoints.unit}`}),l},{}),({theme:a,ownerState:s})=>S({},s.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},s.maxWidth&&s.maxWidth!=="xs"&&{[a.breakpoints.up(s.maxWidth)]:{maxWidth:`${a.breakpoints.values[s.maxWidth]}${a.breakpoints.unit}`}}));return p.forwardRef(function(s,l){const c=n(s),{className:u,component:f="div",disableGutters:h=!1,fixed:w=!1,maxWidth:y="lg"}=c,x=se(c,K$),C=S({},c,{component:f,disableGutters:h,fixed:w,maxWidth:y}),v=J$(C,r);return d.jsx(o,S({as:f,ownerState:C,className:le(v.root,u),ref:l},x))})}const e4=["component","direction","spacing","divider","children","className","useFlexGap"],t4=Zi(),n4=fw("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function r4(e){return rm({props:e,name:"MuiStack",defaultTheme:t4})}function o4(e,t){const n=p.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],a4=({ownerState:e,theme:t})=>{let n=S({display:"flex",flexDirection:"column"},or({theme:t},qd({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=Qh(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),i=qd({values:e.direction,base:o}),a=qd({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,c,u)=>{if(!i[l]){const h=c>0?i[u[c-1]]:"column";i[l]=h}}),n=Qt(n,or({theme:t},a,(l,c)=>e.useFlexGap?{gap:Uo(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${i4(c?i[c]:e.direction)}`]:Uo(r,l)}}))}return n=uT(t.breakpoints,n),n};function s4(e={}){const{createStyledComponent:t=n4,useThemeProps:n=r4,componentName:r="MuiStack"}=e,o=()=>Se({root:["root"]},l=>be(r,l),{}),i=t(a4);return p.forwardRef(function(l,c){const u=n(l),f=$u(u),{component:h="div",direction:w="column",spacing:y=0,divider:x,children:C,className:v,useFlexGap:m=!1}=f,b=se(f,e4),R={direction:w,spacing:y,useFlexGap:m},k=o();return d.jsx(i,S({as:h,ownerState:R,ref:c,className:le(k.root,v)},b,{children:x?o4(C,x):C}))})}function l4(e,t){return S({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var xt={},xw={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(xw);var Te=xw.exports;const c4=Lr(QP),u4=Lr(k$);var bw=Te;Object.defineProperty(xt,"__esModule",{value:!0});var Fe=xt.alpha=Rw;xt.blend=S4;xt.colorChannel=void 0;var Rc=xt.darken=am;xt.decomposeColor=Fn;var d4=xt.emphasize=kw,f4=xt.getContrastRatio=v4;xt.getLuminance=Pc;xt.hexToRgb=ww;xt.hslToRgb=Cw;var kc=xt.lighten=sm;xt.private_safeAlpha=y4;xt.private_safeColorChannel=void 0;xt.private_safeDarken=x4;xt.private_safeEmphasize=w4;xt.private_safeLighten=b4;xt.recomposeColor=ta;xt.rgbToHex=g4;var w0=bw(c4),p4=bw(u4);function im(e,t=0,n=1){return(0,p4.default)(e,t,n)}function ww(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function h4(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Fn(e){if(e.type)return e;if(e.charAt(0)==="#")return Fn(ww(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,w0.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,w0.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const Sw=e=>{const t=Fn(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};xt.colorChannel=Sw;const m4=(e,t)=>{try{return Sw(e)}catch{return e}};xt.private_safeColorChannel=m4;function ta(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function g4(e){if(e.indexOf("#")===0)return e;const{values:t}=Fn(e);return`#${t.map((n,r)=>h4(r===3?Math.round(255*n):n)).join("")}`}function Cw(e){e=Fn(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(c,u=(c+n/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),ta({type:s,values:l})}function Pc(e){e=Fn(e);let t=e.type==="hsl"||e.type==="hsla"?Fn(Cw(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function v4(e,t){const n=Pc(e),r=Pc(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Rw(e,t){return e=Fn(e),t=im(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ta(e)}function y4(e,t,n){try{return Rw(e,t)}catch{return e}}function am(e,t){if(e=Fn(e),t=im(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return ta(e)}function x4(e,t,n){try{return am(e,t)}catch{return e}}function sm(e,t){if(e=Fn(e),t=im(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return ta(e)}function b4(e,t,n){try{return sm(e,t)}catch{return e}}function kw(e,t=.15){return Pc(e)>.5?am(e,t):sm(e,t)}function w4(e,t,n){try{return kw(e,t)}catch{return e}}function S4(e,t,n,r=1){const o=(l,c)=>Math.round((l**(1/r)*(1-n)+c**(1/r)*n)**r),i=Fn(e),a=Fn(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return ta({type:"rgb",values:s})}const C4=["mode","contrastThreshold","tonalOffset"],S0={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:fs.white,default:fs.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Yd={text:{primary:fs.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:fs.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 C0(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=kc(e.main,o):t==="dark"&&(e.dark=Rc(e.main,i)))}function R4(e="light"){return e==="dark"?{main:Jo[200],light:Jo[50],dark:Jo[400]}:{main:Jo[700],light:Jo[400],dark:Jo[800]}}function k4(e="light"){return e==="dark"?{main:Qo[200],light:Qo[50],dark:Qo[400]}:{main:Qo[500],light:Qo[300],dark:Qo[700]}}function P4(e="light"){return e==="dark"?{main:Xo[500],light:Xo[300],dark:Xo[700]}:{main:Xo[700],light:Xo[400],dark:Xo[800]}}function E4(e="light"){return e==="dark"?{main:Zo[400],light:Zo[300],dark:Zo[700]}:{main:Zo[700],light:Zo[500],dark:Zo[900]}}function T4(e="light"){return e==="dark"?{main:ei[400],light:ei[300],dark:ei[700]}:{main:ei[800],light:ei[500],dark:ei[900]}}function $4(e="light"){return e==="dark"?{main:ga[400],light:ga[300],dark:ga[700]}:{main:"#ed6c02",light:ga[500],dark:ga[900]}}function M4(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=se(e,C4),i=e.primary||R4(t),a=e.secondary||k4(t),s=e.error||P4(t),l=e.info||E4(t),c=e.success||T4(t),u=e.warning||$4(t);function f(x){return f4(x,Yd.text.primary)>=n?Yd.text.primary:S0.text.primary}const h=({color:x,name:C,mainShade:v=500,lightShade:m=300,darkShade:b=700})=>{if(x=S({},x),!x.main&&x[v]&&(x.main=x[v]),!x.hasOwnProperty("main"))throw new Error(Bo(11,C?` (${C})`:"",v));if(typeof x.main!="string")throw new Error(Bo(12,C?` (${C})`:"",JSON.stringify(x.main)));return C0(x,"light",m,r),C0(x,"dark",b,r),x.contrastText||(x.contrastText=f(x.main)),x},w={dark:Yd,light:S0};return Qt(S({common:S({},fs),mode:t,primary:h({color:i,name:"primary"}),secondary:h({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:s,name:"error"}),warning:h({color:u,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:c,name:"success"}),grey:XP,contrastThreshold:n,getContrastText:f,augmentColor:h,tonalOffset:r},w[t]),o)}const j4=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function O4(e){return Math.round(e*1e5)/1e5}const R0={textTransform:"uppercase"},k0='"Roboto", "Helvetica", "Arial", sans-serif';function I4(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=k0,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:f}=n,h=se(n,j4),w=o/14,y=f||(v=>`${v/c*w}rem`),x=(v,m,b,R,k)=>S({fontFamily:r,fontWeight:v,fontSize:y(m),lineHeight:b},r===k0?{letterSpacing:`${O4(R/m)}em`}:{},k,u),C={h1:x(i,96,1.167,-1.5),h2:x(i,60,1.2,-.5),h3:x(a,48,1.167,0),h4:x(a,34,1.235,.25),h5:x(a,24,1.334,0),h6:x(s,20,1.6,.15),subtitle1:x(a,16,1.75,.15),subtitle2:x(s,14,1.57,.1),body1:x(a,16,1.5,.15),body2:x(a,14,1.43,.15),button:x(s,14,1.75,.4,R0),caption:x(a,12,1.66,.4),overline:x(a,12,2.66,1,R0),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Qt(S({htmlFontSize:c,pxToRem:y,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},C),h,{clone:!1})}const _4=.2,L4=.14,A4=.12;function ot(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${_4})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${L4})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${A4})`].join(",")}const N4=["none",ot(0,2,1,-1,0,1,1,0,0,1,3,0),ot(0,3,1,-2,0,2,2,0,0,1,5,0),ot(0,3,3,-2,0,3,4,0,0,1,8,0),ot(0,2,4,-1,0,4,5,0,0,1,10,0),ot(0,3,5,-1,0,5,8,0,0,1,14,0),ot(0,3,5,-1,0,6,10,0,0,1,18,0),ot(0,4,5,-2,0,7,10,1,0,2,16,1),ot(0,5,5,-3,0,8,10,1,0,3,14,2),ot(0,5,6,-3,0,9,12,1,0,3,16,2),ot(0,6,6,-3,0,10,14,1,0,4,18,3),ot(0,6,7,-4,0,11,15,1,0,4,20,3),ot(0,7,8,-4,0,12,17,2,0,5,22,4),ot(0,7,8,-4,0,13,19,2,0,5,24,4),ot(0,7,9,-4,0,14,21,2,0,5,26,4),ot(0,8,9,-5,0,15,22,2,0,6,28,5),ot(0,8,10,-5,0,16,24,2,0,6,30,5),ot(0,8,11,-5,0,17,26,2,0,6,32,5),ot(0,9,11,-5,0,18,28,2,0,7,34,6),ot(0,9,12,-6,0,19,29,2,0,7,36,6),ot(0,10,13,-6,0,20,31,3,0,8,38,7),ot(0,10,13,-6,0,21,33,3,0,8,40,7),ot(0,10,14,-6,0,22,35,3,0,8,42,7),ot(0,11,14,-7,0,23,36,3,0,9,44,8),ot(0,11,15,-7,0,24,38,3,0,9,46,8)],D4=["duration","easing","delay"],z4={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)"},B4={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function P0(e){return`${Math.round(e)}ms`}function F4(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function U4(e){const t=S({},z4,e.easing),n=S({},B4,e.duration);return S({getAutoHeightDuration:F4,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0}=i;return se(i,D4),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof a=="string"?a:P0(a)} ${s} ${typeof l=="string"?l:P0(l)}`).join(",")}},e,{easing:t,duration:n})}const W4={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},H4=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Ns(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=se(e,H4);if(e.vars)throw new Error(Bo(18));const s=M4(r),l=Zi(e);let c=Qt(l,{mixins:l4(l.breakpoints,n),palette:s,shadows:N4.slice(),typography:I4(s,i),transitions:U4(o),zIndex:S({},W4)});return c=Qt(c,a),c=t.reduce((u,f)=>Qt(u,f),c),c.unstable_sxConfig=S({},Is,a==null?void 0:a.unstable_sxConfig),c.unstable_sx=function(f){return Ji({sx:f,theme:this})},c}const Fu=Ns();function mo(){const e=Tu(Fu);return e[Fo]||e}function Re({props:e,name:t}){return rm({props:e,name:t,defaultTheme:Fu,themeId:Fo})}var Ds={},Xd={exports:{}},E0;function V4(){return E0||(E0=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(r.indexOf(i)>=0)continue;o[i]=n[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Xd)),Xd.exports}const Pw=Lr(iT),q4=Lr(aT),G4=Lr(fT),K4=Lr(p$),Y4=Lr(ZT),X4=Lr(i$);var na=Te;Object.defineProperty(Ds,"__esModule",{value:!0});var Q4=Ds.default=u5;Ds.shouldForwardProp=Fl;Ds.systemDefaultTheme=void 0;var Tn=na(qb()),wp=na(V4()),T0=o5(Pw),J4=q4;na(G4);na(K4);var Z4=na(Y4),e5=na(X4);const t5=["ownerState"],n5=["variants"],r5=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Ew(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Ew=function(r){return r?n:t})(e)}function o5(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Ew(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function i5(e){return Object.keys(e).length===0}function a5(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Fl(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const s5=Ds.systemDefaultTheme=(0,Z4.default)(),l5=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function fl({defaultTheme:e,theme:t,themeId:n}){return i5(t)?e:t[n]||t}function c5(e){return e?(t,n)=>n[e]:null}function Ul(e,t){let{ownerState:n}=t,r=(0,wp.default)(t,t5);const o=typeof e=="function"?e((0,Tn.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Ul(i,(0,Tn.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let s=(0,wp.default)(o,n5);return i.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props((0,Tn.default)({ownerState:n},r,n)):Object.keys(l.props).forEach(u=>{(n==null?void 0:n[u])!==l.props[u]&&r[u]!==l.props[u]&&(c=!1)}),c&&(Array.isArray(s)||(s=[s]),s.push(typeof l.style=="function"?l.style((0,Tn.default)({ownerState:n},r,n)):l.style))}),s}return o}function u5(e={}){const{themeId:t,defaultTheme:n=s5,rootShouldForwardProp:r=Fl,slotShouldForwardProp:o=Fl}=e,i=a=>(0,e5.default)((0,Tn.default)({},a,{theme:fl((0,Tn.default)({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,s={})=>{(0,T0.internal_processStyles)(a,k=>k.filter(T=>!(T!=null&&T.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:f,overridesResolver:h=c5(l5(c))}=s,w=(0,wp.default)(s,r5),y=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,x=f||!1;let C,v=Fl;c==="Root"||c==="root"?v=r:c?v=o:a5(a)&&(v=void 0);const m=(0,T0.default)(a,(0,Tn.default)({shouldForwardProp:v,label:C},w)),b=k=>typeof k=="function"&&k.__emotion_real!==k||(0,J4.isPlainObject)(k)?T=>Ul(k,(0,Tn.default)({},T,{theme:fl({theme:T.theme,defaultTheme:n,themeId:t})})):k,R=(k,...T)=>{let P=b(k);const j=T?T.map(b):[];l&&h&&j.push(F=>{const W=fl((0,Tn.default)({},F,{defaultTheme:n,themeId:t}));if(!W.components||!W.components[l]||!W.components[l].styleOverrides)return null;const U=W.components[l].styleOverrides,G={};return Object.entries(U).forEach(([ee,J])=>{G[ee]=Ul(J,(0,Tn.default)({},F,{theme:W}))}),h(F,G)}),l&&!y&&j.push(F=>{var W;const U=fl((0,Tn.default)({},F,{defaultTheme:n,themeId:t})),G=U==null||(W=U.components)==null||(W=W[l])==null?void 0:W.variants;return Ul({variants:G},(0,Tn.default)({},F,{theme:U}))}),x||j.push(i);const N=j.length-T.length;if(Array.isArray(k)&&N>0){const F=new Array(N).fill("");P=[...k,...F],P.raw=[...k.raw,...F]}const O=m(P,...j);return a.muiName&&(O.muiName=a.muiName),O};return m.withConfig&&(R.withConfig=m.withConfig),R}}function Tw(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ht=e=>Tw(e)&&e!=="classes",ie=Q4({themeId:Fo,defaultTheme:Fu,rootShouldForwardProp:Ht}),d5=["theme"];function lm(e){let{theme:t}=e,n=se(e,d5);const r=t[Fo];return d.jsx(G$,S({},n,{themeId:r?Fo:void 0,theme:r||t}))}const $0=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function f5(e){return be("MuiSvgIcon",e)}we("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const p5=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],h5=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Z(t)}`,`fontSize${Z(n)}`]};return Se(o,f5,r)},m5=ie("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Z(n.color)}`],t[`fontSize${Z(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,c,u,f,h,w,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(a=i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:(f=(h=(e.vars||e).palette)==null||(h=h[t.color])==null?void 0:h.main)!=null?f:{action:(w=(e.vars||e).palette)==null||(w=w.action)==null?void 0:w.active,disabled:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.disabled,inherit:void 0}[t.color]}}),Sp=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:f,viewBox:h="0 0 24 24"}=r,w=se(r,p5),y=p.isValidElement(o)&&o.type==="svg",x=S({},r,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:h,hasSvgAsChild:y}),C={};u||(C.viewBox=h);const v=h5(x);return d.jsxs(m5,S({as:s,className:le(v.root,i),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},C,w,y&&o.props,{ownerState:x,children:[y?o.props.children:o,f?d.jsx("title",{children:f}):null]}))});Sp.muiName="SvgIcon";function Vt(e,t){function n(r,o){return d.jsx(Sp,S({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=Sp.muiName,p.memo(p.forwardRef(n))}const g5={configure:e=>{Zh.configure(e)}},v5=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Z,createChainedFunction:xp,createSvgIcon:Vt,debounce:ea,deprecatedPropType:P$,isMuiElement:Fa,ownerDocument:St,ownerWindow:Bn,requirePropFactory:E$,setRef:Cc,unstable_ClassNameGenerator:g5,unstable_useEnhancedEffect:Sn,unstable_useId:_s,unsupportedProp:$$,useControlled:gs,useEventCallback:Yt,useForkRef:lt,useIsFocusVisible:om},Symbol.toStringTag,{value:"Module"}));var Ke={};/** + */var em=Symbol.for("react.element"),tm=Symbol.for("react.portal"),$u=Symbol.for("react.fragment"),Mu=Symbol.for("react.strict_mode"),ju=Symbol.for("react.profiler"),Ou=Symbol.for("react.provider"),Iu=Symbol.for("react.context"),s$=Symbol.for("react.server_context"),_u=Symbol.for("react.forward_ref"),Lu=Symbol.for("react.suspense"),Au=Symbol.for("react.suspense_list"),Nu=Symbol.for("react.memo"),Du=Symbol.for("react.lazy"),l$=Symbol.for("react.offscreen"),lw;lw=Symbol.for("react.module.reference");function Vn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case em:switch(e=e.type,e){case $u:case ju:case Mu:case Lu:case Au:return e;default:switch(e=e&&e.$$typeof,e){case s$:case Iu:case _u:case Du:case Nu:case Ou:return e;default:return t}}case tm:return t}}}qe.ContextConsumer=Iu;qe.ContextProvider=Ou;qe.Element=em;qe.ForwardRef=_u;qe.Fragment=$u;qe.Lazy=Du;qe.Memo=Nu;qe.Portal=tm;qe.Profiler=ju;qe.StrictMode=Mu;qe.Suspense=Lu;qe.SuspenseList=Au;qe.isAsyncMode=function(){return!1};qe.isConcurrentMode=function(){return!1};qe.isContextConsumer=function(e){return Vn(e)===Iu};qe.isContextProvider=function(e){return Vn(e)===Ou};qe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===em};qe.isForwardRef=function(e){return Vn(e)===_u};qe.isFragment=function(e){return Vn(e)===$u};qe.isLazy=function(e){return Vn(e)===Du};qe.isMemo=function(e){return Vn(e)===Nu};qe.isPortal=function(e){return Vn(e)===tm};qe.isProfiler=function(e){return Vn(e)===ju};qe.isStrictMode=function(e){return Vn(e)===Mu};qe.isSuspense=function(e){return Vn(e)===Lu};qe.isSuspenseList=function(e){return Vn(e)===Au};qe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===$u||e===ju||e===Mu||e===Lu||e===Au||e===l$||typeof e=="object"&&e!==null&&(e.$$typeof===Du||e.$$typeof===Nu||e.$$typeof===Ou||e.$$typeof===Iu||e.$$typeof===_u||e.$$typeof===lw||e.getModuleId!==void 0)};qe.typeOf=Vn;sw.exports=qe;var h0=sw.exports;const c$=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function cw(e){const t=`${e}`.match(c$);return t&&t[1]||""}function uw(e,t=""){return e.displayName||e.name||cw(e)||t}function m0(e,t,n){const r=uw(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function u$(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return uw(e,"Component");if(typeof e=="object")switch(e.$$typeof){case h0.ForwardRef:return m0(e,e.render,"ForwardRef");case h0.Memo:return m0(e,e.type,"memo");default:return}}}const d$=Object.freeze(Object.defineProperty({__proto__:null,default:u$,getFunctionName:cw},Symbol.toStringTag,{value:"Module"})),f$=["ownerState"],p$=["variants"],h$=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function m$(e){return Object.keys(e).length===0}function g$(e){return typeof e=="string"&&e.charCodeAt(0)>96}function qd(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const v$=Zi(),y$=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function dl({defaultTheme:e,theme:t,themeId:n}){return m$(t)?e:t[n]||t}function x$(e){return e?(t,n)=>n[e]:null}function Bl(e,t){let{ownerState:n}=t,r=se(t,f$);const o=typeof e=="function"?e(S({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Bl(i,S({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let s=se(o,p$);return i.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props(S({ownerState:n},r,n)):Object.keys(l.props).forEach(u=>{(n==null?void 0:n[u])!==l.props[u]&&r[u]!==l.props[u]&&(c=!1)}),c&&(Array.isArray(s)||(s=[s]),s.push(typeof l.style=="function"?l.style(S({ownerState:n},r,n)):l.style))}),s}return o}function b$(e={}){const{themeId:t,defaultTheme:n=v$,rootShouldForwardProp:r=qd,slotShouldForwardProp:o=qd}=e,i=a=>Ji(S({},a,{theme:dl(S({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,s={})=>{Xb(a,R=>R.filter(T=>!(T!=null&&T.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:f,overridesResolver:h=x$(y$(c))}=s,w=se(s,h$),y=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,x=f||!1;let C,v=qd;c==="Root"||c==="root"?v=r:c?v=o:g$(a)&&(v=void 0);const m=Gh(a,S({shouldForwardProp:v,label:C},w)),b=R=>typeof R=="function"&&R.__emotion_real!==R||kr(R)?T=>Bl(R,S({},T,{theme:dl({theme:T.theme,defaultTheme:n,themeId:t})})):R,k=(R,...T)=>{let P=b(R);const j=T?T.map(b):[];l&&h&&j.push(F=>{const H=dl(S({},F,{defaultTheme:n,themeId:t}));if(!H.components||!H.components[l]||!H.components[l].styleOverrides)return null;const U=H.components[l].styleOverrides,q={};return Object.entries(U).forEach(([ee,J])=>{q[ee]=Bl(J,S({},F,{theme:H}))}),h(F,q)}),l&&!y&&j.push(F=>{var H;const U=dl(S({},F,{defaultTheme:n,themeId:t})),q=U==null||(H=U.components)==null||(H=H[l])==null?void 0:H.variants;return Bl({variants:q},S({},F,{theme:U}))}),x||j.push(i);const N=j.length-T.length;if(Array.isArray(R)&&N>0){const F=new Array(N).fill("");P=[...R,...F],P.raw=[...R.raw,...F]}const I=m(P,...j);return a.muiName&&(I.muiName=a.muiName),I};return m.withConfig&&(k.withConfig=m.withConfig),k}}const dw=b$();function nm(e,t){const n=S({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=S({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=S({},i),Object.keys(o).forEach(a=>{n[r][a]=nm(o[a],i[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function w$(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:nm(t.components[n].defaultProps,r)}function rm({props:e,name:t,defaultTheme:n,themeId:r}){let o=Eu(n);return r&&(o=o[r]||o),w$({theme:o,name:t,props:e})}const Sn=typeof window<"u"?p.useLayoutEffect:p.useEffect;function S$(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const C$=Object.freeze(Object.defineProperty({__proto__:null,default:S$},Symbol.toStringTag,{value:"Module"}));function yp(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function ea(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function k$(e,t){return()=>null}function Fa(e,t){var n,r;return p.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function St(e){return e&&e.ownerDocument||document}function Bn(e){return St(e).defaultView||window}function R$(e,t){return()=>null}function Cc(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let g0=0;function P$(e){const[t,n]=p.useState(e),r=e||t;return p.useEffect(()=>{t==null&&(g0+=1,n(`mui-${g0}`))},[t]),r}const v0=Vl.useId;function _s(e){if(v0!==void 0){const t=v0();return e??t}return P$(e)}function E$(e,t,n,r,o){return null}function gs({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=p.useRef(e!==void 0),[i,a]=p.useState(t),s=o?e:i,l=p.useCallback(c=>{o||a(c)},[]);return[s,l]}function Yt(e){const t=p.useRef(e);return Sn(()=>{t.current=e}),p.useRef((...n)=>(0,t.current)(...n)).current}function lt(...e){return p.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Cc(n,t)})},e)}const y0={};function T$(e,t){const n=p.useRef(y0);return n.current===y0&&(n.current=e(t)),n}const $$=[];function M$(e){p.useEffect(e,$$)}class Ls{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ls}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function To(){const e=T$(Ls.create).current;return M$(e.disposeEffect),e}let zu=!0,xp=!1;const j$=new Ls,O$={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 I$(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&O$[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function _$(e){e.metaKey||e.altKey||e.ctrlKey||(zu=!0)}function Gd(){zu=!1}function L$(){this.visibilityState==="hidden"&&xp&&(zu=!0)}function A$(e){e.addEventListener("keydown",_$,!0),e.addEventListener("mousedown",Gd,!0),e.addEventListener("pointerdown",Gd,!0),e.addEventListener("touchstart",Gd,!0),e.addEventListener("visibilitychange",L$,!0)}function N$(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return zu||I$(t)}function om(){const e=p.useCallback(o=>{o!=null&&A$(o.ownerDocument)},[]),t=p.useRef(!1);function n(){return t.current?(xp=!0,j$.start(100,()=>{xp=!1}),t.current=!1,!0):!1}function r(o){return N$(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function fw(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let ti;function pw(){if(ti)return ti;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),ti="reverse",e.scrollLeft>0?ti="default":(e.scrollLeft=1,e.scrollLeft===0&&(ti="negative")),document.body.removeChild(e),ti}function D$(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(pw()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const hw=e=>{const t=p.useRef({});return p.useEffect(()=>{t.current=e}),t.current};function Se(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,a)=>{if(a){const s=t(a);s!==""&&i.push(s),n&&n[a]&&i.push(n[a])}return i},[]).join(" ")}),r}const mw=p.createContext(null);function gw(){return p.useContext(mw)}const z$=typeof Symbol=="function"&&Symbol.for,B$=z$?Symbol.for("mui.nested"):"__THEME_NESTED__";function F$(e,t){return typeof t=="function"?t(e):S({},e,t)}function U$(e){const{children:t,theme:n}=e,r=gw(),o=p.useMemo(()=>{const i=r===null?n:F$(r,n);return i!=null&&(i[B$]=r!==null),i},[n,r]);return d.jsx(mw.Provider,{value:o,children:t})}const W$=["value"],vw=p.createContext();function H$(e){let{value:t}=e,n=se(e,W$);return d.jsx(vw.Provider,S({value:t??!0},n))}const As=()=>{const e=p.useContext(vw);return e??!1},x0={};function b0(e,t,n,r=!1){return p.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),a=e?S({},t,{[e]:i}):i;return r?()=>a:a}return e?S({},t,{[e]:n}):S({},t,n)},[e,t,n,r])}function V$(e){const{children:t,theme:n,themeId:r}=e,o=ow(x0),i=gw()||x0,a=b0(r,o,n),s=b0(r,i,n,!0),l=a.direction==="rtl";return d.jsx(U$,{theme:s,children:d.jsx(js.Provider,{value:a,children:d.jsx(H$,{value:l,children:t})})})}const q$=["className","component","disableGutters","fixed","maxWidth","classes"],G$=Zi(),K$=dw("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Z(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),Y$=e=>rm({props:e,name:"MuiContainer",defaultTheme:G$}),X$=(e,t)=>{const n=l=>be(t,l),{classes:r,fixed:o,disableGutters:i,maxWidth:a}=e,s={root:["root",a&&`maxWidth${Z(String(a))}`,o&&"fixed",i&&"disableGutters"]};return Se(s,n,r)};function Q$(e={}){const{createStyledComponent:t=K$,useThemeProps:n=Y$,componentName:r="MuiContainer"}=e,o=t(({theme:a,ownerState:s})=>S({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!s.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}),({theme:a,ownerState:s})=>s.fixed&&Object.keys(a.breakpoints.values).reduce((l,c)=>{const u=c,f=a.breakpoints.values[u];return f!==0&&(l[a.breakpoints.up(u)]={maxWidth:`${f}${a.breakpoints.unit}`}),l},{}),({theme:a,ownerState:s})=>S({},s.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},s.maxWidth&&s.maxWidth!=="xs"&&{[a.breakpoints.up(s.maxWidth)]:{maxWidth:`${a.breakpoints.values[s.maxWidth]}${a.breakpoints.unit}`}}));return p.forwardRef(function(s,l){const c=n(s),{className:u,component:f="div",disableGutters:h=!1,fixed:w=!1,maxWidth:y="lg"}=c,x=se(c,q$),C=S({},c,{component:f,disableGutters:h,fixed:w,maxWidth:y}),v=X$(C,r);return d.jsx(o,S({as:f,ownerState:C,className:le(v.root,u),ref:l},x))})}const J$=["component","direction","spacing","divider","children","className","useFlexGap"],Z$=Zi(),e4=dw("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function t4(e){return rm({props:e,name:"MuiStack",defaultTheme:Z$})}function n4(e,t){const n=p.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],o4=({ownerState:e,theme:t})=>{let n=S({display:"flex",flexDirection:"column"},or({theme:t},Vd({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=Qh(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),i=Vd({values:e.direction,base:o}),a=Vd({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,c,u)=>{if(!i[l]){const h=c>0?i[u[c-1]]:"column";i[l]=h}}),n=Qt(n,or({theme:t},a,(l,c)=>e.useFlexGap?{gap:Uo(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${r4(c?i[c]:e.direction)}`]:Uo(r,l)}}))}return n=lT(t.breakpoints,n),n};function i4(e={}){const{createStyledComponent:t=e4,useThemeProps:n=t4,componentName:r="MuiStack"}=e,o=()=>Se({root:["root"]},l=>be(r,l),{}),i=t(o4);return p.forwardRef(function(l,c){const u=n(l),f=Tu(u),{component:h="div",direction:w="column",spacing:y=0,divider:x,children:C,className:v,useFlexGap:m=!1}=f,b=se(f,J$),k={direction:w,spacing:y,useFlexGap:m},R=o();return d.jsx(i,S({as:h,ownerState:k,ref:c,className:le(R.root,v)},b,{children:x?n4(C,x):C}))})}function a4(e,t){return S({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var xt={},yw={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(yw);var Te=yw.exports;const s4=Lr(YP),l4=Lr(C$);var xw=Te;Object.defineProperty(xt,"__esModule",{value:!0});var Fe=xt.alpha=Cw;xt.blend=b4;xt.colorChannel=void 0;var kc=xt.darken=am;xt.decomposeColor=Fn;var c4=xt.emphasize=kw,u4=xt.getContrastRatio=m4;xt.getLuminance=Pc;xt.hexToRgb=bw;xt.hslToRgb=Sw;var Rc=xt.lighten=sm;xt.private_safeAlpha=g4;xt.private_safeColorChannel=void 0;xt.private_safeDarken=v4;xt.private_safeEmphasize=x4;xt.private_safeLighten=y4;xt.recomposeColor=ta;xt.rgbToHex=h4;var w0=xw(s4),d4=xw(l4);function im(e,t=0,n=1){return(0,d4.default)(e,t,n)}function bw(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function f4(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Fn(e){if(e.type)return e;if(e.charAt(0)==="#")return Fn(bw(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,w0.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,w0.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const ww=e=>{const t=Fn(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};xt.colorChannel=ww;const p4=(e,t)=>{try{return ww(e)}catch{return e}};xt.private_safeColorChannel=p4;function ta(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function h4(e){if(e.indexOf("#")===0)return e;const{values:t}=Fn(e);return`#${t.map((n,r)=>f4(r===3?Math.round(255*n):n)).join("")}`}function Sw(e){e=Fn(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(c,u=(c+n/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),ta({type:s,values:l})}function Pc(e){e=Fn(e);let t=e.type==="hsl"||e.type==="hsla"?Fn(Sw(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function m4(e,t){const n=Pc(e),r=Pc(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Cw(e,t){return e=Fn(e),t=im(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ta(e)}function g4(e,t,n){try{return Cw(e,t)}catch{return e}}function am(e,t){if(e=Fn(e),t=im(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return ta(e)}function v4(e,t,n){try{return am(e,t)}catch{return e}}function sm(e,t){if(e=Fn(e),t=im(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return ta(e)}function y4(e,t,n){try{return sm(e,t)}catch{return e}}function kw(e,t=.15){return Pc(e)>.5?am(e,t):sm(e,t)}function x4(e,t,n){try{return kw(e,t)}catch{return e}}function b4(e,t,n,r=1){const o=(l,c)=>Math.round((l**(1/r)*(1-n)+c**(1/r)*n)**r),i=Fn(e),a=Fn(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return ta({type:"rgb",values:s})}const w4=["mode","contrastThreshold","tonalOffset"],S0={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:fs.white,default:fs.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Kd={text:{primary:fs.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:fs.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 C0(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Rc(e.main,o):t==="dark"&&(e.dark=kc(e.main,i)))}function S4(e="light"){return e==="dark"?{main:Jo[200],light:Jo[50],dark:Jo[400]}:{main:Jo[700],light:Jo[400],dark:Jo[800]}}function C4(e="light"){return e==="dark"?{main:Qo[200],light:Qo[50],dark:Qo[400]}:{main:Qo[500],light:Qo[300],dark:Qo[700]}}function k4(e="light"){return e==="dark"?{main:Xo[500],light:Xo[300],dark:Xo[700]}:{main:Xo[700],light:Xo[400],dark:Xo[800]}}function R4(e="light"){return e==="dark"?{main:Zo[400],light:Zo[300],dark:Zo[700]}:{main:Zo[700],light:Zo[500],dark:Zo[900]}}function P4(e="light"){return e==="dark"?{main:ei[400],light:ei[300],dark:ei[700]}:{main:ei[800],light:ei[500],dark:ei[900]}}function E4(e="light"){return e==="dark"?{main:ga[400],light:ga[300],dark:ga[700]}:{main:"#ed6c02",light:ga[500],dark:ga[900]}}function T4(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=se(e,w4),i=e.primary||S4(t),a=e.secondary||C4(t),s=e.error||k4(t),l=e.info||R4(t),c=e.success||P4(t),u=e.warning||E4(t);function f(x){return u4(x,Kd.text.primary)>=n?Kd.text.primary:S0.text.primary}const h=({color:x,name:C,mainShade:v=500,lightShade:m=300,darkShade:b=700})=>{if(x=S({},x),!x.main&&x[v]&&(x.main=x[v]),!x.hasOwnProperty("main"))throw new Error(Bo(11,C?` (${C})`:"",v));if(typeof x.main!="string")throw new Error(Bo(12,C?` (${C})`:"",JSON.stringify(x.main)));return C0(x,"light",m,r),C0(x,"dark",b,r),x.contrastText||(x.contrastText=f(x.main)),x},w={dark:Kd,light:S0};return Qt(S({common:S({},fs),mode:t,primary:h({color:i,name:"primary"}),secondary:h({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:s,name:"error"}),warning:h({color:u,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:c,name:"success"}),grey:KP,contrastThreshold:n,getContrastText:f,augmentColor:h,tonalOffset:r},w[t]),o)}const $4=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function M4(e){return Math.round(e*1e5)/1e5}const k0={textTransform:"uppercase"},R0='"Roboto", "Helvetica", "Arial", sans-serif';function j4(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=R0,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:f}=n,h=se(n,$4),w=o/14,y=f||(v=>`${v/c*w}rem`),x=(v,m,b,k,R)=>S({fontFamily:r,fontWeight:v,fontSize:y(m),lineHeight:b},r===R0?{letterSpacing:`${M4(k/m)}em`}:{},R,u),C={h1:x(i,96,1.167,-1.5),h2:x(i,60,1.2,-.5),h3:x(a,48,1.167,0),h4:x(a,34,1.235,.25),h5:x(a,24,1.334,0),h6:x(s,20,1.6,.15),subtitle1:x(a,16,1.75,.15),subtitle2:x(s,14,1.57,.1),body1:x(a,16,1.5,.15),body2:x(a,14,1.43,.15),button:x(s,14,1.75,.4,k0),caption:x(a,12,1.66,.4),overline:x(a,12,2.66,1,k0),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Qt(S({htmlFontSize:c,pxToRem:y,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},C),h,{clone:!1})}const O4=.2,I4=.14,_4=.12;function ot(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${O4})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${I4})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${_4})`].join(",")}const L4=["none",ot(0,2,1,-1,0,1,1,0,0,1,3,0),ot(0,3,1,-2,0,2,2,0,0,1,5,0),ot(0,3,3,-2,0,3,4,0,0,1,8,0),ot(0,2,4,-1,0,4,5,0,0,1,10,0),ot(0,3,5,-1,0,5,8,0,0,1,14,0),ot(0,3,5,-1,0,6,10,0,0,1,18,0),ot(0,4,5,-2,0,7,10,1,0,2,16,1),ot(0,5,5,-3,0,8,10,1,0,3,14,2),ot(0,5,6,-3,0,9,12,1,0,3,16,2),ot(0,6,6,-3,0,10,14,1,0,4,18,3),ot(0,6,7,-4,0,11,15,1,0,4,20,3),ot(0,7,8,-4,0,12,17,2,0,5,22,4),ot(0,7,8,-4,0,13,19,2,0,5,24,4),ot(0,7,9,-4,0,14,21,2,0,5,26,4),ot(0,8,9,-5,0,15,22,2,0,6,28,5),ot(0,8,10,-5,0,16,24,2,0,6,30,5),ot(0,8,11,-5,0,17,26,2,0,6,32,5),ot(0,9,11,-5,0,18,28,2,0,7,34,6),ot(0,9,12,-6,0,19,29,2,0,7,36,6),ot(0,10,13,-6,0,20,31,3,0,8,38,7),ot(0,10,13,-6,0,21,33,3,0,8,40,7),ot(0,10,14,-6,0,22,35,3,0,8,42,7),ot(0,11,14,-7,0,23,36,3,0,9,44,8),ot(0,11,15,-7,0,24,38,3,0,9,46,8)],A4=["duration","easing","delay"],N4={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)"},D4={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function P0(e){return`${Math.round(e)}ms`}function z4(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function B4(e){const t=S({},N4,e.easing),n=S({},D4,e.duration);return S({getAutoHeightDuration:z4,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0}=i;return se(i,A4),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof a=="string"?a:P0(a)} ${s} ${typeof l=="string"?l:P0(l)}`).join(",")}},e,{easing:t,duration:n})}const F4={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},U4=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Ns(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=se(e,U4);if(e.vars)throw new Error(Bo(18));const s=T4(r),l=Zi(e);let c=Qt(l,{mixins:a4(l.breakpoints,n),palette:s,shadows:L4.slice(),typography:j4(s,i),transitions:B4(o),zIndex:S({},F4)});return c=Qt(c,a),c=t.reduce((u,f)=>Qt(u,f),c),c.unstable_sxConfig=S({},Is,a==null?void 0:a.unstable_sxConfig),c.unstable_sx=function(f){return Ji({sx:f,theme:this})},c}const Bu=Ns();function mo(){const e=Eu(Bu);return e[Fo]||e}function ke({props:e,name:t}){return rm({props:e,name:t,defaultTheme:Bu,themeId:Fo})}var Ds={},Yd={exports:{}},E0;function W4(){return E0||(E0=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(r.indexOf(i)>=0)continue;o[i]=n[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Yd)),Yd.exports}const Rw=Lr(rT),H4=Lr(oT),V4=Lr(uT),q4=Lr(d$),G4=Lr(QT),K4=Lr(r$);var na=Te;Object.defineProperty(Ds,"__esModule",{value:!0});var Y4=Ds.default=l5;Ds.shouldForwardProp=Fl;Ds.systemDefaultTheme=void 0;var Tn=na(Vb()),bp=na(W4()),T0=n5(Rw),X4=H4;na(V4);na(q4);var Q4=na(G4),J4=na(K4);const Z4=["ownerState"],e5=["variants"],t5=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Pw(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Pw=function(r){return r?n:t})(e)}function n5(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Pw(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function r5(e){return Object.keys(e).length===0}function o5(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Fl(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const i5=Ds.systemDefaultTheme=(0,Q4.default)(),a5=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function fl({defaultTheme:e,theme:t,themeId:n}){return r5(t)?e:t[n]||t}function s5(e){return e?(t,n)=>n[e]:null}function Ul(e,t){let{ownerState:n}=t,r=(0,bp.default)(t,Z4);const o=typeof e=="function"?e((0,Tn.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Ul(i,(0,Tn.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let s=(0,bp.default)(o,e5);return i.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props((0,Tn.default)({ownerState:n},r,n)):Object.keys(l.props).forEach(u=>{(n==null?void 0:n[u])!==l.props[u]&&r[u]!==l.props[u]&&(c=!1)}),c&&(Array.isArray(s)||(s=[s]),s.push(typeof l.style=="function"?l.style((0,Tn.default)({ownerState:n},r,n)):l.style))}),s}return o}function l5(e={}){const{themeId:t,defaultTheme:n=i5,rootShouldForwardProp:r=Fl,slotShouldForwardProp:o=Fl}=e,i=a=>(0,J4.default)((0,Tn.default)({},a,{theme:fl((0,Tn.default)({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,s={})=>{(0,T0.internal_processStyles)(a,R=>R.filter(T=>!(T!=null&&T.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:f,overridesResolver:h=s5(a5(c))}=s,w=(0,bp.default)(s,t5),y=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,x=f||!1;let C,v=Fl;c==="Root"||c==="root"?v=r:c?v=o:o5(a)&&(v=void 0);const m=(0,T0.default)(a,(0,Tn.default)({shouldForwardProp:v,label:C},w)),b=R=>typeof R=="function"&&R.__emotion_real!==R||(0,X4.isPlainObject)(R)?T=>Ul(R,(0,Tn.default)({},T,{theme:fl({theme:T.theme,defaultTheme:n,themeId:t})})):R,k=(R,...T)=>{let P=b(R);const j=T?T.map(b):[];l&&h&&j.push(F=>{const H=fl((0,Tn.default)({},F,{defaultTheme:n,themeId:t}));if(!H.components||!H.components[l]||!H.components[l].styleOverrides)return null;const U=H.components[l].styleOverrides,q={};return Object.entries(U).forEach(([ee,J])=>{q[ee]=Ul(J,(0,Tn.default)({},F,{theme:H}))}),h(F,q)}),l&&!y&&j.push(F=>{var H;const U=fl((0,Tn.default)({},F,{defaultTheme:n,themeId:t})),q=U==null||(H=U.components)==null||(H=H[l])==null?void 0:H.variants;return Ul({variants:q},(0,Tn.default)({},F,{theme:U}))}),x||j.push(i);const N=j.length-T.length;if(Array.isArray(R)&&N>0){const F=new Array(N).fill("");P=[...R,...F],P.raw=[...R.raw,...F]}const I=m(P,...j);return a.muiName&&(I.muiName=a.muiName),I};return m.withConfig&&(k.withConfig=m.withConfig),k}}function Ew(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ht=e=>Ew(e)&&e!=="classes",ie=Y4({themeId:Fo,defaultTheme:Bu,rootShouldForwardProp:Ht}),c5=["theme"];function lm(e){let{theme:t}=e,n=se(e,c5);const r=t[Fo];return d.jsx(V$,S({},n,{themeId:r?Fo:void 0,theme:r||t}))}const $0=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function u5(e){return be("MuiSvgIcon",e)}we("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const d5=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],f5=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Z(t)}`,`fontSize${Z(n)}`]};return Se(o,u5,r)},p5=ie("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Z(n.color)}`],t[`fontSize${Z(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,c,u,f,h,w,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(a=i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:(f=(h=(e.vars||e).palette)==null||(h=h[t.color])==null?void 0:h.main)!=null?f:{action:(w=(e.vars||e).palette)==null||(w=w.action)==null?void 0:w.active,disabled:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.disabled,inherit:void 0}[t.color]}}),wp=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:f,viewBox:h="0 0 24 24"}=r,w=se(r,d5),y=p.isValidElement(o)&&o.type==="svg",x=S({},r,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:h,hasSvgAsChild:y}),C={};u||(C.viewBox=h);const v=f5(x);return d.jsxs(p5,S({as:s,className:le(v.root,i),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},C,w,y&&o.props,{ownerState:x,children:[y?o.props.children:o,f?d.jsx("title",{children:f}):null]}))});wp.muiName="SvgIcon";function Vt(e,t){function n(r,o){return d.jsx(wp,S({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=wp.muiName,p.memo(p.forwardRef(n))}const h5={configure:e=>{Zh.configure(e)}},m5=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Z,createChainedFunction:yp,createSvgIcon:Vt,debounce:ea,deprecatedPropType:k$,isMuiElement:Fa,ownerDocument:St,ownerWindow:Bn,requirePropFactory:R$,setRef:Cc,unstable_ClassNameGenerator:h5,unstable_useEnhancedEffect:Sn,unstable_useId:_s,unsupportedProp:E$,useControlled:gs,useEventCallback:Yt,useForkRef:lt,useIsFocusVisible:om},Symbol.toStringTag,{value:"Module"}));var Ke={};/** * @license React * react-is.production.min.js * @@ -92,7 +92,7 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var cm=Symbol.for("react.element"),um=Symbol.for("react.portal"),Uu=Symbol.for("react.fragment"),Wu=Symbol.for("react.strict_mode"),Hu=Symbol.for("react.profiler"),Vu=Symbol.for("react.provider"),qu=Symbol.for("react.context"),y5=Symbol.for("react.server_context"),Gu=Symbol.for("react.forward_ref"),Ku=Symbol.for("react.suspense"),Yu=Symbol.for("react.suspense_list"),Xu=Symbol.for("react.memo"),Qu=Symbol.for("react.lazy"),x5=Symbol.for("react.offscreen"),$w;$w=Symbol.for("react.module.reference");function qn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case cm:switch(e=e.type,e){case Uu:case Hu:case Wu:case Ku:case Yu:return e;default:switch(e=e&&e.$$typeof,e){case y5:case qu:case Gu:case Qu:case Xu:case Vu:return e;default:return t}}case um:return t}}}Ke.ContextConsumer=qu;Ke.ContextProvider=Vu;Ke.Element=cm;Ke.ForwardRef=Gu;Ke.Fragment=Uu;Ke.Lazy=Qu;Ke.Memo=Xu;Ke.Portal=um;Ke.Profiler=Hu;Ke.StrictMode=Wu;Ke.Suspense=Ku;Ke.SuspenseList=Yu;Ke.isAsyncMode=function(){return!1};Ke.isConcurrentMode=function(){return!1};Ke.isContextConsumer=function(e){return qn(e)===qu};Ke.isContextProvider=function(e){return qn(e)===Vu};Ke.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===cm};Ke.isForwardRef=function(e){return qn(e)===Gu};Ke.isFragment=function(e){return qn(e)===Uu};Ke.isLazy=function(e){return qn(e)===Qu};Ke.isMemo=function(e){return qn(e)===Xu};Ke.isPortal=function(e){return qn(e)===um};Ke.isProfiler=function(e){return qn(e)===Hu};Ke.isStrictMode=function(e){return qn(e)===Wu};Ke.isSuspense=function(e){return qn(e)===Ku};Ke.isSuspenseList=function(e){return qn(e)===Yu};Ke.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Uu||e===Hu||e===Wu||e===Ku||e===Yu||e===x5||typeof e=="object"&&e!==null&&(e.$$typeof===Qu||e.$$typeof===Xu||e.$$typeof===Vu||e.$$typeof===qu||e.$$typeof===Gu||e.$$typeof===$w||e.getModuleId!==void 0)};Ke.typeOf=qn;function Ju(e){return Re}function Cp(e,t){return Cp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Cp(e,t)}function Mw(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Cp(e,t)}const M0={disabled:!1},Ec=nn.createContext(null);var b5=function(t){return t.scrollTop},$a="unmounted",Co="exited",Ro="entering",ri="entered",Rp="exiting",ar=function(e){Mw(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,s=a&&!a.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?s?(l=Co,i.appearStatus=Ro):l=ri:r.unmountOnExit||r.mountOnEnter?l=$a:l=Co,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===$a?{status:Co}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==Ro&&a!==ri&&(i=Ro):(a===Ro||a===ri)&&(i=Rp)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,s;return i=a=s=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,s=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:s}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Ro){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:cl.findDOMNode(this);a&&b5(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Co&&this.setState({status:$a})},n.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[cl.findDOMNode(this),s],c=l[0],u=l[1],f=this.getTimeouts(),h=s?f.appear:f.enter;if(!o&&!a||M0.disabled){this.safeSetState({status:ri},function(){i.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Ro},function(){i.props.onEntering(c,u),i.onTransitionEnd(h,function(){i.safeSetState({status:ri},function(){i.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:cl.findDOMNode(this);if(!i||M0.disabled){this.safeSetState({status:Co},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Rp},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Co},function(){o.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,o(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:cl.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===$a)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=se(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return nn.createElement(Ec.Provider,{value:null},typeof a=="function"?a(o,s):nn.cloneElement(nn.Children.only(a),s))},t}(nn.Component);ar.contextType=Ec;ar.propTypes={};function ni(){}ar.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ni,onEntering:ni,onEntered:ni,onExit:ni,onExiting:ni,onExited:ni};ar.UNMOUNTED=$a;ar.EXITED=Co;ar.ENTERING=Ro;ar.ENTERED=ri;ar.EXITING=Rp;function w5(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dm(e,t){var n=function(i){return t&&p.isValidElement(i)?t(i):i},r=Object.create(null);return e&&p.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function S5(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,s={};for(var l in t){if(r[l])for(a=0;ae.scrollTop;function Ai(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:a.transitionDelay}}function E5(e){return be("MuiPaper",e)}we("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const T5=["className","component","elevation","square","variant"],$5=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Se(i,E5,o)},M5=ie("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return S({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&S({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Fe("#fff",$0(t.elevation))}, ${Fe("#fff",$0(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),En=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:a=1,square:s=!1,variant:l="elevation"}=r,c=se(r,T5),u=S({},r,{component:i,elevation:a,square:s,variant:l}),f=$5(u);return d.jsx(M5,S({as:i,ownerState:u,className:le(f.root,o),ref:n},c))});function Ni(e){return typeof e=="string"}function vi(e,t,n){return e===void 0||Ni(e)?t:S({},t,{ownerState:S({},t.ownerState,n)})}const j5={disableDefaultClasses:!1},O5=p.createContext(j5);function I5(e){const{disableDefaultClasses:t}=p.useContext(O5);return n=>t?"":e(n)}function Tc(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function jw(e,t,n){return typeof e=="function"?e(t,n):e}function j0(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Ow(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const w=le(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),y=S({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),x=S({},n,o,r);return w.length>0&&(x.className=w),Object.keys(y).length>0&&(x.style=y),{props:x,internalRef:void 0}}const a=Tc(S({},o,r)),s=j0(r),l=j0(o),c=t(a),u=le(c==null?void 0:c.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),f=S({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),h=S({},c,n,l,s);return u.length>0&&(h.className=u),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:c.ref}}const _5=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function fn(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=se(e,_5),s=i?{}:jw(r,o),{props:l,internalRef:c}=Ow(S({},a,{externalSlotProps:s})),u=lt(c,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return vi(n,S({},l,{ref:u}),o)}const L5=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],A5=["component","slots","slotProps"],N5=["component"];function kp(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,getSlotOwnerState:a,internalForwardedProps:s}=t,l=se(t,L5),{component:c,slots:u={[e]:void 0},slotProps:f={[e]:void 0}}=i,h=se(i,A5),w=u[e]||r,y=jw(f[e],o),x=Ow(S({className:n},l,{externalForwardedProps:e==="root"?h:void 0,externalSlotProps:y})),{props:{component:C},internalRef:v}=x,m=se(x.props,N5),b=lt(v,y==null?void 0:y.ref,t.ref),R=a?a(m):{},k=S({},o,R),T=e==="root"?C||c:C,P=vi(w,S({},e==="root"&&!c&&!u[e]&&s,e!=="root"&&!u[e]&&s,m,T&&{as:T},{ref:b}),k);return Object.keys(R).forEach(j=>{delete P[j]}),[w,P]}function D5(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,f]=p.useState(!1),h=le(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),w={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},y=le(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&f(!0),p.useEffect(()=>{if(!s&&l!=null){const x=setTimeout(l,c);return()=>{clearTimeout(x)}}},[l,s,c]),d.jsx("span",{className:h,style:w,children:d.jsx("span",{className:y})})}const $n=we("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),z5=["center","classes","className"];let Zu=e=>e,O0,I0,_0,L0;const Pp=550,B5=80,F5=Qi(O0||(O0=Zu` + */var cm=Symbol.for("react.element"),um=Symbol.for("react.portal"),Fu=Symbol.for("react.fragment"),Uu=Symbol.for("react.strict_mode"),Wu=Symbol.for("react.profiler"),Hu=Symbol.for("react.provider"),Vu=Symbol.for("react.context"),g5=Symbol.for("react.server_context"),qu=Symbol.for("react.forward_ref"),Gu=Symbol.for("react.suspense"),Ku=Symbol.for("react.suspense_list"),Yu=Symbol.for("react.memo"),Xu=Symbol.for("react.lazy"),v5=Symbol.for("react.offscreen"),Tw;Tw=Symbol.for("react.module.reference");function qn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case cm:switch(e=e.type,e){case Fu:case Wu:case Uu:case Gu:case Ku:return e;default:switch(e=e&&e.$$typeof,e){case g5:case Vu:case qu:case Xu:case Yu:case Hu:return e;default:return t}}case um:return t}}}Ke.ContextConsumer=Vu;Ke.ContextProvider=Hu;Ke.Element=cm;Ke.ForwardRef=qu;Ke.Fragment=Fu;Ke.Lazy=Xu;Ke.Memo=Yu;Ke.Portal=um;Ke.Profiler=Wu;Ke.StrictMode=Uu;Ke.Suspense=Gu;Ke.SuspenseList=Ku;Ke.isAsyncMode=function(){return!1};Ke.isConcurrentMode=function(){return!1};Ke.isContextConsumer=function(e){return qn(e)===Vu};Ke.isContextProvider=function(e){return qn(e)===Hu};Ke.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===cm};Ke.isForwardRef=function(e){return qn(e)===qu};Ke.isFragment=function(e){return qn(e)===Fu};Ke.isLazy=function(e){return qn(e)===Xu};Ke.isMemo=function(e){return qn(e)===Yu};Ke.isPortal=function(e){return qn(e)===um};Ke.isProfiler=function(e){return qn(e)===Wu};Ke.isStrictMode=function(e){return qn(e)===Uu};Ke.isSuspense=function(e){return qn(e)===Gu};Ke.isSuspenseList=function(e){return qn(e)===Ku};Ke.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Fu||e===Wu||e===Uu||e===Gu||e===Ku||e===v5||typeof e=="object"&&e!==null&&(e.$$typeof===Xu||e.$$typeof===Yu||e.$$typeof===Hu||e.$$typeof===Vu||e.$$typeof===qu||e.$$typeof===Tw||e.getModuleId!==void 0)};Ke.typeOf=qn;function Qu(e){return ke}function Sp(e,t){return Sp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Sp(e,t)}function $w(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Sp(e,t)}const M0={disabled:!1},Ec=nn.createContext(null);var y5=function(t){return t.scrollTop},$a="unmounted",Co="exited",ko="entering",ri="entered",Cp="exiting",ar=function(e){$w(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,s=a&&!a.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?s?(l=Co,i.appearStatus=ko):l=ri:r.unmountOnExit||r.mountOnEnter?l=$a:l=Co,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===$a?{status:Co}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==ko&&a!==ri&&(i=ko):(a===ko||a===ri)&&(i=Cp)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,s;return i=a=s=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,s=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:s}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===ko){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:cl.findDOMNode(this);a&&y5(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Co&&this.setState({status:$a})},n.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[cl.findDOMNode(this),s],c=l[0],u=l[1],f=this.getTimeouts(),h=s?f.appear:f.enter;if(!o&&!a||M0.disabled){this.safeSetState({status:ri},function(){i.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:ko},function(){i.props.onEntering(c,u),i.onTransitionEnd(h,function(){i.safeSetState({status:ri},function(){i.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:cl.findDOMNode(this);if(!i||M0.disabled){this.safeSetState({status:Co},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Cp},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Co},function(){o.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,o(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:cl.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===$a)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=se(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return nn.createElement(Ec.Provider,{value:null},typeof a=="function"?a(o,s):nn.cloneElement(nn.Children.only(a),s))},t}(nn.Component);ar.contextType=Ec;ar.propTypes={};function ni(){}ar.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ni,onEntering:ni,onEntered:ni,onExit:ni,onExiting:ni,onExited:ni};ar.UNMOUNTED=$a;ar.EXITED=Co;ar.ENTERING=ko;ar.ENTERED=ri;ar.EXITING=Cp;function x5(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dm(e,t){var n=function(i){return t&&p.isValidElement(i)?t(i):i},r=Object.create(null);return e&&p.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function b5(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,s={};for(var l in t){if(r[l])for(a=0;ae.scrollTop;function Ai(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:a.transitionDelay}}function R5(e){return be("MuiPaper",e)}we("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const P5=["className","component","elevation","square","variant"],E5=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Se(i,R5,o)},T5=ie("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return S({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&S({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Fe("#fff",$0(t.elevation))}, ${Fe("#fff",$0(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),En=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:a=1,square:s=!1,variant:l="elevation"}=r,c=se(r,P5),u=S({},r,{component:i,elevation:a,square:s,variant:l}),f=E5(u);return d.jsx(T5,S({as:i,ownerState:u,className:le(f.root,o),ref:n},c))});function Ni(e){return typeof e=="string"}function vi(e,t,n){return e===void 0||Ni(e)?t:S({},t,{ownerState:S({},t.ownerState,n)})}const $5={disableDefaultClasses:!1},M5=p.createContext($5);function j5(e){const{disableDefaultClasses:t}=p.useContext(M5);return n=>t?"":e(n)}function Tc(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Mw(e,t,n){return typeof e=="function"?e(t,n):e}function j0(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function jw(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const w=le(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),y=S({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),x=S({},n,o,r);return w.length>0&&(x.className=w),Object.keys(y).length>0&&(x.style=y),{props:x,internalRef:void 0}}const a=Tc(S({},o,r)),s=j0(r),l=j0(o),c=t(a),u=le(c==null?void 0:c.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),f=S({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),h=S({},c,n,l,s);return u.length>0&&(h.className=u),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:c.ref}}const O5=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function fn(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=se(e,O5),s=i?{}:Mw(r,o),{props:l,internalRef:c}=jw(S({},a,{externalSlotProps:s})),u=lt(c,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return vi(n,S({},l,{ref:u}),o)}const I5=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],_5=["component","slots","slotProps"],L5=["component"];function kp(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,getSlotOwnerState:a,internalForwardedProps:s}=t,l=se(t,I5),{component:c,slots:u={[e]:void 0},slotProps:f={[e]:void 0}}=i,h=se(i,_5),w=u[e]||r,y=Mw(f[e],o),x=jw(S({className:n},l,{externalForwardedProps:e==="root"?h:void 0,externalSlotProps:y})),{props:{component:C},internalRef:v}=x,m=se(x.props,L5),b=lt(v,y==null?void 0:y.ref,t.ref),k=a?a(m):{},R=S({},o,k),T=e==="root"?C||c:C,P=vi(w,S({},e==="root"&&!c&&!u[e]&&s,e!=="root"&&!u[e]&&s,m,T&&{as:T},{ref:b}),R);return Object.keys(k).forEach(j=>{delete P[j]}),[w,P]}function A5(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,f]=p.useState(!1),h=le(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),w={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},y=le(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&f(!0),p.useEffect(()=>{if(!s&&l!=null){const x=setTimeout(l,c);return()=>{clearTimeout(x)}}},[l,s,c]),d.jsx("span",{className:h,style:w,children:d.jsx("span",{className:y})})}const $n=we("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),N5=["center","classes","className"];let Ju=e=>e,O0,I0,_0,L0;const Rp=550,D5=80,z5=Qi(O0||(O0=Ju` 0% { transform: scale(0); opacity: 0.1; @@ -102,7 +102,7 @@ Error generating stack: `+i.message+` transform: scale(1); opacity: 0.3; } -`)),U5=Qi(I0||(I0=Zu` +`)),B5=Qi(I0||(I0=Ju` 0% { opacity: 1; } @@ -110,7 +110,7 @@ Error generating stack: `+i.message+` 100% { opacity: 0; } -`)),W5=Qi(_0||(_0=Zu` +`)),F5=Qi(_0||(_0=Ju` 0% { transform: scale(1); } @@ -122,7 +122,7 @@ Error generating stack: `+i.message+` 100% { transform: scale(1); } -`)),H5=ie("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),V5=ie(D5,{name:"MuiTouchRipple",slot:"Ripple"})(L0||(L0=Zu` +`)),U5=ie("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),W5=ie(A5,{name:"MuiTouchRipple",slot:"Ripple"})(L0||(L0=Ju` opacity: 0; position: absolute; @@ -165,8 +165,8 @@ Error generating stack: `+i.message+` animation-iteration-count: infinite; animation-delay: 200ms; } -`),$n.rippleVisible,F5,Pp,({theme:e})=>e.transitions.easing.easeInOut,$n.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,$n.child,$n.childLeaving,U5,Pp,({theme:e})=>e.transitions.easing.easeInOut,$n.childPulsate,W5,({theme:e})=>e.transitions.easing.easeInOut),q5=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,s=se(r,z5),[l,c]=p.useState([]),u=p.useRef(0),f=p.useRef(null);p.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const h=p.useRef(!1),w=To(),y=p.useRef(null),x=p.useRef(null),C=p.useCallback(R=>{const{pulsate:k,rippleX:T,rippleY:P,rippleSize:j,cb:N}=R;c(O=>[...O,d.jsx(V5,{classes:{ripple:le(i.ripple,$n.ripple),rippleVisible:le(i.rippleVisible,$n.rippleVisible),ripplePulsate:le(i.ripplePulsate,$n.ripplePulsate),child:le(i.child,$n.child),childLeaving:le(i.childLeaving,$n.childLeaving),childPulsate:le(i.childPulsate,$n.childPulsate)},timeout:Pp,pulsate:k,rippleX:T,rippleY:P,rippleSize:j},u.current)]),u.current+=1,f.current=N},[i]),v=p.useCallback((R={},k={},T=()=>{})=>{const{pulsate:P=!1,center:j=o||k.pulsate,fakeElement:N=!1}=k;if((R==null?void 0:R.type)==="mousedown"&&h.current){h.current=!1;return}(R==null?void 0:R.type)==="touchstart"&&(h.current=!0);const O=N?null:x.current,F=O?O.getBoundingClientRect():{width:0,height:0,left:0,top:0};let W,U,G;if(j||R===void 0||R.clientX===0&&R.clientY===0||!R.clientX&&!R.touches)W=Math.round(F.width/2),U=Math.round(F.height/2);else{const{clientX:ee,clientY:J}=R.touches&&R.touches.length>0?R.touches[0]:R;W=Math.round(ee-F.left),U=Math.round(J-F.top)}if(j)G=Math.sqrt((2*F.width**2+F.height**2)/3),G%2===0&&(G+=1);else{const ee=Math.max(Math.abs((O?O.clientWidth:0)-W),W)*2+2,J=Math.max(Math.abs((O?O.clientHeight:0)-U),U)*2+2;G=Math.sqrt(ee**2+J**2)}R!=null&&R.touches?y.current===null&&(y.current=()=>{C({pulsate:P,rippleX:W,rippleY:U,rippleSize:G,cb:T})},w.start(B5,()=>{y.current&&(y.current(),y.current=null)})):C({pulsate:P,rippleX:W,rippleY:U,rippleSize:G,cb:T})},[o,C,w]),m=p.useCallback(()=>{v({},{pulsate:!0})},[v]),b=p.useCallback((R,k)=>{if(w.clear(),(R==null?void 0:R.type)==="touchend"&&y.current){y.current(),y.current=null,w.start(0,()=>{b(R,k)});return}y.current=null,c(T=>T.length>0?T.slice(1):T),f.current=k},[w]);return p.useImperativeHandle(n,()=>({pulsate:m,start:v,stop:b}),[m,v,b]),d.jsx(H5,S({className:le($n.root,i.root,a),ref:x},s,{children:d.jsx(fm,{component:null,exit:!0,children:l})}))});function G5(e){return be("MuiButtonBase",e)}const K5=we("MuiButtonBase",["root","disabled","focusVisible"]),Y5=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],X5=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Se({root:["root",t&&"disabled",n&&"focusVisible"]},G5,o);return n&&r&&(a.root+=` ${r}`),a},Q5=ie("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${K5.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ir=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:h=!1,LinkComponent:w="a",onBlur:y,onClick:x,onContextMenu:C,onDragLeave:v,onFocus:m,onFocusVisible:b,onKeyDown:R,onKeyUp:k,onMouseDown:T,onMouseLeave:P,onMouseUp:j,onTouchEnd:N,onTouchMove:O,onTouchStart:F,tabIndex:W=0,TouchRippleProps:U,touchRippleRef:G,type:ee}=r,J=se(r,Y5),re=p.useRef(null),I=p.useRef(null),_=lt(I,G),{isFocusVisibleRef:E,onFocus:g,onBlur:$,ref:z}=om(),[L,B]=p.useState(!1);c&&L&&B(!1),p.useImperativeHandle(o,()=>({focusVisible:()=>{B(!0),re.current.focus()}}),[]);const[V,M]=p.useState(!1);p.useEffect(()=>{M(!0)},[]);const A=V&&!u&&!c;p.useEffect(()=>{L&&h&&!u&&V&&I.current.pulsate()},[u,h,L,V]);function K(he,Ge,Xe=f){return Yt(Ye=>(Ge&&Ge(Ye),!Xe&&I.current&&I.current[he](Ye),!0))}const Y=K("start",T),q=K("stop",C),oe=K("stop",v),te=K("stop",j),ne=K("stop",he=>{L&&he.preventDefault(),P&&P(he)}),de=K("start",F),ke=K("stop",N),H=K("stop",O),ae=K("stop",he=>{$(he),E.current===!1&&B(!1),y&&y(he)},!1),ge=Yt(he=>{re.current||(re.current=he.currentTarget),g(he),E.current===!0&&(B(!0),b&&b(he)),m&&m(he)}),D=()=>{const he=re.current;return l&&l!=="button"&&!(he.tagName==="A"&&he.href)},X=p.useRef(!1),fe=Yt(he=>{h&&!X.current&&L&&I.current&&he.key===" "&&(X.current=!0,I.current.stop(he,()=>{I.current.start(he)})),he.target===he.currentTarget&&D()&&he.key===" "&&he.preventDefault(),R&&R(he),he.target===he.currentTarget&&D()&&he.key==="Enter"&&!c&&(he.preventDefault(),x&&x(he))}),pe=Yt(he=>{h&&he.key===" "&&I.current&&L&&!he.defaultPrevented&&(X.current=!1,I.current.stop(he,()=>{I.current.pulsate(he)})),k&&k(he),x&&he.target===he.currentTarget&&D()&&he.key===" "&&!he.defaultPrevented&&x(he)});let ve=l;ve==="button"&&(J.href||J.to)&&(ve=w);const Ce={};ve==="button"?(Ce.type=ee===void 0?"button":ee,Ce.disabled=c):(!J.href&&!J.to&&(Ce.role="button"),c&&(Ce["aria-disabled"]=c));const Le=lt(n,z,re),De=S({},r,{centerRipple:i,component:l,disabled:c,disableRipple:u,disableTouchRipple:f,focusRipple:h,tabIndex:W,focusVisible:L}),Ee=X5(De);return d.jsxs(Q5,S({as:ve,className:le(Ee.root,s),ownerState:De,onBlur:ae,onClick:x,onContextMenu:q,onFocus:ge,onKeyDown:fe,onKeyUp:pe,onMouseDown:Y,onMouseLeave:ne,onMouseUp:te,onDragLeave:oe,onTouchEnd:ke,onTouchMove:H,onTouchStart:de,ref:Le,tabIndex:c?-1:W,type:ee},Ce,J,{children:[a,A?d.jsx(q5,S({ref:_,center:i},U)):null]}))});function J5(e){return be("MuiAlert",e)}const A0=we("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function Z5(e){return be("MuiIconButton",e)}const eM=we("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),tM=["edge","children","className","color","disabled","disableFocusRipple","size"],nM=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${Z(r)}`,o&&`edge${Z(o)}`,`size${Z(i)}`]};return Se(a,Z5,t)},rM=ie(Ir,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Z(n.color)}`],n.edge&&t[`edge${Z(n.edge)}`],t[`size${Z(n.size)}`]]}})(({theme:e,ownerState:t})=>S({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return S({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&S({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":S({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${eM.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),ut=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium"}=r,f=se(r,tM),h=S({},r,{edge:o,color:s,disabled:l,disableFocusRipple:c,size:u}),w=nM(h);return d.jsx(rM,S({className:le(w.root,a),centerRipple:!0,focusRipple:!c,disabled:l,ref:n},f,{ownerState:h,children:i}))}),oM=Vt(d.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),iM=Vt(d.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),aM=Vt(d.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),sM=Vt(d.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),lM=Vt(d.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),cM=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],uM=Ju(),dM=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`color${Z(n||r)}`,`${t}${Z(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Se(i,J5,o)},fM=ie(En,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Z(n.color||n.severity)}`]]}})(({theme:e})=>{const t=e.palette.mode==="light"?Rc:kc,n=e.palette.mode==="light"?kc:Rc;return S({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${A0.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${A0.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.dark).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:S({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)})}))]})}),pM=ie("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),hM=ie("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),N0=ie("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),D0={success:d.jsx(oM,{fontSize:"inherit"}),warning:d.jsx(iM,{fontSize:"inherit"}),error:d.jsx(aM,{fontSize:"inherit"}),info:d.jsx(sM,{fontSize:"inherit"})},xr=p.forwardRef(function(t,n){const r=uM({props:t,name:"MuiAlert"}),{action:o,children:i,className:a,closeText:s="Close",color:l,components:c={},componentsProps:u={},icon:f,iconMapping:h=D0,onClose:w,role:y="alert",severity:x="success",slotProps:C={},slots:v={},variant:m="standard"}=r,b=se(r,cM),R=S({},r,{color:l,severity:x,variant:m,colorSeverity:l||x}),k=dM(R),T={slots:S({closeButton:c.CloseButton,closeIcon:c.CloseIcon},v),slotProps:S({},u,C)},[P,j]=kp("closeButton",{elementType:ut,externalForwardedProps:T,ownerState:R}),[N,O]=kp("closeIcon",{elementType:lM,externalForwardedProps:T,ownerState:R});return d.jsxs(fM,S({role:y,elevation:0,ownerState:R,className:le(k.root,a),ref:n},b,{children:[f!==!1?d.jsx(pM,{ownerState:R,className:k.icon,children:f||h[x]||D0[x]}):null,d.jsx(hM,{ownerState:R,className:k.message,children:i}),o!=null?d.jsx(N0,{ownerState:R,className:k.action,children:o}):null,o==null&&w?d.jsx(N0,{ownerState:R,className:k.action,children:d.jsx(P,S({size:"small","aria-label":s,title:s,color:"inherit",onClick:w},j,{children:d.jsx(N,S({fontSize:"small"},O))}))}):null]}))});function mM(e){return be("MuiTypography",e)}we("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const gM=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],vM=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,e.align!=="inherit"&&`align${Z(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Se(s,mM,a)},yM=ie("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Z(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>S({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),z0={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},xM={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},bM=e=>xM[e]||e,Ie=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTypography"}),o=bM(r.color),i=$u(S({},r,{color:o})),{align:a="inherit",className:s,component:l,gutterBottom:c=!1,noWrap:u=!1,paragraph:f=!1,variant:h="body1",variantMapping:w=z0}=i,y=se(i,gM),x=S({},i,{align:a,color:o,className:s,component:l,gutterBottom:c,noWrap:u,paragraph:f,variant:h,variantMapping:w}),C=l||(f?"p":w[h]||z0[h])||"span",v=vM(x);return d.jsx(yM,S({as:C,ref:n,ownerState:x,className:le(v.root,s)},y))});function wM(e){return be("MuiAppBar",e)}we("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const SM=["className","color","enableColorOnDark","position"],CM=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${Z(t)}`,`position${Z(n)}`]};return Se(o,wM,r)},pl=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,RM=ie(En,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Z(n.position)}`],t[`color${Z(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return S({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&S({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&S({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&S({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:pl(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:pl(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:pl(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:pl(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),kM=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:a=!1,position:s="fixed"}=r,l=se(r,SM),c=S({},r,{color:i,position:s,enableColorOnDark:a}),u=CM(c);return d.jsx(RM,S({square:!0,component:"header",ownerState:c,elevation:4,className:le(u.root,o,s==="fixed"&&"mui-fixed"),ref:n},l))});function PM(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=mw({badgeContent:t,max:r});let a=n;n===!1&&t===0&&!o&&(a=!0);const{badgeContent:s,max:l=r}=a?i:e,c=s&&Number(s)>l?`${l}+`:s;return{badgeContent:s,invisible:a,max:l,displayValue:c}}const Iw="base";function EM(e){return`${Iw}--${e}`}function TM(e,t){return`${Iw}-${e}-${t}`}function _w(e,t){const n=sw[t];return n?EM(n):TM(e,t)}function $M(e,t){const n={};return t.forEach(r=>{n[r]=_w(e,r)}),n}function B0(e){return e.substring(2).toLowerCase()}function MM(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=lt(t.ref,s),f=Yt(y=>{const x=c.current;c.current=!1;const C=St(s.current);if(!l.current||!s.current||"clientX"in y&&MM(y,C))return;if(a.current){a.current=!1;return}let v;y.composedPath?v=y.composedPath().indexOf(s.current)>-1:v=!C.documentElement.contains(y.target)||s.current.contains(y.target),!v&&(n||!x)&&o(y)}),h=y=>x=>{c.current=!0;const C=t.props[y];C&&C(x)},w={ref:u};return i!==!1&&(w[i]=h(i)),p.useEffect(()=>{if(i!==!1){const y=B0(i),x=St(s.current),C=()=>{a.current=!0};return x.addEventListener(y,f),x.addEventListener("touchmove",C),()=>{x.removeEventListener(y,f),x.removeEventListener("touchmove",C)}}},[f,i]),r!==!1&&(w[r]=h(r)),p.useEffect(()=>{if(r!==!1){const y=B0(r),x=St(s.current);return x.addEventListener(y,f),()=>{x.removeEventListener(y,f)}}},[f,r]),d.jsx(p.Fragment,{children:p.cloneElement(t,w)})}const OM=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function IM(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function _M(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function LM(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||_M(e))}function AM(e){const t=[],n=[];return Array.from(e.querySelectorAll(OM)).forEach((r,o)=>{const i=IM(r);i===-1||!LM(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function NM(){return!0}function DM(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=AM,isEnabled:a=NM,open:s}=e,l=p.useRef(!1),c=p.useRef(null),u=p.useRef(null),f=p.useRef(null),h=p.useRef(null),w=p.useRef(!1),y=p.useRef(null),x=lt(t.ref,y),C=p.useRef(null);p.useEffect(()=>{!s||!y.current||(w.current=!n)},[n,s]),p.useEffect(()=>{if(!s||!y.current)return;const b=St(y.current);return y.current.contains(b.activeElement)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex","-1"),w.current&&y.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),p.useEffect(()=>{if(!s||!y.current)return;const b=St(y.current),R=P=>{C.current=P,!(r||!a()||P.key!=="Tab")&&b.activeElement===y.current&&P.shiftKey&&(l.current=!0,u.current&&u.current.focus())},k=()=>{const P=y.current;if(P===null)return;if(!b.hasFocus()||!a()||l.current){l.current=!1;return}if(P.contains(b.activeElement)||r&&b.activeElement!==c.current&&b.activeElement!==u.current)return;if(b.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!w.current)return;let j=[];if((b.activeElement===c.current||b.activeElement===u.current)&&(j=i(y.current)),j.length>0){var N,O;const F=!!((N=C.current)!=null&&N.shiftKey&&((O=C.current)==null?void 0:O.key)==="Tab"),W=j[0],U=j[j.length-1];typeof W!="string"&&typeof U!="string"&&(F?U.focus():W.focus())}else P.focus()};b.addEventListener("focusin",k),b.addEventListener("keydown",R,!0);const T=setInterval(()=>{b.activeElement&&b.activeElement.tagName==="BODY"&&k()},50);return()=>{clearInterval(T),b.removeEventListener("focusin",k),b.removeEventListener("keydown",R,!0)}},[n,r,o,a,s,i]);const v=b=>{f.current===null&&(f.current=b.relatedTarget),w.current=!0,h.current=b.target;const R=t.props.onFocus;R&&R(b)},m=b=>{f.current===null&&(f.current=b.relatedTarget),w.current=!0};return d.jsxs(p.Fragment,{children:[d.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:c,"data-testid":"sentinelStart"}),p.cloneElement(t,{ref:x,onFocus:v}),d.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:u,"data-testid":"sentinelEnd"})]})}function zM(e){return typeof e=="function"?e():e}const Lw=p.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[a,s]=p.useState(null),l=lt(p.isValidElement(r)?r.ref:null,n);if(Sn(()=>{i||s(zM(o)||document.body)},[o,i]),Sn(()=>{if(a&&!i)return Cc(n,a),()=>{Cc(n,null)}},[n,a,i]),i){if(p.isValidElement(r)){const c={ref:l};return p.cloneElement(r,c)}return d.jsx(p.Fragment,{children:r})}return d.jsx(p.Fragment,{children:a&&Oh.createPortal(r,a)})});function BM(e){const t=St(e);return t.body===e?Bn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Ua(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function F0(e){return parseInt(Bn(e).getComputedStyle(e).paddingRight,10)||0}function FM(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function U0(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const s=i.indexOf(a)===-1,l=!FM(a);s&&l&&Ua(a,o)})}function Qd(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function UM(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(BM(r)){const a=pw(St(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${F0(r)+a}px`;const s=St(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${F0(l)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=St(r).body;else{const a=r.parentElement,s=Bn(r);i=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:s})=>{i?a.style.setProperty(s,i):a.style.removeProperty(s)})}}function WM(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class HM{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Ua(t.modalRef,!1);const o=WM(n);U0(n,t.mount,t.modalRef,o,!0);const i=Qd(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Qd(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=UM(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Qd(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Ua(t.modalRef,n),U0(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&Ua(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function VM(e){return typeof e=="function"?e():e}function qM(e){return e?e.props.hasOwnProperty("in"):!1}const GM=new HM;function KM(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=GM,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:f}=e,h=p.useRef({}),w=p.useRef(null),y=p.useRef(null),x=lt(y,f),[C,v]=p.useState(!u),m=qM(l);let b=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(b=!1);const R=()=>St(w.current),k=()=>(h.current.modalRef=y.current,h.current.mount=w.current,h.current),T=()=>{o.mount(k(),{disableScrollLock:r}),y.current&&(y.current.scrollTop=0)},P=Yt(()=>{const J=VM(t)||R().body;o.add(k(),J),y.current&&T()}),j=p.useCallback(()=>o.isTopModal(k()),[o]),N=Yt(J=>{w.current=J,J&&(u&&j()?T():y.current&&Ua(y.current,b))}),O=p.useCallback(()=>{o.remove(k(),b)},[b,o]);p.useEffect(()=>()=>{O()},[O]),p.useEffect(()=>{u?P():(!m||!i)&&O()},[u,O,m,i,P]);const F=J=>re=>{var I;(I=J.onKeyDown)==null||I.call(J,re),!(re.key!=="Escape"||re.which===229||!j())&&(n||(re.stopPropagation(),c&&c(re,"escapeKeyDown")))},W=J=>re=>{var I;(I=J.onClick)==null||I.call(J,re),re.target===re.currentTarget&&c&&c(re,"backdropClick")};return{getRootProps:(J={})=>{const re=Tc(e);delete re.onTransitionEnter,delete re.onTransitionExited;const I=S({},re,J);return S({role:"presentation"},I,{onKeyDown:F(I),ref:x})},getBackdropProps:(J={})=>{const re=J;return S({"aria-hidden":!0},re,{onClick:W(re),open:u})},getTransitionProps:()=>{const J=()=>{v(!1),a&&a()},re=()=>{v(!0),s&&s(),i&&O()};return{onEnter:xp(J,l==null?void 0:l.props.onEnter),onExited:xp(re,l==null?void 0:l.props.onExited)}},rootRef:x,portalRef:N,isTopModal:j,exited:C,hasTransition:m}}var cn="top",Un="bottom",Wn="right",un="left",hm="auto",zs=[cn,Un,Wn,un],Di="start",vs="end",YM="clippingParents",Aw="viewport",ya="popper",XM="reference",W0=zs.reduce(function(e,t){return e.concat([t+"-"+Di,t+"-"+vs])},[]),Nw=[].concat(zs,[hm]).reduce(function(e,t){return e.concat([t,t+"-"+Di,t+"-"+vs])},[]),QM="beforeRead",JM="read",ZM="afterRead",ej="beforeMain",tj="main",nj="afterMain",rj="beforeWrite",oj="write",ij="afterWrite",aj=[QM,JM,ZM,ej,tj,nj,rj,oj,ij];function yr(e){return e?(e.nodeName||"").toLowerCase():null}function Cn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Wo(e){var t=Cn(e).Element;return e instanceof t||e instanceof Element}function Nn(e){var t=Cn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function mm(e){if(typeof ShadowRoot>"u")return!1;var t=Cn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function sj(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Nn(i)||!yr(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function lj(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,c){return l[c]="",l},{});!Nn(o)||!yr(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const cj={name:"applyStyles",enabled:!0,phase:"write",fn:sj,effect:lj,requires:["computeStyles"]};function mr(e){return e.split("-")[0]}var Io=Math.max,$c=Math.min,zi=Math.round;function Ep(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Dw(){return!/^((?!chrome|android).)*safari/i.test(Ep())}function Bi(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Nn(e)&&(o=e.offsetWidth>0&&zi(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&zi(r.height)/e.offsetHeight||1);var a=Wo(e)?Cn(e):window,s=a.visualViewport,l=!Dw()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/o,u=(r.top+(l&&s?s.offsetTop:0))/i,f=r.width/o,h=r.height/i;return{width:f,height:h,top:u,right:c+f,bottom:u+h,left:c,x:c,y:u}}function gm(e){var t=Bi(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function zw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&mm(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function _r(e){return Cn(e).getComputedStyle(e)}function uj(e){return["table","td","th"].indexOf(yr(e))>=0}function go(e){return((Wo(e)?e.ownerDocument:e.document)||window.document).documentElement}function ed(e){return yr(e)==="html"?e:e.assignedSlot||e.parentNode||(mm(e)?e.host:null)||go(e)}function H0(e){return!Nn(e)||_r(e).position==="fixed"?null:e.offsetParent}function dj(e){var t=/firefox/i.test(Ep()),n=/Trident/i.test(Ep());if(n&&Nn(e)){var r=_r(e);if(r.position==="fixed")return null}var o=ed(e);for(mm(o)&&(o=o.host);Nn(o)&&["html","body"].indexOf(yr(o))<0;){var i=_r(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Bs(e){for(var t=Cn(e),n=H0(e);n&&uj(n)&&_r(n).position==="static";)n=H0(n);return n&&(yr(n)==="html"||yr(n)==="body"&&_r(n).position==="static")?t:n||dj(e)||t}function vm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Wa(e,t,n){return Io(e,$c(t,n))}function fj(e,t,n){var r=Wa(e,t,n);return r>n?n:r}function Bw(){return{top:0,right:0,bottom:0,left:0}}function Fw(e){return Object.assign({},Bw(),e)}function Uw(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var pj=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Fw(typeof t!="number"?t:Uw(t,zs))};function hj(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=mr(n.placement),l=vm(s),c=[un,Wn].indexOf(s)>=0,u=c?"height":"width";if(!(!i||!a)){var f=pj(o.padding,n),h=gm(i),w=l==="y"?cn:un,y=l==="y"?Un:Wn,x=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],C=a[l]-n.rects.reference[l],v=Bs(i),m=v?l==="y"?v.clientHeight||0:v.clientWidth||0:0,b=x/2-C/2,R=f[w],k=m-h[u]-f[y],T=m/2-h[u]/2+b,P=Wa(R,T,k),j=l;n.modifiersData[r]=(t={},t[j]=P,t.centerOffset=P-T,t)}}function mj(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||zw(t.elements.popper,o)&&(t.elements.arrow=o))}const gj={name:"arrow",enabled:!0,phase:"main",fn:hj,effect:mj,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Fi(e){return e.split("-")[1]}var vj={top:"auto",right:"auto",bottom:"auto",left:"auto"};function yj(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:zi(n*o)/o||0,y:zi(r*o)/o||0}}function V0(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,h=a.x,w=h===void 0?0:h,y=a.y,x=y===void 0?0:y,C=typeof u=="function"?u({x:w,y:x}):{x:w,y:x};w=C.x,x=C.y;var v=a.hasOwnProperty("x"),m=a.hasOwnProperty("y"),b=un,R=cn,k=window;if(c){var T=Bs(n),P="clientHeight",j="clientWidth";if(T===Cn(n)&&(T=go(n),_r(T).position!=="static"&&s==="absolute"&&(P="scrollHeight",j="scrollWidth")),T=T,o===cn||(o===un||o===Wn)&&i===vs){R=Un;var N=f&&T===k&&k.visualViewport?k.visualViewport.height:T[P];x-=N-r.height,x*=l?1:-1}if(o===un||(o===cn||o===Un)&&i===vs){b=Wn;var O=f&&T===k&&k.visualViewport?k.visualViewport.width:T[j];w-=O-r.width,w*=l?1:-1}}var F=Object.assign({position:s},c&&vj),W=u===!0?yj({x:w,y:x},Cn(n)):{x:w,y:x};if(w=W.x,x=W.y,l){var U;return Object.assign({},F,(U={},U[R]=m?"0":"",U[b]=v?"0":"",U.transform=(k.devicePixelRatio||1)<=1?"translate("+w+"px, "+x+"px)":"translate3d("+w+"px, "+x+"px, 0)",U))}return Object.assign({},F,(t={},t[R]=m?x+"px":"",t[b]=v?w+"px":"",t.transform="",t))}function xj(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:mr(t.placement),variation:Fi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,V0(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,V0(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const bj={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:xj,data:{}};var hl={passive:!0};function wj(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,l=Cn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,hl)}),s&&l.addEventListener("resize",n.update,hl),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,hl)}),s&&l.removeEventListener("resize",n.update,hl)}}const Sj={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:wj,data:{}};var Cj={left:"right",right:"left",bottom:"top",top:"bottom"};function Wl(e){return e.replace(/left|right|bottom|top/g,function(t){return Cj[t]})}var Rj={start:"end",end:"start"};function q0(e){return e.replace(/start|end/g,function(t){return Rj[t]})}function ym(e){var t=Cn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function xm(e){return Bi(go(e)).left+ym(e).scrollLeft}function kj(e,t){var n=Cn(e),r=go(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=Dw();(c||!c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+xm(e),y:l}}function Pj(e){var t,n=go(e),r=ym(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Io(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Io(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+xm(e),l=-r.scrollTop;return _r(o||n).direction==="rtl"&&(s+=Io(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function bm(e){var t=_r(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Ww(e){return["html","body","#document"].indexOf(yr(e))>=0?e.ownerDocument.body:Nn(e)&&bm(e)?e:Ww(ed(e))}function Ha(e,t){var n;t===void 0&&(t=[]);var r=Ww(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Cn(r),a=o?[i].concat(i.visualViewport||[],bm(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Ha(ed(a)))}function Tp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ej(e,t){var n=Bi(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function G0(e,t,n){return t===Aw?Tp(kj(e,n)):Wo(t)?Ej(t,n):Tp(Pj(go(e)))}function Tj(e){var t=Ha(ed(e)),n=["absolute","fixed"].indexOf(_r(e).position)>=0,r=n&&Nn(e)?Bs(e):e;return Wo(r)?t.filter(function(o){return Wo(o)&&zw(o,r)&&yr(o)!=="body"}):[]}function $j(e,t,n,r){var o=t==="clippingParents"?Tj(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(l,c){var u=G0(e,c,r);return l.top=Io(u.top,l.top),l.right=$c(u.right,l.right),l.bottom=$c(u.bottom,l.bottom),l.left=Io(u.left,l.left),l},G0(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Hw(e){var t=e.reference,n=e.element,r=e.placement,o=r?mr(r):null,i=r?Fi(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case cn:l={x:a,y:t.y-n.height};break;case Un:l={x:a,y:t.y+t.height};break;case Wn:l={x:t.x+t.width,y:s};break;case un:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=o?vm(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case Di:l[c]=l[c]-(t[u]/2-n[u]/2);break;case vs:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function ys(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,s=n.boundary,l=s===void 0?YM:s,c=n.rootBoundary,u=c===void 0?Aw:c,f=n.elementContext,h=f===void 0?ya:f,w=n.altBoundary,y=w===void 0?!1:w,x=n.padding,C=x===void 0?0:x,v=Fw(typeof C!="number"?C:Uw(C,zs)),m=h===ya?XM:ya,b=e.rects.popper,R=e.elements[y?m:h],k=$j(Wo(R)?R:R.contextElement||go(e.elements.popper),l,u,a),T=Bi(e.elements.reference),P=Hw({reference:T,element:b,strategy:"absolute",placement:o}),j=Tp(Object.assign({},b,P)),N=h===ya?j:T,O={top:k.top-N.top+v.top,bottom:N.bottom-k.bottom+v.bottom,left:k.left-N.left+v.left,right:N.right-k.right+v.right},F=e.modifiersData.offset;if(h===ya&&F){var W=F[o];Object.keys(O).forEach(function(U){var G=[Wn,Un].indexOf(U)>=0?1:-1,ee=[cn,Un].indexOf(U)>=0?"y":"x";O[U]+=W[ee]*G})}return O}function Mj(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Nw:l,u=Fi(r),f=u?s?W0:W0.filter(function(y){return Fi(y)===u}):zs,h=f.filter(function(y){return c.indexOf(y)>=0});h.length===0&&(h=f);var w=h.reduce(function(y,x){return y[x]=ys(e,{placement:x,boundary:o,rootBoundary:i,padding:a})[mr(x)],y},{});return Object.keys(w).sort(function(y,x){return w[y]-w[x]})}function jj(e){if(mr(e)===hm)return[];var t=Wl(e);return[q0(e),t,q0(t)]}function Oj(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,h=n.altBoundary,w=n.flipVariations,y=w===void 0?!0:w,x=n.allowedAutoPlacements,C=t.options.placement,v=mr(C),m=v===C,b=l||(m||!y?[Wl(C)]:jj(C)),R=[C].concat(b).reduce(function(L,B){return L.concat(mr(B)===hm?Mj(t,{placement:B,boundary:u,rootBoundary:f,padding:c,flipVariations:y,allowedAutoPlacements:x}):B)},[]),k=t.rects.reference,T=t.rects.popper,P=new Map,j=!0,N=R[0],O=0;O=0,ee=G?"width":"height",J=ys(t,{placement:F,boundary:u,rootBoundary:f,altBoundary:h,padding:c}),re=G?U?Wn:un:U?Un:cn;k[ee]>T[ee]&&(re=Wl(re));var I=Wl(re),_=[];if(i&&_.push(J[W]<=0),s&&_.push(J[re]<=0,J[I]<=0),_.every(function(L){return L})){N=F,j=!1;break}P.set(F,_)}if(j)for(var E=y?3:1,g=function(B){var V=R.find(function(M){var A=P.get(M);if(A)return A.slice(0,B).every(function(K){return K})});if(V)return N=V,"break"},$=E;$>0;$--){var z=g($);if(z==="break")break}t.placement!==N&&(t.modifiersData[r]._skip=!0,t.placement=N,t.reset=!0)}}const Ij={name:"flip",enabled:!0,phase:"main",fn:Oj,requiresIfExists:["offset"],data:{_skip:!1}};function K0(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Y0(e){return[cn,Wn,Un,un].some(function(t){return e[t]>=0})}function _j(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ys(t,{elementContext:"reference"}),s=ys(t,{altBoundary:!0}),l=K0(a,r),c=K0(s,o,i),u=Y0(l),f=Y0(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const Lj={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:_j};function Aj(e,t,n){var r=mr(e),o=[un,cn].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[un,Wn].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function Nj(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=Nw.reduce(function(u,f){return u[f]=Aj(f,t.rects,i),u},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}const Dj={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Nj};function zj(e){var t=e.state,n=e.name;t.modifiersData[n]=Hw({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Bj={name:"popperOffsets",enabled:!0,phase:"read",fn:zj,data:{}};function Fj(e){return e==="x"?"y":"x"}function Uj(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,h=n.tether,w=h===void 0?!0:h,y=n.tetherOffset,x=y===void 0?0:y,C=ys(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),v=mr(t.placement),m=Fi(t.placement),b=!m,R=vm(v),k=Fj(R),T=t.modifiersData.popperOffsets,P=t.rects.reference,j=t.rects.popper,N=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,O=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,W={x:0,y:0};if(T){if(i){var U,G=R==="y"?cn:un,ee=R==="y"?Un:Wn,J=R==="y"?"height":"width",re=T[R],I=re+C[G],_=re-C[ee],E=w?-j[J]/2:0,g=m===Di?P[J]:j[J],$=m===Di?-j[J]:-P[J],z=t.elements.arrow,L=w&&z?gm(z):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Bw(),V=B[G],M=B[ee],A=Wa(0,P[J],L[J]),K=b?P[J]/2-E-A-V-O.mainAxis:g-A-V-O.mainAxis,Y=b?-P[J]/2+E+A+M+O.mainAxis:$+A+M+O.mainAxis,q=t.elements.arrow&&Bs(t.elements.arrow),oe=q?R==="y"?q.clientTop||0:q.clientLeft||0:0,te=(U=F==null?void 0:F[R])!=null?U:0,ne=re+K-te-oe,de=re+Y-te,ke=Wa(w?$c(I,ne):I,re,w?Io(_,de):_);T[R]=ke,W[R]=ke-re}if(s){var H,ae=R==="x"?cn:un,ge=R==="x"?Un:Wn,D=T[k],X=k==="y"?"height":"width",fe=D+C[ae],pe=D-C[ge],ve=[cn,un].indexOf(v)!==-1,Ce=(H=F==null?void 0:F[k])!=null?H:0,Le=ve?fe:D-P[X]-j[X]-Ce+O.altAxis,De=ve?D+P[X]+j[X]-Ce-O.altAxis:pe,Ee=w&&ve?fj(Le,D,De):Wa(w?Le:fe,D,w?De:pe);T[k]=Ee,W[k]=Ee-D}t.modifiersData[r]=W}}const Wj={name:"preventOverflow",enabled:!0,phase:"main",fn:Uj,requiresIfExists:["offset"]};function Hj(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Vj(e){return e===Cn(e)||!Nn(e)?ym(e):Hj(e)}function qj(e){var t=e.getBoundingClientRect(),n=zi(t.width)/e.offsetWidth||1,r=zi(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Gj(e,t,n){n===void 0&&(n=!1);var r=Nn(t),o=Nn(t)&&qj(t),i=go(t),a=Bi(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((yr(t)!=="body"||bm(i))&&(s=Vj(t)),Nn(t)?(l=Bi(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=xm(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Kj(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function Yj(e){var t=Kj(e);return aj.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Xj(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Qj(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var X0={placement:"bottom",modifiers:[],strategy:"absolute"};function Q0(){for(var e=arguments.length,t=new Array(e),n=0;nSe({root:["root"]},I5(tO)),sO={},lO=p.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:a,disablePortal:s,modifiers:l,open:c,placement:u,popperOptions:f,popperRef:h,slotProps:w={},slots:y={},TransitionProps:x}=t,C=se(t,nO),v=p.useRef(null),m=lt(v,n),b=p.useRef(null),R=lt(b,h),k=p.useRef(R);Sn(()=>{k.current=R},[R]),p.useImperativeHandle(h,()=>b.current,[]);const T=oO(u,a),[P,j]=p.useState(T),[N,O]=p.useState($p(o));p.useEffect(()=>{b.current&&b.current.forceUpdate()}),p.useEffect(()=>{o&&O($p(o))},[o]),Sn(()=>{if(!N||!c)return;const ee=I=>{j(I.placement)};let J=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:I})=>{ee(I)}}];l!=null&&(J=J.concat(l)),f&&f.modifiers!=null&&(J=J.concat(f.modifiers));const re=eO(N,v.current,S({placement:T},f,{modifiers:J}));return k.current(re),()=>{re.destroy(),k.current(null)}},[N,s,l,c,f,T]);const F={placement:P};x!==null&&(F.TransitionProps=x);const W=aO(),U=(r=y.root)!=null?r:"div",G=fn({elementType:U,externalSlotProps:w.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:m},ownerState:t,className:W.root});return d.jsx(U,S({},G,{children:typeof i=="function"?i(F):i}))}),cO=p.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:f="bottom",popperOptions:h=sO,popperRef:w,style:y,transition:x=!1,slotProps:C={},slots:v={}}=t,m=se(t,rO),[b,R]=p.useState(!0),k=()=>{R(!1)},T=()=>{R(!0)};if(!l&&!u&&(!x||b))return null;let P;if(i)P=i;else if(r){const O=$p(r);P=O&&iO(O)?St(O).body:St(null).body}const j=!u&&l&&(!x||b)?"none":void 0,N=x?{in:u,onEnter:k,onExited:T}:void 0;return d.jsx(Lw,{disablePortal:s,container:P,children:d.jsx(lO,S({anchorEl:r,direction:a,disablePortal:s,modifiers:c,ref:n,open:x?!b:u,placement:f,popperOptions:h,popperRef:w,slotProps:C,slots:v},m,{style:S({position:"fixed",top:0,left:0,display:j},y),TransitionProps:N,children:o}))})});function uO(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:i}=e,a=To();p.useEffect(()=>{if(!o)return;function v(m){m.defaultPrevented||(m.key==="Escape"||m.key==="Esc")&&(r==null||r(m,"escapeKeyDown"))}return document.addEventListener("keydown",v),()=>{document.removeEventListener("keydown",v)}},[o,r]);const s=Yt((v,m)=>{r==null||r(v,m)}),l=Yt(v=>{!r||v==null||a.start(v,()=>{s(null,"timeout")})});p.useEffect(()=>(o&&l(t),a.clear),[o,t,l,a]);const c=v=>{r==null||r(v,"clickaway")},u=a.clear,f=p.useCallback(()=>{t!=null&&l(i??t*.5)},[t,i,l]),h=v=>m=>{const b=v.onBlur;b==null||b(m),f()},w=v=>m=>{const b=v.onFocus;b==null||b(m),u()},y=v=>m=>{const b=v.onMouseEnter;b==null||b(m),u()},x=v=>m=>{const b=v.onMouseLeave;b==null||b(m),f()};return p.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",f),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",u)}},[n,o,f,u]),{getRootProps:(v={})=>{const m=S({},Tc(e),Tc(v));return S({role:"presentation"},v,m,{onBlur:h(m),onFocus:w(m),onMouseEnter:y(m),onMouseLeave:x(m)})},onClickAway:c}}const dO=["onChange","maxRows","minRows","style","value"];function ml(e){return parseInt(e,10)||0}const fO={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function pO(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const hO=p.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:s}=t,l=se(t,dO),{current:c}=p.useRef(s!=null),u=p.useRef(null),f=lt(n,u),h=p.useRef(null),w=p.useCallback(()=>{const C=u.current,m=Bn(C).getComputedStyle(C);if(m.width==="0px")return{outerHeightStyle:0,overflowing:!1};const b=h.current;b.style.width=m.width,b.value=C.value||t.placeholder||"x",b.value.slice(-1)===` -`&&(b.value+=" ");const R=m.boxSizing,k=ml(m.paddingBottom)+ml(m.paddingTop),T=ml(m.borderBottomWidth)+ml(m.borderTopWidth),P=b.scrollHeight;b.value="x";const j=b.scrollHeight;let N=P;i&&(N=Math.max(Number(i)*j,N)),o&&(N=Math.min(Number(o)*j,N)),N=Math.max(N,j);const O=N+(R==="border-box"?k+T:0),F=Math.abs(N-P)<=1;return{outerHeightStyle:O,overflowing:F}},[o,i,t.placeholder]),y=p.useCallback(()=>{const C=w();if(pO(C))return;const v=u.current;v.style.height=`${C.outerHeightStyle}px`,v.style.overflow=C.overflowing?"hidden":""},[w]);Sn(()=>{const C=()=>{y()};let v;const m=ea(C),b=u.current,R=Bn(b);R.addEventListener("resize",m);let k;return typeof ResizeObserver<"u"&&(k=new ResizeObserver(C),k.observe(b)),()=>{m.clear(),cancelAnimationFrame(v),R.removeEventListener("resize",m),k&&k.disconnect()}},[w,y]),Sn(()=>{y()});const x=C=>{c||y(),r&&r(C)};return d.jsxs(p.Fragment,{children:[d.jsx("textarea",S({value:s,onChange:x,ref:f,rows:i,style:a},l)),d.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:S({},fO.shadow,a,{paddingTop:0,paddingBottom:0})})]})});var wm={};Object.defineProperty(wm,"__esModule",{value:!0});var qw=wm.default=void 0,mO=vO(p),gO=Pw;function Gw(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Gw=function(r){return r?n:t})(e)}function vO(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Gw(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function yO(e){return Object.keys(e).length===0}function xO(e=null){const t=mO.useContext(gO.ThemeContext);return!t||yO(t)?e:t}qw=wm.default=xO;const bO=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],wO=ie(cO,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Kw=p.forwardRef(function(t,n){var r;const o=qw(),i=Re({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:l,componentsProps:c,container:u,disablePortal:f,keepMounted:h,modifiers:w,open:y,placement:x,popperOptions:C,popperRef:v,transition:m,slots:b,slotProps:R}=i,k=se(i,bO),T=(r=b==null?void 0:b.root)!=null?r:l==null?void 0:l.Root,P=S({anchorEl:a,container:u,disablePortal:f,keepMounted:h,modifiers:w,open:y,placement:x,popperOptions:C,popperRef:v,transition:m},k);return d.jsx(wO,S({as:s,direction:o==null?void 0:o.direction,slots:{root:T},slotProps:R??c},P,{ref:n}))}),SO=Vt(d.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function CO(e){return be("MuiChip",e)}const Be=we("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),RO=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],kO=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:a,clickable:s,variant:l}=e,c={root:["root",l,n&&"disabled",`size${Z(r)}`,`color${Z(o)}`,s&&"clickable",s&&`clickableColor${Z(o)}`,a&&"deletable",a&&`deletableColor${Z(o)}`,`${l}${Z(o)}`],label:["label",`label${Z(r)}`],avatar:["avatar",`avatar${Z(r)}`,`avatarColor${Z(o)}`],icon:["icon",`icon${Z(r)}`,`iconColor${Z(i)}`],deleteIcon:["deleteIcon",`deleteIcon${Z(r)}`,`deleteIconColor${Z(o)}`,`deleteIcon${Z(l)}Color${Z(o)}`]};return Se(c,CO,t)},PO=ie("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:a,size:s,variant:l}=n;return[{[`& .${Be.avatar}`]:t.avatar},{[`& .${Be.avatar}`]:t[`avatar${Z(s)}`]},{[`& .${Be.avatar}`]:t[`avatarColor${Z(r)}`]},{[`& .${Be.icon}`]:t.icon},{[`& .${Be.icon}`]:t[`icon${Z(s)}`]},{[`& .${Be.icon}`]:t[`iconColor${Z(o)}`]},{[`& .${Be.deleteIcon}`]:t.deleteIcon},{[`& .${Be.deleteIcon}`]:t[`deleteIcon${Z(s)}`]},{[`& .${Be.deleteIcon}`]:t[`deleteIconColor${Z(r)}`]},{[`& .${Be.deleteIcon}`]:t[`deleteIcon${Z(l)}Color${Z(r)}`]},t.root,t[`size${Z(s)}`],t[`color${Z(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${Z(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${Z(r)}`],t[l],t[`${l}${Z(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return S({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Be.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Be.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${Be.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Be.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Be.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Be.icon}`]:S({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&S({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${Be.deleteIcon}`]:S({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Fe(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Fe(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Fe(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Be.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fe(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Be.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>S({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fe(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Be.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fe(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${Be.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>S({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Be.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Be.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Be.avatar}`]:{marginLeft:4},[`& .${Be.avatarSmall}`]:{marginLeft:2},[`& .${Be.icon}`]:{marginLeft:4},[`& .${Be.iconSmall}`]:{marginLeft:2},[`& .${Be.deleteIcon}`]:{marginRight:5},[`& .${Be.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Fe(e.palette[t.color].main,.7)}`,[`&.${Be.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Be.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Fe(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Be.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Fe(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),EO=ie("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Z(r)}`]]}})(({ownerState:e})=>S({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function J0(e){return e.key==="Backspace"||e.key==="Delete"}const TO=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:a,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:f,label:h,onClick:w,onDelete:y,onKeyDown:x,onKeyUp:C,size:v="medium",variant:m="filled",tabIndex:b,skipFocusWhenDisabled:R=!1}=r,k=se(r,RO),T=p.useRef(null),P=lt(T,n),j=_=>{_.stopPropagation(),y&&y(_)},N=_=>{_.currentTarget===_.target&&J0(_)&&_.preventDefault(),x&&x(_)},O=_=>{_.currentTarget===_.target&&(y&&J0(_)?y(_):_.key==="Escape"&&T.current&&T.current.blur()),C&&C(_)},F=a!==!1&&w?!0:a,W=F||y?Ir:l||"div",U=S({},r,{component:W,disabled:u,size:v,color:s,iconColor:p.isValidElement(f)&&f.props.color||s,onDelete:!!y,clickable:F,variant:m}),G=kO(U),ee=W===Ir?S({component:l||"div",focusVisibleClassName:G.focusVisible},y&&{disableRipple:!0}):{};let J=null;y&&(J=c&&p.isValidElement(c)?p.cloneElement(c,{className:le(c.props.className,G.deleteIcon),onClick:j}):d.jsx(SO,{className:le(G.deleteIcon),onClick:j}));let re=null;o&&p.isValidElement(o)&&(re=p.cloneElement(o,{className:le(G.avatar,o.props.className)}));let I=null;return f&&p.isValidElement(f)&&(I=p.cloneElement(f,{className:le(G.icon,f.props.className)})),d.jsxs(PO,S({as:W,className:le(G.root,i),disabled:F&&u?!0:void 0,onClick:w,onKeyDown:N,onKeyUp:O,ref:P,tabIndex:R&&u?-1:b,ownerState:U},ee,k,{children:[re||I,d.jsx(EO,{className:le(G.label),ownerState:U,children:h}),J]}))});function vo({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const td=p.createContext(void 0);function br(){return p.useContext(td)}function Yw(e){return d.jsx(n$,S({},e,{defaultTheme:Fu,themeId:Fo}))}function Z0(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Mc(e,t=!1){return e&&(Z0(e.value)&&e.value!==""||t&&Z0(e.defaultValue)&&e.defaultValue!=="")}function $O(e){return e.startAdornment}function MO(e){return be("MuiInputBase",e)}const Ui=we("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),jO=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],nd=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Z(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},rd=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},OO=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:f,size:h,startAdornment:w,type:y}=e,x={root:["root",`color${Z(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",h&&h!=="medium"&&`size${Z(h)}`,u&&"multiline",w&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",y==="search"&&"inputTypeSearch",u&&"inputMultiline",h==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",w&&"inputAdornedStart",i&&"inputAdornedEnd",f&&"readOnly"]};return Se(x,MO,t)},od=ie("div",{name:"MuiInputBase",slot:"Root",overridesResolver:nd})(({theme:e,ownerState:t})=>S({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Ui.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&S({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),id=ie("input",{name:"MuiInputBase",slot:"Input",overridesResolver:rd})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=S({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return S({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ui.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Ui.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),IO=d.jsx(Yw,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),_O=p.forwardRef(function(t,n){var r;const o=Re({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:s,className:l,components:c={},componentsProps:u={},defaultValue:f,disabled:h,disableInjectingGlobalStyles:w,endAdornment:y,fullWidth:x=!1,id:C,inputComponent:v="input",inputProps:m={},inputRef:b,maxRows:R,minRows:k,multiline:T=!1,name:P,onBlur:j,onChange:N,onClick:O,onFocus:F,onKeyDown:W,onKeyUp:U,placeholder:G,readOnly:ee,renderSuffix:J,rows:re,slotProps:I={},slots:_={},startAdornment:E,type:g="text",value:$}=o,z=se(o,jO),L=m.value!=null?m.value:$,{current:B}=p.useRef(L!=null),V=p.useRef(),M=p.useCallback(Ee=>{},[]),A=lt(V,b,m.ref,M),[K,Y]=p.useState(!1),q=br(),oe=vo({props:o,muiFormControl:q,states:["color","disabled","error","hiddenLabel","size","required","filled"]});oe.focused=q?q.focused:K,p.useEffect(()=>{!q&&h&&K&&(Y(!1),j&&j())},[q,h,K,j]);const te=q&&q.onFilled,ne=q&&q.onEmpty,de=p.useCallback(Ee=>{Mc(Ee)?te&&te():ne&&ne()},[te,ne]);Sn(()=>{B&&de({value:L})},[L,de,B]);const ke=Ee=>{if(oe.disabled){Ee.stopPropagation();return}F&&F(Ee),m.onFocus&&m.onFocus(Ee),q&&q.onFocus?q.onFocus(Ee):Y(!0)},H=Ee=>{j&&j(Ee),m.onBlur&&m.onBlur(Ee),q&&q.onBlur?q.onBlur(Ee):Y(!1)},ae=(Ee,...he)=>{if(!B){const Ge=Ee.target||V.current;if(Ge==null)throw new Error(Bo(1));de({value:Ge.value})}m.onChange&&m.onChange(Ee,...he),N&&N(Ee,...he)};p.useEffect(()=>{de(V.current)},[]);const ge=Ee=>{V.current&&Ee.currentTarget===Ee.target&&V.current.focus(),O&&O(Ee)};let D=v,X=m;T&&D==="input"&&(re?X=S({type:void 0,minRows:re,maxRows:re},X):X=S({type:void 0,maxRows:R,minRows:k},X),D=hO);const fe=Ee=>{de(Ee.animationName==="mui-auto-fill-cancel"?V.current:{value:"x"})};p.useEffect(()=>{q&&q.setAdornedStart(!!E)},[q,E]);const pe=S({},o,{color:oe.color||"primary",disabled:oe.disabled,endAdornment:y,error:oe.error,focused:oe.focused,formControl:q,fullWidth:x,hiddenLabel:oe.hiddenLabel,multiline:T,size:oe.size,startAdornment:E,type:g}),ve=OO(pe),Ce=_.root||c.Root||od,Le=I.root||u.root||{},De=_.input||c.Input||id;return X=S({},X,(r=I.input)!=null?r:u.input),d.jsxs(p.Fragment,{children:[!w&&IO,d.jsxs(Ce,S({},Le,!Ni(Ce)&&{ownerState:S({},pe,Le.ownerState)},{ref:n,onClick:ge},z,{className:le(ve.root,Le.className,l,ee&&"MuiInputBase-readOnly"),children:[E,d.jsx(td.Provider,{value:null,children:d.jsx(De,S({ownerState:pe,"aria-invalid":oe.error,"aria-describedby":i,autoComplete:a,autoFocus:s,defaultValue:f,disabled:oe.disabled,id:C,onAnimationStart:fe,name:P,placeholder:G,readOnly:ee,required:oe.required,rows:re,value:L,onKeyDown:W,onKeyUp:U,type:g},X,!Ni(De)&&{as:D,ownerState:S({},pe,X.ownerState)},{ref:A,className:le(ve.input,X.className,ee&&"MuiInputBase-readOnly"),onBlur:H,onChange:ae,onFocus:ke}))}),y,J?J(S({},oe,{startAdornment:E})):null]}))]})}),Sm=_O;function LO(e){return be("MuiInput",e)}const xa=S({},Ui,we("MuiInput",["root","underline","input"]));function AO(e){return be("MuiOutlinedInput",e)}const Ur=S({},Ui,we("MuiOutlinedInput",["root","notchedOutline","input"]));function NO(e){return be("MuiFilledInput",e)}const xo=S({},Ui,we("MuiFilledInput",["root","underline","input"])),DO=Vt(d.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),zO=Vt(d.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function BO(e){return be("MuiAvatar",e)}we("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const FO=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],UO=Ju(),WO=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Se({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},BO,t)},HO=ie("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:S({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:S({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),VO=ie("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),qO=ie(zO,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function GO({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=p.useState(!1);return p.useEffect(()=>{if(!n&&!r)return;i(!1);let a=!0;const s=new Image;return s.onload=()=>{a&&i("loaded")},s.onerror=()=>{a&&i("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=n,r&&(s.srcset=r),()=>{a=!1}},[e,t,n,r]),o}const Er=p.forwardRef(function(t,n){const r=UO({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:a,component:s="div",slots:l={},slotProps:c={},imgProps:u,sizes:f,src:h,srcSet:w,variant:y="circular"}=r,x=se(r,FO);let C=null;const v=GO(S({},u,{src:h,srcSet:w})),m=h||w,b=m&&v!=="error",R=S({},r,{colorDefault:!b,component:s,variant:y}),k=WO(R),[T,P]=kp("img",{className:k.img,elementType:VO,externalForwardedProps:{slots:l,slotProps:{img:S({},u,c.img)}},additionalProps:{alt:o,src:h,srcSet:w,sizes:f},ownerState:R});return b?C=d.jsx(T,S({},P)):i||i===0?C=i:m&&o?C=o[0]:C=d.jsx(qO,{ownerState:R,className:k.fallback}),d.jsx(HO,S({as:s,ownerState:R,className:le(k.root,a),ref:n},x,{children:C}))}),KO=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],YO={entering:{opacity:1},entered:{opacity:1}},Xw=p.forwardRef(function(t,n){const r=mo(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:l,in:c,onEnter:u,onEntered:f,onEntering:h,onExit:w,onExited:y,onExiting:x,style:C,timeout:v=o,TransitionComponent:m=ar}=t,b=se(t,KO),R=p.useRef(null),k=lt(R,s.ref,n),T=G=>ee=>{if(G){const J=R.current;ee===void 0?G(J):G(J,ee)}},P=T(h),j=T((G,ee)=>{pm(G);const J=Ai({style:C,timeout:v,easing:l},{mode:"enter"});G.style.webkitTransition=r.transitions.create("opacity",J),G.style.transition=r.transitions.create("opacity",J),u&&u(G,ee)}),N=T(f),O=T(x),F=T(G=>{const ee=Ai({style:C,timeout:v,easing:l},{mode:"exit"});G.style.webkitTransition=r.transitions.create("opacity",ee),G.style.transition=r.transitions.create("opacity",ee),w&&w(G)}),W=T(y),U=G=>{i&&i(R.current,G)};return d.jsx(m,S({appear:a,in:c,nodeRef:R,onEnter:j,onEntered:N,onEntering:P,onExit:F,onExited:W,onExiting:O,addEndListener:U,timeout:v},b,{children:(G,ee)=>p.cloneElement(s,S({style:S({opacity:0,visibility:G==="exited"&&!c?"hidden":void 0},YO[G],C,s.props.style),ref:k},ee))}))});function XO(e){return be("MuiBackdrop",e)}we("MuiBackdrop",["root","invisible"]);const QO=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],JO=e=>{const{classes:t,invisible:n}=e;return Se({root:["root",n&&"invisible"]},XO,t)},ZO=ie("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>S({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Qw=p.forwardRef(function(t,n){var r,o,i;const a=Re({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:c="div",components:u={},componentsProps:f={},invisible:h=!1,open:w,slotProps:y={},slots:x={},TransitionComponent:C=Xw,transitionDuration:v}=a,m=se(a,QO),b=S({},a,{component:c,invisible:h}),R=JO(b),k=(r=y.root)!=null?r:f.root;return d.jsx(C,S({in:w,timeout:v},m,{children:d.jsx(ZO,S({"aria-hidden":!0},k,{as:(o=(i=x.root)!=null?i:u.Root)!=null?o:c,className:le(R.root,l,k==null?void 0:k.className),ownerState:S({},b,k==null?void 0:k.ownerState),classes:R,ref:n,children:s}))}))});function e3(e){return be("MuiBadge",e)}const Wr=we("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),t3=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Jd=10,Zd=4,n3=Ju(),r3=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:a={}}=e,s={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${Z(n.vertical)}${Z(n.horizontal)}`,`anchorOrigin${Z(n.vertical)}${Z(n.horizontal)}${Z(o)}`,`overlap${Z(o)}`,t!=="default"&&`color${Z(t)}`]};return Se(s,e3,a)},o3=ie("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),i3=ie("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Z(n.anchorOrigin.vertical)}${Z(n.anchorOrigin.horizontal)}${Z(n.overlap)}`],n.color!=="default"&&t[`color${Z(n.color)}`],n.invisible&&t.invisible]}})(({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Jd*2,lineHeight:1,padding:"0 6px",height:Jd*2,borderRadius:Jd,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r,o;return((r=e.vars)!=null?r:e).palette[n].main&&((o=e.vars)!=null?o:e).palette[n].contrastText}).map(n=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText}})),{props:{variant:"dot"},style:{borderRadius:Zd,height:Zd*2,minWidth:Zd*2,padding:0}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}),a3=p.forwardRef(function(t,n){var r,o,i,a,s,l;const c=n3({props:t,name:"MuiBadge"}),{anchorOrigin:u={vertical:"top",horizontal:"right"},className:f,component:h,components:w={},componentsProps:y={},children:x,overlap:C="rectangular",color:v="default",invisible:m=!1,max:b=99,badgeContent:R,slots:k,slotProps:T,showZero:P=!1,variant:j="standard"}=c,N=se(c,t3),{badgeContent:O,invisible:F,max:W,displayValue:U}=PM({max:b,invisible:m,badgeContent:R,showZero:P}),G=mw({anchorOrigin:u,color:v,overlap:C,variant:j,badgeContent:R}),ee=F||O==null&&j!=="dot",{color:J=v,overlap:re=C,anchorOrigin:I=u,variant:_=j}=ee?G:c,E=_!=="dot"?U:void 0,g=S({},c,{badgeContent:O,invisible:ee,max:W,displayValue:E,showZero:P,anchorOrigin:I,color:J,overlap:re,variant:_}),$=r3(g),z=(r=(o=k==null?void 0:k.root)!=null?o:w.Root)!=null?r:o3,L=(i=(a=k==null?void 0:k.badge)!=null?a:w.Badge)!=null?i:i3,B=(s=T==null?void 0:T.root)!=null?s:y.root,V=(l=T==null?void 0:T.badge)!=null?l:y.badge,M=fn({elementType:z,externalSlotProps:B,externalForwardedProps:N,additionalProps:{ref:n,as:h},ownerState:g,className:le(B==null?void 0:B.className,$.root,f)}),A=fn({elementType:L,externalSlotProps:V,ownerState:g,className:le($.badge,V==null?void 0:V.className)});return d.jsxs(z,S({},M,{children:[x,d.jsx(L,S({},A,{children:E}))]}))}),s3=we("MuiBox",["root"]),l3=Ns(),at=l$({themeId:Fo,defaultTheme:l3,defaultClassName:s3.root,generateClassName:Zh.generate});function c3(e){return be("MuiButton",e)}const gl=we("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),u3=p.createContext({}),d3=p.createContext(void 0),f3=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],p3=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,s={root:["root",i,`${i}${Z(t)}`,`size${Z(o)}`,`${i}Size${Z(o)}`,`color${Z(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Z(o)}`],endIcon:["icon","endIcon",`iconSize${Z(o)}`]},l=Se(s,c3,a);return S({},a,l)},Jw=e=>S({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),h3=ie(Ir,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Z(n.color)}`],t[`size${Z(n.size)}`],t[`${n.variant}Size${Z(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return S({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":S({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":S({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${gl.focusVisible}`]:S({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${gl.disabled}`]:S({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Fe(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${gl.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${gl.disabled}`]:{boxShadow:"none"}}),m3=ie("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Z(n.size)}`]]}})(({ownerState:e})=>S({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Jw(e))),g3=ie("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Z(n.size)}`]]}})(({ownerState:e})=>S({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Jw(e))),kt=p.forwardRef(function(t,n){const r=p.useContext(u3),o=p.useContext(d3),i=nm(r,t),a=Re({props:i,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:f=!1,disableElevation:h=!1,disableFocusRipple:w=!1,endIcon:y,focusVisibleClassName:x,fullWidth:C=!1,size:v="medium",startIcon:m,type:b,variant:R="text"}=a,k=se(a,f3),T=S({},a,{color:l,component:c,disabled:f,disableElevation:h,disableFocusRipple:w,fullWidth:C,size:v,type:b,variant:R}),P=p3(T),j=m&&d.jsx(m3,{className:P.startIcon,ownerState:T,children:m}),N=y&&d.jsx(g3,{className:P.endIcon,ownerState:T,children:y}),O=o||"";return d.jsxs(h3,S({ownerState:T,className:le(r.className,P.root,u,O),component:c,disabled:f,focusRipple:!w,focusVisibleClassName:le(P.focusVisible,x),ref:n,type:b},k,{classes:P,children:[j,s,N]}))});function v3(e){return be("MuiCard",e)}we("MuiCard",["root"]);const y3=["className","raised"],x3=e=>{const{classes:t}=e;return Se({root:["root"]},v3,t)},b3=ie(En,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),ad=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiCard"}),{className:o,raised:i=!1}=r,a=se(r,y3),s=S({},r,{raised:i}),l=x3(s);return d.jsx(b3,S({className:le(l.root,o),elevation:i?8:void 0,ref:n,ownerState:s},a))});function w3(e){return be("MuiCardContent",e)}we("MuiCardContent",["root"]);const S3=["className","component"],C3=e=>{const{classes:t}=e;return Se({root:["root"]},w3,t)},R3=ie("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),Cm=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiCardContent"}),{className:o,component:i="div"}=r,a=se(r,S3),s=S({},r,{component:i}),l=C3(s);return d.jsx(R3,S({as:i,className:le(l.root,o),ownerState:s,ref:n},a))});function k3(e){return be("PrivateSwitchBase",e)}we("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const P3=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],E3=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${Z(o)}`],input:["input"]};return Se(i,k3,t)},T3=ie(Ir)(({ownerState:e})=>S({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),$3=ie("input",{shouldForwardProp:Ht})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Zw=p.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:a,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:f,id:h,inputProps:w,inputRef:y,name:x,onBlur:C,onChange:v,onFocus:m,readOnly:b,required:R=!1,tabIndex:k,type:T,value:P}=t,j=se(t,P3),[N,O]=gs({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),F=br(),W=_=>{m&&m(_),F&&F.onFocus&&F.onFocus(_)},U=_=>{C&&C(_),F&&F.onBlur&&F.onBlur(_)},G=_=>{if(_.nativeEvent.defaultPrevented)return;const E=_.target.checked;O(E),v&&v(_,E)};let ee=l;F&&typeof ee>"u"&&(ee=F.disabled);const J=T==="checkbox"||T==="radio",re=S({},t,{checked:N,disabled:ee,disableFocusRipple:c,edge:u}),I=E3(re);return d.jsxs(T3,S({component:"span",className:le(I.root,a),centerRipple:!0,focusRipple:!c,disabled:ee,tabIndex:null,role:void 0,onFocus:W,onBlur:U,ownerState:re,ref:n},j,{children:[d.jsx($3,S({autoFocus:r,checked:o,defaultChecked:s,className:I.input,disabled:ee,id:J?h:void 0,name:x,onChange:G,readOnly:b,ref:y,required:R,ownerState:re,tabIndex:k,type:T},T==="checkbox"&&P===void 0?{}:{value:P},w)),N?i:f]}))}),M3=Vt(d.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),j3=Vt(d.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),O3=Vt(d.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function I3(e){return be("MuiCheckbox",e)}const ef=we("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),_3=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],L3=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate",`color${Z(r)}`,`size${Z(o)}`]},a=Se(i,I3,t);return S({},t,a)},A3=ie(Zw,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Z(n.size)}`],n.color!=="default"&&t[`color${Z(n.color)}`]]}})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${ef.checked}, &.${ef.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${ef.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),N3=d.jsx(j3,{}),D3=d.jsx(M3,{}),z3=d.jsx(O3,{}),Rm=p.forwardRef(function(t,n){var r,o;const i=Re({props:t,name:"MuiCheckbox"}),{checkedIcon:a=N3,color:s="primary",icon:l=D3,indeterminate:c=!1,indeterminateIcon:u=z3,inputProps:f,size:h="medium",className:w}=i,y=se(i,_3),x=c?u:l,C=c?u:a,v=S({},i,{color:s,indeterminate:c,size:h}),m=L3(v);return d.jsx(A3,S({type:"checkbox",inputProps:S({"data-indeterminate":c},f),icon:p.cloneElement(x,{fontSize:(r=x.props.fontSize)!=null?r:h}),checkedIcon:p.cloneElement(C,{fontSize:(o=C.props.fontSize)!=null?o:h}),ownerState:v,ref:n,className:le(m.root,w)},y,{classes:m}))});function B3(e){return be("MuiCircularProgress",e)}we("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const F3=["className","color","disableShrink","size","style","thickness","value","variant"];let sd=e=>e,ey,ty,ny,ry;const Hr=44,U3=Qi(ey||(ey=sd` +`),$n.rippleVisible,z5,Rp,({theme:e})=>e.transitions.easing.easeInOut,$n.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,$n.child,$n.childLeaving,B5,Rp,({theme:e})=>e.transitions.easing.easeInOut,$n.childPulsate,F5,({theme:e})=>e.transitions.easing.easeInOut),H5=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,s=se(r,N5),[l,c]=p.useState([]),u=p.useRef(0),f=p.useRef(null);p.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const h=p.useRef(!1),w=To(),y=p.useRef(null),x=p.useRef(null),C=p.useCallback(k=>{const{pulsate:R,rippleX:T,rippleY:P,rippleSize:j,cb:N}=k;c(I=>[...I,d.jsx(W5,{classes:{ripple:le(i.ripple,$n.ripple),rippleVisible:le(i.rippleVisible,$n.rippleVisible),ripplePulsate:le(i.ripplePulsate,$n.ripplePulsate),child:le(i.child,$n.child),childLeaving:le(i.childLeaving,$n.childLeaving),childPulsate:le(i.childPulsate,$n.childPulsate)},timeout:Rp,pulsate:R,rippleX:T,rippleY:P,rippleSize:j},u.current)]),u.current+=1,f.current=N},[i]),v=p.useCallback((k={},R={},T=()=>{})=>{const{pulsate:P=!1,center:j=o||R.pulsate,fakeElement:N=!1}=R;if((k==null?void 0:k.type)==="mousedown"&&h.current){h.current=!1;return}(k==null?void 0:k.type)==="touchstart"&&(h.current=!0);const I=N?null:x.current,F=I?I.getBoundingClientRect():{width:0,height:0,left:0,top:0};let H,U,q;if(j||k===void 0||k.clientX===0&&k.clientY===0||!k.clientX&&!k.touches)H=Math.round(F.width/2),U=Math.round(F.height/2);else{const{clientX:ee,clientY:J}=k.touches&&k.touches.length>0?k.touches[0]:k;H=Math.round(ee-F.left),U=Math.round(J-F.top)}if(j)q=Math.sqrt((2*F.width**2+F.height**2)/3),q%2===0&&(q+=1);else{const ee=Math.max(Math.abs((I?I.clientWidth:0)-H),H)*2+2,J=Math.max(Math.abs((I?I.clientHeight:0)-U),U)*2+2;q=Math.sqrt(ee**2+J**2)}k!=null&&k.touches?y.current===null&&(y.current=()=>{C({pulsate:P,rippleX:H,rippleY:U,rippleSize:q,cb:T})},w.start(D5,()=>{y.current&&(y.current(),y.current=null)})):C({pulsate:P,rippleX:H,rippleY:U,rippleSize:q,cb:T})},[o,C,w]),m=p.useCallback(()=>{v({},{pulsate:!0})},[v]),b=p.useCallback((k,R)=>{if(w.clear(),(k==null?void 0:k.type)==="touchend"&&y.current){y.current(),y.current=null,w.start(0,()=>{b(k,R)});return}y.current=null,c(T=>T.length>0?T.slice(1):T),f.current=R},[w]);return p.useImperativeHandle(n,()=>({pulsate:m,start:v,stop:b}),[m,v,b]),d.jsx(U5,S({className:le($n.root,i.root,a),ref:x},s,{children:d.jsx(fm,{component:null,exit:!0,children:l})}))});function V5(e){return be("MuiButtonBase",e)}const q5=we("MuiButtonBase",["root","disabled","focusVisible"]),G5=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],K5=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Se({root:["root",t&&"disabled",n&&"focusVisible"]},V5,o);return n&&r&&(a.root+=` ${r}`),a},Y5=ie("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${q5.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ir=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:h=!1,LinkComponent:w="a",onBlur:y,onClick:x,onContextMenu:C,onDragLeave:v,onFocus:m,onFocusVisible:b,onKeyDown:k,onKeyUp:R,onMouseDown:T,onMouseLeave:P,onMouseUp:j,onTouchEnd:N,onTouchMove:I,onTouchStart:F,tabIndex:H=0,TouchRippleProps:U,touchRippleRef:q,type:ee}=r,J=se(r,G5),re=p.useRef(null),O=p.useRef(null),_=lt(O,q),{isFocusVisibleRef:E,onFocus:g,onBlur:$,ref:z}=om(),[L,B]=p.useState(!1);c&&L&&B(!1),p.useImperativeHandle(o,()=>({focusVisible:()=>{B(!0),re.current.focus()}}),[]);const[V,M]=p.useState(!1);p.useEffect(()=>{M(!0)},[]);const A=V&&!u&&!c;p.useEffect(()=>{L&&h&&!u&&V&&O.current.pulsate()},[u,h,L,V]);function G(he,Ge,Xe=f){return Yt(Ye=>(Ge&&Ge(Ye),!Xe&&O.current&&O.current[he](Ye),!0))}const Y=G("start",T),K=G("stop",C),oe=G("stop",v),te=G("stop",j),ne=G("stop",he=>{L&&he.preventDefault(),P&&P(he)}),de=G("start",F),Re=G("stop",N),W=G("stop",I),ae=G("stop",he=>{$(he),E.current===!1&&B(!1),y&&y(he)},!1),ge=Yt(he=>{re.current||(re.current=he.currentTarget),g(he),E.current===!0&&(B(!0),b&&b(he)),m&&m(he)}),D=()=>{const he=re.current;return l&&l!=="button"&&!(he.tagName==="A"&&he.href)},X=p.useRef(!1),fe=Yt(he=>{h&&!X.current&&L&&O.current&&he.key===" "&&(X.current=!0,O.current.stop(he,()=>{O.current.start(he)})),he.target===he.currentTarget&&D()&&he.key===" "&&he.preventDefault(),k&&k(he),he.target===he.currentTarget&&D()&&he.key==="Enter"&&!c&&(he.preventDefault(),x&&x(he))}),pe=Yt(he=>{h&&he.key===" "&&O.current&&L&&!he.defaultPrevented&&(X.current=!1,O.current.stop(he,()=>{O.current.pulsate(he)})),R&&R(he),x&&he.target===he.currentTarget&&D()&&he.key===" "&&!he.defaultPrevented&&x(he)});let ve=l;ve==="button"&&(J.href||J.to)&&(ve=w);const Ce={};ve==="button"?(Ce.type=ee===void 0?"button":ee,Ce.disabled=c):(!J.href&&!J.to&&(Ce.role="button"),c&&(Ce["aria-disabled"]=c));const Le=lt(n,z,re),De=S({},r,{centerRipple:i,component:l,disabled:c,disableRipple:u,disableTouchRipple:f,focusRipple:h,tabIndex:H,focusVisible:L}),Ee=K5(De);return d.jsxs(Y5,S({as:ve,className:le(Ee.root,s),ownerState:De,onBlur:ae,onClick:x,onContextMenu:K,onFocus:ge,onKeyDown:fe,onKeyUp:pe,onMouseDown:Y,onMouseLeave:ne,onMouseUp:te,onDragLeave:oe,onTouchEnd:Re,onTouchMove:W,onTouchStart:de,ref:Le,tabIndex:c?-1:H,type:ee},Ce,J,{children:[a,A?d.jsx(H5,S({ref:_,center:i},U)):null]}))});function X5(e){return be("MuiAlert",e)}const A0=we("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function Q5(e){return be("MuiIconButton",e)}const J5=we("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Z5=["edge","children","className","color","disabled","disableFocusRipple","size"],eM=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${Z(r)}`,o&&`edge${Z(o)}`,`size${Z(i)}`]};return Se(a,Q5,t)},tM=ie(Ir,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Z(n.color)}`],n.edge&&t[`edge${Z(n.edge)}`],t[`size${Z(n.size)}`]]}})(({theme:e,ownerState:t})=>S({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return S({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&S({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":S({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${J5.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),ut=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium"}=r,f=se(r,Z5),h=S({},r,{edge:o,color:s,disabled:l,disableFocusRipple:c,size:u}),w=eM(h);return d.jsx(tM,S({className:le(w.root,a),centerRipple:!0,focusRipple:!c,disabled:l,ref:n},f,{ownerState:h,children:i}))}),nM=Vt(d.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),rM=Vt(d.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),oM=Vt(d.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),iM=Vt(d.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),aM=Vt(d.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),sM=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],lM=Qu(),cM=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`color${Z(n||r)}`,`${t}${Z(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Se(i,X5,o)},uM=ie(En,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Z(n.color||n.severity)}`]]}})(({theme:e})=>{const t=e.palette.mode==="light"?kc:Rc,n=e.palette.mode==="light"?Rc:kc;return S({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${A0.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${A0.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.dark).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:S({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)})}))]})}),dM=ie("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),fM=ie("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),N0=ie("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),D0={success:d.jsx(nM,{fontSize:"inherit"}),warning:d.jsx(rM,{fontSize:"inherit"}),error:d.jsx(oM,{fontSize:"inherit"}),info:d.jsx(iM,{fontSize:"inherit"})},xr=p.forwardRef(function(t,n){const r=lM({props:t,name:"MuiAlert"}),{action:o,children:i,className:a,closeText:s="Close",color:l,components:c={},componentsProps:u={},icon:f,iconMapping:h=D0,onClose:w,role:y="alert",severity:x="success",slotProps:C={},slots:v={},variant:m="standard"}=r,b=se(r,sM),k=S({},r,{color:l,severity:x,variant:m,colorSeverity:l||x}),R=cM(k),T={slots:S({closeButton:c.CloseButton,closeIcon:c.CloseIcon},v),slotProps:S({},u,C)},[P,j]=kp("closeButton",{elementType:ut,externalForwardedProps:T,ownerState:k}),[N,I]=kp("closeIcon",{elementType:aM,externalForwardedProps:T,ownerState:k});return d.jsxs(uM,S({role:y,elevation:0,ownerState:k,className:le(R.root,a),ref:n},b,{children:[f!==!1?d.jsx(dM,{ownerState:k,className:R.icon,children:f||h[x]||D0[x]}):null,d.jsx(fM,{ownerState:k,className:R.message,children:i}),o!=null?d.jsx(N0,{ownerState:k,className:R.action,children:o}):null,o==null&&w?d.jsx(N0,{ownerState:k,className:R.action,children:d.jsx(P,S({size:"small","aria-label":s,title:s,color:"inherit",onClick:w},j,{children:d.jsx(N,S({fontSize:"small"},I))}))}):null]}))});function pM(e){return be("MuiTypography",e)}we("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const hM=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],mM=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,e.align!=="inherit"&&`align${Z(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Se(s,pM,a)},gM=ie("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Z(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>S({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),z0={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},vM={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},yM=e=>vM[e]||e,Ie=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiTypography"}),o=yM(r.color),i=Tu(S({},r,{color:o})),{align:a="inherit",className:s,component:l,gutterBottom:c=!1,noWrap:u=!1,paragraph:f=!1,variant:h="body1",variantMapping:w=z0}=i,y=se(i,hM),x=S({},i,{align:a,color:o,className:s,component:l,gutterBottom:c,noWrap:u,paragraph:f,variant:h,variantMapping:w}),C=l||(f?"p":w[h]||z0[h])||"span",v=mM(x);return d.jsx(gM,S({as:C,ref:n,ownerState:x,className:le(v.root,s)},y))});function xM(e){return be("MuiAppBar",e)}we("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const bM=["className","color","enableColorOnDark","position"],wM=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${Z(t)}`,`position${Z(n)}`]};return Se(o,xM,r)},pl=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,SM=ie(En,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Z(n.position)}`],t[`color${Z(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return S({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&S({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&S({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&S({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:pl(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:pl(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:pl(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:pl(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),CM=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:a=!1,position:s="fixed"}=r,l=se(r,bM),c=S({},r,{color:i,position:s,enableColorOnDark:a}),u=wM(c);return d.jsx(SM,S({square:!0,component:"header",ownerState:c,elevation:4,className:le(u.root,o,s==="fixed"&&"mui-fixed"),ref:n},l))});function kM(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=hw({badgeContent:t,max:r});let a=n;n===!1&&t===0&&!o&&(a=!0);const{badgeContent:s,max:l=r}=a?i:e,c=s&&Number(s)>l?`${l}+`:s;return{badgeContent:s,invisible:a,max:l,displayValue:c}}const Ow="base";function RM(e){return`${Ow}--${e}`}function PM(e,t){return`${Ow}-${e}-${t}`}function Iw(e,t){const n=aw[t];return n?RM(n):PM(e,t)}function EM(e,t){const n={};return t.forEach(r=>{n[r]=Iw(e,r)}),n}function B0(e){return e.substring(2).toLowerCase()}function TM(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=lt(t.ref,s),f=Yt(y=>{const x=c.current;c.current=!1;const C=St(s.current);if(!l.current||!s.current||"clientX"in y&&TM(y,C))return;if(a.current){a.current=!1;return}let v;y.composedPath?v=y.composedPath().indexOf(s.current)>-1:v=!C.documentElement.contains(y.target)||s.current.contains(y.target),!v&&(n||!x)&&o(y)}),h=y=>x=>{c.current=!0;const C=t.props[y];C&&C(x)},w={ref:u};return i!==!1&&(w[i]=h(i)),p.useEffect(()=>{if(i!==!1){const y=B0(i),x=St(s.current),C=()=>{a.current=!0};return x.addEventListener(y,f),x.addEventListener("touchmove",C),()=>{x.removeEventListener(y,f),x.removeEventListener("touchmove",C)}}},[f,i]),r!==!1&&(w[r]=h(r)),p.useEffect(()=>{if(r!==!1){const y=B0(r),x=St(s.current);return x.addEventListener(y,f),()=>{x.removeEventListener(y,f)}}},[f,r]),d.jsx(p.Fragment,{children:p.cloneElement(t,w)})}const MM=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function jM(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function OM(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function IM(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||OM(e))}function _M(e){const t=[],n=[];return Array.from(e.querySelectorAll(MM)).forEach((r,o)=>{const i=jM(r);i===-1||!IM(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function LM(){return!0}function AM(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=_M,isEnabled:a=LM,open:s}=e,l=p.useRef(!1),c=p.useRef(null),u=p.useRef(null),f=p.useRef(null),h=p.useRef(null),w=p.useRef(!1),y=p.useRef(null),x=lt(t.ref,y),C=p.useRef(null);p.useEffect(()=>{!s||!y.current||(w.current=!n)},[n,s]),p.useEffect(()=>{if(!s||!y.current)return;const b=St(y.current);return y.current.contains(b.activeElement)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex","-1"),w.current&&y.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),p.useEffect(()=>{if(!s||!y.current)return;const b=St(y.current),k=P=>{C.current=P,!(r||!a()||P.key!=="Tab")&&b.activeElement===y.current&&P.shiftKey&&(l.current=!0,u.current&&u.current.focus())},R=()=>{const P=y.current;if(P===null)return;if(!b.hasFocus()||!a()||l.current){l.current=!1;return}if(P.contains(b.activeElement)||r&&b.activeElement!==c.current&&b.activeElement!==u.current)return;if(b.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!w.current)return;let j=[];if((b.activeElement===c.current||b.activeElement===u.current)&&(j=i(y.current)),j.length>0){var N,I;const F=!!((N=C.current)!=null&&N.shiftKey&&((I=C.current)==null?void 0:I.key)==="Tab"),H=j[0],U=j[j.length-1];typeof H!="string"&&typeof U!="string"&&(F?U.focus():H.focus())}else P.focus()};b.addEventListener("focusin",R),b.addEventListener("keydown",k,!0);const T=setInterval(()=>{b.activeElement&&b.activeElement.tagName==="BODY"&&R()},50);return()=>{clearInterval(T),b.removeEventListener("focusin",R),b.removeEventListener("keydown",k,!0)}},[n,r,o,a,s,i]);const v=b=>{f.current===null&&(f.current=b.relatedTarget),w.current=!0,h.current=b.target;const k=t.props.onFocus;k&&k(b)},m=b=>{f.current===null&&(f.current=b.relatedTarget),w.current=!0};return d.jsxs(p.Fragment,{children:[d.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:c,"data-testid":"sentinelStart"}),p.cloneElement(t,{ref:x,onFocus:v}),d.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:u,"data-testid":"sentinelEnd"})]})}function NM(e){return typeof e=="function"?e():e}const _w=p.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[a,s]=p.useState(null),l=lt(p.isValidElement(r)?r.ref:null,n);if(Sn(()=>{i||s(NM(o)||document.body)},[o,i]),Sn(()=>{if(a&&!i)return Cc(n,a),()=>{Cc(n,null)}},[n,a,i]),i){if(p.isValidElement(r)){const c={ref:l};return p.cloneElement(r,c)}return d.jsx(p.Fragment,{children:r})}return d.jsx(p.Fragment,{children:a&&Oh.createPortal(r,a)})});function DM(e){const t=St(e);return t.body===e?Bn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Ua(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function F0(e){return parseInt(Bn(e).getComputedStyle(e).paddingRight,10)||0}function zM(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function U0(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const s=i.indexOf(a)===-1,l=!zM(a);s&&l&&Ua(a,o)})}function Xd(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function BM(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(DM(r)){const a=fw(St(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${F0(r)+a}px`;const s=St(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${F0(l)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=St(r).body;else{const a=r.parentElement,s=Bn(r);i=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:s})=>{i?a.style.setProperty(s,i):a.style.removeProperty(s)})}}function FM(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class UM{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Ua(t.modalRef,!1);const o=FM(n);U0(n,t.mount,t.modalRef,o,!0);const i=Xd(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Xd(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=BM(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Xd(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Ua(t.modalRef,n),U0(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&Ua(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function WM(e){return typeof e=="function"?e():e}function HM(e){return e?e.props.hasOwnProperty("in"):!1}const VM=new UM;function qM(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=VM,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:f}=e,h=p.useRef({}),w=p.useRef(null),y=p.useRef(null),x=lt(y,f),[C,v]=p.useState(!u),m=HM(l);let b=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(b=!1);const k=()=>St(w.current),R=()=>(h.current.modalRef=y.current,h.current.mount=w.current,h.current),T=()=>{o.mount(R(),{disableScrollLock:r}),y.current&&(y.current.scrollTop=0)},P=Yt(()=>{const J=WM(t)||k().body;o.add(R(),J),y.current&&T()}),j=p.useCallback(()=>o.isTopModal(R()),[o]),N=Yt(J=>{w.current=J,J&&(u&&j()?T():y.current&&Ua(y.current,b))}),I=p.useCallback(()=>{o.remove(R(),b)},[b,o]);p.useEffect(()=>()=>{I()},[I]),p.useEffect(()=>{u?P():(!m||!i)&&I()},[u,I,m,i,P]);const F=J=>re=>{var O;(O=J.onKeyDown)==null||O.call(J,re),!(re.key!=="Escape"||re.which===229||!j())&&(n||(re.stopPropagation(),c&&c(re,"escapeKeyDown")))},H=J=>re=>{var O;(O=J.onClick)==null||O.call(J,re),re.target===re.currentTarget&&c&&c(re,"backdropClick")};return{getRootProps:(J={})=>{const re=Tc(e);delete re.onTransitionEnter,delete re.onTransitionExited;const O=S({},re,J);return S({role:"presentation"},O,{onKeyDown:F(O),ref:x})},getBackdropProps:(J={})=>{const re=J;return S({"aria-hidden":!0},re,{onClick:H(re),open:u})},getTransitionProps:()=>{const J=()=>{v(!1),a&&a()},re=()=>{v(!0),s&&s(),i&&I()};return{onEnter:yp(J,l==null?void 0:l.props.onEnter),onExited:yp(re,l==null?void 0:l.props.onExited)}},rootRef:x,portalRef:N,isTopModal:j,exited:C,hasTransition:m}}var cn="top",Un="bottom",Wn="right",un="left",hm="auto",zs=[cn,Un,Wn,un],Di="start",vs="end",GM="clippingParents",Lw="viewport",ya="popper",KM="reference",W0=zs.reduce(function(e,t){return e.concat([t+"-"+Di,t+"-"+vs])},[]),Aw=[].concat(zs,[hm]).reduce(function(e,t){return e.concat([t,t+"-"+Di,t+"-"+vs])},[]),YM="beforeRead",XM="read",QM="afterRead",JM="beforeMain",ZM="main",ej="afterMain",tj="beforeWrite",nj="write",rj="afterWrite",oj=[YM,XM,QM,JM,ZM,ej,tj,nj,rj];function yr(e){return e?(e.nodeName||"").toLowerCase():null}function Cn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Wo(e){var t=Cn(e).Element;return e instanceof t||e instanceof Element}function Nn(e){var t=Cn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function mm(e){if(typeof ShadowRoot>"u")return!1;var t=Cn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ij(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Nn(i)||!yr(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function aj(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,c){return l[c]="",l},{});!Nn(o)||!yr(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const sj={name:"applyStyles",enabled:!0,phase:"write",fn:ij,effect:aj,requires:["computeStyles"]};function mr(e){return e.split("-")[0]}var Io=Math.max,$c=Math.min,zi=Math.round;function Pp(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Nw(){return!/^((?!chrome|android).)*safari/i.test(Pp())}function Bi(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Nn(e)&&(o=e.offsetWidth>0&&zi(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&zi(r.height)/e.offsetHeight||1);var a=Wo(e)?Cn(e):window,s=a.visualViewport,l=!Nw()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/o,u=(r.top+(l&&s?s.offsetTop:0))/i,f=r.width/o,h=r.height/i;return{width:f,height:h,top:u,right:c+f,bottom:u+h,left:c,x:c,y:u}}function gm(e){var t=Bi(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Dw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&mm(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function _r(e){return Cn(e).getComputedStyle(e)}function lj(e){return["table","td","th"].indexOf(yr(e))>=0}function go(e){return((Wo(e)?e.ownerDocument:e.document)||window.document).documentElement}function Zu(e){return yr(e)==="html"?e:e.assignedSlot||e.parentNode||(mm(e)?e.host:null)||go(e)}function H0(e){return!Nn(e)||_r(e).position==="fixed"?null:e.offsetParent}function cj(e){var t=/firefox/i.test(Pp()),n=/Trident/i.test(Pp());if(n&&Nn(e)){var r=_r(e);if(r.position==="fixed")return null}var o=Zu(e);for(mm(o)&&(o=o.host);Nn(o)&&["html","body"].indexOf(yr(o))<0;){var i=_r(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Bs(e){for(var t=Cn(e),n=H0(e);n&&lj(n)&&_r(n).position==="static";)n=H0(n);return n&&(yr(n)==="html"||yr(n)==="body"&&_r(n).position==="static")?t:n||cj(e)||t}function vm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Wa(e,t,n){return Io(e,$c(t,n))}function uj(e,t,n){var r=Wa(e,t,n);return r>n?n:r}function zw(){return{top:0,right:0,bottom:0,left:0}}function Bw(e){return Object.assign({},zw(),e)}function Fw(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var dj=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Bw(typeof t!="number"?t:Fw(t,zs))};function fj(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=mr(n.placement),l=vm(s),c=[un,Wn].indexOf(s)>=0,u=c?"height":"width";if(!(!i||!a)){var f=dj(o.padding,n),h=gm(i),w=l==="y"?cn:un,y=l==="y"?Un:Wn,x=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],C=a[l]-n.rects.reference[l],v=Bs(i),m=v?l==="y"?v.clientHeight||0:v.clientWidth||0:0,b=x/2-C/2,k=f[w],R=m-h[u]-f[y],T=m/2-h[u]/2+b,P=Wa(k,T,R),j=l;n.modifiersData[r]=(t={},t[j]=P,t.centerOffset=P-T,t)}}function pj(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Dw(t.elements.popper,o)&&(t.elements.arrow=o))}const hj={name:"arrow",enabled:!0,phase:"main",fn:fj,effect:pj,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Fi(e){return e.split("-")[1]}var mj={top:"auto",right:"auto",bottom:"auto",left:"auto"};function gj(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:zi(n*o)/o||0,y:zi(r*o)/o||0}}function V0(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,h=a.x,w=h===void 0?0:h,y=a.y,x=y===void 0?0:y,C=typeof u=="function"?u({x:w,y:x}):{x:w,y:x};w=C.x,x=C.y;var v=a.hasOwnProperty("x"),m=a.hasOwnProperty("y"),b=un,k=cn,R=window;if(c){var T=Bs(n),P="clientHeight",j="clientWidth";if(T===Cn(n)&&(T=go(n),_r(T).position!=="static"&&s==="absolute"&&(P="scrollHeight",j="scrollWidth")),T=T,o===cn||(o===un||o===Wn)&&i===vs){k=Un;var N=f&&T===R&&R.visualViewport?R.visualViewport.height:T[P];x-=N-r.height,x*=l?1:-1}if(o===un||(o===cn||o===Un)&&i===vs){b=Wn;var I=f&&T===R&&R.visualViewport?R.visualViewport.width:T[j];w-=I-r.width,w*=l?1:-1}}var F=Object.assign({position:s},c&&mj),H=u===!0?gj({x:w,y:x},Cn(n)):{x:w,y:x};if(w=H.x,x=H.y,l){var U;return Object.assign({},F,(U={},U[k]=m?"0":"",U[b]=v?"0":"",U.transform=(R.devicePixelRatio||1)<=1?"translate("+w+"px, "+x+"px)":"translate3d("+w+"px, "+x+"px, 0)",U))}return Object.assign({},F,(t={},t[k]=m?x+"px":"",t[b]=v?w+"px":"",t.transform="",t))}function vj(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:mr(t.placement),variation:Fi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,V0(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,V0(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const yj={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:vj,data:{}};var hl={passive:!0};function xj(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,l=Cn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,hl)}),s&&l.addEventListener("resize",n.update,hl),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,hl)}),s&&l.removeEventListener("resize",n.update,hl)}}const bj={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:xj,data:{}};var wj={left:"right",right:"left",bottom:"top",top:"bottom"};function Wl(e){return e.replace(/left|right|bottom|top/g,function(t){return wj[t]})}var Sj={start:"end",end:"start"};function q0(e){return e.replace(/start|end/g,function(t){return Sj[t]})}function ym(e){var t=Cn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function xm(e){return Bi(go(e)).left+ym(e).scrollLeft}function Cj(e,t){var n=Cn(e),r=go(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=Nw();(c||!c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+xm(e),y:l}}function kj(e){var t,n=go(e),r=ym(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Io(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Io(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+xm(e),l=-r.scrollTop;return _r(o||n).direction==="rtl"&&(s+=Io(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function bm(e){var t=_r(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Uw(e){return["html","body","#document"].indexOf(yr(e))>=0?e.ownerDocument.body:Nn(e)&&bm(e)?e:Uw(Zu(e))}function Ha(e,t){var n;t===void 0&&(t=[]);var r=Uw(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Cn(r),a=o?[i].concat(i.visualViewport||[],bm(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Ha(Zu(a)))}function Ep(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Rj(e,t){var n=Bi(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function G0(e,t,n){return t===Lw?Ep(Cj(e,n)):Wo(t)?Rj(t,n):Ep(kj(go(e)))}function Pj(e){var t=Ha(Zu(e)),n=["absolute","fixed"].indexOf(_r(e).position)>=0,r=n&&Nn(e)?Bs(e):e;return Wo(r)?t.filter(function(o){return Wo(o)&&Dw(o,r)&&yr(o)!=="body"}):[]}function Ej(e,t,n,r){var o=t==="clippingParents"?Pj(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(l,c){var u=G0(e,c,r);return l.top=Io(u.top,l.top),l.right=$c(u.right,l.right),l.bottom=$c(u.bottom,l.bottom),l.left=Io(u.left,l.left),l},G0(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Ww(e){var t=e.reference,n=e.element,r=e.placement,o=r?mr(r):null,i=r?Fi(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case cn:l={x:a,y:t.y-n.height};break;case Un:l={x:a,y:t.y+t.height};break;case Wn:l={x:t.x+t.width,y:s};break;case un:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=o?vm(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case Di:l[c]=l[c]-(t[u]/2-n[u]/2);break;case vs:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function ys(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,s=n.boundary,l=s===void 0?GM:s,c=n.rootBoundary,u=c===void 0?Lw:c,f=n.elementContext,h=f===void 0?ya:f,w=n.altBoundary,y=w===void 0?!1:w,x=n.padding,C=x===void 0?0:x,v=Bw(typeof C!="number"?C:Fw(C,zs)),m=h===ya?KM:ya,b=e.rects.popper,k=e.elements[y?m:h],R=Ej(Wo(k)?k:k.contextElement||go(e.elements.popper),l,u,a),T=Bi(e.elements.reference),P=Ww({reference:T,element:b,strategy:"absolute",placement:o}),j=Ep(Object.assign({},b,P)),N=h===ya?j:T,I={top:R.top-N.top+v.top,bottom:N.bottom-R.bottom+v.bottom,left:R.left-N.left+v.left,right:N.right-R.right+v.right},F=e.modifiersData.offset;if(h===ya&&F){var H=F[o];Object.keys(I).forEach(function(U){var q=[Wn,Un].indexOf(U)>=0?1:-1,ee=[cn,Un].indexOf(U)>=0?"y":"x";I[U]+=H[ee]*q})}return I}function Tj(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Aw:l,u=Fi(r),f=u?s?W0:W0.filter(function(y){return Fi(y)===u}):zs,h=f.filter(function(y){return c.indexOf(y)>=0});h.length===0&&(h=f);var w=h.reduce(function(y,x){return y[x]=ys(e,{placement:x,boundary:o,rootBoundary:i,padding:a})[mr(x)],y},{});return Object.keys(w).sort(function(y,x){return w[y]-w[x]})}function $j(e){if(mr(e)===hm)return[];var t=Wl(e);return[q0(e),t,q0(t)]}function Mj(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,h=n.altBoundary,w=n.flipVariations,y=w===void 0?!0:w,x=n.allowedAutoPlacements,C=t.options.placement,v=mr(C),m=v===C,b=l||(m||!y?[Wl(C)]:$j(C)),k=[C].concat(b).reduce(function(L,B){return L.concat(mr(B)===hm?Tj(t,{placement:B,boundary:u,rootBoundary:f,padding:c,flipVariations:y,allowedAutoPlacements:x}):B)},[]),R=t.rects.reference,T=t.rects.popper,P=new Map,j=!0,N=k[0],I=0;I=0,ee=q?"width":"height",J=ys(t,{placement:F,boundary:u,rootBoundary:f,altBoundary:h,padding:c}),re=q?U?Wn:un:U?Un:cn;R[ee]>T[ee]&&(re=Wl(re));var O=Wl(re),_=[];if(i&&_.push(J[H]<=0),s&&_.push(J[re]<=0,J[O]<=0),_.every(function(L){return L})){N=F,j=!1;break}P.set(F,_)}if(j)for(var E=y?3:1,g=function(B){var V=k.find(function(M){var A=P.get(M);if(A)return A.slice(0,B).every(function(G){return G})});if(V)return N=V,"break"},$=E;$>0;$--){var z=g($);if(z==="break")break}t.placement!==N&&(t.modifiersData[r]._skip=!0,t.placement=N,t.reset=!0)}}const jj={name:"flip",enabled:!0,phase:"main",fn:Mj,requiresIfExists:["offset"],data:{_skip:!1}};function K0(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Y0(e){return[cn,Wn,Un,un].some(function(t){return e[t]>=0})}function Oj(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ys(t,{elementContext:"reference"}),s=ys(t,{altBoundary:!0}),l=K0(a,r),c=K0(s,o,i),u=Y0(l),f=Y0(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const Ij={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Oj};function _j(e,t,n){var r=mr(e),o=[un,cn].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[un,Wn].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function Lj(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=Aw.reduce(function(u,f){return u[f]=_j(f,t.rects,i),u},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}const Aj={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Lj};function Nj(e){var t=e.state,n=e.name;t.modifiersData[n]=Ww({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Dj={name:"popperOffsets",enabled:!0,phase:"read",fn:Nj,data:{}};function zj(e){return e==="x"?"y":"x"}function Bj(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,h=n.tether,w=h===void 0?!0:h,y=n.tetherOffset,x=y===void 0?0:y,C=ys(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),v=mr(t.placement),m=Fi(t.placement),b=!m,k=vm(v),R=zj(k),T=t.modifiersData.popperOffsets,P=t.rects.reference,j=t.rects.popper,N=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,I=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,H={x:0,y:0};if(T){if(i){var U,q=k==="y"?cn:un,ee=k==="y"?Un:Wn,J=k==="y"?"height":"width",re=T[k],O=re+C[q],_=re-C[ee],E=w?-j[J]/2:0,g=m===Di?P[J]:j[J],$=m===Di?-j[J]:-P[J],z=t.elements.arrow,L=w&&z?gm(z):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:zw(),V=B[q],M=B[ee],A=Wa(0,P[J],L[J]),G=b?P[J]/2-E-A-V-I.mainAxis:g-A-V-I.mainAxis,Y=b?-P[J]/2+E+A+M+I.mainAxis:$+A+M+I.mainAxis,K=t.elements.arrow&&Bs(t.elements.arrow),oe=K?k==="y"?K.clientTop||0:K.clientLeft||0:0,te=(U=F==null?void 0:F[k])!=null?U:0,ne=re+G-te-oe,de=re+Y-te,Re=Wa(w?$c(O,ne):O,re,w?Io(_,de):_);T[k]=Re,H[k]=Re-re}if(s){var W,ae=k==="x"?cn:un,ge=k==="x"?Un:Wn,D=T[R],X=R==="y"?"height":"width",fe=D+C[ae],pe=D-C[ge],ve=[cn,un].indexOf(v)!==-1,Ce=(W=F==null?void 0:F[R])!=null?W:0,Le=ve?fe:D-P[X]-j[X]-Ce+I.altAxis,De=ve?D+P[X]+j[X]-Ce-I.altAxis:pe,Ee=w&&ve?uj(Le,D,De):Wa(w?Le:fe,D,w?De:pe);T[R]=Ee,H[R]=Ee-D}t.modifiersData[r]=H}}const Fj={name:"preventOverflow",enabled:!0,phase:"main",fn:Bj,requiresIfExists:["offset"]};function Uj(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Wj(e){return e===Cn(e)||!Nn(e)?ym(e):Uj(e)}function Hj(e){var t=e.getBoundingClientRect(),n=zi(t.width)/e.offsetWidth||1,r=zi(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Vj(e,t,n){n===void 0&&(n=!1);var r=Nn(t),o=Nn(t)&&Hj(t),i=go(t),a=Bi(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((yr(t)!=="body"||bm(i))&&(s=Wj(t)),Nn(t)?(l=Bi(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=xm(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function qj(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function Gj(e){var t=qj(e);return oj.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Kj(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Yj(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var X0={placement:"bottom",modifiers:[],strategy:"absolute"};function Q0(){for(var e=arguments.length,t=new Array(e),n=0;nSe({root:["root"]},j5(Zj)),iO={},aO=p.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:a,disablePortal:s,modifiers:l,open:c,placement:u,popperOptions:f,popperRef:h,slotProps:w={},slots:y={},TransitionProps:x}=t,C=se(t,eO),v=p.useRef(null),m=lt(v,n),b=p.useRef(null),k=lt(b,h),R=p.useRef(k);Sn(()=>{R.current=k},[k]),p.useImperativeHandle(h,()=>b.current,[]);const T=nO(u,a),[P,j]=p.useState(T),[N,I]=p.useState(Tp(o));p.useEffect(()=>{b.current&&b.current.forceUpdate()}),p.useEffect(()=>{o&&I(Tp(o))},[o]),Sn(()=>{if(!N||!c)return;const ee=O=>{j(O.placement)};let J=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:O})=>{ee(O)}}];l!=null&&(J=J.concat(l)),f&&f.modifiers!=null&&(J=J.concat(f.modifiers));const re=Jj(N,v.current,S({placement:T},f,{modifiers:J}));return R.current(re),()=>{re.destroy(),R.current(null)}},[N,s,l,c,f,T]);const F={placement:P};x!==null&&(F.TransitionProps=x);const H=oO(),U=(r=y.root)!=null?r:"div",q=fn({elementType:U,externalSlotProps:w.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:m},ownerState:t,className:H.root});return d.jsx(U,S({},q,{children:typeof i=="function"?i(F):i}))}),sO=p.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:f="bottom",popperOptions:h=iO,popperRef:w,style:y,transition:x=!1,slotProps:C={},slots:v={}}=t,m=se(t,tO),[b,k]=p.useState(!0),R=()=>{k(!1)},T=()=>{k(!0)};if(!l&&!u&&(!x||b))return null;let P;if(i)P=i;else if(r){const I=Tp(r);P=I&&rO(I)?St(I).body:St(null).body}const j=!u&&l&&(!x||b)?"none":void 0,N=x?{in:u,onEnter:R,onExited:T}:void 0;return d.jsx(_w,{disablePortal:s,container:P,children:d.jsx(aO,S({anchorEl:r,direction:a,disablePortal:s,modifiers:c,ref:n,open:x?!b:u,placement:f,popperOptions:h,popperRef:w,slotProps:C,slots:v},m,{style:S({position:"fixed",top:0,left:0,display:j},y),TransitionProps:N,children:o}))})});function lO(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:i}=e,a=To();p.useEffect(()=>{if(!o)return;function v(m){m.defaultPrevented||(m.key==="Escape"||m.key==="Esc")&&(r==null||r(m,"escapeKeyDown"))}return document.addEventListener("keydown",v),()=>{document.removeEventListener("keydown",v)}},[o,r]);const s=Yt((v,m)=>{r==null||r(v,m)}),l=Yt(v=>{!r||v==null||a.start(v,()=>{s(null,"timeout")})});p.useEffect(()=>(o&&l(t),a.clear),[o,t,l,a]);const c=v=>{r==null||r(v,"clickaway")},u=a.clear,f=p.useCallback(()=>{t!=null&&l(i??t*.5)},[t,i,l]),h=v=>m=>{const b=v.onBlur;b==null||b(m),f()},w=v=>m=>{const b=v.onFocus;b==null||b(m),u()},y=v=>m=>{const b=v.onMouseEnter;b==null||b(m),u()},x=v=>m=>{const b=v.onMouseLeave;b==null||b(m),f()};return p.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",f),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",u)}},[n,o,f,u]),{getRootProps:(v={})=>{const m=S({},Tc(e),Tc(v));return S({role:"presentation"},v,m,{onBlur:h(m),onFocus:w(m),onMouseEnter:y(m),onMouseLeave:x(m)})},onClickAway:c}}const cO=["onChange","maxRows","minRows","style","value"];function ml(e){return parseInt(e,10)||0}const uO={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function dO(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const fO=p.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:s}=t,l=se(t,cO),{current:c}=p.useRef(s!=null),u=p.useRef(null),f=lt(n,u),h=p.useRef(null),w=p.useCallback(()=>{const C=u.current,m=Bn(C).getComputedStyle(C);if(m.width==="0px")return{outerHeightStyle:0,overflowing:!1};const b=h.current;b.style.width=m.width,b.value=C.value||t.placeholder||"x",b.value.slice(-1)===` +`&&(b.value+=" ");const k=m.boxSizing,R=ml(m.paddingBottom)+ml(m.paddingTop),T=ml(m.borderBottomWidth)+ml(m.borderTopWidth),P=b.scrollHeight;b.value="x";const j=b.scrollHeight;let N=P;i&&(N=Math.max(Number(i)*j,N)),o&&(N=Math.min(Number(o)*j,N)),N=Math.max(N,j);const I=N+(k==="border-box"?R+T:0),F=Math.abs(N-P)<=1;return{outerHeightStyle:I,overflowing:F}},[o,i,t.placeholder]),y=p.useCallback(()=>{const C=w();if(dO(C))return;const v=u.current;v.style.height=`${C.outerHeightStyle}px`,v.style.overflow=C.overflowing?"hidden":""},[w]);Sn(()=>{const C=()=>{y()};let v;const m=ea(C),b=u.current,k=Bn(b);k.addEventListener("resize",m);let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(C),R.observe(b)),()=>{m.clear(),cancelAnimationFrame(v),k.removeEventListener("resize",m),R&&R.disconnect()}},[w,y]),Sn(()=>{y()});const x=C=>{c||y(),r&&r(C)};return d.jsxs(p.Fragment,{children:[d.jsx("textarea",S({value:s,onChange:x,ref:f,rows:i,style:a},l)),d.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:S({},uO.shadow,a,{paddingTop:0,paddingBottom:0})})]})});var wm={};Object.defineProperty(wm,"__esModule",{value:!0});var Vw=wm.default=void 0,pO=mO(p),hO=Rw;function qw(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(qw=function(r){return r?n:t})(e)}function mO(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=qw(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function gO(e){return Object.keys(e).length===0}function vO(e=null){const t=pO.useContext(hO.ThemeContext);return!t||gO(t)?e:t}Vw=wm.default=vO;const yO=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],xO=ie(sO,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Gw=p.forwardRef(function(t,n){var r;const o=Vw(),i=ke({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:l,componentsProps:c,container:u,disablePortal:f,keepMounted:h,modifiers:w,open:y,placement:x,popperOptions:C,popperRef:v,transition:m,slots:b,slotProps:k}=i,R=se(i,yO),T=(r=b==null?void 0:b.root)!=null?r:l==null?void 0:l.Root,P=S({anchorEl:a,container:u,disablePortal:f,keepMounted:h,modifiers:w,open:y,placement:x,popperOptions:C,popperRef:v,transition:m},R);return d.jsx(xO,S({as:s,direction:o==null?void 0:o.direction,slots:{root:T},slotProps:k??c},P,{ref:n}))}),bO=Vt(d.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function wO(e){return be("MuiChip",e)}const Be=we("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),SO=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],CO=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:a,clickable:s,variant:l}=e,c={root:["root",l,n&&"disabled",`size${Z(r)}`,`color${Z(o)}`,s&&"clickable",s&&`clickableColor${Z(o)}`,a&&"deletable",a&&`deletableColor${Z(o)}`,`${l}${Z(o)}`],label:["label",`label${Z(r)}`],avatar:["avatar",`avatar${Z(r)}`,`avatarColor${Z(o)}`],icon:["icon",`icon${Z(r)}`,`iconColor${Z(i)}`],deleteIcon:["deleteIcon",`deleteIcon${Z(r)}`,`deleteIconColor${Z(o)}`,`deleteIcon${Z(l)}Color${Z(o)}`]};return Se(c,wO,t)},kO=ie("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:a,size:s,variant:l}=n;return[{[`& .${Be.avatar}`]:t.avatar},{[`& .${Be.avatar}`]:t[`avatar${Z(s)}`]},{[`& .${Be.avatar}`]:t[`avatarColor${Z(r)}`]},{[`& .${Be.icon}`]:t.icon},{[`& .${Be.icon}`]:t[`icon${Z(s)}`]},{[`& .${Be.icon}`]:t[`iconColor${Z(o)}`]},{[`& .${Be.deleteIcon}`]:t.deleteIcon},{[`& .${Be.deleteIcon}`]:t[`deleteIcon${Z(s)}`]},{[`& .${Be.deleteIcon}`]:t[`deleteIconColor${Z(r)}`]},{[`& .${Be.deleteIcon}`]:t[`deleteIcon${Z(l)}Color${Z(r)}`]},t.root,t[`size${Z(s)}`],t[`color${Z(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${Z(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${Z(r)}`],t[l],t[`${l}${Z(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return S({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Be.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Be.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${Be.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Be.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Be.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Be.icon}`]:S({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&S({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${Be.deleteIcon}`]:S({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Fe(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Fe(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Fe(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Be.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fe(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Be.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>S({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fe(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Be.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fe(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${Be.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>S({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Be.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Be.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Be.avatar}`]:{marginLeft:4},[`& .${Be.avatarSmall}`]:{marginLeft:2},[`& .${Be.icon}`]:{marginLeft:4},[`& .${Be.iconSmall}`]:{marginLeft:2},[`& .${Be.deleteIcon}`]:{marginRight:5},[`& .${Be.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Fe(e.palette[t.color].main,.7)}`,[`&.${Be.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Be.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Fe(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Be.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Fe(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),RO=ie("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Z(r)}`]]}})(({ownerState:e})=>S({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function J0(e){return e.key==="Backspace"||e.key==="Delete"}const PO=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:a,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:f,label:h,onClick:w,onDelete:y,onKeyDown:x,onKeyUp:C,size:v="medium",variant:m="filled",tabIndex:b,skipFocusWhenDisabled:k=!1}=r,R=se(r,SO),T=p.useRef(null),P=lt(T,n),j=_=>{_.stopPropagation(),y&&y(_)},N=_=>{_.currentTarget===_.target&&J0(_)&&_.preventDefault(),x&&x(_)},I=_=>{_.currentTarget===_.target&&(y&&J0(_)?y(_):_.key==="Escape"&&T.current&&T.current.blur()),C&&C(_)},F=a!==!1&&w?!0:a,H=F||y?Ir:l||"div",U=S({},r,{component:H,disabled:u,size:v,color:s,iconColor:p.isValidElement(f)&&f.props.color||s,onDelete:!!y,clickable:F,variant:m}),q=CO(U),ee=H===Ir?S({component:l||"div",focusVisibleClassName:q.focusVisible},y&&{disableRipple:!0}):{};let J=null;y&&(J=c&&p.isValidElement(c)?p.cloneElement(c,{className:le(c.props.className,q.deleteIcon),onClick:j}):d.jsx(bO,{className:le(q.deleteIcon),onClick:j}));let re=null;o&&p.isValidElement(o)&&(re=p.cloneElement(o,{className:le(q.avatar,o.props.className)}));let O=null;return f&&p.isValidElement(f)&&(O=p.cloneElement(f,{className:le(q.icon,f.props.className)})),d.jsxs(kO,S({as:H,className:le(q.root,i),disabled:F&&u?!0:void 0,onClick:w,onKeyDown:N,onKeyUp:I,ref:P,tabIndex:k&&u?-1:b,ownerState:U},ee,R,{children:[re||O,d.jsx(RO,{className:le(q.label),ownerState:U,children:h}),J]}))});function vo({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const ed=p.createContext(void 0);function br(){return p.useContext(ed)}function Kw(e){return d.jsx(e$,S({},e,{defaultTheme:Bu,themeId:Fo}))}function Z0(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Mc(e,t=!1){return e&&(Z0(e.value)&&e.value!==""||t&&Z0(e.defaultValue)&&e.defaultValue!=="")}function EO(e){return e.startAdornment}function TO(e){return be("MuiInputBase",e)}const Ui=we("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),$O=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],td=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Z(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},nd=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},MO=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:f,size:h,startAdornment:w,type:y}=e,x={root:["root",`color${Z(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",h&&h!=="medium"&&`size${Z(h)}`,u&&"multiline",w&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",y==="search"&&"inputTypeSearch",u&&"inputMultiline",h==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",w&&"inputAdornedStart",i&&"inputAdornedEnd",f&&"readOnly"]};return Se(x,TO,t)},rd=ie("div",{name:"MuiInputBase",slot:"Root",overridesResolver:td})(({theme:e,ownerState:t})=>S({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Ui.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&S({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),od=ie("input",{name:"MuiInputBase",slot:"Input",overridesResolver:nd})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=S({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return S({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ui.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Ui.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),jO=d.jsx(Kw,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),OO=p.forwardRef(function(t,n){var r;const o=ke({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:s,className:l,components:c={},componentsProps:u={},defaultValue:f,disabled:h,disableInjectingGlobalStyles:w,endAdornment:y,fullWidth:x=!1,id:C,inputComponent:v="input",inputProps:m={},inputRef:b,maxRows:k,minRows:R,multiline:T=!1,name:P,onBlur:j,onChange:N,onClick:I,onFocus:F,onKeyDown:H,onKeyUp:U,placeholder:q,readOnly:ee,renderSuffix:J,rows:re,slotProps:O={},slots:_={},startAdornment:E,type:g="text",value:$}=o,z=se(o,$O),L=m.value!=null?m.value:$,{current:B}=p.useRef(L!=null),V=p.useRef(),M=p.useCallback(Ee=>{},[]),A=lt(V,b,m.ref,M),[G,Y]=p.useState(!1),K=br(),oe=vo({props:o,muiFormControl:K,states:["color","disabled","error","hiddenLabel","size","required","filled"]});oe.focused=K?K.focused:G,p.useEffect(()=>{!K&&h&&G&&(Y(!1),j&&j())},[K,h,G,j]);const te=K&&K.onFilled,ne=K&&K.onEmpty,de=p.useCallback(Ee=>{Mc(Ee)?te&&te():ne&&ne()},[te,ne]);Sn(()=>{B&&de({value:L})},[L,de,B]);const Re=Ee=>{if(oe.disabled){Ee.stopPropagation();return}F&&F(Ee),m.onFocus&&m.onFocus(Ee),K&&K.onFocus?K.onFocus(Ee):Y(!0)},W=Ee=>{j&&j(Ee),m.onBlur&&m.onBlur(Ee),K&&K.onBlur?K.onBlur(Ee):Y(!1)},ae=(Ee,...he)=>{if(!B){const Ge=Ee.target||V.current;if(Ge==null)throw new Error(Bo(1));de({value:Ge.value})}m.onChange&&m.onChange(Ee,...he),N&&N(Ee,...he)};p.useEffect(()=>{de(V.current)},[]);const ge=Ee=>{V.current&&Ee.currentTarget===Ee.target&&V.current.focus(),I&&I(Ee)};let D=v,X=m;T&&D==="input"&&(re?X=S({type:void 0,minRows:re,maxRows:re},X):X=S({type:void 0,maxRows:k,minRows:R},X),D=fO);const fe=Ee=>{de(Ee.animationName==="mui-auto-fill-cancel"?V.current:{value:"x"})};p.useEffect(()=>{K&&K.setAdornedStart(!!E)},[K,E]);const pe=S({},o,{color:oe.color||"primary",disabled:oe.disabled,endAdornment:y,error:oe.error,focused:oe.focused,formControl:K,fullWidth:x,hiddenLabel:oe.hiddenLabel,multiline:T,size:oe.size,startAdornment:E,type:g}),ve=MO(pe),Ce=_.root||c.Root||rd,Le=O.root||u.root||{},De=_.input||c.Input||od;return X=S({},X,(r=O.input)!=null?r:u.input),d.jsxs(p.Fragment,{children:[!w&&jO,d.jsxs(Ce,S({},Le,!Ni(Ce)&&{ownerState:S({},pe,Le.ownerState)},{ref:n,onClick:ge},z,{className:le(ve.root,Le.className,l,ee&&"MuiInputBase-readOnly"),children:[E,d.jsx(ed.Provider,{value:null,children:d.jsx(De,S({ownerState:pe,"aria-invalid":oe.error,"aria-describedby":i,autoComplete:a,autoFocus:s,defaultValue:f,disabled:oe.disabled,id:C,onAnimationStart:fe,name:P,placeholder:q,readOnly:ee,required:oe.required,rows:re,value:L,onKeyDown:H,onKeyUp:U,type:g},X,!Ni(De)&&{as:D,ownerState:S({},pe,X.ownerState)},{ref:A,className:le(ve.input,X.className,ee&&"MuiInputBase-readOnly"),onBlur:W,onChange:ae,onFocus:Re}))}),y,J?J(S({},oe,{startAdornment:E})):null]}))]})}),Sm=OO;function IO(e){return be("MuiInput",e)}const xa=S({},Ui,we("MuiInput",["root","underline","input"]));function _O(e){return be("MuiOutlinedInput",e)}const Ur=S({},Ui,we("MuiOutlinedInput",["root","notchedOutline","input"]));function LO(e){return be("MuiFilledInput",e)}const xo=S({},Ui,we("MuiFilledInput",["root","underline","input"])),AO=Vt(d.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),NO=Vt(d.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function DO(e){return be("MuiAvatar",e)}we("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const zO=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],BO=Qu(),FO=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Se({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},DO,t)},UO=ie("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:S({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:S({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),WO=ie("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),HO=ie(NO,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function VO({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=p.useState(!1);return p.useEffect(()=>{if(!n&&!r)return;i(!1);let a=!0;const s=new Image;return s.onload=()=>{a&&i("loaded")},s.onerror=()=>{a&&i("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=n,r&&(s.srcset=r),()=>{a=!1}},[e,t,n,r]),o}const Er=p.forwardRef(function(t,n){const r=BO({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:a,component:s="div",slots:l={},slotProps:c={},imgProps:u,sizes:f,src:h,srcSet:w,variant:y="circular"}=r,x=se(r,zO);let C=null;const v=VO(S({},u,{src:h,srcSet:w})),m=h||w,b=m&&v!=="error",k=S({},r,{colorDefault:!b,component:s,variant:y}),R=FO(k),[T,P]=kp("img",{className:R.img,elementType:WO,externalForwardedProps:{slots:l,slotProps:{img:S({},u,c.img)}},additionalProps:{alt:o,src:h,srcSet:w,sizes:f},ownerState:k});return b?C=d.jsx(T,S({},P)):i||i===0?C=i:m&&o?C=o[0]:C=d.jsx(HO,{ownerState:k,className:R.fallback}),d.jsx(UO,S({as:s,ownerState:k,className:le(R.root,a),ref:n},x,{children:C}))}),qO=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],GO={entering:{opacity:1},entered:{opacity:1}},Yw=p.forwardRef(function(t,n){const r=mo(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:l,in:c,onEnter:u,onEntered:f,onEntering:h,onExit:w,onExited:y,onExiting:x,style:C,timeout:v=o,TransitionComponent:m=ar}=t,b=se(t,qO),k=p.useRef(null),R=lt(k,s.ref,n),T=q=>ee=>{if(q){const J=k.current;ee===void 0?q(J):q(J,ee)}},P=T(h),j=T((q,ee)=>{pm(q);const J=Ai({style:C,timeout:v,easing:l},{mode:"enter"});q.style.webkitTransition=r.transitions.create("opacity",J),q.style.transition=r.transitions.create("opacity",J),u&&u(q,ee)}),N=T(f),I=T(x),F=T(q=>{const ee=Ai({style:C,timeout:v,easing:l},{mode:"exit"});q.style.webkitTransition=r.transitions.create("opacity",ee),q.style.transition=r.transitions.create("opacity",ee),w&&w(q)}),H=T(y),U=q=>{i&&i(k.current,q)};return d.jsx(m,S({appear:a,in:c,nodeRef:k,onEnter:j,onEntered:N,onEntering:P,onExit:F,onExited:H,onExiting:I,addEndListener:U,timeout:v},b,{children:(q,ee)=>p.cloneElement(s,S({style:S({opacity:0,visibility:q==="exited"&&!c?"hidden":void 0},GO[q],C,s.props.style),ref:R},ee))}))});function KO(e){return be("MuiBackdrop",e)}we("MuiBackdrop",["root","invisible"]);const YO=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],XO=e=>{const{classes:t,invisible:n}=e;return Se({root:["root",n&&"invisible"]},KO,t)},QO=ie("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>S({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Xw=p.forwardRef(function(t,n){var r,o,i;const a=ke({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:c="div",components:u={},componentsProps:f={},invisible:h=!1,open:w,slotProps:y={},slots:x={},TransitionComponent:C=Yw,transitionDuration:v}=a,m=se(a,YO),b=S({},a,{component:c,invisible:h}),k=XO(b),R=(r=y.root)!=null?r:f.root;return d.jsx(C,S({in:w,timeout:v},m,{children:d.jsx(QO,S({"aria-hidden":!0},R,{as:(o=(i=x.root)!=null?i:u.Root)!=null?o:c,className:le(k.root,l,R==null?void 0:R.className),ownerState:S({},b,R==null?void 0:R.ownerState),classes:k,ref:n,children:s}))}))});function JO(e){return be("MuiBadge",e)}const Wr=we("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),ZO=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Qd=10,Jd=4,e3=Qu(),t3=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:a={}}=e,s={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${Z(n.vertical)}${Z(n.horizontal)}`,`anchorOrigin${Z(n.vertical)}${Z(n.horizontal)}${Z(o)}`,`overlap${Z(o)}`,t!=="default"&&`color${Z(t)}`]};return Se(s,JO,a)},n3=ie("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),r3=ie("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Z(n.anchorOrigin.vertical)}${Z(n.anchorOrigin.horizontal)}${Z(n.overlap)}`],n.color!=="default"&&t[`color${Z(n.color)}`],n.invisible&&t.invisible]}})(({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Qd*2,lineHeight:1,padding:"0 6px",height:Qd*2,borderRadius:Qd,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r,o;return((r=e.vars)!=null?r:e).palette[n].main&&((o=e.vars)!=null?o:e).palette[n].contrastText}).map(n=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText}})),{props:{variant:"dot"},style:{borderRadius:Jd,height:Jd*2,minWidth:Jd*2,padding:0}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}),o3=p.forwardRef(function(t,n){var r,o,i,a,s,l;const c=e3({props:t,name:"MuiBadge"}),{anchorOrigin:u={vertical:"top",horizontal:"right"},className:f,component:h,components:w={},componentsProps:y={},children:x,overlap:C="rectangular",color:v="default",invisible:m=!1,max:b=99,badgeContent:k,slots:R,slotProps:T,showZero:P=!1,variant:j="standard"}=c,N=se(c,ZO),{badgeContent:I,invisible:F,max:H,displayValue:U}=kM({max:b,invisible:m,badgeContent:k,showZero:P}),q=hw({anchorOrigin:u,color:v,overlap:C,variant:j,badgeContent:k}),ee=F||I==null&&j!=="dot",{color:J=v,overlap:re=C,anchorOrigin:O=u,variant:_=j}=ee?q:c,E=_!=="dot"?U:void 0,g=S({},c,{badgeContent:I,invisible:ee,max:H,displayValue:E,showZero:P,anchorOrigin:O,color:J,overlap:re,variant:_}),$=t3(g),z=(r=(o=R==null?void 0:R.root)!=null?o:w.Root)!=null?r:n3,L=(i=(a=R==null?void 0:R.badge)!=null?a:w.Badge)!=null?i:r3,B=(s=T==null?void 0:T.root)!=null?s:y.root,V=(l=T==null?void 0:T.badge)!=null?l:y.badge,M=fn({elementType:z,externalSlotProps:B,externalForwardedProps:N,additionalProps:{ref:n,as:h},ownerState:g,className:le(B==null?void 0:B.className,$.root,f)}),A=fn({elementType:L,externalSlotProps:V,ownerState:g,className:le($.badge,V==null?void 0:V.className)});return d.jsxs(z,S({},M,{children:[x,d.jsx(L,S({},A,{children:E}))]}))}),i3=we("MuiBox",["root"]),a3=Ns(),at=a$({themeId:Fo,defaultTheme:a3,defaultClassName:i3.root,generateClassName:Zh.generate});function s3(e){return be("MuiButton",e)}const gl=we("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),l3=p.createContext({}),c3=p.createContext(void 0),u3=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],d3=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,s={root:["root",i,`${i}${Z(t)}`,`size${Z(o)}`,`${i}Size${Z(o)}`,`color${Z(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Z(o)}`],endIcon:["icon","endIcon",`iconSize${Z(o)}`]},l=Se(s,s3,a);return S({},a,l)},Qw=e=>S({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),f3=ie(Ir,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Z(n.color)}`],t[`size${Z(n.size)}`],t[`${n.variant}Size${Z(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return S({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":S({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":S({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${gl.focusVisible}`]:S({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${gl.disabled}`]:S({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Fe(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${gl.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${gl.disabled}`]:{boxShadow:"none"}}),p3=ie("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Z(n.size)}`]]}})(({ownerState:e})=>S({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Qw(e))),h3=ie("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Z(n.size)}`]]}})(({ownerState:e})=>S({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Qw(e))),Rt=p.forwardRef(function(t,n){const r=p.useContext(l3),o=p.useContext(c3),i=nm(r,t),a=ke({props:i,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:f=!1,disableElevation:h=!1,disableFocusRipple:w=!1,endIcon:y,focusVisibleClassName:x,fullWidth:C=!1,size:v="medium",startIcon:m,type:b,variant:k="text"}=a,R=se(a,u3),T=S({},a,{color:l,component:c,disabled:f,disableElevation:h,disableFocusRipple:w,fullWidth:C,size:v,type:b,variant:k}),P=d3(T),j=m&&d.jsx(p3,{className:P.startIcon,ownerState:T,children:m}),N=y&&d.jsx(h3,{className:P.endIcon,ownerState:T,children:y}),I=o||"";return d.jsxs(f3,S({ownerState:T,className:le(r.className,P.root,u,I),component:c,disabled:f,focusRipple:!w,focusVisibleClassName:le(P.focusVisible,x),ref:n,type:b},R,{classes:P,children:[j,s,N]}))});function m3(e){return be("MuiCard",e)}we("MuiCard",["root"]);const g3=["className","raised"],v3=e=>{const{classes:t}=e;return Se({root:["root"]},m3,t)},y3=ie(En,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),id=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiCard"}),{className:o,raised:i=!1}=r,a=se(r,g3),s=S({},r,{raised:i}),l=v3(s);return d.jsx(y3,S({className:le(l.root,o),elevation:i?8:void 0,ref:n,ownerState:s},a))});function x3(e){return be("MuiCardContent",e)}we("MuiCardContent",["root"]);const b3=["className","component"],w3=e=>{const{classes:t}=e;return Se({root:["root"]},x3,t)},S3=ie("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),Cm=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiCardContent"}),{className:o,component:i="div"}=r,a=se(r,b3),s=S({},r,{component:i}),l=w3(s);return d.jsx(S3,S({as:i,className:le(l.root,o),ownerState:s,ref:n},a))});function C3(e){return be("PrivateSwitchBase",e)}we("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const k3=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],R3=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${Z(o)}`],input:["input"]};return Se(i,C3,t)},P3=ie(Ir)(({ownerState:e})=>S({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),E3=ie("input",{shouldForwardProp:Ht})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Jw=p.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:a,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:f,id:h,inputProps:w,inputRef:y,name:x,onBlur:C,onChange:v,onFocus:m,readOnly:b,required:k=!1,tabIndex:R,type:T,value:P}=t,j=se(t,k3),[N,I]=gs({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),F=br(),H=_=>{m&&m(_),F&&F.onFocus&&F.onFocus(_)},U=_=>{C&&C(_),F&&F.onBlur&&F.onBlur(_)},q=_=>{if(_.nativeEvent.defaultPrevented)return;const E=_.target.checked;I(E),v&&v(_,E)};let ee=l;F&&typeof ee>"u"&&(ee=F.disabled);const J=T==="checkbox"||T==="radio",re=S({},t,{checked:N,disabled:ee,disableFocusRipple:c,edge:u}),O=R3(re);return d.jsxs(P3,S({component:"span",className:le(O.root,a),centerRipple:!0,focusRipple:!c,disabled:ee,tabIndex:null,role:void 0,onFocus:H,onBlur:U,ownerState:re,ref:n},j,{children:[d.jsx(E3,S({autoFocus:r,checked:o,defaultChecked:s,className:O.input,disabled:ee,id:J?h:void 0,name:x,onChange:q,readOnly:b,ref:y,required:k,ownerState:re,tabIndex:R,type:T},T==="checkbox"&&P===void 0?{}:{value:P},w)),N?i:f]}))}),T3=Vt(d.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),$3=Vt(d.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),M3=Vt(d.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function j3(e){return be("MuiCheckbox",e)}const Zd=we("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),O3=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],I3=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate",`color${Z(r)}`,`size${Z(o)}`]},a=Se(i,j3,t);return S({},t,a)},_3=ie(Jw,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Z(n.size)}`],n.color!=="default"&&t[`color${Z(n.color)}`]]}})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Zd.checked}, &.${Zd.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Zd.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),L3=d.jsx($3,{}),A3=d.jsx(T3,{}),N3=d.jsx(M3,{}),km=p.forwardRef(function(t,n){var r,o;const i=ke({props:t,name:"MuiCheckbox"}),{checkedIcon:a=L3,color:s="primary",icon:l=A3,indeterminate:c=!1,indeterminateIcon:u=N3,inputProps:f,size:h="medium",className:w}=i,y=se(i,O3),x=c?u:l,C=c?u:a,v=S({},i,{color:s,indeterminate:c,size:h}),m=I3(v);return d.jsx(_3,S({type:"checkbox",inputProps:S({"data-indeterminate":c},f),icon:p.cloneElement(x,{fontSize:(r=x.props.fontSize)!=null?r:h}),checkedIcon:p.cloneElement(C,{fontSize:(o=C.props.fontSize)!=null?o:h}),ownerState:v,ref:n,className:le(m.root,w)},y,{classes:m}))});function D3(e){return be("MuiCircularProgress",e)}we("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const z3=["className","color","disableShrink","size","style","thickness","value","variant"];let ad=e=>e,ey,ty,ny,ry;const Hr=44,B3=Qi(ey||(ey=ad` 0% { transform: rotate(0deg); } @@ -174,7 +174,7 @@ Error generating stack: `+i.message+` 100% { transform: rotate(360deg); } -`)),W3=Qi(ty||(ty=sd` +`)),F3=Qi(ty||(ty=ad` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; @@ -189,11 +189,11 @@ Error generating stack: `+i.message+` stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } -`)),H3=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${Z(r)}`],svg:["svg"],circle:["circle",`circle${Z(n)}`,o&&"circleDisableShrink"]};return Se(i,B3,t)},V3=ie("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Z(n.color)}`]]}})(({ownerState:e,theme:t})=>S({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&wu(ny||(ny=sd` +`)),U3=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${Z(r)}`],svg:["svg"],circle:["circle",`circle${Z(n)}`,o&&"circleDisableShrink"]};return Se(i,D3,t)},W3=ie("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Z(n.color)}`]]}})(({ownerState:e,theme:t})=>S({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&bu(ny||(ny=ad` animation: ${0} 1.4s linear infinite; - `),U3)),q3=ie("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),G3=ie("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Z(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>S({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&wu(ry||(ry=sd` + `),B3)),H3=ie("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),V3=ie("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Z(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>S({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&bu(ry||(ry=ad` animation: ${0} 1.4s ease-in-out infinite; - `),W3)),_n=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:s=40,style:l,thickness:c=3.6,value:u=0,variant:f="indeterminate"}=r,h=se(r,F3),w=S({},r,{color:i,disableShrink:a,size:s,thickness:c,value:u,variant:f}),y=H3(w),x={},C={},v={};if(f==="determinate"){const m=2*Math.PI*((Hr-c)/2);x.strokeDasharray=m.toFixed(3),v["aria-valuenow"]=Math.round(u),x.strokeDashoffset=`${((100-u)/100*m).toFixed(3)}px`,C.transform="rotate(-90deg)"}return d.jsx(V3,S({className:le(y.root,o),style:S({width:s,height:s},C,l),ownerState:w,ref:n,role:"progressbar"},v,h,{children:d.jsx(q3,{className:y.svg,ownerState:w,viewBox:`${Hr/2} ${Hr/2} ${Hr} ${Hr}`,children:d.jsx(G3,{className:y.circle,style:x,ownerState:w,cx:Hr,cy:Hr,r:(Hr-c)/2,fill:"none",strokeWidth:c})})}))}),e2=Z$({createStyledComponent:ie("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Z(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Re({props:e,name:"MuiContainer"})}),K3=(e,t)=>S({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),Y3=e=>S({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),X3=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([a,s])=>{var l;r[e.getColorSchemeSelector(a).replace(/\s*&/,"")]={colorScheme:(l=s.palette)==null?void 0:l.mode}});let o=S({html:K3(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:S({margin:0},Y3(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const i=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return i&&(o=[o,i]),o};function km(e){const t=Re({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return d.jsxs(p.Fragment,{children:[d.jsx(Yw,{styles:o=>X3(o,r)}),n]})}function Q3(e){return be("MuiModal",e)}we("MuiModal",["root","hidden","backdrop"]);const J3=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Z3=e=>{const{open:t,exited:n,classes:r}=e;return Se({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Q3,r)},eI=ie("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>S({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),tI=ie(Qw,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Pm=p.forwardRef(function(t,n){var r,o,i,a,s,l;const c=Re({name:"MuiModal",props:t}),{BackdropComponent:u=tI,BackdropProps:f,className:h,closeAfterTransition:w=!1,children:y,container:x,component:C,components:v={},componentsProps:m={},disableAutoFocus:b=!1,disableEnforceFocus:R=!1,disableEscapeKeyDown:k=!1,disablePortal:T=!1,disableRestoreFocus:P=!1,disableScrollLock:j=!1,hideBackdrop:N=!1,keepMounted:O=!1,onBackdropClick:F,open:W,slotProps:U,slots:G}=c,ee=se(c,J3),J=S({},c,{closeAfterTransition:w,disableAutoFocus:b,disableEnforceFocus:R,disableEscapeKeyDown:k,disablePortal:T,disableRestoreFocus:P,disableScrollLock:j,hideBackdrop:N,keepMounted:O}),{getRootProps:re,getBackdropProps:I,getTransitionProps:_,portalRef:E,isTopModal:g,exited:$,hasTransition:z}=KM(S({},J,{rootRef:n})),L=S({},J,{exited:$}),B=Z3(L),V={};if(y.props.tabIndex===void 0&&(V.tabIndex="-1"),z){const{onEnter:te,onExited:ne}=_();V.onEnter=te,V.onExited=ne}const M=(r=(o=G==null?void 0:G.root)!=null?o:v.Root)!=null?r:eI,A=(i=(a=G==null?void 0:G.backdrop)!=null?a:v.Backdrop)!=null?i:u,K=(s=U==null?void 0:U.root)!=null?s:m.root,Y=(l=U==null?void 0:U.backdrop)!=null?l:m.backdrop,q=fn({elementType:M,externalSlotProps:K,externalForwardedProps:ee,getSlotProps:re,additionalProps:{ref:n,as:C},ownerState:L,className:le(h,K==null?void 0:K.className,B==null?void 0:B.root,!L.open&&L.exited&&(B==null?void 0:B.hidden))}),oe=fn({elementType:A,externalSlotProps:Y,additionalProps:f,getSlotProps:te=>I(S({},te,{onClick:ne=>{F&&F(ne),te!=null&&te.onClick&&te.onClick(ne)}})),className:le(Y==null?void 0:Y.className,f==null?void 0:f.className,B==null?void 0:B.backdrop),ownerState:L});return!O&&!W&&(!z||$)?null:d.jsx(Lw,{ref:E,container:x,disablePortal:T,children:d.jsxs(M,S({},q,{children:[!N&&u?d.jsx(A,S({},oe)):null,d.jsx(DM,{disableEnforceFocus:R,disableAutoFocus:b,disableRestoreFocus:P,isEnabled:g,open:W,children:p.cloneElement(y,V)})]}))})});function nI(e){return be("MuiDialog",e)}const tf=we("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),t2=p.createContext({}),rI=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],oI=ie(Qw,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),iI=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,a={root:["root"],container:["container",`scroll${Z(n)}`],paper:["paper",`paperScroll${Z(n)}`,`paperWidth${Z(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return Se(a,nI,t)},aI=ie(Pm,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),sI=ie("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Z(n.scroll)}`]]}})(({ownerState:e})=>S({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),lI=ie(En,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Z(n.scroll)}`],t[`paperWidth${Z(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>S({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${tf.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${tf.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${tf.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Mp=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialog"}),o=mo(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,BackdropComponent:l,BackdropProps:c,children:u,className:f,disableEscapeKeyDown:h=!1,fullScreen:w=!1,fullWidth:y=!1,maxWidth:x="sm",onBackdropClick:C,onClick:v,onClose:m,open:b,PaperComponent:R=En,PaperProps:k={},scroll:T="paper",TransitionComponent:P=Xw,transitionDuration:j=i,TransitionProps:N}=r,O=se(r,rI),F=S({},r,{disableEscapeKeyDown:h,fullScreen:w,fullWidth:y,maxWidth:x,scroll:T}),W=iI(F),U=p.useRef(),G=I=>{U.current=I.target===I.currentTarget},ee=I=>{v&&v(I),U.current&&(U.current=null,C&&C(I),m&&m(I,"backdropClick"))},J=_s(s),re=p.useMemo(()=>({titleId:J}),[J]);return d.jsx(aI,S({className:le(W.root,f),closeAfterTransition:!0,components:{Backdrop:oI},componentsProps:{backdrop:S({transitionDuration:j,as:l},c)},disableEscapeKeyDown:h,onClose:m,open:b,ref:n,onClick:ee,ownerState:F},O,{children:d.jsx(P,S({appear:!0,in:b,timeout:j,role:"presentation"},N,{children:d.jsx(sI,{className:le(W.container),onMouseDown:G,ownerState:F,children:d.jsx(lI,S({as:R,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":J},k,{className:le(W.paper,k.className),ownerState:F,children:d.jsx(t2.Provider,{value:re,children:u})}))})}))}))});function cI(e){return be("MuiDialogActions",e)}we("MuiDialogActions",["root","spacing"]);const uI=["className","disableSpacing"],dI=e=>{const{classes:t,disableSpacing:n}=e;return Se({root:["root",!n&&"spacing"]},cI,t)},fI=ie("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>S({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),jp=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1}=r,a=se(r,uI),s=S({},r,{disableSpacing:i}),l=dI(s);return d.jsx(fI,S({className:le(l.root,o),ownerState:s,ref:n},a))});function pI(e){return be("MuiDialogContent",e)}we("MuiDialogContent",["root","dividers"]);function hI(e){return be("MuiDialogTitle",e)}const mI=we("MuiDialogTitle",["root"]),gI=["className","dividers"],vI=e=>{const{classes:t,dividers:n}=e;return Se({root:["root",n&&"dividers"]},pI,t)},yI=ie("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>S({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${mI.root} + &`]:{paddingTop:0}})),Op=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,a=se(r,gI),s=S({},r,{dividers:i}),l=vI(s);return d.jsx(yI,S({className:le(l.root,o),ownerState:s,ref:n},a))});function xI(e){return be("MuiDialogContentText",e)}we("MuiDialogContentText",["root"]);const bI=["children","className"],wI=e=>{const{classes:t}=e,r=Se({root:["root"]},xI,t);return S({},t,r)},SI=ie(Ie,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),n2=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialogContentText"}),{className:o}=r,i=se(r,bI),a=wI(i);return d.jsx(SI,S({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:i,className:le(a.root,o)},r,{classes:a}))}),CI=["className","id"],RI=e=>{const{classes:t}=e;return Se({root:["root"]},hI,t)},kI=ie(Ie,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Ip=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialogTitle"}),{className:o,id:i}=r,a=se(r,CI),s=r,l=RI(s),{titleId:c=i}=p.useContext(t2);return d.jsx(kI,S({component:"h2",className:le(l.root,o),ownerState:s,ref:n,variant:"h6",id:i??c},a))});function PI(e){return be("MuiDivider",e)}const oy=we("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),EI=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],TI=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return Se({root:["root",t&&"absolute",l,i&&"light",a==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",s==="right"&&a!=="vertical"&&"textAlignRight",s==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},PI,r)},$I=ie("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>S({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Fe(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>S({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>S({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>S({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>S({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),MI=ie("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>S({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),xs=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:a,component:s=i?"div":"hr",flexItem:l=!1,light:c=!1,orientation:u="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:h="center",variant:w="fullWidth"}=r,y=se(r,EI),x=S({},r,{absolute:o,component:s,flexItem:l,light:c,orientation:u,role:f,textAlign:h,variant:w}),C=TI(x);return d.jsx($I,S({as:s,className:le(C.root,a),role:f,ref:n,ownerState:x},y,{children:i?d.jsx(MI,{className:C.wrapper,ownerState:x,children:i}):null}))});xs.muiSkipListHighlight=!0;const jI=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function OI(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=Bn(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const c=i.getComputedStyle(t);a=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let s=0,l=0;if(a&&a!=="none"&&typeof a=="string"){const c=a.split("(")[1].split(")")[0].split(",");s=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?o?`translateX(${o.right+s-r.left}px)`:`translateX(${i.innerWidth+s-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function II(e){return typeof e=="function"?e():e}function vl(e,t,n){const r=II(n),o=OI(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const _I=p.forwardRef(function(t,n){const r=mo(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,container:c,direction:u="down",easing:f=o,in:h,onEnter:w,onEntered:y,onEntering:x,onExit:C,onExited:v,onExiting:m,style:b,timeout:R=i,TransitionComponent:k=ar}=t,T=se(t,jI),P=p.useRef(null),j=lt(l.ref,P,n),N=I=>_=>{I&&(_===void 0?I(P.current):I(P.current,_))},O=N((I,_)=>{vl(u,I,c),pm(I),w&&w(I,_)}),F=N((I,_)=>{const E=Ai({timeout:R,style:b,easing:f},{mode:"enter"});I.style.webkitTransition=r.transitions.create("-webkit-transform",S({},E)),I.style.transition=r.transitions.create("transform",S({},E)),I.style.webkitTransform="none",I.style.transform="none",x&&x(I,_)}),W=N(y),U=N(m),G=N(I=>{const _=Ai({timeout:R,style:b,easing:f},{mode:"exit"});I.style.webkitTransition=r.transitions.create("-webkit-transform",_),I.style.transition=r.transitions.create("transform",_),vl(u,I,c),C&&C(I)}),ee=N(I=>{I.style.webkitTransition="",I.style.transition="",v&&v(I)}),J=I=>{a&&a(P.current,I)},re=p.useCallback(()=>{P.current&&vl(u,P.current,c)},[u,c]);return p.useEffect(()=>{if(h||u==="down"||u==="right")return;const I=ea(()=>{P.current&&vl(u,P.current,c)}),_=Bn(P.current);return _.addEventListener("resize",I),()=>{I.clear(),_.removeEventListener("resize",I)}},[u,h,c]),p.useEffect(()=>{h||re()},[h,re]),d.jsx(k,S({nodeRef:P,onEnter:O,onEntered:W,onEntering:F,onExit:G,onExited:ee,onExiting:U,addEndListener:J,appear:s,in:h,timeout:R},T,{children:(I,_)=>p.cloneElement(l,S({ref:j,style:S({visibility:I==="exited"&&!h?"hidden":void 0},b,l.props.style)},_))}))});function LI(e){return be("MuiDrawer",e)}we("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const AI=["BackdropProps"],NI=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],r2=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},DI=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Z(n)}`,r!=="temporary"&&`paperAnchorDocked${Z(n)}`]};return Se(o,LI,t)},zI=ie(Pm,{name:"MuiDrawer",slot:"Root",overridesResolver:r2})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),iy=ie("div",{shouldForwardProp:Ht,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:r2})({flex:"0 0 auto"}),BI=ie(En,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${Z(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${Z(n.anchor)}`]]}})(({theme:e,ownerState:t})=>S({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),o2={left:"right",right:"left",top:"down",bottom:"up"};function FI(e){return["left","right"].indexOf(e)!==-1}function UI({direction:e},t){return e==="rtl"&&FI(t)?o2[t]:t}const WI=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDrawer"}),o=mo(),i=As(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:l,children:c,className:u,elevation:f=16,hideBackdrop:h=!1,ModalProps:{BackdropProps:w}={},onClose:y,open:x=!1,PaperProps:C={},SlideProps:v,TransitionComponent:m=_I,transitionDuration:b=a,variant:R="temporary"}=r,k=se(r.ModalProps,AI),T=se(r,NI),P=p.useRef(!1);p.useEffect(()=>{P.current=!0},[]);const j=UI({direction:i?"rtl":"ltr"},s),O=S({},r,{anchor:s,elevation:f,open:x,variant:R},T),F=DI(O),W=d.jsx(BI,S({elevation:R==="temporary"?f:0,square:!0},C,{className:le(F.paper,C.className),ownerState:O,children:c}));if(R==="permanent")return d.jsx(iy,S({className:le(F.root,F.docked,u),ownerState:O,ref:n},T,{children:W}));const U=d.jsx(m,S({in:x,direction:o2[j],timeout:b,appear:P.current},v,{children:W}));return R==="persistent"?d.jsx(iy,S({className:le(F.root,F.docked,u),ownerState:O,ref:n},T,{children:U})):d.jsx(zI,S({BackdropProps:S({},l,w,{transitionDuration:b}),className:le(F.root,F.modal,u),open:x,ownerState:O,onClose:y,hideBackdrop:h,ref:n},T,k,{children:U}))}),HI=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],VI=e=>{const{classes:t,disableUnderline:n}=e,o=Se({root:["root",!n&&"underline"],input:["input"]},NO,t);return S({},t,o)},qI=ie(od,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...nd(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return S({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${xo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${xo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${xo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${xo.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${xo.disabled}, .${xo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${xo.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&S({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),GI=ie(id,{name:"MuiFilledInput",slot:"Input",overridesResolver:rd})(({theme:e,ownerState:t})=>S({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),Em=p.forwardRef(function(t,n){var r,o,i,a;const s=Re({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:f="input",multiline:h=!1,slotProps:w,slots:y={},type:x="text"}=s,C=se(s,HI),v=S({},s,{fullWidth:u,inputComponent:f,multiline:h,type:x}),m=VI(s),b={root:{ownerState:v},input:{ownerState:v}},R=w??c?Qt(b,w??c):b,k=(r=(o=y.root)!=null?o:l.Root)!=null?r:qI,T=(i=(a=y.input)!=null?a:l.Input)!=null?i:GI;return d.jsx(Sm,S({slots:{root:k,input:T},componentsProps:R,fullWidth:u,inputComponent:f,multiline:h,ref:n,type:x},C,{classes:m}))});Em.muiName="Input";function KI(e){return be("MuiFormControl",e)}we("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const YI=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],XI=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Z(n)}`,r&&"fullWidth"]};return Se(o,KI,t)},QI=ie("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,t[`margin${Z(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>S({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),ld=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:f=!1,hiddenLabel:h=!1,margin:w="none",required:y=!1,size:x="medium",variant:C="outlined"}=r,v=se(r,YI),m=S({},r,{color:a,component:s,disabled:l,error:c,fullWidth:f,hiddenLabel:h,margin:w,required:y,size:x,variant:C}),b=XI(m),[R,k]=p.useState(()=>{let U=!1;return o&&p.Children.forEach(o,G=>{if(!Fa(G,["Input","Select"]))return;const ee=Fa(G,["Select"])?G.props.input:G;ee&&$O(ee.props)&&(U=!0)}),U}),[T,P]=p.useState(()=>{let U=!1;return o&&p.Children.forEach(o,G=>{Fa(G,["Input","Select"])&&(Mc(G.props,!0)||Mc(G.props.inputProps,!0))&&(U=!0)}),U}),[j,N]=p.useState(!1);l&&j&&N(!1);const O=u!==void 0&&!l?u:j;let F;const W=p.useMemo(()=>({adornedStart:R,setAdornedStart:k,color:a,disabled:l,error:c,filled:T,focused:O,fullWidth:f,hiddenLabel:h,size:x,onBlur:()=>{N(!1)},onEmpty:()=>{P(!1)},onFilled:()=>{P(!0)},onFocus:()=>{N(!0)},registerEffect:F,required:y,variant:C}),[R,a,l,c,T,O,f,h,F,y,x,C]);return d.jsx(td.Provider,{value:W,children:d.jsx(QI,S({as:s,ownerState:m,className:le(b.root,i),ref:n},v,{children:o}))})}),JI=s4({createStyledComponent:ie("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Re({props:e,name:"MuiStack"})});function ZI(e){return be("MuiFormControlLabel",e)}const Ma=we("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),e_=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],t_=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,a={root:["root",n&&"disabled",`labelPlacement${Z(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Se(a,ZI,t)},n_=ie("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ma.label}`]:t.label},t.root,t[`labelPlacement${Z(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>S({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Ma.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Ma.label}`]:{[`&.${Ma.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),r_=ie("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Ma.error}`]:{color:(e.vars||e).palette.error.main}})),Tm=p.forwardRef(function(t,n){var r,o;const i=Re({props:t,name:"MuiFormControlLabel"}),{className:a,componentsProps:s={},control:l,disabled:c,disableTypography:u,label:f,labelPlacement:h="end",required:w,slotProps:y={}}=i,x=se(i,e_),C=br(),v=(r=c??l.props.disabled)!=null?r:C==null?void 0:C.disabled,m=w??l.props.required,b={disabled:v,required:m};["checked","name","onChange","value","inputRef"].forEach(N=>{typeof l.props[N]>"u"&&typeof i[N]<"u"&&(b[N]=i[N])});const R=vo({props:i,muiFormControl:C,states:["error"]}),k=S({},i,{disabled:v,labelPlacement:h,required:m,error:R.error}),T=t_(k),P=(o=y.typography)!=null?o:s.typography;let j=f;return j!=null&&j.type!==Ie&&!u&&(j=d.jsx(Ie,S({component:"span"},P,{className:le(T.label,P==null?void 0:P.className),children:j}))),d.jsxs(n_,S({className:le(T.root,a),ownerState:k,ref:n},x,{children:[p.cloneElement(l,b),m?d.jsxs(JI,{display:"block",children:[j,d.jsxs(r_,{ownerState:k,"aria-hidden":!0,className:T.asterisk,children:[" ","*"]})]}):j]}))});function o_(e){return be("MuiFormGroup",e)}we("MuiFormGroup",["root","row","error"]);const i_=["className","row"],a_=e=>{const{classes:t,row:n,error:r}=e;return Se({root:["root",n&&"row",r&&"error"]},o_,t)},s_=ie("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>S({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),i2=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiFormGroup"}),{className:o,row:i=!1}=r,a=se(r,i_),s=br(),l=vo({props:r,muiFormControl:s,states:["error"]}),c=S({},r,{row:i,error:l.error}),u=a_(c);return d.jsx(s_,S({className:le(u.root,o),ownerState:c,ref:n},a))});function l_(e){return be("MuiFormHelperText",e)}const ay=we("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var sy;const c_=["children","className","component","disabled","error","filled","focused","margin","required","variant"],u_=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:a,focused:s,required:l}=e,c={root:["root",o&&"disabled",i&&"error",r&&`size${Z(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return Se(c,l_,t)},d_=ie("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Z(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${ay.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ay.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),f_=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:a="p"}=r,s=se(r,c_),l=br(),c=vo({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),u=S({},r,{component:a,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=u_(u);return d.jsx(d_,S({as:a,ownerState:u,className:le(f.root,i),ref:n},s,{children:o===" "?sy||(sy=d.jsx("span",{className:"notranslate",children:"​"})):o}))});function p_(e){return be("MuiFormLabel",e)}const Va=we("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),h_=["children","className","color","component","disabled","error","filled","focused","required"],m_=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:s}=e,l={root:["root",`color${Z(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return Se(l,p_,t)},g_=ie("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Va.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Va.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Va.error}`]:{color:(e.vars||e).palette.error.main}})),v_=ie("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Va.error}`]:{color:(e.vars||e).palette.error.main}})),y_=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:a="label"}=r,s=se(r,h_),l=br(),c=vo({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),u=S({},r,{color:c.color||"primary",component:a,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=m_(u);return d.jsxs(g_,S({as:a,ownerState:u,className:le(f.root,i),ref:n},s,{children:[o,c.required&&d.jsxs(v_,{ownerState:u,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),x_=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function _p(e){return`scale(${e}, ${e**2})`}const b_={entering:{opacity:1,transform:_p(1)},entered:{opacity:1,transform:"none"}},nf=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),bs=p.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:f,onExited:h,onExiting:w,style:y,timeout:x="auto",TransitionComponent:C=ar}=t,v=se(t,x_),m=To(),b=p.useRef(),R=mo(),k=p.useRef(null),T=lt(k,i.ref,n),P=ee=>J=>{if(ee){const re=k.current;J===void 0?ee(re):ee(re,J)}},j=P(u),N=P((ee,J)=>{pm(ee);const{duration:re,delay:I,easing:_}=Ai({style:y,timeout:x,easing:a},{mode:"enter"});let E;x==="auto"?(E=R.transitions.getAutoHeightDuration(ee.clientHeight),b.current=E):E=re,ee.style.transition=[R.transitions.create("opacity",{duration:E,delay:I}),R.transitions.create("transform",{duration:nf?E:E*.666,delay:I,easing:_})].join(","),l&&l(ee,J)}),O=P(c),F=P(w),W=P(ee=>{const{duration:J,delay:re,easing:I}=Ai({style:y,timeout:x,easing:a},{mode:"exit"});let _;x==="auto"?(_=R.transitions.getAutoHeightDuration(ee.clientHeight),b.current=_):_=J,ee.style.transition=[R.transitions.create("opacity",{duration:_,delay:re}),R.transitions.create("transform",{duration:nf?_:_*.666,delay:nf?re:re||_*.333,easing:I})].join(","),ee.style.opacity=0,ee.style.transform=_p(.75),f&&f(ee)}),U=P(h),G=ee=>{x==="auto"&&m.start(b.current||0,ee),r&&r(k.current,ee)};return d.jsx(C,S({appear:o,in:s,nodeRef:k,onEnter:N,onEntered:O,onEntering:j,onExit:W,onExited:U,onExiting:F,addEndListener:G,timeout:x==="auto"?null:x},v,{children:(ee,J)=>p.cloneElement(i,S({style:S({opacity:0,transform:_p(.75),visibility:ee==="exited"&&!s?"hidden":void 0},b_[ee],y,i.props.style),ref:T},J))}))});bs.muiSupportAuto=!0;const w_=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],S_=e=>{const{classes:t,disableUnderline:n}=e,o=Se({root:["root",!n&&"underline"],input:["input"]},LO,t);return S({},t,o)},C_=ie(od,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...nd(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),S({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${xa.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${xa.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${xa.disabled}, .${xa.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${xa.disabled}:before`]:{borderBottomStyle:"dotted"}})}),R_=ie(id,{name:"MuiInput",slot:"Input",overridesResolver:rd})({}),$m=p.forwardRef(function(t,n){var r,o,i,a;const s=Re({props:t,name:"MuiInput"}),{disableUnderline:l,components:c={},componentsProps:u,fullWidth:f=!1,inputComponent:h="input",multiline:w=!1,slotProps:y,slots:x={},type:C="text"}=s,v=se(s,w_),m=S_(s),R={root:{ownerState:{disableUnderline:l}}},k=y??u?Qt(y??u,R):R,T=(r=(o=x.root)!=null?o:c.Root)!=null?r:C_,P=(i=(a=x.input)!=null?a:c.Input)!=null?i:R_;return d.jsx(Sm,S({slots:{root:T,input:P},slotProps:k,fullWidth:f,inputComponent:h,multiline:w,ref:n,type:C},v,{classes:m}))});$m.muiName="Input";function k_(e){return be("MuiInputAdornment",e)}const ly=we("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var cy;const P_=["children","className","component","disablePointerEvents","disableTypography","position","variant"],E_=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Z(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},T_=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${Z(o)}`,a,r&&"hiddenLabel",i&&`size${Z(i)}`]};return Se(s,k_,t)},$_=ie("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:E_})(({theme:e,ownerState:t})=>S({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${ly.positionStart}&:not(.${ly.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),jc=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u}=r,f=se(r,P_),h=br()||{};let w=u;u&&h.variant,h&&!w&&(w=h.variant);const y=S({},r,{hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:s,position:c,variant:w}),x=T_(y);return d.jsx(td.Provider,{value:null,children:d.jsx($_,S({as:a,ownerState:y,className:le(x.root,i),ref:n},f,{children:typeof o=="string"&&!l?d.jsx(Ie,{color:"text.secondary",children:o}):d.jsxs(p.Fragment,{children:[c==="start"?cy||(cy=d.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})});function M_(e){return be("MuiInputLabel",e)}we("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const j_=["disableAnimation","margin","shrink","variant","className"],O_=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:s}=e,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${Z(r)}`,a],asterisk:[s&&"asterisk"]},c=Se(l,M_,t);return S({},t,c)},I_=ie(y_,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Va.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>S({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&S({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&S({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&S({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),cd=p.forwardRef(function(t,n){const r=Re({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:a}=r,s=se(r,j_),l=br();let c=i;typeof c>"u"&&l&&(c=l.filled||l.focused||l.adornedStart);const u=vo({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),f=S({},r,{disableAnimation:o,formControl:l,shrink:c,size:u.size,variant:u.variant,required:u.required,focused:u.focused}),h=O_(f);return d.jsx(I_,S({"data-shrink":c,ownerState:f,ref:n,className:le(h.root,a)},s,{classes:h}))}),gr=p.createContext({});function __(e){return be("MuiList",e)}we("MuiList",["root","padding","dense","subheader"]);const L_=["children","className","component","dense","disablePadding","subheader"],A_=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Se({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},__,t)},N_=ie("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>S({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Fs=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:c}=r,u=se(r,L_),f=p.useMemo(()=>({dense:s}),[s]),h=S({},r,{component:a,dense:s,disablePadding:l}),w=A_(h);return d.jsx(gr.Provider,{value:f,children:d.jsxs(N_,S({as:a,className:le(w.root,i),ref:n,ownerState:h},u,{children:[c,o]}))})});function D_(e){return be("MuiListItem",e)}const oi=we("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),z_=we("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function B_(e){return be("MuiListItemSecondaryAction",e)}we("MuiListItemSecondaryAction",["root","disableGutters"]);const F_=["className"],U_=e=>{const{disableGutters:t,classes:n}=e;return Se({root:["root",t&&"disableGutters"]},B_,n)},W_=ie("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>S({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),a2=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=se(r,F_),a=p.useContext(gr),s=S({},r,{disableGutters:a.disableGutters}),l=U_(s);return d.jsx(W_,S({className:le(l.root,o),ownerState:s,ref:n},i))});a2.muiName="ListItemSecondaryAction";const H_=["className"],V_=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],q_=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},G_=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=e;return Se({root:["root",o&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},D_,r)},K_=ie("div",{name:"MuiListItem",slot:"Root",overridesResolver:q_})(({theme:e,ownerState:t})=>S({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&S({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${z_.root}`]:{paddingRight:48}},{[`&.${oi.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${oi.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${oi.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${oi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${oi.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Y_=ie("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Oc=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:a=!1,children:s,className:l,component:c,components:u={},componentsProps:f={},ContainerComponent:h="li",ContainerProps:{className:w}={},dense:y=!1,disabled:x=!1,disableGutters:C=!1,disablePadding:v=!1,divider:m=!1,focusVisibleClassName:b,secondaryAction:R,selected:k=!1,slotProps:T={},slots:P={}}=r,j=se(r.ContainerProps,H_),N=se(r,V_),O=p.useContext(gr),F=p.useMemo(()=>({dense:y||O.dense||!1,alignItems:o,disableGutters:C}),[o,O.dense,y,C]),W=p.useRef(null);Sn(()=>{i&&W.current&&W.current.focus()},[i]);const U=p.Children.toArray(s),G=U.length&&Fa(U[U.length-1],["ListItemSecondaryAction"]),ee=S({},r,{alignItems:o,autoFocus:i,button:a,dense:F.dense,disabled:x,disableGutters:C,disablePadding:v,divider:m,hasSecondaryAction:G,selected:k}),J=G_(ee),re=lt(W,n),I=P.root||u.Root||K_,_=T.root||f.root||{},E=S({className:le(J.root,_.className,l),disabled:x},N);let g=c||"li";return a&&(E.component=c||"div",E.focusVisibleClassName=le(oi.focusVisible,b),g=Ir),G?(g=!E.component&&!c?"div":g,h==="li"&&(g==="li"?g="div":E.component==="li"&&(E.component="div")),d.jsx(gr.Provider,{value:F,children:d.jsxs(Y_,S({as:h,className:le(J.container,w),ref:re,ownerState:ee},j,{children:[d.jsx(I,S({},_,!Ni(I)&&{as:g,ownerState:S({},ee,_.ownerState)},E,{children:U})),U.pop()]}))})):d.jsx(gr.Provider,{value:F,children:d.jsxs(I,S({},_,{as:g,ref:re},!Ni(I)&&{ownerState:S({},ee,_.ownerState)},E,{children:[U,R&&d.jsx(a2,{children:R})]}))})});function X_(e){return be("MuiListItemAvatar",e)}we("MuiListItemAvatar",["root","alignItemsFlexStart"]);const Q_=["className"],J_=e=>{const{alignItems:t,classes:n}=e;return Se({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},X_,n)},Z_=ie("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>S({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),eL=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiListItemAvatar"}),{className:o}=r,i=se(r,Q_),a=p.useContext(gr),s=S({},r,{alignItems:a.alignItems}),l=J_(s);return d.jsx(Z_,S({className:le(l.root,o),ownerState:s,ref:n},i))});function tL(e){return be("MuiListItemIcon",e)}const uy=we("MuiListItemIcon",["root","alignItemsFlexStart"]),nL=["className"],rL=e=>{const{alignItems:t,classes:n}=e;return Se({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},tL,n)},oL=ie("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>S({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),dy=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiListItemIcon"}),{className:o}=r,i=se(r,nL),a=p.useContext(gr),s=S({},r,{alignItems:a.alignItems}),l=rL(s);return d.jsx(oL,S({className:le(l.root,o),ownerState:s,ref:n},i))});function iL(e){return be("MuiListItemText",e)}const Ic=we("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),aL=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],sL=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return Se({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},iL,t)},lL=ie("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ic.primary}`]:t.primary},{[`& .${Ic.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>S({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),ws=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:f}=r,h=se(r,aL),{dense:w}=p.useContext(gr);let y=l??o,x=u;const C=S({},r,{disableTypography:a,inset:s,primary:!!y,secondary:!!x,dense:w}),v=sL(C);return y!=null&&y.type!==Ie&&!a&&(y=d.jsx(Ie,S({variant:w?"body2":"body1",className:v.primary,component:c!=null&&c.variant?void 0:"span",display:"block"},c,{children:y}))),x!=null&&x.type!==Ie&&!a&&(x=d.jsx(Ie,S({variant:"body2",className:v.secondary,color:"text.secondary",display:"block"},f,{children:x}))),d.jsxs(lL,S({className:le(v.root,i),ownerState:C,ref:n},h,{children:[y,x]}))}),cL=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function rf(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function fy(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function s2(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function ba(e,t,n,r,o,i){let a=!1,s=o(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!s2(s,i)||l)s=o(e,s,n);else return s.focus(),!0}return!1}const uL=p.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:f="selectedMenu"}=t,h=se(t,cL),w=p.useRef(null),y=p.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Sn(()=>{o&&w.current.focus()},[o]),p.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(b,{direction:R})=>{const k=!w.current.style.width;if(b.clientHeight{const R=w.current,k=b.key,T=St(R).activeElement;if(k==="ArrowDown")b.preventDefault(),ba(R,T,c,l,rf);else if(k==="ArrowUp")b.preventDefault(),ba(R,T,c,l,fy);else if(k==="Home")b.preventDefault(),ba(R,null,c,l,rf);else if(k==="End")b.preventDefault(),ba(R,null,c,l,fy);else if(k.length===1){const P=y.current,j=k.toLowerCase(),N=performance.now();P.keys.length>0&&(N-P.lastTime>500?(P.keys=[],P.repeating=!0,P.previousKeyMatched=!0):P.repeating&&j!==P.keys[0]&&(P.repeating=!1)),P.lastTime=N,P.keys.push(j);const O=T&&!P.repeating&&s2(T,P);P.previousKeyMatched&&(O||ba(R,T,!1,l,rf,P))?b.preventDefault():P.previousKeyMatched=!1}u&&u(b)},C=lt(w,n);let v=-1;p.Children.forEach(a,(b,R)=>{if(!p.isValidElement(b)){v===R&&(v+=1,v>=a.length&&(v=-1));return}b.props.disabled||(f==="selectedMenu"&&b.props.selected||v===-1)&&(v=R),v===R&&(b.props.disabled||b.props.muiSkipListHighlight||b.type.muiSkipListHighlight)&&(v+=1,v>=a.length&&(v=-1))});const m=p.Children.map(a,(b,R)=>{if(R===v){const k={};return i&&(k.autoFocus=!0),b.props.tabIndex===void 0&&f==="selectedMenu"&&(k.tabIndex=0),p.cloneElement(b,k)}return b});return d.jsx(Fs,S({role:"menu",ref:C,className:s,onKeyDown:x,tabIndex:o?0:-1},h,{children:m}))});function dL(e){return be("MuiPopover",e)}we("MuiPopover",["root","paper"]);const fL=["onEntering"],pL=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],hL=["slotProps"];function py(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function hy(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function my(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function of(e){return typeof e=="function"?e():e}const mL=e=>{const{classes:t}=e;return Se({root:["root"],paper:["paper"]},dL,t)},gL=ie(Pm,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),l2=ie(En,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),vL=p.forwardRef(function(t,n){var r,o,i;const a=Re({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:f="anchorEl",children:h,className:w,container:y,elevation:x=8,marginThreshold:C=16,open:v,PaperProps:m={},slots:b,slotProps:R,transformOrigin:k={vertical:"top",horizontal:"left"},TransitionComponent:T=bs,transitionDuration:P="auto",TransitionProps:{onEntering:j}={},disableScrollLock:N=!1}=a,O=se(a.TransitionProps,fL),F=se(a,pL),W=(r=R==null?void 0:R.paper)!=null?r:m,U=p.useRef(),G=lt(U,W.ref),ee=S({},a,{anchorOrigin:c,anchorReference:f,elevation:x,marginThreshold:C,externalPaperSlotProps:W,transformOrigin:k,TransitionComponent:T,transitionDuration:P,TransitionProps:O}),J=mL(ee),re=p.useCallback(()=>{if(f==="anchorPosition")return u;const te=of(l),de=(te&&te.nodeType===1?te:St(U.current).body).getBoundingClientRect();return{top:de.top+py(de,c.vertical),left:de.left+hy(de,c.horizontal)}},[l,c.horizontal,c.vertical,u,f]),I=p.useCallback(te=>({vertical:py(te,k.vertical),horizontal:hy(te,k.horizontal)}),[k.horizontal,k.vertical]),_=p.useCallback(te=>{const ne={width:te.offsetWidth,height:te.offsetHeight},de=I(ne);if(f==="none")return{top:null,left:null,transformOrigin:my(de)};const ke=re();let H=ke.top-de.vertical,ae=ke.left-de.horizontal;const ge=H+ne.height,D=ae+ne.width,X=Bn(of(l)),fe=X.innerHeight-C,pe=X.innerWidth-C;if(C!==null&&Hfe){const ve=ge-fe;H-=ve,de.vertical+=ve}if(C!==null&&aepe){const ve=D-pe;ae-=ve,de.horizontal+=ve}return{top:`${Math.round(H)}px`,left:`${Math.round(ae)}px`,transformOrigin:my(de)}},[l,f,re,I,C]),[E,g]=p.useState(v),$=p.useCallback(()=>{const te=U.current;if(!te)return;const ne=_(te);ne.top!==null&&(te.style.top=ne.top),ne.left!==null&&(te.style.left=ne.left),te.style.transformOrigin=ne.transformOrigin,g(!0)},[_]);p.useEffect(()=>(N&&window.addEventListener("scroll",$),()=>window.removeEventListener("scroll",$)),[l,N,$]);const z=(te,ne)=>{j&&j(te,ne),$()},L=()=>{g(!1)};p.useEffect(()=>{v&&$()}),p.useImperativeHandle(s,()=>v?{updatePosition:()=>{$()}}:null,[v,$]),p.useEffect(()=>{if(!v)return;const te=ea(()=>{$()}),ne=Bn(l);return ne.addEventListener("resize",te),()=>{te.clear(),ne.removeEventListener("resize",te)}},[l,v,$]);let B=P;P==="auto"&&!T.muiSupportAuto&&(B=void 0);const V=y||(l?St(of(l)).body:void 0),M=(o=b==null?void 0:b.root)!=null?o:gL,A=(i=b==null?void 0:b.paper)!=null?i:l2,K=fn({elementType:A,externalSlotProps:S({},W,{style:E?W.style:S({},W.style,{opacity:0})}),additionalProps:{elevation:x,ref:G},ownerState:ee,className:le(J.paper,W==null?void 0:W.className)}),Y=fn({elementType:M,externalSlotProps:(R==null?void 0:R.root)||{},externalForwardedProps:F,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:V,open:v},ownerState:ee,className:le(J.root,w)}),{slotProps:q}=Y,oe=se(Y,hL);return d.jsx(M,S({},oe,!Ni(M)&&{slotProps:q,disableScrollLock:N},{children:d.jsx(T,S({appear:!0,in:v,onEntering:z,onExited:L,timeout:B},O,{children:d.jsx(A,S({},K,{children:h}))}))}))});function yL(e){return be("MuiMenu",e)}we("MuiMenu",["root","paper","list"]);const xL=["onEntering"],bL=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],wL={vertical:"top",horizontal:"right"},SL={vertical:"top",horizontal:"left"},CL=e=>{const{classes:t}=e;return Se({root:["root"],paper:["paper"],list:["list"]},yL,t)},RL=ie(vL,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),kL=ie(l2,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),PL=ie(uL,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),c2=p.forwardRef(function(t,n){var r,o;const i=Re({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:f,open:h,PaperProps:w={},PopoverClasses:y,transitionDuration:x="auto",TransitionProps:{onEntering:C}={},variant:v="selectedMenu",slots:m={},slotProps:b={}}=i,R=se(i.TransitionProps,xL),k=se(i,bL),T=As(),P=S({},i,{autoFocus:a,disableAutoFocusItem:c,MenuListProps:u,onEntering:C,PaperProps:w,transitionDuration:x,TransitionProps:R,variant:v}),j=CL(P),N=a&&!c&&h,O=p.useRef(null),F=(I,_)=>{O.current&&O.current.adjustStyleForScrollbar(I,{direction:T?"rtl":"ltr"}),C&&C(I,_)},W=I=>{I.key==="Tab"&&(I.preventDefault(),f&&f(I,"tabKeyDown"))};let U=-1;p.Children.map(s,(I,_)=>{p.isValidElement(I)&&(I.props.disabled||(v==="selectedMenu"&&I.props.selected||U===-1)&&(U=_))});const G=(r=m.paper)!=null?r:kL,ee=(o=b.paper)!=null?o:w,J=fn({elementType:m.root,externalSlotProps:b.root,ownerState:P,className:[j.root,l]}),re=fn({elementType:G,externalSlotProps:ee,ownerState:P,className:j.paper});return d.jsx(RL,S({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:T?"right":"left"},transformOrigin:T?wL:SL,slots:{paper:G,root:m.root},slotProps:{root:J,paper:re},open:h,ref:n,transitionDuration:x,TransitionProps:S({onEntering:F},R),ownerState:P},k,{classes:y,children:d.jsx(PL,S({onKeyDown:W,actions:O,autoFocus:a&&(U===-1||c),autoFocusItem:N,variant:v},u,{className:le(j.list,u.className),children:s}))}))});function EL(e){return be("MuiMenuItem",e)}const wa=we("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),TL=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],$L=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},ML=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,l=Se({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},EL,a);return S({},a,l)},jL=ie(Ir,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:$L})(({theme:e,ownerState:t})=>S({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${wa.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${wa.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${wa.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${wa.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${wa.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${oy.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${oy.inset}`]:{marginLeft:52},[`& .${Ic.root}`]:{marginTop:0,marginBottom:0},[`& .${Ic.inset}`]:{paddingLeft:36},[`& .${uy.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&S({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${uy.root} svg`]:{fontSize:"1.25rem"}}))),Jn=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:f,className:h}=r,w=se(r,TL),y=p.useContext(gr),x=p.useMemo(()=>({dense:a||y.dense||!1,disableGutters:l}),[y.dense,a,l]),C=p.useRef(null);Sn(()=>{o&&C.current&&C.current.focus()},[o]);const v=S({},r,{dense:x.dense,divider:s,disableGutters:l}),m=ML(r),b=lt(C,n);let R;return r.disabled||(R=f!==void 0?f:-1),d.jsx(gr.Provider,{value:x,children:d.jsx(jL,S({ref:b,role:u,tabIndex:R,component:i,focusVisibleClassName:le(m.focusVisible,c),className:le(m.root,h)},w,{ownerState:v,classes:m}))})});function OL(e){return be("MuiNativeSelect",e)}const Mm=we("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),IL=["className","disabled","error","IconComponent","inputRef","variant"],_L=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Z(n)}`,i&&"iconOpen",r&&"disabled"]};return Se(s,OL,t)},u2=({ownerState:e,theme:t})=>S({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":S({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Mm.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),LL=ie("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ht,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Mm.multiple}`]:t.multiple}]}})(u2),d2=({ownerState:e,theme:t})=>S({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Mm.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),AL=ie("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Z(n.variant)}`],n.open&&t.iconOpen]}})(d2),NL=p.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:a,inputRef:s,variant:l="standard"}=t,c=se(t,IL),u=S({},t,{disabled:o,variant:l,error:i}),f=_L(u);return d.jsxs(p.Fragment,{children:[d.jsx(LL,S({ownerState:u,className:le(f.select,r),disabled:o,ref:s||n},c)),t.multiple?null:d.jsx(AL,{as:a,ownerState:u,className:f.icon})]})});var gy;const DL=["children","classes","className","label","notched"],zL=ie("fieldset",{shouldForwardProp:Ht})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),BL=ie("legend",{shouldForwardProp:Ht})(({ownerState:e,theme:t})=>S({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&S({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function FL(e){const{className:t,label:n,notched:r}=e,o=se(e,DL),i=n!=null&&n!=="",a=S({},e,{notched:r,withLabel:i});return d.jsx(zL,S({"aria-hidden":!0,className:t,ownerState:a},o,{children:d.jsx(BL,{ownerState:a,children:i?d.jsx("span",{children:n}):gy||(gy=d.jsx("span",{className:"notranslate",children:"​"}))})}))}const UL=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],WL=e=>{const{classes:t}=e,r=Se({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},AO,t);return S({},t,r)},HL=ie(od,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:nd})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return S({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ur.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ur.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Ur.focused} .${Ur.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Ur.error} .${Ur.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ur.disabled} .${Ur.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&S({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),VL=ie(FL,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),qL=ie(id,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:rd})(({theme:e,ownerState:t})=>S({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),jm=p.forwardRef(function(t,n){var r,o,i,a,s;const l=Re({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:f="input",label:h,multiline:w=!1,notched:y,slots:x={},type:C="text"}=l,v=se(l,UL),m=WL(l),b=br(),R=vo({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),k=S({},l,{color:R.color||"primary",disabled:R.disabled,error:R.error,focused:R.focused,formControl:b,fullWidth:u,hiddenLabel:R.hiddenLabel,multiline:w,size:R.size,type:C}),T=(r=(o=x.root)!=null?o:c.Root)!=null?r:HL,P=(i=(a=x.input)!=null?a:c.Input)!=null?i:qL;return d.jsx(Sm,S({slots:{root:T,input:P},renderSuffix:j=>d.jsx(VL,{ownerState:k,className:m.notchedOutline,label:h!=null&&h!==""&&R.required?s||(s=d.jsxs(p.Fragment,{children:[h," ","*"]})):h,notched:typeof y<"u"?y:!!(j.startAdornment||j.filled||j.focused)}),fullWidth:u,inputComponent:f,multiline:w,ref:n,type:C},v,{classes:S({},m,{notchedOutline:null})}))});jm.muiName="Input";function GL(e){return be("MuiSelect",e)}const Sa=we("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var vy;const KL=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],YL=ie("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Sa.select}`]:t.select},{[`&.${Sa.select}`]:t[n.variant]},{[`&.${Sa.error}`]:t.error},{[`&.${Sa.multiple}`]:t.multiple}]}})(u2,{[`&.${Sa.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),XL=ie("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Z(n.variant)}`],n.open&&t.iconOpen]}})(d2),QL=ie("input",{shouldForwardProp:e=>Tw(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function yy(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function JL(e){return e==null||typeof e=="string"&&!e.trim()}const ZL=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Z(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Se(s,GL,t)},eA=p.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":i,autoFocus:a,autoWidth:s,children:l,className:c,defaultOpen:u,defaultValue:f,disabled:h,displayEmpty:w,error:y=!1,IconComponent:x,inputRef:C,labelId:v,MenuProps:m={},multiple:b,name:R,onBlur:k,onChange:T,onClose:P,onFocus:j,onOpen:N,open:O,readOnly:F,renderValue:W,SelectDisplayProps:U={},tabIndex:G,value:ee,variant:J="standard"}=t,re=se(t,KL),[I,_]=gs({controlled:ee,default:f,name:"Select"}),[E,g]=gs({controlled:O,default:u,name:"Select"}),$=p.useRef(null),z=p.useRef(null),[L,B]=p.useState(null),{current:V}=p.useRef(O!=null),[M,A]=p.useState(),K=lt(n,C),Y=p.useCallback(ye=>{z.current=ye,ye&&B(ye)},[]),q=L==null?void 0:L.parentNode;p.useImperativeHandle(K,()=>({focus:()=>{z.current.focus()},node:$.current,value:I}),[I]),p.useEffect(()=>{u&&E&&L&&!V&&(A(s?null:q.clientWidth),z.current.focus())},[L,s]),p.useEffect(()=>{a&&z.current.focus()},[a]),p.useEffect(()=>{if(!v)return;const ye=St(z.current).getElementById(v);if(ye){const Pe=()=>{getSelection().isCollapsed&&z.current.focus()};return ye.addEventListener("click",Pe),()=>{ye.removeEventListener("click",Pe)}}},[v]);const oe=(ye,Pe)=>{ye?N&&N(Pe):P&&P(Pe),V||(A(s?null:q.clientWidth),g(ye))},te=ye=>{ye.button===0&&(ye.preventDefault(),z.current.focus(),oe(!0,ye))},ne=ye=>{oe(!1,ye)},de=p.Children.toArray(l),ke=ye=>{const Pe=de.find(ue=>ue.props.value===ye.target.value);Pe!==void 0&&(_(Pe.props.value),T&&T(ye,Pe))},H=ye=>Pe=>{let ue;if(Pe.currentTarget.hasAttribute("tabindex")){if(b){ue=Array.isArray(I)?I.slice():[];const me=I.indexOf(ye.props.value);me===-1?ue.push(ye.props.value):ue.splice(me,1)}else ue=ye.props.value;if(ye.props.onClick&&ye.props.onClick(Pe),I!==ue&&(_(ue),T)){const me=Pe.nativeEvent||Pe,$e=new me.constructor(me.type,me);Object.defineProperty($e,"target",{writable:!0,value:{value:ue,name:R}}),T($e,ye)}b||oe(!1,Pe)}},ae=ye=>{F||[" ","ArrowUp","ArrowDown","Enter"].indexOf(ye.key)!==-1&&(ye.preventDefault(),oe(!0,ye))},ge=L!==null&&E,D=ye=>{!ge&&k&&(Object.defineProperty(ye,"target",{writable:!0,value:{value:I,name:R}}),k(ye))};delete re["aria-invalid"];let X,fe;const pe=[];let ve=!1;(Mc({value:I})||w)&&(W?X=W(I):ve=!0);const Ce=de.map(ye=>{if(!p.isValidElement(ye))return null;let Pe;if(b){if(!Array.isArray(I))throw new Error(Bo(2));Pe=I.some(ue=>yy(ue,ye.props.value)),Pe&&ve&&pe.push(ye.props.children)}else Pe=yy(I,ye.props.value),Pe&&ve&&(fe=ye.props.children);return p.cloneElement(ye,{"aria-selected":Pe?"true":"false",onClick:H(ye),onKeyUp:ue=>{ue.key===" "&&ue.preventDefault(),ye.props.onKeyUp&&ye.props.onKeyUp(ue)},role:"option",selected:Pe,value:void 0,"data-value":ye.props.value})});ve&&(b?pe.length===0?X=null:X=pe.reduce((ye,Pe,ue)=>(ye.push(Pe),ue{const{classes:t}=e;return t},Om={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ht(e)&&e!=="variant",slot:"Root"},oA=ie($m,Om)(""),iA=ie(jm,Om)(""),aA=ie(Em,Om)(""),Us=p.forwardRef(function(t,n){const r=Re({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=DO,id:f,input:h,inputProps:w,label:y,labelId:x,MenuProps:C,multiple:v=!1,native:m=!1,onClose:b,onOpen:R,open:k,renderValue:T,SelectDisplayProps:P,variant:j="outlined"}=r,N=se(r,tA),O=m?NL:eA,F=br(),W=vo({props:r,muiFormControl:F,states:["variant","error"]}),U=W.variant||j,G=S({},r,{variant:U,classes:a}),ee=rA(G),J=se(ee,nA),re=h||{standard:d.jsx(oA,{ownerState:G}),outlined:d.jsx(iA,{label:y,ownerState:G}),filled:d.jsx(aA,{ownerState:G})}[U],I=lt(n,re.ref);return d.jsx(p.Fragment,{children:p.cloneElement(re,S({inputComponent:O,inputProps:S({children:i,error:W.error,IconComponent:u,variant:U,type:void 0,multiple:v},m?{id:f}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:x,MenuProps:C,onClose:b,onOpen:R,open:k,renderValue:T,SelectDisplayProps:S({id:f},P)},w,{classes:w?Qt(J,w.classes):J},h?h.props.inputProps:{})},(v&&m||c)&&U==="outlined"?{notched:!0}:{},{ref:I,className:le(re.props.className,s,ee.root)},!h&&{variant:U},N))})});Us.muiName="Select";function sA(e){return be("MuiSnackbarContent",e)}we("MuiSnackbarContent",["root","message","action"]);const lA=["action","className","message","role"],cA=e=>{const{classes:t}=e;return Se({root:["root"],action:["action"],message:["message"]},sA,t)},uA=ie(En,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=d4(e.palette.background.default,t);return S({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),dA=ie("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),fA=ie("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),pA=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiSnackbarContent"}),{action:o,className:i,message:a,role:s="alert"}=r,l=se(r,lA),c=r,u=cA(c);return d.jsxs(uA,S({role:s,square:!0,elevation:6,className:le(u.root,i),ownerState:c,ref:n},l,{children:[d.jsx(dA,{className:u.message,ownerState:c,children:a}),o?d.jsx(fA,{className:u.action,ownerState:c,children:o}):null]}))});function hA(e){return be("MuiSnackbar",e)}we("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const mA=["onEnter","onExited"],gA=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],vA=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${Z(n.vertical)}${Z(n.horizontal)}`]};return Se(r,hA,t)},xy=ie("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${Z(n.anchorOrigin.vertical)}${Z(n.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const n={left:"50%",right:"auto",transform:"translateX(-50%)"};return S({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:S({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&n,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),yo=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiSnackbar"}),o=mo(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:s,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:u,className:f,ClickAwayListenerProps:h,ContentProps:w,disableWindowBlurListener:y=!1,message:x,open:C,TransitionComponent:v=bs,transitionDuration:m=i,TransitionProps:{onEnter:b,onExited:R}={}}=r,k=se(r.TransitionProps,mA),T=se(r,gA),P=S({},r,{anchorOrigin:{vertical:s,horizontal:l},autoHideDuration:c,disableWindowBlurListener:y,TransitionComponent:v,transitionDuration:m}),j=vA(P),{getRootProps:N,onClickAway:O}=uO(S({},P)),[F,W]=p.useState(!0),U=fn({elementType:xy,getSlotProps:N,externalForwardedProps:T,ownerState:P,additionalProps:{ref:n},className:[j.root,f]}),G=J=>{W(!0),R&&R(J)},ee=(J,re)=>{W(!1),b&&b(J,re)};return!C&&F?null:d.jsx(jM,S({onClickAway:O},h,{children:d.jsx(xy,S({},U,{children:d.jsx(v,S({appear:!0,in:C,timeout:m,direction:s==="top"?"down":"up",onEnter:ee,onExited:G},k,{children:u||d.jsx(pA,S({message:x,action:a},w))}))}))}))});function yA(e){return be("MuiTooltip",e)}const Jr=we("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),xA=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function bA(e){return Math.round(e*1e5)/1e5}const wA=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Z(i.split("-")[0])}`],arrow:["arrow"]};return Se(a,yA,t)},SA=ie(Kw,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>S({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Jr.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Jr.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Jr.arrow}`]:S({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Jr.arrow}`]:S({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),CA=ie("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Z(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>S({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Fe(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${bA(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Jr.popper}[data-popper-placement*="left"] &`]:S({transformOrigin:"right center"},t.isRtl?S({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):S({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Jr.popper}[data-popper-placement*="right"] &`]:S({transformOrigin:"left center"},t.isRtl?S({marginRight:"14px"},t.touch&&{marginRight:"24px"}):S({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Jr.popper}[data-popper-placement*="top"] &`]:S({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Jr.popper}[data-popper-placement*="bottom"] &`]:S({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),RA=ie("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Fe(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let yl=!1;const by=new Ls;let Ca={x:0,y:0};function xl(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Zn=p.forwardRef(function(t,n){var r,o,i,a,s,l,c,u,f,h,w,y,x,C,v,m,b,R,k;const T=Re({props:t,name:"MuiTooltip"}),{arrow:P=!1,children:j,components:N={},componentsProps:O={},describeChild:F=!1,disableFocusListener:W=!1,disableHoverListener:U=!1,disableInteractive:G=!1,disableTouchListener:ee=!1,enterDelay:J=100,enterNextDelay:re=0,enterTouchDelay:I=700,followCursor:_=!1,id:E,leaveDelay:g=0,leaveTouchDelay:$=1500,onClose:z,onOpen:L,open:B,placement:V="bottom",PopperComponent:M,PopperProps:A={},slotProps:K={},slots:Y={},title:q,TransitionComponent:oe=bs,TransitionProps:te}=T,ne=se(T,xA),de=p.isValidElement(j)?j:d.jsx("span",{children:j}),ke=mo(),H=As(),[ae,ge]=p.useState(),[D,X]=p.useState(null),fe=p.useRef(!1),pe=G||_,ve=To(),Ce=To(),Le=To(),De=To(),[Ee,he]=gs({controlled:B,default:!1,name:"Tooltip",state:"open"});let Ge=Ee;const Xe=_s(E),Ye=p.useRef(),ye=Yt(()=>{Ye.current!==void 0&&(document.body.style.WebkitUserSelect=Ye.current,Ye.current=void 0),De.clear()});p.useEffect(()=>ye,[ye]);const Pe=Ne=>{by.clear(),yl=!0,he(!0),L&&!Ge&&L(Ne)},ue=Yt(Ne=>{by.start(800+g,()=>{yl=!1}),he(!1),z&&Ge&&z(Ne),ve.start(ke.transitions.duration.shortest,()=>{fe.current=!1})}),me=Ne=>{fe.current&&Ne.type!=="touchstart"||(ae&&ae.removeAttribute("title"),Ce.clear(),Le.clear(),J||yl&&re?Ce.start(yl?re:J,()=>{Pe(Ne)}):Pe(Ne))},$e=Ne=>{Ce.clear(),Le.start(g,()=>{ue(Ne)})},{isFocusVisibleRef:Ae,onBlur:Qe,onFocus:Ct,ref:Ot}=om(),[,pn]=p.useState(!1),Dt=Ne=>{Qe(Ne),Ae.current===!1&&(pn(!1),$e(Ne))},zr=Ne=>{ae||ge(Ne.currentTarget),Ct(Ne),Ae.current===!0&&(pn(!0),me(Ne))},Go=Ne=>{fe.current=!0;const hn=de.props;hn.onTouchStart&&hn.onTouchStart(Ne)},Et=Ne=>{Go(Ne),Le.clear(),ve.clear(),ye(),Ye.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",De.start(I,()=>{document.body.style.WebkitUserSelect=Ye.current,me(Ne)})},dd=Ne=>{de.props.onTouchEnd&&de.props.onTouchEnd(Ne),ye(),Le.start($,()=>{ue(Ne)})};p.useEffect(()=>{if(!Ge)return;function Ne(hn){(hn.key==="Escape"||hn.key==="Esc")&&ue(hn)}return document.addEventListener("keydown",Ne),()=>{document.removeEventListener("keydown",Ne)}},[ue,Ge]);const Ws=lt(de.ref,Ot,ge,n);!q&&q!==0&&(Ge=!1);const oa=p.useRef(),ia=Ne=>{const hn=de.props;hn.onMouseMove&&hn.onMouseMove(Ne),Ca={x:Ne.clientX,y:Ne.clientY},oa.current&&oa.current.update()},tt={},en=typeof q=="string";F?(tt.title=!Ge&&en&&!U?q:null,tt["aria-describedby"]=Ge?Xe:null):(tt["aria-label"]=en?q:null,tt["aria-labelledby"]=Ge&&!en?Xe:null);const nt=S({},tt,ne,de.props,{className:le(ne.className,de.props.className),onTouchStart:Go,ref:Ws},_?{onMouseMove:ia}:{}),Tt={};ee||(nt.onTouchStart=Et,nt.onTouchEnd=dd),U||(nt.onMouseOver=xl(me,nt.onMouseOver),nt.onMouseLeave=xl($e,nt.onMouseLeave),pe||(Tt.onMouseOver=me,Tt.onMouseLeave=$e)),W||(nt.onFocus=xl(zr,nt.onFocus),nt.onBlur=xl(Dt,nt.onBlur),pe||(Tt.onFocus=zr,Tt.onBlur=Dt));const It=p.useMemo(()=>{var Ne;let hn=[{name:"arrow",enabled:!!D,options:{element:D,padding:4}}];return(Ne=A.popperOptions)!=null&&Ne.modifiers&&(hn=hn.concat(A.popperOptions.modifiers)),S({},A.popperOptions,{modifiers:hn})},[D,A]),qt=S({},T,{isRtl:H,arrow:P,disableInteractive:pe,placement:V,PopperComponentProp:M,touch:fe.current}),Gn=wA(qt),Ko=(r=(o=Y.popper)!=null?o:N.Popper)!=null?r:SA,aa=(i=(a=(s=Y.transition)!=null?s:N.Transition)!=null?a:oe)!=null?i:bs,Hs=(l=(c=Y.tooltip)!=null?c:N.Tooltip)!=null?l:CA,Vs=(u=(f=Y.arrow)!=null?f:N.Arrow)!=null?u:RA,q2=vi(Ko,S({},A,(h=K.popper)!=null?h:O.popper,{className:le(Gn.popper,A==null?void 0:A.className,(w=(y=K.popper)!=null?y:O.popper)==null?void 0:w.className)}),qt),G2=vi(aa,S({},te,(x=K.transition)!=null?x:O.transition),qt),K2=vi(Hs,S({},(C=K.tooltip)!=null?C:O.tooltip,{className:le(Gn.tooltip,(v=(m=K.tooltip)!=null?m:O.tooltip)==null?void 0:v.className)}),qt),Y2=vi(Vs,S({},(b=K.arrow)!=null?b:O.arrow,{className:le(Gn.arrow,(R=(k=K.arrow)!=null?k:O.arrow)==null?void 0:R.className)}),qt);return d.jsxs(p.Fragment,{children:[p.cloneElement(de,nt),d.jsx(Ko,S({as:M??Kw,placement:V,anchorEl:_?{getBoundingClientRect:()=>({top:Ca.y,left:Ca.x,right:Ca.x,bottom:Ca.y,width:0,height:0})}:ae,popperRef:oa,open:ae?Ge:!1,id:Xe,transition:!0},Tt,q2,{popperOptions:It,children:({TransitionProps:Ne})=>d.jsx(aa,S({timeout:ke.transitions.duration.shorter},Ne,G2,{children:d.jsxs(Hs,S({},K2,{children:[q,P?d.jsx(Vs,S({},Y2,{ref:X})):null]}))}))}))]})});function kA(e){return be("MuiSwitch",e)}const Gt=we("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),PA=["className","color","edge","size","sx"],EA=Ju(),TA=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:a}=e,s={root:["root",n&&`edge${Z(n)}`,`size${Z(r)}`],switchBase:["switchBase",`color${Z(o)}`,i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Se(s,kA,t);return S({},t,l)},$A=ie("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Z(n.edge)}`],t[`size${Z(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Gt.thumb}`]:{width:16,height:16},[`& .${Gt.switchBase}`]:{padding:4,[`&.${Gt.checked}`]:{transform:"translateX(16px)"}}}}]}),MA=ie(Zw,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Gt.input}`]:t.input},n.color!=="default"&&t[`color${Z(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Gt.checked}`]:{transform:"translateX(20px)"},[`&.${Gt.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Gt.checked} + .${Gt.track}`]:{opacity:.5},[`&.${Gt.disabled} + .${Gt.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Gt.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${Gt.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Gt.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?kc(e.palette[t].main,.62):Rc(e.palette[t].main,.55)}`}},[`&.${Gt.checked} + .${Gt.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),jA=ie("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),OA=ie("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),IA=p.forwardRef(function(t,n){const r=EA({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:a=!1,size:s="medium",sx:l}=r,c=se(r,PA),u=S({},r,{color:i,edge:a,size:s}),f=TA(u),h=d.jsx(OA,{className:f.thumb,ownerState:u});return d.jsxs($A,{className:le(f.root,o),sx:l,ownerState:u,children:[d.jsx(MA,S({type:"checkbox",icon:h,checkedIcon:h,ref:n,ownerState:u},c,{classes:S({},f,{root:f.switchBase})})),d.jsx(jA,{className:f.track,ownerState:u})]})});function _A(e){return be("MuiTab",e)}const bo=we("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),LA=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],AA=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:a,selected:s,disabled:l}=e,c={root:["root",i&&a&&"labelIcon",`textColor${Z(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Se(c,_A,t)},NA=ie(Ir,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Z(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>S({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${bo.iconWrapper}`]:S({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${bo.selected}`]:{opacity:1},[`&.${bo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${bo.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${bo.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${bo.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${bo.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),Hl=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:a=!1,fullWidth:s,icon:l,iconPosition:c="top",indicator:u,label:f,onChange:h,onClick:w,onFocus:y,selected:x,selectionFollowsFocus:C,textColor:v="inherit",value:m,wrapped:b=!1}=r,R=se(r,LA),k=S({},r,{disabled:i,disableFocusRipple:a,selected:x,icon:!!l,iconPosition:c,label:!!f,fullWidth:s,textColor:v,wrapped:b}),T=AA(k),P=l&&f&&p.isValidElement(l)?p.cloneElement(l,{className:le(T.iconWrapper,l.props.className)}):l,j=O=>{!x&&h&&h(O,m),w&&w(O)},N=O=>{C&&!x&&h&&h(O,m),y&&y(O)};return d.jsxs(NA,S({focusRipple:!a,className:le(T.root,o),ref:n,role:"tab","aria-selected":x,disabled:i,onClick:j,onFocus:N,ownerState:k,tabIndex:x?0:-1},R,{children:[c==="top"||c==="start"?d.jsxs(p.Fragment,{children:[P,f]}):d.jsxs(p.Fragment,{children:[f,P]}),u]}))});function DA(e){return be("MuiToolbar",e)}we("MuiToolbar",["root","gutters","regular","dense"]);const zA=["className","component","disableGutters","variant"],BA=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Se({root:["root",!n&&"gutters",r]},DA,t)},FA=ie("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>S({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),UA=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:a=!1,variant:s="regular"}=r,l=se(r,zA),c=S({},r,{component:i,disableGutters:a,variant:s}),u=BA(c);return d.jsx(FA,S({as:i,className:le(u.root,o),ref:n,ownerState:c},l))}),WA=Vt(d.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),HA=Vt(d.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function VA(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function qA(e,t,n,r={},o=()=>{}){const{ease:i=VA,duration:a=300}=r;let s=null;const l=t[e];let c=!1;const u=()=>{c=!0},f=h=>{if(c){o(new Error("Animation cancelled"));return}s===null&&(s=h);const w=Math.min(1,(h-s)/a);if(t[e]=i(w)*(n-l)+l,w>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(f)};return l===n?(o(new Error("Element already at target position")),u):(requestAnimationFrame(f),u)}const GA=["onChange"],KA={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function YA(e){const{onChange:t}=e,n=se(e,GA),r=p.useRef(),o=p.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Sn(()=>{const a=ea(()=>{const l=r.current;i(),l!==r.current&&t(r.current)}),s=Bn(o.current);return s.addEventListener("resize",a),()=>{a.clear(),s.removeEventListener("resize",a)}},[t]),p.useEffect(()=>{i(),t(r.current)},[t]),d.jsx("div",S({style:KA,ref:o},n))}function XA(e){return be("MuiTabScrollButton",e)}const QA=we("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),JA=["className","slots","slotProps","direction","orientation","disabled"],ZA=e=>{const{classes:t,orientation:n,disabled:r}=e;return Se({root:["root",n,r&&"disabled"]},XA,t)},eN=ie(Ir,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>S({width:40,flexShrink:0,opacity:.8,[`&.${QA.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),tN=p.forwardRef(function(t,n){var r,o;const i=Re({props:t,name:"MuiTabScrollButton"}),{className:a,slots:s={},slotProps:l={},direction:c}=i,u=se(i,JA),f=As(),h=S({isRtl:f},i),w=ZA(h),y=(r=s.StartScrollButtonIcon)!=null?r:WA,x=(o=s.EndScrollButtonIcon)!=null?o:HA,C=fn({elementType:y,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),v=fn({elementType:x,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return d.jsx(eN,S({component:"div",className:le(w.root,a),ref:n,role:null,ownerState:h,tabIndex:null},u,{children:c==="left"?d.jsx(y,S({},C)):d.jsx(x,S({},v))}))});function nN(e){return be("MuiTabs",e)}const af=we("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),rN=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],wy=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,Sy=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,bl=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const i=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||i)o=n(e,o);else{o.focus();return}}},oN=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return Se({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},nN,l)},iN=ie("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${af.scrollButtons}`]:t.scrollButtons},{[`& .${af.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>S({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${af.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),aN=ie("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>S({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),sN=ie("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>S({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),lN=ie("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>S({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),cN=ie(YA)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Cy={},f2=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTabs"}),o=mo(),i=As(),{"aria-label":a,"aria-labelledby":s,action:l,centered:c=!1,children:u,className:f,component:h="div",allowScrollButtonsMobile:w=!1,indicatorColor:y="primary",onChange:x,orientation:C="horizontal",ScrollButtonComponent:v=tN,scrollButtons:m="auto",selectionFollowsFocus:b,slots:R={},slotProps:k={},TabIndicatorProps:T={},TabScrollButtonProps:P={},textColor:j="primary",value:N,variant:O="standard",visibleScrollbar:F=!1}=r,W=se(r,rN),U=O==="scrollable",G=C==="vertical",ee=G?"scrollTop":"scrollLeft",J=G?"top":"left",re=G?"bottom":"right",I=G?"clientHeight":"clientWidth",_=G?"height":"width",E=S({},r,{component:h,allowScrollButtonsMobile:w,indicatorColor:y,orientation:C,vertical:G,scrollButtons:m,textColor:j,variant:O,visibleScrollbar:F,fixed:!U,hideScrollbar:U&&!F,scrollableX:U&&!G,scrollableY:U&&G,centered:c&&!U,scrollButtonsHideMobile:!w}),g=oN(E),$=fn({elementType:R.StartScrollButtonIcon,externalSlotProps:k.startScrollButtonIcon,ownerState:E}),z=fn({elementType:R.EndScrollButtonIcon,externalSlotProps:k.endScrollButtonIcon,ownerState:E}),[L,B]=p.useState(!1),[V,M]=p.useState(Cy),[A,K]=p.useState(!1),[Y,q]=p.useState(!1),[oe,te]=p.useState(!1),[ne,de]=p.useState({overflow:"hidden",scrollbarWidth:0}),ke=new Map,H=p.useRef(null),ae=p.useRef(null),ge=()=>{const ue=H.current;let me;if(ue){const Ae=ue.getBoundingClientRect();me={clientWidth:ue.clientWidth,scrollLeft:ue.scrollLeft,scrollTop:ue.scrollTop,scrollLeftNormalized:B$(ue,i?"rtl":"ltr"),scrollWidth:ue.scrollWidth,top:Ae.top,bottom:Ae.bottom,left:Ae.left,right:Ae.right}}let $e;if(ue&&N!==!1){const Ae=ae.current.children;if(Ae.length>0){const Qe=Ae[ke.get(N)];$e=Qe?Qe.getBoundingClientRect():null}}return{tabsMeta:me,tabMeta:$e}},D=Yt(()=>{const{tabsMeta:ue,tabMeta:me}=ge();let $e=0,Ae;if(G)Ae="top",me&&ue&&($e=me.top-ue.top+ue.scrollTop);else if(Ae=i?"right":"left",me&&ue){const Ct=i?ue.scrollLeftNormalized+ue.clientWidth-ue.scrollWidth:ue.scrollLeft;$e=(i?-1:1)*(me[Ae]-ue[Ae]+Ct)}const Qe={[Ae]:$e,[_]:me?me[_]:0};if(isNaN(V[Ae])||isNaN(V[_]))M(Qe);else{const Ct=Math.abs(V[Ae]-Qe[Ae]),Ot=Math.abs(V[_]-Qe[_]);(Ct>=1||Ot>=1)&&M(Qe)}}),X=(ue,{animation:me=!0}={})=>{me?qA(ee,H.current,ue,{duration:o.transitions.duration.standard}):H.current[ee]=ue},fe=ue=>{let me=H.current[ee];G?me+=ue:(me+=ue*(i?-1:1),me*=i&&hw()==="reverse"?-1:1),X(me)},pe=()=>{const ue=H.current[I];let me=0;const $e=Array.from(ae.current.children);for(let Ae=0;Ae<$e.length;Ae+=1){const Qe=$e[Ae];if(me+Qe[I]>ue){Ae===0&&(me=ue);break}me+=Qe[I]}return me},ve=()=>{fe(-1*pe())},Ce=()=>{fe(pe())},Le=p.useCallback(ue=>{de({overflow:null,scrollbarWidth:ue})},[]),De=()=>{const ue={};ue.scrollbarSizeListener=U?d.jsx(cN,{onChange:Le,className:le(g.scrollableX,g.hideScrollbar)}):null;const $e=U&&(m==="auto"&&(A||Y)||m===!0);return ue.scrollButtonStart=$e?d.jsx(v,S({slots:{StartScrollButtonIcon:R.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:$},orientation:C,direction:i?"right":"left",onClick:ve,disabled:!A},P,{className:le(g.scrollButtons,P.className)})):null,ue.scrollButtonEnd=$e?d.jsx(v,S({slots:{EndScrollButtonIcon:R.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:z},orientation:C,direction:i?"left":"right",onClick:Ce,disabled:!Y},P,{className:le(g.scrollButtons,P.className)})):null,ue},Ee=Yt(ue=>{const{tabsMeta:me,tabMeta:$e}=ge();if(!(!$e||!me)){if($e[J]me[re]){const Ae=me[ee]+($e[re]-me[re]);X(Ae,{animation:ue})}}}),he=Yt(()=>{U&&m!==!1&&te(!oe)});p.useEffect(()=>{const ue=ea(()=>{H.current&&D()});let me;const $e=Ct=>{Ct.forEach(Ot=>{Ot.removedNodes.forEach(pn=>{var Dt;(Dt=me)==null||Dt.unobserve(pn)}),Ot.addedNodes.forEach(pn=>{var Dt;(Dt=me)==null||Dt.observe(pn)})}),ue(),he()},Ae=Bn(H.current);Ae.addEventListener("resize",ue);let Qe;return typeof ResizeObserver<"u"&&(me=new ResizeObserver(ue),Array.from(ae.current.children).forEach(Ct=>{me.observe(Ct)})),typeof MutationObserver<"u"&&(Qe=new MutationObserver($e),Qe.observe(ae.current,{childList:!0})),()=>{var Ct,Ot;ue.clear(),Ae.removeEventListener("resize",ue),(Ct=Qe)==null||Ct.disconnect(),(Ot=me)==null||Ot.disconnect()}},[D,he]),p.useEffect(()=>{const ue=Array.from(ae.current.children),me=ue.length;if(typeof IntersectionObserver<"u"&&me>0&&U&&m!==!1){const $e=ue[0],Ae=ue[me-1],Qe={root:H.current,threshold:.99},Ct=zr=>{K(!zr[0].isIntersecting)},Ot=new IntersectionObserver(Ct,Qe);Ot.observe($e);const pn=zr=>{q(!zr[0].isIntersecting)},Dt=new IntersectionObserver(pn,Qe);return Dt.observe(Ae),()=>{Ot.disconnect(),Dt.disconnect()}}},[U,m,oe,u==null?void 0:u.length]),p.useEffect(()=>{B(!0)},[]),p.useEffect(()=>{D()}),p.useEffect(()=>{Ee(Cy!==V)},[Ee,V]),p.useImperativeHandle(l,()=>({updateIndicator:D,updateScrollButtons:he}),[D,he]);const Ge=d.jsx(lN,S({},T,{className:le(g.indicator,T.className),ownerState:E,style:S({},V,T.style)}));let Xe=0;const Ye=p.Children.map(u,ue=>{if(!p.isValidElement(ue))return null;const me=ue.props.value===void 0?Xe:ue.props.value;ke.set(me,Xe);const $e=me===N;return Xe+=1,p.cloneElement(ue,S({fullWidth:O==="fullWidth",indicator:$e&&!L&&Ge,selected:$e,selectionFollowsFocus:b,onChange:x,textColor:j,value:me},Xe===1&&N===!1&&!ue.props.tabIndex?{tabIndex:0}:{}))}),ye=ue=>{const me=ae.current,$e=St(me).activeElement;if($e.getAttribute("role")!=="tab")return;let Qe=C==="horizontal"?"ArrowLeft":"ArrowUp",Ct=C==="horizontal"?"ArrowRight":"ArrowDown";switch(C==="horizontal"&&i&&(Qe="ArrowRight",Ct="ArrowLeft"),ue.key){case Qe:ue.preventDefault(),bl(me,$e,Sy);break;case Ct:ue.preventDefault(),bl(me,$e,wy);break;case"Home":ue.preventDefault(),bl(me,null,wy);break;case"End":ue.preventDefault(),bl(me,null,Sy);break}},Pe=De();return d.jsxs(iN,S({className:le(g.root,f),ownerState:E,ref:n,as:h},W,{children:[Pe.scrollButtonStart,Pe.scrollbarSizeListener,d.jsxs(aN,{className:g.scroller,ownerState:E,style:{overflow:ne.overflow,[G?`margin${i?"Left":"Right"}`:"marginBottom"]:F?void 0:-ne.scrollbarWidth},ref:H,children:[d.jsx(sN,{"aria-label":a,"aria-labelledby":s,"aria-orientation":C==="vertical"?"vertical":null,className:g.flexContainer,ownerState:E,onKeyDown:ye,ref:ae,role:"tablist",children:Ye}),L&&Ge]}),Pe.scrollButtonEnd]}))});function uN(e){return be("MuiTextField",e)}we("MuiTextField",["root"]);const dN=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],fN={standard:$m,filled:Em,outlined:jm},pN=e=>{const{classes:t}=e;return Se({root:["root"]},uN,t)},hN=ie(ld,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),it=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:a,className:s,color:l="primary",defaultValue:c,disabled:u=!1,error:f=!1,FormHelperTextProps:h,fullWidth:w=!1,helperText:y,id:x,InputLabelProps:C,inputProps:v,InputProps:m,inputRef:b,label:R,maxRows:k,minRows:T,multiline:P=!1,name:j,onBlur:N,onChange:O,onFocus:F,placeholder:W,required:U=!1,rows:G,select:ee=!1,SelectProps:J,type:re,value:I,variant:_="outlined"}=r,E=se(r,dN),g=S({},r,{autoFocus:i,color:l,disabled:u,error:f,fullWidth:w,multiline:P,required:U,select:ee,variant:_}),$=pN(g),z={};_==="outlined"&&(C&&typeof C.shrink<"u"&&(z.notched=C.shrink),z.label=R),ee&&((!J||!J.native)&&(z.id=void 0),z["aria-describedby"]=void 0);const L=_s(x),B=y&&L?`${L}-helper-text`:void 0,V=R&&L?`${L}-label`:void 0,M=fN[_],A=d.jsx(M,S({"aria-describedby":B,autoComplete:o,autoFocus:i,defaultValue:c,fullWidth:w,multiline:P,name:j,rows:G,maxRows:k,minRows:T,type:re,value:I,id:L,inputRef:b,onBlur:N,onChange:O,onFocus:F,placeholder:W,inputProps:v},z,m));return d.jsxs(hN,S({className:le($.root,s),disabled:u,error:f,fullWidth:w,ref:n,required:U,color:l,variant:_,ownerState:g},E,{children:[R!=null&&R!==""&&d.jsx(cd,S({htmlFor:L,id:V},C,{children:R})),ee?d.jsx(Us,S({"aria-describedby":B,id:L,labelId:V,value:I,input:A},J,{children:a})):A,y&&d.jsx(f_,S({id:B},h,{children:y}))]}))});var Im={},sf={};const mN=Lr(v5);var Ry;function je(){return Ry||(Ry=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=mN}(sf)),sf}var gN=Te;Object.defineProperty(Im,"__esModule",{value:!0});var ra=Im.default=void 0,vN=gN(je()),yN=d;ra=Im.default=(0,vN.default)((0,yN.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");var _m={},xN=Te;Object.defineProperty(_m,"__esModule",{value:!0});var Lm=_m.default=void 0,bN=xN(je()),wN=d;Lm=_m.default=(0,bN.default)((0,wN.jsx)("path",{d:"M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3m5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72z"}),"Mic");var Am={},SN=Te;Object.defineProperty(Am,"__esModule",{value:!0});var Nm=Am.default=void 0,CN=SN(je()),RN=d;Nm=Am.default=(0,CN.default)((0,RN.jsx)("path",{d:"M19 11h-1.7c0 .74-.16 1.43-.43 2.05l1.23 1.23c.56-.98.9-2.09.9-3.28m-4.02.17c0-.06.02-.11.02-.17V5c0-1.66-1.34-3-3-3S9 3.34 9 5v.18zM4.27 3 3 4.27l6.01 6.01V11c0 1.66 1.33 3 2.99 3 .22 0 .44-.03.65-.08l1.66 1.66c-.71.33-1.5.52-2.31.52-2.76 0-5.3-2.1-5.3-5.1H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c.91-.13 1.77-.45 2.54-.9L19.73 21 21 19.73z"}),"MicOff");var Dm={},kN=Te;Object.defineProperty(Dm,"__esModule",{value:!0});var ud=Dm.default=void 0,PN=kN(je()),EN=d;ud=Dm.default=(0,PN.default)((0,EN.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"Person");var zm={},TN=Te;Object.defineProperty(zm,"__esModule",{value:!0});var _c=zm.default=void 0,$N=TN(je()),MN=d;_c=zm.default=(0,$N.default)((0,MN.jsx)("path",{d:"M3 9v6h4l5 5V4L7 9zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02M14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77"}),"VolumeUp");var Bm={},jN=Te;Object.defineProperty(Bm,"__esModule",{value:!0});var Lc=Bm.default=void 0,ON=jN(je()),IN=d;Lc=Bm.default=(0,ON.default)((0,IN.jsx)("path",{d:"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63m2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71M4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9zM12 4 9.91 6.09 12 8.18z"}),"VolumeOff");var Fm={},_N=Te;Object.defineProperty(Fm,"__esModule",{value:!0});var Um=Fm.default=void 0,LN=_N(je()),AN=d;Um=Fm.default=(0,LN.default)((0,AN.jsx)("path",{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-1 9h-4v4h-2v-4H9V9h4V5h2v4h4z"}),"LibraryAdd");const Pi="/assets/Aria-BMTE8U_Y.jpg";var p2={exports:{}};(function(e){/** + `),F3)),_n=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:s=40,style:l,thickness:c=3.6,value:u=0,variant:f="indeterminate"}=r,h=se(r,z3),w=S({},r,{color:i,disableShrink:a,size:s,thickness:c,value:u,variant:f}),y=U3(w),x={},C={},v={};if(f==="determinate"){const m=2*Math.PI*((Hr-c)/2);x.strokeDasharray=m.toFixed(3),v["aria-valuenow"]=Math.round(u),x.strokeDashoffset=`${((100-u)/100*m).toFixed(3)}px`,C.transform="rotate(-90deg)"}return d.jsx(W3,S({className:le(y.root,o),style:S({width:s,height:s},C,l),ownerState:w,ref:n,role:"progressbar"},v,h,{children:d.jsx(H3,{className:y.svg,ownerState:w,viewBox:`${Hr/2} ${Hr/2} ${Hr} ${Hr}`,children:d.jsx(V3,{className:y.circle,style:x,ownerState:w,cx:Hr,cy:Hr,r:(Hr-c)/2,fill:"none",strokeWidth:c})})}))}),Zw=Q$({createStyledComponent:ie("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Z(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>ke({props:e,name:"MuiContainer"})}),q3=(e,t)=>S({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),G3=e=>S({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),K3=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([a,s])=>{var l;r[e.getColorSchemeSelector(a).replace(/\s*&/,"")]={colorScheme:(l=s.palette)==null?void 0:l.mode}});let o=S({html:q3(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:S({margin:0},G3(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const i=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return i&&(o=[o,i]),o};function Rm(e){const t=ke({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return d.jsxs(p.Fragment,{children:[d.jsx(Kw,{styles:o=>K3(o,r)}),n]})}function Y3(e){return be("MuiModal",e)}we("MuiModal",["root","hidden","backdrop"]);const X3=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Q3=e=>{const{open:t,exited:n,classes:r}=e;return Se({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Y3,r)},J3=ie("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>S({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Z3=ie(Xw,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Pm=p.forwardRef(function(t,n){var r,o,i,a,s,l;const c=ke({name:"MuiModal",props:t}),{BackdropComponent:u=Z3,BackdropProps:f,className:h,closeAfterTransition:w=!1,children:y,container:x,component:C,components:v={},componentsProps:m={},disableAutoFocus:b=!1,disableEnforceFocus:k=!1,disableEscapeKeyDown:R=!1,disablePortal:T=!1,disableRestoreFocus:P=!1,disableScrollLock:j=!1,hideBackdrop:N=!1,keepMounted:I=!1,onBackdropClick:F,open:H,slotProps:U,slots:q}=c,ee=se(c,X3),J=S({},c,{closeAfterTransition:w,disableAutoFocus:b,disableEnforceFocus:k,disableEscapeKeyDown:R,disablePortal:T,disableRestoreFocus:P,disableScrollLock:j,hideBackdrop:N,keepMounted:I}),{getRootProps:re,getBackdropProps:O,getTransitionProps:_,portalRef:E,isTopModal:g,exited:$,hasTransition:z}=qM(S({},J,{rootRef:n})),L=S({},J,{exited:$}),B=Q3(L),V={};if(y.props.tabIndex===void 0&&(V.tabIndex="-1"),z){const{onEnter:te,onExited:ne}=_();V.onEnter=te,V.onExited=ne}const M=(r=(o=q==null?void 0:q.root)!=null?o:v.Root)!=null?r:J3,A=(i=(a=q==null?void 0:q.backdrop)!=null?a:v.Backdrop)!=null?i:u,G=(s=U==null?void 0:U.root)!=null?s:m.root,Y=(l=U==null?void 0:U.backdrop)!=null?l:m.backdrop,K=fn({elementType:M,externalSlotProps:G,externalForwardedProps:ee,getSlotProps:re,additionalProps:{ref:n,as:C},ownerState:L,className:le(h,G==null?void 0:G.className,B==null?void 0:B.root,!L.open&&L.exited&&(B==null?void 0:B.hidden))}),oe=fn({elementType:A,externalSlotProps:Y,additionalProps:f,getSlotProps:te=>O(S({},te,{onClick:ne=>{F&&F(ne),te!=null&&te.onClick&&te.onClick(ne)}})),className:le(Y==null?void 0:Y.className,f==null?void 0:f.className,B==null?void 0:B.backdrop),ownerState:L});return!I&&!H&&(!z||$)?null:d.jsx(_w,{ref:E,container:x,disablePortal:T,children:d.jsxs(M,S({},K,{children:[!N&&u?d.jsx(A,S({},oe)):null,d.jsx(AM,{disableEnforceFocus:k,disableAutoFocus:b,disableRestoreFocus:P,isEnabled:g,open:H,children:p.cloneElement(y,V)})]}))})});function eI(e){return be("MuiDialog",e)}const ef=we("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),e2=p.createContext({}),tI=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],nI=ie(Xw,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),rI=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,a={root:["root"],container:["container",`scroll${Z(n)}`],paper:["paper",`paperScroll${Z(n)}`,`paperWidth${Z(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return Se(a,eI,t)},oI=ie(Pm,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),iI=ie("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Z(n.scroll)}`]]}})(({ownerState:e})=>S({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),aI=ie(En,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Z(n.scroll)}`],t[`paperWidth${Z(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>S({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${ef.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${ef.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${ef.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),$p=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiDialog"}),o=mo(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,BackdropComponent:l,BackdropProps:c,children:u,className:f,disableEscapeKeyDown:h=!1,fullScreen:w=!1,fullWidth:y=!1,maxWidth:x="sm",onBackdropClick:C,onClick:v,onClose:m,open:b,PaperComponent:k=En,PaperProps:R={},scroll:T="paper",TransitionComponent:P=Yw,transitionDuration:j=i,TransitionProps:N}=r,I=se(r,tI),F=S({},r,{disableEscapeKeyDown:h,fullScreen:w,fullWidth:y,maxWidth:x,scroll:T}),H=rI(F),U=p.useRef(),q=O=>{U.current=O.target===O.currentTarget},ee=O=>{v&&v(O),U.current&&(U.current=null,C&&C(O),m&&m(O,"backdropClick"))},J=_s(s),re=p.useMemo(()=>({titleId:J}),[J]);return d.jsx(oI,S({className:le(H.root,f),closeAfterTransition:!0,components:{Backdrop:nI},componentsProps:{backdrop:S({transitionDuration:j,as:l},c)},disableEscapeKeyDown:h,onClose:m,open:b,ref:n,onClick:ee,ownerState:F},I,{children:d.jsx(P,S({appear:!0,in:b,timeout:j,role:"presentation"},N,{children:d.jsx(iI,{className:le(H.container),onMouseDown:q,ownerState:F,children:d.jsx(aI,S({as:k,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":J},R,{className:le(H.paper,R.className),ownerState:F,children:d.jsx(e2.Provider,{value:re,children:u})}))})}))}))});function sI(e){return be("MuiDialogActions",e)}we("MuiDialogActions",["root","spacing"]);const lI=["className","disableSpacing"],cI=e=>{const{classes:t,disableSpacing:n}=e;return Se({root:["root",!n&&"spacing"]},sI,t)},uI=ie("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>S({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),Mp=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1}=r,a=se(r,lI),s=S({},r,{disableSpacing:i}),l=cI(s);return d.jsx(uI,S({className:le(l.root,o),ownerState:s,ref:n},a))});function dI(e){return be("MuiDialogContent",e)}we("MuiDialogContent",["root","dividers"]);function fI(e){return be("MuiDialogTitle",e)}const pI=we("MuiDialogTitle",["root"]),hI=["className","dividers"],mI=e=>{const{classes:t,dividers:n}=e;return Se({root:["root",n&&"dividers"]},dI,t)},gI=ie("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>S({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${pI.root} + &`]:{paddingTop:0}})),jp=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,a=se(r,hI),s=S({},r,{dividers:i}),l=mI(s);return d.jsx(gI,S({className:le(l.root,o),ownerState:s,ref:n},a))});function vI(e){return be("MuiDialogContentText",e)}we("MuiDialogContentText",["root"]);const yI=["children","className"],xI=e=>{const{classes:t}=e,r=Se({root:["root"]},vI,t);return S({},t,r)},bI=ie(Ie,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),t2=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiDialogContentText"}),{className:o}=r,i=se(r,yI),a=xI(i);return d.jsx(bI,S({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:i,className:le(a.root,o)},r,{classes:a}))}),wI=["className","id"],SI=e=>{const{classes:t}=e;return Se({root:["root"]},fI,t)},CI=ie(Ie,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Op=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiDialogTitle"}),{className:o,id:i}=r,a=se(r,wI),s=r,l=SI(s),{titleId:c=i}=p.useContext(e2);return d.jsx(CI,S({component:"h2",className:le(l.root,o),ownerState:s,ref:n,variant:"h6",id:i??c},a))});function kI(e){return be("MuiDivider",e)}const oy=we("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),RI=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],PI=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return Se({root:["root",t&&"absolute",l,i&&"light",a==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",s==="right"&&a!=="vertical"&&"textAlignRight",s==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},kI,r)},EI=ie("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>S({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Fe(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>S({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>S({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>S({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>S({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),TI=ie("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>S({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),xs=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:a,component:s=i?"div":"hr",flexItem:l=!1,light:c=!1,orientation:u="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:h="center",variant:w="fullWidth"}=r,y=se(r,RI),x=S({},r,{absolute:o,component:s,flexItem:l,light:c,orientation:u,role:f,textAlign:h,variant:w}),C=PI(x);return d.jsx(EI,S({as:s,className:le(C.root,a),role:f,ref:n,ownerState:x},y,{children:i?d.jsx(TI,{className:C.wrapper,ownerState:x,children:i}):null}))});xs.muiSkipListHighlight=!0;const $I=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function MI(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=Bn(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const c=i.getComputedStyle(t);a=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let s=0,l=0;if(a&&a!=="none"&&typeof a=="string"){const c=a.split("(")[1].split(")")[0].split(",");s=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?o?`translateX(${o.right+s-r.left}px)`:`translateX(${i.innerWidth+s-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function jI(e){return typeof e=="function"?e():e}function vl(e,t,n){const r=jI(n),o=MI(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const OI=p.forwardRef(function(t,n){const r=mo(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,container:c,direction:u="down",easing:f=o,in:h,onEnter:w,onEntered:y,onEntering:x,onExit:C,onExited:v,onExiting:m,style:b,timeout:k=i,TransitionComponent:R=ar}=t,T=se(t,$I),P=p.useRef(null),j=lt(l.ref,P,n),N=O=>_=>{O&&(_===void 0?O(P.current):O(P.current,_))},I=N((O,_)=>{vl(u,O,c),pm(O),w&&w(O,_)}),F=N((O,_)=>{const E=Ai({timeout:k,style:b,easing:f},{mode:"enter"});O.style.webkitTransition=r.transitions.create("-webkit-transform",S({},E)),O.style.transition=r.transitions.create("transform",S({},E)),O.style.webkitTransform="none",O.style.transform="none",x&&x(O,_)}),H=N(y),U=N(m),q=N(O=>{const _=Ai({timeout:k,style:b,easing:f},{mode:"exit"});O.style.webkitTransition=r.transitions.create("-webkit-transform",_),O.style.transition=r.transitions.create("transform",_),vl(u,O,c),C&&C(O)}),ee=N(O=>{O.style.webkitTransition="",O.style.transition="",v&&v(O)}),J=O=>{a&&a(P.current,O)},re=p.useCallback(()=>{P.current&&vl(u,P.current,c)},[u,c]);return p.useEffect(()=>{if(h||u==="down"||u==="right")return;const O=ea(()=>{P.current&&vl(u,P.current,c)}),_=Bn(P.current);return _.addEventListener("resize",O),()=>{O.clear(),_.removeEventListener("resize",O)}},[u,h,c]),p.useEffect(()=>{h||re()},[h,re]),d.jsx(R,S({nodeRef:P,onEnter:I,onEntered:H,onEntering:F,onExit:q,onExited:ee,onExiting:U,addEndListener:J,appear:s,in:h,timeout:k},T,{children:(O,_)=>p.cloneElement(l,S({ref:j,style:S({visibility:O==="exited"&&!h?"hidden":void 0},b,l.props.style)},_))}))});function II(e){return be("MuiDrawer",e)}we("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const _I=["BackdropProps"],LI=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],n2=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},AI=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Z(n)}`,r!=="temporary"&&`paperAnchorDocked${Z(n)}`]};return Se(o,II,t)},NI=ie(Pm,{name:"MuiDrawer",slot:"Root",overridesResolver:n2})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),iy=ie("div",{shouldForwardProp:Ht,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:n2})({flex:"0 0 auto"}),DI=ie(En,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${Z(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${Z(n.anchor)}`]]}})(({theme:e,ownerState:t})=>S({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),r2={left:"right",right:"left",top:"down",bottom:"up"};function zI(e){return["left","right"].indexOf(e)!==-1}function BI({direction:e},t){return e==="rtl"&&zI(t)?r2[t]:t}const FI=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiDrawer"}),o=mo(),i=As(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:l,children:c,className:u,elevation:f=16,hideBackdrop:h=!1,ModalProps:{BackdropProps:w}={},onClose:y,open:x=!1,PaperProps:C={},SlideProps:v,TransitionComponent:m=OI,transitionDuration:b=a,variant:k="temporary"}=r,R=se(r.ModalProps,_I),T=se(r,LI),P=p.useRef(!1);p.useEffect(()=>{P.current=!0},[]);const j=BI({direction:i?"rtl":"ltr"},s),I=S({},r,{anchor:s,elevation:f,open:x,variant:k},T),F=AI(I),H=d.jsx(DI,S({elevation:k==="temporary"?f:0,square:!0},C,{className:le(F.paper,C.className),ownerState:I,children:c}));if(k==="permanent")return d.jsx(iy,S({className:le(F.root,F.docked,u),ownerState:I,ref:n},T,{children:H}));const U=d.jsx(m,S({in:x,direction:r2[j],timeout:b,appear:P.current},v,{children:H}));return k==="persistent"?d.jsx(iy,S({className:le(F.root,F.docked,u),ownerState:I,ref:n},T,{children:U})):d.jsx(NI,S({BackdropProps:S({},l,w,{transitionDuration:b}),className:le(F.root,F.modal,u),open:x,ownerState:I,onClose:y,hideBackdrop:h,ref:n},T,R,{children:U}))}),UI=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],WI=e=>{const{classes:t,disableUnderline:n}=e,o=Se({root:["root",!n&&"underline"],input:["input"]},LO,t);return S({},t,o)},HI=ie(rd,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...td(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return S({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${xo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${xo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${xo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${xo.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${xo.disabled}, .${xo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${xo.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&S({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),VI=ie(od,{name:"MuiFilledInput",slot:"Input",overridesResolver:nd})(({theme:e,ownerState:t})=>S({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),Em=p.forwardRef(function(t,n){var r,o,i,a;const s=ke({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:f="input",multiline:h=!1,slotProps:w,slots:y={},type:x="text"}=s,C=se(s,UI),v=S({},s,{fullWidth:u,inputComponent:f,multiline:h,type:x}),m=WI(s),b={root:{ownerState:v},input:{ownerState:v}},k=w??c?Qt(b,w??c):b,R=(r=(o=y.root)!=null?o:l.Root)!=null?r:HI,T=(i=(a=y.input)!=null?a:l.Input)!=null?i:VI;return d.jsx(Sm,S({slots:{root:R,input:T},componentsProps:k,fullWidth:u,inputComponent:f,multiline:h,ref:n,type:x},C,{classes:m}))});Em.muiName="Input";function qI(e){return be("MuiFormControl",e)}we("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const GI=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],KI=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Z(n)}`,r&&"fullWidth"]};return Se(o,qI,t)},YI=ie("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,t[`margin${Z(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>S({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),sd=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:f=!1,hiddenLabel:h=!1,margin:w="none",required:y=!1,size:x="medium",variant:C="outlined"}=r,v=se(r,GI),m=S({},r,{color:a,component:s,disabled:l,error:c,fullWidth:f,hiddenLabel:h,margin:w,required:y,size:x,variant:C}),b=KI(m),[k,R]=p.useState(()=>{let U=!1;return o&&p.Children.forEach(o,q=>{if(!Fa(q,["Input","Select"]))return;const ee=Fa(q,["Select"])?q.props.input:q;ee&&EO(ee.props)&&(U=!0)}),U}),[T,P]=p.useState(()=>{let U=!1;return o&&p.Children.forEach(o,q=>{Fa(q,["Input","Select"])&&(Mc(q.props,!0)||Mc(q.props.inputProps,!0))&&(U=!0)}),U}),[j,N]=p.useState(!1);l&&j&&N(!1);const I=u!==void 0&&!l?u:j;let F;const H=p.useMemo(()=>({adornedStart:k,setAdornedStart:R,color:a,disabled:l,error:c,filled:T,focused:I,fullWidth:f,hiddenLabel:h,size:x,onBlur:()=>{N(!1)},onEmpty:()=>{P(!1)},onFilled:()=>{P(!0)},onFocus:()=>{N(!0)},registerEffect:F,required:y,variant:C}),[k,a,l,c,T,I,f,h,F,y,x,C]);return d.jsx(ed.Provider,{value:H,children:d.jsx(YI,S({as:s,ownerState:m,className:le(b.root,i),ref:n},v,{children:o}))})}),XI=i4({createStyledComponent:ie("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>ke({props:e,name:"MuiStack"})});function QI(e){return be("MuiFormControlLabel",e)}const Ma=we("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),JI=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],ZI=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,a={root:["root",n&&"disabled",`labelPlacement${Z(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Se(a,QI,t)},e_=ie("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ma.label}`]:t.label},t.root,t[`labelPlacement${Z(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>S({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Ma.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Ma.label}`]:{[`&.${Ma.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),t_=ie("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Ma.error}`]:{color:(e.vars||e).palette.error.main}})),Tm=p.forwardRef(function(t,n){var r,o;const i=ke({props:t,name:"MuiFormControlLabel"}),{className:a,componentsProps:s={},control:l,disabled:c,disableTypography:u,label:f,labelPlacement:h="end",required:w,slotProps:y={}}=i,x=se(i,JI),C=br(),v=(r=c??l.props.disabled)!=null?r:C==null?void 0:C.disabled,m=w??l.props.required,b={disabled:v,required:m};["checked","name","onChange","value","inputRef"].forEach(N=>{typeof l.props[N]>"u"&&typeof i[N]<"u"&&(b[N]=i[N])});const k=vo({props:i,muiFormControl:C,states:["error"]}),R=S({},i,{disabled:v,labelPlacement:h,required:m,error:k.error}),T=ZI(R),P=(o=y.typography)!=null?o:s.typography;let j=f;return j!=null&&j.type!==Ie&&!u&&(j=d.jsx(Ie,S({component:"span"},P,{className:le(T.label,P==null?void 0:P.className),children:j}))),d.jsxs(e_,S({className:le(T.root,a),ownerState:R,ref:n},x,{children:[p.cloneElement(l,b),m?d.jsxs(XI,{display:"block",children:[j,d.jsxs(t_,{ownerState:R,"aria-hidden":!0,className:T.asterisk,children:[" ","*"]})]}):j]}))});function n_(e){return be("MuiFormGroup",e)}we("MuiFormGroup",["root","row","error"]);const r_=["className","row"],o_=e=>{const{classes:t,row:n,error:r}=e;return Se({root:["root",n&&"row",r&&"error"]},n_,t)},i_=ie("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>S({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),o2=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiFormGroup"}),{className:o,row:i=!1}=r,a=se(r,r_),s=br(),l=vo({props:r,muiFormControl:s,states:["error"]}),c=S({},r,{row:i,error:l.error}),u=o_(c);return d.jsx(i_,S({className:le(u.root,o),ownerState:c,ref:n},a))});function a_(e){return be("MuiFormHelperText",e)}const ay=we("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var sy;const s_=["children","className","component","disabled","error","filled","focused","margin","required","variant"],l_=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:a,focused:s,required:l}=e,c={root:["root",o&&"disabled",i&&"error",r&&`size${Z(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return Se(c,a_,t)},c_=ie("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Z(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${ay.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ay.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),u_=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:a="p"}=r,s=se(r,s_),l=br(),c=vo({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),u=S({},r,{component:a,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=l_(u);return d.jsx(c_,S({as:a,ownerState:u,className:le(f.root,i),ref:n},s,{children:o===" "?sy||(sy=d.jsx("span",{className:"notranslate",children:"​"})):o}))});function d_(e){return be("MuiFormLabel",e)}const Va=we("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),f_=["children","className","color","component","disabled","error","filled","focused","required"],p_=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:s}=e,l={root:["root",`color${Z(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return Se(l,d_,t)},h_=ie("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Va.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Va.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Va.error}`]:{color:(e.vars||e).palette.error.main}})),m_=ie("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Va.error}`]:{color:(e.vars||e).palette.error.main}})),g_=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:a="label"}=r,s=se(r,f_),l=br(),c=vo({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),u=S({},r,{color:c.color||"primary",component:a,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=p_(u);return d.jsxs(h_,S({as:a,ownerState:u,className:le(f.root,i),ref:n},s,{children:[o,c.required&&d.jsxs(m_,{ownerState:u,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),v_=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Ip(e){return`scale(${e}, ${e**2})`}const y_={entering:{opacity:1,transform:Ip(1)},entered:{opacity:1,transform:"none"}},tf=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),bs=p.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:f,onExited:h,onExiting:w,style:y,timeout:x="auto",TransitionComponent:C=ar}=t,v=se(t,v_),m=To(),b=p.useRef(),k=mo(),R=p.useRef(null),T=lt(R,i.ref,n),P=ee=>J=>{if(ee){const re=R.current;J===void 0?ee(re):ee(re,J)}},j=P(u),N=P((ee,J)=>{pm(ee);const{duration:re,delay:O,easing:_}=Ai({style:y,timeout:x,easing:a},{mode:"enter"});let E;x==="auto"?(E=k.transitions.getAutoHeightDuration(ee.clientHeight),b.current=E):E=re,ee.style.transition=[k.transitions.create("opacity",{duration:E,delay:O}),k.transitions.create("transform",{duration:tf?E:E*.666,delay:O,easing:_})].join(","),l&&l(ee,J)}),I=P(c),F=P(w),H=P(ee=>{const{duration:J,delay:re,easing:O}=Ai({style:y,timeout:x,easing:a},{mode:"exit"});let _;x==="auto"?(_=k.transitions.getAutoHeightDuration(ee.clientHeight),b.current=_):_=J,ee.style.transition=[k.transitions.create("opacity",{duration:_,delay:re}),k.transitions.create("transform",{duration:tf?_:_*.666,delay:tf?re:re||_*.333,easing:O})].join(","),ee.style.opacity=0,ee.style.transform=Ip(.75),f&&f(ee)}),U=P(h),q=ee=>{x==="auto"&&m.start(b.current||0,ee),r&&r(R.current,ee)};return d.jsx(C,S({appear:o,in:s,nodeRef:R,onEnter:N,onEntered:I,onEntering:j,onExit:H,onExited:U,onExiting:F,addEndListener:q,timeout:x==="auto"?null:x},v,{children:(ee,J)=>p.cloneElement(i,S({style:S({opacity:0,transform:Ip(.75),visibility:ee==="exited"&&!s?"hidden":void 0},y_[ee],y,i.props.style),ref:T},J))}))});bs.muiSupportAuto=!0;const x_=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],b_=e=>{const{classes:t,disableUnderline:n}=e,o=Se({root:["root",!n&&"underline"],input:["input"]},IO,t);return S({},t,o)},w_=ie(rd,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...td(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),S({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${xa.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${xa.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${xa.disabled}, .${xa.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${xa.disabled}:before`]:{borderBottomStyle:"dotted"}})}),S_=ie(od,{name:"MuiInput",slot:"Input",overridesResolver:nd})({}),$m=p.forwardRef(function(t,n){var r,o,i,a;const s=ke({props:t,name:"MuiInput"}),{disableUnderline:l,components:c={},componentsProps:u,fullWidth:f=!1,inputComponent:h="input",multiline:w=!1,slotProps:y,slots:x={},type:C="text"}=s,v=se(s,x_),m=b_(s),k={root:{ownerState:{disableUnderline:l}}},R=y??u?Qt(y??u,k):k,T=(r=(o=x.root)!=null?o:c.Root)!=null?r:w_,P=(i=(a=x.input)!=null?a:c.Input)!=null?i:S_;return d.jsx(Sm,S({slots:{root:T,input:P},slotProps:R,fullWidth:f,inputComponent:h,multiline:w,ref:n,type:C},v,{classes:m}))});$m.muiName="Input";function C_(e){return be("MuiInputAdornment",e)}const ly=we("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var cy;const k_=["children","className","component","disablePointerEvents","disableTypography","position","variant"],R_=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Z(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},P_=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${Z(o)}`,a,r&&"hiddenLabel",i&&`size${Z(i)}`]};return Se(s,C_,t)},E_=ie("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:R_})(({theme:e,ownerState:t})=>S({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${ly.positionStart}&:not(.${ly.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),jc=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u}=r,f=se(r,k_),h=br()||{};let w=u;u&&h.variant,h&&!w&&(w=h.variant);const y=S({},r,{hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:s,position:c,variant:w}),x=P_(y);return d.jsx(ed.Provider,{value:null,children:d.jsx(E_,S({as:a,ownerState:y,className:le(x.root,i),ref:n},f,{children:typeof o=="string"&&!l?d.jsx(Ie,{color:"text.secondary",children:o}):d.jsxs(p.Fragment,{children:[c==="start"?cy||(cy=d.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})});function T_(e){return be("MuiInputLabel",e)}we("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const $_=["disableAnimation","margin","shrink","variant","className"],M_=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:s}=e,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${Z(r)}`,a],asterisk:[s&&"asterisk"]},c=Se(l,T_,t);return S({},t,c)},j_=ie(g_,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Va.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>S({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&S({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&S({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&S({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),ld=p.forwardRef(function(t,n){const r=ke({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:a}=r,s=se(r,$_),l=br();let c=i;typeof c>"u"&&l&&(c=l.filled||l.focused||l.adornedStart);const u=vo({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),f=S({},r,{disableAnimation:o,formControl:l,shrink:c,size:u.size,variant:u.variant,required:u.required,focused:u.focused}),h=M_(f);return d.jsx(j_,S({"data-shrink":c,ownerState:f,ref:n,className:le(h.root,a)},s,{classes:h}))}),gr=p.createContext({});function O_(e){return be("MuiList",e)}we("MuiList",["root","padding","dense","subheader"]);const I_=["children","className","component","dense","disablePadding","subheader"],__=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Se({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},O_,t)},L_=ie("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>S({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Fs=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:c}=r,u=se(r,I_),f=p.useMemo(()=>({dense:s}),[s]),h=S({},r,{component:a,dense:s,disablePadding:l}),w=__(h);return d.jsx(gr.Provider,{value:f,children:d.jsxs(L_,S({as:a,className:le(w.root,i),ref:n,ownerState:h},u,{children:[c,o]}))})});function A_(e){return be("MuiListItem",e)}const oi=we("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),N_=we("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function D_(e){return be("MuiListItemSecondaryAction",e)}we("MuiListItemSecondaryAction",["root","disableGutters"]);const z_=["className"],B_=e=>{const{disableGutters:t,classes:n}=e;return Se({root:["root",t&&"disableGutters"]},D_,n)},F_=ie("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>S({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),i2=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=se(r,z_),a=p.useContext(gr),s=S({},r,{disableGutters:a.disableGutters}),l=B_(s);return d.jsx(F_,S({className:le(l.root,o),ownerState:s,ref:n},i))});i2.muiName="ListItemSecondaryAction";const U_=["className"],W_=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],H_=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},V_=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=e;return Se({root:["root",o&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},A_,r)},q_=ie("div",{name:"MuiListItem",slot:"Root",overridesResolver:H_})(({theme:e,ownerState:t})=>S({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&S({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${N_.root}`]:{paddingRight:48}},{[`&.${oi.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${oi.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${oi.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${oi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${oi.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),G_=ie("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Oc=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:a=!1,children:s,className:l,component:c,components:u={},componentsProps:f={},ContainerComponent:h="li",ContainerProps:{className:w}={},dense:y=!1,disabled:x=!1,disableGutters:C=!1,disablePadding:v=!1,divider:m=!1,focusVisibleClassName:b,secondaryAction:k,selected:R=!1,slotProps:T={},slots:P={}}=r,j=se(r.ContainerProps,U_),N=se(r,W_),I=p.useContext(gr),F=p.useMemo(()=>({dense:y||I.dense||!1,alignItems:o,disableGutters:C}),[o,I.dense,y,C]),H=p.useRef(null);Sn(()=>{i&&H.current&&H.current.focus()},[i]);const U=p.Children.toArray(s),q=U.length&&Fa(U[U.length-1],["ListItemSecondaryAction"]),ee=S({},r,{alignItems:o,autoFocus:i,button:a,dense:F.dense,disabled:x,disableGutters:C,disablePadding:v,divider:m,hasSecondaryAction:q,selected:R}),J=V_(ee),re=lt(H,n),O=P.root||u.Root||q_,_=T.root||f.root||{},E=S({className:le(J.root,_.className,l),disabled:x},N);let g=c||"li";return a&&(E.component=c||"div",E.focusVisibleClassName=le(oi.focusVisible,b),g=Ir),q?(g=!E.component&&!c?"div":g,h==="li"&&(g==="li"?g="div":E.component==="li"&&(E.component="div")),d.jsx(gr.Provider,{value:F,children:d.jsxs(G_,S({as:h,className:le(J.container,w),ref:re,ownerState:ee},j,{children:[d.jsx(O,S({},_,!Ni(O)&&{as:g,ownerState:S({},ee,_.ownerState)},E,{children:U})),U.pop()]}))})):d.jsx(gr.Provider,{value:F,children:d.jsxs(O,S({},_,{as:g,ref:re},!Ni(O)&&{ownerState:S({},ee,_.ownerState)},E,{children:[U,k&&d.jsx(i2,{children:k})]}))})});function K_(e){return be("MuiListItemAvatar",e)}we("MuiListItemAvatar",["root","alignItemsFlexStart"]);const Y_=["className"],X_=e=>{const{alignItems:t,classes:n}=e;return Se({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},K_,n)},Q_=ie("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>S({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),J_=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiListItemAvatar"}),{className:o}=r,i=se(r,Y_),a=p.useContext(gr),s=S({},r,{alignItems:a.alignItems}),l=X_(s);return d.jsx(Q_,S({className:le(l.root,o),ownerState:s,ref:n},i))});function Z_(e){return be("MuiListItemIcon",e)}const uy=we("MuiListItemIcon",["root","alignItemsFlexStart"]),eL=["className"],tL=e=>{const{alignItems:t,classes:n}=e;return Se({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Z_,n)},nL=ie("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>S({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),dy=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiListItemIcon"}),{className:o}=r,i=se(r,eL),a=p.useContext(gr),s=S({},r,{alignItems:a.alignItems}),l=tL(s);return d.jsx(nL,S({className:le(l.root,o),ownerState:s,ref:n},i))});function rL(e){return be("MuiListItemText",e)}const Ic=we("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),oL=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],iL=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return Se({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},rL,t)},aL=ie("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ic.primary}`]:t.primary},{[`& .${Ic.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>S({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),ws=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:f}=r,h=se(r,oL),{dense:w}=p.useContext(gr);let y=l??o,x=u;const C=S({},r,{disableTypography:a,inset:s,primary:!!y,secondary:!!x,dense:w}),v=iL(C);return y!=null&&y.type!==Ie&&!a&&(y=d.jsx(Ie,S({variant:w?"body2":"body1",className:v.primary,component:c!=null&&c.variant?void 0:"span",display:"block"},c,{children:y}))),x!=null&&x.type!==Ie&&!a&&(x=d.jsx(Ie,S({variant:"body2",className:v.secondary,color:"text.secondary",display:"block"},f,{children:x}))),d.jsxs(aL,S({className:le(v.root,i),ownerState:C,ref:n},h,{children:[y,x]}))}),sL=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function nf(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function fy(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function a2(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function ba(e,t,n,r,o,i){let a=!1,s=o(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!a2(s,i)||l)s=o(e,s,n);else return s.focus(),!0}return!1}const lL=p.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:f="selectedMenu"}=t,h=se(t,sL),w=p.useRef(null),y=p.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Sn(()=>{o&&w.current.focus()},[o]),p.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(b,{direction:k})=>{const R=!w.current.style.width;if(b.clientHeight{const k=w.current,R=b.key,T=St(k).activeElement;if(R==="ArrowDown")b.preventDefault(),ba(k,T,c,l,nf);else if(R==="ArrowUp")b.preventDefault(),ba(k,T,c,l,fy);else if(R==="Home")b.preventDefault(),ba(k,null,c,l,nf);else if(R==="End")b.preventDefault(),ba(k,null,c,l,fy);else if(R.length===1){const P=y.current,j=R.toLowerCase(),N=performance.now();P.keys.length>0&&(N-P.lastTime>500?(P.keys=[],P.repeating=!0,P.previousKeyMatched=!0):P.repeating&&j!==P.keys[0]&&(P.repeating=!1)),P.lastTime=N,P.keys.push(j);const I=T&&!P.repeating&&a2(T,P);P.previousKeyMatched&&(I||ba(k,T,!1,l,nf,P))?b.preventDefault():P.previousKeyMatched=!1}u&&u(b)},C=lt(w,n);let v=-1;p.Children.forEach(a,(b,k)=>{if(!p.isValidElement(b)){v===k&&(v+=1,v>=a.length&&(v=-1));return}b.props.disabled||(f==="selectedMenu"&&b.props.selected||v===-1)&&(v=k),v===k&&(b.props.disabled||b.props.muiSkipListHighlight||b.type.muiSkipListHighlight)&&(v+=1,v>=a.length&&(v=-1))});const m=p.Children.map(a,(b,k)=>{if(k===v){const R={};return i&&(R.autoFocus=!0),b.props.tabIndex===void 0&&f==="selectedMenu"&&(R.tabIndex=0),p.cloneElement(b,R)}return b});return d.jsx(Fs,S({role:"menu",ref:C,className:s,onKeyDown:x,tabIndex:o?0:-1},h,{children:m}))});function cL(e){return be("MuiPopover",e)}we("MuiPopover",["root","paper"]);const uL=["onEntering"],dL=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],fL=["slotProps"];function py(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function hy(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function my(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function rf(e){return typeof e=="function"?e():e}const pL=e=>{const{classes:t}=e;return Se({root:["root"],paper:["paper"]},cL,t)},hL=ie(Pm,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),s2=ie(En,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),mL=p.forwardRef(function(t,n){var r,o,i;const a=ke({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:f="anchorEl",children:h,className:w,container:y,elevation:x=8,marginThreshold:C=16,open:v,PaperProps:m={},slots:b,slotProps:k,transformOrigin:R={vertical:"top",horizontal:"left"},TransitionComponent:T=bs,transitionDuration:P="auto",TransitionProps:{onEntering:j}={},disableScrollLock:N=!1}=a,I=se(a.TransitionProps,uL),F=se(a,dL),H=(r=k==null?void 0:k.paper)!=null?r:m,U=p.useRef(),q=lt(U,H.ref),ee=S({},a,{anchorOrigin:c,anchorReference:f,elevation:x,marginThreshold:C,externalPaperSlotProps:H,transformOrigin:R,TransitionComponent:T,transitionDuration:P,TransitionProps:I}),J=pL(ee),re=p.useCallback(()=>{if(f==="anchorPosition")return u;const te=rf(l),de=(te&&te.nodeType===1?te:St(U.current).body).getBoundingClientRect();return{top:de.top+py(de,c.vertical),left:de.left+hy(de,c.horizontal)}},[l,c.horizontal,c.vertical,u,f]),O=p.useCallback(te=>({vertical:py(te,R.vertical),horizontal:hy(te,R.horizontal)}),[R.horizontal,R.vertical]),_=p.useCallback(te=>{const ne={width:te.offsetWidth,height:te.offsetHeight},de=O(ne);if(f==="none")return{top:null,left:null,transformOrigin:my(de)};const Re=re();let W=Re.top-de.vertical,ae=Re.left-de.horizontal;const ge=W+ne.height,D=ae+ne.width,X=Bn(rf(l)),fe=X.innerHeight-C,pe=X.innerWidth-C;if(C!==null&&Wfe){const ve=ge-fe;W-=ve,de.vertical+=ve}if(C!==null&&aepe){const ve=D-pe;ae-=ve,de.horizontal+=ve}return{top:`${Math.round(W)}px`,left:`${Math.round(ae)}px`,transformOrigin:my(de)}},[l,f,re,O,C]),[E,g]=p.useState(v),$=p.useCallback(()=>{const te=U.current;if(!te)return;const ne=_(te);ne.top!==null&&(te.style.top=ne.top),ne.left!==null&&(te.style.left=ne.left),te.style.transformOrigin=ne.transformOrigin,g(!0)},[_]);p.useEffect(()=>(N&&window.addEventListener("scroll",$),()=>window.removeEventListener("scroll",$)),[l,N,$]);const z=(te,ne)=>{j&&j(te,ne),$()},L=()=>{g(!1)};p.useEffect(()=>{v&&$()}),p.useImperativeHandle(s,()=>v?{updatePosition:()=>{$()}}:null,[v,$]),p.useEffect(()=>{if(!v)return;const te=ea(()=>{$()}),ne=Bn(l);return ne.addEventListener("resize",te),()=>{te.clear(),ne.removeEventListener("resize",te)}},[l,v,$]);let B=P;P==="auto"&&!T.muiSupportAuto&&(B=void 0);const V=y||(l?St(rf(l)).body:void 0),M=(o=b==null?void 0:b.root)!=null?o:hL,A=(i=b==null?void 0:b.paper)!=null?i:s2,G=fn({elementType:A,externalSlotProps:S({},H,{style:E?H.style:S({},H.style,{opacity:0})}),additionalProps:{elevation:x,ref:q},ownerState:ee,className:le(J.paper,H==null?void 0:H.className)}),Y=fn({elementType:M,externalSlotProps:(k==null?void 0:k.root)||{},externalForwardedProps:F,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:V,open:v},ownerState:ee,className:le(J.root,w)}),{slotProps:K}=Y,oe=se(Y,fL);return d.jsx(M,S({},oe,!Ni(M)&&{slotProps:K,disableScrollLock:N},{children:d.jsx(T,S({appear:!0,in:v,onEntering:z,onExited:L,timeout:B},I,{children:d.jsx(A,S({},G,{children:h}))}))}))});function gL(e){return be("MuiMenu",e)}we("MuiMenu",["root","paper","list"]);const vL=["onEntering"],yL=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],xL={vertical:"top",horizontal:"right"},bL={vertical:"top",horizontal:"left"},wL=e=>{const{classes:t}=e;return Se({root:["root"],paper:["paper"],list:["list"]},gL,t)},SL=ie(mL,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),CL=ie(s2,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),kL=ie(lL,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),l2=p.forwardRef(function(t,n){var r,o;const i=ke({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:f,open:h,PaperProps:w={},PopoverClasses:y,transitionDuration:x="auto",TransitionProps:{onEntering:C}={},variant:v="selectedMenu",slots:m={},slotProps:b={}}=i,k=se(i.TransitionProps,vL),R=se(i,yL),T=As(),P=S({},i,{autoFocus:a,disableAutoFocusItem:c,MenuListProps:u,onEntering:C,PaperProps:w,transitionDuration:x,TransitionProps:k,variant:v}),j=wL(P),N=a&&!c&&h,I=p.useRef(null),F=(O,_)=>{I.current&&I.current.adjustStyleForScrollbar(O,{direction:T?"rtl":"ltr"}),C&&C(O,_)},H=O=>{O.key==="Tab"&&(O.preventDefault(),f&&f(O,"tabKeyDown"))};let U=-1;p.Children.map(s,(O,_)=>{p.isValidElement(O)&&(O.props.disabled||(v==="selectedMenu"&&O.props.selected||U===-1)&&(U=_))});const q=(r=m.paper)!=null?r:CL,ee=(o=b.paper)!=null?o:w,J=fn({elementType:m.root,externalSlotProps:b.root,ownerState:P,className:[j.root,l]}),re=fn({elementType:q,externalSlotProps:ee,ownerState:P,className:j.paper});return d.jsx(SL,S({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:T?"right":"left"},transformOrigin:T?xL:bL,slots:{paper:q,root:m.root},slotProps:{root:J,paper:re},open:h,ref:n,transitionDuration:x,TransitionProps:S({onEntering:F},k),ownerState:P},R,{classes:y,children:d.jsx(kL,S({onKeyDown:H,actions:I,autoFocus:a&&(U===-1||c),autoFocusItem:N,variant:v},u,{className:le(j.list,u.className),children:s}))}))});function RL(e){return be("MuiMenuItem",e)}const wa=we("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),PL=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],EL=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},TL=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,l=Se({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},RL,a);return S({},a,l)},$L=ie(Ir,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:EL})(({theme:e,ownerState:t})=>S({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${wa.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${wa.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${wa.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${wa.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${wa.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${oy.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${oy.inset}`]:{marginLeft:52},[`& .${Ic.root}`]:{marginTop:0,marginBottom:0},[`& .${Ic.inset}`]:{paddingLeft:36},[`& .${uy.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&S({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${uy.root} svg`]:{fontSize:"1.25rem"}}))),Jn=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:f,className:h}=r,w=se(r,PL),y=p.useContext(gr),x=p.useMemo(()=>({dense:a||y.dense||!1,disableGutters:l}),[y.dense,a,l]),C=p.useRef(null);Sn(()=>{o&&C.current&&C.current.focus()},[o]);const v=S({},r,{dense:x.dense,divider:s,disableGutters:l}),m=TL(r),b=lt(C,n);let k;return r.disabled||(k=f!==void 0?f:-1),d.jsx(gr.Provider,{value:x,children:d.jsx($L,S({ref:b,role:u,tabIndex:k,component:i,focusVisibleClassName:le(m.focusVisible,c),className:le(m.root,h)},w,{ownerState:v,classes:m}))})});function ML(e){return be("MuiNativeSelect",e)}const Mm=we("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),jL=["className","disabled","error","IconComponent","inputRef","variant"],OL=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Z(n)}`,i&&"iconOpen",r&&"disabled"]};return Se(s,ML,t)},c2=({ownerState:e,theme:t})=>S({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":S({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Mm.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),IL=ie("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ht,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Mm.multiple}`]:t.multiple}]}})(c2),u2=({ownerState:e,theme:t})=>S({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Mm.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),_L=ie("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Z(n.variant)}`],n.open&&t.iconOpen]}})(u2),LL=p.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:a,inputRef:s,variant:l="standard"}=t,c=se(t,jL),u=S({},t,{disabled:o,variant:l,error:i}),f=OL(u);return d.jsxs(p.Fragment,{children:[d.jsx(IL,S({ownerState:u,className:le(f.select,r),disabled:o,ref:s||n},c)),t.multiple?null:d.jsx(_L,{as:a,ownerState:u,className:f.icon})]})});var gy;const AL=["children","classes","className","label","notched"],NL=ie("fieldset",{shouldForwardProp:Ht})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),DL=ie("legend",{shouldForwardProp:Ht})(({ownerState:e,theme:t})=>S({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&S({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function zL(e){const{className:t,label:n,notched:r}=e,o=se(e,AL),i=n!=null&&n!=="",a=S({},e,{notched:r,withLabel:i});return d.jsx(NL,S({"aria-hidden":!0,className:t,ownerState:a},o,{children:d.jsx(DL,{ownerState:a,children:i?d.jsx("span",{children:n}):gy||(gy=d.jsx("span",{className:"notranslate",children:"​"}))})}))}const BL=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],FL=e=>{const{classes:t}=e,r=Se({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},_O,t);return S({},t,r)},UL=ie(rd,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:td})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return S({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ur.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ur.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Ur.focused} .${Ur.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Ur.error} .${Ur.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ur.disabled} .${Ur.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&S({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),WL=ie(zL,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),HL=ie(od,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:nd})(({theme:e,ownerState:t})=>S({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),jm=p.forwardRef(function(t,n){var r,o,i,a,s;const l=ke({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:f="input",label:h,multiline:w=!1,notched:y,slots:x={},type:C="text"}=l,v=se(l,BL),m=FL(l),b=br(),k=vo({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),R=S({},l,{color:k.color||"primary",disabled:k.disabled,error:k.error,focused:k.focused,formControl:b,fullWidth:u,hiddenLabel:k.hiddenLabel,multiline:w,size:k.size,type:C}),T=(r=(o=x.root)!=null?o:c.Root)!=null?r:UL,P=(i=(a=x.input)!=null?a:c.Input)!=null?i:HL;return d.jsx(Sm,S({slots:{root:T,input:P},renderSuffix:j=>d.jsx(WL,{ownerState:R,className:m.notchedOutline,label:h!=null&&h!==""&&k.required?s||(s=d.jsxs(p.Fragment,{children:[h," ","*"]})):h,notched:typeof y<"u"?y:!!(j.startAdornment||j.filled||j.focused)}),fullWidth:u,inputComponent:f,multiline:w,ref:n,type:C},v,{classes:S({},m,{notchedOutline:null})}))});jm.muiName="Input";function VL(e){return be("MuiSelect",e)}const Sa=we("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var vy;const qL=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],GL=ie("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Sa.select}`]:t.select},{[`&.${Sa.select}`]:t[n.variant]},{[`&.${Sa.error}`]:t.error},{[`&.${Sa.multiple}`]:t.multiple}]}})(c2,{[`&.${Sa.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),KL=ie("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Z(n.variant)}`],n.open&&t.iconOpen]}})(u2),YL=ie("input",{shouldForwardProp:e=>Ew(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function yy(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function XL(e){return e==null||typeof e=="string"&&!e.trim()}const QL=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Z(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Se(s,VL,t)},JL=p.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":i,autoFocus:a,autoWidth:s,children:l,className:c,defaultOpen:u,defaultValue:f,disabled:h,displayEmpty:w,error:y=!1,IconComponent:x,inputRef:C,labelId:v,MenuProps:m={},multiple:b,name:k,onBlur:R,onChange:T,onClose:P,onFocus:j,onOpen:N,open:I,readOnly:F,renderValue:H,SelectDisplayProps:U={},tabIndex:q,value:ee,variant:J="standard"}=t,re=se(t,qL),[O,_]=gs({controlled:ee,default:f,name:"Select"}),[E,g]=gs({controlled:I,default:u,name:"Select"}),$=p.useRef(null),z=p.useRef(null),[L,B]=p.useState(null),{current:V}=p.useRef(I!=null),[M,A]=p.useState(),G=lt(n,C),Y=p.useCallback(ye=>{z.current=ye,ye&&B(ye)},[]),K=L==null?void 0:L.parentNode;p.useImperativeHandle(G,()=>({focus:()=>{z.current.focus()},node:$.current,value:O}),[O]),p.useEffect(()=>{u&&E&&L&&!V&&(A(s?null:K.clientWidth),z.current.focus())},[L,s]),p.useEffect(()=>{a&&z.current.focus()},[a]),p.useEffect(()=>{if(!v)return;const ye=St(z.current).getElementById(v);if(ye){const Pe=()=>{getSelection().isCollapsed&&z.current.focus()};return ye.addEventListener("click",Pe),()=>{ye.removeEventListener("click",Pe)}}},[v]);const oe=(ye,Pe)=>{ye?N&&N(Pe):P&&P(Pe),V||(A(s?null:K.clientWidth),g(ye))},te=ye=>{ye.button===0&&(ye.preventDefault(),z.current.focus(),oe(!0,ye))},ne=ye=>{oe(!1,ye)},de=p.Children.toArray(l),Re=ye=>{const Pe=de.find(ue=>ue.props.value===ye.target.value);Pe!==void 0&&(_(Pe.props.value),T&&T(ye,Pe))},W=ye=>Pe=>{let ue;if(Pe.currentTarget.hasAttribute("tabindex")){if(b){ue=Array.isArray(O)?O.slice():[];const me=O.indexOf(ye.props.value);me===-1?ue.push(ye.props.value):ue.splice(me,1)}else ue=ye.props.value;if(ye.props.onClick&&ye.props.onClick(Pe),O!==ue&&(_(ue),T)){const me=Pe.nativeEvent||Pe,$e=new me.constructor(me.type,me);Object.defineProperty($e,"target",{writable:!0,value:{value:ue,name:k}}),T($e,ye)}b||oe(!1,Pe)}},ae=ye=>{F||[" ","ArrowUp","ArrowDown","Enter"].indexOf(ye.key)!==-1&&(ye.preventDefault(),oe(!0,ye))},ge=L!==null&&E,D=ye=>{!ge&&R&&(Object.defineProperty(ye,"target",{writable:!0,value:{value:O,name:k}}),R(ye))};delete re["aria-invalid"];let X,fe;const pe=[];let ve=!1;(Mc({value:O})||w)&&(H?X=H(O):ve=!0);const Ce=de.map(ye=>{if(!p.isValidElement(ye))return null;let Pe;if(b){if(!Array.isArray(O))throw new Error(Bo(2));Pe=O.some(ue=>yy(ue,ye.props.value)),Pe&&ve&&pe.push(ye.props.children)}else Pe=yy(O,ye.props.value),Pe&&ve&&(fe=ye.props.children);return p.cloneElement(ye,{"aria-selected":Pe?"true":"false",onClick:W(ye),onKeyUp:ue=>{ue.key===" "&&ue.preventDefault(),ye.props.onKeyUp&&ye.props.onKeyUp(ue)},role:"option",selected:Pe,value:void 0,"data-value":ye.props.value})});ve&&(b?pe.length===0?X=null:X=pe.reduce((ye,Pe,ue)=>(ye.push(Pe),ue{const{classes:t}=e;return t},Om={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ht(e)&&e!=="variant",slot:"Root"},nA=ie($m,Om)(""),rA=ie(jm,Om)(""),oA=ie(Em,Om)(""),Us=p.forwardRef(function(t,n){const r=ke({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=AO,id:f,input:h,inputProps:w,label:y,labelId:x,MenuProps:C,multiple:v=!1,native:m=!1,onClose:b,onOpen:k,open:R,renderValue:T,SelectDisplayProps:P,variant:j="outlined"}=r,N=se(r,ZL),I=m?LL:JL,F=br(),H=vo({props:r,muiFormControl:F,states:["variant","error"]}),U=H.variant||j,q=S({},r,{variant:U,classes:a}),ee=tA(q),J=se(ee,eA),re=h||{standard:d.jsx(nA,{ownerState:q}),outlined:d.jsx(rA,{label:y,ownerState:q}),filled:d.jsx(oA,{ownerState:q})}[U],O=lt(n,re.ref);return d.jsx(p.Fragment,{children:p.cloneElement(re,S({inputComponent:I,inputProps:S({children:i,error:H.error,IconComponent:u,variant:U,type:void 0,multiple:v},m?{id:f}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:x,MenuProps:C,onClose:b,onOpen:k,open:R,renderValue:T,SelectDisplayProps:S({id:f},P)},w,{classes:w?Qt(J,w.classes):J},h?h.props.inputProps:{})},(v&&m||c)&&U==="outlined"?{notched:!0}:{},{ref:O,className:le(re.props.className,s,ee.root)},!h&&{variant:U},N))})});Us.muiName="Select";function iA(e){return be("MuiSnackbarContent",e)}we("MuiSnackbarContent",["root","message","action"]);const aA=["action","className","message","role"],sA=e=>{const{classes:t}=e;return Se({root:["root"],action:["action"],message:["message"]},iA,t)},lA=ie(En,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=c4(e.palette.background.default,t);return S({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),cA=ie("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),uA=ie("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),dA=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiSnackbarContent"}),{action:o,className:i,message:a,role:s="alert"}=r,l=se(r,aA),c=r,u=sA(c);return d.jsxs(lA,S({role:s,square:!0,elevation:6,className:le(u.root,i),ownerState:c,ref:n},l,{children:[d.jsx(cA,{className:u.message,ownerState:c,children:a}),o?d.jsx(uA,{className:u.action,ownerState:c,children:o}):null]}))});function fA(e){return be("MuiSnackbar",e)}we("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const pA=["onEnter","onExited"],hA=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],mA=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${Z(n.vertical)}${Z(n.horizontal)}`]};return Se(r,fA,t)},xy=ie("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${Z(n.anchorOrigin.vertical)}${Z(n.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const n={left:"50%",right:"auto",transform:"translateX(-50%)"};return S({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:S({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&n,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),yo=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiSnackbar"}),o=mo(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:s,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:u,className:f,ClickAwayListenerProps:h,ContentProps:w,disableWindowBlurListener:y=!1,message:x,open:C,TransitionComponent:v=bs,transitionDuration:m=i,TransitionProps:{onEnter:b,onExited:k}={}}=r,R=se(r.TransitionProps,pA),T=se(r,hA),P=S({},r,{anchorOrigin:{vertical:s,horizontal:l},autoHideDuration:c,disableWindowBlurListener:y,TransitionComponent:v,transitionDuration:m}),j=mA(P),{getRootProps:N,onClickAway:I}=lO(S({},P)),[F,H]=p.useState(!0),U=fn({elementType:xy,getSlotProps:N,externalForwardedProps:T,ownerState:P,additionalProps:{ref:n},className:[j.root,f]}),q=J=>{H(!0),k&&k(J)},ee=(J,re)=>{H(!1),b&&b(J,re)};return!C&&F?null:d.jsx($M,S({onClickAway:I},h,{children:d.jsx(xy,S({},U,{children:d.jsx(v,S({appear:!0,in:C,timeout:m,direction:s==="top"?"down":"up",onEnter:ee,onExited:q},R,{children:u||d.jsx(dA,S({message:x,action:a},w))}))}))}))});function gA(e){return be("MuiTooltip",e)}const Jr=we("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),vA=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function yA(e){return Math.round(e*1e5)/1e5}const xA=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Z(i.split("-")[0])}`],arrow:["arrow"]};return Se(a,gA,t)},bA=ie(Gw,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>S({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Jr.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Jr.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Jr.arrow}`]:S({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Jr.arrow}`]:S({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),wA=ie("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Z(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>S({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Fe(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${yA(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Jr.popper}[data-popper-placement*="left"] &`]:S({transformOrigin:"right center"},t.isRtl?S({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):S({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Jr.popper}[data-popper-placement*="right"] &`]:S({transformOrigin:"left center"},t.isRtl?S({marginRight:"14px"},t.touch&&{marginRight:"24px"}):S({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Jr.popper}[data-popper-placement*="top"] &`]:S({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Jr.popper}[data-popper-placement*="bottom"] &`]:S({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),SA=ie("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Fe(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let yl=!1;const by=new Ls;let Ca={x:0,y:0};function xl(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Zn=p.forwardRef(function(t,n){var r,o,i,a,s,l,c,u,f,h,w,y,x,C,v,m,b,k,R;const T=ke({props:t,name:"MuiTooltip"}),{arrow:P=!1,children:j,components:N={},componentsProps:I={},describeChild:F=!1,disableFocusListener:H=!1,disableHoverListener:U=!1,disableInteractive:q=!1,disableTouchListener:ee=!1,enterDelay:J=100,enterNextDelay:re=0,enterTouchDelay:O=700,followCursor:_=!1,id:E,leaveDelay:g=0,leaveTouchDelay:$=1500,onClose:z,onOpen:L,open:B,placement:V="bottom",PopperComponent:M,PopperProps:A={},slotProps:G={},slots:Y={},title:K,TransitionComponent:oe=bs,TransitionProps:te}=T,ne=se(T,vA),de=p.isValidElement(j)?j:d.jsx("span",{children:j}),Re=mo(),W=As(),[ae,ge]=p.useState(),[D,X]=p.useState(null),fe=p.useRef(!1),pe=q||_,ve=To(),Ce=To(),Le=To(),De=To(),[Ee,he]=gs({controlled:B,default:!1,name:"Tooltip",state:"open"});let Ge=Ee;const Xe=_s(E),Ye=p.useRef(),ye=Yt(()=>{Ye.current!==void 0&&(document.body.style.WebkitUserSelect=Ye.current,Ye.current=void 0),De.clear()});p.useEffect(()=>ye,[ye]);const Pe=Ne=>{by.clear(),yl=!0,he(!0),L&&!Ge&&L(Ne)},ue=Yt(Ne=>{by.start(800+g,()=>{yl=!1}),he(!1),z&&Ge&&z(Ne),ve.start(Re.transitions.duration.shortest,()=>{fe.current=!1})}),me=Ne=>{fe.current&&Ne.type!=="touchstart"||(ae&&ae.removeAttribute("title"),Ce.clear(),Le.clear(),J||yl&&re?Ce.start(yl?re:J,()=>{Pe(Ne)}):Pe(Ne))},$e=Ne=>{Ce.clear(),Le.start(g,()=>{ue(Ne)})},{isFocusVisibleRef:Ae,onBlur:Qe,onFocus:Ct,ref:Ot}=om(),[,pn]=p.useState(!1),Dt=Ne=>{Qe(Ne),Ae.current===!1&&(pn(!1),$e(Ne))},zr=Ne=>{ae||ge(Ne.currentTarget),Ct(Ne),Ae.current===!0&&(pn(!0),me(Ne))},Go=Ne=>{fe.current=!0;const hn=de.props;hn.onTouchStart&&hn.onTouchStart(Ne)},Et=Ne=>{Go(Ne),Le.clear(),ve.clear(),ye(),Ye.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",De.start(O,()=>{document.body.style.WebkitUserSelect=Ye.current,me(Ne)})},ud=Ne=>{de.props.onTouchEnd&&de.props.onTouchEnd(Ne),ye(),Le.start($,()=>{ue(Ne)})};p.useEffect(()=>{if(!Ge)return;function Ne(hn){(hn.key==="Escape"||hn.key==="Esc")&&ue(hn)}return document.addEventListener("keydown",Ne),()=>{document.removeEventListener("keydown",Ne)}},[ue,Ge]);const Ws=lt(de.ref,Ot,ge,n);!K&&K!==0&&(Ge=!1);const oa=p.useRef(),ia=Ne=>{const hn=de.props;hn.onMouseMove&&hn.onMouseMove(Ne),Ca={x:Ne.clientX,y:Ne.clientY},oa.current&&oa.current.update()},tt={},en=typeof K=="string";F?(tt.title=!Ge&&en&&!U?K:null,tt["aria-describedby"]=Ge?Xe:null):(tt["aria-label"]=en?K:null,tt["aria-labelledby"]=Ge&&!en?Xe:null);const nt=S({},tt,ne,de.props,{className:le(ne.className,de.props.className),onTouchStart:Go,ref:Ws},_?{onMouseMove:ia}:{}),Tt={};ee||(nt.onTouchStart=Et,nt.onTouchEnd=ud),U||(nt.onMouseOver=xl(me,nt.onMouseOver),nt.onMouseLeave=xl($e,nt.onMouseLeave),pe||(Tt.onMouseOver=me,Tt.onMouseLeave=$e)),H||(nt.onFocus=xl(zr,nt.onFocus),nt.onBlur=xl(Dt,nt.onBlur),pe||(Tt.onFocus=zr,Tt.onBlur=Dt));const It=p.useMemo(()=>{var Ne;let hn=[{name:"arrow",enabled:!!D,options:{element:D,padding:4}}];return(Ne=A.popperOptions)!=null&&Ne.modifiers&&(hn=hn.concat(A.popperOptions.modifiers)),S({},A.popperOptions,{modifiers:hn})},[D,A]),qt=S({},T,{isRtl:W,arrow:P,disableInteractive:pe,placement:V,PopperComponentProp:M,touch:fe.current}),Gn=xA(qt),Ko=(r=(o=Y.popper)!=null?o:N.Popper)!=null?r:bA,aa=(i=(a=(s=Y.transition)!=null?s:N.Transition)!=null?a:oe)!=null?i:bs,Hs=(l=(c=Y.tooltip)!=null?c:N.Tooltip)!=null?l:wA,Vs=(u=(f=Y.arrow)!=null?f:N.Arrow)!=null?u:SA,H2=vi(Ko,S({},A,(h=G.popper)!=null?h:I.popper,{className:le(Gn.popper,A==null?void 0:A.className,(w=(y=G.popper)!=null?y:I.popper)==null?void 0:w.className)}),qt),V2=vi(aa,S({},te,(x=G.transition)!=null?x:I.transition),qt),q2=vi(Hs,S({},(C=G.tooltip)!=null?C:I.tooltip,{className:le(Gn.tooltip,(v=(m=G.tooltip)!=null?m:I.tooltip)==null?void 0:v.className)}),qt),G2=vi(Vs,S({},(b=G.arrow)!=null?b:I.arrow,{className:le(Gn.arrow,(k=(R=G.arrow)!=null?R:I.arrow)==null?void 0:k.className)}),qt);return d.jsxs(p.Fragment,{children:[p.cloneElement(de,nt),d.jsx(Ko,S({as:M??Gw,placement:V,anchorEl:_?{getBoundingClientRect:()=>({top:Ca.y,left:Ca.x,right:Ca.x,bottom:Ca.y,width:0,height:0})}:ae,popperRef:oa,open:ae?Ge:!1,id:Xe,transition:!0},Tt,H2,{popperOptions:It,children:({TransitionProps:Ne})=>d.jsx(aa,S({timeout:Re.transitions.duration.shorter},Ne,V2,{children:d.jsxs(Hs,S({},q2,{children:[K,P?d.jsx(Vs,S({},G2,{ref:X})):null]}))}))}))]})});function CA(e){return be("MuiSwitch",e)}const Gt=we("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),kA=["className","color","edge","size","sx"],RA=Qu(),PA=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:a}=e,s={root:["root",n&&`edge${Z(n)}`,`size${Z(r)}`],switchBase:["switchBase",`color${Z(o)}`,i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Se(s,CA,t);return S({},t,l)},EA=ie("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Z(n.edge)}`],t[`size${Z(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Gt.thumb}`]:{width:16,height:16},[`& .${Gt.switchBase}`]:{padding:4,[`&.${Gt.checked}`]:{transform:"translateX(16px)"}}}}]}),TA=ie(Jw,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Gt.input}`]:t.input},n.color!=="default"&&t[`color${Z(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Gt.checked}`]:{transform:"translateX(20px)"},[`&.${Gt.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Gt.checked} + .${Gt.track}`]:{opacity:.5},[`&.${Gt.disabled} + .${Gt.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Gt.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${Gt.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Gt.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?Rc(e.palette[t].main,.62):kc(e.palette[t].main,.55)}`}},[`&.${Gt.checked} + .${Gt.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),$A=ie("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),MA=ie("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),jA=p.forwardRef(function(t,n){const r=RA({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:a=!1,size:s="medium",sx:l}=r,c=se(r,kA),u=S({},r,{color:i,edge:a,size:s}),f=PA(u),h=d.jsx(MA,{className:f.thumb,ownerState:u});return d.jsxs(EA,{className:le(f.root,o),sx:l,ownerState:u,children:[d.jsx(TA,S({type:"checkbox",icon:h,checkedIcon:h,ref:n,ownerState:u},c,{classes:S({},f,{root:f.switchBase})})),d.jsx($A,{className:f.track,ownerState:u})]})});function OA(e){return be("MuiTab",e)}const bo=we("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),IA=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],_A=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:a,selected:s,disabled:l}=e,c={root:["root",i&&a&&"labelIcon",`textColor${Z(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Se(c,OA,t)},LA=ie(Ir,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Z(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>S({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${bo.iconWrapper}`]:S({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${bo.selected}`]:{opacity:1},[`&.${bo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${bo.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${bo.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${bo.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${bo.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),Hl=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:a=!1,fullWidth:s,icon:l,iconPosition:c="top",indicator:u,label:f,onChange:h,onClick:w,onFocus:y,selected:x,selectionFollowsFocus:C,textColor:v="inherit",value:m,wrapped:b=!1}=r,k=se(r,IA),R=S({},r,{disabled:i,disableFocusRipple:a,selected:x,icon:!!l,iconPosition:c,label:!!f,fullWidth:s,textColor:v,wrapped:b}),T=_A(R),P=l&&f&&p.isValidElement(l)?p.cloneElement(l,{className:le(T.iconWrapper,l.props.className)}):l,j=I=>{!x&&h&&h(I,m),w&&w(I)},N=I=>{C&&!x&&h&&h(I,m),y&&y(I)};return d.jsxs(LA,S({focusRipple:!a,className:le(T.root,o),ref:n,role:"tab","aria-selected":x,disabled:i,onClick:j,onFocus:N,ownerState:R,tabIndex:x?0:-1},k,{children:[c==="top"||c==="start"?d.jsxs(p.Fragment,{children:[P,f]}):d.jsxs(p.Fragment,{children:[f,P]}),u]}))});function AA(e){return be("MuiToolbar",e)}we("MuiToolbar",["root","gutters","regular","dense"]);const NA=["className","component","disableGutters","variant"],DA=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Se({root:["root",!n&&"gutters",r]},AA,t)},zA=ie("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>S({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),BA=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:a=!1,variant:s="regular"}=r,l=se(r,NA),c=S({},r,{component:i,disableGutters:a,variant:s}),u=DA(c);return d.jsx(zA,S({as:i,className:le(u.root,o),ref:n,ownerState:c},l))}),FA=Vt(d.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),UA=Vt(d.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function WA(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function HA(e,t,n,r={},o=()=>{}){const{ease:i=WA,duration:a=300}=r;let s=null;const l=t[e];let c=!1;const u=()=>{c=!0},f=h=>{if(c){o(new Error("Animation cancelled"));return}s===null&&(s=h);const w=Math.min(1,(h-s)/a);if(t[e]=i(w)*(n-l)+l,w>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(f)};return l===n?(o(new Error("Element already at target position")),u):(requestAnimationFrame(f),u)}const VA=["onChange"],qA={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function GA(e){const{onChange:t}=e,n=se(e,VA),r=p.useRef(),o=p.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Sn(()=>{const a=ea(()=>{const l=r.current;i(),l!==r.current&&t(r.current)}),s=Bn(o.current);return s.addEventListener("resize",a),()=>{a.clear(),s.removeEventListener("resize",a)}},[t]),p.useEffect(()=>{i(),t(r.current)},[t]),d.jsx("div",S({style:qA,ref:o},n))}function KA(e){return be("MuiTabScrollButton",e)}const YA=we("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),XA=["className","slots","slotProps","direction","orientation","disabled"],QA=e=>{const{classes:t,orientation:n,disabled:r}=e;return Se({root:["root",n,r&&"disabled"]},KA,t)},JA=ie(Ir,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>S({width:40,flexShrink:0,opacity:.8,[`&.${YA.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),ZA=p.forwardRef(function(t,n){var r,o;const i=ke({props:t,name:"MuiTabScrollButton"}),{className:a,slots:s={},slotProps:l={},direction:c}=i,u=se(i,XA),f=As(),h=S({isRtl:f},i),w=QA(h),y=(r=s.StartScrollButtonIcon)!=null?r:FA,x=(o=s.EndScrollButtonIcon)!=null?o:UA,C=fn({elementType:y,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),v=fn({elementType:x,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return d.jsx(JA,S({component:"div",className:le(w.root,a),ref:n,role:null,ownerState:h,tabIndex:null},u,{children:c==="left"?d.jsx(y,S({},C)):d.jsx(x,S({},v))}))});function eN(e){return be("MuiTabs",e)}const of=we("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),tN=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],wy=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,Sy=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,bl=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const i=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||i)o=n(e,o);else{o.focus();return}}},nN=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return Se({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},eN,l)},rN=ie("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${of.scrollButtons}`]:t.scrollButtons},{[`& .${of.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>S({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${of.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),oN=ie("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>S({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),iN=ie("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>S({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),aN=ie("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>S({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),sN=ie(GA)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Cy={},d2=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiTabs"}),o=mo(),i=As(),{"aria-label":a,"aria-labelledby":s,action:l,centered:c=!1,children:u,className:f,component:h="div",allowScrollButtonsMobile:w=!1,indicatorColor:y="primary",onChange:x,orientation:C="horizontal",ScrollButtonComponent:v=ZA,scrollButtons:m="auto",selectionFollowsFocus:b,slots:k={},slotProps:R={},TabIndicatorProps:T={},TabScrollButtonProps:P={},textColor:j="primary",value:N,variant:I="standard",visibleScrollbar:F=!1}=r,H=se(r,tN),U=I==="scrollable",q=C==="vertical",ee=q?"scrollTop":"scrollLeft",J=q?"top":"left",re=q?"bottom":"right",O=q?"clientHeight":"clientWidth",_=q?"height":"width",E=S({},r,{component:h,allowScrollButtonsMobile:w,indicatorColor:y,orientation:C,vertical:q,scrollButtons:m,textColor:j,variant:I,visibleScrollbar:F,fixed:!U,hideScrollbar:U&&!F,scrollableX:U&&!q,scrollableY:U&&q,centered:c&&!U,scrollButtonsHideMobile:!w}),g=nN(E),$=fn({elementType:k.StartScrollButtonIcon,externalSlotProps:R.startScrollButtonIcon,ownerState:E}),z=fn({elementType:k.EndScrollButtonIcon,externalSlotProps:R.endScrollButtonIcon,ownerState:E}),[L,B]=p.useState(!1),[V,M]=p.useState(Cy),[A,G]=p.useState(!1),[Y,K]=p.useState(!1),[oe,te]=p.useState(!1),[ne,de]=p.useState({overflow:"hidden",scrollbarWidth:0}),Re=new Map,W=p.useRef(null),ae=p.useRef(null),ge=()=>{const ue=W.current;let me;if(ue){const Ae=ue.getBoundingClientRect();me={clientWidth:ue.clientWidth,scrollLeft:ue.scrollLeft,scrollTop:ue.scrollTop,scrollLeftNormalized:D$(ue,i?"rtl":"ltr"),scrollWidth:ue.scrollWidth,top:Ae.top,bottom:Ae.bottom,left:Ae.left,right:Ae.right}}let $e;if(ue&&N!==!1){const Ae=ae.current.children;if(Ae.length>0){const Qe=Ae[Re.get(N)];$e=Qe?Qe.getBoundingClientRect():null}}return{tabsMeta:me,tabMeta:$e}},D=Yt(()=>{const{tabsMeta:ue,tabMeta:me}=ge();let $e=0,Ae;if(q)Ae="top",me&&ue&&($e=me.top-ue.top+ue.scrollTop);else if(Ae=i?"right":"left",me&&ue){const Ct=i?ue.scrollLeftNormalized+ue.clientWidth-ue.scrollWidth:ue.scrollLeft;$e=(i?-1:1)*(me[Ae]-ue[Ae]+Ct)}const Qe={[Ae]:$e,[_]:me?me[_]:0};if(isNaN(V[Ae])||isNaN(V[_]))M(Qe);else{const Ct=Math.abs(V[Ae]-Qe[Ae]),Ot=Math.abs(V[_]-Qe[_]);(Ct>=1||Ot>=1)&&M(Qe)}}),X=(ue,{animation:me=!0}={})=>{me?HA(ee,W.current,ue,{duration:o.transitions.duration.standard}):W.current[ee]=ue},fe=ue=>{let me=W.current[ee];q?me+=ue:(me+=ue*(i?-1:1),me*=i&&pw()==="reverse"?-1:1),X(me)},pe=()=>{const ue=W.current[O];let me=0;const $e=Array.from(ae.current.children);for(let Ae=0;Ae<$e.length;Ae+=1){const Qe=$e[Ae];if(me+Qe[O]>ue){Ae===0&&(me=ue);break}me+=Qe[O]}return me},ve=()=>{fe(-1*pe())},Ce=()=>{fe(pe())},Le=p.useCallback(ue=>{de({overflow:null,scrollbarWidth:ue})},[]),De=()=>{const ue={};ue.scrollbarSizeListener=U?d.jsx(sN,{onChange:Le,className:le(g.scrollableX,g.hideScrollbar)}):null;const $e=U&&(m==="auto"&&(A||Y)||m===!0);return ue.scrollButtonStart=$e?d.jsx(v,S({slots:{StartScrollButtonIcon:k.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:$},orientation:C,direction:i?"right":"left",onClick:ve,disabled:!A},P,{className:le(g.scrollButtons,P.className)})):null,ue.scrollButtonEnd=$e?d.jsx(v,S({slots:{EndScrollButtonIcon:k.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:z},orientation:C,direction:i?"left":"right",onClick:Ce,disabled:!Y},P,{className:le(g.scrollButtons,P.className)})):null,ue},Ee=Yt(ue=>{const{tabsMeta:me,tabMeta:$e}=ge();if(!(!$e||!me)){if($e[J]me[re]){const Ae=me[ee]+($e[re]-me[re]);X(Ae,{animation:ue})}}}),he=Yt(()=>{U&&m!==!1&&te(!oe)});p.useEffect(()=>{const ue=ea(()=>{W.current&&D()});let me;const $e=Ct=>{Ct.forEach(Ot=>{Ot.removedNodes.forEach(pn=>{var Dt;(Dt=me)==null||Dt.unobserve(pn)}),Ot.addedNodes.forEach(pn=>{var Dt;(Dt=me)==null||Dt.observe(pn)})}),ue(),he()},Ae=Bn(W.current);Ae.addEventListener("resize",ue);let Qe;return typeof ResizeObserver<"u"&&(me=new ResizeObserver(ue),Array.from(ae.current.children).forEach(Ct=>{me.observe(Ct)})),typeof MutationObserver<"u"&&(Qe=new MutationObserver($e),Qe.observe(ae.current,{childList:!0})),()=>{var Ct,Ot;ue.clear(),Ae.removeEventListener("resize",ue),(Ct=Qe)==null||Ct.disconnect(),(Ot=me)==null||Ot.disconnect()}},[D,he]),p.useEffect(()=>{const ue=Array.from(ae.current.children),me=ue.length;if(typeof IntersectionObserver<"u"&&me>0&&U&&m!==!1){const $e=ue[0],Ae=ue[me-1],Qe={root:W.current,threshold:.99},Ct=zr=>{G(!zr[0].isIntersecting)},Ot=new IntersectionObserver(Ct,Qe);Ot.observe($e);const pn=zr=>{K(!zr[0].isIntersecting)},Dt=new IntersectionObserver(pn,Qe);return Dt.observe(Ae),()=>{Ot.disconnect(),Dt.disconnect()}}},[U,m,oe,u==null?void 0:u.length]),p.useEffect(()=>{B(!0)},[]),p.useEffect(()=>{D()}),p.useEffect(()=>{Ee(Cy!==V)},[Ee,V]),p.useImperativeHandle(l,()=>({updateIndicator:D,updateScrollButtons:he}),[D,he]);const Ge=d.jsx(aN,S({},T,{className:le(g.indicator,T.className),ownerState:E,style:S({},V,T.style)}));let Xe=0;const Ye=p.Children.map(u,ue=>{if(!p.isValidElement(ue))return null;const me=ue.props.value===void 0?Xe:ue.props.value;Re.set(me,Xe);const $e=me===N;return Xe+=1,p.cloneElement(ue,S({fullWidth:I==="fullWidth",indicator:$e&&!L&&Ge,selected:$e,selectionFollowsFocus:b,onChange:x,textColor:j,value:me},Xe===1&&N===!1&&!ue.props.tabIndex?{tabIndex:0}:{}))}),ye=ue=>{const me=ae.current,$e=St(me).activeElement;if($e.getAttribute("role")!=="tab")return;let Qe=C==="horizontal"?"ArrowLeft":"ArrowUp",Ct=C==="horizontal"?"ArrowRight":"ArrowDown";switch(C==="horizontal"&&i&&(Qe="ArrowRight",Ct="ArrowLeft"),ue.key){case Qe:ue.preventDefault(),bl(me,$e,Sy);break;case Ct:ue.preventDefault(),bl(me,$e,wy);break;case"Home":ue.preventDefault(),bl(me,null,wy);break;case"End":ue.preventDefault(),bl(me,null,Sy);break}},Pe=De();return d.jsxs(rN,S({className:le(g.root,f),ownerState:E,ref:n,as:h},H,{children:[Pe.scrollButtonStart,Pe.scrollbarSizeListener,d.jsxs(oN,{className:g.scroller,ownerState:E,style:{overflow:ne.overflow,[q?`margin${i?"Left":"Right"}`:"marginBottom"]:F?void 0:-ne.scrollbarWidth},ref:W,children:[d.jsx(iN,{"aria-label":a,"aria-labelledby":s,"aria-orientation":C==="vertical"?"vertical":null,className:g.flexContainer,ownerState:E,onKeyDown:ye,ref:ae,role:"tablist",children:Ye}),L&&Ge]}),Pe.scrollButtonEnd]}))});function lN(e){return be("MuiTextField",e)}we("MuiTextField",["root"]);const cN=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],uN={standard:$m,filled:Em,outlined:jm},dN=e=>{const{classes:t}=e;return Se({root:["root"]},lN,t)},fN=ie(sd,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),it=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:a,className:s,color:l="primary",defaultValue:c,disabled:u=!1,error:f=!1,FormHelperTextProps:h,fullWidth:w=!1,helperText:y,id:x,InputLabelProps:C,inputProps:v,InputProps:m,inputRef:b,label:k,maxRows:R,minRows:T,multiline:P=!1,name:j,onBlur:N,onChange:I,onFocus:F,placeholder:H,required:U=!1,rows:q,select:ee=!1,SelectProps:J,type:re,value:O,variant:_="outlined"}=r,E=se(r,cN),g=S({},r,{autoFocus:i,color:l,disabled:u,error:f,fullWidth:w,multiline:P,required:U,select:ee,variant:_}),$=dN(g),z={};_==="outlined"&&(C&&typeof C.shrink<"u"&&(z.notched=C.shrink),z.label=k),ee&&((!J||!J.native)&&(z.id=void 0),z["aria-describedby"]=void 0);const L=_s(x),B=y&&L?`${L}-helper-text`:void 0,V=k&&L?`${L}-label`:void 0,M=uN[_],A=d.jsx(M,S({"aria-describedby":B,autoComplete:o,autoFocus:i,defaultValue:c,fullWidth:w,multiline:P,name:j,rows:q,maxRows:R,minRows:T,type:re,value:O,id:L,inputRef:b,onBlur:N,onChange:I,onFocus:F,placeholder:H,inputProps:v},z,m));return d.jsxs(fN,S({className:le($.root,s),disabled:u,error:f,fullWidth:w,ref:n,required:U,color:l,variant:_,ownerState:g},E,{children:[k!=null&&k!==""&&d.jsx(ld,S({htmlFor:L,id:V},C,{children:k})),ee?d.jsx(Us,S({"aria-describedby":B,id:L,labelId:V,value:O,input:A},J,{children:a})):A,y&&d.jsx(u_,S({id:B},h,{children:y}))]}))});var Im={},af={};const pN=Lr(m5);var ky;function je(){return ky||(ky=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=pN}(af)),af}var hN=Te;Object.defineProperty(Im,"__esModule",{value:!0});var ra=Im.default=void 0,mN=hN(je()),gN=d;ra=Im.default=(0,mN.default)((0,gN.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");var _m={},vN=Te;Object.defineProperty(_m,"__esModule",{value:!0});var Lm=_m.default=void 0,yN=vN(je()),xN=d;Lm=_m.default=(0,yN.default)((0,xN.jsx)("path",{d:"M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3m5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72z"}),"Mic");var Am={},bN=Te;Object.defineProperty(Am,"__esModule",{value:!0});var Nm=Am.default=void 0,wN=bN(je()),SN=d;Nm=Am.default=(0,wN.default)((0,SN.jsx)("path",{d:"M19 11h-1.7c0 .74-.16 1.43-.43 2.05l1.23 1.23c.56-.98.9-2.09.9-3.28m-4.02.17c0-.06.02-.11.02-.17V5c0-1.66-1.34-3-3-3S9 3.34 9 5v.18zM4.27 3 3 4.27l6.01 6.01V11c0 1.66 1.33 3 2.99 3 .22 0 .44-.03.65-.08l1.66 1.66c-.71.33-1.5.52-2.31.52-2.76 0-5.3-2.1-5.3-5.1H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c.91-.13 1.77-.45 2.54-.9L19.73 21 21 19.73z"}),"MicOff");var Dm={},CN=Te;Object.defineProperty(Dm,"__esModule",{value:!0});var cd=Dm.default=void 0,kN=CN(je()),RN=d;cd=Dm.default=(0,kN.default)((0,RN.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"Person");var zm={},PN=Te;Object.defineProperty(zm,"__esModule",{value:!0});var _c=zm.default=void 0,EN=PN(je()),TN=d;_c=zm.default=(0,EN.default)((0,TN.jsx)("path",{d:"M3 9v6h4l5 5V4L7 9zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02M14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77"}),"VolumeUp");var Bm={},$N=Te;Object.defineProperty(Bm,"__esModule",{value:!0});var Lc=Bm.default=void 0,MN=$N(je()),jN=d;Lc=Bm.default=(0,MN.default)((0,jN.jsx)("path",{d:"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63m2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71M4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9zM12 4 9.91 6.09 12 8.18z"}),"VolumeOff");var Fm={},ON=Te;Object.defineProperty(Fm,"__esModule",{value:!0});var Um=Fm.default=void 0,IN=ON(je()),_N=d;Um=Fm.default=(0,IN.default)((0,_N.jsx)("path",{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-1 9h-4v4h-2v-4H9V9h4V5h2v4h4z"}),"LibraryAdd");const Pi="/assets/Aria-BMTE8U_Y.jpg";var LN={exports:{}};(function(e){/** * {@link https://github.com/muaz-khan/RecordRTC|RecordRTC} is a WebRTC JavaScript library for audio/video as well as screen activity recording. It supports Chrome, Firefox, Opera, Android, and Microsoft Edge. Platforms: Linux, Mac and Windows. * @summary Record audio, video or screen inside the browser. * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT} @@ -210,7 +210,7 @@ Error generating stack: `+i.message+` * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code} * @param {MediaStream} mediaStream - Single media-stream object, array of media-streams, html-canvas-element, etc. * @param {object} config - {type:"video", recorderType: MediaStreamRecorder, disableLogs: true, numberOfAudioChannels: 1, bufferSize: 0, sampleRate: 0, desiredSampRate: 16000, video: HTMLVideoElement, etc.} - */function t(E,g){if(!E)throw"First parameter is required.";g=g||{type:"video"},g=new n(E,g);var $=this;function z(H){return g.disableLogs||console.log("RecordRTC version: ",$.version),H&&(g=new n(E,H)),g.disableLogs||console.log("started recording "+g.type+" stream."),ne?(ne.clearRecordedData(),ne.record(),q("recording"),$.recordingDuration&&Y(),$):(L(function(){$.recordingDuration&&Y()}),$)}function L(H){H&&(g.initCallback=function(){H(),H=g.initCallback=null});var ae=new r(E,g);ne=new ae(E,g),ne.record(),q("recording"),g.disableLogs||console.log("Initialized recorderType:",ne.constructor.name,"for output-type:",g.type)}function B(H){if(H=H||function(){},!ne){te();return}if($.state==="paused"){$.resumeRecording(),setTimeout(function(){B(H)},1);return}$.state!=="recording"&&!g.disableLogs&&console.warn('Recording state should be: "recording", however current state is: ',$.state),g.disableLogs||console.log("Stopped recording "+g.type+" stream."),g.type!=="gif"?ne.stop(ae):(ne.stop(),ae()),q("stopped");function ae(ge){if(!ne){typeof H.call=="function"?H.call($,""):H("");return}Object.keys(ne).forEach(function(fe){typeof ne[fe]!="function"&&($[fe]=ne[fe])});var D=ne.blob;if(!D)if(ge)ne.blob=D=ge;else throw"Recording failed.";if(D&&!g.disableLogs&&console.log(D.type,"->",v(D.size)),H){var X;try{X=u.createObjectURL(D)}catch{}typeof H.call=="function"?H.call($,X):H(X)}g.autoWriteToDisk&&K(function(fe){var pe={};pe[g.type+"Blob"]=fe,G.Store(pe)})}}function V(){if(!ne){te();return}if($.state!=="recording"){g.disableLogs||console.warn("Unable to pause the recording. Recording state: ",$.state);return}q("paused"),ne.pause(),g.disableLogs||console.log("Paused recording.")}function M(){if(!ne){te();return}if($.state!=="paused"){g.disableLogs||console.warn("Unable to resume the recording. Recording state: ",$.state);return}q("recording"),ne.resume(),g.disableLogs||console.log("Resumed recording.")}function A(H){postMessage(new FileReaderSync().readAsDataURL(H))}function K(H,ae){if(!H)throw"Pass a callback function over getDataURL.";var ge=ae?ae.blob:(ne||{}).blob;if(!ge){g.disableLogs||console.warn("Blob encoder did not finish its job yet."),setTimeout(function(){K(H,ae)},1e3);return}if(typeof Worker<"u"&&!navigator.mozGetUserMedia){var D=fe(A);D.onmessage=function(pe){H(pe.data)},D.postMessage(ge)}else{var X=new FileReader;X.readAsDataURL(ge),X.onload=function(pe){H(pe.target.result)}}function fe(pe){try{var ve=u.createObjectURL(new Blob([pe.toString(),"this.onmessage = function (eee) {"+pe.name+"(eee.data);}"],{type:"application/javascript"})),Ce=new Worker(ve);return u.revokeObjectURL(ve),Ce}catch{}}}function Y(H){if(H=H||0,$.state==="paused"){setTimeout(function(){Y(H)},1e3);return}if($.state!=="stopped"){if(H>=$.recordingDuration){B($.onRecordingStopped);return}H+=1e3,setTimeout(function(){Y(H)},1e3)}}function q(H){$&&($.state=H,typeof $.onStateChanged.call=="function"?$.onStateChanged.call($,H):$.onStateChanged(H))}var oe='It seems that recorder is destroyed or "startRecording" is not invoked for '+g.type+" recorder.";function te(){g.disableLogs!==!0&&console.warn(oe)}var ne,de={startRecording:z,stopRecording:B,pauseRecording:V,resumeRecording:M,initRecorder:L,setRecordingDuration:function(H,ae){if(typeof H>"u")throw"recordingDuration is required.";if(typeof H!="number")throw"recordingDuration must be a number.";return $.recordingDuration=H,$.onRecordingStopped=ae||function(){},{onRecordingStopped:function(ge){$.onRecordingStopped=ge}}},clearRecordedData:function(){if(!ne){te();return}ne.clearRecordedData(),g.disableLogs||console.log("Cleared old recorded data.")},getBlob:function(){if(!ne){te();return}return ne.blob},getDataURL:K,toURL:function(){if(!ne){te();return}return u.createObjectURL(ne.blob)},getInternalRecorder:function(){return ne},save:function(H){if(!ne){te();return}m(ne.blob,H)},getFromDisk:function(H){if(!ne){te();return}t.getFromDisk(g.type,H)},setAdvertisementArray:function(H){g.advertisement=[];for(var ae=H.length,ge=0;ge",v(D.size)),W){var X;try{X=u.createObjectURL(D)}catch{}typeof W.call=="function"?W.call($,X):W(X)}g.autoWriteToDisk&&G(function(fe){var pe={};pe[g.type+"Blob"]=fe,q.Store(pe)})}}function V(){if(!ne){te();return}if($.state!=="recording"){g.disableLogs||console.warn("Unable to pause the recording. Recording state: ",$.state);return}K("paused"),ne.pause(),g.disableLogs||console.log("Paused recording.")}function M(){if(!ne){te();return}if($.state!=="paused"){g.disableLogs||console.warn("Unable to resume the recording. Recording state: ",$.state);return}K("recording"),ne.resume(),g.disableLogs||console.log("Resumed recording.")}function A(W){postMessage(new FileReaderSync().readAsDataURL(W))}function G(W,ae){if(!W)throw"Pass a callback function over getDataURL.";var ge=ae?ae.blob:(ne||{}).blob;if(!ge){g.disableLogs||console.warn("Blob encoder did not finish its job yet."),setTimeout(function(){G(W,ae)},1e3);return}if(typeof Worker<"u"&&!navigator.mozGetUserMedia){var D=fe(A);D.onmessage=function(pe){W(pe.data)},D.postMessage(ge)}else{var X=new FileReader;X.readAsDataURL(ge),X.onload=function(pe){W(pe.target.result)}}function fe(pe){try{var ve=u.createObjectURL(new Blob([pe.toString(),"this.onmessage = function (eee) {"+pe.name+"(eee.data);}"],{type:"application/javascript"})),Ce=new Worker(ve);return u.revokeObjectURL(ve),Ce}catch{}}}function Y(W){if(W=W||0,$.state==="paused"){setTimeout(function(){Y(W)},1e3);return}if($.state!=="stopped"){if(W>=$.recordingDuration){B($.onRecordingStopped);return}W+=1e3,setTimeout(function(){Y(W)},1e3)}}function K(W){$&&($.state=W,typeof $.onStateChanged.call=="function"?$.onStateChanged.call($,W):$.onStateChanged(W))}var oe='It seems that recorder is destroyed or "startRecording" is not invoked for '+g.type+" recorder.";function te(){g.disableLogs!==!0&&console.warn(oe)}var ne,de={startRecording:z,stopRecording:B,pauseRecording:V,resumeRecording:M,initRecorder:L,setRecordingDuration:function(W,ae){if(typeof W>"u")throw"recordingDuration is required.";if(typeof W!="number")throw"recordingDuration must be a number.";return $.recordingDuration=W,$.onRecordingStopped=ae||function(){},{onRecordingStopped:function(ge){$.onRecordingStopped=ge}}},clearRecordedData:function(){if(!ne){te();return}ne.clearRecordedData(),g.disableLogs||console.log("Cleared old recorded data.")},getBlob:function(){if(!ne){te();return}return ne.blob},getDataURL:G,toURL:function(){if(!ne){te();return}return u.createObjectURL(ne.blob)},getInternalRecorder:function(){return ne},save:function(W){if(!ne){te();return}m(ne.blob,W)},getFromDisk:function(W){if(!ne){te();return}t.getFromDisk(g.type,W)},setAdvertisementArray:function(W){g.advertisement=[];for(var ae=W.length,ge=0;ge"u"||(rt.navigator={userAgent:i,getUserMedia:function(){}},rt.console||(rt.console={}),(typeof rt.console.log>"u"||typeof rt.console.error>"u")&&(rt.console.error=rt.console.log=rt.console.log||function(){console.log(arguments)}),typeof document>"u"&&(E.document={documentElement:{appendChild:function(){return""}}},document.createElement=document.captureStream=document.mozCaptureStream=function(){var g={getContext:function(){return g},play:function(){},pause:function(){},drawImage:function(){},toDataURL:function(){return""},style:{}};return g},E.HTMLVideoElement=function(){}),typeof location>"u"&&(E.location={protocol:"file:",href:"",hash:""}),typeof screen>"u"&&(E.screen={width:0,height:0}),typeof u>"u"&&(E.URL={createObjectURL:function(){return""},revokeObjectURL:function(){return""}}),E.window=rt))})(typeof rt<"u"?rt:null);var a=window.requestAnimationFrame;if(typeof a>"u"){if(typeof webkitRequestAnimationFrame<"u")a=webkitRequestAnimationFrame;else if(typeof mozRequestAnimationFrame<"u")a=mozRequestAnimationFrame;else if(typeof msRequestAnimationFrame<"u")a=msRequestAnimationFrame;else if(typeof a>"u"){var s=0;a=function(E,g){var $=new Date().getTime(),z=Math.max(0,16-($-s)),L=setTimeout(function(){E($+z)},z);return s=$+z,L}}}var l=window.cancelAnimationFrame;typeof l>"u"&&(typeof webkitCancelAnimationFrame<"u"?l=webkitCancelAnimationFrame:typeof mozCancelAnimationFrame<"u"?l=mozCancelAnimationFrame:typeof msCancelAnimationFrame<"u"?l=msCancelAnimationFrame:typeof l>"u"&&(l=function(E){clearTimeout(E)}));var c=window.AudioContext;typeof c>"u"&&(typeof webkitAudioContext<"u"&&(c=webkitAudioContext),typeof mozAudioContext<"u"&&(c=mozAudioContext));var u=window.URL;typeof u>"u"&&typeof webkitURL<"u"&&(u=webkitURL),typeof navigator<"u"&&typeof navigator.getUserMedia>"u"&&(typeof navigator.webkitGetUserMedia<"u"&&(navigator.getUserMedia=navigator.webkitGetUserMedia),typeof navigator.mozGetUserMedia<"u"&&(navigator.getUserMedia=navigator.mozGetUserMedia));var f=navigator.userAgent.indexOf("Edge")!==-1&&(!!navigator.msSaveBlob||!!navigator.msSaveOrOpenBlob),h=!!window.opera||navigator.userAgent.indexOf("OPR/")!==-1,w=navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&"netscape"in window&&/ rv:/.test(navigator.userAgent),y=!h&&!f&&!!navigator.webkitGetUserMedia||b()||navigator.userAgent.toLowerCase().indexOf("chrome/")!==-1,x=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);x&&!y&&navigator.userAgent.indexOf("CriOS")!==-1&&(x=!1,y=!0);var C=window.MediaStream;typeof C>"u"&&typeof webkitMediaStream<"u"&&(C=webkitMediaStream),typeof C<"u"&&typeof C.prototype.stop>"u"&&(C.prototype.stop=function(){this.getTracks().forEach(function(E){E.stop()})});function v(E){var g=1e3,$=["Bytes","KB","MB","GB","TB"];if(E===0)return"0 Bytes";var z=parseInt(Math.floor(Math.log(E)/Math.log(g)),10);return(E/Math.pow(g,z)).toPrecision(3)+" "+$[z]}function m(E,g){if(!E)throw"Blob object is required.";if(!E.type)try{E.type="video/webm"}catch{}var $=(E.type||"video/webm").split("/")[1];if($.indexOf(";")!==-1&&($=$.split(";")[0]),g&&g.indexOf(".")!==-1){var z=g.split(".");g=z[0],$=z[1]}var L=(g||Math.round(Math.random()*9999999999)+888888888)+"."+$;if(typeof navigator.msSaveOrOpenBlob<"u")return navigator.msSaveOrOpenBlob(E,L);if(typeof navigator.msSaveBlob<"u")return navigator.msSaveBlob(E,L);var B=document.createElement("a");B.href=u.createObjectURL(E),B.download=L,B.style="display:none;opacity:0;color:transparent;",(document.body||document.documentElement).appendChild(B),typeof B.click=="function"?B.click():(B.target="_blank",B.dispatchEvent(new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0}))),u.revokeObjectURL(B.href)}function b(){return!!(typeof window<"u"&&typeof window.process=="object"&&window.process.type==="renderer"||typeof process<"u"&&typeof process.versions=="object"&&process.versions.electron||typeof navigator=="object"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Electron")>=0)}function R(E,g){return!E||!E.getTracks?[]:E.getTracks().filter(function($){return $.kind===(g||"audio")})}function k(E,g){"srcObject"in g?g.srcObject=E:"mozSrcObject"in g?g.mozSrcObject=E:g.srcObject=E}function T(E,g){if(typeof EBML>"u")throw new Error("Please link: https://www.webrtc-experiment.com/EBML.js");var $=new EBML.Reader,z=new EBML.Decoder,L=EBML.tools,B=new FileReader;B.onload=function(V){var M=z.decode(this.result);M.forEach(function(q){$.read(q)}),$.stop();var A=L.makeMetadataSeekable($.metadatas,$.duration,$.cues),K=this.result.slice($.metadataSize),Y=new Blob([A,K],{type:"video/webm"});g(Y)},B.readAsArrayBuffer(E)}typeof t<"u"&&(t.invokeSaveAsDialog=m,t.getTracks=R,t.getSeekableBlob=T,t.bytesToSize=v,t.isElectron=b);/** + */function o(E){this.addStream=function(g){g&&(E=g)},this.mediaType={audio:!0,video:!0},this.startRecording=function(){var g=this.mediaType,$,z=this.mimeType||{audio:null,video:null,gif:null};if(typeof g.audio!="function"&&j()&&!k(E,"audio").length&&(g.audio=!1),typeof g.video!="function"&&j()&&!k(E,"video").length&&(g.video=!1),typeof g.gif!="function"&&j()&&!k(E,"video").length&&(g.gif=!1),!g.audio&&!g.video&&!g.gif)throw"MediaStream must have either audio or video tracks.";if(g.audio&&($=null,typeof g.audio=="function"&&($=g.audio),this.audioRecorder=new t(E,{type:"audio",bufferSize:this.bufferSize,sampleRate:this.sampleRate,numberOfAudioChannels:this.numberOfAudioChannels||2,disableLogs:this.disableLogs,recorderType:$,mimeType:z.audio,timeSlice:this.timeSlice,onTimeStamp:this.onTimeStamp}),g.video||this.audioRecorder.startRecording()),g.video){$=null,typeof g.video=="function"&&($=g.video);var L=E;if(j()&&g.audio&&typeof g.audio=="function"){var B=k(E,"video")[0];w?(L=new C,L.addTrack(B),$&&$===H&&($=N)):(L=new C,L.addTrack(B))}this.videoRecorder=new t(L,{type:"video",video:this.video,canvas:this.canvas,frameInterval:this.frameInterval||10,disableLogs:this.disableLogs,recorderType:$,mimeType:z.video,timeSlice:this.timeSlice,onTimeStamp:this.onTimeStamp,workerPath:this.workerPath,webAssemblyPath:this.webAssemblyPath,frameRate:this.frameRate,bitrate:this.bitrate}),g.audio||this.videoRecorder.startRecording()}if(g.audio&&g.video){var V=this,M=j()===!0;(g.audio instanceof I&&g.video||g.audio!==!0&&g.video!==!0&&g.audio!==g.video)&&(M=!1),M===!0?(V.audioRecorder=null,V.videoRecorder.startRecording()):V.videoRecorder.initRecorder(function(){V.audioRecorder.initRecorder(function(){V.videoRecorder.startRecording(),V.audioRecorder.startRecording()})})}g.gif&&($=null,typeof g.gif=="function"&&($=g.gif),this.gifRecorder=new t(E,{type:"gif",frameRate:this.frameRate||200,quality:this.quality||10,disableLogs:this.disableLogs,recorderType:$,mimeType:z.gif}),this.gifRecorder.startRecording())},this.stopRecording=function(g){g=g||function(){},this.audioRecorder&&this.audioRecorder.stopRecording(function($){g($,"audio")}),this.videoRecorder&&this.videoRecorder.stopRecording(function($){g($,"video")}),this.gifRecorder&&this.gifRecorder.stopRecording(function($){g($,"gif")})},this.pauseRecording=function(){this.audioRecorder&&this.audioRecorder.pauseRecording(),this.videoRecorder&&this.videoRecorder.pauseRecording(),this.gifRecorder&&this.gifRecorder.pauseRecording()},this.resumeRecording=function(){this.audioRecorder&&this.audioRecorder.resumeRecording(),this.videoRecorder&&this.videoRecorder.resumeRecording(),this.gifRecorder&&this.gifRecorder.resumeRecording()},this.getBlob=function(g){var $={};return this.audioRecorder&&($.audio=this.audioRecorder.getBlob()),this.videoRecorder&&($.video=this.videoRecorder.getBlob()),this.gifRecorder&&($.gif=this.gifRecorder.getBlob()),g&&g($),$},this.destroy=function(){this.audioRecorder&&(this.audioRecorder.destroy(),this.audioRecorder=null),this.videoRecorder&&(this.videoRecorder.destroy(),this.videoRecorder=null),this.gifRecorder&&(this.gifRecorder.destroy(),this.gifRecorder=null)},this.getDataURL=function(g){this.getBlob(function(L){L.audio&&L.video?$(L.audio,function(B){$(L.video,function(V){g({audio:B,video:V})})}):L.audio?$(L.audio,function(B){g({audio:B})}):L.video&&$(L.video,function(B){g({video:B})})});function $(L,B){if(typeof Worker<"u"){var V=z(function(G){postMessage(new FileReaderSync().readAsDataURL(G))});V.onmessage=function(A){B(A.data)},V.postMessage(L)}else{var M=new FileReader;M.readAsDataURL(L),M.onload=function(A){B(A.target.result)}}}function z(L){var B=u.createObjectURL(new Blob([L.toString(),"this.onmessage = function (eee) {"+L.name+"(eee.data);}"],{type:"application/javascript"})),V=new Worker(B),M;if(typeof u<"u")M=u;else if(typeof webkitURL<"u")M=webkitURL;else throw"Neither URL nor webkitURL detected.";return M.revokeObjectURL(B),V}},this.writeToDisk=function(){t.writeToDisk({audio:this.audioRecorder,video:this.videoRecorder,gif:this.gifRecorder})},this.save=function(g){g=g||{audio:!0,video:!0,gif:!0},g.audio&&this.audioRecorder&&this.audioRecorder.save(typeof g.audio=="string"?g.audio:""),g.video&&this.videoRecorder&&this.videoRecorder.save(typeof g.video=="string"?g.video:""),g.gif&&this.gifRecorder&&this.gifRecorder.save(typeof g.gif=="string"?g.gif:"")}}o.getFromDisk=t.getFromDisk,o.writeToDisk=t.writeToDisk,typeof t<"u"&&(t.MRecordRTC=o);var i="Fake/5.0 (FakeOS) AppleWebKit/123 (KHTML, like Gecko) Fake/12.3.4567.89 Fake/123.45";(function(E){E&&(typeof window<"u"||typeof rt>"u"||(rt.navigator={userAgent:i,getUserMedia:function(){}},rt.console||(rt.console={}),(typeof rt.console.log>"u"||typeof rt.console.error>"u")&&(rt.console.error=rt.console.log=rt.console.log||function(){console.log(arguments)}),typeof document>"u"&&(E.document={documentElement:{appendChild:function(){return""}}},document.createElement=document.captureStream=document.mozCaptureStream=function(){var g={getContext:function(){return g},play:function(){},pause:function(){},drawImage:function(){},toDataURL:function(){return""},style:{}};return g},E.HTMLVideoElement=function(){}),typeof location>"u"&&(E.location={protocol:"file:",href:"",hash:""}),typeof screen>"u"&&(E.screen={width:0,height:0}),typeof u>"u"&&(E.URL={createObjectURL:function(){return""},revokeObjectURL:function(){return""}}),E.window=rt))})(typeof rt<"u"?rt:null);var a=window.requestAnimationFrame;if(typeof a>"u"){if(typeof webkitRequestAnimationFrame<"u")a=webkitRequestAnimationFrame;else if(typeof mozRequestAnimationFrame<"u")a=mozRequestAnimationFrame;else if(typeof msRequestAnimationFrame<"u")a=msRequestAnimationFrame;else if(typeof a>"u"){var s=0;a=function(E,g){var $=new Date().getTime(),z=Math.max(0,16-($-s)),L=setTimeout(function(){E($+z)},z);return s=$+z,L}}}var l=window.cancelAnimationFrame;typeof l>"u"&&(typeof webkitCancelAnimationFrame<"u"?l=webkitCancelAnimationFrame:typeof mozCancelAnimationFrame<"u"?l=mozCancelAnimationFrame:typeof msCancelAnimationFrame<"u"?l=msCancelAnimationFrame:typeof l>"u"&&(l=function(E){clearTimeout(E)}));var c=window.AudioContext;typeof c>"u"&&(typeof webkitAudioContext<"u"&&(c=webkitAudioContext),typeof mozAudioContext<"u"&&(c=mozAudioContext));var u=window.URL;typeof u>"u"&&typeof webkitURL<"u"&&(u=webkitURL),typeof navigator<"u"&&typeof navigator.getUserMedia>"u"&&(typeof navigator.webkitGetUserMedia<"u"&&(navigator.getUserMedia=navigator.webkitGetUserMedia),typeof navigator.mozGetUserMedia<"u"&&(navigator.getUserMedia=navigator.mozGetUserMedia));var f=navigator.userAgent.indexOf("Edge")!==-1&&(!!navigator.msSaveBlob||!!navigator.msSaveOrOpenBlob),h=!!window.opera||navigator.userAgent.indexOf("OPR/")!==-1,w=navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&"netscape"in window&&/ rv:/.test(navigator.userAgent),y=!h&&!f&&!!navigator.webkitGetUserMedia||b()||navigator.userAgent.toLowerCase().indexOf("chrome/")!==-1,x=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);x&&!y&&navigator.userAgent.indexOf("CriOS")!==-1&&(x=!1,y=!0);var C=window.MediaStream;typeof C>"u"&&typeof webkitMediaStream<"u"&&(C=webkitMediaStream),typeof C<"u"&&typeof C.prototype.stop>"u"&&(C.prototype.stop=function(){this.getTracks().forEach(function(E){E.stop()})});function v(E){var g=1e3,$=["Bytes","KB","MB","GB","TB"];if(E===0)return"0 Bytes";var z=parseInt(Math.floor(Math.log(E)/Math.log(g)),10);return(E/Math.pow(g,z)).toPrecision(3)+" "+$[z]}function m(E,g){if(!E)throw"Blob object is required.";if(!E.type)try{E.type="video/webm"}catch{}var $=(E.type||"video/webm").split("/")[1];if($.indexOf(";")!==-1&&($=$.split(";")[0]),g&&g.indexOf(".")!==-1){var z=g.split(".");g=z[0],$=z[1]}var L=(g||Math.round(Math.random()*9999999999)+888888888)+"."+$;if(typeof navigator.msSaveOrOpenBlob<"u")return navigator.msSaveOrOpenBlob(E,L);if(typeof navigator.msSaveBlob<"u")return navigator.msSaveBlob(E,L);var B=document.createElement("a");B.href=u.createObjectURL(E),B.download=L,B.style="display:none;opacity:0;color:transparent;",(document.body||document.documentElement).appendChild(B),typeof B.click=="function"?B.click():(B.target="_blank",B.dispatchEvent(new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0}))),u.revokeObjectURL(B.href)}function b(){return!!(typeof window<"u"&&typeof window.process=="object"&&window.process.type==="renderer"||typeof process<"u"&&typeof process.versions=="object"&&process.versions.electron||typeof navigator=="object"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Electron")>=0)}function k(E,g){return!E||!E.getTracks?[]:E.getTracks().filter(function($){return $.kind===(g||"audio")})}function R(E,g){"srcObject"in g?g.srcObject=E:"mozSrcObject"in g?g.mozSrcObject=E:g.srcObject=E}function T(E,g){if(typeof EBML>"u")throw new Error("Please link: https://www.webrtc-experiment.com/EBML.js");var $=new EBML.Reader,z=new EBML.Decoder,L=EBML.tools,B=new FileReader;B.onload=function(V){var M=z.decode(this.result);M.forEach(function(K){$.read(K)}),$.stop();var A=L.makeMetadataSeekable($.metadatas,$.duration,$.cues),G=this.result.slice($.metadataSize),Y=new Blob([A,G],{type:"video/webm"});g(Y)},B.readAsArrayBuffer(E)}typeof t<"u"&&(t.invokeSaveAsDialog=m,t.getTracks=k,t.getSeekableBlob=T,t.bytesToSize=v,t.isElectron=b);/** * Storage is a standalone object used by {@link RecordRTC} to store reusable objects e.g. "new AudioContext". * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT} * @author {@link https://MuazKhan.com|Muaz Khan} @@ -298,7 +298,7 @@ Error generating stack: `+i.message+` * @param {MediaStream} mediaStream - MediaStream object fetched using getUserMedia API or generated using captureStreamUntilEnded or WebAudio API. * @param {object} config - {disableLogs:true, initCallback: function, mimeType: "video/webm", timeSlice: 1000} * @throws Will throw an error if first argument "MediaStream" is missing. Also throws error if "MediaRecorder API" are not supported by the browser. - */function N(E,g){var Y=this;if(typeof E>"u")throw'First argument "MediaStream" is required.';if(typeof MediaRecorder>"u")throw"Your browser does not support the Media Recorder API. Please try other modules e.g. WhammyRecorder or StereoAudioRecorder.";if(g=g||{mimeType:"video/webm"},g.type==="audio"){if(R(E,"video").length&&R(E,"audio").length){var $;navigator.mozGetUserMedia?($=new C,$.addTrack(R(E,"audio")[0])):$=new C(R(E,"audio")),E=$}(!g.mimeType||g.mimeType.toString().toLowerCase().indexOf("audio")===-1)&&(g.mimeType=y?"audio/webm":"audio/ogg"),g.mimeType&&g.mimeType.toString().toLowerCase()!=="audio/ogg"&&navigator.mozGetUserMedia&&(g.mimeType="audio/ogg")}var z=[];this.getArrayOfBlobs=function(){return z},this.record=function(){Y.blob=null,Y.clearRecordedData(),Y.timestamps=[],K=[],z=[];var q=g;g.disableLogs||console.log("Passing following config over MediaRecorder API.",q),M&&(M=null),y&&!j()&&(q="video/vp8"),typeof MediaRecorder.isTypeSupported=="function"&&q.mimeType&&(MediaRecorder.isTypeSupported(q.mimeType)||(g.disableLogs||console.warn("MediaRecorder API seems unable to record mimeType:",q.mimeType),q.mimeType=g.type==="audio"?"audio/webm":"video/webm"));try{M=new MediaRecorder(E,q),g.mimeType=q.mimeType}catch{M=new MediaRecorder(E)}q.mimeType&&!MediaRecorder.isTypeSupported&&"canRecordMimeType"in M&&M.canRecordMimeType(q.mimeType)===!1&&(g.disableLogs||console.warn("MediaRecorder API seems unable to record mimeType:",q.mimeType)),M.ondataavailable=function(oe){if(oe.data&&K.push("ondataavailable: "+v(oe.data.size)),typeof g.timeSlice=="number"){if(oe.data&&oe.data.size&&(z.push(oe.data),L(),typeof g.ondataavailable=="function")){var te=g.getNativeBlob?oe.data:new Blob([oe.data],{type:B(q)});g.ondataavailable(te)}return}if(!oe.data||!oe.data.size||oe.data.size<100||Y.blob){Y.recordingCallback&&(Y.recordingCallback(new Blob([],{type:B(q)})),Y.recordingCallback=null);return}Y.blob=g.getNativeBlob?oe.data:new Blob([oe.data],{type:B(q)}),Y.recordingCallback&&(Y.recordingCallback(Y.blob),Y.recordingCallback=null)},M.onstart=function(){K.push("started")},M.onpause=function(){K.push("paused")},M.onresume=function(){K.push("resumed")},M.onstop=function(){K.push("stopped")},M.onerror=function(oe){oe&&(oe.name||(oe.name="UnknownError"),K.push("error: "+oe),g.disableLogs||(oe.name.toString().toLowerCase().indexOf("invalidstate")!==-1?console.error("The MediaRecorder is not in a state in which the proposed operation is allowed to be executed.",oe):oe.name.toString().toLowerCase().indexOf("notsupported")!==-1?console.error("MIME type (",q.mimeType,") is not supported.",oe):oe.name.toString().toLowerCase().indexOf("security")!==-1?console.error("MediaRecorder security error",oe):oe.name==="OutOfMemory"?console.error("The UA has exhaused the available memory. User agents SHOULD provide as much additional information as possible in the message attribute.",oe):oe.name==="IllegalStreamModification"?console.error("A modification to the stream has occurred that makes it impossible to continue recording. An example would be the addition of a Track while recording is occurring. User agents SHOULD provide as much additional information as possible in the message attribute.",oe):oe.name==="OtherRecordingError"?console.error("Used for an fatal error other than those listed above. User agents SHOULD provide as much additional information as possible in the message attribute.",oe):oe.name==="GenericError"?console.error("The UA cannot provide the codec or recording option that has been requested.",oe):console.error("MediaRecorder Error",oe)),function(te){if(!Y.manuallyStopped&&M&&M.state==="inactive"){delete g.timeslice,M.start(10*60*1e3);return}setTimeout(te,1e3)}(),M.state!=="inactive"&&M.state!=="stopped"&&M.stop())},typeof g.timeSlice=="number"?(L(),M.start(g.timeSlice)):M.start(36e5),g.initCallback&&g.initCallback()},this.timestamps=[];function L(){Y.timestamps.push(new Date().getTime()),typeof g.onTimeStamp=="function"&&g.onTimeStamp(Y.timestamps[Y.timestamps.length-1],Y.timestamps)}function B(q){return M&&M.mimeType?M.mimeType:q.mimeType||"video/webm"}this.stop=function(q){q=q||function(){},Y.manuallyStopped=!0,M&&(this.recordingCallback=q,M.state==="recording"&&M.stop(),typeof g.timeSlice=="number"&&setTimeout(function(){Y.blob=new Blob(z,{type:B(g)}),Y.recordingCallback(Y.blob)},100))},this.pause=function(){M&&M.state==="recording"&&M.pause()},this.resume=function(){M&&M.state==="paused"&&M.resume()},this.clearRecordedData=function(){M&&M.state==="recording"&&Y.stop(V),V()};function V(){z=[],M=null,Y.timestamps=[]}var M;this.getInternalRecorder=function(){return M};function A(){if("active"in E){if(!E.active)return!1}else if("ended"in E&&E.ended)return!1;return!0}this.blob=null,this.getState=function(){return M&&M.state||"inactive"};var K=[];this.getAllStates=function(){return K},typeof g.checkForInactiveTracks>"u"&&(g.checkForInactiveTracks=!1);var Y=this;(function q(){if(!(!M||g.checkForInactiveTracks===!1)){if(A()===!1){g.disableLogs||console.log("MediaStream seems stopped."),Y.stop();return}setTimeout(q,1e3)}})(),this.name="MediaStreamRecorder",this.toString=function(){return this.name}}typeof t<"u"&&(t.MediaStreamRecorder=N);/** + */function N(E,g){var Y=this;if(typeof E>"u")throw'First argument "MediaStream" is required.';if(typeof MediaRecorder>"u")throw"Your browser does not support the Media Recorder API. Please try other modules e.g. WhammyRecorder or StereoAudioRecorder.";if(g=g||{mimeType:"video/webm"},g.type==="audio"){if(k(E,"video").length&&k(E,"audio").length){var $;navigator.mozGetUserMedia?($=new C,$.addTrack(k(E,"audio")[0])):$=new C(k(E,"audio")),E=$}(!g.mimeType||g.mimeType.toString().toLowerCase().indexOf("audio")===-1)&&(g.mimeType=y?"audio/webm":"audio/ogg"),g.mimeType&&g.mimeType.toString().toLowerCase()!=="audio/ogg"&&navigator.mozGetUserMedia&&(g.mimeType="audio/ogg")}var z=[];this.getArrayOfBlobs=function(){return z},this.record=function(){Y.blob=null,Y.clearRecordedData(),Y.timestamps=[],G=[],z=[];var K=g;g.disableLogs||console.log("Passing following config over MediaRecorder API.",K),M&&(M=null),y&&!j()&&(K="video/vp8"),typeof MediaRecorder.isTypeSupported=="function"&&K.mimeType&&(MediaRecorder.isTypeSupported(K.mimeType)||(g.disableLogs||console.warn("MediaRecorder API seems unable to record mimeType:",K.mimeType),K.mimeType=g.type==="audio"?"audio/webm":"video/webm"));try{M=new MediaRecorder(E,K),g.mimeType=K.mimeType}catch{M=new MediaRecorder(E)}K.mimeType&&!MediaRecorder.isTypeSupported&&"canRecordMimeType"in M&&M.canRecordMimeType(K.mimeType)===!1&&(g.disableLogs||console.warn("MediaRecorder API seems unable to record mimeType:",K.mimeType)),M.ondataavailable=function(oe){if(oe.data&&G.push("ondataavailable: "+v(oe.data.size)),typeof g.timeSlice=="number"){if(oe.data&&oe.data.size&&(z.push(oe.data),L(),typeof g.ondataavailable=="function")){var te=g.getNativeBlob?oe.data:new Blob([oe.data],{type:B(K)});g.ondataavailable(te)}return}if(!oe.data||!oe.data.size||oe.data.size<100||Y.blob){Y.recordingCallback&&(Y.recordingCallback(new Blob([],{type:B(K)})),Y.recordingCallback=null);return}Y.blob=g.getNativeBlob?oe.data:new Blob([oe.data],{type:B(K)}),Y.recordingCallback&&(Y.recordingCallback(Y.blob),Y.recordingCallback=null)},M.onstart=function(){G.push("started")},M.onpause=function(){G.push("paused")},M.onresume=function(){G.push("resumed")},M.onstop=function(){G.push("stopped")},M.onerror=function(oe){oe&&(oe.name||(oe.name="UnknownError"),G.push("error: "+oe),g.disableLogs||(oe.name.toString().toLowerCase().indexOf("invalidstate")!==-1?console.error("The MediaRecorder is not in a state in which the proposed operation is allowed to be executed.",oe):oe.name.toString().toLowerCase().indexOf("notsupported")!==-1?console.error("MIME type (",K.mimeType,") is not supported.",oe):oe.name.toString().toLowerCase().indexOf("security")!==-1?console.error("MediaRecorder security error",oe):oe.name==="OutOfMemory"?console.error("The UA has exhaused the available memory. User agents SHOULD provide as much additional information as possible in the message attribute.",oe):oe.name==="IllegalStreamModification"?console.error("A modification to the stream has occurred that makes it impossible to continue recording. An example would be the addition of a Track while recording is occurring. User agents SHOULD provide as much additional information as possible in the message attribute.",oe):oe.name==="OtherRecordingError"?console.error("Used for an fatal error other than those listed above. User agents SHOULD provide as much additional information as possible in the message attribute.",oe):oe.name==="GenericError"?console.error("The UA cannot provide the codec or recording option that has been requested.",oe):console.error("MediaRecorder Error",oe)),function(te){if(!Y.manuallyStopped&&M&&M.state==="inactive"){delete g.timeslice,M.start(10*60*1e3);return}setTimeout(te,1e3)}(),M.state!=="inactive"&&M.state!=="stopped"&&M.stop())},typeof g.timeSlice=="number"?(L(),M.start(g.timeSlice)):M.start(36e5),g.initCallback&&g.initCallback()},this.timestamps=[];function L(){Y.timestamps.push(new Date().getTime()),typeof g.onTimeStamp=="function"&&g.onTimeStamp(Y.timestamps[Y.timestamps.length-1],Y.timestamps)}function B(K){return M&&M.mimeType?M.mimeType:K.mimeType||"video/webm"}this.stop=function(K){K=K||function(){},Y.manuallyStopped=!0,M&&(this.recordingCallback=K,M.state==="recording"&&M.stop(),typeof g.timeSlice=="number"&&setTimeout(function(){Y.blob=new Blob(z,{type:B(g)}),Y.recordingCallback(Y.blob)},100))},this.pause=function(){M&&M.state==="recording"&&M.pause()},this.resume=function(){M&&M.state==="paused"&&M.resume()},this.clearRecordedData=function(){M&&M.state==="recording"&&Y.stop(V),V()};function V(){z=[],M=null,Y.timestamps=[]}var M;this.getInternalRecorder=function(){return M};function A(){if("active"in E){if(!E.active)return!1}else if("ended"in E&&E.ended)return!1;return!0}this.blob=null,this.getState=function(){return M&&M.state||"inactive"};var G=[];this.getAllStates=function(){return G},typeof g.checkForInactiveTracks>"u"&&(g.checkForInactiveTracks=!1);var Y=this;(function K(){if(!(!M||g.checkForInactiveTracks===!1)){if(A()===!1){g.disableLogs||console.log("MediaStream seems stopped."),Y.stop();return}setTimeout(K,1e3)}})(),this.name="MediaStreamRecorder",this.toString=function(){return this.name}}typeof t<"u"&&(t.MediaStreamRecorder=N);/** * StereoAudioRecorder is a standalone class used by {@link RecordRTC} to bring "stereo" audio-recording in chrome. * @summary JavaScript standalone object for stereo audio recording. * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT} @@ -317,7 +317,7 @@ Error generating stack: `+i.message+` * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code} * @param {MediaStream} mediaStream - MediaStream object fetched using getUserMedia API or generated using captureStreamUntilEnded or WebAudio API. * @param {object} config - {sampleRate: 44100, bufferSize: 4096, numberOfAudioChannels: 1, etc.} - */function O(E,g){if(!R(E,"audio").length)throw"Your stream has no audio tracks.";g=g||{};var $=this,z=[],L=[],B=!1,V=0,M,A=2,K=g.desiredSampRate;g.leftChannel===!0&&(A=1),g.numberOfAudioChannels===1&&(A=1),(!A||A<1)&&(A=2),g.disableLogs||console.log("StereoAudioRecorder is set to record number of channels: "+A),typeof g.checkForInactiveTracks>"u"&&(g.checkForInactiveTracks=!0);function Y(){if(g.checkForInactiveTracks===!1)return!0;if("active"in E){if(!E.active)return!1}else if("ended"in E&&E.ended)return!1;return!0}this.record=function(){if(Y()===!1)throw"Please make sure MediaStream is active.";ge(),X=ae=!1,B=!0,typeof g.timeSlice<"u"&&ve()};function q(Ce,Le){function De(he,Ge){var Xe=he.numberOfAudioChannels,Ye=he.leftBuffers.slice(0),ye=he.rightBuffers.slice(0),Pe=he.sampleRate,ue=he.internalInterleavedLength,me=he.desiredSampRate;Xe===2&&(Ye=Qe(Ye,ue),ye=Qe(ye,ue),me&&(Ye=$e(Ye,me,Pe),ye=$e(ye,me,Pe))),Xe===1&&(Ye=Qe(Ye,ue),me&&(Ye=$e(Ye,me,Pe))),me&&(Pe=me);function $e(tt,en,nt){var Tt=Math.round(tt.length*(en/nt)),It=[],qt=Number((tt.length-1)/(Tt-1));It[0]=tt[0];for(var Gn=1;Gn"u"&&(t.Storage={AudioContextConstructor:null,AudioContext:window.AudioContext||window.webkitAudioContext}),(!t.Storage.AudioContextConstructor||t.Storage.AudioContextConstructor.state==="closed")&&(t.Storage.AudioContextConstructor=new t.Storage.AudioContext);var te=t.Storage.AudioContextConstructor,ne=te.createMediaStreamSource(E),de=[0,256,512,1024,2048,4096,8192,16384],ke=typeof g.bufferSize>"u"?4096:g.bufferSize;if(de.indexOf(ke)===-1&&(g.disableLogs||console.log("Legal values for buffer-size are "+JSON.stringify(de,null," "))),te.createJavaScriptNode)M=te.createJavaScriptNode(ke,A,A);else if(te.createScriptProcessor)M=te.createScriptProcessor(ke,A,A);else throw"WebAudio API has no support on this browser.";ne.connect(M),g.bufferSize||(ke=M.bufferSize);var H=typeof g.sampleRate<"u"?g.sampleRate:te.sampleRate||44100;(H<22050||H>96e3)&&(g.disableLogs||console.log("sample-rate must be under range 22050 and 96000.")),g.disableLogs||g.desiredSampRate&&console.log("Desired sample-rate: "+g.desiredSampRate);var ae=!1;this.pause=function(){ae=!0},this.resume=function(){if(Y()===!1)throw"Please make sure MediaStream is active.";if(!B){g.disableLogs||console.log("Seems recording has been restarted."),this.record();return}ae=!1},this.clearRecordedData=function(){g.checkForInactiveTracks=!1,B&&this.stop(D),D()};function ge(){z=[],L=[],V=0,X=!1,B=!1,ae=!1,te=null,$.leftchannel=z,$.rightchannel=L,$.numberOfAudioChannels=A,$.desiredSampRate=K,$.sampleRate=H,$.recordingLength=V,pe={left:[],right:[],recordingLength:0}}function D(){M&&(M.onaudioprocess=null,M.disconnect(),M=null),ne&&(ne.disconnect(),ne=null),ge()}this.name="StereoAudioRecorder",this.toString=function(){return this.name};var X=!1;function fe(Ce){if(!ae){if(Y()===!1&&(g.disableLogs||console.log("MediaStream seems stopped."),M.disconnect(),B=!1),!B){ne&&(ne.disconnect(),ne=null);return}X||(X=!0,g.onAudioProcessStarted&&g.onAudioProcessStarted(),g.initCallback&&g.initCallback());var Le=Ce.inputBuffer.getChannelData(0),De=new Float32Array(Le);if(z.push(De),A===2){var Ee=Ce.inputBuffer.getChannelData(1),he=new Float32Array(Ee);L.push(he)}V+=ke,$.recordingLength=V,typeof g.timeSlice<"u"&&(pe.recordingLength+=ke,pe.left.push(De),A===2&&pe.right.push(he))}}M.onaudioprocess=fe,te.createMediaStreamDestination?M.connect(te.createMediaStreamDestination()):M.connect(te.destination),this.leftchannel=z,this.rightchannel=L,this.numberOfAudioChannels=A,this.desiredSampRate=K,this.sampleRate=H,$.recordingLength=V;var pe={left:[],right:[],recordingLength:0};function ve(){!B||typeof g.ondataavailable!="function"||typeof g.timeSlice>"u"||(pe.left.length?(q({desiredSampRate:K,sampleRate:H,numberOfAudioChannels:A,internalInterleavedLength:pe.recordingLength,leftBuffers:pe.left,rightBuffers:A===1?[]:pe.right},function(Ce,Le){var De=new Blob([Le],{type:"audio/wav"});g.ondataavailable(De),setTimeout(ve,g.timeSlice)}),pe={left:[],right:[],recordingLength:0}):setTimeout(ve,g.timeSlice))}}typeof t<"u"&&(t.StereoAudioRecorder=O);/** + */function I(E,g){if(!k(E,"audio").length)throw"Your stream has no audio tracks.";g=g||{};var $=this,z=[],L=[],B=!1,V=0,M,A=2,G=g.desiredSampRate;g.leftChannel===!0&&(A=1),g.numberOfAudioChannels===1&&(A=1),(!A||A<1)&&(A=2),g.disableLogs||console.log("StereoAudioRecorder is set to record number of channels: "+A),typeof g.checkForInactiveTracks>"u"&&(g.checkForInactiveTracks=!0);function Y(){if(g.checkForInactiveTracks===!1)return!0;if("active"in E){if(!E.active)return!1}else if("ended"in E&&E.ended)return!1;return!0}this.record=function(){if(Y()===!1)throw"Please make sure MediaStream is active.";ge(),X=ae=!1,B=!0,typeof g.timeSlice<"u"&&ve()};function K(Ce,Le){function De(he,Ge){var Xe=he.numberOfAudioChannels,Ye=he.leftBuffers.slice(0),ye=he.rightBuffers.slice(0),Pe=he.sampleRate,ue=he.internalInterleavedLength,me=he.desiredSampRate;Xe===2&&(Ye=Qe(Ye,ue),ye=Qe(ye,ue),me&&(Ye=$e(Ye,me,Pe),ye=$e(ye,me,Pe))),Xe===1&&(Ye=Qe(Ye,ue),me&&(Ye=$e(Ye,me,Pe))),me&&(Pe=me);function $e(tt,en,nt){var Tt=Math.round(tt.length*(en/nt)),It=[],qt=Number((tt.length-1)/(Tt-1));It[0]=tt[0];for(var Gn=1;Gn"u"&&(t.Storage={AudioContextConstructor:null,AudioContext:window.AudioContext||window.webkitAudioContext}),(!t.Storage.AudioContextConstructor||t.Storage.AudioContextConstructor.state==="closed")&&(t.Storage.AudioContextConstructor=new t.Storage.AudioContext);var te=t.Storage.AudioContextConstructor,ne=te.createMediaStreamSource(E),de=[0,256,512,1024,2048,4096,8192,16384],Re=typeof g.bufferSize>"u"?4096:g.bufferSize;if(de.indexOf(Re)===-1&&(g.disableLogs||console.log("Legal values for buffer-size are "+JSON.stringify(de,null," "))),te.createJavaScriptNode)M=te.createJavaScriptNode(Re,A,A);else if(te.createScriptProcessor)M=te.createScriptProcessor(Re,A,A);else throw"WebAudio API has no support on this browser.";ne.connect(M),g.bufferSize||(Re=M.bufferSize);var W=typeof g.sampleRate<"u"?g.sampleRate:te.sampleRate||44100;(W<22050||W>96e3)&&(g.disableLogs||console.log("sample-rate must be under range 22050 and 96000.")),g.disableLogs||g.desiredSampRate&&console.log("Desired sample-rate: "+g.desiredSampRate);var ae=!1;this.pause=function(){ae=!0},this.resume=function(){if(Y()===!1)throw"Please make sure MediaStream is active.";if(!B){g.disableLogs||console.log("Seems recording has been restarted."),this.record();return}ae=!1},this.clearRecordedData=function(){g.checkForInactiveTracks=!1,B&&this.stop(D),D()};function ge(){z=[],L=[],V=0,X=!1,B=!1,ae=!1,te=null,$.leftchannel=z,$.rightchannel=L,$.numberOfAudioChannels=A,$.desiredSampRate=G,$.sampleRate=W,$.recordingLength=V,pe={left:[],right:[],recordingLength:0}}function D(){M&&(M.onaudioprocess=null,M.disconnect(),M=null),ne&&(ne.disconnect(),ne=null),ge()}this.name="StereoAudioRecorder",this.toString=function(){return this.name};var X=!1;function fe(Ce){if(!ae){if(Y()===!1&&(g.disableLogs||console.log("MediaStream seems stopped."),M.disconnect(),B=!1),!B){ne&&(ne.disconnect(),ne=null);return}X||(X=!0,g.onAudioProcessStarted&&g.onAudioProcessStarted(),g.initCallback&&g.initCallback());var Le=Ce.inputBuffer.getChannelData(0),De=new Float32Array(Le);if(z.push(De),A===2){var Ee=Ce.inputBuffer.getChannelData(1),he=new Float32Array(Ee);L.push(he)}V+=Re,$.recordingLength=V,typeof g.timeSlice<"u"&&(pe.recordingLength+=Re,pe.left.push(De),A===2&&pe.right.push(he))}}M.onaudioprocess=fe,te.createMediaStreamDestination?M.connect(te.createMediaStreamDestination()):M.connect(te.destination),this.leftchannel=z,this.rightchannel=L,this.numberOfAudioChannels=A,this.desiredSampRate=G,this.sampleRate=W,$.recordingLength=V;var pe={left:[],right:[],recordingLength:0};function ve(){!B||typeof g.ondataavailable!="function"||typeof g.timeSlice>"u"||(pe.left.length?(K({desiredSampRate:G,sampleRate:W,numberOfAudioChannels:A,internalInterleavedLength:pe.recordingLength,leftBuffers:pe.left,rightBuffers:A===1?[]:pe.right},function(Ce,Le){var De=new Blob([Le],{type:"audio/wav"});g.ondataavailable(De),setTimeout(ve,g.timeSlice)}),pe={left:[],right:[],recordingLength:0}):setTimeout(ve,g.timeSlice))}}typeof t<"u"&&(t.StereoAudioRecorder=I);/** * CanvasRecorder is a standalone class used by {@link RecordRTC} to bring HTML5-Canvas recording into video WebM. It uses HTML2Canvas library and runs top over {@link Whammy}. * @summary HTML2Canvas recording into video WebM. * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT} @@ -333,7 +333,7 @@ Error generating stack: `+i.message+` * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code} * @param {HTMLElement} htmlElement - querySelector/getElementById/getElementsByTagName[0]/etc. * @param {object} config - {disableLogs:true, initCallback: function} - */function F(E,g){if(typeof html2canvas>"u")throw"Please link: https://www.webrtc-experiment.com/screenshot.js";g=g||{},g.frameInterval||(g.frameInterval=10);var $=!1;["captureStream","mozCaptureStream","webkitCaptureStream"].forEach(function(de){de in document.createElement("canvas")&&($=!0)});var z=(!!window.webkitRTCPeerConnection||!!window.webkitGetUserMedia)&&!!window.chrome,L=50,B=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);z&&B&&B[2]&&(L=parseInt(B[2],10)),z&&L<52&&($=!1),g.useWhammyRecorder&&($=!1);var V,M;if($)if(g.disableLogs||console.log("Your browser supports both MediRecorder API and canvas.captureStream!"),E instanceof HTMLCanvasElement)V=E;else if(E instanceof CanvasRenderingContext2D)V=E.canvas;else throw"Please pass either HTMLCanvasElement or CanvasRenderingContext2D.";else navigator.mozGetUserMedia&&(g.disableLogs||console.error("Canvas recording is NOT supported in Firefox."));var A;this.record=function(){if(A=!0,$&&!g.useWhammyRecorder){var de;"captureStream"in V?de=V.captureStream(25):"mozCaptureStream"in V?de=V.mozCaptureStream(25):"webkitCaptureStream"in V&&(de=V.webkitCaptureStream(25));try{var ke=new C;ke.addTrack(R(de,"video")[0]),de=ke}catch{}if(!de)throw"captureStream API are NOT available.";M=new N(de,{mimeType:g.mimeType||"video/webm"}),M.record()}else ne.frames=[],te=new Date().getTime(),oe();g.initCallback&&g.initCallback()},this.getWebPImages=function(de){if(E.nodeName.toLowerCase()!=="canvas"){de();return}var ke=ne.frames.length;ne.frames.forEach(function(H,ae){var ge=ke-ae;g.disableLogs||console.log(ge+"/"+ke+" frames remaining"),g.onEncodingCallback&&g.onEncodingCallback(ge,ke);var D=H.image.toDataURL("image/webp",1);ne.frames[ae].image=D}),g.disableLogs||console.log("Generating WebM"),de()},this.stop=function(de){A=!1;var ke=this;if($&&M){M.stop(de);return}this.getWebPImages(function(){ne.compile(function(H){g.disableLogs||console.log("Recording finished!"),ke.blob=H,ke.blob.forEach&&(ke.blob=new Blob([],{type:"video/webm"})),de&&de(ke.blob),ne.frames=[]})})};var K=!1;this.pause=function(){if(K=!0,M instanceof N){M.pause();return}},this.resume=function(){if(K=!1,M instanceof N){M.resume();return}A||this.record()},this.clearRecordedData=function(){A&&this.stop(Y),Y()};function Y(){ne.frames=[],A=!1,K=!1}this.name="CanvasRecorder",this.toString=function(){return this.name};function q(){var de=document.createElement("canvas"),ke=de.getContext("2d");return de.width=E.width,de.height=E.height,ke.drawImage(E,0,0),de}function oe(){if(K)return te=new Date().getTime(),setTimeout(oe,500);if(E.nodeName.toLowerCase()==="canvas"){var de=new Date().getTime()-te;te=new Date().getTime(),ne.frames.push({image:q(),duration:de}),A&&setTimeout(oe,g.frameInterval);return}html2canvas(E,{grabMouse:typeof g.showMousePointer>"u"||g.showMousePointer,onrendered:function(ke){var H=new Date().getTime()-te;if(!H)return setTimeout(oe,g.frameInterval);te=new Date().getTime(),ne.frames.push({image:ke.toDataURL("image/webp",1),duration:H}),A&&setTimeout(oe,g.frameInterval)}})}var te=new Date().getTime(),ne=new U.Video(100)}typeof t<"u"&&(t.CanvasRecorder=F);/** + */function F(E,g){if(typeof html2canvas>"u")throw"Please link: https://www.webrtc-experiment.com/screenshot.js";g=g||{},g.frameInterval||(g.frameInterval=10);var $=!1;["captureStream","mozCaptureStream","webkitCaptureStream"].forEach(function(de){de in document.createElement("canvas")&&($=!0)});var z=(!!window.webkitRTCPeerConnection||!!window.webkitGetUserMedia)&&!!window.chrome,L=50,B=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);z&&B&&B[2]&&(L=parseInt(B[2],10)),z&&L<52&&($=!1),g.useWhammyRecorder&&($=!1);var V,M;if($)if(g.disableLogs||console.log("Your browser supports both MediRecorder API and canvas.captureStream!"),E instanceof HTMLCanvasElement)V=E;else if(E instanceof CanvasRenderingContext2D)V=E.canvas;else throw"Please pass either HTMLCanvasElement or CanvasRenderingContext2D.";else navigator.mozGetUserMedia&&(g.disableLogs||console.error("Canvas recording is NOT supported in Firefox."));var A;this.record=function(){if(A=!0,$&&!g.useWhammyRecorder){var de;"captureStream"in V?de=V.captureStream(25):"mozCaptureStream"in V?de=V.mozCaptureStream(25):"webkitCaptureStream"in V&&(de=V.webkitCaptureStream(25));try{var Re=new C;Re.addTrack(k(de,"video")[0]),de=Re}catch{}if(!de)throw"captureStream API are NOT available.";M=new N(de,{mimeType:g.mimeType||"video/webm"}),M.record()}else ne.frames=[],te=new Date().getTime(),oe();g.initCallback&&g.initCallback()},this.getWebPImages=function(de){if(E.nodeName.toLowerCase()!=="canvas"){de();return}var Re=ne.frames.length;ne.frames.forEach(function(W,ae){var ge=Re-ae;g.disableLogs||console.log(ge+"/"+Re+" frames remaining"),g.onEncodingCallback&&g.onEncodingCallback(ge,Re);var D=W.image.toDataURL("image/webp",1);ne.frames[ae].image=D}),g.disableLogs||console.log("Generating WebM"),de()},this.stop=function(de){A=!1;var Re=this;if($&&M){M.stop(de);return}this.getWebPImages(function(){ne.compile(function(W){g.disableLogs||console.log("Recording finished!"),Re.blob=W,Re.blob.forEach&&(Re.blob=new Blob([],{type:"video/webm"})),de&&de(Re.blob),ne.frames=[]})})};var G=!1;this.pause=function(){if(G=!0,M instanceof N){M.pause();return}},this.resume=function(){if(G=!1,M instanceof N){M.resume();return}A||this.record()},this.clearRecordedData=function(){A&&this.stop(Y),Y()};function Y(){ne.frames=[],A=!1,G=!1}this.name="CanvasRecorder",this.toString=function(){return this.name};function K(){var de=document.createElement("canvas"),Re=de.getContext("2d");return de.width=E.width,de.height=E.height,Re.drawImage(E,0,0),de}function oe(){if(G)return te=new Date().getTime(),setTimeout(oe,500);if(E.nodeName.toLowerCase()==="canvas"){var de=new Date().getTime()-te;te=new Date().getTime(),ne.frames.push({image:K(),duration:de}),A&&setTimeout(oe,g.frameInterval);return}html2canvas(E,{grabMouse:typeof g.showMousePointer>"u"||g.showMousePointer,onrendered:function(Re){var W=new Date().getTime()-te;if(!W)return setTimeout(oe,g.frameInterval);te=new Date().getTime(),ne.frames.push({image:Re.toDataURL("image/webp",1),duration:W}),A&&setTimeout(oe,g.frameInterval)}})}var te=new Date().getTime(),ne=new U.Video(100)}typeof t<"u"&&(t.CanvasRecorder=F);/** * WhammyRecorder is a standalone class used by {@link RecordRTC} to bring video recording in Chrome. It runs top over {@link Whammy}. * @summary Video recording feature in Chrome. * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT} @@ -349,7 +349,7 @@ Error generating stack: `+i.message+` * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code} * @param {MediaStream} mediaStream - MediaStream object fetched using getUserMedia API or generated using captureStreamUntilEnded or WebAudio API. * @param {object} config - {disableLogs: true, initCallback: function, video: HTMLVideoElement, etc.} - */function W(E,g){g=g||{},g.frameInterval||(g.frameInterval=10),g.disableLogs||console.log("Using frames-interval:",g.frameInterval),this.record=function(){g.width||(g.width=320),g.height||(g.height=240),g.video||(g.video={width:g.width,height:g.height}),g.canvas||(g.canvas={width:g.width,height:g.height}),A.width=g.canvas.width||320,A.height=g.canvas.height||240,K=A.getContext("2d"),g.video&&g.video instanceof HTMLVideoElement?(Y=g.video.cloneNode(),g.initCallback&&g.initCallback()):(Y=document.createElement("video"),k(E,Y),Y.onloadedmetadata=function(){g.initCallback&&g.initCallback()},Y.width=g.video.width,Y.height=g.video.height),Y.muted=!0,Y.play(),q=new Date().getTime(),oe=new U.Video,g.disableLogs||(console.log("canvas resolutions",A.width,"*",A.height),console.log("video width/height",Y.width||A.width,"*",Y.height||A.height)),$(g.frameInterval)};function $(te){te=typeof te<"u"?te:10;var ne=new Date().getTime()-q;if(!ne)return setTimeout($,te,te);if(V)return q=new Date().getTime(),setTimeout($,100);q=new Date().getTime(),Y.paused&&Y.play(),K.drawImage(Y,0,0,A.width,A.height),oe.frames.push({duration:ne,image:A.toDataURL("image/webp")}),B||setTimeout($,te,te)}function z(te){var ne=-1,de=te.length;(function ke(){if(ne++,ne===de){te.callback();return}setTimeout(function(){te.functionToLoop(ke,ne)},1)})()}function L(te,ne,de,ke,H){var ae=document.createElement("canvas");ae.width=A.width,ae.height=A.height;var ge=ae.getContext("2d"),D=[],X=te.length,fe={r:0,g:0,b:0},pe=Math.sqrt(Math.pow(255,2)+Math.pow(255,2)+Math.pow(255,2)),ve=0,Ce=0,Le=!1;z({length:X,functionToLoop:function(De,Ee){var he,Ge,Xe,Ye=function(){!Le&&Xe-he<=Xe*Ce||(Le=!0,D.push(te[Ee])),De()};if(Le)Ye();else{var ye=new Image;ye.onload=function(){ge.drawImage(ye,0,0,A.width,A.height);var Pe=ge.getImageData(0,0,A.width,A.height);he=0,Ge=Pe.data.length,Xe=Pe.data.length/4;for(var ue=0;ue0;)ae.push(H&255),H=H>>8;return new Uint8Array(ae.reverse())}function A(H){return new Uint8Array(H.split("").map(function(ae){return ae.charCodeAt(0)}))}function K(H){var ae=[],ge=H.length%8?new Array(9-H.length%8).join("0"):"";H=ge+H;for(var D=0;D127)throw"TrackNumber > 127 not supported";var ge=[H.trackNum|128,H.timecode>>8,H.timecode&255,ae].map(function(D){return String.fromCharCode(D)}).join("")+H.frame;return ge}function oe(H){for(var ae=H.RIFF[0].WEBP[0],ge=ae.indexOf("*"),D=0,X=[];D<4;D++)X[D]=ae.charCodeAt(ge+3+D);var fe,pe,ve;return ve=X[1]<<8|X[0],fe=ve&16383,ve=X[3]<<8|X[2],pe=ve&16383,{width:fe,height:pe,data:ae,riff:H}}function te(H,ae){return parseInt(H.substr(ae+4,4).split("").map(function(ge){var D=ge.charCodeAt(0).toString(2);return new Array(8-D.length+1).join("0")+D}).join(""),2)}function ne(H){for(var ae=0,ge={};ae0;)ae.push(W&255),W=W>>8;return new Uint8Array(ae.reverse())}function A(W){return new Uint8Array(W.split("").map(function(ae){return ae.charCodeAt(0)}))}function G(W){var ae=[],ge=W.length%8?new Array(9-W.length%8).join("0"):"";W=ge+W;for(var D=0;D127)throw"TrackNumber > 127 not supported";var ge=[W.trackNum|128,W.timecode>>8,W.timecode&255,ae].map(function(D){return String.fromCharCode(D)}).join("")+W.frame;return ge}function oe(W){for(var ae=W.RIFF[0].WEBP[0],ge=ae.indexOf("*"),D=0,X=[];D<4;D++)X[D]=ae.charCodeAt(ge+3+D);var fe,pe,ve;return ve=X[1]<<8|X[0],fe=ve&16383,ve=X[3]<<8|X[2],pe=ve&16383,{width:fe,height:pe,data:ae,riff:W}}function te(W,ae){return parseInt(W.substr(ae+4,4).split("").map(function(ge){var D=ge.charCodeAt(0).toString(2);return new Array(8-D.length+1).join("0")+D}).join(""),2)}function ne(W){for(var ae=0,ge={};ae"u"||typeof indexedDB.open>"u"){console.error("IndexedDB API are not available in this browser.");return}var g=1,$=this.dbName||location.href.replace(/\/|:|#|%|\.|\[|\]/g,""),z,L=indexedDB.open($,g);function B(M){M.createObjectStore(E.dataStoreName)}function V(){var M=z.transaction([E.dataStoreName],"readwrite");E.videoBlob&&M.objectStore(E.dataStoreName).put(E.videoBlob,"videoBlob"),E.gifBlob&&M.objectStore(E.dataStoreName).put(E.gifBlob,"gifBlob"),E.audioBlob&&M.objectStore(E.dataStoreName).put(E.audioBlob,"audioBlob");function A(K){M.objectStore(E.dataStoreName).get(K).onsuccess=function(Y){E.callback&&E.callback(Y.target.result,K)}}A("audioBlob"),A("videoBlob"),A("gifBlob")}L.onerror=E.onError,L.onsuccess=function(){if(z=L.result,z.onerror=E.onError,z.setVersion)if(z.version!==g){var M=z.setVersion(g);M.onsuccess=function(){B(z),V()}}else V();else V()},L.onupgradeneeded=function(M){B(M.target.result)}},Fetch:function(E){return this.callback=E,this.init(),this},Store:function(E){return this.audioBlob=E.audioBlob,this.videoBlob=E.videoBlob,this.gifBlob=E.gifBlob,this.init(),this},onError:function(E){console.error(JSON.stringify(E,null," "))},dataStoreName:"recordRTC",dbName:null};typeof t<"u"&&(t.DiskStorage=G);/** + */var q={init:function(){var E=this;if(typeof indexedDB>"u"||typeof indexedDB.open>"u"){console.error("IndexedDB API are not available in this browser.");return}var g=1,$=this.dbName||location.href.replace(/\/|:|#|%|\.|\[|\]/g,""),z,L=indexedDB.open($,g);function B(M){M.createObjectStore(E.dataStoreName)}function V(){var M=z.transaction([E.dataStoreName],"readwrite");E.videoBlob&&M.objectStore(E.dataStoreName).put(E.videoBlob,"videoBlob"),E.gifBlob&&M.objectStore(E.dataStoreName).put(E.gifBlob,"gifBlob"),E.audioBlob&&M.objectStore(E.dataStoreName).put(E.audioBlob,"audioBlob");function A(G){M.objectStore(E.dataStoreName).get(G).onsuccess=function(Y){E.callback&&E.callback(Y.target.result,G)}}A("audioBlob"),A("videoBlob"),A("gifBlob")}L.onerror=E.onError,L.onsuccess=function(){if(z=L.result,z.onerror=E.onError,z.setVersion)if(z.version!==g){var M=z.setVersion(g);M.onsuccess=function(){B(z),V()}}else V();else V()},L.onupgradeneeded=function(M){B(M.target.result)}},Fetch:function(E){return this.callback=E,this.init(),this},Store:function(E){return this.audioBlob=E.audioBlob,this.videoBlob=E.videoBlob,this.gifBlob=E.gifBlob,this.init(),this},onError:function(E){console.error(JSON.stringify(E,null," "))},dataStoreName:"recordRTC",dbName:null};typeof t<"u"&&(t.DiskStorage=q);/** * GifRecorder is standalone calss used by {@link RecordRTC} to record video or canvas into animated gif. * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT} * @author {@link https://MuazKhan.com|Muaz Khan} @@ -400,7 +400,7 @@ Error generating stack: `+i.message+` * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code} * @param {MediaStream} mediaStream - MediaStream object or HTMLCanvasElement or CanvasRenderingContext2D. * @param {object} config - {disableLogs:true, initCallback: function, width: 320, height: 240, frameRate: 200, quality: 10} - */function ee(E,g){if(typeof GIFEncoder>"u"){var $=document.createElement("script");$.src="https://www.webrtc-experiment.com/gif-recorder.js",(document.body||document.documentElement).appendChild($)}g=g||{};var z=E instanceof CanvasRenderingContext2D||E instanceof HTMLCanvasElement;this.record=function(){if(typeof GIFEncoder>"u"){setTimeout(te.record,1e3);return}if(!A){setTimeout(te.record,1e3);return}z||(g.width||(g.width=K.offsetWidth||320),g.height||(g.height=K.offsetHeight||240),g.video||(g.video={width:g.width,height:g.height}),g.canvas||(g.canvas={width:g.width,height:g.height}),V.width=g.canvas.width||320,V.height=g.canvas.height||240,K.width=g.video.width||320,K.height=g.video.height||240),oe=new GIFEncoder,oe.setRepeat(0),oe.setDelay(g.frameRate||200),oe.setQuality(g.quality||10),oe.start(),typeof g.onGifRecordingStarted=="function"&&g.onGifRecordingStarted();function ne(de){if(te.clearedRecordedData!==!0){if(L)return setTimeout(function(){ne(de)},100);Y=a(ne),typeof q===void 0&&(q=de),!(de-q<90)&&(!z&&K.paused&&K.play(),z||M.drawImage(K,0,0,V.width,V.height),g.onGifPreview&&g.onGifPreview(V.toDataURL("image/png")),oe.addFrame(M),q=de)}}Y=a(ne),g.initCallback&&g.initCallback()},this.stop=function(ne){ne=ne||function(){},Y&&l(Y),this.blob=new Blob([new Uint8Array(oe.stream().bin)],{type:"image/gif"}),ne(this.blob),oe.stream().bin=[]};var L=!1;this.pause=function(){L=!0},this.resume=function(){L=!1},this.clearRecordedData=function(){te.clearedRecordedData=!0,B()};function B(){oe&&(oe.stream().bin=[])}this.name="GifRecorder",this.toString=function(){return this.name};var V=document.createElement("canvas"),M=V.getContext("2d");z&&(E instanceof CanvasRenderingContext2D?(M=E,V=M.canvas):E instanceof HTMLCanvasElement&&(M=E.getContext("2d"),V=E));var A=!0;if(!z){var K=document.createElement("video");K.muted=!0,K.autoplay=!0,K.playsInline=!0,A=!1,K.onloadedmetadata=function(){A=!0},k(E,K),K.play()}var Y=null,q,oe,te=this}typeof t<"u"&&(t.GifRecorder=ee);function J(E,g){var $="Fake/5.0 (FakeOS) AppleWebKit/123 (KHTML, like Gecko) Fake/12.3.4567.89 Fake/123.45";(function(D){typeof t<"u"||D&&(typeof window<"u"||typeof rt>"u"||(rt.navigator={userAgent:$,getUserMedia:function(){}},rt.console||(rt.console={}),(typeof rt.console.log>"u"||typeof rt.console.error>"u")&&(rt.console.error=rt.console.log=rt.console.log||function(){console.log(arguments)}),typeof document>"u"&&(D.document={documentElement:{appendChild:function(){return""}}},document.createElement=document.captureStream=document.mozCaptureStream=function(){var X={getContext:function(){return X},play:function(){},pause:function(){},drawImage:function(){},toDataURL:function(){return""},style:{}};return X},D.HTMLVideoElement=function(){}),typeof location>"u"&&(D.location={protocol:"file:",href:"",hash:""}),typeof screen>"u"&&(D.screen={width:0,height:0}),typeof K>"u"&&(D.URL={createObjectURL:function(){return""},revokeObjectURL:function(){return""}}),D.window=rt))})(typeof rt<"u"?rt:null),g=g||"multi-streams-mixer";var z=[],L=!1,B=document.createElement("canvas"),V=B.getContext("2d");B.style.opacity=0,B.style.position="absolute",B.style.zIndex=-1,B.style.top="-1000em",B.style.left="-1000em",B.className=g,(document.body||document.documentElement).appendChild(B),this.disableLogs=!1,this.frameInterval=10,this.width=360,this.height=240,this.useGainNode=!0;var M=this,A=window.AudioContext;typeof A>"u"&&(typeof webkitAudioContext<"u"&&(A=webkitAudioContext),typeof mozAudioContext<"u"&&(A=mozAudioContext));var K=window.URL;typeof K>"u"&&typeof webkitURL<"u"&&(K=webkitURL),typeof navigator<"u"&&typeof navigator.getUserMedia>"u"&&(typeof navigator.webkitGetUserMedia<"u"&&(navigator.getUserMedia=navigator.webkitGetUserMedia),typeof navigator.mozGetUserMedia<"u"&&(navigator.getUserMedia=navigator.mozGetUserMedia));var Y=window.MediaStream;typeof Y>"u"&&typeof webkitMediaStream<"u"&&(Y=webkitMediaStream),typeof Y<"u"&&typeof Y.prototype.stop>"u"&&(Y.prototype.stop=function(){this.getTracks().forEach(function(D){D.stop()})});var q={};typeof A<"u"?q.AudioContext=A:typeof webkitAudioContext<"u"&&(q.AudioContext=webkitAudioContext);function oe(D,X){"srcObject"in X?X.srcObject=D:"mozSrcObject"in X?X.mozSrcObject=D:X.srcObject=D}this.startDrawingFrames=function(){te()};function te(){if(!L){var D=z.length,X=!1,fe=[];if(z.forEach(function(ve){ve.stream||(ve.stream={}),ve.stream.fullcanvas?X=ve:fe.push(ve)}),X)B.width=X.stream.width,B.height=X.stream.height;else if(fe.length){B.width=D>1?fe[0].width*2:fe[0].width;var pe=1;(D===3||D===4)&&(pe=2),(D===5||D===6)&&(pe=3),(D===7||D===8)&&(pe=4),(D===9||D===10)&&(pe=5),B.height=fe[0].height*pe}else B.width=M.width||360,B.height=M.height||240;X&&X instanceof HTMLVideoElement&&ne(X),fe.forEach(function(ve,Ce){ne(ve,Ce)}),setTimeout(te,M.frameInterval)}}function ne(D,X){if(!L){var fe=0,pe=0,ve=D.width,Ce=D.height;X===1&&(fe=D.width),X===2&&(pe=D.height),X===3&&(fe=D.width,pe=D.height),X===4&&(pe=D.height*2),X===5&&(fe=D.width,pe=D.height*2),X===6&&(pe=D.height*3),X===7&&(fe=D.width,pe=D.height*3),typeof D.stream.left<"u"&&(fe=D.stream.left),typeof D.stream.top<"u"&&(pe=D.stream.top),typeof D.stream.width<"u"&&(ve=D.stream.width),typeof D.stream.height<"u"&&(Ce=D.stream.height),V.drawImage(D,fe,pe,ve,Ce),typeof D.stream.onRender=="function"&&D.stream.onRender(V,fe,pe,ve,Ce,X)}}function de(){L=!1;var D=ke(),X=H();return X&&X.getTracks().filter(function(fe){return fe.kind==="audio"}).forEach(function(fe){D.addTrack(fe)}),E.forEach(function(fe){fe.fullcanvas}),D}function ke(){ge();var D;"captureStream"in B?D=B.captureStream():"mozCaptureStream"in B?D=B.mozCaptureStream():M.disableLogs||console.error("Upgrade to latest Chrome or otherwise enable this flag: chrome://flags/#enable-experimental-web-platform-features");var X=new Y;return D.getTracks().filter(function(fe){return fe.kind==="video"}).forEach(function(fe){X.addTrack(fe)}),B.stream=X,X}function H(){q.AudioContextConstructor||(q.AudioContextConstructor=new q.AudioContext),M.audioContext=q.AudioContextConstructor,M.audioSources=[],M.useGainNode===!0&&(M.gainNode=M.audioContext.createGain(),M.gainNode.connect(M.audioContext.destination),M.gainNode.gain.value=0);var D=0;if(E.forEach(function(X){if(X.getTracks().filter(function(pe){return pe.kind==="audio"}).length){D++;var fe=M.audioContext.createMediaStreamSource(X);M.useGainNode===!0&&fe.connect(M.gainNode),M.audioSources.push(fe)}}),!!D)return M.audioDestination=M.audioContext.createMediaStreamDestination(),M.audioSources.forEach(function(X){X.connect(M.audioDestination)}),M.audioDestination.stream}function ae(D){var X=document.createElement("video");return oe(D,X),X.className=g,X.muted=!0,X.volume=0,X.width=D.width||M.width||360,X.height=D.height||M.height||240,X.play(),X}this.appendStreams=function(D){if(!D)throw"First parameter is required.";D instanceof Array||(D=[D]),D.forEach(function(X){var fe=new Y;if(X.getTracks().filter(function(Ce){return Ce.kind==="video"}).length){var pe=ae(X);pe.stream=X,z.push(pe),fe.addTrack(X.getTracks().filter(function(Ce){return Ce.kind==="video"})[0])}if(X.getTracks().filter(function(Ce){return Ce.kind==="audio"}).length){var ve=M.audioContext.createMediaStreamSource(X);M.audioDestination=M.audioContext.createMediaStreamDestination(),ve.connect(M.audioDestination),fe.addTrack(M.audioDestination.stream.getTracks().filter(function(Ce){return Ce.kind==="audio"})[0])}E.push(fe)})},this.releaseStreams=function(){z=[],L=!0,M.gainNode&&(M.gainNode.disconnect(),M.gainNode=null),M.audioSources.length&&(M.audioSources.forEach(function(D){D.disconnect()}),M.audioSources=[]),M.audioDestination&&(M.audioDestination.disconnect(),M.audioDestination=null),M.audioContext&&M.audioContext.close(),M.audioContext=null,V.clearRect(0,0,B.width,B.height),B.stream&&(B.stream.stop(),B.stream=null)},this.resetVideoStreams=function(D){D&&!(D instanceof Array)&&(D=[D]),ge(D)};function ge(D){z=[],D=D||E,D.forEach(function(X){if(X.getTracks().filter(function(pe){return pe.kind==="video"}).length){var fe=ae(X);fe.stream=X,z.push(fe)}})}this.name="MultiStreamsMixer",this.toString=function(){return this.name},this.getMixedStream=de}typeof t>"u"&&(e.exports=J);/** + */function ee(E,g){if(typeof GIFEncoder>"u"){var $=document.createElement("script");$.src="https://www.webrtc-experiment.com/gif-recorder.js",(document.body||document.documentElement).appendChild($)}g=g||{};var z=E instanceof CanvasRenderingContext2D||E instanceof HTMLCanvasElement;this.record=function(){if(typeof GIFEncoder>"u"){setTimeout(te.record,1e3);return}if(!A){setTimeout(te.record,1e3);return}z||(g.width||(g.width=G.offsetWidth||320),g.height||(g.height=G.offsetHeight||240),g.video||(g.video={width:g.width,height:g.height}),g.canvas||(g.canvas={width:g.width,height:g.height}),V.width=g.canvas.width||320,V.height=g.canvas.height||240,G.width=g.video.width||320,G.height=g.video.height||240),oe=new GIFEncoder,oe.setRepeat(0),oe.setDelay(g.frameRate||200),oe.setQuality(g.quality||10),oe.start(),typeof g.onGifRecordingStarted=="function"&&g.onGifRecordingStarted();function ne(de){if(te.clearedRecordedData!==!0){if(L)return setTimeout(function(){ne(de)},100);Y=a(ne),typeof K===void 0&&(K=de),!(de-K<90)&&(!z&&G.paused&&G.play(),z||M.drawImage(G,0,0,V.width,V.height),g.onGifPreview&&g.onGifPreview(V.toDataURL("image/png")),oe.addFrame(M),K=de)}}Y=a(ne),g.initCallback&&g.initCallback()},this.stop=function(ne){ne=ne||function(){},Y&&l(Y),this.blob=new Blob([new Uint8Array(oe.stream().bin)],{type:"image/gif"}),ne(this.blob),oe.stream().bin=[]};var L=!1;this.pause=function(){L=!0},this.resume=function(){L=!1},this.clearRecordedData=function(){te.clearedRecordedData=!0,B()};function B(){oe&&(oe.stream().bin=[])}this.name="GifRecorder",this.toString=function(){return this.name};var V=document.createElement("canvas"),M=V.getContext("2d");z&&(E instanceof CanvasRenderingContext2D?(M=E,V=M.canvas):E instanceof HTMLCanvasElement&&(M=E.getContext("2d"),V=E));var A=!0;if(!z){var G=document.createElement("video");G.muted=!0,G.autoplay=!0,G.playsInline=!0,A=!1,G.onloadedmetadata=function(){A=!0},R(E,G),G.play()}var Y=null,K,oe,te=this}typeof t<"u"&&(t.GifRecorder=ee);function J(E,g){var $="Fake/5.0 (FakeOS) AppleWebKit/123 (KHTML, like Gecko) Fake/12.3.4567.89 Fake/123.45";(function(D){typeof t<"u"||D&&(typeof window<"u"||typeof rt>"u"||(rt.navigator={userAgent:$,getUserMedia:function(){}},rt.console||(rt.console={}),(typeof rt.console.log>"u"||typeof rt.console.error>"u")&&(rt.console.error=rt.console.log=rt.console.log||function(){console.log(arguments)}),typeof document>"u"&&(D.document={documentElement:{appendChild:function(){return""}}},document.createElement=document.captureStream=document.mozCaptureStream=function(){var X={getContext:function(){return X},play:function(){},pause:function(){},drawImage:function(){},toDataURL:function(){return""},style:{}};return X},D.HTMLVideoElement=function(){}),typeof location>"u"&&(D.location={protocol:"file:",href:"",hash:""}),typeof screen>"u"&&(D.screen={width:0,height:0}),typeof G>"u"&&(D.URL={createObjectURL:function(){return""},revokeObjectURL:function(){return""}}),D.window=rt))})(typeof rt<"u"?rt:null),g=g||"multi-streams-mixer";var z=[],L=!1,B=document.createElement("canvas"),V=B.getContext("2d");B.style.opacity=0,B.style.position="absolute",B.style.zIndex=-1,B.style.top="-1000em",B.style.left="-1000em",B.className=g,(document.body||document.documentElement).appendChild(B),this.disableLogs=!1,this.frameInterval=10,this.width=360,this.height=240,this.useGainNode=!0;var M=this,A=window.AudioContext;typeof A>"u"&&(typeof webkitAudioContext<"u"&&(A=webkitAudioContext),typeof mozAudioContext<"u"&&(A=mozAudioContext));var G=window.URL;typeof G>"u"&&typeof webkitURL<"u"&&(G=webkitURL),typeof navigator<"u"&&typeof navigator.getUserMedia>"u"&&(typeof navigator.webkitGetUserMedia<"u"&&(navigator.getUserMedia=navigator.webkitGetUserMedia),typeof navigator.mozGetUserMedia<"u"&&(navigator.getUserMedia=navigator.mozGetUserMedia));var Y=window.MediaStream;typeof Y>"u"&&typeof webkitMediaStream<"u"&&(Y=webkitMediaStream),typeof Y<"u"&&typeof Y.prototype.stop>"u"&&(Y.prototype.stop=function(){this.getTracks().forEach(function(D){D.stop()})});var K={};typeof A<"u"?K.AudioContext=A:typeof webkitAudioContext<"u"&&(K.AudioContext=webkitAudioContext);function oe(D,X){"srcObject"in X?X.srcObject=D:"mozSrcObject"in X?X.mozSrcObject=D:X.srcObject=D}this.startDrawingFrames=function(){te()};function te(){if(!L){var D=z.length,X=!1,fe=[];if(z.forEach(function(ve){ve.stream||(ve.stream={}),ve.stream.fullcanvas?X=ve:fe.push(ve)}),X)B.width=X.stream.width,B.height=X.stream.height;else if(fe.length){B.width=D>1?fe[0].width*2:fe[0].width;var pe=1;(D===3||D===4)&&(pe=2),(D===5||D===6)&&(pe=3),(D===7||D===8)&&(pe=4),(D===9||D===10)&&(pe=5),B.height=fe[0].height*pe}else B.width=M.width||360,B.height=M.height||240;X&&X instanceof HTMLVideoElement&&ne(X),fe.forEach(function(ve,Ce){ne(ve,Ce)}),setTimeout(te,M.frameInterval)}}function ne(D,X){if(!L){var fe=0,pe=0,ve=D.width,Ce=D.height;X===1&&(fe=D.width),X===2&&(pe=D.height),X===3&&(fe=D.width,pe=D.height),X===4&&(pe=D.height*2),X===5&&(fe=D.width,pe=D.height*2),X===6&&(pe=D.height*3),X===7&&(fe=D.width,pe=D.height*3),typeof D.stream.left<"u"&&(fe=D.stream.left),typeof D.stream.top<"u"&&(pe=D.stream.top),typeof D.stream.width<"u"&&(ve=D.stream.width),typeof D.stream.height<"u"&&(Ce=D.stream.height),V.drawImage(D,fe,pe,ve,Ce),typeof D.stream.onRender=="function"&&D.stream.onRender(V,fe,pe,ve,Ce,X)}}function de(){L=!1;var D=Re(),X=W();return X&&X.getTracks().filter(function(fe){return fe.kind==="audio"}).forEach(function(fe){D.addTrack(fe)}),E.forEach(function(fe){fe.fullcanvas}),D}function Re(){ge();var D;"captureStream"in B?D=B.captureStream():"mozCaptureStream"in B?D=B.mozCaptureStream():M.disableLogs||console.error("Upgrade to latest Chrome or otherwise enable this flag: chrome://flags/#enable-experimental-web-platform-features");var X=new Y;return D.getTracks().filter(function(fe){return fe.kind==="video"}).forEach(function(fe){X.addTrack(fe)}),B.stream=X,X}function W(){K.AudioContextConstructor||(K.AudioContextConstructor=new K.AudioContext),M.audioContext=K.AudioContextConstructor,M.audioSources=[],M.useGainNode===!0&&(M.gainNode=M.audioContext.createGain(),M.gainNode.connect(M.audioContext.destination),M.gainNode.gain.value=0);var D=0;if(E.forEach(function(X){if(X.getTracks().filter(function(pe){return pe.kind==="audio"}).length){D++;var fe=M.audioContext.createMediaStreamSource(X);M.useGainNode===!0&&fe.connect(M.gainNode),M.audioSources.push(fe)}}),!!D)return M.audioDestination=M.audioContext.createMediaStreamDestination(),M.audioSources.forEach(function(X){X.connect(M.audioDestination)}),M.audioDestination.stream}function ae(D){var X=document.createElement("video");return oe(D,X),X.className=g,X.muted=!0,X.volume=0,X.width=D.width||M.width||360,X.height=D.height||M.height||240,X.play(),X}this.appendStreams=function(D){if(!D)throw"First parameter is required.";D instanceof Array||(D=[D]),D.forEach(function(X){var fe=new Y;if(X.getTracks().filter(function(Ce){return Ce.kind==="video"}).length){var pe=ae(X);pe.stream=X,z.push(pe),fe.addTrack(X.getTracks().filter(function(Ce){return Ce.kind==="video"})[0])}if(X.getTracks().filter(function(Ce){return Ce.kind==="audio"}).length){var ve=M.audioContext.createMediaStreamSource(X);M.audioDestination=M.audioContext.createMediaStreamDestination(),ve.connect(M.audioDestination),fe.addTrack(M.audioDestination.stream.getTracks().filter(function(Ce){return Ce.kind==="audio"})[0])}E.push(fe)})},this.releaseStreams=function(){z=[],L=!0,M.gainNode&&(M.gainNode.disconnect(),M.gainNode=null),M.audioSources.length&&(M.audioSources.forEach(function(D){D.disconnect()}),M.audioSources=[]),M.audioDestination&&(M.audioDestination.disconnect(),M.audioDestination=null),M.audioContext&&M.audioContext.close(),M.audioContext=null,V.clearRect(0,0,B.width,B.height),B.stream&&(B.stream.stop(),B.stream=null)},this.resetVideoStreams=function(D){D&&!(D instanceof Array)&&(D=[D]),ge(D)};function ge(D){z=[],D=D||E,D.forEach(function(X){if(X.getTracks().filter(function(pe){return pe.kind==="video"}).length){var fe=ae(X);fe.stream=X,z.push(fe)}})}this.name="MultiStreamsMixer",this.toString=function(){return this.name},this.getMixedStream=de}typeof t>"u"&&(e.exports=J);/** * MultiStreamRecorder can record multiple videos in single container. * @summary Multi-videos recorder. * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT} @@ -422,7 +422,7 @@ Error generating stack: `+i.message+` * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code} * @param {MediaStreams} mediaStreams - Array of MediaStreams. * @param {object} config - {disableLogs:true, frameInterval: 1, mimeType: "video/webm"} - */function re(E,g){E=E||[];var $=this,z,L;g=g||{elementClass:"multi-streams-mixer",mimeType:"video/webm",video:{width:360,height:240}},g.frameInterval||(g.frameInterval=10),g.video||(g.video={}),g.video.width||(g.video.width=360),g.video.height||(g.video.height=240),this.record=function(){z=new J(E,g.elementClass||"multi-streams-mixer"),B().length&&(z.frameInterval=g.frameInterval||10,z.width=g.video.width||360,z.height=g.video.height||240,z.startDrawingFrames()),g.previewStream&&typeof g.previewStream=="function"&&g.previewStream(z.getMixedStream()),L=new N(z.getMixedStream(),g),L.record()};function B(){var V=[];return E.forEach(function(M){R(M,"video").forEach(function(A){V.push(A)})}),V}this.stop=function(V){L&&L.stop(function(M){$.blob=M,V(M),$.clearRecordedData()})},this.pause=function(){L&&L.pause()},this.resume=function(){L&&L.resume()},this.clearRecordedData=function(){L&&(L.clearRecordedData(),L=null),z&&(z.releaseStreams(),z=null)},this.addStreams=function(V){if(!V)throw"First parameter is required.";V instanceof Array||(V=[V]),E.concat(V),!(!L||!z)&&(z.appendStreams(V),g.previewStream&&typeof g.previewStream=="function"&&g.previewStream(z.getMixedStream()))},this.resetVideoStreams=function(V){z&&(V&&!(V instanceof Array)&&(V=[V]),z.resetVideoStreams(V))},this.getMixer=function(){return z},this.name="MultiStreamRecorder",this.toString=function(){return this.name}}typeof t<"u"&&(t.MultiStreamRecorder=re);/** + */function re(E,g){E=E||[];var $=this,z,L;g=g||{elementClass:"multi-streams-mixer",mimeType:"video/webm",video:{width:360,height:240}},g.frameInterval||(g.frameInterval=10),g.video||(g.video={}),g.video.width||(g.video.width=360),g.video.height||(g.video.height=240),this.record=function(){z=new J(E,g.elementClass||"multi-streams-mixer"),B().length&&(z.frameInterval=g.frameInterval||10,z.width=g.video.width||360,z.height=g.video.height||240,z.startDrawingFrames()),g.previewStream&&typeof g.previewStream=="function"&&g.previewStream(z.getMixedStream()),L=new N(z.getMixedStream(),g),L.record()};function B(){var V=[];return E.forEach(function(M){k(M,"video").forEach(function(A){V.push(A)})}),V}this.stop=function(V){L&&L.stop(function(M){$.blob=M,V(M),$.clearRecordedData()})},this.pause=function(){L&&L.pause()},this.resume=function(){L&&L.resume()},this.clearRecordedData=function(){L&&(L.clearRecordedData(),L=null),z&&(z.releaseStreams(),z=null)},this.addStreams=function(V){if(!V)throw"First parameter is required.";V instanceof Array||(V=[V]),E.concat(V),!(!L||!z)&&(z.appendStreams(V),g.previewStream&&typeof g.previewStream=="function"&&g.previewStream(z.getMixedStream()))},this.resetVideoStreams=function(V){z&&(V&&!(V instanceof Array)&&(V=[V]),z.resetVideoStreams(V))},this.getMixer=function(){return z},this.name="MultiStreamRecorder",this.toString=function(){return this.name}}typeof t<"u"&&(t.MultiStreamRecorder=re);/** * RecordRTCPromisesHandler adds promises support in {@link RecordRTC}. Try a {@link https://github.com/muaz-khan/RecordRTC/blob/master/simple-demos/RecordRTCPromisesHandler.html|demo here} * @summary Promises for {@link RecordRTC} * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT} @@ -442,7 +442,7 @@ Error generating stack: `+i.message+` * @param {object} config - {type:"video", recorderType: MediaStreamRecorder, disableLogs: true, numberOfAudioChannels: 1, bufferSize: 0, sampleRate: 0, video: HTMLVideoElement, etc.} * @throws Will throw an error if "new" keyword is not used to initiate "RecordRTCPromisesHandler". Also throws error if first argument "MediaStream" is missing. * @requires {@link RecordRTC} - */function I(E,g){if(!this)throw'Use "new RecordRTCPromisesHandler()"';if(typeof E>"u")throw'First argument "MediaStream" is required.';var $=this;$.recordRTC=new t(E,g),this.startRecording=function(){return new Promise(function(z,L){try{$.recordRTC.startRecording(),z()}catch(B){L(B)}})},this.stopRecording=function(){return new Promise(function(z,L){try{$.recordRTC.stopRecording(function(B){if($.blob=$.recordRTC.getBlob(),!$.blob||!$.blob.size){L("Empty blob.",$.blob);return}z(B)})}catch(B){L(B)}})},this.pauseRecording=function(){return new Promise(function(z,L){try{$.recordRTC.pauseRecording(),z()}catch(B){L(B)}})},this.resumeRecording=function(){return new Promise(function(z,L){try{$.recordRTC.resumeRecording(),z()}catch(B){L(B)}})},this.getDataURL=function(z){return new Promise(function(L,B){try{$.recordRTC.getDataURL(function(V){L(V)})}catch(V){B(V)}})},this.getBlob=function(){return new Promise(function(z,L){try{z($.recordRTC.getBlob())}catch(B){L(B)}})},this.getInternalRecorder=function(){return new Promise(function(z,L){try{z($.recordRTC.getInternalRecorder())}catch(B){L(B)}})},this.reset=function(){return new Promise(function(z,L){try{z($.recordRTC.reset())}catch(B){L(B)}})},this.destroy=function(){return new Promise(function(z,L){try{z($.recordRTC.destroy())}catch(B){L(B)}})},this.getState=function(){return new Promise(function(z,L){try{z($.recordRTC.getState())}catch(B){L(B)}})},this.blob=null,this.version="5.6.2"}typeof t<"u"&&(t.RecordRTCPromisesHandler=I);/** + */function O(E,g){if(!this)throw'Use "new RecordRTCPromisesHandler()"';if(typeof E>"u")throw'First argument "MediaStream" is required.';var $=this;$.recordRTC=new t(E,g),this.startRecording=function(){return new Promise(function(z,L){try{$.recordRTC.startRecording(),z()}catch(B){L(B)}})},this.stopRecording=function(){return new Promise(function(z,L){try{$.recordRTC.stopRecording(function(B){if($.blob=$.recordRTC.getBlob(),!$.blob||!$.blob.size){L("Empty blob.",$.blob);return}z(B)})}catch(B){L(B)}})},this.pauseRecording=function(){return new Promise(function(z,L){try{$.recordRTC.pauseRecording(),z()}catch(B){L(B)}})},this.resumeRecording=function(){return new Promise(function(z,L){try{$.recordRTC.resumeRecording(),z()}catch(B){L(B)}})},this.getDataURL=function(z){return new Promise(function(L,B){try{$.recordRTC.getDataURL(function(V){L(V)})}catch(V){B(V)}})},this.getBlob=function(){return new Promise(function(z,L){try{z($.recordRTC.getBlob())}catch(B){L(B)}})},this.getInternalRecorder=function(){return new Promise(function(z,L){try{z($.recordRTC.getInternalRecorder())}catch(B){L(B)}})},this.reset=function(){return new Promise(function(z,L){try{z($.recordRTC.reset())}catch(B){L(B)}})},this.destroy=function(){return new Promise(function(z,L){try{z($.recordRTC.destroy())}catch(B){L(B)}})},this.getState=function(){return new Promise(function(z,L){try{z($.recordRTC.getState())}catch(B){L(B)}})},this.blob=null,this.version="5.6.2"}typeof t<"u"&&(t.RecordRTCPromisesHandler=O);/** * WebAssemblyRecorder lets you create webm videos in JavaScript via WebAssembly. The library consumes raw RGBA32 buffers (4 bytes per pixel) and turns them into a webm video with the given framerate and quality. This makes it compatible out-of-the-box with ImageData from a CANVAS. With realtime mode you can also use webm-wasm for streaming webm videos. * @summary Video recording feature in Chrome, Firefox and maybe Edge. * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT} @@ -458,7 +458,7 @@ Error generating stack: `+i.message+` * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code} * @param {MediaStream} mediaStream - MediaStream object fetched using getUserMedia API or generated using captureStreamUntilEnded or WebAudio API. * @param {object} config - {webAssemblyPath:'webm-wasm.wasm',workerPath: 'webm-worker.js', frameRate: 30, width: 1920, height: 1080, bitrate: 1024, realtime: true} - */function _(E,g){(typeof ReadableStream>"u"||typeof WritableStream>"u")&&console.error("Following polyfill is strongly recommended: https://unpkg.com/@mattiasbuelens/web-streams-polyfill/dist/polyfill.min.js"),g=g||{},g.width=g.width||640,g.height=g.height||480,g.frameRate=g.frameRate||30,g.bitrate=g.bitrate||1200,g.realtime=g.realtime||!0;var $;function z(){return new ReadableStream({start:function(K){var Y=document.createElement("canvas"),q=document.createElement("video"),oe=!0;q.srcObject=E,q.muted=!0,q.height=g.height,q.width=g.width,q.volume=0,q.onplaying=function(){Y.width=g.width,Y.height=g.height;var te=Y.getContext("2d"),ne=1e3/g.frameRate,de=setInterval(function(){if($&&(clearInterval(de),K.close()),oe&&(oe=!1,g.onVideoProcessStarted&&g.onVideoProcessStarted()),te.drawImage(q,0,0),K._controlledReadableStream.state!=="closed")try{K.enqueue(te.getImageData(0,0,g.width,g.height))}catch{}},ne)},q.play()}})}var L;function B(K,Y){if(!g.workerPath&&!Y){$=!1,fetch("https://unpkg.com/webm-wasm@latest/dist/webm-worker.js").then(function(oe){oe.arrayBuffer().then(function(te){B(K,te)})});return}if(!g.workerPath&&Y instanceof ArrayBuffer){var q=new Blob([Y],{type:"text/javascript"});g.workerPath=u.createObjectURL(q)}g.workerPath||console.error("workerPath parameter is missing."),L=new Worker(g.workerPath),L.postMessage(g.webAssemblyPath||"https://unpkg.com/webm-wasm@latest/dist/webm-wasm.wasm"),L.addEventListener("message",function(oe){oe.data==="READY"?(L.postMessage({width:g.width,height:g.height,bitrate:g.bitrate||1200,timebaseDen:g.frameRate||30,realtime:g.realtime}),z().pipeTo(new WritableStream({write:function(te){if($){console.error("Got image, but recorder is finished!");return}L.postMessage(te.data.buffer,[te.data.buffer])}}))):oe.data&&(V||A.push(oe.data))})}this.record=function(){A=[],V=!1,this.blob=null,B(E),typeof g.initCallback=="function"&&g.initCallback()};var V;this.pause=function(){V=!0},this.resume=function(){V=!1};function M(K){if(!L){K&&K();return}L.addEventListener("message",function(Y){Y.data===null&&(L.terminate(),L=null,K&&K())}),L.postMessage(null)}var A=[];this.stop=function(K){$=!0;var Y=this;M(function(){Y.blob=new Blob(A,{type:"video/webm"}),K(Y.blob)})},this.name="WebAssemblyRecorder",this.toString=function(){return this.name},this.clearRecordedData=function(){A=[],V=!1,this.blob=null},this.blob=null}typeof t<"u"&&(t.WebAssemblyRecorder=_)})(p2);var NN=p2.exports;const ky=Nc(NN),DN=()=>d.jsxs(at,{sx:{display:"flex",alignItems:"center",color:"text.secondary"},children:[d.jsx(Er,{src:Pi,sx:{width:24,height:24,marginRight:1},alt:"Aria"}),d.jsxs("div",{style:{display:"flex"},children:[d.jsx("div",{style:{animation:"blink 1.4s infinite",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),d.jsx("div",{style:{animation:"blink 1.4s infinite 0.2s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),d.jsx("div",{style:{animation:"blink 1.4s infinite 0.4s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor"}})]})]}),zN=()=>{const{user:e,voiceEnabled:t,setVoiceEnabled:n}=p.useContext(vr),r=e==null?void 0:e.userId,[o,i]=p.useState(null),[a,s]=p.useState(0),[l,c]=p.useState(""),[u,f]=p.useState([]),[h,w]=p.useState(!1),[y,x]=p.useState(null),C=p.useRef([]),[v,m]=p.useState(!1),[b,R]=p.useState(""),[k,T]=p.useState(!1),[P,j]=p.useState(!1),[N,O]=p.useState(""),[F,W]=p.useState("info"),[U,G]=p.useState(null),ee=M=>{M.preventDefault(),n(!t)},J=M=>{if(!t||M===U){G(null),window.speechSynthesis.cancel();return}const A=window.speechSynthesis,K=new SpeechSynthesisUtterance(M),Y=()=>{const q=A.getVoices();console.log(q.map(te=>`${te.name} - ${te.lang} - ${te.gender}`));const oe=q.find(te=>te.name.includes("Microsoft Zira - English (United States)"));oe?K.voice=oe:console.log("No female voice found"),K.onend=()=>{G(null)},G(M),A.speak(K)};A.getVoices().length===0?A.onvoiceschanged=Y:Y()},re=p.useCallback(async()=>{if(r){m(!0),T(!0);try{const M=await fetch(`/api/ai/mental_health/welcome/${r}`,{method:"POST",headers:{"Content-Type":"application/json"}}),A=await M.json();console.log(A),M.ok?(R(A.message),t&&A.message&&J(A.message),i(A.chat_id),console.log(A.chat_id)):(console.error("Failed to fetch welcome message:",A),R("Error fetching welcome message."))}catch(M){console.error("Network or server error:",M)}finally{m(!1),T(!1)}}},[r]);p.useEffect(()=>{re()},[]);const I=(M,A)=>{A!=="clickaway"&&j(!1)},_=p.useCallback(async()=>{if(o!==null){m(!0);try{const M=await fetch(`/api/ai/mental_health/finalize/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"}}),A=await M.json();M.ok?(O("Chat finalized successfully"),W("success"),i(null),s(0),f([]),re()):(O("Failed to finalize chat"),W("error"))}catch{O("Error finalizing chat"),W("error")}finally{m(!1),j(!0)}}},[r,o,re]),E=p.useCallback(async()=>{if(!(!l.trim()||o===void 0)){console.log(o),m(!0);try{const M=JSON.stringify({prompt:l,turn_id:a}),A=await fetch(`/api/ai/mental_health/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"},body:M}),K=await A.json();console.log(K),A.ok?(f(Y=>[...Y,{message:l,sender:"user"},{message:K,sender:"agent"}]),t&&K&&J(K),s(Y=>Y+1),c("")):(console.error("Failed to send message:",K.error||"Unknown error occurred"),O(K.error||"An error occurred while sending the message."),W("error"),j(!0))}catch(M){console.error("Failed to send message:",M),O("Network or server error occurred."),W("error"),j(!0)}finally{m(!1)}}},[l,r,o,a]),g=()=>MediaRecorder.isTypeSupported?MediaRecorder.isTypeSupported("audio/webm; codecs=opus"):!1,$=()=>{navigator.mediaDevices.getUserMedia({audio:{sampleRate:44100,channelCount:1,volume:1,echoCancellation:!0}}).then(M=>{C.current=[];const A=g();let K;const Y={type:"audio",mimeType:A?"audio/webm; codecs=opus":"audio/wav"};A?K=new MediaRecorder(M,Y):(K=new ky(M,{type:"audio",mimeType:"audio/wav",recorderType:ky.StereoAudioRecorder,numberOfAudioChannels:1}),K.startRecording()),K.ondataavailable=q=>{console.log("Data available:",q.data.size),C.current.push(q.data)},K instanceof MediaRecorder&&K.start(),x(K),w(!0)}).catch(M=>{console.error("Error accessing microphone:",M),j(!0),O("Unable to access microphone: "+M.message),W("error")})},z=()=>{y&&(y.stream&&y.stream.active&&y.stream.getTracks().forEach(M=>M.stop()),y.onstop=()=>{L(C.current,{type:y.mimeType}),w(!1),x(null)},y instanceof MediaRecorder?y.stop():typeof y.stopRecording=="function"&&y.stopRecording(function(){y.getBlob()}))},L=()=>{const M=y.mimeType;console.log("Audio chunks size:",C.current.reduce((Y,q)=>Y+q.size,0));const A=new Blob(C.current,{type:M});if(A.size===0){console.error("Audio Blob is empty"),O("Recording is empty. Please try again."),W("error"),j(!0);return}console.log(`Sending audio blob of size: ${A.size} bytes`);const K=new FormData;K.append("audio",A),m(!0),Oe.post("/api/ai/mental_health/voice-to-text",K,{headers:{"Content-Type":"multipart/form-data"}}).then(Y=>{const{message:q}=Y.data;c(q),E()}).catch(Y=>{console.error("Error uploading audio:",Y),j(!0),O("Error processing voice input: "+Y.message),W("error")}).finally(()=>{m(!1)})},B=p.useCallback(M=>{const A=M.target.value;A.split(/\s+/).length>200?(c(Y=>Y.split(/\s+/).slice(0,200).join(" ")),O("Word limit reached. Only 200 words allowed."),W("warning"),j(!0)):c(A)},[]),V=M=>M===U?d.jsx(Lc,{}):d.jsx(_c,{});return d.jsxs(d.Fragment,{children:[d.jsx("style",{children:` + */function _(E,g){(typeof ReadableStream>"u"||typeof WritableStream>"u")&&console.error("Following polyfill is strongly recommended: https://unpkg.com/@mattiasbuelens/web-streams-polyfill/dist/polyfill.min.js"),g=g||{},g.width=g.width||640,g.height=g.height||480,g.frameRate=g.frameRate||30,g.bitrate=g.bitrate||1200,g.realtime=g.realtime||!0;var $;function z(){return new ReadableStream({start:function(G){var Y=document.createElement("canvas"),K=document.createElement("video"),oe=!0;K.srcObject=E,K.muted=!0,K.height=g.height,K.width=g.width,K.volume=0,K.onplaying=function(){Y.width=g.width,Y.height=g.height;var te=Y.getContext("2d"),ne=1e3/g.frameRate,de=setInterval(function(){if($&&(clearInterval(de),G.close()),oe&&(oe=!1,g.onVideoProcessStarted&&g.onVideoProcessStarted()),te.drawImage(K,0,0),G._controlledReadableStream.state!=="closed")try{G.enqueue(te.getImageData(0,0,g.width,g.height))}catch{}},ne)},K.play()}})}var L;function B(G,Y){if(!g.workerPath&&!Y){$=!1,fetch("https://unpkg.com/webm-wasm@latest/dist/webm-worker.js").then(function(oe){oe.arrayBuffer().then(function(te){B(G,te)})});return}if(!g.workerPath&&Y instanceof ArrayBuffer){var K=new Blob([Y],{type:"text/javascript"});g.workerPath=u.createObjectURL(K)}g.workerPath||console.error("workerPath parameter is missing."),L=new Worker(g.workerPath),L.postMessage(g.webAssemblyPath||"https://unpkg.com/webm-wasm@latest/dist/webm-wasm.wasm"),L.addEventListener("message",function(oe){oe.data==="READY"?(L.postMessage({width:g.width,height:g.height,bitrate:g.bitrate||1200,timebaseDen:g.frameRate||30,realtime:g.realtime}),z().pipeTo(new WritableStream({write:function(te){if($){console.error("Got image, but recorder is finished!");return}L.postMessage(te.data.buffer,[te.data.buffer])}}))):oe.data&&(V||A.push(oe.data))})}this.record=function(){A=[],V=!1,this.blob=null,B(E),typeof g.initCallback=="function"&&g.initCallback()};var V;this.pause=function(){V=!0},this.resume=function(){V=!1};function M(G){if(!L){G&&G();return}L.addEventListener("message",function(Y){Y.data===null&&(L.terminate(),L=null,G&&G())}),L.postMessage(null)}var A=[];this.stop=function(G){$=!0;var Y=this;M(function(){Y.blob=new Blob(A,{type:"video/webm"}),G(Y.blob)})},this.name="WebAssemblyRecorder",this.toString=function(){return this.name},this.clearRecordedData=function(){A=[],V=!1,this.blob=null},this.blob=null}typeof t<"u"&&(t.WebAssemblyRecorder=_)})(LN);const AN=()=>d.jsxs(at,{sx:{display:"flex",alignItems:"center",color:"text.secondary"},children:[d.jsx(Er,{src:Pi,sx:{width:24,height:24,marginRight:1},alt:"Aria"}),d.jsxs("div",{style:{display:"flex"},children:[d.jsx("div",{style:{animation:"blink 1.4s infinite",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),d.jsx("div",{style:{animation:"blink 1.4s infinite 0.2s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),d.jsx("div",{style:{animation:"blink 1.4s infinite 0.4s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor"}})]})]}),NN=()=>{const{user:e,voiceEnabled:t,setVoiceEnabled:n}=p.useContext(vr),r=e==null?void 0:e.userId,[o,i]=p.useState(null),[a,s]=p.useState(0),[l,c]=p.useState(""),[u,f]=p.useState([]),[h,w]=p.useState(!1),[y,x]=p.useState(null),C=p.useRef([]),[v,m]=p.useState(!1),[b,k]=p.useState(""),[R,T]=p.useState(!1),[P,j]=p.useState(!1),[N,I]=p.useState(""),[F,H]=p.useState("info"),[U,q]=p.useState(null),ee=M=>{M.preventDefault(),n(!t)},J=M=>{if(!t||M===U){q(null),window.speechSynthesis.cancel();return}const A=window.speechSynthesis,G=new SpeechSynthesisUtterance(M),Y=()=>{const K=A.getVoices();console.log(K.map(te=>`${te.name} - ${te.lang} - ${te.gender}`));const oe=K.find(te=>te.name.includes("Microsoft Zira - English (United States)"));oe?G.voice=oe:console.log("No female voice found"),G.onend=()=>{q(null)},q(M),A.speak(G)};A.getVoices().length===0?A.onvoiceschanged=Y:Y()},re=p.useCallback(async()=>{if(r){m(!0),T(!0);try{const M=await fetch(`/api/ai/mental_health/welcome/${r}`,{method:"POST",headers:{"Content-Type":"application/json"}}),A=await M.json();console.log(A),M.ok?(k(A.message),t&&A.message&&J(A.message),i(A.chat_id),console.log(A.chat_id)):(console.error("Failed to fetch welcome message:",A),k("Error fetching welcome message."))}catch(M){console.error("Network or server error:",M)}finally{m(!1),T(!1)}}},[r]);p.useEffect(()=>{re()},[]);const O=(M,A)=>{A!=="clickaway"&&j(!1)},_=p.useCallback(async()=>{if(o!==null){m(!0);try{const M=await fetch(`/api/ai/mental_health/finalize/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"}}),A=await M.json();M.ok?(I("Chat finalized successfully"),H("success"),i(null),s(0),f([]),re()):(I("Failed to finalize chat"),H("error"))}catch{I("Error finalizing chat"),H("error")}finally{m(!1),j(!0)}}},[r,o,re]),E=p.useCallback(async()=>{if(!(!l.trim()||o===void 0)){console.log(o),m(!0);try{const M=JSON.stringify({prompt:l,turn_id:a}),A=await fetch(`/api/ai/mental_health/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"},body:M}),G=await A.json();console.log(G),A.ok?(f(Y=>[...Y,{message:l,sender:"user"},{message:G,sender:"agent"}]),t&&G&&J(G),s(Y=>Y+1),c("")):(console.error("Failed to send message:",G.error||"Unknown error occurred"),I(G.error||"An error occurred while sending the message."),H("error"),j(!0))}catch(M){console.error("Failed to send message:",M),I("Network or server error occurred."),H("error"),j(!0)}finally{m(!1)}}},[l,r,o,a]),g=()=>MediaRecorder.isTypeSupported("audio/webm; codecs=opus")?"audio/webm; codecs=opus":MediaRecorder.isTypeSupported("audio/mp4")?"audio/mp4":"audio/wav",$=()=>{navigator.mediaDevices.getUserMedia({audio:{sampleRate:44100,channelCount:1,volume:1,echoCancellation:!0}}).then(M=>{C.current=[];const A=g();let G=new MediaRecorder(M,{mimeType:A});G.ondataavailable=Y=>{C.current.push(Y.data)},G.start(),x(G),w(!0)}).catch(M=>{console.error("Error accessing microphone:",M)})},z=()=>{y&&(y.stream.getTracks().forEach(M=>M.stop()),y.onstop=()=>{const M=y.mimeType,A=new Blob(C.current,{type:M});L(A),w(!1),x(null)},y.stop())},L=M=>{if(M.size===0){console.error("Audio Blob is empty");return}const A=new FormData;A.append("audio",M),m(!0),Oe.post("/api/ai/mental_health/voice-to-text",A,{headers:{"Content-Type":"multipart/form-data"}}).then(G=>{const{message:Y}=G.data;c(Y),E()}).catch(G=>{console.error("Error uploading audio:",G)}).finally(()=>{m(!1)})},B=p.useCallback(M=>{const A=M.target.value;A.split(/\s+/).length>200?(c(Y=>Y.split(/\s+/).slice(0,200).join(" ")),I("Word limit reached. Only 200 words allowed."),H("warning"),j(!0)):c(A)},[]),V=M=>M===U?d.jsx(Lc,{}):d.jsx(_c,{});return d.jsxs(d.Fragment,{children:[d.jsx("style",{children:` @keyframes blink { 0%, 100% { opacity: 0; } 50% { opacity: 1; } @@ -472,7 +472,7 @@ Error generating stack: `+i.message+` font-size: 0.8rem; /* Smaller font size */ } } - `}),d.jsxs(at,{sx:{maxWidth:"100%",mx:"auto",my:2,display:"flex",flexDirection:"column",height:"91vh",borderRadius:2,boxShadow:1},children:[d.jsxs(ad,{sx:{display:"flex",flexDirection:"column",height:"100%",borderRadius:2,boxShadow:3},children:[d.jsxs(Cm,{sx:{flexGrow:1,overflow:"auto",padding:3,position:"relative"},children:[d.jsxs(at,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",position:"relative",marginBottom:"5px"},children:[d.jsx(Zn,{title:"Toggle voice responses",children:d.jsx(ut,{color:"inherit",onClick:ee,sx:{padding:0},children:d.jsx(IA,{checked:t,onChange:M=>n(M.target.checked),icon:d.jsx(Lc,{}),checkedIcon:d.jsx(_c,{}),inputProps:{"aria-label":"Voice response toggle"},color:"default",sx:{height:42,"& .MuiSwitch-switchBase":{padding:"9px"},"& .MuiSwitch-switchBase.Mui-checked":{color:"white",transform:"translateX(16px)","& + .MuiSwitch-track":{backgroundColor:"primary.main"}}}})})}),d.jsx(Zn,{title:"Start a new chat",placement:"top",arrow:!0,children:d.jsx(ut,{"aria-label":"new chat",color:"primary",onClick:_,disabled:v,sx:{"&:hover":{backgroundColor:"primary.main",color:"common.white"}},children:d.jsx(Um,{})})})]}),d.jsx(xs,{sx:{marginBottom:"10px"}}),b.length===0&&d.jsxs(at,{sx:{display:"flex",marginBottom:2,marginTop:3},children:[d.jsx(Er,{src:Pi,sx:{width:44,height:44,marginRight:2},alt:"Aria"}),d.jsx(Ie,{variant:"h4",component:"h1",gutterBottom:!0,children:"Welcome to Mental Health Companion"})]}),k?d.jsx(DN,{}):u.length===0&&d.jsxs(at,{sx:{display:"flex"},children:[d.jsx(Er,{src:Pi,sx:{width:36,height:36,marginRight:1},alt:"Aria"}),d.jsxs(Ie,{variant:"body1",gutterBottom:!0,sx:{bgcolor:"grey.200",borderRadius:"16px",px:2,py:1,display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap"},children:[b,t&&b&&d.jsx(ut,{onClick:()=>J(b),size:"small",sx:{ml:1},children:V(b)})]})]}),d.jsx(Fs,{sx:{maxHeight:"100%",overflow:"auto"},children:u.map((M,A)=>d.jsx(Oc,{sx:{display:"flex",flexDirection:"column",alignItems:M.sender==="user"?"flex-end":"flex-start",borderRadius:2,mb:.5,p:1,border:"none","&:before":{display:"none"},"&:after":{display:"none"}},children:d.jsxs(at,{sx:{display:"flex",alignItems:"center",color:M.sender==="user"?"common.white":"text.primary",borderRadius:"16px"},children:[M.sender==="agent"&&d.jsx(Er,{src:Pi,sx:{width:36,height:36,mr:1},alt:"Aria"}),d.jsx(ws,{primary:d.jsxs(at,{sx:{display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap"},children:[M.message,t&&M.sender==="agent"&&d.jsx(ut,{onClick:()=>J(M.message),size:"small",sx:{ml:1},children:V(M.message)})]}),primaryTypographyProps:{sx:{color:M.sender==="user"?"common.white":"text.primary",bgcolor:M.sender==="user"?"primary.main":"grey.200",borderRadius:"16px",px:2,py:1,display:"inline-block"}}}),M.sender==="user"&&d.jsx(Er,{sx:{width:36,height:36,ml:1},children:d.jsx(ud,{})})]})},A))})]}),d.jsx(xs,{}),d.jsxs(at,{sx:{p:2,pb:1,display:"flex",alignItems:"center",bgcolor:"background.paper"},children:[d.jsx(it,{fullWidth:!0,variant:"outlined",placeholder:"Type your message here...",value:l,onChange:B,disabled:v,sx:{mr:1,flexGrow:1},InputProps:{endAdornment:d.jsx(jc,{position:"end",children:d.jsxs(ut,{onClick:h?z:$,color:"primary.main","aria-label":h?"Stop recording":"Start recording",size:"large",edge:"end",disabled:v,children:[h?d.jsx(Nm,{size:"small"}):d.jsx(Lm,{size:"small"}),h&&d.jsx(_n,{size:30,sx:{color:"primary.main",position:"absolute",zIndex:1}})]})})}}),v?d.jsx(_n,{size:24}):d.jsx(kt,{variant:"contained",color:"primary",onClick:E,disabled:v||!l.trim(),endIcon:d.jsx(ra,{}),children:"Send"})]})]}),d.jsx(yo,{open:P,autoHideDuration:6e3,onClose:I,children:d.jsx(xr,{elevation:6,variant:"filled",onClose:I,severity:F,children:N})})]})]})};var Wm={},BN=Te;Object.defineProperty(Wm,"__esModule",{value:!0});var h2=Wm.default=void 0,FN=BN(je()),UN=d;h2=Wm.default=(0,FN.default)((0,UN.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2M9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9zm9 14H6V10h12zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2"}),"LockOutlined");var Hm={},WN=Te;Object.defineProperty(Hm,"__esModule",{value:!0});var m2=Hm.default=void 0,HN=WN(je()),VN=d;m2=Hm.default=(0,HN.default)((0,VN.jsx)("path",{d:"M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m-9-2V7H4v3H1v2h3v3h2v-3h3v-2zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"PersonAdd");var Vm={},qN=Te;Object.defineProperty(Vm,"__esModule",{value:!0});var Ac=Vm.default=void 0,GN=qN(je()),KN=d;Ac=Vm.default=(0,GN.default)((0,KN.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");const Py=Vt(d.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),Ey=Vt(d.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");var qm={},YN=Te;Object.defineProperty(qm,"__esModule",{value:!0});var Gm=qm.default=void 0,XN=YN(je()),QN=d;Gm=qm.default=(0,XN.default)((0,QN.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info");const lf=Ns({palette:{primary:{main:"#556cd6"},secondary:{main:"#19857b"},background:{default:"linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)",paper:"#fff"}},typography:{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif',h5:{fontWeight:600,color:"#444"},button:{textTransform:"none",fontWeight:"bold"}},components:{MuiButton:{styleOverrides:{root:{margin:"8px"}}}}}),JN=ie(En)(({theme:e})=>({marginTop:e.spacing(12),display:"flex",flexDirection:"column",alignItems:"center",padding:e.spacing(4),borderRadius:e.shape.borderRadius,boxShadow:e.shadows[10],width:"90%",maxWidth:"450px",opacity:.98,backdropFilter:"blur(10px)"}));function ZN(){const e=qo(),[t,n]=p.useState(!1),{setUser:r}=p.useContext(vr),[o,i]=p.useState(0),[a,s]=p.useState(""),[l,c]=p.useState(""),[u,f]=p.useState(!1),[h,w]=p.useState(""),[y,x]=p.useState(!1),[C,v]=p.useState(""),[m,b]=p.useState(""),[R,k]=p.useState(""),[T,P]=p.useState(""),[j,N]=p.useState(""),[O,F]=p.useState(!1),[W,U]=p.useState(!1),[G,ee]=p.useState(""),[J,re]=p.useState("info"),I=[{id:"job_search",name:"Stress from job search"},{id:"classwork",name:"Stress from classwork"},{id:"social_anxiety",name:"Social anxiety"},{id:"impostor_syndrome",name:"Impostor Syndrome"},{id:"career_drift",name:"Career Drift"}],[_,E]=p.useState([]),g=A=>{const K=A.target.value,Y=_.includes(K)?_.filter(q=>q!==K):[..._,K];E(Y)},$=async A=>{var K,Y;A.preventDefault(),F(!0);try{const q=await Oe.post("/api/user/login",{username:a,password:h});if(q&&q.data){const oe=q.data.userId;localStorage.setItem("token",q.data.access_token),console.log("Token stored:",localStorage.getItem("token")),ee("Login successful!"),re("success"),n(!0),r({userId:oe}),e("/"),console.log("User logged in:",oe)}else throw new Error("Invalid response from server")}catch(q){console.error("Login failed:",q),ee("Login failed: "+(((Y=(K=q.response)==null?void 0:K.data)==null?void 0:Y.msg)||"Unknown error")),re("error"),f(!0)}U(!0),F(!1)},z=async A=>{var K,Y;A.preventDefault(),F(!0);try{const q=await Oe.post("/api/user/signup",{username:a,email:l,password:h,name:C,age:m,gender:R,placeOfResidence:T,fieldOfWork:j,mental_health_concerns:_});if(q&&q.data){const oe=q.data.userId;localStorage.setItem("token",q.data.access_token),console.log("Token stored:",localStorage.getItem("token")),ee("User registered successfully!"),re("success"),n(!0),r({userId:oe}),e("/"),console.log("User registered:",oe)}else throw new Error("Invalid response from server")}catch(q){console.error("Signup failed:",q),ee(((Y=(K=q.response)==null?void 0:K.data)==null?void 0:Y.error)||"Failed to register user."),re("error")}F(!1),U(!0)},L=async A=>{var K,Y;A.preventDefault(),F(!0);try{const q=await Oe.post("/api/user/anonymous_signin");if(q&&q.data)localStorage.setItem("token",q.data.access_token),console.log("Token stored:",localStorage.getItem("token")),ee("Anonymous sign-in successful!"),re("success"),n(!0),r({userId:null}),e("/");else throw new Error("Invalid response from server")}catch(q){console.error("Anonymous sign-in failed:",q),ee("Anonymous sign-in failed: "+(((Y=(K=q.response)==null?void 0:K.data)==null?void 0:Y.msg)||"Unknown error")),re("error")}F(!1),U(!0)},B=(A,K)=>{i(K)},V=(A,K)=>{K!=="clickaway"&&U(!1)},M=()=>{x(!y)};return d.jsxs(lm,{theme:lf,children:[d.jsx(km,{}),d.jsx(at,{sx:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",background:lf.palette.background.default},children:d.jsxs(JN,{children:[d.jsxs(f2,{value:o,onChange:B,variant:"fullWidth",centered:!0,indicatorColor:"primary",textColor:"primary",children:[d.jsx(Hl,{icon:d.jsx(h2,{}),label:"Login"}),d.jsx(Hl,{icon:d.jsx(m2,{}),label:"Sign Up"}),d.jsx(Hl,{icon:d.jsx(Ac,{}),label:"Anonymous"})]}),d.jsxs(at,{sx:{mt:3,width:"100%",px:3},children:[o===0&&d.jsxs("form",{onSubmit:$,children:[d.jsx(it,{label:"Username",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:a,onChange:A=>s(A.target.value)}),d.jsx(it,{label:"Password",type:y?"text":"password",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:h,onChange:A=>w(A.target.value),InputProps:{endAdornment:d.jsx(ut,{onClick:M,edge:"end",children:y?d.jsx(Ey,{}):d.jsx(Py,{})})}}),d.jsxs(kt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,sx:{mt:2,maxWidth:"325px"},disabled:O,children:[O?d.jsx(_n,{size:24}):"Login"," "]}),u&&d.jsxs(Ie,{variant:"body2",textAlign:"center",sx:{mt:2},children:["Forgot your password? ",d.jsx(Pb,{to:"/request_reset",style:{textDecoration:"none",color:lf.palette.secondary.main},children:"Reset it here"})]})]}),o===1&&d.jsxs("form",{onSubmit:z,children:[d.jsx(it,{label:"Username",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:a,onChange:A=>s(A.target.value)}),d.jsx(it,{label:"Email",type:"email",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:l,onChange:A=>c(A.target.value)}),d.jsx(it,{label:"Password",type:y?"text":"password",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:h,onChange:A=>w(A.target.value),InputProps:{endAdornment:d.jsx(ut,{onClick:M,edge:"end",children:y?d.jsx(Ey,{}):d.jsx(Py,{})})}}),d.jsx(it,{label:"Name",variant:"outlined",margin:"normal",fullWidth:!0,value:C,onChange:A=>v(A.target.value)}),d.jsx(it,{label:"Age",type:"number",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:m,onChange:A=>b(A.target.value)}),d.jsxs(ld,{required:!0,fullWidth:!0,margin:"normal",children:[d.jsx(cd,{children:"Gender"}),d.jsxs(Us,{value:R,label:"Gender",onChange:A=>k(A.target.value),children:[d.jsx(Jn,{value:"",children:"Select Gender"}),d.jsx(Jn,{value:"male",children:"Male"}),d.jsx(Jn,{value:"female",children:"Female"}),d.jsx(Jn,{value:"other",children:"Other"})]})]}),d.jsx(it,{label:"Place of Residence",variant:"outlined",margin:"normal",fullWidth:!0,value:T,onChange:A=>P(A.target.value)}),d.jsx(it,{label:"Field of Work",variant:"outlined",margin:"normal",fullWidth:!0,value:j,onChange:A=>N(A.target.value)}),d.jsxs(i2,{sx:{marginTop:"10px"},children:[d.jsx(Ie,{variant:"body1",gutterBottom:!0,children:"Select any mental stressors you are currently experiencing to help us better tailor your therapy sessions."}),I.map(A=>d.jsx(Tm,{control:d.jsx(Rm,{checked:_.includes(A.id),onChange:g,value:A.id}),label:d.jsxs(at,{display:"flex",alignItems:"center",children:[A.name,d.jsx(Zn,{title:d.jsx(Ie,{variant:"body2",children:eD(A.id)}),arrow:!0,placement:"right",children:d.jsx(Gm,{color:"action",style:{marginLeft:4,fontSize:20}})})]})},A.id))]}),d.jsx(kt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,sx:{mt:2},disabled:O,children:O?d.jsx(_n,{size:24}):"Sign Up"})]}),o===2&&d.jsx("form",{onSubmit:L,children:d.jsx(kt,{type:"submit",variant:"outlined",color:"secondary",fullWidth:!0,sx:{mt:2},disabled:O,children:O?d.jsx(_n,{size:24}):"Anonymous Sign-In"})})]}),d.jsx(yo,{open:W,autoHideDuration:6e3,onClose:V,children:d.jsx(xr,{onClose:V,severity:J,sx:{width:"100%"},children:G})})]})})]})}function eD(e){switch(e){case"job_search":return"Feelings of stress stemming from the job search process.";case"classwork":return"Stress related to managing coursework and academic responsibilities.";case"social_anxiety":return"Anxiety experienced during social interactions or in anticipation of social interactions.";case"impostor_syndrome":return"Persistent doubt concerning one's abilities or accomplishments coupled with a fear of being exposed as a fraud.";case"career_drift":return"Stress from uncertainty or dissatisfaction with one's career path or progress.";default:return"No description available."}}var Km={},tD=Te;Object.defineProperty(Km,"__esModule",{value:!0});var g2=Km.default=void 0,nD=tD(je()),rD=d;g2=Km.default=(0,nD.default)((0,rD.jsx)("path",{d:"M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"}),"VpnKey");var Ym={},oD=Te;Object.defineProperty(Ym,"__esModule",{value:!0});var v2=Ym.default=void 0,iD=oD(je()),aD=d;v2=Ym.default=(0,iD.default)((0,aD.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");const Ty=Ns({palette:{primary:{main:"#3F51B5"},secondary:{main:"#F6AE2D"}}}),sD=()=>{const{changePassword:e}=p.useContext(vr),[t,n]=p.useState(""),[r,o]=p.useState(""),[i,a]=p.useState(!1),[s,l]=p.useState(""),[c,u]=p.useState("success"),{userId:f}=$s(),h=async w=>{w.preventDefault();const y=await e(f,t,r);l(y.message),u(y.success?"success":"error"),a(!0)};return d.jsx(lm,{theme:Ty,children:d.jsx(e2,{component:"main",maxWidth:"xs",sx:{background:"#fff",borderRadius:"8px",boxShadow:"0px 2px 4px rgba(0,0,0,0.2)"},children:d.jsxs(at,{sx:{marginTop:8,display:"flex",flexDirection:"column",alignItems:"center"},children:[d.jsx(Ie,{component:"h1",variant:"h5",children:"Update Password"}),d.jsxs("form",{onSubmit:h,style:{width:"100%",marginTop:Ty.spacing(1)},children:[d.jsx(it,{variant:"outlined",margin:"normal",required:!0,fullWidth:!0,id:"current-password",label:"Current Password",name:"currentPassword",autoComplete:"current-password",type:"password",value:t,onChange:w=>n(w.target.value),InputProps:{startAdornment:d.jsx(v2,{color:"primary",style:{marginRight:"10px"}})}}),d.jsx(it,{variant:"outlined",margin:"normal",required:!0,fullWidth:!0,id:"new-password",label:"New Password",name:"newPassword",autoComplete:"new-password",type:"password",value:r,onChange:w=>o(w.target.value),InputProps:{startAdornment:d.jsx(g2,{color:"secondary",style:{marginRight:"10px"}})}}),d.jsx(kt,{type:"submit",fullWidth:!0,variant:"contained",color:"primary",sx:{mt:3,mb:2},children:"Update Password"})]}),d.jsx(yo,{open:i,autoHideDuration:6e3,onClose:()=>a(!1),children:d.jsx(xr,{onClose:()=>a(!1),severity:c,sx:{width:"100%"},children:s})})]})})})};var Xm={},lD=Te;Object.defineProperty(Xm,"__esModule",{value:!0});var y2=Xm.default=void 0,cD=lD(je()),uD=d;y2=Xm.default=(0,cD.default)((0,uD.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"}),"Email");var Qm={},dD=Te;Object.defineProperty(Qm,"__esModule",{value:!0});var x2=Qm.default=void 0,fD=dD(je()),pD=d;x2=Qm.default=(0,fD.default)((0,pD.jsx)("path",{d:"M12 6c1.11 0 2-.9 2-2 0-.38-.1-.73-.29-1.03L12 0l-1.71 2.97c-.19.3-.29.65-.29 1.03 0 1.1.9 2 2 2m4.6 9.99-1.07-1.07-1.08 1.07c-1.3 1.3-3.58 1.31-4.89 0l-1.07-1.07-1.09 1.07C6.75 16.64 5.88 17 4.96 17c-.73 0-1.4-.23-1.96-.61V21c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-4.61c-.56.38-1.23.61-1.96.61-.92 0-1.79-.36-2.44-1.01M18 9h-5V7h-2v2H6c-1.66 0-3 1.34-3 3v1.54c0 1.08.88 1.96 1.96 1.96.52 0 1.02-.2 1.38-.57l2.14-2.13 2.13 2.13c.74.74 2.03.74 2.77 0l2.14-2.13 2.13 2.13c.37.37.86.57 1.38.57 1.08 0 1.96-.88 1.96-1.96V12C21 10.34 19.66 9 18 9"}),"Cake");var Jm={},hD=Te;Object.defineProperty(Jm,"__esModule",{value:!0});var b2=Jm.default=void 0,mD=hD(je()),gD=d;b2=Jm.default=(0,mD.default)((0,gD.jsx)("path",{d:"M5.5 22v-7.5H4V9c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2v5.5H9.5V22zM18 22v-6h3l-2.54-7.63C18.18 7.55 17.42 7 16.56 7h-.12c-.86 0-1.63.55-1.9 1.37L12 16h3v6zM7.5 6c1.11 0 2-.89 2-2s-.89-2-2-2-2 .89-2 2 .89 2 2 2m9 0c1.11 0 2-.89 2-2s-.89-2-2-2-2 .89-2 2 .89 2 2 2"}),"Wc");var Zm={},vD=Te;Object.defineProperty(Zm,"__esModule",{value:!0});var w2=Zm.default=void 0,yD=vD(je()),xD=d;w2=Zm.default=(0,yD.default)((0,xD.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home");var eg={},bD=Te;Object.defineProperty(eg,"__esModule",{value:!0});var S2=eg.default=void 0,wD=bD(je()),SD=d;S2=eg.default=(0,wD.default)((0,SD.jsx)("path",{d:"M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-6 0h-4V4h4z"}),"Work");var tg={},CD=Te;Object.defineProperty(tg,"__esModule",{value:!0});var ng=tg.default=void 0,RD=CD(je()),kD=d;ng=tg.default=(0,RD.default)((0,kD.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 4c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6m0 14c-2.03 0-4.43-.82-6.14-2.88C7.55 15.8 9.68 15 12 15s4.45.8 6.14 2.12C16.43 19.18 14.03 20 12 20"}),"AccountCircle");var rg={},PD=Te;Object.defineProperty(rg,"__esModule",{value:!0});var C2=rg.default=void 0,ED=PD(je()),TD=d;C2=rg.default=(0,ED.default)((0,TD.jsx)("path",{d:"M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8z"}),"Update");const $D=ie(f2)({background:"#fff",borderRadius:"8px",boxShadow:"0 2px 4px rgba(0,0,0,0.1)",margin:"20px 0",maxWidth:"100%",overflow:"hidden"}),$y=ie(Hl)({fontSize:"1rem",fontWeight:"bold",color:"#3F51B5",marginRight:"4px",marginLeft:"4px",flex:1,maxWidth:"none","&.Mui-selected":{color:"#F6AE2D",background:"#e0e0e0"},"&:hover":{background:"#f4f4f4",transition:"background-color 0.3s"},"@media (max-width: 720px)":{padding:"6px 12px",fontSize:"0.8rem"}}),MD=Ns({palette:{primary:{main:"#3F51B5"},secondary:{main:"#F6AE2D"},background:{default:"#e0e0e0"}},typography:{fontFamily:'"Open Sans", "Helvetica", "Arial", sans-serif',button:{textTransform:"none",fontWeight:"bold"}},components:{MuiButton:{styleOverrides:{root:{boxShadow:"none",borderRadius:8,"&:hover":{boxShadow:"0px 2px 4px rgba(0,0,0,0.2)"}}}},MuiPaper:{styleOverrides:{root:{padding:"20px",borderRadius:"10px",boxShadow:"0px 4px 12px rgba(0,0,0,0.1)"}}}}}),jD=ie(En)(({theme:e})=>({marginTop:e.spacing(2),padding:e.spacing(2),display:"flex",flexDirection:"column",alignItems:"center",gap:e.spacing(2),boxShadow:e.shadows[3]}));function OD(){const{userId:e}=$s(),[t,n]=p.useState({username:"",name:"",email:"",age:"",gender:"",placeOfResidence:"",fieldOfWork:"",mental_health_concerns:[]}),[r,o]=p.useState(0),i=(v,m)=>{o(m)},[a,s]=p.useState(""),[l,c]=p.useState(!1),[u,f]=p.useState("info");p.useEffect(()=>{if(!e){console.error("User ID is undefined");return}(async()=>{try{const m=await Oe.get(`/api/user/profile/${e}`);console.log("Fetched data:",m.data);const b={username:m.data.username||"",name:m.data.name||"",email:m.data.email||"",age:m.data.age||"",gender:m.data.gender||"",placeOfResidence:m.data.placeOfResidence||"Not specified",fieldOfWork:m.data.fieldOfWork||"Not specified",mental_health_concerns:m.data.mental_health_concerns||[]};console.log("Formatted data:",b),n(b)}catch{s("Failed to fetch user data"),f("error"),c(!0)}})()},[e]);const h=[{label:"Stress from Job Search",value:"job_search"},{label:"Stress from Classwork",value:"classwork"},{label:"Social Anxiety",value:"social_anxiety"},{label:"Impostor Syndrome",value:"impostor_syndrome"},{label:"Career Drift",value:"career_drift"}];console.log("current mental health concerns: ",t.mental_health_concerns);const w=v=>{const{name:m,checked:b}=v.target;n(R=>{const k=b?[...R.mental_health_concerns,m]:R.mental_health_concerns.filter(T=>T!==m);return{...R,mental_health_concerns:k}})},y=v=>{const{name:m,value:b}=v.target;n(R=>({...R,[m]:b}))},x=async v=>{v.preventDefault();try{await Oe.patch(`/api/user/profile/${e}`,t),s("Profile updated successfully!"),f("success")}catch{s("Failed to update profile"),f("error")}c(!0)},C=()=>{c(!1)};return d.jsxs(lm,{theme:MD,children:[d.jsx(km,{}),d.jsxs(e2,{component:"main",maxWidth:"md",children:[d.jsxs($D,{value:r,onChange:i,centered:!0,children:[d.jsx($y,{label:"Profile"}),d.jsx($y,{label:"Update Password"})]}),r===0&&d.jsxs(jD,{component:"form",onSubmit:x,sx:{maxHeight:"81vh",overflow:"auto"},children:[d.jsxs(Ie,{variant:"h5",style:{fontWeight:700},children:[d.jsx(ng,{style:{marginRight:"10px"}})," ",t.username]}),d.jsx(it,{fullWidth:!0,label:"Name",variant:"outlined",name:"name",value:t.name||"",onChange:y,InputProps:{startAdornment:d.jsx(ut,{position:"start",children:d.jsx(ud,{})})}}),d.jsx(it,{fullWidth:!0,label:"Email",variant:"outlined",name:"email",value:t.email||"",onChange:y,InputProps:{startAdornment:d.jsx(ut,{position:"start",children:d.jsx(y2,{})})}}),d.jsx(it,{fullWidth:!0,label:"Age",variant:"outlined",name:"age",type:"number",value:t.age||"",onChange:y,InputProps:{startAdornment:d.jsx(ut,{children:d.jsx(x2,{})})}}),d.jsxs(ld,{fullWidth:!0,children:[d.jsx(cd,{children:"Gender"}),d.jsxs(Us,{name:"gender",value:t.gender||"",label:"Gender",onChange:y,startAdornment:d.jsx(ut,{children:d.jsx(b2,{})}),children:[d.jsx(Jn,{value:"male",children:"Male"}),d.jsx(Jn,{value:"female",children:"Female"}),d.jsx(Jn,{value:"other",children:"Other"})]})]}),d.jsx(it,{fullWidth:!0,label:"Place of Residence",variant:"outlined",name:"placeOfResidence",value:t.placeOfResidence||"",onChange:y,InputProps:{startAdornment:d.jsx(ut,{children:d.jsx(w2,{})})}}),d.jsx(it,{fullWidth:!0,label:"Field of Work",variant:"outlined",name:"fieldOfWork",value:t.fieldOfWork||"",onChange:y,InputProps:{startAdornment:d.jsx(ut,{position:"start",children:d.jsx(S2,{})})}}),d.jsx(i2,{children:h.map((v,m)=>(console.log(`Is "${v.label}" checked?`,t.mental_health_concerns.includes(v.value)),d.jsx(Tm,{control:d.jsx(Rm,{checked:t.mental_health_concerns.includes(v.value),onChange:w,name:v.value}),label:d.jsxs(at,{display:"flex",alignItems:"center",children:[v.label,d.jsx(Zn,{title:d.jsx(Ie,{variant:"body2",children:ID(v.value)}),arrow:!0,placement:"right",children:d.jsx(Gm,{color:"action",style:{marginLeft:4,fontSize:20}})})]})},m)))}),d.jsxs(kt,{type:"submit",color:"primary",variant:"contained",children:[d.jsx(C2,{style:{marginRight:"10px"}}),"Update Profile"]})]}),r===1&&d.jsx(sD,{userId:e}),d.jsx(yo,{open:l,autoHideDuration:6e3,onClose:C,children:d.jsx(xr,{onClose:C,severity:u,sx:{width:"100%"},children:a})})]})]})}function ID(e){switch(e){case"job_search":return"Feelings of stress stemming from the job search process.";case"classwork":return"Stress related to managing coursework and academic responsibilities.";case"social_anxiety":return"Anxiety experienced during social interactions or in anticipation of social interactions.";case"impostor_syndrome":return"Persistent doubt concerning one's abilities or accomplishments coupled with a fear of being exposed as a fraud.";case"career_drift":return"Stress from uncertainty or dissatisfaction with one's career path or progress.";default:return"No description available."}}var og={},_D=Te;Object.defineProperty(og,"__esModule",{value:!0});var R2=og.default=void 0,LD=_D(je()),My=d;R2=og.default=(0,LD.default)([(0,My.jsx)("path",{d:"M22 9 12 2 2 9h9v13h2V9z"},"0"),(0,My.jsx)("path",{d:"m4.14 12-1.96.37.82 4.37V22h2l.02-4H7v4h2v-6H4.9zm14.96 4H15v6h2v-4h1.98l.02 4h2v-5.26l.82-4.37-1.96-.37z"},"1")],"Deck");var ig={},AD=Te;Object.defineProperty(ig,"__esModule",{value:!0});var k2=ig.default=void 0,ND=AD(je()),DD=d;k2=ig.default=(0,ND.default)((0,DD.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5m-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11m3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5"}),"InsertEmoticon");var ag={},zD=Te;Object.defineProperty(ag,"__esModule",{value:!0});var sg=ag.default=void 0,BD=zD(je()),FD=d;sg=ag.default=(0,BD.default)((0,FD.jsx)("path",{d:"M19 5v14H5V5zm1.1-2H3.9c-.5 0-.9.4-.9.9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9M11 7h6v2h-6zm0 4h6v2h-6zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7z"}),"ListAlt");var lg={},UD=Te;Object.defineProperty(lg,"__esModule",{value:!0});var P2=lg.default=void 0,WD=UD(je()),HD=d;P2=lg.default=(0,WD.default)((0,HD.jsx)("path",{d:"M10.09 15.59 11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"ExitToApp");var cg={},VD=Te;Object.defineProperty(cg,"__esModule",{value:!0});var E2=cg.default=void 0,qD=VD(je()),GD=d;E2=cg.default=(0,qD.default)((0,GD.jsx)("path",{d:"M16.53 11.06 15.47 10l-4.88 4.88-2.12-2.12-1.06 1.06L10.59 17zM19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V8h14z"}),"EventAvailable");var ug={},KD=Te;Object.defineProperty(ug,"__esModule",{value:!0});var T2=ug.default=void 0,YD=KD(je()),jy=d;T2=ug.default=(0,YD.default)([(0,jy.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,jy.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"Schedule");var dg={},XD=Te;Object.defineProperty(dg,"__esModule",{value:!0});var $2=dg.default=void 0,QD=XD(je()),JD=d;$2=dg.default=(0,QD.default)((0,JD.jsx)("path",{d:"m22.69 18.37 1.14-1-1-1.73-1.45.49c-.32-.27-.68-.48-1.08-.63L20 14h-2l-.3 1.49c-.4.15-.76.36-1.08.63l-1.45-.49-1 1.73 1.14 1c-.08.5-.08.76 0 1.26l-1.14 1 1 1.73 1.45-.49c.32.27.68.48 1.08.63L18 24h2l.3-1.49c.4-.15.76-.36 1.08-.63l1.45.49 1-1.73-1.14-1c.08-.51.08-.77 0-1.27M19 21c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2M11 7v5.41l2.36 2.36 1.04-1.79-1.4-1.39V7zm10 5c0-4.97-4.03-9-9-9-2.83 0-5.35 1.32-7 3.36V4H3v6h6V8H6.26C7.53 6.19 9.63 5 12 5c3.86 0 7 3.14 7 7zm-10.14 6.91c-2.99-.49-5.35-2.9-5.78-5.91H3.06c.5 4.5 4.31 8 8.94 8h.07z"}),"ManageHistory");const Oy=230;function ZD(){const{logout:e,user:t}=p.useContext(vr),n=ho(),r=i=>n.pathname===i,o=[{text:"Mind Chat",icon:d.jsx(R2,{}),path:"/"},...t!=null&&t.userId?[{text:"Track Your Vibes",icon:d.jsx(k2,{}),path:"/user/mood_logging"},{text:"Mood Logs",icon:d.jsx(sg,{}),path:"/user/mood_logs"},{text:"Schedule Check-In",icon:d.jsx(T2,{}),path:"/user/check_in"},{text:"Check-In Reporting",icon:d.jsx(E2,{}),path:`/user/check_ins/${t==null?void 0:t.userId}`},{text:"Chat Log Manager",icon:d.jsx($2,{}),path:"/user/chat_log_Manager"}]:[]];return d.jsx(WI,{sx:{width:Oy,flexShrink:0,mt:8,"& .MuiDrawer-paper":{width:Oy,boxSizing:"border-box",position:"relative",height:"91vh",top:0,overflowX:"hidden",borderRadius:2,boxShadow:1}},variant:"permanent",anchor:"left",children:d.jsxs(Fs,{children:[o.map(i=>d.jsx(VP,{to:i.path,style:{textDecoration:"none",color:"inherit"},children:d.jsxs(Oc,{button:!0,sx:{backgroundColor:r(i.path)?"rgba(25, 118, 210, 0.5)":"inherit","&:hover":{bgcolor:"grey.200"}},children:[d.jsx(dy,{children:i.icon}),d.jsx(ws,{primary:i.text})]})},i.text)),d.jsxs(Oc,{button:!0,onClick:e,children:[d.jsx(dy,{children:d.jsx(P2,{})}),d.jsx(ws,{primary:"Logout"})]})]})})}var fg={},e6=Te;Object.defineProperty(fg,"__esModule",{value:!0});var M2=fg.default=void 0,t6=e6(je()),n6=d;M2=fg.default=(0,t6.default)((0,n6.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");var pg={},r6=Te;Object.defineProperty(pg,"__esModule",{value:!0});var j2=pg.default=void 0,o6=r6(je()),i6=d;j2=pg.default=(0,o6.default)((0,i6.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2m6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1z"}),"Notifications");var hg={},a6=Te;Object.defineProperty(hg,"__esModule",{value:!0});var O2=hg.default=void 0,s6=a6(je()),l6=d;O2=hg.default=(0,s6.default)((0,l6.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel");function c6({toggleSidebar:e}){const{incrementNotificationCount:t,notifications:n,addNotification:r,removeNotification:o}=p.useContext(vr),i=qo(),{user:a}=p.useContext(vr),[s,l]=p.useState(null),c=localStorage.getItem("token"),u=a==null?void 0:a.userId;console.log("User ID:",u),p.useEffect(()=>{u?f():console.error("No user ID available from URL parameters.")},[u]);const f=async()=>{if(!u){console.error("User ID is missing in context");return}try{const C=(await Oe.get(`/api/check-in/missed?user_id=${u}`,{headers:{Authorization:`Bearer ${c}`}})).data;console.log("Missed check-ins:",C),C.length>0?C.forEach(v=>{r({title:`Missed Check-in on ${new Date(v.check_in_time).toLocaleString()}`,message:"Please complete your check-in."})}):r({title:"You have no missed check-ins.",message:""})}catch(x){console.error("Failed to fetch missed check-ins:",x),r({title:"Failed to fetch missed check-ins. Please check the console for more details.",message:""})}},h=x=>{l(x.currentTarget)},w=x=>{l(null),o(x)},y=()=>{a&&a.userId?i(`/user/profile/${a.userId}`):console.error("User ID not found")};return p.useEffect(()=>{const x=C=>{C.data&&C.data.msg==="updateCount"&&(console.log("Received message from service worker:",C.data),r({title:C.data.title,message:C.data.body}),t())};return navigator.serviceWorker.addEventListener("message",x),()=>{navigator.serviceWorker.removeEventListener("message",x)}},[]),d.jsx(kM,{position:"fixed",sx:{zIndex:x=>x.zIndex.drawer+1},children:d.jsxs(UA,{children:[d.jsx(ut,{onClick:e,color:"inherit",edge:"start",sx:{marginRight:2},children:d.jsx(M2,{})}),d.jsx(Ie,{variant:"h6",noWrap:!0,component:"div",sx:{flexGrow:1},children:"Dashboard"}),(a==null?void 0:a.userId)&&d.jsx(ut,{color:"inherit",onClick:h,children:d.jsx(a3,{badgeContent:n.length,color:"secondary",children:d.jsx(j2,{})})}),d.jsx(c2,{anchorEl:s,open:!!s,onClose:()=>w(null),children:n.map((x,C)=>d.jsx(Jn,{onClick:()=>w(C),sx:{whiteSpace:"normal",maxWidth:350,padding:1},children:d.jsxs(ad,{elevation:2,sx:{display:"flex",alignItems:"center",width:"100%"},children:[d.jsx(O2,{color:"error"}),d.jsxs(Cm,{sx:{flex:"1 1 auto"},children:[d.jsx(Ie,{variant:"subtitle1",sx:{fontWeight:"bold"},children:x.title}),d.jsx(Ie,{variant:"body2",color:"text.secondary",children:x.message})]})]})},C))}),(a==null?void 0:a.userId)&&d.jsx(ut,{color:"inherit",onClick:y,children:d.jsx(ng,{})})]})})}var mg={},u6=Te;Object.defineProperty(mg,"__esModule",{value:!0});var I2=mg.default=void 0,d6=u6(je()),f6=d;I2=mg.default=(0,d6.default)((0,f6.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M17 13l-5 5-5-5h3V9h4v4z"}),"CloudDownload");var gg={},p6=Te;Object.defineProperty(gg,"__esModule",{value:!0});var Lp=gg.default=void 0,h6=p6(je()),m6=d;Lp=gg.default=(0,h6.default)((0,m6.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"DeleteForever");var vg={},g6=Te;Object.defineProperty(vg,"__esModule",{value:!0});var _2=vg.default=void 0,v6=g6(je()),y6=d;_2=vg.default=(0,v6.default)((0,y6.jsx)("path",{d:"M9 11H7v2h2zm4 0h-2v2h2zm4 0h-2v2h2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 16H5V9h14z"}),"DateRange");const x6=ie(En)(({theme:e})=>({padding:e.spacing(3),borderRadius:e.shape.borderRadius,boxShadow:1,maxWidth:"100%",margin:"auto",marginTop:e.spacing(2),backgroundColor:"#fff",overflow:"auto"})),wl=ie(kt)(({theme:e})=>({margin:e.spacing(0),paddingLeft:e.spacing(1),paddingRight:e.spacing(3)}));function b6(){const[e,t]=nn.useState(!1),[n,r]=p.useState(!1),[o,i]=nn.useState(""),[a,s]=nn.useState("info"),[l,c]=p.useState(!1),[u,f]=p.useState(""),[h,w]=p.useState(""),[y,x]=p.useState(!1),C=(k,T)=>{T!=="clickaway"&&t(!1)},v=()=>{r(!1)},m=k=>{x(k),r(!0)},b=async(k=!1)=>{var T,P;c(!0);try{const j=k?"/api/user/download_chat_logs/range":"/api/user/download_chat_logs",N=k?{params:{start_date:u,end_date:h}}:{},O=await Oe.get(j,{...N,headers:{Authorization:`Bearer ${localStorage.getItem("token")}`},responseType:"blob"}),F=window.URL.createObjectURL(new Blob([O.data])),W=document.createElement("a");W.href=F,W.setAttribute("download",k?"chat_logs_range.csv":"chat_logs.csv"),document.body.appendChild(W),W.click(),i("Chat logs downloaded successfully."),s("success")}catch(j){i(`Failed to download chat logs: ${((P=(T=j.response)==null?void 0:T.data)==null?void 0:P.error)||j.message}`),s("error")}finally{c(!1)}t(!0)},R=async()=>{var k,T;r(!1),c(!0);try{const P=y?"/api/user/delete_chat_logs/range":"/api/user/delete_chat_logs",j=y?{params:{start_date:u,end_date:h}}:{},N=await Oe.delete(P,{...j,headers:{Authorization:`Bearer ${localStorage.getItem("token")}`}});i(N.data.message),s("success")}catch(P){i(`Failed to delete chat logs: ${((T=(k=P.response)==null?void 0:k.data)==null?void 0:T.error)||P.message}`),s("error")}finally{c(!1)}t(!0)};return d.jsxs(x6,{sx:{height:"91vh"},children:[d.jsx(Ie,{variant:"h4",gutterBottom:!0,children:"Manage Your Chat Logs"}),d.jsx(Ie,{variant:"body1",paragraph:!0,children:"Manage your chat logs efficiently by downloading or deleting entries for specific dates or entire ranges. Please be cautious as deletion is permanent."}),d.jsxs("div",{style:{display:"flex",justifyContent:"center",flexDirection:"column",alignItems:"center",gap:20},children:[d.jsxs("div",{style:{display:"flex",gap:10,marginBottom:20},children:[d.jsx(it,{label:"Start Date",type:"date",value:u,onChange:k=>f(k.target.value),InputLabelProps:{shrink:!0}}),d.jsx(it,{label:"End Date",type:"date",value:h,onChange:k=>w(k.target.value),InputLabelProps:{shrink:!0}})]}),d.jsx(Ie,{variant:"body1",paragraph:!0,children:"Here you can download your chat logs as a CSV file, which includes details like chat IDs, content, type, and additional information for each session."}),d.jsx(Zn,{title:"Download chat logs for selected date range",children:d.jsx(wl,{variant:"outlined",startIcon:d.jsx(_2,{}),onClick:()=>b(!0),disabled:l||!u||!h,children:l?d.jsx(_n,{size:24,color:"inherit"}):"Download Range"})}),d.jsx(Zn,{title:"Download your chat logs as a CSV file",children:d.jsx(wl,{variant:"contained",color:"primary",startIcon:d.jsx(I2,{}),onClick:()=>b(!1),disabled:l,children:l?d.jsx(_n,{size:24,color:"inherit"}):"Download Chat Logs"})}),d.jsx(Ie,{variant:"body1",paragraph:!0,children:"If you need to clear your history for privacy or other reasons, you can also permanently delete your chat logs from the server."}),d.jsx(Zn,{title:"Delete chat logs for selected date range",children:d.jsx(wl,{variant:"outlined",color:"warning",startIcon:d.jsx(Lp,{}),onClick:()=>m(!0),disabled:l||!u||!h,children:l?d.jsx(_n,{size:24,color:"inherit"}):"Delete Range"})}),d.jsx(Zn,{title:"Permanently delete all your chat logs",children:d.jsx(wl,{variant:"contained",color:"secondary",startIcon:d.jsx(Lp,{}),onClick:()=>m(!1),disabled:l,children:l?d.jsx(_n,{size:24,color:"inherit"}):"Delete Chat Logs"})}),d.jsx(Ie,{variant:"body1",paragraph:!0,children:"Please use these options carefully as deleting your chat logs is irreversible."})]}),d.jsxs(Mp,{open:n,onClose:v,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[d.jsx(Ip,{id:"alert-dialog-title",children:"Confirm Deletion"}),d.jsx(Op,{children:d.jsx(n2,{id:"alert-dialog-description",children:"Are you sure you want to delete these chat logs? This action cannot be undone."})}),d.jsxs(jp,{children:[d.jsx(kt,{onClick:v,color:"primary",children:"Cancel"}),d.jsx(kt,{onClick:()=>R(),color:"secondary",autoFocus:!0,children:"Confirm"})]})]}),d.jsx(yo,{open:e,autoHideDuration:6e3,onClose:C,children:d.jsx(xr,{onClose:C,severity:a,sx:{width:"100%"},children:o})})]})}const Iy=()=>{const{user:e,voiceEnabled:t}=p.useContext(vr),n=e==null?void 0:e.userId,[r,o]=p.useState(0),[i,a]=p.useState(0),[s,l]=p.useState(""),[c,u]=p.useState([]),[f,h]=p.useState(!1),[w,y]=p.useState(null),x=p.useRef([]),[C,v]=p.useState(!1),[m,b]=p.useState(!1),[R,k]=p.useState(""),[T,P]=p.useState("info"),[j,N]=p.useState(null),O=_=>{if(!t||_===j){N(null),window.speechSynthesis.cancel();return}const E=window.speechSynthesis,g=new SpeechSynthesisUtterance(_),$=E.getVoices();console.log($.map(L=>`${L.name} - ${L.lang} - ${L.gender}`));const z=$.find(L=>L.name.includes("Microsoft Zira - English (United States)"));z?g.voice=z:console.log("No female voice found"),g.onend=()=>{N(null)},N(_),E.speak(g)},F=(_,E)=>{E!=="clickaway"&&b(!1)},W=p.useCallback(async()=>{if(r!==null){v(!0);try{const _=await fetch(`/api/ai/mental_health/finalize/${n}/${r}`,{method:"POST",headers:{"Content-Type":"application/json"}}),E=await _.json();_.ok?(k("Chat finalized successfully"),P("success"),o(null),a(0),u([])):(k("Failed to finalize chat"),P("error"))}catch{k("Error finalizing chat"),P("error")}finally{v(!1),b(!0)}}},[n,r]),U=p.useCallback(async()=>{if(s.trim()){console.log(r),v(!0);try{const _=JSON.stringify({prompt:s,turn_id:i}),E=await fetch(`/api/ai/mental_health/${n}/${r}`,{method:"POST",headers:{"Content-Type":"application/json"},body:_}),g=await E.json();console.log(g),E.ok?(u($=>[...$,{message:s,sender:"user"},{message:g,sender:"agent"}]),a($=>$+1),l("")):(console.error("Failed to send message:",g),k(g.error||"An error occurred while sending the message."),P("error"),b(!0))}catch(_){console.error("Failed to send message:",_),k("Network or server error occurred."),P("error"),b(!0)}finally{v(!1)}}},[s,n,r,i]),G=()=>{navigator.mediaDevices.getUserMedia({audio:!0}).then(_=>{x.current=[];const E={mimeType:"audio/webm"},g=new MediaRecorder(_,E);g.ondataavailable=$=>{console.log("Data available:",$.data.size),x.current.push($.data)},g.start(),y(g),h(!0)}).catch(console.error)},ee=()=>{w&&(w.onstop=()=>{J(x.current),h(!1),y(null)},w.stop())},J=_=>{console.log("Audio chunks size:",_.reduce(($,z)=>$+z.size,0));const E=new Blob(_,{type:"audio/webm"});if(E.size===0){console.error("Audio Blob is empty");return}console.log(`Sending audio blob of size: ${E.size} bytes`);const g=new FormData;g.append("audio",E),v(!0),Oe.post("/api/ai/mental_health/voice-to-text",g,{headers:{"Content-Type":"multipart/form-data"}}).then($=>{const{message:z}=$.data;l(z),U()}).catch($=>{console.error("Error uploading audio:",$),b(!0),k("Error processing voice input: "+$.message),P("error")}).finally(()=>{v(!1)})},re=p.useCallback(_=>{l(_.target.value)},[]),I=_=>_===j?d.jsx(Lc,{}):d.jsx(_c,{});return d.jsxs(d.Fragment,{children:[d.jsx("style",{children:` + `}),d.jsxs(at,{sx:{maxWidth:"100%",mx:"auto",my:2,display:"flex",flexDirection:"column",height:"91vh",borderRadius:2,boxShadow:1},children:[d.jsxs(id,{sx:{display:"flex",flexDirection:"column",height:"100%",borderRadius:2,boxShadow:3},children:[d.jsxs(Cm,{sx:{flexGrow:1,overflow:"auto",padding:3,position:"relative"},children:[d.jsxs(at,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",position:"relative",marginBottom:"5px"},children:[d.jsx(Zn,{title:"Toggle voice responses",children:d.jsx(ut,{color:"inherit",onClick:ee,sx:{padding:0},children:d.jsx(jA,{checked:t,onChange:M=>n(M.target.checked),icon:d.jsx(Lc,{}),checkedIcon:d.jsx(_c,{}),inputProps:{"aria-label":"Voice response toggle"},color:"default",sx:{height:42,"& .MuiSwitch-switchBase":{padding:"9px"},"& .MuiSwitch-switchBase.Mui-checked":{color:"white",transform:"translateX(16px)","& + .MuiSwitch-track":{backgroundColor:"primary.main"}}}})})}),d.jsx(Zn,{title:"Start a new chat",placement:"top",arrow:!0,children:d.jsx(ut,{"aria-label":"new chat",color:"primary",onClick:_,disabled:v,sx:{"&:hover":{backgroundColor:"primary.main",color:"common.white"}},children:d.jsx(Um,{})})})]}),d.jsx(xs,{sx:{marginBottom:"10px"}}),b.length===0&&d.jsxs(at,{sx:{display:"flex",marginBottom:2,marginTop:3},children:[d.jsx(Er,{src:Pi,sx:{width:44,height:44,marginRight:2},alt:"Aria"}),d.jsx(Ie,{variant:"h4",component:"h1",gutterBottom:!0,children:"Welcome to Mental Health Companion"})]}),R?d.jsx(AN,{}):u.length===0&&d.jsxs(at,{sx:{display:"flex"},children:[d.jsx(Er,{src:Pi,sx:{width:36,height:36,marginRight:1},alt:"Aria"}),d.jsxs(Ie,{variant:"body1",gutterBottom:!0,sx:{bgcolor:"grey.200",borderRadius:"16px",px:2,py:1,display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap"},children:[b,t&&b&&d.jsx(ut,{onClick:()=>J(b),size:"small",sx:{ml:1},children:V(b)})]})]}),d.jsx(Fs,{sx:{maxHeight:"100%",overflow:"auto"},children:u.map((M,A)=>d.jsx(Oc,{sx:{display:"flex",flexDirection:"column",alignItems:M.sender==="user"?"flex-end":"flex-start",borderRadius:2,mb:.5,p:1,border:"none","&:before":{display:"none"},"&:after":{display:"none"}},children:d.jsxs(at,{sx:{display:"flex",alignItems:"center",color:M.sender==="user"?"common.white":"text.primary",borderRadius:"16px"},children:[M.sender==="agent"&&d.jsx(Er,{src:Pi,sx:{width:36,height:36,mr:1},alt:"Aria"}),d.jsx(ws,{primary:d.jsxs(at,{sx:{display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap"},children:[M.message,t&&M.sender==="agent"&&d.jsx(ut,{onClick:()=>J(M.message),size:"small",sx:{ml:1},children:V(M.message)})]}),primaryTypographyProps:{sx:{color:M.sender==="user"?"common.white":"text.primary",bgcolor:M.sender==="user"?"primary.main":"grey.200",borderRadius:"16px",px:2,py:1,display:"inline-block"}}}),M.sender==="user"&&d.jsx(Er,{sx:{width:36,height:36,ml:1},children:d.jsx(cd,{})})]})},A))})]}),d.jsx(xs,{}),d.jsxs(at,{sx:{p:2,pb:1,display:"flex",alignItems:"center",bgcolor:"background.paper"},children:[d.jsx(it,{fullWidth:!0,variant:"outlined",placeholder:"Type your message here...",value:l,onChange:B,disabled:v,sx:{mr:1,flexGrow:1},InputProps:{endAdornment:d.jsx(jc,{position:"end",children:d.jsxs(ut,{onClick:h?z:$,color:"primary.main","aria-label":h?"Stop recording":"Start recording",size:"large",edge:"end",disabled:v,children:[h?d.jsx(Nm,{size:"small"}):d.jsx(Lm,{size:"small"}),h&&d.jsx(_n,{size:30,sx:{color:"primary.main",position:"absolute",zIndex:1}})]})})}}),v?d.jsx(_n,{size:24}):d.jsx(Rt,{variant:"contained",color:"primary",onClick:E,disabled:v||!l.trim(),endIcon:d.jsx(ra,{}),children:"Send"})]})]}),d.jsx(yo,{open:P,autoHideDuration:6e3,onClose:O,children:d.jsx(xr,{elevation:6,variant:"filled",onClose:O,severity:F,children:N})})]})]})};var Wm={},DN=Te;Object.defineProperty(Wm,"__esModule",{value:!0});var f2=Wm.default=void 0,zN=DN(je()),BN=d;f2=Wm.default=(0,zN.default)((0,BN.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2M9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9zm9 14H6V10h12zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2"}),"LockOutlined");var Hm={},FN=Te;Object.defineProperty(Hm,"__esModule",{value:!0});var p2=Hm.default=void 0,UN=FN(je()),WN=d;p2=Hm.default=(0,UN.default)((0,WN.jsx)("path",{d:"M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m-9-2V7H4v3H1v2h3v3h2v-3h3v-2zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"PersonAdd");var Vm={},HN=Te;Object.defineProperty(Vm,"__esModule",{value:!0});var Ac=Vm.default=void 0,VN=HN(je()),qN=d;Ac=Vm.default=(0,VN.default)((0,qN.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");const Ry=Vt(d.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),Py=Vt(d.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");var qm={},GN=Te;Object.defineProperty(qm,"__esModule",{value:!0});var Gm=qm.default=void 0,KN=GN(je()),YN=d;Gm=qm.default=(0,KN.default)((0,YN.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info");const sf=Ns({palette:{primary:{main:"#556cd6"},secondary:{main:"#19857b"},background:{default:"linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)",paper:"#fff"}},typography:{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif',h5:{fontWeight:600,color:"#444"},button:{textTransform:"none",fontWeight:"bold"}},components:{MuiButton:{styleOverrides:{root:{margin:"8px"}}}}}),XN=ie(En)(({theme:e})=>({marginTop:e.spacing(12),display:"flex",flexDirection:"column",alignItems:"center",padding:e.spacing(4),borderRadius:e.shape.borderRadius,boxShadow:e.shadows[10],width:"90%",maxWidth:"450px",opacity:.98,backdropFilter:"blur(10px)"}));function QN(){const e=qo(),[t,n]=p.useState(!1),{setUser:r}=p.useContext(vr),[o,i]=p.useState(0),[a,s]=p.useState(""),[l,c]=p.useState(""),[u,f]=p.useState(!1),[h,w]=p.useState(""),[y,x]=p.useState(!1),[C,v]=p.useState(""),[m,b]=p.useState(""),[k,R]=p.useState(""),[T,P]=p.useState(""),[j,N]=p.useState(""),[I,F]=p.useState(!1),[H,U]=p.useState(!1),[q,ee]=p.useState(""),[J,re]=p.useState("info"),O=[{id:"job_search",name:"Stress from job search"},{id:"classwork",name:"Stress from classwork"},{id:"social_anxiety",name:"Social anxiety"},{id:"impostor_syndrome",name:"Impostor Syndrome"},{id:"career_drift",name:"Career Drift"}],[_,E]=p.useState([]),g=A=>{const G=A.target.value,Y=_.includes(G)?_.filter(K=>K!==G):[..._,G];E(Y)},$=async A=>{var G,Y;A.preventDefault(),F(!0);try{const K=await Oe.post("/api/user/login",{username:a,password:h});if(K&&K.data){const oe=K.data.userId;localStorage.setItem("token",K.data.access_token),console.log("Token stored:",localStorage.getItem("token")),ee("Login successful!"),re("success"),n(!0),r({userId:oe}),e("/"),console.log("User logged in:",oe)}else throw new Error("Invalid response from server")}catch(K){console.error("Login failed:",K),ee("Login failed: "+(((Y=(G=K.response)==null?void 0:G.data)==null?void 0:Y.msg)||"Unknown error")),re("error"),f(!0)}U(!0),F(!1)},z=async A=>{var G,Y;A.preventDefault(),F(!0);try{const K=await Oe.post("/api/user/signup",{username:a,email:l,password:h,name:C,age:m,gender:k,placeOfResidence:T,fieldOfWork:j,mental_health_concerns:_});if(K&&K.data){const oe=K.data.userId;localStorage.setItem("token",K.data.access_token),console.log("Token stored:",localStorage.getItem("token")),ee("User registered successfully!"),re("success"),n(!0),r({userId:oe}),e("/"),console.log("User registered:",oe)}else throw new Error("Invalid response from server")}catch(K){console.error("Signup failed:",K),ee(((Y=(G=K.response)==null?void 0:G.data)==null?void 0:Y.error)||"Failed to register user."),re("error")}F(!1),U(!0)},L=async A=>{var G,Y;A.preventDefault(),F(!0);try{const K=await Oe.post("/api/user/anonymous_signin");if(K&&K.data)localStorage.setItem("token",K.data.access_token),console.log("Token stored:",localStorage.getItem("token")),ee("Anonymous sign-in successful!"),re("success"),n(!0),r({userId:null}),e("/");else throw new Error("Invalid response from server")}catch(K){console.error("Anonymous sign-in failed:",K),ee("Anonymous sign-in failed: "+(((Y=(G=K.response)==null?void 0:G.data)==null?void 0:Y.msg)||"Unknown error")),re("error")}F(!1),U(!0)},B=(A,G)=>{i(G)},V=(A,G)=>{G!=="clickaway"&&U(!1)},M=()=>{x(!y)};return d.jsxs(lm,{theme:sf,children:[d.jsx(Rm,{}),d.jsx(at,{sx:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",background:sf.palette.background.default},children:d.jsxs(XN,{children:[d.jsxs(d2,{value:o,onChange:B,variant:"fullWidth",centered:!0,indicatorColor:"primary",textColor:"primary",children:[d.jsx(Hl,{icon:d.jsx(f2,{}),label:"Login"}),d.jsx(Hl,{icon:d.jsx(p2,{}),label:"Sign Up"}),d.jsx(Hl,{icon:d.jsx(Ac,{}),label:"Anonymous"})]}),d.jsxs(at,{sx:{mt:3,width:"100%",px:3},children:[o===0&&d.jsxs("form",{onSubmit:$,children:[d.jsx(it,{label:"Username",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:a,onChange:A=>s(A.target.value)}),d.jsx(it,{label:"Password",type:y?"text":"password",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:h,onChange:A=>w(A.target.value),InputProps:{endAdornment:d.jsx(ut,{onClick:M,edge:"end",children:y?d.jsx(Py,{}):d.jsx(Ry,{})})}}),d.jsxs(Rt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,sx:{mt:2,maxWidth:"325px"},disabled:I,children:[I?d.jsx(_n,{size:24}):"Login"," "]}),u&&d.jsxs(Ie,{variant:"body2",textAlign:"center",sx:{mt:2},children:["Forgot your password? ",d.jsx(Rb,{to:"/request_reset",style:{textDecoration:"none",color:sf.palette.secondary.main},children:"Reset it here"})]})]}),o===1&&d.jsxs("form",{onSubmit:z,children:[d.jsx(it,{label:"Username",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:a,onChange:A=>s(A.target.value)}),d.jsx(it,{label:"Email",type:"email",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:l,onChange:A=>c(A.target.value)}),d.jsx(it,{label:"Password",type:y?"text":"password",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:h,onChange:A=>w(A.target.value),InputProps:{endAdornment:d.jsx(ut,{onClick:M,edge:"end",children:y?d.jsx(Py,{}):d.jsx(Ry,{})})}}),d.jsx(it,{label:"Name",variant:"outlined",margin:"normal",fullWidth:!0,value:C,onChange:A=>v(A.target.value)}),d.jsx(it,{label:"Age",type:"number",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:m,onChange:A=>b(A.target.value)}),d.jsxs(sd,{required:!0,fullWidth:!0,margin:"normal",children:[d.jsx(ld,{children:"Gender"}),d.jsxs(Us,{value:k,label:"Gender",onChange:A=>R(A.target.value),children:[d.jsx(Jn,{value:"",children:"Select Gender"}),d.jsx(Jn,{value:"male",children:"Male"}),d.jsx(Jn,{value:"female",children:"Female"}),d.jsx(Jn,{value:"other",children:"Other"})]})]}),d.jsx(it,{label:"Place of Residence",variant:"outlined",margin:"normal",fullWidth:!0,value:T,onChange:A=>P(A.target.value)}),d.jsx(it,{label:"Field of Work",variant:"outlined",margin:"normal",fullWidth:!0,value:j,onChange:A=>N(A.target.value)}),d.jsxs(o2,{sx:{marginTop:"10px"},children:[d.jsx(Ie,{variant:"body1",gutterBottom:!0,children:"Select any mental stressors you are currently experiencing to help us better tailor your therapy sessions."}),O.map(A=>d.jsx(Tm,{control:d.jsx(km,{checked:_.includes(A.id),onChange:g,value:A.id}),label:d.jsxs(at,{display:"flex",alignItems:"center",children:[A.name,d.jsx(Zn,{title:d.jsx(Ie,{variant:"body2",children:JN(A.id)}),arrow:!0,placement:"right",children:d.jsx(Gm,{color:"action",style:{marginLeft:4,fontSize:20}})})]})},A.id))]}),d.jsx(Rt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,sx:{mt:2},disabled:I,children:I?d.jsx(_n,{size:24}):"Sign Up"})]}),o===2&&d.jsx("form",{onSubmit:L,children:d.jsx(Rt,{type:"submit",variant:"outlined",color:"secondary",fullWidth:!0,sx:{mt:2},disabled:I,children:I?d.jsx(_n,{size:24}):"Anonymous Sign-In"})})]}),d.jsx(yo,{open:H,autoHideDuration:6e3,onClose:V,children:d.jsx(xr,{onClose:V,severity:J,sx:{width:"100%"},children:q})})]})})]})}function JN(e){switch(e){case"job_search":return"Feelings of stress stemming from the job search process.";case"classwork":return"Stress related to managing coursework and academic responsibilities.";case"social_anxiety":return"Anxiety experienced during social interactions or in anticipation of social interactions.";case"impostor_syndrome":return"Persistent doubt concerning one's abilities or accomplishments coupled with a fear of being exposed as a fraud.";case"career_drift":return"Stress from uncertainty or dissatisfaction with one's career path or progress.";default:return"No description available."}}var Km={},ZN=Te;Object.defineProperty(Km,"__esModule",{value:!0});var h2=Km.default=void 0,eD=ZN(je()),tD=d;h2=Km.default=(0,eD.default)((0,tD.jsx)("path",{d:"M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"}),"VpnKey");var Ym={},nD=Te;Object.defineProperty(Ym,"__esModule",{value:!0});var m2=Ym.default=void 0,rD=nD(je()),oD=d;m2=Ym.default=(0,rD.default)((0,oD.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");const Ey=Ns({palette:{primary:{main:"#3F51B5"},secondary:{main:"#F6AE2D"}}}),iD=()=>{const{changePassword:e}=p.useContext(vr),[t,n]=p.useState(""),[r,o]=p.useState(""),[i,a]=p.useState(!1),[s,l]=p.useState(""),[c,u]=p.useState("success"),{userId:f}=$s(),h=async w=>{w.preventDefault();const y=await e(f,t,r);l(y.message),u(y.success?"success":"error"),a(!0)};return d.jsx(lm,{theme:Ey,children:d.jsx(Zw,{component:"main",maxWidth:"xs",sx:{background:"#fff",borderRadius:"8px",boxShadow:"0px 2px 4px rgba(0,0,0,0.2)"},children:d.jsxs(at,{sx:{marginTop:8,display:"flex",flexDirection:"column",alignItems:"center"},children:[d.jsx(Ie,{component:"h1",variant:"h5",children:"Update Password"}),d.jsxs("form",{onSubmit:h,style:{width:"100%",marginTop:Ey.spacing(1)},children:[d.jsx(it,{variant:"outlined",margin:"normal",required:!0,fullWidth:!0,id:"current-password",label:"Current Password",name:"currentPassword",autoComplete:"current-password",type:"password",value:t,onChange:w=>n(w.target.value),InputProps:{startAdornment:d.jsx(m2,{color:"primary",style:{marginRight:"10px"}})}}),d.jsx(it,{variant:"outlined",margin:"normal",required:!0,fullWidth:!0,id:"new-password",label:"New Password",name:"newPassword",autoComplete:"new-password",type:"password",value:r,onChange:w=>o(w.target.value),InputProps:{startAdornment:d.jsx(h2,{color:"secondary",style:{marginRight:"10px"}})}}),d.jsx(Rt,{type:"submit",fullWidth:!0,variant:"contained",color:"primary",sx:{mt:3,mb:2},children:"Update Password"})]}),d.jsx(yo,{open:i,autoHideDuration:6e3,onClose:()=>a(!1),children:d.jsx(xr,{onClose:()=>a(!1),severity:c,sx:{width:"100%"},children:s})})]})})})};var Xm={},aD=Te;Object.defineProperty(Xm,"__esModule",{value:!0});var g2=Xm.default=void 0,sD=aD(je()),lD=d;g2=Xm.default=(0,sD.default)((0,lD.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"}),"Email");var Qm={},cD=Te;Object.defineProperty(Qm,"__esModule",{value:!0});var v2=Qm.default=void 0,uD=cD(je()),dD=d;v2=Qm.default=(0,uD.default)((0,dD.jsx)("path",{d:"M12 6c1.11 0 2-.9 2-2 0-.38-.1-.73-.29-1.03L12 0l-1.71 2.97c-.19.3-.29.65-.29 1.03 0 1.1.9 2 2 2m4.6 9.99-1.07-1.07-1.08 1.07c-1.3 1.3-3.58 1.31-4.89 0l-1.07-1.07-1.09 1.07C6.75 16.64 5.88 17 4.96 17c-.73 0-1.4-.23-1.96-.61V21c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-4.61c-.56.38-1.23.61-1.96.61-.92 0-1.79-.36-2.44-1.01M18 9h-5V7h-2v2H6c-1.66 0-3 1.34-3 3v1.54c0 1.08.88 1.96 1.96 1.96.52 0 1.02-.2 1.38-.57l2.14-2.13 2.13 2.13c.74.74 2.03.74 2.77 0l2.14-2.13 2.13 2.13c.37.37.86.57 1.38.57 1.08 0 1.96-.88 1.96-1.96V12C21 10.34 19.66 9 18 9"}),"Cake");var Jm={},fD=Te;Object.defineProperty(Jm,"__esModule",{value:!0});var y2=Jm.default=void 0,pD=fD(je()),hD=d;y2=Jm.default=(0,pD.default)((0,hD.jsx)("path",{d:"M5.5 22v-7.5H4V9c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2v5.5H9.5V22zM18 22v-6h3l-2.54-7.63C18.18 7.55 17.42 7 16.56 7h-.12c-.86 0-1.63.55-1.9 1.37L12 16h3v6zM7.5 6c1.11 0 2-.89 2-2s-.89-2-2-2-2 .89-2 2 .89 2 2 2m9 0c1.11 0 2-.89 2-2s-.89-2-2-2-2 .89-2 2 .89 2 2 2"}),"Wc");var Zm={},mD=Te;Object.defineProperty(Zm,"__esModule",{value:!0});var x2=Zm.default=void 0,gD=mD(je()),vD=d;x2=Zm.default=(0,gD.default)((0,vD.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home");var eg={},yD=Te;Object.defineProperty(eg,"__esModule",{value:!0});var b2=eg.default=void 0,xD=yD(je()),bD=d;b2=eg.default=(0,xD.default)((0,bD.jsx)("path",{d:"M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-6 0h-4V4h4z"}),"Work");var tg={},wD=Te;Object.defineProperty(tg,"__esModule",{value:!0});var ng=tg.default=void 0,SD=wD(je()),CD=d;ng=tg.default=(0,SD.default)((0,CD.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 4c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6m0 14c-2.03 0-4.43-.82-6.14-2.88C7.55 15.8 9.68 15 12 15s4.45.8 6.14 2.12C16.43 19.18 14.03 20 12 20"}),"AccountCircle");var rg={},kD=Te;Object.defineProperty(rg,"__esModule",{value:!0});var w2=rg.default=void 0,RD=kD(je()),PD=d;w2=rg.default=(0,RD.default)((0,PD.jsx)("path",{d:"M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8z"}),"Update");const ED=ie(d2)({background:"#fff",borderRadius:"8px",boxShadow:"0 2px 4px rgba(0,0,0,0.1)",margin:"20px 0",maxWidth:"100%",overflow:"hidden"}),Ty=ie(Hl)({fontSize:"1rem",fontWeight:"bold",color:"#3F51B5",marginRight:"4px",marginLeft:"4px",flex:1,maxWidth:"none","&.Mui-selected":{color:"#F6AE2D",background:"#e0e0e0"},"&:hover":{background:"#f4f4f4",transition:"background-color 0.3s"},"@media (max-width: 720px)":{padding:"6px 12px",fontSize:"0.8rem"}}),TD=Ns({palette:{primary:{main:"#3F51B5"},secondary:{main:"#F6AE2D"},background:{default:"#e0e0e0"}},typography:{fontFamily:'"Open Sans", "Helvetica", "Arial", sans-serif',button:{textTransform:"none",fontWeight:"bold"}},components:{MuiButton:{styleOverrides:{root:{boxShadow:"none",borderRadius:8,"&:hover":{boxShadow:"0px 2px 4px rgba(0,0,0,0.2)"}}}},MuiPaper:{styleOverrides:{root:{padding:"20px",borderRadius:"10px",boxShadow:"0px 4px 12px rgba(0,0,0,0.1)"}}}}}),$D=ie(En)(({theme:e})=>({marginTop:e.spacing(2),padding:e.spacing(2),display:"flex",flexDirection:"column",alignItems:"center",gap:e.spacing(2),boxShadow:e.shadows[3]}));function MD(){const{userId:e}=$s(),[t,n]=p.useState({username:"",name:"",email:"",age:"",gender:"",placeOfResidence:"",fieldOfWork:"",mental_health_concerns:[]}),[r,o]=p.useState(0),i=(v,m)=>{o(m)},[a,s]=p.useState(""),[l,c]=p.useState(!1),[u,f]=p.useState("info");p.useEffect(()=>{if(!e){console.error("User ID is undefined");return}(async()=>{try{const m=await Oe.get(`/api/user/profile/${e}`);console.log("Fetched data:",m.data);const b={username:m.data.username||"",name:m.data.name||"",email:m.data.email||"",age:m.data.age||"",gender:m.data.gender||"",placeOfResidence:m.data.placeOfResidence||"Not specified",fieldOfWork:m.data.fieldOfWork||"Not specified",mental_health_concerns:m.data.mental_health_concerns||[]};console.log("Formatted data:",b),n(b)}catch{s("Failed to fetch user data"),f("error"),c(!0)}})()},[e]);const h=[{label:"Stress from Job Search",value:"job_search"},{label:"Stress from Classwork",value:"classwork"},{label:"Social Anxiety",value:"social_anxiety"},{label:"Impostor Syndrome",value:"impostor_syndrome"},{label:"Career Drift",value:"career_drift"}];console.log("current mental health concerns: ",t.mental_health_concerns);const w=v=>{const{name:m,checked:b}=v.target;n(k=>{const R=b?[...k.mental_health_concerns,m]:k.mental_health_concerns.filter(T=>T!==m);return{...k,mental_health_concerns:R}})},y=v=>{const{name:m,value:b}=v.target;n(k=>({...k,[m]:b}))},x=async v=>{v.preventDefault();try{await Oe.patch(`/api/user/profile/${e}`,t),s("Profile updated successfully!"),f("success")}catch{s("Failed to update profile"),f("error")}c(!0)},C=()=>{c(!1)};return d.jsxs(lm,{theme:TD,children:[d.jsx(Rm,{}),d.jsxs(Zw,{component:"main",maxWidth:"md",children:[d.jsxs(ED,{value:r,onChange:i,centered:!0,children:[d.jsx(Ty,{label:"Profile"}),d.jsx(Ty,{label:"Update Password"})]}),r===0&&d.jsxs($D,{component:"form",onSubmit:x,sx:{maxHeight:"81vh",overflow:"auto"},children:[d.jsxs(Ie,{variant:"h5",style:{fontWeight:700},children:[d.jsx(ng,{style:{marginRight:"10px"}})," ",t.username]}),d.jsx(it,{fullWidth:!0,label:"Name",variant:"outlined",name:"name",value:t.name||"",onChange:y,InputProps:{startAdornment:d.jsx(ut,{position:"start",children:d.jsx(cd,{})})}}),d.jsx(it,{fullWidth:!0,label:"Email",variant:"outlined",name:"email",value:t.email||"",onChange:y,InputProps:{startAdornment:d.jsx(ut,{position:"start",children:d.jsx(g2,{})})}}),d.jsx(it,{fullWidth:!0,label:"Age",variant:"outlined",name:"age",type:"number",value:t.age||"",onChange:y,InputProps:{startAdornment:d.jsx(ut,{children:d.jsx(v2,{})})}}),d.jsxs(sd,{fullWidth:!0,children:[d.jsx(ld,{children:"Gender"}),d.jsxs(Us,{name:"gender",value:t.gender||"",label:"Gender",onChange:y,startAdornment:d.jsx(ut,{children:d.jsx(y2,{})}),children:[d.jsx(Jn,{value:"male",children:"Male"}),d.jsx(Jn,{value:"female",children:"Female"}),d.jsx(Jn,{value:"other",children:"Other"})]})]}),d.jsx(it,{fullWidth:!0,label:"Place of Residence",variant:"outlined",name:"placeOfResidence",value:t.placeOfResidence||"",onChange:y,InputProps:{startAdornment:d.jsx(ut,{children:d.jsx(x2,{})})}}),d.jsx(it,{fullWidth:!0,label:"Field of Work",variant:"outlined",name:"fieldOfWork",value:t.fieldOfWork||"",onChange:y,InputProps:{startAdornment:d.jsx(ut,{position:"start",children:d.jsx(b2,{})})}}),d.jsx(o2,{children:h.map((v,m)=>(console.log(`Is "${v.label}" checked?`,t.mental_health_concerns.includes(v.value)),d.jsx(Tm,{control:d.jsx(km,{checked:t.mental_health_concerns.includes(v.value),onChange:w,name:v.value}),label:d.jsxs(at,{display:"flex",alignItems:"center",children:[v.label,d.jsx(Zn,{title:d.jsx(Ie,{variant:"body2",children:jD(v.value)}),arrow:!0,placement:"right",children:d.jsx(Gm,{color:"action",style:{marginLeft:4,fontSize:20}})})]})},m)))}),d.jsxs(Rt,{type:"submit",color:"primary",variant:"contained",children:[d.jsx(w2,{style:{marginRight:"10px"}}),"Update Profile"]})]}),r===1&&d.jsx(iD,{userId:e}),d.jsx(yo,{open:l,autoHideDuration:6e3,onClose:C,children:d.jsx(xr,{onClose:C,severity:u,sx:{width:"100%"},children:a})})]})]})}function jD(e){switch(e){case"job_search":return"Feelings of stress stemming from the job search process.";case"classwork":return"Stress related to managing coursework and academic responsibilities.";case"social_anxiety":return"Anxiety experienced during social interactions or in anticipation of social interactions.";case"impostor_syndrome":return"Persistent doubt concerning one's abilities or accomplishments coupled with a fear of being exposed as a fraud.";case"career_drift":return"Stress from uncertainty or dissatisfaction with one's career path or progress.";default:return"No description available."}}var og={},OD=Te;Object.defineProperty(og,"__esModule",{value:!0});var S2=og.default=void 0,ID=OD(je()),$y=d;S2=og.default=(0,ID.default)([(0,$y.jsx)("path",{d:"M22 9 12 2 2 9h9v13h2V9z"},"0"),(0,$y.jsx)("path",{d:"m4.14 12-1.96.37.82 4.37V22h2l.02-4H7v4h2v-6H4.9zm14.96 4H15v6h2v-4h1.98l.02 4h2v-5.26l.82-4.37-1.96-.37z"},"1")],"Deck");var ig={},_D=Te;Object.defineProperty(ig,"__esModule",{value:!0});var C2=ig.default=void 0,LD=_D(je()),AD=d;C2=ig.default=(0,LD.default)((0,AD.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5m-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11m3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5"}),"InsertEmoticon");var ag={},ND=Te;Object.defineProperty(ag,"__esModule",{value:!0});var sg=ag.default=void 0,DD=ND(je()),zD=d;sg=ag.default=(0,DD.default)((0,zD.jsx)("path",{d:"M19 5v14H5V5zm1.1-2H3.9c-.5 0-.9.4-.9.9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9M11 7h6v2h-6zm0 4h6v2h-6zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7z"}),"ListAlt");var lg={},BD=Te;Object.defineProperty(lg,"__esModule",{value:!0});var k2=lg.default=void 0,FD=BD(je()),UD=d;k2=lg.default=(0,FD.default)((0,UD.jsx)("path",{d:"M10.09 15.59 11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"ExitToApp");var cg={},WD=Te;Object.defineProperty(cg,"__esModule",{value:!0});var R2=cg.default=void 0,HD=WD(je()),VD=d;R2=cg.default=(0,HD.default)((0,VD.jsx)("path",{d:"M16.53 11.06 15.47 10l-4.88 4.88-2.12-2.12-1.06 1.06L10.59 17zM19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V8h14z"}),"EventAvailable");var ug={},qD=Te;Object.defineProperty(ug,"__esModule",{value:!0});var P2=ug.default=void 0,GD=qD(je()),My=d;P2=ug.default=(0,GD.default)([(0,My.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,My.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"Schedule");var dg={},KD=Te;Object.defineProperty(dg,"__esModule",{value:!0});var E2=dg.default=void 0,YD=KD(je()),XD=d;E2=dg.default=(0,YD.default)((0,XD.jsx)("path",{d:"m22.69 18.37 1.14-1-1-1.73-1.45.49c-.32-.27-.68-.48-1.08-.63L20 14h-2l-.3 1.49c-.4.15-.76.36-1.08.63l-1.45-.49-1 1.73 1.14 1c-.08.5-.08.76 0 1.26l-1.14 1 1 1.73 1.45-.49c.32.27.68.48 1.08.63L18 24h2l.3-1.49c.4-.15.76-.36 1.08-.63l1.45.49 1-1.73-1.14-1c.08-.51.08-.77 0-1.27M19 21c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2M11 7v5.41l2.36 2.36 1.04-1.79-1.4-1.39V7zm10 5c0-4.97-4.03-9-9-9-2.83 0-5.35 1.32-7 3.36V4H3v6h6V8H6.26C7.53 6.19 9.63 5 12 5c3.86 0 7 3.14 7 7zm-10.14 6.91c-2.99-.49-5.35-2.9-5.78-5.91H3.06c.5 4.5 4.31 8 8.94 8h.07z"}),"ManageHistory");const jy=230;function QD(){const{logout:e,user:t}=p.useContext(vr),n=ho(),r=i=>n.pathname===i,o=[{text:"Mind Chat",icon:d.jsx(S2,{}),path:"/"},...t!=null&&t.userId?[{text:"Track Your Vibes",icon:d.jsx(C2,{}),path:"/user/mood_logging"},{text:"Mood Logs",icon:d.jsx(sg,{}),path:"/user/mood_logs"},{text:"Schedule Check-In",icon:d.jsx(P2,{}),path:"/user/check_in"},{text:"Check-In Reporting",icon:d.jsx(R2,{}),path:`/user/check_ins/${t==null?void 0:t.userId}`},{text:"Chat Log Manager",icon:d.jsx(E2,{}),path:"/user/chat_log_Manager"}]:[]];return d.jsx(FI,{sx:{width:jy,flexShrink:0,mt:8,"& .MuiDrawer-paper":{width:jy,boxSizing:"border-box",position:"relative",height:"91vh",top:0,overflowX:"hidden",borderRadius:2,boxShadow:1}},variant:"permanent",anchor:"left",children:d.jsxs(Fs,{children:[o.map(i=>d.jsx(WP,{to:i.path,style:{textDecoration:"none",color:"inherit"},children:d.jsxs(Oc,{button:!0,sx:{backgroundColor:r(i.path)?"rgba(25, 118, 210, 0.5)":"inherit","&:hover":{bgcolor:"grey.200"}},children:[d.jsx(dy,{children:i.icon}),d.jsx(ws,{primary:i.text})]})},i.text)),d.jsxs(Oc,{button:!0,onClick:e,children:[d.jsx(dy,{children:d.jsx(k2,{})}),d.jsx(ws,{primary:"Logout"})]})]})})}var fg={},JD=Te;Object.defineProperty(fg,"__esModule",{value:!0});var T2=fg.default=void 0,ZD=JD(je()),e6=d;T2=fg.default=(0,ZD.default)((0,e6.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");var pg={},t6=Te;Object.defineProperty(pg,"__esModule",{value:!0});var $2=pg.default=void 0,n6=t6(je()),r6=d;$2=pg.default=(0,n6.default)((0,r6.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2m6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1z"}),"Notifications");var hg={},o6=Te;Object.defineProperty(hg,"__esModule",{value:!0});var M2=hg.default=void 0,i6=o6(je()),a6=d;M2=hg.default=(0,i6.default)((0,a6.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel");function s6({toggleSidebar:e}){const{incrementNotificationCount:t,notifications:n,addNotification:r,removeNotification:o}=p.useContext(vr),i=qo(),{user:a}=p.useContext(vr),[s,l]=p.useState(null),c=localStorage.getItem("token"),u=a==null?void 0:a.userId;console.log("User ID:",u),p.useEffect(()=>{u?f():console.error("No user ID available from URL parameters.")},[u]);const f=async()=>{if(!u){console.error("User ID is missing in context");return}try{const C=(await Oe.get(`/api/check-in/missed?user_id=${u}`,{headers:{Authorization:`Bearer ${c}`}})).data;console.log("Missed check-ins:",C),C.length>0?C.forEach(v=>{r({title:`Missed Check-in on ${new Date(v.check_in_time).toLocaleString()}`,message:"Please complete your check-in."})}):r({title:"You have no missed check-ins.",message:""})}catch(x){console.error("Failed to fetch missed check-ins:",x),r({title:"Failed to fetch missed check-ins. Please check the console for more details.",message:""})}},h=x=>{l(x.currentTarget)},w=x=>{l(null),o(x)},y=()=>{a&&a.userId?i(`/user/profile/${a.userId}`):console.error("User ID not found")};return p.useEffect(()=>{const x=C=>{C.data&&C.data.msg==="updateCount"&&(console.log("Received message from service worker:",C.data),r({title:C.data.title,message:C.data.body}),t())};return navigator.serviceWorker.addEventListener("message",x),()=>{navigator.serviceWorker.removeEventListener("message",x)}},[]),d.jsx(CM,{position:"fixed",sx:{zIndex:x=>x.zIndex.drawer+1},children:d.jsxs(BA,{children:[d.jsx(ut,{onClick:e,color:"inherit",edge:"start",sx:{marginRight:2},children:d.jsx(T2,{})}),d.jsx(Ie,{variant:"h6",noWrap:!0,component:"div",sx:{flexGrow:1},children:"Dashboard"}),(a==null?void 0:a.userId)&&d.jsx(ut,{color:"inherit",onClick:h,children:d.jsx(o3,{badgeContent:n.length,color:"secondary",children:d.jsx($2,{})})}),d.jsx(l2,{anchorEl:s,open:!!s,onClose:()=>w(null),children:n.map((x,C)=>d.jsx(Jn,{onClick:()=>w(C),sx:{whiteSpace:"normal",maxWidth:350,padding:1},children:d.jsxs(id,{elevation:2,sx:{display:"flex",alignItems:"center",width:"100%"},children:[d.jsx(M2,{color:"error"}),d.jsxs(Cm,{sx:{flex:"1 1 auto"},children:[d.jsx(Ie,{variant:"subtitle1",sx:{fontWeight:"bold"},children:x.title}),d.jsx(Ie,{variant:"body2",color:"text.secondary",children:x.message})]})]})},C))}),(a==null?void 0:a.userId)&&d.jsx(ut,{color:"inherit",onClick:y,children:d.jsx(ng,{})})]})})}var mg={},l6=Te;Object.defineProperty(mg,"__esModule",{value:!0});var j2=mg.default=void 0,c6=l6(je()),u6=d;j2=mg.default=(0,c6.default)((0,u6.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M17 13l-5 5-5-5h3V9h4v4z"}),"CloudDownload");var gg={},d6=Te;Object.defineProperty(gg,"__esModule",{value:!0});var _p=gg.default=void 0,f6=d6(je()),p6=d;_p=gg.default=(0,f6.default)((0,p6.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"DeleteForever");var vg={},h6=Te;Object.defineProperty(vg,"__esModule",{value:!0});var O2=vg.default=void 0,m6=h6(je()),g6=d;O2=vg.default=(0,m6.default)((0,g6.jsx)("path",{d:"M9 11H7v2h2zm4 0h-2v2h2zm4 0h-2v2h2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 16H5V9h14z"}),"DateRange");const v6=ie(En)(({theme:e})=>({padding:e.spacing(3),borderRadius:e.shape.borderRadius,boxShadow:1,maxWidth:"100%",margin:"auto",marginTop:e.spacing(2),backgroundColor:"#fff",overflow:"auto"})),wl=ie(Rt)(({theme:e})=>({margin:e.spacing(0),paddingLeft:e.spacing(1),paddingRight:e.spacing(3)}));function y6(){const[e,t]=nn.useState(!1),[n,r]=p.useState(!1),[o,i]=nn.useState(""),[a,s]=nn.useState("info"),[l,c]=p.useState(!1),[u,f]=p.useState(""),[h,w]=p.useState(""),[y,x]=p.useState(!1),C=(R,T)=>{T!=="clickaway"&&t(!1)},v=()=>{r(!1)},m=R=>{x(R),r(!0)},b=async(R=!1)=>{var T,P;c(!0);try{const j=R?"/api/user/download_chat_logs/range":"/api/user/download_chat_logs",N=R?{params:{start_date:u,end_date:h}}:{},I=await Oe.get(j,{...N,headers:{Authorization:`Bearer ${localStorage.getItem("token")}`},responseType:"blob"}),F=window.URL.createObjectURL(new Blob([I.data])),H=document.createElement("a");H.href=F,H.setAttribute("download",R?"chat_logs_range.csv":"chat_logs.csv"),document.body.appendChild(H),H.click(),i("Chat logs downloaded successfully."),s("success")}catch(j){i(`Failed to download chat logs: ${((P=(T=j.response)==null?void 0:T.data)==null?void 0:P.error)||j.message}`),s("error")}finally{c(!1)}t(!0)},k=async()=>{var R,T;r(!1),c(!0);try{const P=y?"/api/user/delete_chat_logs/range":"/api/user/delete_chat_logs",j=y?{params:{start_date:u,end_date:h}}:{},N=await Oe.delete(P,{...j,headers:{Authorization:`Bearer ${localStorage.getItem("token")}`}});i(N.data.message),s("success")}catch(P){i(`Failed to delete chat logs: ${((T=(R=P.response)==null?void 0:R.data)==null?void 0:T.error)||P.message}`),s("error")}finally{c(!1)}t(!0)};return d.jsxs(v6,{sx:{height:"91vh"},children:[d.jsx(Ie,{variant:"h4",gutterBottom:!0,children:"Manage Your Chat Logs"}),d.jsx(Ie,{variant:"body1",paragraph:!0,children:"Manage your chat logs efficiently by downloading or deleting entries for specific dates or entire ranges. Please be cautious as deletion is permanent."}),d.jsxs("div",{style:{display:"flex",justifyContent:"center",flexDirection:"column",alignItems:"center",gap:20},children:[d.jsxs("div",{style:{display:"flex",gap:10,marginBottom:20},children:[d.jsx(it,{label:"Start Date",type:"date",value:u,onChange:R=>f(R.target.value),InputLabelProps:{shrink:!0}}),d.jsx(it,{label:"End Date",type:"date",value:h,onChange:R=>w(R.target.value),InputLabelProps:{shrink:!0}})]}),d.jsx(Ie,{variant:"body1",paragraph:!0,children:"Here you can download your chat logs as a CSV file, which includes details like chat IDs, content, type, and additional information for each session."}),d.jsx(Zn,{title:"Download chat logs for selected date range",children:d.jsx(wl,{variant:"outlined",startIcon:d.jsx(O2,{}),onClick:()=>b(!0),disabled:l||!u||!h,children:l?d.jsx(_n,{size:24,color:"inherit"}):"Download Range"})}),d.jsx(Zn,{title:"Download your chat logs as a CSV file",children:d.jsx(wl,{variant:"contained",color:"primary",startIcon:d.jsx(j2,{}),onClick:()=>b(!1),disabled:l,children:l?d.jsx(_n,{size:24,color:"inherit"}):"Download Chat Logs"})}),d.jsx(Ie,{variant:"body1",paragraph:!0,children:"If you need to clear your history for privacy or other reasons, you can also permanently delete your chat logs from the server."}),d.jsx(Zn,{title:"Delete chat logs for selected date range",children:d.jsx(wl,{variant:"outlined",color:"warning",startIcon:d.jsx(_p,{}),onClick:()=>m(!0),disabled:l||!u||!h,children:l?d.jsx(_n,{size:24,color:"inherit"}):"Delete Range"})}),d.jsx(Zn,{title:"Permanently delete all your chat logs",children:d.jsx(wl,{variant:"contained",color:"secondary",startIcon:d.jsx(_p,{}),onClick:()=>m(!1),disabled:l,children:l?d.jsx(_n,{size:24,color:"inherit"}):"Delete Chat Logs"})}),d.jsx(Ie,{variant:"body1",paragraph:!0,children:"Please use these options carefully as deleting your chat logs is irreversible."})]}),d.jsxs($p,{open:n,onClose:v,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[d.jsx(Op,{id:"alert-dialog-title",children:"Confirm Deletion"}),d.jsx(jp,{children:d.jsx(t2,{id:"alert-dialog-description",children:"Are you sure you want to delete these chat logs? This action cannot be undone."})}),d.jsxs(Mp,{children:[d.jsx(Rt,{onClick:v,color:"primary",children:"Cancel"}),d.jsx(Rt,{onClick:()=>k(),color:"secondary",autoFocus:!0,children:"Confirm"})]})]}),d.jsx(yo,{open:e,autoHideDuration:6e3,onClose:C,children:d.jsx(xr,{onClose:C,severity:a,sx:{width:"100%"},children:o})})]})}const Oy=()=>{const{user:e,voiceEnabled:t}=p.useContext(vr),n=e==null?void 0:e.userId,[r,o]=p.useState(0),[i,a]=p.useState(0),[s,l]=p.useState(""),[c,u]=p.useState([]),[f,h]=p.useState(!1),[w,y]=p.useState(null),x=p.useRef([]),[C,v]=p.useState(!1),[m,b]=p.useState(!1),[k,R]=p.useState(""),[T,P]=p.useState("info"),[j,N]=p.useState(null),I=_=>{if(!t||_===j){N(null),window.speechSynthesis.cancel();return}const E=window.speechSynthesis,g=new SpeechSynthesisUtterance(_),$=E.getVoices();console.log($.map(L=>`${L.name} - ${L.lang} - ${L.gender}`));const z=$.find(L=>L.name.includes("Microsoft Zira - English (United States)"));z?g.voice=z:console.log("No female voice found"),g.onend=()=>{N(null)},N(_),E.speak(g)},F=(_,E)=>{E!=="clickaway"&&b(!1)},H=p.useCallback(async()=>{if(r!==null){v(!0);try{const _=await fetch(`/api/ai/mental_health/finalize/${n}/${r}`,{method:"POST",headers:{"Content-Type":"application/json"}}),E=await _.json();_.ok?(R("Chat finalized successfully"),P("success"),o(null),a(0),u([])):(R("Failed to finalize chat"),P("error"))}catch{R("Error finalizing chat"),P("error")}finally{v(!1),b(!0)}}},[n,r]),U=p.useCallback(async()=>{if(s.trim()){console.log(r),v(!0);try{const _=JSON.stringify({prompt:s,turn_id:i}),E=await fetch(`/api/ai/mental_health/${n}/${r}`,{method:"POST",headers:{"Content-Type":"application/json"},body:_}),g=await E.json();console.log(g),E.ok?(u($=>[...$,{message:s,sender:"user"},{message:g,sender:"agent"}]),a($=>$+1),l("")):(console.error("Failed to send message:",g),R(g.error||"An error occurred while sending the message."),P("error"),b(!0))}catch(_){console.error("Failed to send message:",_),R("Network or server error occurred."),P("error"),b(!0)}finally{v(!1)}}},[s,n,r,i]),q=()=>{navigator.mediaDevices.getUserMedia({audio:!0}).then(_=>{x.current=[];const E={mimeType:"audio/webm"},g=new MediaRecorder(_,E);g.ondataavailable=$=>{console.log("Data available:",$.data.size),x.current.push($.data)},g.start(),y(g),h(!0)}).catch(console.error)},ee=()=>{w&&(w.onstop=()=>{J(x.current),h(!1),y(null)},w.stop())},J=_=>{console.log("Audio chunks size:",_.reduce(($,z)=>$+z.size,0));const E=new Blob(_,{type:"audio/webm"});if(E.size===0){console.error("Audio Blob is empty");return}console.log(`Sending audio blob of size: ${E.size} bytes`);const g=new FormData;g.append("audio",E),v(!0),Oe.post("/api/ai/mental_health/voice-to-text",g,{headers:{"Content-Type":"multipart/form-data"}}).then($=>{const{message:z}=$.data;l(z),U()}).catch($=>{console.error("Error uploading audio:",$),b(!0),R("Error processing voice input: "+$.message),P("error")}).finally(()=>{v(!1)})},re=p.useCallback(_=>{l(_.target.value)},[]),O=_=>_===j?d.jsx(Lc,{}):d.jsx(_c,{});return d.jsxs(d.Fragment,{children:[d.jsx("style",{children:` @keyframes blink { 0%, 100% { opacity: 0; } 50% { opacity: 1; } @@ -486,4 +486,4 @@ Error generating stack: `+i.message+` font-size: 0.8rem; /* Smaller font size */ } } - `}),d.jsxs(at,{sx:{maxWidth:"100%",mx:"auto",my:2,display:"flex",flexDirection:"column",height:"91vh",borderRadius:2,boxShadow:1},children:[d.jsxs(ad,{sx:{display:"flex",flexDirection:"column",height:"100%",borderRadius:2,boxShadow:3},children:[d.jsxs(Cm,{sx:{flexGrow:1,overflow:"auto",padding:3,position:"relative"},children:[d.jsx(Zn,{title:"Start a new chat",placement:"top",arrow:!0,children:d.jsx(ut,{"aria-label":"new chat",color:"primary",onClick:W,disabled:C,sx:{position:"absolute",top:5,right:5,"&:hover":{backgroundColor:"primary.main",color:"common.white"}},children:d.jsx(Um,{})})}),c.length===0&&d.jsxs(at,{sx:{display:"flex",marginBottom:2,marginTop:3},children:[d.jsx(Er,{src:Pi,sx:{width:44,height:44,marginRight:2},alt:"Aria"}),d.jsx(Ie,{variant:"h4",component:"h1",gutterBottom:!0,children:"Welcome to Mental Health Companion"})]}),d.jsx(Fs,{sx:{maxHeight:"100%",overflow:"auto"},children:c.map((_,E)=>d.jsx(Oc,{sx:{display:"flex",flexDirection:"column",alignItems:_.sender==="user"?"flex-end":"flex-start",borderRadius:2,mb:.5,p:1,border:"none","&:before":{display:"none"},"&:after":{display:"none"}},children:d.jsxs(at,{sx:{display:"flex",alignItems:"center",color:_.sender==="user"?"common.white":"text.primary",borderRadius:"16px"},children:[_.sender==="agent"&&d.jsx(Er,{src:Pi,sx:{width:36,height:36,mr:1},alt:"Aria"}),d.jsx(ws,{primary:d.jsxs(at,{sx:{display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap"},children:[_.message,t&&_.sender==="agent"&&d.jsx(ut,{onClick:()=>O(_.message),size:"small",sx:{ml:1},children:I(_.message)})]}),primaryTypographyProps:{sx:{color:_.sender==="user"?"common.white":"text.primary",bgcolor:_.sender==="user"?"primary.main":"grey.200",borderRadius:"16px",px:2,py:1,display:"inline-block"}}}),_.sender==="user"&&d.jsx(Er,{sx:{width:36,height:36,ml:1},children:d.jsx(ud,{})})]})},E))})]}),d.jsx(xs,{}),d.jsxs(at,{sx:{p:2,pb:1,display:"flex",alignItems:"center",bgcolor:"background.paper"},children:[d.jsx(it,{fullWidth:!0,variant:"outlined",placeholder:"Type your message here...",value:s,onChange:re,disabled:C,sx:{mr:1,flexGrow:1},InputProps:{endAdornment:d.jsx(jc,{position:"end",children:d.jsxs(ut,{onClick:f?ee:G,color:"primary.main","aria-label":f?"Stop recording":"Start recording",size:"large",edge:"end",disabled:C,children:[f?d.jsx(Nm,{size:"small"}):d.jsx(Lm,{size:"small"}),f&&d.jsx(_n,{size:30,sx:{color:"primary.main",position:"absolute",zIndex:1}})]})})}}),C?d.jsx(_n,{size:24}):d.jsx(kt,{variant:"contained",color:"primary",onClick:U,disabled:C||!s.trim(),endIcon:d.jsx(ra,{}),children:"Send"})]})]}),d.jsx(yo,{open:m,autoHideDuration:6e3,onClose:F,children:d.jsx(xr,{elevation:6,variant:"filled",onClose:F,severity:T,children:R})})]})]})};var yg={},w6=Te;Object.defineProperty(yg,"__esModule",{value:!0});var L2=yg.default=void 0,S6=w6(je()),C6=d;L2=yg.default=(0,S6.default)((0,C6.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5m-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11m3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5"}),"Mood");function R6(){const[e,t]=p.useState(""),[n,r]=p.useState(""),[o,i]=p.useState(""),a=async()=>{const s=localStorage.getItem("token");if(!e||!n){i("Both mood and activities are required.");return}if(!s){i("You are not logged in.");return}try{const l=await Oe.post("/api/user/log_mood",{mood:e,activities:n},{headers:{Authorization:`Bearer ${s}`}});i(l.data.message)}catch(l){i(l.response.data.error)}};return d.jsxs("div",{className:"mood-logging-container",children:[d.jsxs("h1",{children:[d.jsx(L2,{fontSize:"large"})," Track Your Vibes "]}),d.jsxs("div",{className:"mood-logging",children:[d.jsxs("div",{className:"input-group",children:[d.jsx("label",{htmlFor:"mood-input",children:"Mood:"}),d.jsx("input",{id:"mood-input",type:"text",value:e,onChange:s=>t(s.target.value),placeholder:"Enter your current mood"}),d.jsx("label",{htmlFor:"activities-input",children:"Activities:"}),d.jsx("input",{id:"activities-input",type:"text",value:n,onChange:s=>r(s.target.value),placeholder:"What are you doing?"})]}),d.jsx(kt,{variant:"contained",className:"submit-button",onClick:a,startIcon:d.jsx(ra,{}),children:"Log Mood"}),o&&d.jsx("div",{className:"message",children:o})]})]})}function k6(){const[e,t]=p.useState([]),[n,r]=p.useState("");p.useEffect(()=>{(async()=>{const a=localStorage.getItem("token");if(!a){r("You are not logged in.");return}try{const s=await Oe.get("/api/user/get_mood_logs",{headers:{Authorization:`Bearer ${a}`}});console.log("Received data:",s.data),t(s.data.mood_logs||[])}catch(s){r(s.response.data.error)}})()},[]);const o=i=>{const a={year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"};try{const s=i.$date;return new Date(s).toLocaleDateString("en-US",a)}catch(s){return console.error("Date parsing error:",s),"Invalid Date"}};return d.jsxs("div",{className:"mood-logs",children:[d.jsxs("h2",{children:[d.jsx(sg,{className:"icon-large"}),"Your Mood Journey"]}),n?d.jsx("div",{className:"error",children:n}):d.jsx("ul",{children:e.map((i,a)=>d.jsxs("li",{children:[d.jsxs("div",{children:[d.jsx("strong",{children:"Mood:"})," ",i.mood]}),d.jsxs("div",{children:[d.jsx("strong",{children:"Activities:"})," ",i.activities]}),d.jsxs("div",{children:[d.jsx("strong",{children:"Timestamp:"})," ",o(i.timestamp)]})]},a))})]})}function P6(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}const A2=6e4,N2=36e5;function cf(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}function E6(e,t){const n=P6(e);if(isNaN(n.getTime()))throw new RangeError("Invalid time value");const r=(t==null?void 0:t.format)??"extended";let o="";const i=r==="extended"?"-":"";{const a=cf(n.getDate(),2),s=cf(n.getMonth()+1,2);o=`${cf(n.getFullYear(),4)}${i}${s}${i}${a}`}return o}function T6(e,t){const r=O6(e);let o;if(r.date){const l=I6(r.date,2);o=_6(l.restDateString,l.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);const i=o.getTime();let a=0,s;if(r.time&&(a=L6(r.time),isNaN(a)))return new Date(NaN);if(r.timezone){if(s=A6(r.timezone),isNaN(s))return new Date(NaN)}else{const l=new Date(i+a),c=new Date(0);return c.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),c.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),c}return new Date(i+a+s)}const Sl={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},$6=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,M6=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,j6=/^([+-])(\d{2})(?::?(\d{2}))?$/;function O6(e){const t={},n=e.split(Sl.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Sl.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Sl.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const o=Sl.timezone.exec(r);o?(t.time=r.replace(o[1],""),t.timezone=o[1]):t.time=r}return t}function I6(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?o:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function _6(e,t){if(t===null)return new Date(NaN);const n=e.match($6);if(!n)return new Date(NaN);const r=!!n[4],o=Ra(n[1]),i=Ra(n[2])-1,a=Ra(n[3]),s=Ra(n[4]),l=Ra(n[5])-1;if(r)return F6(t,s,l)?N6(t,s,l):new Date(NaN);{const c=new Date(0);return!z6(t,i,a)||!B6(t,o)?new Date(NaN):(c.setUTCFullYear(t,i,Math.max(o,a)),c)}}function Ra(e){return e?parseInt(e):1}function L6(e){const t=e.match(M6);if(!t)return NaN;const n=uf(t[1]),r=uf(t[2]),o=uf(t[3]);return U6(n,r,o)?n*N2+r*A2+o*1e3:NaN}function uf(e){return e&&parseFloat(e.replace(",","."))||0}function A6(e){if(e==="Z")return 0;const t=e.match(j6);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return W6(r,o)?n*(r*N2+o*A2):NaN}function N6(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,i=(t-1)*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}const D6=[31,null,31,30,31,30,31,31,30,31,30,31];function D2(e){return e%400===0||e%4===0&&e%100!==0}function z6(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(D6[t]||(D2(e)?29:28))}function B6(e,t){return t>=1&&t<=(D2(e)?366:365)}function F6(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function U6(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function W6(e,t){return t>=0&&t<=59}function Ap({userId:e,update:t}){const[n,r]=p.useState(""),[o,i]=p.useState("daily"),[a,s]=p.useState(!1),{checkInId:l}=$s(),[c,u]=p.useState(!1),[f,h]=p.useState({open:!1,message:"",severity:"info"}),w=localStorage.getItem("token");p.useEffect(()=>{t&&l&&(u(!0),Oe.get(`/api/check-in/${l}`,{headers:{Authorization:`Bearer ${w}`}}).then(C=>{const v=C.data;console.log("Fetched check-in data:",v);const m=E6(T6(v.check_in_time),{representation:"date"});r(m.slice(0,16)),i(v.frequency),s(v.notify),u(!1)}).catch(C=>{console.error("Failed to fetch check-in details:",C),u(!1)}))},[t,l]);const y=async C=>{var P,j,N;if(C.preventDefault(),new Date(n)<=new Date){h({open:!0,message:"Cannot schedule check-in in the past. Please choose a future time.",severity:"error"});return}const b=t?`/api/check-in/${l}`:"/api/check-in/schedule",R={headers:{Authorization:`Bearer ${w}`,"Content-Type":"application/json"}};console.log("URL:",b);const k=t?"patch":"post",T={user_id:e,check_in_time:n,frequency:o,notify:a};console.log("Submitting:",T);try{const O=await Oe[k](b,T,R);console.log("Success:",O.data.message),h({open:!0,message:O.data.message,severity:"success"})}catch(O){console.error("Error:",((P=O.response)==null?void 0:P.data)||O);const F=((N=(j=O.response)==null?void 0:j.data)==null?void 0:N.error)||"An unexpected error occurred";h({open:!0,message:F,severity:"error"})}},x=(C,v)=>{v!=="clickaway"&&h({...f,open:!1})};return c?d.jsx(Ie,{children:"Loading..."}):d.jsxs(at,{component:"form",onSubmit:y,noValidate:!0,sx:{mt:4,padding:3,borderRadius:2,boxShadow:3},children:[d.jsx(it,{id:"datetime-local",label:"Check-in Time",type:"datetime-local",fullWidth:!0,value:n,onChange:C=>r(C.target.value),sx:{marginBottom:3},InputLabelProps:{shrink:!0},required:!0,helperText:"Select the date and time for your check-in."}),d.jsxs(ld,{fullWidth:!0,sx:{marginBottom:3},children:[d.jsx(cd,{id:"frequency-label",children:"Frequency"}),d.jsxs(Us,{labelId:"frequency-label",id:"frequency",value:o,label:"Frequency",onChange:C=>i(C.target.value),children:[d.jsx(Jn,{value:"daily",children:"Daily"}),d.jsx(Jn,{value:"weekly",children:"Weekly"}),d.jsx(Jn,{value:"monthly",children:"Monthly"})]}),d.jsx(Zn,{title:"Choose how often you want the check-ins to occur",children:d.jsx("i",{className:"fas fa-info-circle"})})]}),d.jsx(Tm,{control:d.jsx(Rm,{checked:a,onChange:C=>s(C.target.checked),color:"primary"}),label:"Notify me",sx:{marginBottom:2}}),d.jsx(kt,{type:"submit",fullWidth:!0,variant:"contained",color:"primary",sx:{mt:2,mb:2,padding:"10px 0"},children:t?"Update Check-In":"Schedule Check-In"}),d.jsx(yo,{open:f.open,autoHideDuration:6e3,onClose:x,children:d.jsx(xr,{onClose:x,severity:f.severity,children:f.message})})]})}Ap.propTypes={userId:Vd.string.isRequired,checkInId:Vd.string,update:Vd.bool.isRequired};var xg={},H6=Te;Object.defineProperty(xg,"__esModule",{value:!0});var z2=xg.default=void 0,V6=H6(je()),_y=d;z2=xg.default=(0,V6.default)([(0,_y.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,_y.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");var bg={},q6=Te;Object.defineProperty(bg,"__esModule",{value:!0});var B2=bg.default=void 0,G6=q6(je()),K6=d;B2=bg.default=(0,G6.default)((0,K6.jsx)("path",{d:"M7 7h10v3l4-4-4-4v3H5v6h2zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2z"}),"Repeat");var wg={},Y6=Te;Object.defineProperty(wg,"__esModule",{value:!0});var F2=wg.default=void 0,X6=Y6(je()),Q6=d;F2=wg.default=(0,X6.default)((0,Q6.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert");var Sg={},J6=Te;Object.defineProperty(Sg,"__esModule",{value:!0});var U2=Sg.default=void 0,Z6=J6(je()),ez=d;U2=Sg.default=(0,Z6.default)((0,ez.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");var Cg={},tz=Te;Object.defineProperty(Cg,"__esModule",{value:!0});var W2=Cg.default=void 0,nz=tz(je()),rz=d;W2=Cg.default=(0,nz.default)((0,rz.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");const oz=ie(ad)(({theme:e})=>({marginBottom:e.spacing(2),padding:e.spacing(2),display:"flex",alignItems:"center",justifyContent:"space-between",transition:"transform 0.1s ease-in-out","&:hover":{transform:"scale(1.01)",boxShadow:e.shadows[3]}})),iz=nn.forwardRef(function(t,n){return d.jsx(xr,{elevation:6,ref:n,variant:"filled",...t})});function az(){const{userId:e}=$s(),t=qo(),[n,r]=p.useState([]),[o,i]=p.useState(null),[a,s]=p.useState(!1),[l,c]=p.useState(!1),[u,f]=p.useState(!1),[h,w]=p.useState(""),[y,x]=p.useState(!1),[C,v]=p.useState(""),[m,b]=p.useState("info"),R=localStorage.getItem("token");p.useEffect(()=>{k()},[e]);const k=async()=>{if(!e){w("User not logged in");return}if(!R){w("No token found, please log in again");return}f(!0);try{const W=await Oe.get(`/api/check-in/all?user_id=${e}`,{headers:{Authorization:`Bearer ${R}`}});if(console.log("API Response:",W.data),Array.isArray(W.data)&&W.data.every(U=>U._id&&U._id.$oid&&U.check_in_time&&U.check_in_time.$date)){const U=W.data.map(G=>({...G,_id:G._id.$oid,check_in_time:new Date(G.check_in_time.$date).toLocaleString()}));r(U)}else console.error("Data received is not in expected array format:",W.data),w("Unexpected data format");f(!1)}catch(W){console.error("Error during fetch:",W),w(W.message),f(!1)}},T=W=>{const U=n.find(G=>G._id===W);U&&(i(U),console.log("Selected check-in for details or update:",U),s(!0))},P=()=>{s(!1),c(!1)},j=async()=>{if(o){try{await Oe.delete(`/api/check-in/${o._id}`,{headers:{Authorization:`Bearer ${R}`}}),v("Check-in deleted successfully"),b("success"),k(),P()}catch{v("Failed to delete check-in"),b("error")}x(!0)}},N=()=>{t(`/user/check_in/${o._id}`),console.log("Redirecting to update check-in form",o._id)},O=(W,U)=>{U!=="clickaway"&&x(!1)},F=()=>{c(!0)};return e?u?d.jsx(Ie,{variant:"h6",mt:"2",children:"Loading..."}):d.jsxs(at,{sx:{margin:3,maxWidth:600,mx:"auto",maxHeight:"91vh",overflow:"auto"},children:[d.jsx(Ie,{variant:"h4",gutterBottom:!0,children:"Track Your Commitments"}),d.jsx(xs,{sx:{mb:2}}),n.length>0?d.jsx(Fs,{children:n.map(W=>d.jsxs(oz,{children:[d.jsx(eL,{children:d.jsx(Er,{sx:{bgcolor:"primary.main"},children:d.jsx(z2,{})})}),d.jsx(ws,{primary:`Check-In: ${W.check_in_time}`,secondary:d.jsx(TO,{label:W.frequency,icon:d.jsx(B2,{}),size:"small"})}),d.jsx(Zn,{title:"More options",children:d.jsx(ut,{onClick:()=>T(W._id),children:d.jsx(F2,{})})})]},W._id))}):d.jsx(Ie,{variant:"h6",sx:{mb:2,mt:2,color:"error.main",fontWeight:"medium",textAlign:"center",padding:2,borderRadius:1,backgroundColor:"background.paper",boxShadow:2},children:"No check-ins found."}),d.jsxs(Mp,{open:a,onClose:P,children:[d.jsx(Ip,{children:"Check-In Details"}),d.jsx(Op,{children:d.jsxs(Ie,{component:"div",children:[d.jsxs(Ie,{variant:"body1",children:[d.jsx("strong",{children:"Time:"})," ",o==null?void 0:o.check_in_time]}),d.jsxs(Ie,{variant:"body1",children:[d.jsx("strong",{children:"Frequency:"})," ",o==null?void 0:o.frequency]}),d.jsxs(Ie,{variant:"body1",children:[d.jsx("strong",{children:"Status:"})," ",o==null?void 0:o.status]}),d.jsxs(Ie,{variant:"body1",children:[d.jsx("strong",{children:"Notify:"})," ",o!=null&&o.notify?"Yes":"No"]})]})}),d.jsxs(jp,{children:[d.jsx(kt,{onClick:N,startIcon:d.jsx(W2,{}),children:"Update"}),d.jsx(kt,{onClick:F,startIcon:d.jsx(U2,{}),color:"error",children:"Delete"}),d.jsx(kt,{onClick:P,children:"Close"})]})]}),d.jsxs(Mp,{open:l,onClose:P,children:[d.jsx(Ip,{children:"Confirm Deletion"}),d.jsx(Op,{children:d.jsx(n2,{children:"Are you sure you want to delete this check-in? This action cannot be undone."})}),d.jsxs(jp,{children:[d.jsx(kt,{onClick:j,color:"error",children:"Delete"}),d.jsx(kt,{onClick:P,children:"Cancel"})]})]}),d.jsx(yo,{open:y,autoHideDuration:6e3,onClose:O,children:d.jsx(iz,{onClose:O,severity:m,children:C})})]}):d.jsx(Ie,{variant:"h6",mt:"2",children:"Please log in to see your check-ins."})}const wr=({children:e})=>{const t=localStorage.getItem("token");return console.log("isAuthenticated:",t),t?e:d.jsx(OP,{to:"/auth",replace:!0})};var Rg={},sz=Te;Object.defineProperty(Rg,"__esModule",{value:!0});var H2=Rg.default=void 0,lz=sz(je()),cz=d;H2=Rg.default=(0,lz.default)((0,cz.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 14H4V8l8 5 8-5zm-8-7L4 6h16z"}),"MailOutline");function uz(){const[e,t]=p.useState(""),[n,r]=p.useState(""),[o,i]=p.useState(!1),[a,s]=p.useState(!1),l=async c=>{var u,f;c.preventDefault(),s(!0);try{const h=await Oe.post("/api/user/request_reset",{email:e});r(h.data.message),i(!1)}catch(h){r(((f=(u=h.response)==null?void 0:u.data)==null?void 0:f.message)||"Failed to send reset link. Please try again."),i(!0)}s(!1)};return d.jsx(at,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",sx:{background:"linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)","& .MuiPaper-root":{background:"#fff",padding:"30px",width:"400px",textAlign:"center"}},children:d.jsxs(En,{elevation:3,style:{padding:"30px",width:"400px",textAlign:"center"},children:[d.jsx(Ie,{variant:"h5",component:"h1",marginBottom:"20px",children:"Reset Your Password"}),d.jsxs("form",{onSubmit:l,children:[d.jsx(it,{label:"Email Address",type:"email",value:e,onChange:c=>t(c.target.value),variant:"outlined",fullWidth:!0,required:!0,margin:"normal",InputProps:{endAdornment:d.jsx(H2,{})}}),d.jsx(kt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,disabled:a,endIcon:a?null:d.jsx(ra,{}),children:a?d.jsx(_n,{size:24}):"Send Reset Link"})]}),n&&d.jsx(xr,{severity:o?"error":"success",sx:{maxWidth:"325px",mt:2},children:n})]})})}var kg={},dz=Te;Object.defineProperty(kg,"__esModule",{value:!0});var Np=kg.default=void 0,fz=dz(je()),pz=d;Np=kg.default=(0,fz.default)((0,pz.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");var Pg={},hz=Te;Object.defineProperty(Pg,"__esModule",{value:!0});var V2=Pg.default=void 0,mz=hz(je()),gz=d;V2=Pg.default=(0,mz.default)((0,gz.jsx)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l4 4 4-4H6c0-3.86 3.14-7 7-7s7 3.14 7 7-3.14 7-7 7c-1.9 0-3.62-.76-4.88-1.99L6.7 18.42C8.32 20.01 10.55 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m2 8v-1c0-1.1-.9-2-2-2s-2 .9-2 2v1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1m-1 0h-2v-1c0-.55.45-1 1-1s1 .45 1 1z"}),"LockReset");function vz(){const e=qo(),{token:t}=$s(),[n,r]=p.useState(""),[o,i]=p.useState(""),[a,s]=p.useState(!1),[l,c]=p.useState(""),[u,f]=p.useState(!1),h=async y=>{if(y.preventDefault(),n!==o){c("Passwords do not match."),f(!0);return}try{const x=await Oe.post(`/api/user/reset_password/${t}`,{password:n});c(x.data.message),f(!1),setTimeout(()=>e("/auth"),2e3)}catch(x){c(x.response.data.error),f(!0)}},w=()=>{s(!a)};return d.jsx(at,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",sx:{background:"linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)","& .MuiPaper-root":{padding:"40px",width:"400px",textAlign:"center",marginTop:"20px",borderRadius:"10px"}},children:d.jsxs(En,{elevation:6,children:[d.jsxs(Ie,{variant:"h5",component:"h1",marginBottom:"2",children:["Reset Your Password ",d.jsx(V2,{})]}),d.jsxs("form",{onSubmit:h,children:[d.jsx(it,{label:"New Password",type:a?"text":"password",value:n,onChange:y=>r(y.target.value),variant:"outlined",fullWidth:!0,required:!0,margin:"normal",InputProps:{endAdornment:d.jsx(jc,{position:"end",children:d.jsx(ut,{"aria-label":"toggle password visibility",onClick:w,children:a?d.jsx(Np,{}):d.jsx(Ac,{})})})}}),d.jsx(it,{label:"Confirm New Password",type:a?"text":"password",value:o,onChange:y=>i(y.target.value),variant:"outlined",fullWidth:!0,required:!0,margin:"normal",InputProps:{endAdornment:d.jsx(jc,{position:"end",children:d.jsx(ut,{"aria-label":"toggle password visibility",onClick:w,children:a?d.jsx(Np,{}):d.jsx(Ac,{})})})}}),d.jsx(kt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,sx:{mt:2},endIcon:d.jsx(ra,{}),children:"Reset Password"})]}),l&&d.jsx(xr,{severity:u?"error":"success",sx:{mt:2,maxWidth:"325px"},children:l})]})})}function yz(){const{user:e}=p.useContext(vr);return p.useEffect(()=>{document.body.style.backgroundColor="#f5f5f5"},[]),d.jsx(xz,{children:d.jsxs(_P,{children:[d.jsx(mn,{path:"/",element:d.jsx(wr,{children:e!=null&&e.userId?d.jsx(zN,{}):d.jsx(Iy,{})})}),d.jsx(mn,{path:"/chat",element:d.jsx(wr,{children:d.jsx(Iy,{})})}),d.jsx(mn,{path:"/reset_password/:token",element:d.jsx(vz,{})}),d.jsx(mn,{path:"/request_reset",element:d.jsx(uz,{})}),d.jsx(mn,{path:"/auth",element:d.jsx(ZN,{})}),d.jsx(mn,{path:"/user/profile/:userId",element:d.jsx(wr,{children:d.jsx(OD,{})})}),d.jsx(mn,{path:"/user/mood_logging",element:d.jsx(wr,{children:d.jsx(R6,{})})}),d.jsx(mn,{path:"/user/mood_logs",element:d.jsx(wr,{children:d.jsx(k6,{})})}),d.jsx(mn,{path:"/user/check_in",element:d.jsx(wr,{children:d.jsx(Ap,{userId:e==null?void 0:e.userId,checkInId:"",update:!1})})}),d.jsx(mn,{path:"/user/check_in/:checkInId",element:d.jsx(wr,{children:d.jsx(Ap,{userId:e==null?void 0:e.userId,update:!0})})}),d.jsx(mn,{path:"/user/chat_log_Manager",element:d.jsx(wr,{children:d.jsx(b6,{})})}),d.jsx(mn,{path:"/user/check_ins/:userId",element:d.jsx(wr,{children:d.jsx(az,{})})})]})})}function xz({children:e}){p.useContext(vr);const t=ho(),r=!["/auth","/request_reset",new RegExp("^/reset_password/[^/]+$")].some(l=>typeof l=="string"?l===t.pathname:l.test(t.pathname)),o=r?6:0,[i,a]=p.useState(!0),s=()=>{a(!i)};return d.jsxs(at,{sx:{display:"flex",maxHeight:"100vh"},children:[d.jsx(km,{}),r&&d.jsx(c6,{toggleSidebar:s}),r&&i&&d.jsx(ZD,{}),d.jsx(at,{component:"main",sx:{flexGrow:1,p:o},children:e})]})}function bz(e){const t="=".repeat((4-e.length%4)%4),n=(e+t).replace(/-/g,"+").replace(/_/g,"/"),r=window.atob(n),o=new Uint8Array(r.length);for(let i=0;i{if(t!=="granted")throw new Error("Permission not granted for Notification");return e.pushManager.getSubscription()}).then(function(t){return t||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:bz(Sz)})}).then(function(t){console.log("Subscription:",t);const n={p256dh:btoa(String.fromCharCode.apply(null,new Uint8Array(t.getKey("p256dh")))),auth:btoa(String.fromCharCode.apply(null,new Uint8Array(t.getKey("auth"))))};if(console.log("Subscription keys:",n),!n.p256dh||!n.auth)throw console.error("Subscription object:",t),new Error("Subscription keys are missing");const r={endpoint:t.endpoint,keys:n},o=wz();if(!o)throw new Error("No token found");return fetch("/api/subscribe",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`},body:JSON.stringify(r)})}).then(t=>t.json()).then(t=>console.log("Subscription response:",t)).catch(t=>console.error("Subscription failed:",t))}).catch(function(e){console.error("Service Worker registration failed:",e)})});df.createRoot(document.getElementById("root")).render(d.jsx(UP,{children:d.jsx(YP,{children:d.jsx(yz,{})})})); + `}),d.jsxs(at,{sx:{maxWidth:"100%",mx:"auto",my:2,display:"flex",flexDirection:"column",height:"91vh",borderRadius:2,boxShadow:1},children:[d.jsxs(id,{sx:{display:"flex",flexDirection:"column",height:"100%",borderRadius:2,boxShadow:3},children:[d.jsxs(Cm,{sx:{flexGrow:1,overflow:"auto",padding:3,position:"relative"},children:[d.jsx(Zn,{title:"Start a new chat",placement:"top",arrow:!0,children:d.jsx(ut,{"aria-label":"new chat",color:"primary",onClick:H,disabled:C,sx:{position:"absolute",top:5,right:5,"&:hover":{backgroundColor:"primary.main",color:"common.white"}},children:d.jsx(Um,{})})}),c.length===0&&d.jsxs(at,{sx:{display:"flex",marginBottom:2,marginTop:3},children:[d.jsx(Er,{src:Pi,sx:{width:44,height:44,marginRight:2},alt:"Aria"}),d.jsx(Ie,{variant:"h4",component:"h1",gutterBottom:!0,children:"Welcome to Mental Health Companion"})]}),d.jsx(Fs,{sx:{maxHeight:"100%",overflow:"auto"},children:c.map((_,E)=>d.jsx(Oc,{sx:{display:"flex",flexDirection:"column",alignItems:_.sender==="user"?"flex-end":"flex-start",borderRadius:2,mb:.5,p:1,border:"none","&:before":{display:"none"},"&:after":{display:"none"}},children:d.jsxs(at,{sx:{display:"flex",alignItems:"center",color:_.sender==="user"?"common.white":"text.primary",borderRadius:"16px"},children:[_.sender==="agent"&&d.jsx(Er,{src:Pi,sx:{width:36,height:36,mr:1},alt:"Aria"}),d.jsx(ws,{primary:d.jsxs(at,{sx:{display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap"},children:[_.message,t&&_.sender==="agent"&&d.jsx(ut,{onClick:()=>I(_.message),size:"small",sx:{ml:1},children:O(_.message)})]}),primaryTypographyProps:{sx:{color:_.sender==="user"?"common.white":"text.primary",bgcolor:_.sender==="user"?"primary.main":"grey.200",borderRadius:"16px",px:2,py:1,display:"inline-block"}}}),_.sender==="user"&&d.jsx(Er,{sx:{width:36,height:36,ml:1},children:d.jsx(cd,{})})]})},E))})]}),d.jsx(xs,{}),d.jsxs(at,{sx:{p:2,pb:1,display:"flex",alignItems:"center",bgcolor:"background.paper"},children:[d.jsx(it,{fullWidth:!0,variant:"outlined",placeholder:"Type your message here...",value:s,onChange:re,disabled:C,sx:{mr:1,flexGrow:1},InputProps:{endAdornment:d.jsx(jc,{position:"end",children:d.jsxs(ut,{onClick:f?ee:q,color:"primary.main","aria-label":f?"Stop recording":"Start recording",size:"large",edge:"end",disabled:C,children:[f?d.jsx(Nm,{size:"small"}):d.jsx(Lm,{size:"small"}),f&&d.jsx(_n,{size:30,sx:{color:"primary.main",position:"absolute",zIndex:1}})]})})}}),C?d.jsx(_n,{size:24}):d.jsx(Rt,{variant:"contained",color:"primary",onClick:U,disabled:C||!s.trim(),endIcon:d.jsx(ra,{}),children:"Send"})]})]}),d.jsx(yo,{open:m,autoHideDuration:6e3,onClose:F,children:d.jsx(xr,{elevation:6,variant:"filled",onClose:F,severity:T,children:k})})]})]})};var yg={},x6=Te;Object.defineProperty(yg,"__esModule",{value:!0});var I2=yg.default=void 0,b6=x6(je()),w6=d;I2=yg.default=(0,b6.default)((0,w6.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5m-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11m3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5"}),"Mood");function S6(){const[e,t]=p.useState(""),[n,r]=p.useState(""),[o,i]=p.useState(""),a=async()=>{const s=localStorage.getItem("token");if(!e||!n){i("Both mood and activities are required.");return}if(!s){i("You are not logged in.");return}try{const l=await Oe.post("/api/user/log_mood",{mood:e,activities:n},{headers:{Authorization:`Bearer ${s}`}});i(l.data.message)}catch(l){i(l.response.data.error)}};return d.jsxs("div",{className:"mood-logging-container",children:[d.jsxs("h1",{children:[d.jsx(I2,{fontSize:"large"})," Track Your Vibes "]}),d.jsxs("div",{className:"mood-logging",children:[d.jsxs("div",{className:"input-group",children:[d.jsx("label",{htmlFor:"mood-input",children:"Mood:"}),d.jsx("input",{id:"mood-input",type:"text",value:e,onChange:s=>t(s.target.value),placeholder:"Enter your current mood"}),d.jsx("label",{htmlFor:"activities-input",children:"Activities:"}),d.jsx("input",{id:"activities-input",type:"text",value:n,onChange:s=>r(s.target.value),placeholder:"What are you doing?"})]}),d.jsx(Rt,{variant:"contained",className:"submit-button",onClick:a,startIcon:d.jsx(ra,{}),children:"Log Mood"}),o&&d.jsx("div",{className:"message",children:o})]})]})}function C6(){const[e,t]=p.useState([]),[n,r]=p.useState("");p.useEffect(()=>{(async()=>{const a=localStorage.getItem("token");if(!a){r("You are not logged in.");return}try{const s=await Oe.get("/api/user/get_mood_logs",{headers:{Authorization:`Bearer ${a}`}});console.log("Received data:",s.data),t(s.data.mood_logs||[])}catch(s){r(s.response.data.error)}})()},[]);const o=i=>{const a={year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"};try{const s=i.$date;return new Date(s).toLocaleDateString("en-US",a)}catch(s){return console.error("Date parsing error:",s),"Invalid Date"}};return d.jsxs("div",{className:"mood-logs",children:[d.jsxs("h2",{children:[d.jsx(sg,{className:"icon-large"}),"Your Mood Journey"]}),n?d.jsx("div",{className:"error",children:n}):d.jsx("ul",{children:e.map((i,a)=>d.jsxs("li",{children:[d.jsxs("div",{children:[d.jsx("strong",{children:"Mood:"})," ",i.mood]}),d.jsxs("div",{children:[d.jsx("strong",{children:"Activities:"})," ",i.activities]}),d.jsxs("div",{children:[d.jsx("strong",{children:"Timestamp:"})," ",o(i.timestamp)]})]},a))})]})}function k6(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}const _2=6e4,L2=36e5;function lf(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}function R6(e,t){const n=k6(e);if(isNaN(n.getTime()))throw new RangeError("Invalid time value");const r=(t==null?void 0:t.format)??"extended";let o="";const i=r==="extended"?"-":"";{const a=lf(n.getDate(),2),s=lf(n.getMonth()+1,2);o=`${lf(n.getFullYear(),4)}${i}${s}${i}${a}`}return o}function P6(e,t){const r=M6(e);let o;if(r.date){const l=j6(r.date,2);o=O6(l.restDateString,l.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);const i=o.getTime();let a=0,s;if(r.time&&(a=I6(r.time),isNaN(a)))return new Date(NaN);if(r.timezone){if(s=_6(r.timezone),isNaN(s))return new Date(NaN)}else{const l=new Date(i+a),c=new Date(0);return c.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),c.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),c}return new Date(i+a+s)}const Sl={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},E6=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,T6=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,$6=/^([+-])(\d{2})(?::?(\d{2}))?$/;function M6(e){const t={},n=e.split(Sl.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Sl.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Sl.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const o=Sl.timezone.exec(r);o?(t.time=r.replace(o[1],""),t.timezone=o[1]):t.time=r}return t}function j6(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?o:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function O6(e,t){if(t===null)return new Date(NaN);const n=e.match(E6);if(!n)return new Date(NaN);const r=!!n[4],o=ka(n[1]),i=ka(n[2])-1,a=ka(n[3]),s=ka(n[4]),l=ka(n[5])-1;if(r)return z6(t,s,l)?L6(t,s,l):new Date(NaN);{const c=new Date(0);return!N6(t,i,a)||!D6(t,o)?new Date(NaN):(c.setUTCFullYear(t,i,Math.max(o,a)),c)}}function ka(e){return e?parseInt(e):1}function I6(e){const t=e.match(T6);if(!t)return NaN;const n=cf(t[1]),r=cf(t[2]),o=cf(t[3]);return B6(n,r,o)?n*L2+r*_2+o*1e3:NaN}function cf(e){return e&&parseFloat(e.replace(",","."))||0}function _6(e){if(e==="Z")return 0;const t=e.match($6);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return F6(r,o)?n*(r*L2+o*_2):NaN}function L6(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,i=(t-1)*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}const A6=[31,null,31,30,31,30,31,31,30,31,30,31];function A2(e){return e%400===0||e%4===0&&e%100!==0}function N6(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(A6[t]||(A2(e)?29:28))}function D6(e,t){return t>=1&&t<=(A2(e)?366:365)}function z6(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function B6(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function F6(e,t){return t>=0&&t<=59}function Lp({userId:e,update:t}){const[n,r]=p.useState(""),[o,i]=p.useState("daily"),[a,s]=p.useState(!1),{checkInId:l}=$s(),[c,u]=p.useState(!1),[f,h]=p.useState({open:!1,message:"",severity:"info"}),w=localStorage.getItem("token");p.useEffect(()=>{t&&l&&(u(!0),Oe.get(`/api/check-in/${l}`,{headers:{Authorization:`Bearer ${w}`}}).then(C=>{const v=C.data;console.log("Fetched check-in data:",v);const m=R6(P6(v.check_in_time),{representation:"date"});r(m.slice(0,16)),i(v.frequency),s(v.notify),u(!1)}).catch(C=>{console.error("Failed to fetch check-in details:",C),u(!1)}))},[t,l]);const y=async C=>{var P,j,N;if(C.preventDefault(),new Date(n)<=new Date){h({open:!0,message:"Cannot schedule check-in in the past. Please choose a future time.",severity:"error"});return}const b=t?`/api/check-in/${l}`:"/api/check-in/schedule",k={headers:{Authorization:`Bearer ${w}`,"Content-Type":"application/json"}};console.log("URL:",b);const R=t?"patch":"post",T={user_id:e,check_in_time:n,frequency:o,notify:a};console.log("Submitting:",T);try{const I=await Oe[R](b,T,k);console.log("Success:",I.data.message),h({open:!0,message:I.data.message,severity:"success"})}catch(I){console.error("Error:",((P=I.response)==null?void 0:P.data)||I);const F=((N=(j=I.response)==null?void 0:j.data)==null?void 0:N.error)||"An unexpected error occurred";h({open:!0,message:F,severity:"error"})}},x=(C,v)=>{v!=="clickaway"&&h({...f,open:!1})};return c?d.jsx(Ie,{children:"Loading..."}):d.jsxs(at,{component:"form",onSubmit:y,noValidate:!0,sx:{mt:4,padding:3,borderRadius:2,boxShadow:3},children:[d.jsx(it,{id:"datetime-local",label:"Check-in Time",type:"datetime-local",fullWidth:!0,value:n,onChange:C=>r(C.target.value),sx:{marginBottom:3},InputLabelProps:{shrink:!0},required:!0,helperText:"Select the date and time for your check-in."}),d.jsxs(sd,{fullWidth:!0,sx:{marginBottom:3},children:[d.jsx(ld,{id:"frequency-label",children:"Frequency"}),d.jsxs(Us,{labelId:"frequency-label",id:"frequency",value:o,label:"Frequency",onChange:C=>i(C.target.value),children:[d.jsx(Jn,{value:"daily",children:"Daily"}),d.jsx(Jn,{value:"weekly",children:"Weekly"}),d.jsx(Jn,{value:"monthly",children:"Monthly"})]}),d.jsx(Zn,{title:"Choose how often you want the check-ins to occur",children:d.jsx("i",{className:"fas fa-info-circle"})})]}),d.jsx(Tm,{control:d.jsx(km,{checked:a,onChange:C=>s(C.target.checked),color:"primary"}),label:"Notify me",sx:{marginBottom:2}}),d.jsx(Rt,{type:"submit",fullWidth:!0,variant:"contained",color:"primary",sx:{mt:2,mb:2,padding:"10px 0"},children:t?"Update Check-In":"Schedule Check-In"}),d.jsx(yo,{open:f.open,autoHideDuration:6e3,onClose:x,children:d.jsx(xr,{onClose:x,severity:f.severity,children:f.message})})]})}Lp.propTypes={userId:Hd.string.isRequired,checkInId:Hd.string,update:Hd.bool.isRequired};var xg={},U6=Te;Object.defineProperty(xg,"__esModule",{value:!0});var N2=xg.default=void 0,W6=U6(je()),Iy=d;N2=xg.default=(0,W6.default)([(0,Iy.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,Iy.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");var bg={},H6=Te;Object.defineProperty(bg,"__esModule",{value:!0});var D2=bg.default=void 0,V6=H6(je()),q6=d;D2=bg.default=(0,V6.default)((0,q6.jsx)("path",{d:"M7 7h10v3l4-4-4-4v3H5v6h2zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2z"}),"Repeat");var wg={},G6=Te;Object.defineProperty(wg,"__esModule",{value:!0});var z2=wg.default=void 0,K6=G6(je()),Y6=d;z2=wg.default=(0,K6.default)((0,Y6.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert");var Sg={},X6=Te;Object.defineProperty(Sg,"__esModule",{value:!0});var B2=Sg.default=void 0,Q6=X6(je()),J6=d;B2=Sg.default=(0,Q6.default)((0,J6.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");var Cg={},Z6=Te;Object.defineProperty(Cg,"__esModule",{value:!0});var F2=Cg.default=void 0,ez=Z6(je()),tz=d;F2=Cg.default=(0,ez.default)((0,tz.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");const nz=ie(id)(({theme:e})=>({marginBottom:e.spacing(2),padding:e.spacing(2),display:"flex",alignItems:"center",justifyContent:"space-between",transition:"transform 0.1s ease-in-out","&:hover":{transform:"scale(1.01)",boxShadow:e.shadows[3]}})),rz=nn.forwardRef(function(t,n){return d.jsx(xr,{elevation:6,ref:n,variant:"filled",...t})});function oz(){const{userId:e}=$s(),t=qo(),[n,r]=p.useState([]),[o,i]=p.useState(null),[a,s]=p.useState(!1),[l,c]=p.useState(!1),[u,f]=p.useState(!1),[h,w]=p.useState(""),[y,x]=p.useState(!1),[C,v]=p.useState(""),[m,b]=p.useState("info"),k=localStorage.getItem("token");p.useEffect(()=>{R()},[e]);const R=async()=>{if(!e){w("User not logged in");return}if(!k){w("No token found, please log in again");return}f(!0);try{const H=await Oe.get(`/api/check-in/all?user_id=${e}`,{headers:{Authorization:`Bearer ${k}`}});if(console.log("API Response:",H.data),Array.isArray(H.data)&&H.data.every(U=>U._id&&U._id.$oid&&U.check_in_time&&U.check_in_time.$date)){const U=H.data.map(q=>({...q,_id:q._id.$oid,check_in_time:new Date(q.check_in_time.$date).toLocaleString()}));r(U)}else console.error("Data received is not in expected array format:",H.data),w("Unexpected data format");f(!1)}catch(H){console.error("Error during fetch:",H),w(H.message),f(!1)}},T=H=>{const U=n.find(q=>q._id===H);U&&(i(U),console.log("Selected check-in for details or update:",U),s(!0))},P=()=>{s(!1),c(!1)},j=async()=>{if(o){try{await Oe.delete(`/api/check-in/${o._id}`,{headers:{Authorization:`Bearer ${k}`}}),v("Check-in deleted successfully"),b("success"),R(),P()}catch{v("Failed to delete check-in"),b("error")}x(!0)}},N=()=>{t(`/user/check_in/${o._id}`),console.log("Redirecting to update check-in form",o._id)},I=(H,U)=>{U!=="clickaway"&&x(!1)},F=()=>{c(!0)};return e?u?d.jsx(Ie,{variant:"h6",mt:"2",children:"Loading..."}):d.jsxs(at,{sx:{margin:3,maxWidth:600,mx:"auto",maxHeight:"91vh",overflow:"auto"},children:[d.jsx(Ie,{variant:"h4",gutterBottom:!0,children:"Track Your Commitments"}),d.jsx(xs,{sx:{mb:2}}),n.length>0?d.jsx(Fs,{children:n.map(H=>d.jsxs(nz,{children:[d.jsx(J_,{children:d.jsx(Er,{sx:{bgcolor:"primary.main"},children:d.jsx(N2,{})})}),d.jsx(ws,{primary:`Check-In: ${H.check_in_time}`,secondary:d.jsx(PO,{label:H.frequency,icon:d.jsx(D2,{}),size:"small"})}),d.jsx(Zn,{title:"More options",children:d.jsx(ut,{onClick:()=>T(H._id),children:d.jsx(z2,{})})})]},H._id))}):d.jsx(Ie,{variant:"h6",sx:{mb:2,mt:2,color:"error.main",fontWeight:"medium",textAlign:"center",padding:2,borderRadius:1,backgroundColor:"background.paper",boxShadow:2},children:"No check-ins found."}),d.jsxs($p,{open:a,onClose:P,children:[d.jsx(Op,{children:"Check-In Details"}),d.jsx(jp,{children:d.jsxs(Ie,{component:"div",children:[d.jsxs(Ie,{variant:"body1",children:[d.jsx("strong",{children:"Time:"})," ",o==null?void 0:o.check_in_time]}),d.jsxs(Ie,{variant:"body1",children:[d.jsx("strong",{children:"Frequency:"})," ",o==null?void 0:o.frequency]}),d.jsxs(Ie,{variant:"body1",children:[d.jsx("strong",{children:"Status:"})," ",o==null?void 0:o.status]}),d.jsxs(Ie,{variant:"body1",children:[d.jsx("strong",{children:"Notify:"})," ",o!=null&&o.notify?"Yes":"No"]})]})}),d.jsxs(Mp,{children:[d.jsx(Rt,{onClick:N,startIcon:d.jsx(F2,{}),children:"Update"}),d.jsx(Rt,{onClick:F,startIcon:d.jsx(B2,{}),color:"error",children:"Delete"}),d.jsx(Rt,{onClick:P,children:"Close"})]})]}),d.jsxs($p,{open:l,onClose:P,children:[d.jsx(Op,{children:"Confirm Deletion"}),d.jsx(jp,{children:d.jsx(t2,{children:"Are you sure you want to delete this check-in? This action cannot be undone."})}),d.jsxs(Mp,{children:[d.jsx(Rt,{onClick:j,color:"error",children:"Delete"}),d.jsx(Rt,{onClick:P,children:"Cancel"})]})]}),d.jsx(yo,{open:y,autoHideDuration:6e3,onClose:I,children:d.jsx(rz,{onClose:I,severity:m,children:C})})]}):d.jsx(Ie,{variant:"h6",mt:"2",children:"Please log in to see your check-ins."})}const wr=({children:e})=>{const t=localStorage.getItem("token");return console.log("isAuthenticated:",t),t?e:d.jsx(MP,{to:"/auth",replace:!0})};var kg={},iz=Te;Object.defineProperty(kg,"__esModule",{value:!0});var U2=kg.default=void 0,az=iz(je()),sz=d;U2=kg.default=(0,az.default)((0,sz.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 14H4V8l8 5 8-5zm-8-7L4 6h16z"}),"MailOutline");function lz(){const[e,t]=p.useState(""),[n,r]=p.useState(""),[o,i]=p.useState(!1),[a,s]=p.useState(!1),l=async c=>{var u,f;c.preventDefault(),s(!0);try{const h=await Oe.post("/api/user/request_reset",{email:e});r(h.data.message),i(!1)}catch(h){r(((f=(u=h.response)==null?void 0:u.data)==null?void 0:f.message)||"Failed to send reset link. Please try again."),i(!0)}s(!1)};return d.jsx(at,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",sx:{background:"linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)","& .MuiPaper-root":{background:"#fff",padding:"30px",width:"400px",textAlign:"center"}},children:d.jsxs(En,{elevation:3,style:{padding:"30px",width:"400px",textAlign:"center"},children:[d.jsx(Ie,{variant:"h5",component:"h1",marginBottom:"20px",children:"Reset Your Password"}),d.jsxs("form",{onSubmit:l,children:[d.jsx(it,{label:"Email Address",type:"email",value:e,onChange:c=>t(c.target.value),variant:"outlined",fullWidth:!0,required:!0,margin:"normal",InputProps:{endAdornment:d.jsx(U2,{})}}),d.jsx(Rt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,disabled:a,endIcon:a?null:d.jsx(ra,{}),children:a?d.jsx(_n,{size:24}):"Send Reset Link"})]}),n&&d.jsx(xr,{severity:o?"error":"success",sx:{maxWidth:"325px",mt:2},children:n})]})})}var Rg={},cz=Te;Object.defineProperty(Rg,"__esModule",{value:!0});var Ap=Rg.default=void 0,uz=cz(je()),dz=d;Ap=Rg.default=(0,uz.default)((0,dz.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");var Pg={},fz=Te;Object.defineProperty(Pg,"__esModule",{value:!0});var W2=Pg.default=void 0,pz=fz(je()),hz=d;W2=Pg.default=(0,pz.default)((0,hz.jsx)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l4 4 4-4H6c0-3.86 3.14-7 7-7s7 3.14 7 7-3.14 7-7 7c-1.9 0-3.62-.76-4.88-1.99L6.7 18.42C8.32 20.01 10.55 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m2 8v-1c0-1.1-.9-2-2-2s-2 .9-2 2v1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1m-1 0h-2v-1c0-.55.45-1 1-1s1 .45 1 1z"}),"LockReset");function mz(){const e=qo(),{token:t}=$s(),[n,r]=p.useState(""),[o,i]=p.useState(""),[a,s]=p.useState(!1),[l,c]=p.useState(""),[u,f]=p.useState(!1),h=async y=>{if(y.preventDefault(),n!==o){c("Passwords do not match."),f(!0);return}try{const x=await Oe.post(`/api/user/reset_password/${t}`,{password:n});c(x.data.message),f(!1),setTimeout(()=>e("/auth"),2e3)}catch(x){c(x.response.data.error),f(!0)}},w=()=>{s(!a)};return d.jsx(at,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",sx:{background:"linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)","& .MuiPaper-root":{padding:"40px",width:"400px",textAlign:"center",marginTop:"20px",borderRadius:"10px"}},children:d.jsxs(En,{elevation:6,children:[d.jsxs(Ie,{variant:"h5",component:"h1",marginBottom:"2",children:["Reset Your Password ",d.jsx(W2,{})]}),d.jsxs("form",{onSubmit:h,children:[d.jsx(it,{label:"New Password",type:a?"text":"password",value:n,onChange:y=>r(y.target.value),variant:"outlined",fullWidth:!0,required:!0,margin:"normal",InputProps:{endAdornment:d.jsx(jc,{position:"end",children:d.jsx(ut,{"aria-label":"toggle password visibility",onClick:w,children:a?d.jsx(Ap,{}):d.jsx(Ac,{})})})}}),d.jsx(it,{label:"Confirm New Password",type:a?"text":"password",value:o,onChange:y=>i(y.target.value),variant:"outlined",fullWidth:!0,required:!0,margin:"normal",InputProps:{endAdornment:d.jsx(jc,{position:"end",children:d.jsx(ut,{"aria-label":"toggle password visibility",onClick:w,children:a?d.jsx(Ap,{}):d.jsx(Ac,{})})})}}),d.jsx(Rt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,sx:{mt:2},endIcon:d.jsx(ra,{}),children:"Reset Password"})]}),l&&d.jsx(xr,{severity:u?"error":"success",sx:{mt:2,maxWidth:"325px"},children:l})]})})}function gz(){const{user:e}=p.useContext(vr);return p.useEffect(()=>{document.body.style.backgroundColor="#f5f5f5"},[]),d.jsx(vz,{children:d.jsxs(OP,{children:[d.jsx(mn,{path:"/",element:d.jsx(wr,{children:e!=null&&e.userId?d.jsx(NN,{}):d.jsx(Oy,{})})}),d.jsx(mn,{path:"/chat",element:d.jsx(wr,{children:d.jsx(Oy,{})})}),d.jsx(mn,{path:"/reset_password/:token",element:d.jsx(mz,{})}),d.jsx(mn,{path:"/request_reset",element:d.jsx(lz,{})}),d.jsx(mn,{path:"/auth",element:d.jsx(QN,{})}),d.jsx(mn,{path:"/user/profile/:userId",element:d.jsx(wr,{children:d.jsx(MD,{})})}),d.jsx(mn,{path:"/user/mood_logging",element:d.jsx(wr,{children:d.jsx(S6,{})})}),d.jsx(mn,{path:"/user/mood_logs",element:d.jsx(wr,{children:d.jsx(C6,{})})}),d.jsx(mn,{path:"/user/check_in",element:d.jsx(wr,{children:d.jsx(Lp,{userId:e==null?void 0:e.userId,checkInId:"",update:!1})})}),d.jsx(mn,{path:"/user/check_in/:checkInId",element:d.jsx(wr,{children:d.jsx(Lp,{userId:e==null?void 0:e.userId,update:!0})})}),d.jsx(mn,{path:"/user/chat_log_Manager",element:d.jsx(wr,{children:d.jsx(y6,{})})}),d.jsx(mn,{path:"/user/check_ins/:userId",element:d.jsx(wr,{children:d.jsx(oz,{})})})]})})}function vz({children:e}){p.useContext(vr);const t=ho(),r=!["/auth","/request_reset",new RegExp("^/reset_password/[^/]+$")].some(l=>typeof l=="string"?l===t.pathname:l.test(t.pathname)),o=r?6:0,[i,a]=p.useState(!0),s=()=>{a(!i)};return d.jsxs(at,{sx:{display:"flex",maxHeight:"100vh"},children:[d.jsx(Rm,{}),r&&d.jsx(s6,{toggleSidebar:s}),r&&i&&d.jsx(QD,{}),d.jsx(at,{component:"main",sx:{flexGrow:1,p:o},children:e})]})}function yz(e){const t="=".repeat((4-e.length%4)%4),n=(e+t).replace(/-/g,"+").replace(/_/g,"/"),r=window.atob(n),o=new Uint8Array(r.length);for(let i=0;i{if(t!=="granted")throw new Error("Permission not granted for Notification");return e.pushManager.getSubscription()}).then(function(t){return t||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:yz(bz)})}).then(function(t){console.log("Subscription:",t);const n={p256dh:btoa(String.fromCharCode.apply(null,new Uint8Array(t.getKey("p256dh")))),auth:btoa(String.fromCharCode.apply(null,new Uint8Array(t.getKey("auth"))))};if(console.log("Subscription keys:",n),!n.p256dh||!n.auth)throw console.error("Subscription object:",t),new Error("Subscription keys are missing");const r={endpoint:t.endpoint,keys:n},o=xz();if(!o)throw new Error("No token found");return fetch("/api/subscribe",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`},body:JSON.stringify(r)})}).then(t=>t.json()).then(t=>console.log("Subscription response:",t)).catch(t=>console.error("Subscription failed:",t))}).catch(function(e){console.error("Service Worker registration failed:",e)})});uf.createRoot(document.getElementById("root")).render(d.jsx(BP,{children:d.jsx(GP,{children:d.jsx(gz,{})})})); diff --git a/client/dist/index.html b/client/dist/index.html index 7ecaa4f9..0249de86 100644 --- a/client/dist/index.html +++ b/client/dist/index.html @@ -10,7 +10,7 @@ content="Web site created using create-react-app" /> Mental Health App - + diff --git a/client/src/Components/chatComponent.jsx b/client/src/Components/chatComponent.jsx index 046650c5..eee7bb07 100644 --- a/client/src/Components/chatComponent.jsx +++ b/client/src/Components/chatComponent.jsx @@ -207,120 +207,98 @@ const ChatComponent = () => { }, [input, userId, chatId, turnId]); - const supportsWebM = () => { - // This is a simple test; for more robust detection, consider specific codec checks - const mediaRecorderType = MediaRecorder.isTypeSupported ? MediaRecorder.isTypeSupported('audio/webm; codecs=opus') : false; - return mediaRecorderType; - }; // Function to handle recording start - const startRecording = () => { - navigator.mediaDevices.getUserMedia({ audio: { - sampleRate: 44100, // iOS supports 44.1 kHz sample rate - channelCount: 1, // Mono audio + // Function to check supported MIME types for recording +const getSupportedMimeType = () => { + if (MediaRecorder.isTypeSupported('audio/webm; codecs=opus')) { + return 'audio/webm; codecs=opus'; + } else if (MediaRecorder.isTypeSupported('audio/mp4')) { + // Fallback for Safari on iOS + return 'audio/mp4'; + } else { + // Default to WAV if no other formats are supported + return 'audio/wav'; + } +}; + +// Function to start recording +const startRecording = () => { + navigator.mediaDevices.getUserMedia({ + audio: { + sampleRate: 44100, + channelCount: 1, volume: 1.0, echoCancellation: true - }}) - .then(stream => { - audioChunksRef.current = []; // Clear the ref at the start of recording - const isWebMSupported = supportsWebM(); - let recorder; - const options = { type: 'audio', - mimeType: isWebMSupported ? 'audio/webm; codecs=opus' : 'audio/wav' }; - if (isWebMSupported) { - recorder = new MediaRecorder(stream, options); - } else { - // RecordRTC options need to be adjusted if RecordRTC is used - recorder = new RecordRTC(stream, { - type: 'audio', - mimeType: 'audio/wav', - recorderType: RecordRTC.StereoAudioRecorder, - numberOfAudioChannels: 1 - }); - recorder.startRecording(); - } - recorder.ondataavailable = (e) => { - console.log('Data available:', e.data.size); // Log size to check if data is present - audioChunksRef.current.push(e.data); - }; + } + }) + .then(stream => { + audioChunksRef.current = []; + const mimeType = getSupportedMimeType(); + let recorder = new MediaRecorder(stream, { mimeType }); + + recorder.ondataavailable = e => { + audioChunksRef.current.push(e.data); + }; - if (recorder instanceof MediaRecorder) { - recorder.start(); - } - setMediaRecorder(recorder); - setIsRecording(true); - }).catch(error => { - console.error('Error accessing microphone:', error); - setOpen(true); - setSnackbarMessage('Unable to access microphone: ' + error.message); - setSnackbarSeverity('error'); - }); - }; + recorder.start(); + setMediaRecorder(recorder); + setIsRecording(true); + }) + .catch(error => { + console.error('Error accessing microphone:', error); + // Handle error - show message to user + }); +}; - // Function to handle recording stop - const stopRecording = () => { - if (mediaRecorder) { - // First ensure all tracks are stopped - if (mediaRecorder.stream && mediaRecorder.stream.active) { - mediaRecorder.stream.getTracks().forEach(track => track.stop()); - } - - mediaRecorder.onstop = () => { - sendAudioToServer(audioChunksRef.current, { type: mediaRecorder.mimeType }); - setIsRecording(false); - setMediaRecorder(null); - }; - - // Now call stop on the recorder if it exists - if (mediaRecorder instanceof MediaRecorder) { - mediaRecorder.stop(); - } else if (typeof mediaRecorder.stopRecording === 'function') { - mediaRecorder.stopRecording(function() { - mediaRecorder.getBlob(); - // Do something with the blob - }); - } +// Function to stop recording +const stopRecording = () => { + if (mediaRecorder) { + mediaRecorder.stream.getTracks().forEach(track => track.stop()); + + mediaRecorder.onstop = () => { + const mimeType = mediaRecorder.mimeType; + const audioBlob = new Blob(audioChunksRef.current, { type: mimeType }); + sendAudioToServer(audioBlob); + setIsRecording(false); + setMediaRecorder(null); + }; + + mediaRecorder.stop(); } }; - - const sendAudioToServer = () => { - const mimeType = mediaRecorder.mimeType; // Ensure this is defined in your recorder setup - console.log('Audio chunks size:', audioChunksRef.current.reduce((sum, chunk) => sum + chunk.size, 0)); - const audioBlob = new Blob(audioChunksRef.current, { type: mimeType }); - if (audioBlob.size === 0) { - console.error('Audio Blob is empty'); - setSnackbarMessage('Recording is empty. Please try again.'); - setSnackbarSeverity('error'); - setOpen(true); - return; - } - console.log(`Sending audio blob of size: ${audioBlob.size} bytes`); - const formData = new FormData(); - formData.append('audio', audioBlob); - setIsLoading(true); +// Function to send audio to server +const sendAudioToServer = (audioBlob) => { + if (audioBlob.size === 0) { + console.error('Audio Blob is empty'); + // Handle error - show message to user + return; + } - axios.post('/api/ai/mental_health/voice-to-text', formData, { - headers: { - 'Content-Type': 'multipart/form-data' - } - }) - .then(response => { - const { message } = response.data; - setInput(message); - sendMessage(); - }) - .catch(error => { - console.error('Error uploading audio:', error); - setOpen(true); - setSnackbarMessage('Error processing voice input: ' + error.message); - setSnackbarSeverity('error'); - }) - .finally(() => { - setIsLoading(false); - }); - }; // Remove audioChunks from dependencies to prevent re-creation + const formData = new FormData(); + formData.append('audio', audioBlob); + setIsLoading(true); + + axios.post('/api/ai/mental_health/voice-to-text', formData, { + headers: { + 'Content-Type': 'multipart/form-data' + } + }) + .then(response => { + const { message } = response.data; + setInput(message); + sendMessage(); + }) + .catch(error => { + console.error('Error uploading audio:', error); + // Handle error - show message to user + }) + .finally(() => { + setIsLoading(false); + }); +};// Remove audioChunks from dependencies to prevent re-creation // Handle input changes From 5c4eb1229b02d98bea9d0883bc5db9898584ee39 Mon Sep 17 00:00:00 2001 From: DHRUMIL PATEL <123137675+dhrumilp12@users.noreply.github.com> Date: Wed, 26 Jun 2024 09:02:32 -0400 Subject: [PATCH 37/38] chat interface --- .../{index-BJD7cLZJ.js => index-fGieArf4.js} | 88 +++--- client/dist/index.html | 2 +- client/src/Components/chatInterface.jsx | 286 +++++++++++------- 3 files changed, 226 insertions(+), 150 deletions(-) rename client/dist/assets/{index-BJD7cLZJ.js => index-fGieArf4.js} (52%) diff --git a/client/dist/assets/index-BJD7cLZJ.js b/client/dist/assets/index-fGieArf4.js similarity index 52% rename from client/dist/assets/index-BJD7cLZJ.js rename to client/dist/assets/index-fGieArf4.js index 611cb06a..f5417474 100644 --- a/client/dist/assets/index-BJD7cLZJ.js +++ b/client/dist/assets/index-fGieArf4.js @@ -1,4 +1,4 @@ -function K2(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var rt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Np(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Lr(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var _y={exports:{}},Nc={},Ly={exports:{}},_e={};/** +function Y2(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var ot=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Np(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Lr(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var _y={exports:{}},Nc={},Ly={exports:{}},_e={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function K2(e,t){for(var n=0;n>>1,$=O[g];if(0>>1;go(B,E))V<$&&0>o(M,B)?(O[g]=M,O[V]=E,g=V):(O[g]=B,O[L]=E,g=L);else if(V<$&&0>o(M,E))O[g]=M,O[V]=E,g=V;else break e}}return _}function o(O,_){var E=O.sortIndex-_.sortIndex;return E!==0?E:O.id-_.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,f=null,h=3,w=!1,y=!1,x=!1,C=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(O){for(var _=n(c);_!==null;){if(_.callback===null)r(c);else if(_.startTime<=O)r(c),_.sortIndex=_.expirationTime,t(l,_);else break;_=n(c)}}function k(O){if(x=!1,b(O),!y)if(n(l)!==null)y=!0,J(R);else{var _=n(c);_!==null&&re(k,_.startTime-O)}}function R(O,_){y=!1,x&&(x=!1,v(j),j=-1),w=!0;var E=h;try{for(b(_),f=n(l);f!==null&&(!(f.expirationTime>_)||O&&!F());){var g=f.callback;if(typeof g=="function"){f.callback=null,h=f.priorityLevel;var $=g(f.expirationTime<=_);_=e.unstable_now(),typeof $=="function"?f.callback=$:f===n(l)&&r(l),b(_)}else r(l);f=n(l)}if(f!==null)var z=!0;else{var L=n(c);L!==null&&re(k,L.startTime-_),z=!1}return z}finally{f=null,h=E,w=!1}}var T=!1,P=null,j=-1,N=5,I=-1;function F(){return!(e.unstable_now()-IO||125g?(O.sortIndex=E,t(c,O),n(l)===null&&O===n(c)&&(x?(v(j),j=-1):x=!0,re(k,E-g))):(O.sortIndex=$,t(l,O),y||w||(y=!0,J(R))),O},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(O){var _=h;return function(){var E=h;h=_;try{return O.apply(this,arguments)}finally{h=E}}}})(Gy);qy.exports=Gy;var gS=qy.exports;/** + */(function(e){function t(I,B){var $=I.length;I.push(B);e:for(;0<$;){var v=$-1>>>1,T=I[v];if(0>>1;vo(N,$))Ho(j,N)?(I[v]=j,I[H]=$,v=H):(I[v]=N,I[_]=$,v=_);else if(Ho(j,$))I[v]=j,I[H]=$,v=H;else break e}}return B}function o(I,B){var $=I.sortIndex-B.sortIndex;return $!==0?$:I.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],d=1,f=null,m=3,w=!1,y=!1,x=!1,k=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(I){for(var B=n(c);B!==null;){if(B.callback===null)r(c);else if(B.startTime<=I)r(c),B.sortIndex=B.expirationTime,t(l,B);else break;B=n(c)}}function C(I){if(x=!1,b(I),!y)if(n(l)!==null)y=!0,J(R);else{var B=n(c);B!==null&&re(C,B.startTime-I)}}function R(I,B){y=!1,x&&(x=!1,g(M),M=-1),w=!0;var $=m;try{for(b(B),f=n(l);f!==null&&(!(f.expirationTime>B)||I&&!F());){var v=f.callback;if(typeof v=="function"){f.callback=null,m=f.priorityLevel;var T=v(f.expirationTime<=B);B=e.unstable_now(),typeof T=="function"?f.callback=T:f===n(l)&&r(l),b(B)}else r(l);f=n(l)}if(f!==null)var L=!0;else{var _=n(c);_!==null&&re(C,_.startTime-B),L=!1}return L}finally{f=null,m=$,w=!1}}var E=!1,P=null,M=-1,D=5,O=-1;function F(){return!(e.unstable_now()-OI||125v?(I.sortIndex=$,t(c,I),n(l)===null&&I===n(c)&&(x?(g(M),M=-1):x=!0,re(C,$-v))):(I.sortIndex=T,t(l,I),y||w||(y=!0,J(R))),I},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(I){var B=m;return function(){var $=m;m=B;try{return I.apply(this,arguments)}finally{m=$}}}})(Gy);qy.exports=Gy;var vS=qy.exports;/** * @license React * react-dom.production.min.js * @@ -30,19 +30,19 @@ function K2(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),df=Object.prototype.hasOwnProperty,yS=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Mg={},jg={};function xS(e){return df.call(jg,e)?!0:df.call(Mg,e)?!1:yS.test(e)?jg[e]=!0:(Mg[e]=!0,!1)}function bS(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function wS(e,t,n,r){if(t===null||typeof t>"u"||bS(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Zt(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Nt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Nt[e]=new Zt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Nt[t]=new Zt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Nt[e]=new Zt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Nt[e]=new Zt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Nt[e]=new Zt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Nt[e]=new Zt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Nt[e]=new Zt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Nt[e]=new Zt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Nt[e]=new Zt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Up=/[\-:]([a-z])/g;function Wp(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Up,Wp);Nt[t]=new Zt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Up,Wp);Nt[t]=new Zt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Up,Wp);Nt[t]=new Zt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Nt[e]=new Zt(e,1,!1,e.toLowerCase(),null,!1,!1)});Nt.xlinkHref=new Zt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Nt[e]=new Zt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Hp(e,t,n,r){var o=Nt.hasOwnProperty(t)?Nt[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),df=Object.prototype.hasOwnProperty,xS=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,jg={},Mg={};function bS(e){return df.call(Mg,e)?!0:df.call(jg,e)?!1:xS.test(e)?Mg[e]=!0:(jg[e]=!0,!1)}function wS(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function SS(e,t,n,r){if(t===null||typeof t>"u"||wS(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Zt(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Nt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Nt[e]=new Zt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Nt[t]=new Zt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Nt[e]=new Zt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Nt[e]=new Zt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Nt[e]=new Zt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Nt[e]=new Zt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Nt[e]=new Zt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Nt[e]=new Zt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Nt[e]=new Zt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Up=/[\-:]([a-z])/g;function Wp(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Up,Wp);Nt[t]=new Zt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Up,Wp);Nt[t]=new Zt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Up,Wp);Nt[t]=new Zt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Nt[e]=new Zt(e,1,!1,e.toLowerCase(),null,!1,!1)});Nt.xlinkHref=new Zt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Nt[e]=new Zt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Vp(e,t,n,r){var o=Nt.hasOwnProperty(t)?Nt[t]:null;(o!==null?o.type!==0:r||!(2s||o[a]!==i[s]){var l=` -`+o[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{pd=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ra(e):""}function SS(e){switch(e.tag){case 5:return Ra(e.type);case 16:return Ra("Lazy");case 13:return Ra("Suspense");case 19:return Ra("SuspenseList");case 0:case 2:case 15:return e=hd(e.type,!1),e;case 11:return e=hd(e.type.render,!1),e;case 1:return e=hd(e.type,!0),e;default:return""}}function mf(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ai:return"Fragment";case ii:return"Portal";case ff:return"Profiler";case Vp:return"StrictMode";case pf:return"Suspense";case hf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Xy:return(e.displayName||"Context")+".Consumer";case Yy:return(e._context.displayName||"Context")+".Provider";case qp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Gp:return t=e.displayName||null,t!==null?t:mf(e.type)||"Memo";case Vr:t=e._payload,e=e._init;try{return mf(e(t))}catch{}}return null}function CS(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return mf(t);case 8:return t===Vp?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function lo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Jy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function kS(e){var t=Jy(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ks(e){e._valueTracker||(e._valueTracker=kS(e))}function Zy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Jy(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ql(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function gf(e,t){var n=t.checked;return pt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ig(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=lo(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function e1(e,t){t=t.checked,t!=null&&Hp(e,"checked",t,!1)}function vf(e,t){e1(e,t);var n=lo(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?yf(e,t.type,n):t.hasOwnProperty("defaultValue")&&yf(e,t.type,lo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function _g(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function yf(e,t,n){(t!=="number"||ql(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Pa=Array.isArray;function yi(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Ys.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ga(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ja={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},RS=["Webkit","ms","Moz","O"];Object.keys(ja).forEach(function(e){RS.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ja[t]=ja[e]})});function o1(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ja.hasOwnProperty(e)&&ja[e]?(""+t).trim():t+"px"}function i1(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=o1(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var PS=pt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function wf(e,t){if(t){if(PS[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ce(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ce(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ce(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ce(62))}}function Sf(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Cf=null;function Kp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var kf=null,xi=null,bi=null;function Ng(e){if(e=Rs(e)){if(typeof kf!="function")throw Error(ce(280));var t=e.stateNode;t&&(t=Uc(t),kf(e.stateNode,e.type,t))}}function a1(e){xi?bi?bi.push(e):bi=[e]:xi=e}function s1(){if(xi){var e=xi,t=bi;if(bi=xi=null,Ng(e),t)for(e=0;e>>=0,e===0?32:31-(NS(e)/DS|0)|0}var Xs=64,Qs=4194304;function Ea(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Xl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=Ea(s):(i&=a,i!==0&&(r=Ea(i)))}else a=n&~o,a!==0?r=Ea(a):i!==0&&(r=Ea(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Cs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-er(t),e[t]=n}function US(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ia),qg=" ",Gg=!1;function E1(e,t){switch(e){case"keyup":return gC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function T1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var si=!1;function yC(e,t){switch(e){case"compositionend":return T1(t);case"keypress":return t.which!==32?null:(Gg=!0,qg);case"textInput":return e=t.data,e===qg&&Gg?null:e;default:return null}}function xC(e,t){if(si)return e==="compositionend"||!nh&&E1(e,t)?(e=R1(),Pl=Zp=Yr=null,si=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Qg(n)}}function O1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?O1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function I1(){for(var e=window,t=ql();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ql(e.document)}return t}function rh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function TC(e){var t=I1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&O1(n.ownerDocument.documentElement,n)){if(r!==null&&rh(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Jg(n,i);var a=Jg(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,li=null,Mf=null,La=null,jf=!1;function Zg(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;jf||li==null||li!==ql(r)||(r=li,"selectionStart"in r&&rh(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),La&&Za(La,r)||(La=r,r=Zl(Mf,"onSelect"),0di||(e.current=Nf[di],Nf[di]=null,di--)}function Je(e,t){di++,Nf[di]=e.current,e.current=t}var co={},Wt=fo(co),on=fo(!1),_o=co;function Ti(e,t){var n=e.type.contextTypes;if(!n)return co;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function an(e){return e=e.childContextTypes,e!=null}function tc(){et(on),et(Wt)}function av(e,t,n){if(Wt.current!==co)throw Error(ce(168));Je(Wt,t),Je(on,n)}function U1(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(ce(108,CS(e)||"Unknown",o));return pt({},n,r)}function nc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||co,_o=Wt.current,Je(Wt,e),Je(on,on.current),!0}function sv(e,t,n){var r=e.stateNode;if(!r)throw Error(ce(169));n?(e=U1(e,t,_o),r.__reactInternalMemoizedMergedChildContext=e,et(on),et(Wt),Je(Wt,e)):et(on),Je(on,n)}var Cr=null,Wc=!1,Td=!1;function W1(e){Cr===null?Cr=[e]:Cr.push(e)}function BC(e){Wc=!0,W1(e)}function po(){if(!Td&&Cr!==null){Td=!0;var e=0,t=He;try{var n=Cr;for(He=1;e>=a,o-=a,Rr=1<<32-er(t)+o|n<j?(N=P,P=null):N=P.sibling;var I=h(v,P,b[j],k);if(I===null){P===null&&(P=N);break}e&&P&&I.alternate===null&&t(v,P),m=i(I,m,j),T===null?R=I:T.sibling=I,T=I,P=N}if(j===b.length)return n(v,P),st&&wo(v,j),R;if(P===null){for(;jj?(N=P,P=null):N=P.sibling;var F=h(v,P,I.value,k);if(F===null){P===null&&(P=N);break}e&&P&&F.alternate===null&&t(v,P),m=i(F,m,j),T===null?R=F:T.sibling=F,T=F,P=N}if(I.done)return n(v,P),st&&wo(v,j),R;if(P===null){for(;!I.done;j++,I=b.next())I=f(v,I.value,k),I!==null&&(m=i(I,m,j),T===null?R=I:T.sibling=I,T=I);return st&&wo(v,j),R}for(P=r(v,P);!I.done;j++,I=b.next())I=w(P,v,j,I.value,k),I!==null&&(e&&I.alternate!==null&&P.delete(I.key===null?j:I.key),m=i(I,m,j),T===null?R=I:T.sibling=I,T=I);return e&&P.forEach(function(H){return t(v,H)}),st&&wo(v,j),R}function C(v,m,b,k){if(typeof b=="object"&&b!==null&&b.type===ai&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Gs:e:{for(var R=b.key,T=m;T!==null;){if(T.key===R){if(R=b.type,R===ai){if(T.tag===7){n(v,T.sibling),m=o(T,b.props.children),m.return=v,v=m;break e}}else if(T.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===Vr&&uv(R)===T.type){n(v,T.sibling),m=o(T,b.props),m.ref=fa(v,T,b),m.return=v,v=m;break e}n(v,T);break}else t(v,T);T=T.sibling}b.type===ai?(m=jo(b.props.children,v.mode,k,b.key),m.return=v,v=m):(k=_l(b.type,b.key,b.props,null,v.mode,k),k.ref=fa(v,m,b),k.return=v,v=k)}return a(v);case ii:e:{for(T=b.key;m!==null;){if(m.key===T)if(m.tag===4&&m.stateNode.containerInfo===b.containerInfo&&m.stateNode.implementation===b.implementation){n(v,m.sibling),m=o(m,b.children||[]),m.return=v,v=m;break e}else{n(v,m);break}else t(v,m);m=m.sibling}m=Ad(b,v.mode,k),m.return=v,v=m}return a(v);case Vr:return T=b._init,C(v,m,T(b._payload),k)}if(Pa(b))return y(v,m,b,k);if(sa(b))return x(v,m,b,k);ol(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,m!==null&&m.tag===6?(n(v,m.sibling),m=o(m,b),m.return=v,v=m):(n(v,m),m=Ld(b,v.mode,k),m.return=v,v=m),a(v)):n(v,m)}return C}var Mi=G1(!0),K1=G1(!1),ic=fo(null),ac=null,hi=null,sh=null;function lh(){sh=hi=ac=null}function ch(e){var t=ic.current;et(ic),e._currentValue=t}function Bf(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Si(e,t){ac=e,sh=hi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(rn=!0),e.firstContext=null)}function Dn(e){var t=e._currentValue;if(sh!==e)if(e={context:e,memoizedValue:t,next:null},hi===null){if(ac===null)throw Error(ce(308));hi=e,ac.dependencies={lanes:0,firstContext:e}}else hi=hi.next=e;return t}var Po=null;function uh(e){Po===null?Po=[e]:Po.push(e)}function Y1(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,uh(t)):(n.next=o.next,o.next=n),t.interleaved=n,jr(e,r)}function jr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var qr=!1;function dh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function X1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Tr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ro(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ze&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,jr(e,n)}return o=r.interleaved,o===null?(t.next=t,uh(r)):(t.next=o.next,o.next=t),r.interleaved=t,jr(e,n)}function Tl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xp(e,n)}}function dv(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function sc(e,t,n,r){var o=e.updateQueue;qr=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?i=c:a.next=c,a=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==a&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(i!==null){var f=o.baseState;a=0,u=c=l=null,s=i;do{var h=s.lane,w=s.eventTime;if((r&h)===h){u!==null&&(u=u.next={eventTime:w,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var y=e,x=s;switch(h=t,w=n,x.tag){case 1:if(y=x.payload,typeof y=="function"){f=y.call(w,f,h);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=x.payload,h=typeof y=="function"?y.call(w,f,h):y,h==null)break e;f=pt({},f,h);break e;case 2:qr=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,h=o.effects,h===null?o.effects=[s]:h.push(s))}else w={eventTime:w,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=w,l=f):u=u.next=w,a|=h;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;h=s,s=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(!0);if(u===null&&(l=f),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);No|=a,e.lanes=a,e.memoizedState=f}}function fv(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Md.transition;Md.transition={};try{e(!1),t()}finally{He=n,Md.transition=r}}function px(){return zn().memoizedState}function HC(e,t,n){var r=io(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},hx(e))mx(t,n);else if(n=Y1(e,t,n,r),n!==null){var o=Xt();tr(n,e,r,o),gx(n,t,r)}}function VC(e,t,n){var r=io(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(hx(e))mx(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,rr(s,a)){var l=t.interleaved;l===null?(o.next=o,uh(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Y1(e,t,o,r),n!==null&&(o=Xt(),tr(n,e,r,o),gx(n,t,r))}}function hx(e){var t=e.alternate;return e===dt||t!==null&&t===dt}function mx(e,t){Aa=cc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function gx(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xp(e,n)}}var uc={readContext:Dn,useCallback:zt,useContext:zt,useEffect:zt,useImperativeHandle:zt,useInsertionEffect:zt,useLayoutEffect:zt,useMemo:zt,useReducer:zt,useRef:zt,useState:zt,useDebugValue:zt,useDeferredValue:zt,useTransition:zt,useMutableSource:zt,useSyncExternalStore:zt,useId:zt,unstable_isNewReconciler:!1},qC={readContext:Dn,useCallback:function(e,t){return lr().memoizedState=[e,t===void 0?null:t],e},useContext:Dn,useEffect:hv,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ml(4194308,4,lx.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ml(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ml(4,2,e,t)},useMemo:function(e,t){var n=lr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=lr();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=HC.bind(null,dt,e),[r.memoizedState,e]},useRef:function(e){var t=lr();return e={current:e},t.memoizedState=e},useState:pv,useDebugValue:xh,useDeferredValue:function(e){return lr().memoizedState=e},useTransition:function(){var e=pv(!1),t=e[0];return e=WC.bind(null,e[1]),lr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=dt,o=lr();if(st){if(n===void 0)throw Error(ce(407));n=n()}else{if(n=t(),Mt===null)throw Error(ce(349));Ao&30||ex(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,hv(nx.bind(null,r,i,e),[e]),r.flags|=2048,ss(9,tx.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=lr(),t=Mt.identifierPrefix;if(st){var n=Pr,r=Rr;n=(r&~(1<<32-er(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=is++,0")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{pd=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Pa(e):""}function CS(e){switch(e.tag){case 5:return Pa(e.type);case 16:return Pa("Lazy");case 13:return Pa("Suspense");case 19:return Pa("SuspenseList");case 0:case 2:case 15:return e=hd(e.type,!1),e;case 11:return e=hd(e.type.render,!1),e;case 1:return e=hd(e.type,!0),e;default:return""}}function mf(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ai:return"Fragment";case ii:return"Portal";case ff:return"Profiler";case Hp:return"StrictMode";case pf:return"Suspense";case hf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Xy:return(e.displayName||"Context")+".Consumer";case Yy:return(e._context.displayName||"Context")+".Provider";case qp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Gp:return t=e.displayName||null,t!==null?t:mf(e.type)||"Memo";case Hr:t=e._payload,e=e._init;try{return mf(e(t))}catch{}}return null}function kS(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return mf(t);case 8:return t===Hp?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function lo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Jy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function RS(e){var t=Jy(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Xs(e){e._valueTracker||(e._valueTracker=RS(e))}function Zy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Jy(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Kl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function gf(e,t){var n=t.checked;return pt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ig(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=lo(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function e1(e,t){t=t.checked,t!=null&&Vp(e,"checked",t,!1)}function vf(e,t){e1(e,t);var n=lo(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?yf(e,t.type,n):t.hasOwnProperty("defaultValue")&&yf(e,t.type,lo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function _g(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function yf(e,t,n){(t!=="number"||Kl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ea=Array.isArray;function yi(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Qs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ka(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Oa={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},PS=["Webkit","ms","Moz","O"];Object.keys(Oa).forEach(function(e){PS.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Oa[t]=Oa[e]})});function o1(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Oa.hasOwnProperty(e)&&Oa[e]?(""+t).trim():t+"px"}function i1(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=o1(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var ES=pt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function wf(e,t){if(t){if(ES[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ce(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ce(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ce(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ce(62))}}function Sf(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Cf=null;function Kp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var kf=null,xi=null,bi=null;function Ng(e){if(e=Es(e)){if(typeof kf!="function")throw Error(ce(280));var t=e.stateNode;t&&(t=Uc(t),kf(e.stateNode,e.type,t))}}function a1(e){xi?bi?bi.push(e):bi=[e]:xi=e}function s1(){if(xi){var e=xi,t=bi;if(bi=xi=null,Ng(e),t)for(e=0;e>>=0,e===0?32:31-(DS(e)/zS|0)|0}var Js=64,Zs=4194304;function Ta(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Jl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=Ta(s):(i&=a,i!==0&&(r=Ta(i)))}else a=n&~o,a!==0?r=Ta(a):i!==0&&(r=Ta(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Rs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-er(t),e[t]=n}function WS(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=_a),qg=" ",Gg=!1;function E1(e,t){switch(e){case"keyup":return vC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function T1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var si=!1;function xC(e,t){switch(e){case"compositionend":return T1(t);case"keypress":return t.which!==32?null:(Gg=!0,qg);case"textInput":return e=t.data,e===qg&&Gg?null:e;default:return null}}function bC(e,t){if(si)return e==="compositionend"||!nh&&E1(e,t)?(e=R1(),Tl=Zp=Yr=null,si=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Qg(n)}}function O1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?O1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function I1(){for(var e=window,t=Kl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Kl(e.document)}return t}function rh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function $C(e){var t=I1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&O1(n.ownerDocument.documentElement,n)){if(r!==null&&rh(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Jg(n,i);var a=Jg(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,li=null,jf=null,Aa=null,Mf=!1;function Zg(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Mf||li==null||li!==Kl(r)||(r=li,"selectionStart"in r&&rh(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Aa&&es(Aa,r)||(Aa=r,r=tc(jf,"onSelect"),0di||(e.current=Nf[di],Nf[di]=null,di--)}function Je(e,t){di++,Nf[di]=e.current,e.current=t}var co={},Wt=fo(co),on=fo(!1),_o=co;function Ti(e,t){var n=e.type.contextTypes;if(!n)return co;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function an(e){return e=e.childContextTypes,e!=null}function rc(){tt(on),tt(Wt)}function av(e,t,n){if(Wt.current!==co)throw Error(ce(168));Je(Wt,t),Je(on,n)}function U1(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(ce(108,kS(e)||"Unknown",o));return pt({},n,r)}function oc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||co,_o=Wt.current,Je(Wt,e),Je(on,on.current),!0}function sv(e,t,n){var r=e.stateNode;if(!r)throw Error(ce(169));n?(e=U1(e,t,_o),r.__reactInternalMemoizedMergedChildContext=e,tt(on),tt(Wt),Je(Wt,e)):tt(on),Je(on,n)}var Cr=null,Wc=!1,Td=!1;function W1(e){Cr===null?Cr=[e]:Cr.push(e)}function FC(e){Wc=!0,W1(e)}function po(){if(!Td&&Cr!==null){Td=!0;var e=0,t=Ve;try{var n=Cr;for(Ve=1;e>=a,o-=a,Rr=1<<32-er(t)+o|n<M?(D=P,P=null):D=P.sibling;var O=m(g,P,b[M],C);if(O===null){P===null&&(P=D);break}e&&P&&O.alternate===null&&t(g,P),h=i(O,h,M),E===null?R=O:E.sibling=O,E=O,P=D}if(M===b.length)return n(g,P),st&&wo(g,M),R;if(P===null){for(;MM?(D=P,P=null):D=P.sibling;var F=m(g,P,O.value,C);if(F===null){P===null&&(P=D);break}e&&P&&F.alternate===null&&t(g,P),h=i(F,h,M),E===null?R=F:E.sibling=F,E=F,P=D}if(O.done)return n(g,P),st&&wo(g,M),R;if(P===null){for(;!O.done;M++,O=b.next())O=f(g,O.value,C),O!==null&&(h=i(O,h,M),E===null?R=O:E.sibling=O,E=O);return st&&wo(g,M),R}for(P=r(g,P);!O.done;M++,O=b.next())O=w(P,g,M,O.value,C),O!==null&&(e&&O.alternate!==null&&P.delete(O.key===null?M:O.key),h=i(O,h,M),E===null?R=O:E.sibling=O,E=O);return e&&P.forEach(function(V){return t(g,V)}),st&&wo(g,M),R}function k(g,h,b,C){if(typeof b=="object"&&b!==null&&b.type===ai&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Ys:e:{for(var R=b.key,E=h;E!==null;){if(E.key===R){if(R=b.type,R===ai){if(E.tag===7){n(g,E.sibling),h=o(E,b.props.children),h.return=g,g=h;break e}}else if(E.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===Hr&&uv(R)===E.type){n(g,E.sibling),h=o(E,b.props),h.ref=pa(g,E,b),h.return=g,g=h;break e}n(g,E);break}else t(g,E);E=E.sibling}b.type===ai?(h=Mo(b.props.children,g.mode,C,b.key),h.return=g,g=h):(C=Al(b.type,b.key,b.props,null,g.mode,C),C.ref=pa(g,h,b),C.return=g,g=C)}return a(g);case ii:e:{for(E=b.key;h!==null;){if(h.key===E)if(h.tag===4&&h.stateNode.containerInfo===b.containerInfo&&h.stateNode.implementation===b.implementation){n(g,h.sibling),h=o(h,b.children||[]),h.return=g,g=h;break e}else{n(g,h);break}else t(g,h);h=h.sibling}h=Ad(b,g.mode,C),h.return=g,g=h}return a(g);case Hr:return E=b._init,k(g,h,E(b._payload),C)}if(Ea(b))return y(g,h,b,C);if(la(b))return x(g,h,b,C);al(g,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,h!==null&&h.tag===6?(n(g,h.sibling),h=o(h,b),h.return=g,g=h):(n(g,h),h=Ld(b,g.mode,C),h.return=g,g=h),a(g)):n(g,h)}return k}var ji=G1(!0),K1=G1(!1),sc=fo(null),lc=null,hi=null,sh=null;function lh(){sh=hi=lc=null}function ch(e){var t=sc.current;tt(sc),e._currentValue=t}function Bf(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Si(e,t){lc=e,sh=hi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(rn=!0),e.firstContext=null)}function zn(e){var t=e._currentValue;if(sh!==e)if(e={context:e,memoizedValue:t,next:null},hi===null){if(lc===null)throw Error(ce(308));hi=e,lc.dependencies={lanes:0,firstContext:e}}else hi=hi.next=e;return t}var Po=null;function uh(e){Po===null?Po=[e]:Po.push(e)}function Y1(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,uh(t)):(n.next=o.next,o.next=n),t.interleaved=n,Mr(e,r)}function Mr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var qr=!1;function dh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function X1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Tr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ro(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ze&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Mr(e,n)}return o=r.interleaved,o===null?(t.next=t,uh(r)):(t.next=o.next,o.next=t),r.interleaved=t,Mr(e,n)}function jl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xp(e,n)}}function dv(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function cc(e,t,n,r){var o=e.updateQueue;qr=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?i=c:a.next=c,a=l;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==a&&(s===null?d.firstBaseUpdate=c:s.next=c,d.lastBaseUpdate=l))}if(i!==null){var f=o.baseState;a=0,d=c=l=null,s=i;do{var m=s.lane,w=s.eventTime;if((r&m)===m){d!==null&&(d=d.next={eventTime:w,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var y=e,x=s;switch(m=t,w=n,x.tag){case 1:if(y=x.payload,typeof y=="function"){f=y.call(w,f,m);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=x.payload,m=typeof y=="function"?y.call(w,f,m):y,m==null)break e;f=pt({},f,m);break e;case 2:qr=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[s]:m.push(s))}else w={eventTime:w,lane:m,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(c=d=w,l=f):d=d.next=w,a|=m;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;m=s,s=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(!0);if(d===null&&(l=f),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);No|=a,e.lanes=a,e.memoizedState=f}}function fv(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=jd.transition;jd.transition={};try{e(!1),t()}finally{Ve=n,jd.transition=r}}function px(){return Bn().memoizedState}function HC(e,t,n){var r=io(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},hx(e))mx(t,n);else if(n=Y1(e,t,n,r),n!==null){var o=Xt();tr(n,e,r,o),gx(n,t,r)}}function qC(e,t,n){var r=io(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(hx(e))mx(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,rr(s,a)){var l=t.interleaved;l===null?(o.next=o,uh(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Y1(e,t,o,r),n!==null&&(o=Xt(),tr(n,e,r,o),gx(n,t,r))}}function hx(e){var t=e.alternate;return e===dt||t!==null&&t===dt}function mx(e,t){Na=dc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function gx(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xp(e,n)}}var fc={readContext:zn,useCallback:zt,useContext:zt,useEffect:zt,useImperativeHandle:zt,useInsertionEffect:zt,useLayoutEffect:zt,useMemo:zt,useReducer:zt,useRef:zt,useState:zt,useDebugValue:zt,useDeferredValue:zt,useTransition:zt,useMutableSource:zt,useSyncExternalStore:zt,useId:zt,unstable_isNewReconciler:!1},GC={readContext:zn,useCallback:function(e,t){return lr().memoizedState=[e,t===void 0?null:t],e},useContext:zn,useEffect:hv,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ol(4194308,4,lx.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ol(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ol(4,2,e,t)},useMemo:function(e,t){var n=lr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=lr();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=HC.bind(null,dt,e),[r.memoizedState,e]},useRef:function(e){var t=lr();return e={current:e},t.memoizedState=e},useState:pv,useDebugValue:xh,useDeferredValue:function(e){return lr().memoizedState=e},useTransition:function(){var e=pv(!1),t=e[0];return e=VC.bind(null,e[1]),lr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=dt,o=lr();if(st){if(n===void 0)throw Error(ce(407));n=n()}else{if(n=t(),jt===null)throw Error(ce(349));Ao&30||ex(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,hv(nx.bind(null,r,i,e),[e]),r.flags|=2048,ls(9,tx.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=lr(),t=jt.identifierPrefix;if(st){var n=Pr,r=Rr;n=(r&~(1<<32-er(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=as++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[dr]=t,e[ns]=r,Px(e,t,!1,!1),t.stateNode=e;e:{switch(a=Sf(n,r),n){case"dialog":Ze("cancel",e),Ze("close",e),o=r;break;case"iframe":case"object":case"embed":Ze("load",e),o=r;break;case"video":case"audio":for(o=0;oIi&&(t.flags|=128,r=!0,pa(i,!1),t.lanes=4194304)}else{if(!r)if(e=lc(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),pa(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!st)return Bt(t),null}else 2*vt()-i.renderingStartTime>Ii&&n!==1073741824&&(t.flags|=128,r=!0,pa(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=vt(),t.sibling=null,n=ct.current,Je(ct,r?n&1|2:n&1),t):(Bt(t),null);case 22:case 23:return Rh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?gn&1073741824&&(Bt(t),t.subtreeFlags&6&&(t.flags|=8192)):Bt(t),null;case 24:return null;case 25:return null}throw Error(ce(156,t.tag))}function ek(e,t){switch(ih(t),t.tag){case 1:return an(t.type)&&tc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ji(),et(on),et(Wt),hh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ph(t),null;case 13:if(et(ct),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ce(340));$i()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return et(ct),null;case 4:return ji(),null;case 10:return ch(t.type._context),null;case 22:case 23:return Rh(),null;case 24:return null;default:return null}}var al=!1,Ut=!1,tk=typeof WeakSet=="function"?WeakSet:Set,xe=null;function mi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){gt(e,t,r)}else n.current=null}function Yf(e,t,n){try{n()}catch(r){gt(e,t,r)}}var Rv=!1;function nk(e,t){if(Of=Ql,e=I1(),rh(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,c=0,u=0,f=e,h=null;t:for(;;){for(var w;f!==n||o!==0&&f.nodeType!==3||(s=a+o),f!==i||r!==0&&f.nodeType!==3||(l=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(w=f.firstChild)!==null;)h=f,f=w;for(;;){if(f===e)break t;if(h===n&&++c===o&&(s=a),h===i&&++u===r&&(l=a),(w=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=w}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(If={focusedElem:e,selectionRange:n},Ql=!1,xe=t;xe!==null;)if(t=xe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,xe=e;else for(;xe!==null;){t=xe;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var x=y.memoizedProps,C=y.memoizedState,v=t.stateNode,m=v.getSnapshotBeforeUpdate(t.elementType===t.type?x:Yn(t.type,x),C);v.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ce(163))}}catch(k){gt(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,xe=e;break}xe=t.return}return y=Rv,Rv=!1,y}function Na(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Yf(t,n,i)}o=o.next}while(o!==r)}}function qc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Xf(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function $x(e){var t=e.alternate;t!==null&&(e.alternate=null,$x(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[dr],delete t[ns],delete t[Af],delete t[DC],delete t[zC])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Mx(e){return e.tag===5||e.tag===3||e.tag===4}function Pv(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Mx(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Qf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ec));else if(r!==4&&(e=e.child,e!==null))for(Qf(e,t,n),e=e.sibling;e!==null;)Qf(e,t,n),e=e.sibling}function Jf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Jf(e,t,n),e=e.sibling;e!==null;)Jf(e,t,n),e=e.sibling}var _t=null,Xn=!1;function Br(e,t,n){for(n=n.child;n!==null;)jx(e,t,n),n=n.sibling}function jx(e,t,n){if(fr&&typeof fr.onCommitFiberUnmount=="function")try{fr.onCommitFiberUnmount(Dc,n)}catch{}switch(n.tag){case 5:Ut||mi(n,t);case 6:var r=_t,o=Xn;_t=null,Br(e,t,n),_t=r,Xn=o,_t!==null&&(Xn?(e=_t,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):_t.removeChild(n.stateNode));break;case 18:_t!==null&&(Xn?(e=_t,n=n.stateNode,e.nodeType===8?Ed(e.parentNode,n):e.nodeType===1&&Ed(e,n),Qa(e)):Ed(_t,n.stateNode));break;case 4:r=_t,o=Xn,_t=n.stateNode.containerInfo,Xn=!0,Br(e,t,n),_t=r,Xn=o;break;case 0:case 11:case 14:case 15:if(!Ut&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Yf(n,t,a),o=o.next}while(o!==r)}Br(e,t,n);break;case 1:if(!Ut&&(mi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){gt(n,t,s)}Br(e,t,n);break;case 21:Br(e,t,n);break;case 22:n.mode&1?(Ut=(r=Ut)||n.memoizedState!==null,Br(e,t,n),Ut=r):Br(e,t,n);break;default:Br(e,t,n)}}function Ev(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new tk),t.forEach(function(r){var o=dk.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Kn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=vt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ok(r/1960))-r,10e?16:e,Xr===null)var r=!1;else{if(e=Xr,Xr=null,pc=0,ze&6)throw Error(ce(331));var o=ze;for(ze|=4,xe=e.current;xe!==null;){var i=xe,a=i.child;if(xe.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lvt()-Ch?Mo(e,0):Sh|=n),sn(e,t)}function zx(e,t){t===0&&(e.mode&1?(t=Qs,Qs<<=1,!(Qs&130023424)&&(Qs=4194304)):t=1);var n=Xt();e=jr(e,t),e!==null&&(Cs(e,t,n),sn(e,n))}function uk(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),zx(e,n)}function dk(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ce(314))}r!==null&&r.delete(t),zx(e,n)}var Bx;Bx=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||on.current)rn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return rn=!1,JC(e,t,n);rn=!!(e.flags&131072)}else rn=!1,st&&t.flags&1048576&&H1(t,oc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;jl(e,t),e=t.pendingProps;var o=Ti(t,Wt.current);Si(t,n),o=gh(null,t,r,e,o,n);var i=vh();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,an(r)?(i=!0,nc(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,dh(t),o.updater=Vc,t.stateNode=o,o._reactInternals=t,Uf(t,r,e,n),t=Vf(null,t,r,!0,i,n)):(t.tag=0,st&&i&&oh(t),Kt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(jl(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=pk(r),e=Yn(r,e),o){case 0:t=Hf(null,t,r,e,n);break e;case 1:t=Sv(null,t,r,e,n);break e;case 11:t=bv(null,t,r,e,n);break e;case 14:t=wv(null,t,r,Yn(r.type,e),n);break e}throw Error(ce(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yn(r,o),Hf(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yn(r,o),Sv(e,t,r,o,n);case 3:e:{if(Cx(t),e===null)throw Error(ce(387));r=t.pendingProps,i=t.memoizedState,o=i.element,X1(e,t),sc(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Oi(Error(ce(423)),t),t=Cv(e,t,r,n,o);break e}else if(r!==o){o=Oi(Error(ce(424)),t),t=Cv(e,t,r,n,o);break e}else for(yn=no(t.stateNode.containerInfo.firstChild),xn=t,st=!0,Qn=null,n=K1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($i(),r===o){t=Or(e,t,n);break e}Kt(e,t,r,n)}t=t.child}return t;case 5:return Q1(t),e===null&&zf(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,_f(r,o)?a=null:i!==null&&_f(r,i)&&(t.flags|=32),Sx(e,t),Kt(e,t,a,n),t.child;case 6:return e===null&&zf(t),null;case 13:return kx(e,t,n);case 4:return fh(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Mi(t,null,r,n):Kt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yn(r,o),bv(e,t,r,o,n);case 7:return Kt(e,t,t.pendingProps,n),t.child;case 8:return Kt(e,t,t.pendingProps.children,n),t.child;case 12:return Kt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Je(ic,r._currentValue),r._currentValue=a,i!==null)if(rr(i.value,a)){if(i.children===o.children&&!on.current){t=Or(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Tr(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Bf(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(ce(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Bf(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Kt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Si(t,n),o=Dn(o),r=r(o),t.flags|=1,Kt(e,t,r,n),t.child;case 14:return r=t.type,o=Yn(r,t.pendingProps),o=Yn(r.type,o),wv(e,t,r,o,n);case 15:return bx(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yn(r,o),jl(e,t),t.tag=1,an(r)?(e=!0,nc(t)):e=!1,Si(t,n),vx(t,r,o),Uf(t,r,o,n),Vf(null,t,r,!0,e,n);case 19:return Rx(e,t,n);case 22:return wx(e,t,n)}throw Error(ce(156,t.tag))};function Fx(e,t){return h1(e,t)}function fk(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function In(e,t,n,r){return new fk(e,t,n,r)}function Eh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pk(e){if(typeof e=="function")return Eh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===qp)return 11;if(e===Gp)return 14}return 2}function ao(e,t){var n=e.alternate;return n===null?(n=In(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function _l(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")Eh(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ai:return jo(n.children,o,i,t);case Vp:a=8,o|=8;break;case ff:return e=In(12,n,t,o|2),e.elementType=ff,e.lanes=i,e;case pf:return e=In(13,n,t,o),e.elementType=pf,e.lanes=i,e;case hf:return e=In(19,n,t,o),e.elementType=hf,e.lanes=i,e;case Qy:return Kc(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Yy:a=10;break e;case Xy:a=9;break e;case qp:a=11;break e;case Gp:a=14;break e;case Vr:a=16,r=null;break e}throw Error(ce(130,e==null?e:typeof e,""))}return t=In(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function jo(e,t,n,r){return e=In(7,e,r,t),e.lanes=n,e}function Kc(e,t,n,r){return e=In(22,e,r,t),e.elementType=Qy,e.lanes=n,e.stateNode={isHidden:!1},e}function Ld(e,t,n){return e=In(6,e,null,t),e.lanes=n,e}function Ad(e,t,n){return t=In(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function hk(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gd(0),this.expirationTimes=gd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gd(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Th(e,t,n,r,o,i,a,s,l){return e=new hk(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=In(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},dh(i),e}function mk(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Vx)}catch(e){console.error(e)}}Vx(),Vy.exports=kn;var Oh=Vy.exports;const cl=Np(Oh);var Lv=Oh;uf.createRoot=Lv.createRoot,uf.hydrateRoot=Lv.hydrateRoot;function qx(e,t){return function(){return e.apply(t,arguments)}}const{toString:bk}=Object.prototype,{getPrototypeOf:Ih}=Object,Zc=(e=>t=>{const n=bk.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ir=e=>(e=e.toLowerCase(),t=>Zc(t)===e),eu=e=>t=>typeof t===e,{isArray:qi}=Array,cs=eu("undefined");function wk(e){return e!==null&&!cs(e)&&e.constructor!==null&&!cs(e.constructor)&&An(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Gx=ir("ArrayBuffer");function Sk(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Gx(e.buffer),t}const Ck=eu("string"),An=eu("function"),Kx=eu("number"),tu=e=>e!==null&&typeof e=="object",kk=e=>e===!0||e===!1,Ll=e=>{if(Zc(e)!=="object")return!1;const t=Ih(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Rk=ir("Date"),Pk=ir("File"),Ek=ir("Blob"),Tk=ir("FileList"),$k=e=>tu(e)&&An(e.pipe),Mk=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||An(e.append)&&((t=Zc(e))==="formdata"||t==="object"&&An(e.toString)&&e.toString()==="[object FormData]"))},jk=ir("URLSearchParams"),[Ok,Ik,_k,Lk]=["ReadableStream","Request","Response","Headers"].map(ir),Ak=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Es(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),qi(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Xx=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Qx=e=>!cs(e)&&e!==Xx;function rp(){const{caseless:e}=Qx(this)&&this||{},t={},n=(r,o)=>{const i=e&&Yx(t,o)||o;Ll(t[i])&&Ll(r)?t[i]=rp(t[i],r):Ll(r)?t[i]=rp({},r):qi(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(Es(t,(o,i)=>{n&&An(o)?e[i]=qx(o,n):e[i]=o},{allOwnKeys:r}),e),Dk=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),zk=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Bk=(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&Ih(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Fk=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Uk=e=>{if(!e)return null;if(qi(e))return e;let t=e.length;if(!Kx(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Wk=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ih(Uint8Array)),Hk=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Vk=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},qk=ir("HTMLFormElement"),Gk=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Av=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Kk=ir("RegExp"),Jx=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Es(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},Yk=e=>{Jx(e,(t,n)=>{if(An(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(An(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Xk=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return qi(e)?r(e):r(String(e).split(t)),n},Qk=()=>{},Jk=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Nd="abcdefghijklmnopqrstuvwxyz",Nv="0123456789",Zx={DIGIT:Nv,ALPHA:Nd,ALPHA_DIGIT:Nd+Nd.toUpperCase()+Nv},Zk=(e=16,t=Zx.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function eR(e){return!!(e&&An(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const tR=e=>{const t=new Array(10),n=(r,o)=>{if(tu(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=qi(r)?[]:{};return Es(r,(a,s)=>{const l=n(a,o+1);!cs(l)&&(i[s]=l)}),t[o]=void 0,i}}return r};return n(e,0)},nR=ir("AsyncFunction"),rR=e=>e&&(tu(e)||An(e))&&An(e.then)&&An(e.catch),Q={isArray:qi,isArrayBuffer:Gx,isBuffer:wk,isFormData:Mk,isArrayBufferView:Sk,isString:Ck,isNumber:Kx,isBoolean:kk,isObject:tu,isPlainObject:Ll,isReadableStream:Ok,isRequest:Ik,isResponse:_k,isHeaders:Lk,isUndefined:cs,isDate:Rk,isFile:Pk,isBlob:Ek,isRegExp:Kk,isFunction:An,isStream:$k,isURLSearchParams:jk,isTypedArray:Wk,isFileList:Tk,forEach:Es,merge:rp,extend:Nk,trim:Ak,stripBOM:Dk,inherits:zk,toFlatObject:Bk,kindOf:Zc,kindOfTest:ir,endsWith:Fk,toArray:Uk,forEachEntry:Hk,matchAll:Vk,isHTMLForm:qk,hasOwnProperty:Av,hasOwnProp:Av,reduceDescriptors:Jx,freezeMethods:Yk,toObjectSet:Xk,toCamelCase:Gk,noop:Qk,toFiniteNumber:Jk,findKey:Yx,global:Xx,isContextDefined:Qx,ALPHABET:Zx,generateString:Zk,isSpecCompliantForm:eR,toJSONObject:tR,isAsyncFn:nR,isThenable:rR};function Me(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}Q.inherits(Me,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Q.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const eb=Me.prototype,tb={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{tb[e]={value:e}});Object.defineProperties(Me,tb);Object.defineProperty(eb,"isAxiosError",{value:!0});Me.from=(e,t,n,r,o,i)=>{const a=Object.create(eb);return Q.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Me.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const oR=null;function op(e){return Q.isPlainObject(e)||Q.isArray(e)}function nb(e){return Q.endsWith(e,"[]")?e.slice(0,-2):e}function Dv(e,t,n){return e?e.concat(t).map(function(o,i){return o=nb(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function iR(e){return Q.isArray(e)&&!e.some(op)}const aR=Q.toFlatObject(Q,{},null,function(t){return/^is[A-Z]/.test(t)});function nu(e,t,n){if(!Q.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,C){return!Q.isUndefined(C[x])});const r=n.metaTokens,o=n.visitor||u,i=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&Q.isSpecCompliantForm(t);if(!Q.isFunction(o))throw new TypeError("visitor must be a function");function c(y){if(y===null)return"";if(Q.isDate(y))return y.toISOString();if(!l&&Q.isBlob(y))throw new Me("Blob is not supported. Use a Buffer instead.");return Q.isArrayBuffer(y)||Q.isTypedArray(y)?l&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function u(y,x,C){let v=y;if(y&&!C&&typeof y=="object"){if(Q.endsWith(x,"{}"))x=r?x:x.slice(0,-2),y=JSON.stringify(y);else if(Q.isArray(y)&&iR(y)||(Q.isFileList(y)||Q.endsWith(x,"[]"))&&(v=Q.toArray(y)))return x=nb(x),v.forEach(function(b,k){!(Q.isUndefined(b)||b===null)&&t.append(a===!0?Dv([x],k,i):a===null?x:x+"[]",c(b))}),!1}return op(y)?!0:(t.append(Dv(C,x,i),c(y)),!1)}const f=[],h=Object.assign(aR,{defaultVisitor:u,convertValue:c,isVisitable:op});function w(y,x){if(!Q.isUndefined(y)){if(f.indexOf(y)!==-1)throw Error("Circular reference detected in "+x.join("."));f.push(y),Q.forEach(y,function(v,m){(!(Q.isUndefined(v)||v===null)&&o.call(t,v,Q.isString(m)?m.trim():m,x,h))===!0&&w(v,x?x.concat(m):[m])}),f.pop()}}if(!Q.isObject(e))throw new TypeError("data must be an object");return w(e),t}function zv(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function _h(e,t){this._pairs=[],e&&nu(e,this,t)}const rb=_h.prototype;rb.append=function(t,n){this._pairs.push([t,n])};rb.toString=function(t){const n=t?function(r){return t.call(this,r,zv)}:zv;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function sR(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ob(e,t,n){if(!t)return e;const r=n&&n.encode||sR,o=n&&n.serialize;let i;if(o?i=o(t,n):i=Q.isURLSearchParams(t)?t.toString():new _h(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Bv{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Q.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ib={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},lR=typeof URLSearchParams<"u"?URLSearchParams:_h,cR=typeof FormData<"u"?FormData:null,uR=typeof Blob<"u"?Blob:null,dR={isBrowser:!0,classes:{URLSearchParams:lR,FormData:cR,Blob:uR},protocols:["http","https","file","blob","url","data"]},Lh=typeof window<"u"&&typeof document<"u",fR=(e=>Lh&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),pR=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",hR=Lh&&window.location.href||"http://localhost",mR=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Lh,hasStandardBrowserEnv:fR,hasStandardBrowserWebWorkerEnv:pR,origin:hR},Symbol.toStringTag,{value:"Module"})),nr={...mR,...dR};function gR(e,t){return nu(e,new nr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return nr.isNode&&Q.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function vR(e){return Q.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function yR(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return a=!a&&Q.isArray(o)?o.length:a,l?(Q.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!s):((!o[a]||!Q.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&Q.isArray(o[a])&&(o[a]=yR(o[a])),!s)}if(Q.isFormData(e)&&Q.isFunction(e.entries)){const n={};return Q.forEachEntry(e,(r,o)=>{t(vR(r),o,n,0)}),n}return null}function xR(e,t,n){if(Q.isString(e))try{return(t||JSON.parse)(e),Q.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ts={transitional:ib,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=Q.isObject(t);if(i&&Q.isHTMLForm(t)&&(t=new FormData(t)),Q.isFormData(t))return o?JSON.stringify(ab(t)):t;if(Q.isArrayBuffer(t)||Q.isBuffer(t)||Q.isStream(t)||Q.isFile(t)||Q.isBlob(t)||Q.isReadableStream(t))return t;if(Q.isArrayBufferView(t))return t.buffer;if(Q.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return gR(t,this.formSerializer).toString();if((s=Q.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return nu(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),xR(t)):t}],transformResponse:[function(t){const n=this.transitional||Ts.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Q.isResponse(t)||Q.isReadableStream(t))return t;if(t&&Q.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?Me.from(s,Me.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:nr.classes.FormData,Blob:nr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Q.forEach(["delete","get","head","post","put","patch"],e=>{Ts.headers[e]={}});const bR=Q.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),wR=e=>{const t={};let n,r,o;return e&&e.split(` -`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&bR[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Fv=Symbol("internals");function ma(e){return e&&String(e).trim().toLowerCase()}function Al(e){return e===!1||e==null?e:Q.isArray(e)?e.map(Al):String(e)}function SR(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const CR=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Dd(e,t,n,r,o){if(Q.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Q.isString(t)){if(Q.isString(r))return t.indexOf(r)!==-1;if(Q.isRegExp(r))return r.test(t)}}function kR(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function RR(e,t){const n=Q.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}class ln{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(s,l,c){const u=ma(l);if(!u)throw new Error("header name must be a non-empty string");const f=Q.findKey(o,u);(!f||o[f]===void 0||c===!0||c===void 0&&o[f]!==!1)&&(o[f||l]=Al(s))}const a=(s,l)=>Q.forEach(s,(c,u)=>i(c,u,l));if(Q.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(Q.isString(t)&&(t=t.trim())&&!CR(t))a(wR(t),n);else if(Q.isHeaders(t))for(const[s,l]of t.entries())i(l,s,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=ma(t),t){const r=Q.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return SR(o);if(Q.isFunction(n))return n.call(this,o,r);if(Q.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ma(t),t){const r=Q.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Dd(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=ma(a),a){const s=Q.findKey(r,a);s&&(!n||Dd(r,r[s],s,n))&&(delete r[s],o=!0)}}return Q.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Dd(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return Q.forEach(this,(o,i)=>{const a=Q.findKey(r,i);if(a){n[a]=Al(o),delete n[i];return}const s=t?kR(i):String(i).trim();s!==i&&delete n[i],n[s]=Al(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Q.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Q.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Fv]=this[Fv]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=ma(a);r[s]||(RR(o,a),r[s]=!0)}return Q.isArray(t)?t.forEach(i):i(t),this}}ln.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Q.reduceDescriptors(ln.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Q.freezeMethods(ln);function zd(e,t){const n=this||Ts,r=t||n,o=ln.from(r.headers);let i=r.data;return Q.forEach(e,function(s){i=s.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function sb(e){return!!(e&&e.__CANCEL__)}function Gi(e,t,n){Me.call(this,e??"canceled",Me.ERR_CANCELED,t,n),this.name="CanceledError"}Q.inherits(Gi,Me,{__CANCEL__:!0});function lb(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Me("Request failed with status code "+n.status,[Me.ERR_BAD_REQUEST,Me.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function PR(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ER(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[i];a||(a=c),n[o]=l,r[o]=c;let f=i,h=0;for(;f!==o;)h+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-ar)return o&&(clearTimeout(o),o=null),n=s,e.apply(null,arguments);o||(o=setTimeout(()=>(o=null,n=Date.now(),e.apply(null,arguments)),r-(s-n)))}}const gc=(e,t,n=3)=>{let r=0;const o=ER(50,250);return TR(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,l=a-r,c=o(l),u=a<=s;r=a;const f={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-a)/c:void 0,event:i,lengthComputable:s!=null};f[t?"download":"upload"]=!0,e(f)},n)},$R=nr.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let a=i;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(a){const s=Q.isString(a)?o(a):a;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}(),MR=nr.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Q.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Q.isString(r)&&a.push("path="+r),Q.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function jR(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function OR(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function cb(e,t){return e&&!jR(t)?OR(e,t):t}const Uv=e=>e instanceof ln?{...e}:e;function zo(e,t){t=t||{};const n={};function r(c,u,f){return Q.isPlainObject(c)&&Q.isPlainObject(u)?Q.merge.call({caseless:f},c,u):Q.isPlainObject(u)?Q.merge({},u):Q.isArray(u)?u.slice():u}function o(c,u,f){if(Q.isUndefined(u)){if(!Q.isUndefined(c))return r(void 0,c,f)}else return r(c,u,f)}function i(c,u){if(!Q.isUndefined(u))return r(void 0,u)}function a(c,u){if(Q.isUndefined(u)){if(!Q.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,f){if(f in t)return r(c,u);if(f in e)return r(void 0,c)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(c,u)=>o(Uv(c),Uv(u),!0)};return Q.forEach(Object.keys(Object.assign({},e,t)),function(u){const f=l[u]||o,h=f(e[u],t[u],u);Q.isUndefined(h)&&f!==s||(n[u]=h)}),n}const ub=e=>{const t=zo({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;t.headers=a=ln.from(a),t.url=ob(cb(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(Q.isFormData(n)){if(nr.hasStandardBrowserEnv||nr.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[c,...u]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...u].join("; "))}}if(nr.hasStandardBrowserEnv&&(r&&Q.isFunction(r)&&(r=r(t)),r||r!==!1&&$R(t.url))){const c=o&&i&&MR.read(i);c&&a.set(o,c)}return t},IR=typeof XMLHttpRequest<"u",_R=IR&&function(e){return new Promise(function(n,r){const o=ub(e);let i=o.data;const a=ln.from(o.headers).normalize();let{responseType:s}=o,l;function c(){o.cancelToken&&o.cancelToken.unsubscribe(l),o.signal&&o.signal.removeEventListener("abort",l)}let u=new XMLHttpRequest;u.open(o.method.toUpperCase(),o.url,!0),u.timeout=o.timeout;function f(){if(!u)return;const w=ln.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),x={data:!s||s==="text"||s==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:w,config:e,request:u};lb(function(v){n(v),c()},function(v){r(v),c()},x),u=null}"onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(f)},u.onabort=function(){u&&(r(new Me("Request aborted",Me.ECONNABORTED,o,u)),u=null)},u.onerror=function(){r(new Me("Network Error",Me.ERR_NETWORK,o,u)),u=null},u.ontimeout=function(){let y=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const x=o.transitional||ib;o.timeoutErrorMessage&&(y=o.timeoutErrorMessage),r(new Me(y,x.clarifyTimeoutError?Me.ETIMEDOUT:Me.ECONNABORTED,o,u)),u=null},i===void 0&&a.setContentType(null),"setRequestHeader"in u&&Q.forEach(a.toJSON(),function(y,x){u.setRequestHeader(x,y)}),Q.isUndefined(o.withCredentials)||(u.withCredentials=!!o.withCredentials),s&&s!=="json"&&(u.responseType=o.responseType),typeof o.onDownloadProgress=="function"&&u.addEventListener("progress",gc(o.onDownloadProgress,!0)),typeof o.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",gc(o.onUploadProgress)),(o.cancelToken||o.signal)&&(l=w=>{u&&(r(!w||w.type?new Gi(null,e,u):w),u.abort(),u=null)},o.cancelToken&&o.cancelToken.subscribe(l),o.signal&&(o.signal.aborted?l():o.signal.addEventListener("abort",l)));const h=PR(o.url);if(h&&nr.protocols.indexOf(h)===-1){r(new Me("Unsupported protocol "+h+":",Me.ERR_BAD_REQUEST,e));return}u.send(i||null)})},LR=(e,t)=>{let n=new AbortController,r;const o=function(l){if(!r){r=!0,a();const c=l instanceof Error?l:this.reason;n.abort(c instanceof Me?c:new Gi(c instanceof Error?c.message:c))}};let i=t&&setTimeout(()=>{o(new Me(`timeout ${t} of ms exceeded`,Me.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",o):l.unsubscribe(o))}),e=null)};e.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",o));const{signal:s}=n;return s.unsubscribe=a,[s,()=>{i&&clearTimeout(i),i=null}]},AR=function*(e,t){let n=e.byteLength;if(!t||n{const i=NR(e,t,o);let a=0;return new ReadableStream({type:"bytes",async pull(s){const{done:l,value:c}=await i.next();if(l){s.close(),r();return}let u=c.byteLength;n&&n(a+=u),s.enqueue(new Uint8Array(c))},cancel(s){return r(s),i.return()}},{highWaterMark:2})},Hv=(e,t)=>{const n=e!=null;return r=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:r}))},ru=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",db=ru&&typeof ReadableStream=="function",ip=ru&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),DR=db&&(()=>{let e=!1;const t=new Request(nr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),Vv=64*1024,ap=db&&!!(()=>{try{return Q.isReadableStream(new Response("").body)}catch{}})(),vc={stream:ap&&(e=>e.body)};ru&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!vc[t]&&(vc[t]=Q.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Me(`Response type '${t}' is not supported`,Me.ERR_NOT_SUPPORT,r)})})})(new Response);const zR=async e=>{if(e==null)return 0;if(Q.isBlob(e))return e.size;if(Q.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(Q.isArrayBufferView(e))return e.byteLength;if(Q.isURLSearchParams(e)&&(e=e+""),Q.isString(e))return(await ip(e)).byteLength},BR=async(e,t)=>{const n=Q.toFiniteNumber(e.getContentLength());return n??zR(t)},FR=ru&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:f="same-origin",fetchOptions:h}=ub(e);c=c?(c+"").toLowerCase():"text";let[w,y]=o||i||a?LR([o,i],a):[],x,C;const v=()=>{!x&&setTimeout(()=>{w&&w.unsubscribe()}),x=!0};let m;try{if(l&&DR&&n!=="get"&&n!=="head"&&(m=await BR(u,r))!==0){let T=new Request(t,{method:"POST",body:r,duplex:"half"}),P;Q.isFormData(r)&&(P=T.headers.get("content-type"))&&u.setContentType(P),T.body&&(r=Wv(T.body,Vv,Hv(m,gc(l)),null,ip))}Q.isString(f)||(f=f?"cors":"omit"),C=new Request(t,{...h,signal:w,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",withCredentials:f});let b=await fetch(C);const k=ap&&(c==="stream"||c==="response");if(ap&&(s||k)){const T={};["status","statusText","headers"].forEach(j=>{T[j]=b[j]});const P=Q.toFiniteNumber(b.headers.get("content-length"));b=new Response(Wv(b.body,Vv,s&&Hv(P,gc(s,!0)),k&&v,ip),T)}c=c||"text";let R=await vc[Q.findKey(vc,c)||"text"](b,e);return!k&&v(),y&&y(),await new Promise((T,P)=>{lb(T,P,{data:R,headers:ln.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:C})})}catch(b){throw v(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new Me("Network Error",Me.ERR_NETWORK,e,C),{cause:b.cause||b}):Me.from(b,b&&b.code,e,C)}}),sp={http:oR,xhr:_R,fetch:FR};Q.forEach(sp,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const qv=e=>`- ${e}`,UR=e=>Q.isFunction(e)||e===null||e===!1,fb={getAdapter:e=>{e=Q.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since : +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Id(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Wf(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var XC=typeof WeakMap=="function"?WeakMap:Map;function yx(e,t,n){n=Tr(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){hc||(hc=!0,Zf=r),Wf(e,t)},n}function xx(e,t,n){n=Tr(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Wf(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Wf(e,t),typeof r!="function"&&(oo===null?oo=new Set([this]):oo.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function vv(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new XC;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=uk.bind(null,e,t,n),t.then(e,e))}function yv(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function xv(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Tr(-1,1),t.tag=2,ro(n,t,1))),n.lanes|=1),e)}var QC=Ar.ReactCurrentOwner,rn=!1;function Kt(e,t,n,r){t.child=e===null?K1(t,null,n,r):ji(t,e.child,n,r)}function bv(e,t,n,r,o){n=n.render;var i=t.ref;return Si(t,o),r=gh(e,t,n,r,i,o),n=vh(),e!==null&&!rn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Or(e,t,o)):(st&&n&&oh(t),t.flags|=1,Kt(e,t,r,o),t.child)}function wv(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Eh(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,bx(e,t,i,r,o)):(e=Al(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:es,n(a,r)&&e.ref===t.ref)return Or(e,t,o)}return t.flags|=1,e=ao(i,r),e.ref=t.ref,e.return=t,t.child=e}function bx(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(es(i,r)&&e.ref===t.ref)if(rn=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(rn=!0);else return t.lanes=e.lanes,Or(e,t,o)}return Vf(e,t,n,r,o)}function wx(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Je(gi,gn),gn|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Je(gi,gn),gn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Je(gi,gn),gn|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Je(gi,gn),gn|=r;return Kt(e,t,o,n),t.child}function Sx(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Vf(e,t,n,r,o){var i=an(n)?_o:Wt.current;return i=Ti(t,i),Si(t,o),n=gh(e,t,n,r,i,o),r=vh(),e!==null&&!rn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Or(e,t,o)):(st&&r&&oh(t),t.flags|=1,Kt(e,t,n,o),t.child)}function Sv(e,t,n,r,o){if(an(n)){var i=!0;oc(t)}else i=!1;if(Si(t,o),t.stateNode===null)Il(e,t),vx(t,n,r),Uf(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;typeof c=="object"&&c!==null?c=zn(c):(c=an(n)?_o:Wt.current,c=Ti(t,c));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==c)&&gv(t,a,r,c),qr=!1;var m=t.memoizedState;a.state=m,cc(t,r,a,o),l=t.memoizedState,s!==r||m!==l||on.current||qr?(typeof d=="function"&&(Ff(t,n,d,r),l=t.memoizedState),(s=qr||mv(t,n,s,r,m,l,c))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,X1(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Xn(t.type,s),a.props=c,f=t.pendingProps,m=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=zn(l):(l=an(n)?_o:Wt.current,l=Ti(t,l));var w=n.getDerivedStateFromProps;(d=typeof w=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==f||m!==l)&&gv(t,a,r,l),qr=!1,m=t.memoizedState,a.state=m,cc(t,r,a,o);var y=t.memoizedState;s!==f||m!==y||on.current||qr?(typeof w=="function"&&(Ff(t,n,w,r),y=t.memoizedState),(c=qr||mv(t,n,c,r,m,y,l)||!1)?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,y,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,y,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),a.props=r,a.state=y,a.context=l,r=c):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return Hf(e,t,n,r,i,o)}function Hf(e,t,n,r,o,i){Sx(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&sv(t,n,!1),Or(e,t,i);r=t.stateNode,QC.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=ji(t,e.child,null,i),t.child=ji(t,null,s,i)):Kt(e,t,s,i),t.memoizedState=r.state,o&&sv(t,n,!0),t.child}function Cx(e){var t=e.stateNode;t.pendingContext?av(e,t.pendingContext,t.pendingContext!==t.context):t.context&&av(e,t.context,!1),fh(e,t.containerInfo)}function Cv(e,t,n,r,o){return $i(),ah(o),t.flags|=256,Kt(e,t,n,r),t.child}var qf={dehydrated:null,treeContext:null,retryLane:0};function Gf(e){return{baseLanes:e,cachePool:null,transitions:null}}function kx(e,t,n){var r=t.pendingProps,o=ut.current,i=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Je(ut,o&1),e===null)return zf(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=Kc(a,r,0,null),e=Mo(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Gf(n),t.memoizedState=qf,e):bh(t,a));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return JC(e,t,a,r,s,o,n);if(i){i=r.fallback,a=t.mode,o=e.child,s=o.sibling;var l={mode:"hidden",children:r.children};return!(a&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=ao(o,l),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=ao(s,i):(i=Mo(i,a,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,a=e.child.memoizedState,a=a===null?Gf(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=qf,r}return i=e.child,e=i.sibling,r=ao(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function bh(e,t){return t=Kc({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function sl(e,t,n,r){return r!==null&&ah(r),ji(t,e.child,null,n),e=bh(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function JC(e,t,n,r,o,i,a){if(n)return t.flags&256?(t.flags&=-257,r=Id(Error(ce(422))),sl(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Kc({mode:"visible",children:r.children},o,0,null),i=Mo(i,o,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&ji(t,e.child,null,a),t.child.memoizedState=Gf(a),t.memoizedState=qf,i);if(!(t.mode&1))return sl(e,t,a,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(ce(419)),r=Id(i,r,void 0),sl(e,t,a,r)}if(s=(a&e.childLanes)!==0,rn||s){if(r=jt,r!==null){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|a)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Mr(e,o),tr(r,e,o,-1))}return Ph(),r=Id(Error(ce(421))),sl(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=dk.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,yn=no(o.nextSibling),xn=t,st=!0,Jn=null,e!==null&&(jn[Mn++]=Rr,jn[Mn++]=Pr,jn[Mn++]=Lo,Rr=e.id,Pr=e.overflow,Lo=t),t=bh(t,r.children),t.flags|=4096,t)}function kv(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Bf(e.return,t,n)}function _d(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Rx(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Kt(e,t,r.children,n),r=ut.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&kv(e,n,t);else if(e.tag===19)kv(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Je(ut,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&uc(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),_d(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&uc(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}_d(t,!0,n,null,i);break;case"together":_d(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Il(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Or(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),No|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(ce(153));if(t.child!==null){for(e=t.child,n=ao(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ao(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ZC(e,t,n){switch(t.tag){case 3:Cx(t),$i();break;case 5:Q1(t);break;case 1:an(t.type)&&oc(t);break;case 4:fh(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Je(sc,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Je(ut,ut.current&1),t.flags|=128,null):n&t.child.childLanes?kx(e,t,n):(Je(ut,ut.current&1),e=Or(e,t,n),e!==null?e.sibling:null);Je(ut,ut.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Rx(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Je(ut,ut.current),r)break;return null;case 22:case 23:return t.lanes=0,wx(e,t,n)}return Or(e,t,n)}var Px,Kf,Ex,Tx;Px=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Kf=function(){};Ex=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Eo(pr.current);var i=null;switch(n){case"input":o=gf(e,o),r=gf(e,r),i=[];break;case"select":o=pt({},o,{value:void 0}),r=pt({},r,{value:void 0}),i=[];break;case"textarea":o=xf(e,o),r=xf(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=nc)}wf(n,r);var a;n=null;for(c in o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var s=o[c];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Ga.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var l=r[c];if(s=o!=null?o[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(l!=null||s!=null))if(c==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(i||(i=[]),i.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(i=i||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Ga.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Ze("scroll",e),i||s===l||(i=[])):(i=i||[]).push(c,l))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};Tx=function(e,t,n,r){n!==r&&(t.flags|=4)};function ha(e,t){if(!st)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Bt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function ek(e,t,n){var r=t.pendingProps;switch(ih(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Bt(t),null;case 1:return an(t.type)&&rc(),Bt(t),null;case 3:return r=t.stateNode,Mi(),tt(on),tt(Wt),hh(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(il(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Jn!==null&&(np(Jn),Jn=null))),Kf(e,t),Bt(t),null;case 5:ph(t);var o=Eo(is.current);if(n=t.type,e!==null&&t.stateNode!=null)Ex(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(ce(166));return Bt(t),null}if(e=Eo(pr.current),il(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[dr]=t,r[rs]=i,e=(t.mode&1)!==0,n){case"dialog":Ze("cancel",r),Ze("close",r);break;case"iframe":case"object":case"embed":Ze("load",r);break;case"video":case"audio":for(o=0;o<$a.length;o++)Ze($a[o],r);break;case"source":Ze("error",r);break;case"img":case"image":case"link":Ze("error",r),Ze("load",r);break;case"details":Ze("toggle",r);break;case"input":Ig(r,i),Ze("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Ze("invalid",r);break;case"textarea":Lg(r,i),Ze("invalid",r)}wf(n,i),o=null;for(var a in i)if(i.hasOwnProperty(a)){var s=i[a];a==="children"?typeof s=="string"?r.textContent!==s&&(i.suppressHydrationWarning!==!0&&ol(r.textContent,s,e),o=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&ol(r.textContent,s,e),o=["children",""+s]):Ga.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&Ze("scroll",r)}switch(n){case"input":Xs(r),_g(r,i,!0);break;case"textarea":Xs(r),Ag(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=nc)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=n1(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML=" + diff --git a/client/src/Components/chatInterface.jsx b/client/src/Components/chatInterface.jsx index 72f37f6b..56c54325 100644 --- a/client/src/Components/chatInterface.jsx +++ b/client/src/Components/chatInterface.jsx @@ -1,6 +1,6 @@ import React, { useState, useEffect, useContext,useCallback, useRef } from 'react'; import axios from 'axios'; -import { InputAdornment,IconButton,Box, Card, CardContent, Typography, TextField, Button, List, ListItem,ListItemAvatar, ListItemText, CircularProgress, Snackbar, Divider, Avatar, Tooltip } from '@mui/material'; +import { InputAdornment,IconButton,Box,Switch, Card, CardContent, Typography, TextField, Button, List, ListItem,ListItemAvatar, ListItemText, CircularProgress, Snackbar, Divider, Avatar, Tooltip } from '@mui/material'; import MuiAlert from '@mui/material/Alert'; import SendIcon from '@mui/icons-material/Send'; import MicIcon from '@mui/icons-material/Mic'; @@ -12,21 +12,12 @@ import LibraryAddIcon from '@mui/icons-material/LibraryAdd'; import { UserContext } from './userContext'; import Aria from '../Assets/Images/Aria.jpg'; // Adjust the path to where your logo is stored -const TypingIndicator = () => ( - - -
-
-
-
-
-
-); + const ChatComponent = () => { - const { user,voiceEnabled } = useContext(UserContext); + const { user,voiceEnabled , setVoiceEnabled} = useContext(UserContext); const userId = user?.userId; const [chatId, setChatId] = useState(0); const [turnId, setTurnId] = useState(0); @@ -41,33 +32,46 @@ const ChatComponent = () => { const [snackbarSeverity, setSnackbarSeverity] = useState('info'); const [currentPlayingMessage, setCurrentPlayingMessage] = useState(null); - const speak = (text) => { - + const handleToggleVoice = (event) => { + event.preventDefault(); // Prevents the IconButton from triggering form submissions if used in forms + setVoiceEnabled(!voiceEnabled); + }; + + const speak = (text) => { + if (!voiceEnabled || text === currentPlayingMessage) { setCurrentPlayingMessage(null); window.speechSynthesis.cancel(); // Stop the current speech synthesis return; - } + } const synth = window.speechSynthesis; const utterance = new SpeechSynthesisUtterance(text); - const voices = synth.getVoices(); - console.log(voices.map(voice => `${voice.name} - ${voice.lang} - ${voice.gender}`)); + const setVoiceAndSpeak = () => { + const voices = synth.getVoices(); + console.log(voices.map(voice => `${voice.name} - ${voice.lang} - ${voice.gender}`)); - const femaleVoice = voices.find(voice => voice.name.includes("Microsoft Zira - English (United States)")); // Example: Adjust based on available voices + const femaleVoice = voices.find(voice => voice.name.includes("Microsoft Zira - English (United States)")); // Example: Adjust based on available voices - if (femaleVoice) { - utterance.voice = femaleVoice; - } else { - console.log("No female voice found"); - } + if (femaleVoice) { + utterance.voice = femaleVoice; + } else { + console.log("No female voice found"); + } - utterance.onend = () => { - setCurrentPlayingMessage(null); // Reset after speech has ended - }; + utterance.onend = () => { + setCurrentPlayingMessage(null); // Reset after speech has ended + }; - setCurrentPlayingMessage(text); - synth.speak(utterance); -}; + setCurrentPlayingMessage(text); + synth.speak(utterance); + }; + + if (synth.getVoices().length === 0){ + synth.onvoiceschanged = setVoiceAndSpeak; + } else { + setVoiceAndSpeak(); + } + }; const handleSnackbarClose = (event, reason) => { if (reason === 'clickaway') { @@ -148,73 +152,112 @@ const ChatComponent = () => { } }, [input, userId, chatId, turnId]); - // Function to handle recording start - const startRecording = () => { - navigator.mediaDevices.getUserMedia({ audio: true }) - .then(stream => { - audioChunksRef.current = []; // Clear the ref at the start of recording - const options = { mimeType: 'audio/webm' }; - const recorder = new MediaRecorder(stream, options); - recorder.ondataavailable = (e) => { - console.log('Data available:', e.data.size); // Log size to check if data is present - audioChunksRef.current.push(e.data); - }; - - recorder.start(); - setMediaRecorder(recorder); - setIsRecording(true); - }).catch(console.error); - }; - // Function to handle recording stop - const stopRecording = () => { - if (mediaRecorder) { - mediaRecorder.onstop = () => { - sendAudioToServer(audioChunksRef.current); // Ensure sendAudioToServer is called only after recording has fully stopped - setIsRecording(false); - setMediaRecorder(null); - }; - mediaRecorder.stop(); // Stop recording, onstop will be triggered after this + + +// Function to check supported MIME types for recording +const getSupportedMimeType = () => { + if (MediaRecorder.isTypeSupported('audio/webm; codecs=opus')) { + return 'audio/webm; codecs=opus'; + } else if (MediaRecorder.isTypeSupported('audio/mp4')) { + // Fallback for Safari on iOS + return 'audio/mp4'; + } else { + // Default to WAV if no other formats are supported + return 'audio/wav'; + } +}; + + // Function to handle recording start +const startRecording = () => { + navigator.mediaDevices.getUserMedia({ + audio: { + sampleRate: 44100, + channelCount: 1, + volume: 1.0, + echoCancellation: true } - }; + }) + .then(stream => { + audioChunksRef.current = []; + const mimeType = getSupportedMimeType(); + let recorder = new MediaRecorder(stream, { mimeType }); - const sendAudioToServer = chunks => { - console.log('Audio chunks size:', chunks.reduce((sum, chunk) => sum + chunk.size, 0)); // Log total size of chunks - const audioBlob = new Blob(chunks, { 'type': 'audio/webm' }); - if (audioBlob.size === 0) { - console.error('Audio Blob is empty'); - return; + recorder.ondataavailable = e => { + audioChunksRef.current.push(e.data); + }; + + recorder.start(); + setMediaRecorder(recorder); + setIsRecording(true); + }) + .catch(error => { + console.error('Error accessing microphone:', error); + // Handle error - show message to user + }); +}; + + // Function to stop recording +const stopRecording = () => { + if (mediaRecorder) { + mediaRecorder.stream.getTracks().forEach(track => track.stop()); + + mediaRecorder.onstop = () => { + const mimeType = mediaRecorder.mimeType; + const audioBlob = new Blob(audioChunksRef.current, { type: mimeType }); + sendAudioToServer(audioBlob); + setIsRecording(false); + setMediaRecorder(null); + }; + + mediaRecorder.stop(); + } +}; + + // Function to send audio to server +const sendAudioToServer = (audioBlob) => { + if (audioBlob.size === 0) { + console.error('Audio Blob is empty'); + // Handle error - show message to user + return; + } + + const formData = new FormData(); + formData.append('audio', audioBlob); + setIsLoading(true); + + axios.post('/api/ai/mental_health/voice-to-text', formData, { + headers: { + 'Content-Type': 'multipart/form-data' } - console.log(`Sending audio blob of size: ${audioBlob.size} bytes`); - const formData = new FormData(); - formData.append('audio', audioBlob); - setIsLoading(true); - - axios.post('/api/ai/mental_health/voice-to-text', formData, { - headers: { - 'Content-Type': 'multipart/form-data' - } - }) - .then(response => { - const { message } = response.data; - setInput(message); - sendMessage(); - }) - .catch(error => { - console.error('Error uploading audio:', error); - setOpen(true); - setSnackbarMessage('Error processing voice input: ' + error.message); - setSnackbarSeverity('error'); - }) - .finally(() => { - setIsLoading(false); - }); - }; // Remove audioChunks from dependencies to prevent re-creation - + }) + .then(response => { + const { message } = response.data; + setInput(message); + sendMessage(); + }) + .catch(error => { + console.error('Error uploading audio:', error); + // Handle error - show message to user + }) + .finally(() => { + setIsLoading(false); + }); +};// Remove audioChunks from dependencies to prevent re-creation // Handle input changes const handleInputChange = useCallback((event) => { - setInput(event.target.value); + const inputText = event.target.value; + const words = inputText.split(/\s+/); + if (words.length > 200) { + // If the word count exceeds 200, prevent further input by not updating the state + setInput(input => input.split(/\s+/).slice(0, 200).join(" ")); + setSnackbarMessage('Word limit reached. Only 200 words allowed.'); + setSnackbarSeverity('warning'); + setOpen(true); + } else { + setInput(inputText); + } }, []); const messageIcon = (message) => { @@ -245,26 +288,59 @@ const ChatComponent = () => { - - + + + setVoiceEnabled(e.target.checked)} + icon={} + checkedIcon={} + inputProps={{ 'aria-label': 'Voice response toggle' }} + color="default" sx={{ - position: 'absolute', // Positioning the button at the top-right corner - top: 5, // Top margin - right: 5, // Right margin - '&:hover': { + height: 42, // Adjust height to align with icons + '& .MuiSwitch-switchBase': { + padding: '9px', // Reduce padding to make the switch smaller + }, + '& .MuiSwitch-switchBase.Mui-checked': { + color: 'white', + transform: 'translateX(16px)', + '& + .MuiSwitch-track': { + backgroundColor: 'primary.main', - color: 'common.white', - } + }, + }, }} - > - + /> + + + + + + - + +
+ {messages.length === 0 && ( From 080731878dbd5cdedf0b9cade8776a3fac56d655 Mon Sep 17 00:00:00 2001 From: DHRUMIL PATEL <123137675+dhrumilp12@users.noreply.github.com> Date: Wed, 26 Jun 2024 09:50:13 -0400 Subject: [PATCH 38/38] updated description and app name. --- client/dist/assets/{index-fGieArf4.js => index-q7Zr2PlQ.js} | 4 ++-- client/dist/index.html | 6 +++--- client/index.html | 4 ++-- client/src/Components/chatComponent.jsx | 2 +- client/src/Components/chatInterface.jsx | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) rename client/dist/assets/{index-fGieArf4.js => index-q7Zr2PlQ.js} (90%) diff --git a/client/dist/assets/index-fGieArf4.js b/client/dist/assets/index-q7Zr2PlQ.js similarity index 90% rename from client/dist/assets/index-fGieArf4.js rename to client/dist/assets/index-q7Zr2PlQ.js index f5417474..374c9ec2 100644 --- a/client/dist/assets/index-fGieArf4.js +++ b/client/dist/assets/index-q7Zr2PlQ.js @@ -472,7 +472,7 @@ Error generating stack: `+i.message+` font-size: 0.8rem; /* Smaller font size */ } } - `}),u.jsxs(et,{sx:{maxWidth:"100%",mx:"auto",my:2,display:"flex",flexDirection:"column",height:"91vh",borderRadius:2,boxShadow:1},children:[u.jsxs(id,{sx:{display:"flex",flexDirection:"column",height:"100%",borderRadius:2,boxShadow:3},children:[u.jsxs(Cm,{sx:{flexGrow:1,overflow:"auto",padding:3,position:"relative"},children:[u.jsxs(et,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",position:"relative",marginBottom:"5px"},children:[u.jsx(Ln,{title:"Toggle voice responses",children:u.jsx(lt,{color:"inherit",onClick:ee,sx:{padding:0},children:u.jsx(d2,{checked:t,onChange:j=>n(j.target.checked),icon:u.jsx(Cs,{}),checkedIcon:u.jsx(Ss,{}),inputProps:{"aria-label":"Voice response toggle"},color:"default",sx:{height:42,"& .MuiSwitch-switchBase":{padding:"9px"},"& .MuiSwitch-switchBase.Mui-checked":{color:"white",transform:"translateX(16px)","& + .MuiSwitch-track":{backgroundColor:"primary.main"}}}})})}),u.jsx(Ln,{title:"Start a new chat",placement:"top",arrow:!0,children:u.jsx(lt,{"aria-label":"new chat",color:"primary",onClick:B,disabled:g,sx:{"&:hover":{backgroundColor:"primary.main",color:"common.white"}},children:u.jsx(Um,{})})})]}),u.jsx(Wi,{sx:{marginBottom:"10px"}}),b.length===0&&u.jsxs(et,{sx:{display:"flex",marginBottom:2,marginTop:3},children:[u.jsx(Er,{src:Pi,sx:{width:44,height:44,marginRight:2},alt:"Aria"}),u.jsx(Ie,{variant:"h4",component:"h1",gutterBottom:!0,children:"Welcome to Mental Health Companion"})]}),R?u.jsx(AN,{}):d.length===0&&u.jsxs(et,{sx:{display:"flex"},children:[u.jsx(Er,{src:Pi,sx:{width:36,height:36,marginRight:1},alt:"Aria"}),u.jsxs(Ie,{variant:"body1",gutterBottom:!0,sx:{bgcolor:"grey.200",borderRadius:"16px",px:2,py:1,display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap"},children:[b,t&&b&&u.jsx(lt,{onClick:()=>J(b),size:"small",sx:{ml:1},children:H(b)})]})]}),u.jsx(Ws,{sx:{maxHeight:"100%",overflow:"auto"},children:d.map((j,A)=>u.jsx(_c,{sx:{display:"flex",flexDirection:"column",alignItems:j.sender==="user"?"flex-end":"flex-start",borderRadius:2,mb:.5,p:1,border:"none","&:before":{display:"none"},"&:after":{display:"none"}},children:u.jsxs(et,{sx:{display:"flex",alignItems:"center",color:j.sender==="user"?"common.white":"text.primary",borderRadius:"16px"},children:[j.sender==="agent"&&u.jsx(Er,{src:Pi,sx:{width:36,height:36,mr:1},alt:"Aria"}),u.jsx(ws,{primary:u.jsxs(et,{sx:{display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap"},children:[j.message,t&&j.sender==="agent"&&u.jsx(lt,{onClick:()=>J(j.message),size:"small",sx:{ml:1},children:H(j.message)})]}),primaryTypographyProps:{sx:{color:j.sender==="user"?"common.white":"text.primary",bgcolor:j.sender==="user"?"primary.main":"grey.200",borderRadius:"16px",px:2,py:1,display:"inline-block"}}}),j.sender==="user"&&u.jsx(Er,{sx:{width:36,height:36,ml:1},children:u.jsx(cd,{})})]})},A))})]}),u.jsx(Wi,{}),u.jsxs(et,{sx:{p:2,pb:1,display:"flex",alignItems:"center",bgcolor:"background.paper"},children:[u.jsx(at,{fullWidth:!0,variant:"outlined",placeholder:"Type your message here...",value:l,onChange:N,disabled:g,sx:{mr:1,flexGrow:1},InputProps:{endAdornment:u.jsx(Ic,{position:"end",children:u.jsxs(lt,{onClick:m?L:T,color:"primary.main","aria-label":m?"Stop recording":"Start recording",size:"large",edge:"end",disabled:g,children:[m?u.jsx(Nm,{size:"small"}):u.jsx(Lm,{size:"small"}),m&&u.jsx(_n,{size:30,sx:{color:"primary.main",position:"absolute",zIndex:1}})]})})}}),g?u.jsx(_n,{size:24}):u.jsx(Rt,{variant:"contained",color:"primary",onClick:$,disabled:g||!l.trim(),endIcon:u.jsx(oa,{}),children:"Send"})]})]}),u.jsx(yo,{open:P,autoHideDuration:6e3,onClose:I,children:u.jsx(xr,{elevation:6,variant:"filled",onClose:I,severity:F,children:D})})]})]})};var Wm={},DN=Te;Object.defineProperty(Wm,"__esModule",{value:!0});var p2=Wm.default=void 0,zN=DN(Me()),BN=u;p2=Wm.default=(0,zN.default)((0,BN.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2M9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9zm9 14H6V10h12zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2"}),"LockOutlined");var Vm={},FN=Te;Object.defineProperty(Vm,"__esModule",{value:!0});var h2=Vm.default=void 0,UN=FN(Me()),WN=u;h2=Vm.default=(0,UN.default)((0,WN.jsx)("path",{d:"M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m-9-2V7H4v3H1v2h3v3h2v-3h3v-2zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"PersonAdd");var Hm={},VN=Te;Object.defineProperty(Hm,"__esModule",{value:!0});var Ac=Hm.default=void 0,HN=VN(Me()),qN=u;Ac=Hm.default=(0,HN.default)((0,qN.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");const Ry=Ht(u.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),Py=Ht(u.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");var qm={},GN=Te;Object.defineProperty(qm,"__esModule",{value:!0});var Gm=qm.default=void 0,KN=GN(Me()),YN=u;Gm=qm.default=(0,KN.default)((0,YN.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info");const sf=zs({palette:{primary:{main:"#556cd6"},secondary:{main:"#19857b"},background:{default:"linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)",paper:"#fff"}},typography:{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif',h5:{fontWeight:600,color:"#444"},button:{textTransform:"none",fontWeight:"bold"}},components:{MuiButton:{styleOverrides:{root:{margin:"8px"}}}}}),XN=ie(En)(({theme:e})=>({marginTop:e.spacing(12),display:"flex",flexDirection:"column",alignItems:"center",padding:e.spacing(4),borderRadius:e.shape.borderRadius,boxShadow:e.shadows[10],width:"90%",maxWidth:"450px",opacity:.98,backdropFilter:"blur(10px)"}));function QN(){const e=qo(),[t,n]=p.useState(!1),{setUser:r}=p.useContext(vr),[o,i]=p.useState(0),[a,s]=p.useState(""),[l,c]=p.useState(""),[d,f]=p.useState(!1),[m,w]=p.useState(""),[y,x]=p.useState(!1),[k,g]=p.useState(""),[h,b]=p.useState(""),[C,R]=p.useState(""),[E,P]=p.useState(""),[M,D]=p.useState(""),[O,F]=p.useState(!1),[V,U]=p.useState(!1),[q,ee]=p.useState(""),[J,re]=p.useState("info"),I=[{id:"job_search",name:"Stress from job search"},{id:"classwork",name:"Stress from classwork"},{id:"social_anxiety",name:"Social anxiety"},{id:"impostor_syndrome",name:"Impostor Syndrome"},{id:"career_drift",name:"Career Drift"}],[B,$]=p.useState([]),v=A=>{const G=A.target.value,Y=B.includes(G)?B.filter(K=>K!==G):[...B,G];$(Y)},T=async A=>{var G,Y;A.preventDefault(),F(!0);try{const K=await Oe.post("/api/user/login",{username:a,password:m});if(K&&K.data){const oe=K.data.userId;localStorage.setItem("token",K.data.access_token),console.log("Token stored:",localStorage.getItem("token")),ee("Login successful!"),re("success"),n(!0),r({userId:oe}),e("/"),console.log("User logged in:",oe)}else throw new Error("Invalid response from server")}catch(K){console.error("Login failed:",K),ee("Login failed: "+(((Y=(G=K.response)==null?void 0:G.data)==null?void 0:Y.msg)||"Unknown error")),re("error"),f(!0)}U(!0),F(!1)},L=async A=>{var G,Y;A.preventDefault(),F(!0);try{const K=await Oe.post("/api/user/signup",{username:a,email:l,password:m,name:k,age:h,gender:C,placeOfResidence:E,fieldOfWork:M,mental_health_concerns:B});if(K&&K.data){const oe=K.data.userId;localStorage.setItem("token",K.data.access_token),console.log("Token stored:",localStorage.getItem("token")),ee("User registered successfully!"),re("success"),n(!0),r({userId:oe}),e("/"),console.log("User registered:",oe)}else throw new Error("Invalid response from server")}catch(K){console.error("Signup failed:",K),ee(((Y=(G=K.response)==null?void 0:G.data)==null?void 0:Y.error)||"Failed to register user."),re("error")}F(!1),U(!0)},_=async A=>{var G,Y;A.preventDefault(),F(!0);try{const K=await Oe.post("/api/user/anonymous_signin");if(K&&K.data)localStorage.setItem("token",K.data.access_token),console.log("Token stored:",localStorage.getItem("token")),ee("Anonymous sign-in successful!"),re("success"),n(!0),r({userId:null}),e("/");else throw new Error("Invalid response from server")}catch(K){console.error("Anonymous sign-in failed:",K),ee("Anonymous sign-in failed: "+(((Y=(G=K.response)==null?void 0:G.data)==null?void 0:Y.msg)||"Unknown error")),re("error")}F(!1),U(!0)},N=(A,G)=>{i(G)},H=(A,G)=>{G!=="clickaway"&&U(!1)},j=()=>{x(!y)};return u.jsxs(lm,{theme:sf,children:[u.jsx(Rm,{}),u.jsx(et,{sx:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",background:sf.palette.background.default},children:u.jsxs(XN,{children:[u.jsxs(f2,{value:o,onChange:N,variant:"fullWidth",centered:!0,indicatorColor:"primary",textColor:"primary",children:[u.jsx(ql,{icon:u.jsx(p2,{}),label:"Login"}),u.jsx(ql,{icon:u.jsx(h2,{}),label:"Sign Up"}),u.jsx(ql,{icon:u.jsx(Ac,{}),label:"Anonymous"})]}),u.jsxs(et,{sx:{mt:3,width:"100%",px:3},children:[o===0&&u.jsxs("form",{onSubmit:T,children:[u.jsx(at,{label:"Username",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:a,onChange:A=>s(A.target.value)}),u.jsx(at,{label:"Password",type:y?"text":"password",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:m,onChange:A=>w(A.target.value),InputProps:{endAdornment:u.jsx(lt,{onClick:j,edge:"end",children:y?u.jsx(Py,{}):u.jsx(Ry,{})})}}),u.jsxs(Rt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,sx:{mt:2,maxWidth:"325px"},disabled:O,children:[O?u.jsx(_n,{size:24}):"Login"," "]}),d&&u.jsxs(Ie,{variant:"body2",textAlign:"center",sx:{mt:2},children:["Forgot your password? ",u.jsx(Rb,{to:"/request_reset",style:{textDecoration:"none",color:sf.palette.secondary.main},children:"Reset it here"})]})]}),o===1&&u.jsxs("form",{onSubmit:L,children:[u.jsx(at,{label:"Username",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:a,onChange:A=>s(A.target.value)}),u.jsx(at,{label:"Email",type:"email",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:l,onChange:A=>c(A.target.value)}),u.jsx(at,{label:"Password",type:y?"text":"password",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:m,onChange:A=>w(A.target.value),InputProps:{endAdornment:u.jsx(lt,{onClick:j,edge:"end",children:y?u.jsx(Py,{}):u.jsx(Ry,{})})}}),u.jsx(at,{label:"Name",variant:"outlined",margin:"normal",fullWidth:!0,value:k,onChange:A=>g(A.target.value)}),u.jsx(at,{label:"Age",type:"number",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:h,onChange:A=>b(A.target.value)}),u.jsxs(sd,{required:!0,fullWidth:!0,margin:"normal",children:[u.jsx(ld,{children:"Gender"}),u.jsxs(Vs,{value:C,label:"Gender",onChange:A=>R(A.target.value),children:[u.jsx(Zn,{value:"",children:"Select Gender"}),u.jsx(Zn,{value:"male",children:"Male"}),u.jsx(Zn,{value:"female",children:"Female"}),u.jsx(Zn,{value:"other",children:"Other"})]})]}),u.jsx(at,{label:"Place of Residence",variant:"outlined",margin:"normal",fullWidth:!0,value:E,onChange:A=>P(A.target.value)}),u.jsx(at,{label:"Field of Work",variant:"outlined",margin:"normal",fullWidth:!0,value:M,onChange:A=>D(A.target.value)}),u.jsxs(o2,{sx:{marginTop:"10px"},children:[u.jsx(Ie,{variant:"body1",gutterBottom:!0,children:"Select any mental stressors you are currently experiencing to help us better tailor your therapy sessions."}),I.map(A=>u.jsx(Tm,{control:u.jsx(km,{checked:B.includes(A.id),onChange:v,value:A.id}),label:u.jsxs(et,{display:"flex",alignItems:"center",children:[A.name,u.jsx(Ln,{title:u.jsx(Ie,{variant:"body2",children:JN(A.id)}),arrow:!0,placement:"right",children:u.jsx(Gm,{color:"action",style:{marginLeft:4,fontSize:20}})})]})},A.id))]}),u.jsx(Rt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,sx:{mt:2},disabled:O,children:O?u.jsx(_n,{size:24}):"Sign Up"})]}),o===2&&u.jsx("form",{onSubmit:_,children:u.jsx(Rt,{type:"submit",variant:"outlined",color:"secondary",fullWidth:!0,sx:{mt:2},disabled:O,children:O?u.jsx(_n,{size:24}):"Anonymous Sign-In"})})]}),u.jsx(yo,{open:V,autoHideDuration:6e3,onClose:H,children:u.jsx(xr,{onClose:H,severity:J,sx:{width:"100%"},children:q})})]})})]})}function JN(e){switch(e){case"job_search":return"Feelings of stress stemming from the job search process.";case"classwork":return"Stress related to managing coursework and academic responsibilities.";case"social_anxiety":return"Anxiety experienced during social interactions or in anticipation of social interactions.";case"impostor_syndrome":return"Persistent doubt concerning one's abilities or accomplishments coupled with a fear of being exposed as a fraud.";case"career_drift":return"Stress from uncertainty or dissatisfaction with one's career path or progress.";default:return"No description available."}}var Km={},ZN=Te;Object.defineProperty(Km,"__esModule",{value:!0});var m2=Km.default=void 0,e6=ZN(Me()),t6=u;m2=Km.default=(0,e6.default)((0,t6.jsx)("path",{d:"M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"}),"VpnKey");var Ym={},n6=Te;Object.defineProperty(Ym,"__esModule",{value:!0});var g2=Ym.default=void 0,r6=n6(Me()),o6=u;g2=Ym.default=(0,r6.default)((0,o6.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");const Ey=zs({palette:{primary:{main:"#3F51B5"},secondary:{main:"#F6AE2D"}}}),i6=()=>{const{changePassword:e}=p.useContext(vr),[t,n]=p.useState(""),[r,o]=p.useState(""),[i,a]=p.useState(!1),[s,l]=p.useState(""),[c,d]=p.useState("success"),{userId:f}=Ms(),m=async w=>{w.preventDefault();const y=await e(f,t,r);l(y.message),d(y.success?"success":"error"),a(!0)};return u.jsx(lm,{theme:Ey,children:u.jsx(Zw,{component:"main",maxWidth:"xs",sx:{background:"#fff",borderRadius:"8px",boxShadow:"0px 2px 4px rgba(0,0,0,0.2)"},children:u.jsxs(et,{sx:{marginTop:8,display:"flex",flexDirection:"column",alignItems:"center"},children:[u.jsx(Ie,{component:"h1",variant:"h5",children:"Update Password"}),u.jsxs("form",{onSubmit:m,style:{width:"100%",marginTop:Ey.spacing(1)},children:[u.jsx(at,{variant:"outlined",margin:"normal",required:!0,fullWidth:!0,id:"current-password",label:"Current Password",name:"currentPassword",autoComplete:"current-password",type:"password",value:t,onChange:w=>n(w.target.value),InputProps:{startAdornment:u.jsx(g2,{color:"primary",style:{marginRight:"10px"}})}}),u.jsx(at,{variant:"outlined",margin:"normal",required:!0,fullWidth:!0,id:"new-password",label:"New Password",name:"newPassword",autoComplete:"new-password",type:"password",value:r,onChange:w=>o(w.target.value),InputProps:{startAdornment:u.jsx(m2,{color:"secondary",style:{marginRight:"10px"}})}}),u.jsx(Rt,{type:"submit",fullWidth:!0,variant:"contained",color:"primary",sx:{mt:3,mb:2},children:"Update Password"})]}),u.jsx(yo,{open:i,autoHideDuration:6e3,onClose:()=>a(!1),children:u.jsx(xr,{onClose:()=>a(!1),severity:c,sx:{width:"100%"},children:s})})]})})})};var Xm={},a6=Te;Object.defineProperty(Xm,"__esModule",{value:!0});var v2=Xm.default=void 0,s6=a6(Me()),l6=u;v2=Xm.default=(0,s6.default)((0,l6.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"}),"Email");var Qm={},c6=Te;Object.defineProperty(Qm,"__esModule",{value:!0});var y2=Qm.default=void 0,u6=c6(Me()),d6=u;y2=Qm.default=(0,u6.default)((0,d6.jsx)("path",{d:"M12 6c1.11 0 2-.9 2-2 0-.38-.1-.73-.29-1.03L12 0l-1.71 2.97c-.19.3-.29.65-.29 1.03 0 1.1.9 2 2 2m4.6 9.99-1.07-1.07-1.08 1.07c-1.3 1.3-3.58 1.31-4.89 0l-1.07-1.07-1.09 1.07C6.75 16.64 5.88 17 4.96 17c-.73 0-1.4-.23-1.96-.61V21c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-4.61c-.56.38-1.23.61-1.96.61-.92 0-1.79-.36-2.44-1.01M18 9h-5V7h-2v2H6c-1.66 0-3 1.34-3 3v1.54c0 1.08.88 1.96 1.96 1.96.52 0 1.02-.2 1.38-.57l2.14-2.13 2.13 2.13c.74.74 2.03.74 2.77 0l2.14-2.13 2.13 2.13c.37.37.86.57 1.38.57 1.08 0 1.96-.88 1.96-1.96V12C21 10.34 19.66 9 18 9"}),"Cake");var Jm={},f6=Te;Object.defineProperty(Jm,"__esModule",{value:!0});var x2=Jm.default=void 0,p6=f6(Me()),h6=u;x2=Jm.default=(0,p6.default)((0,h6.jsx)("path",{d:"M5.5 22v-7.5H4V9c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2v5.5H9.5V22zM18 22v-6h3l-2.54-7.63C18.18 7.55 17.42 7 16.56 7h-.12c-.86 0-1.63.55-1.9 1.37L12 16h3v6zM7.5 6c1.11 0 2-.89 2-2s-.89-2-2-2-2 .89-2 2 .89 2 2 2m9 0c1.11 0 2-.89 2-2s-.89-2-2-2-2 .89-2 2 .89 2 2 2"}),"Wc");var Zm={},m6=Te;Object.defineProperty(Zm,"__esModule",{value:!0});var b2=Zm.default=void 0,g6=m6(Me()),v6=u;b2=Zm.default=(0,g6.default)((0,v6.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home");var eg={},y6=Te;Object.defineProperty(eg,"__esModule",{value:!0});var w2=eg.default=void 0,x6=y6(Me()),b6=u;w2=eg.default=(0,x6.default)((0,b6.jsx)("path",{d:"M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-6 0h-4V4h4z"}),"Work");var tg={},w6=Te;Object.defineProperty(tg,"__esModule",{value:!0});var ng=tg.default=void 0,S6=w6(Me()),C6=u;ng=tg.default=(0,S6.default)((0,C6.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 4c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6m0 14c-2.03 0-4.43-.82-6.14-2.88C7.55 15.8 9.68 15 12 15s4.45.8 6.14 2.12C16.43 19.18 14.03 20 12 20"}),"AccountCircle");var rg={},k6=Te;Object.defineProperty(rg,"__esModule",{value:!0});var S2=rg.default=void 0,R6=k6(Me()),P6=u;S2=rg.default=(0,R6.default)((0,P6.jsx)("path",{d:"M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8z"}),"Update");const E6=ie(f2)({background:"#fff",borderRadius:"8px",boxShadow:"0 2px 4px rgba(0,0,0,0.1)",margin:"20px 0",maxWidth:"100%",overflow:"hidden"}),Ty=ie(ql)({fontSize:"1rem",fontWeight:"bold",color:"#3F51B5",marginRight:"4px",marginLeft:"4px",flex:1,maxWidth:"none","&.Mui-selected":{color:"#F6AE2D",background:"#e0e0e0"},"&:hover":{background:"#f4f4f4",transition:"background-color 0.3s"},"@media (max-width: 720px)":{padding:"6px 12px",fontSize:"0.8rem"}}),T6=zs({palette:{primary:{main:"#3F51B5"},secondary:{main:"#F6AE2D"},background:{default:"#e0e0e0"}},typography:{fontFamily:'"Open Sans", "Helvetica", "Arial", sans-serif',button:{textTransform:"none",fontWeight:"bold"}},components:{MuiButton:{styleOverrides:{root:{boxShadow:"none",borderRadius:8,"&:hover":{boxShadow:"0px 2px 4px rgba(0,0,0,0.2)"}}}},MuiPaper:{styleOverrides:{root:{padding:"20px",borderRadius:"10px",boxShadow:"0px 4px 12px rgba(0,0,0,0.1)"}}}}}),$6=ie(En)(({theme:e})=>({marginTop:e.spacing(2),padding:e.spacing(2),display:"flex",flexDirection:"column",alignItems:"center",gap:e.spacing(2),boxShadow:e.shadows[3]}));function j6(){const{userId:e}=Ms(),[t,n]=p.useState({username:"",name:"",email:"",age:"",gender:"",placeOfResidence:"",fieldOfWork:"",mental_health_concerns:[]}),[r,o]=p.useState(0),i=(g,h)=>{o(h)},[a,s]=p.useState(""),[l,c]=p.useState(!1),[d,f]=p.useState("info");p.useEffect(()=>{if(!e){console.error("User ID is undefined");return}(async()=>{try{const h=await Oe.get(`/api/user/profile/${e}`);console.log("Fetched data:",h.data);const b={username:h.data.username||"",name:h.data.name||"",email:h.data.email||"",age:h.data.age||"",gender:h.data.gender||"",placeOfResidence:h.data.placeOfResidence||"Not specified",fieldOfWork:h.data.fieldOfWork||"Not specified",mental_health_concerns:h.data.mental_health_concerns||[]};console.log("Formatted data:",b),n(b)}catch{s("Failed to fetch user data"),f("error"),c(!0)}})()},[e]);const m=[{label:"Stress from Job Search",value:"job_search"},{label:"Stress from Classwork",value:"classwork"},{label:"Social Anxiety",value:"social_anxiety"},{label:"Impostor Syndrome",value:"impostor_syndrome"},{label:"Career Drift",value:"career_drift"}];console.log("current mental health concerns: ",t.mental_health_concerns);const w=g=>{const{name:h,checked:b}=g.target;n(C=>{const R=b?[...C.mental_health_concerns,h]:C.mental_health_concerns.filter(E=>E!==h);return{...C,mental_health_concerns:R}})},y=g=>{const{name:h,value:b}=g.target;n(C=>({...C,[h]:b}))},x=async g=>{g.preventDefault();try{await Oe.patch(`/api/user/profile/${e}`,t),s("Profile updated successfully!"),f("success")}catch{s("Failed to update profile"),f("error")}c(!0)},k=()=>{c(!1)};return u.jsxs(lm,{theme:T6,children:[u.jsx(Rm,{}),u.jsxs(Zw,{component:"main",maxWidth:"md",children:[u.jsxs(E6,{value:r,onChange:i,centered:!0,children:[u.jsx(Ty,{label:"Profile"}),u.jsx(Ty,{label:"Update Password"})]}),r===0&&u.jsxs($6,{component:"form",onSubmit:x,sx:{maxHeight:"81vh",overflow:"auto"},children:[u.jsxs(Ie,{variant:"h5",style:{fontWeight:700},children:[u.jsx(ng,{style:{marginRight:"10px"}})," ",t.username]}),u.jsx(at,{fullWidth:!0,label:"Name",variant:"outlined",name:"name",value:t.name||"",onChange:y,InputProps:{startAdornment:u.jsx(lt,{position:"start",children:u.jsx(cd,{})})}}),u.jsx(at,{fullWidth:!0,label:"Email",variant:"outlined",name:"email",value:t.email||"",onChange:y,InputProps:{startAdornment:u.jsx(lt,{position:"start",children:u.jsx(v2,{})})}}),u.jsx(at,{fullWidth:!0,label:"Age",variant:"outlined",name:"age",type:"number",value:t.age||"",onChange:y,InputProps:{startAdornment:u.jsx(lt,{children:u.jsx(y2,{})})}}),u.jsxs(sd,{fullWidth:!0,children:[u.jsx(ld,{children:"Gender"}),u.jsxs(Vs,{name:"gender",value:t.gender||"",label:"Gender",onChange:y,startAdornment:u.jsx(lt,{children:u.jsx(x2,{})}),children:[u.jsx(Zn,{value:"male",children:"Male"}),u.jsx(Zn,{value:"female",children:"Female"}),u.jsx(Zn,{value:"other",children:"Other"})]})]}),u.jsx(at,{fullWidth:!0,label:"Place of Residence",variant:"outlined",name:"placeOfResidence",value:t.placeOfResidence||"",onChange:y,InputProps:{startAdornment:u.jsx(lt,{children:u.jsx(b2,{})})}}),u.jsx(at,{fullWidth:!0,label:"Field of Work",variant:"outlined",name:"fieldOfWork",value:t.fieldOfWork||"",onChange:y,InputProps:{startAdornment:u.jsx(lt,{position:"start",children:u.jsx(w2,{})})}}),u.jsx(o2,{children:m.map((g,h)=>(console.log(`Is "${g.label}" checked?`,t.mental_health_concerns.includes(g.value)),u.jsx(Tm,{control:u.jsx(km,{checked:t.mental_health_concerns.includes(g.value),onChange:w,name:g.value}),label:u.jsxs(et,{display:"flex",alignItems:"center",children:[g.label,u.jsx(Ln,{title:u.jsx(Ie,{variant:"body2",children:M6(g.value)}),arrow:!0,placement:"right",children:u.jsx(Gm,{color:"action",style:{marginLeft:4,fontSize:20}})})]})},h)))}),u.jsxs(Rt,{type:"submit",color:"primary",variant:"contained",children:[u.jsx(S2,{style:{marginRight:"10px"}}),"Update Profile"]})]}),r===1&&u.jsx(i6,{userId:e}),u.jsx(yo,{open:l,autoHideDuration:6e3,onClose:k,children:u.jsx(xr,{onClose:k,severity:d,sx:{width:"100%"},children:a})})]})]})}function M6(e){switch(e){case"job_search":return"Feelings of stress stemming from the job search process.";case"classwork":return"Stress related to managing coursework and academic responsibilities.";case"social_anxiety":return"Anxiety experienced during social interactions or in anticipation of social interactions.";case"impostor_syndrome":return"Persistent doubt concerning one's abilities or accomplishments coupled with a fear of being exposed as a fraud.";case"career_drift":return"Stress from uncertainty or dissatisfaction with one's career path or progress.";default:return"No description available."}}var og={},O6=Te;Object.defineProperty(og,"__esModule",{value:!0});var C2=og.default=void 0,I6=O6(Me()),$y=u;C2=og.default=(0,I6.default)([(0,$y.jsx)("path",{d:"M22 9 12 2 2 9h9v13h2V9z"},"0"),(0,$y.jsx)("path",{d:"m4.14 12-1.96.37.82 4.37V22h2l.02-4H7v4h2v-6H4.9zm14.96 4H15v6h2v-4h1.98l.02 4h2v-5.26l.82-4.37-1.96-.37z"},"1")],"Deck");var ig={},_6=Te;Object.defineProperty(ig,"__esModule",{value:!0});var k2=ig.default=void 0,L6=_6(Me()),A6=u;k2=ig.default=(0,L6.default)((0,A6.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5m-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11m3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5"}),"InsertEmoticon");var ag={},N6=Te;Object.defineProperty(ag,"__esModule",{value:!0});var sg=ag.default=void 0,D6=N6(Me()),z6=u;sg=ag.default=(0,D6.default)((0,z6.jsx)("path",{d:"M19 5v14H5V5zm1.1-2H3.9c-.5 0-.9.4-.9.9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9M11 7h6v2h-6zm0 4h6v2h-6zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7z"}),"ListAlt");var lg={},B6=Te;Object.defineProperty(lg,"__esModule",{value:!0});var R2=lg.default=void 0,F6=B6(Me()),U6=u;R2=lg.default=(0,F6.default)((0,U6.jsx)("path",{d:"M10.09 15.59 11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"ExitToApp");var cg={},W6=Te;Object.defineProperty(cg,"__esModule",{value:!0});var P2=cg.default=void 0,V6=W6(Me()),H6=u;P2=cg.default=(0,V6.default)((0,H6.jsx)("path",{d:"M16.53 11.06 15.47 10l-4.88 4.88-2.12-2.12-1.06 1.06L10.59 17zM19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V8h14z"}),"EventAvailable");var ug={},q6=Te;Object.defineProperty(ug,"__esModule",{value:!0});var E2=ug.default=void 0,G6=q6(Me()),jy=u;E2=ug.default=(0,G6.default)([(0,jy.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,jy.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"Schedule");var dg={},K6=Te;Object.defineProperty(dg,"__esModule",{value:!0});var T2=dg.default=void 0,Y6=K6(Me()),X6=u;T2=dg.default=(0,Y6.default)((0,X6.jsx)("path",{d:"m22.69 18.37 1.14-1-1-1.73-1.45.49c-.32-.27-.68-.48-1.08-.63L20 14h-2l-.3 1.49c-.4.15-.76.36-1.08.63l-1.45-.49-1 1.73 1.14 1c-.08.5-.08.76 0 1.26l-1.14 1 1 1.73 1.45-.49c.32.27.68.48 1.08.63L18 24h2l.3-1.49c.4-.15.76-.36 1.08-.63l1.45.49 1-1.73-1.14-1c.08-.51.08-.77 0-1.27M19 21c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2M11 7v5.41l2.36 2.36 1.04-1.79-1.4-1.39V7zm10 5c0-4.97-4.03-9-9-9-2.83 0-5.35 1.32-7 3.36V4H3v6h6V8H6.26C7.53 6.19 9.63 5 12 5c3.86 0 7 3.14 7 7zm-10.14 6.91c-2.99-.49-5.35-2.9-5.78-5.91H3.06c.5 4.5 4.31 8 8.94 8h.07z"}),"ManageHistory");const My=230;function Q6(){const{logout:e,user:t}=p.useContext(vr),n=ho(),r=i=>n.pathname===i,o=[{text:"Mind Chat",icon:u.jsx(C2,{}),path:"/"},...t!=null&&t.userId?[{text:"Track Your Vibes",icon:u.jsx(k2,{}),path:"/user/mood_logging"},{text:"Mood Logs",icon:u.jsx(sg,{}),path:"/user/mood_logs"},{text:"Schedule Check-In",icon:u.jsx(E2,{}),path:"/user/check_in"},{text:"Check-In Reporting",icon:u.jsx(P2,{}),path:`/user/check_ins/${t==null?void 0:t.userId}`},{text:"Chat Log Manager",icon:u.jsx(T2,{}),path:"/user/chat_log_Manager"}]:[]];return u.jsx(UI,{sx:{width:My,flexShrink:0,mt:8,"& .MuiDrawer-paper":{width:My,boxSizing:"border-box",position:"relative",height:"91vh",top:0,overflowX:"hidden",borderRadius:2,boxShadow:1}},variant:"permanent",anchor:"left",children:u.jsxs(Ws,{children:[o.map(i=>u.jsx(VP,{to:i.path,style:{textDecoration:"none",color:"inherit"},children:u.jsxs(_c,{button:!0,sx:{backgroundColor:r(i.path)?"rgba(25, 118, 210, 0.5)":"inherit","&:hover":{bgcolor:"grey.200"}},children:[u.jsx(dy,{children:i.icon}),u.jsx(ws,{primary:i.text})]})},i.text)),u.jsxs(_c,{button:!0,onClick:e,children:[u.jsx(dy,{children:u.jsx(R2,{})}),u.jsx(ws,{primary:"Logout"})]})]})})}var fg={},J6=Te;Object.defineProperty(fg,"__esModule",{value:!0});var $2=fg.default=void 0,Z6=J6(Me()),eD=u;$2=fg.default=(0,Z6.default)((0,eD.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");var pg={},tD=Te;Object.defineProperty(pg,"__esModule",{value:!0});var j2=pg.default=void 0,nD=tD(Me()),rD=u;j2=pg.default=(0,nD.default)((0,rD.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2m6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1z"}),"Notifications");var hg={},oD=Te;Object.defineProperty(hg,"__esModule",{value:!0});var M2=hg.default=void 0,iD=oD(Me()),aD=u;M2=hg.default=(0,iD.default)((0,aD.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel");function sD({toggleSidebar:e}){const{incrementNotificationCount:t,notifications:n,addNotification:r,removeNotification:o}=p.useContext(vr),i=qo(),{user:a}=p.useContext(vr),[s,l]=p.useState(null),c=localStorage.getItem("token"),d=a==null?void 0:a.userId;console.log("User ID:",d),p.useEffect(()=>{d?f():console.error("No user ID available from URL parameters.")},[d]);const f=async()=>{if(!d){console.error("User ID is missing in context");return}try{const k=(await Oe.get(`/api/check-in/missed?user_id=${d}`,{headers:{Authorization:`Bearer ${c}`}})).data;console.log("Missed check-ins:",k),k.length>0?k.forEach(g=>{r({title:`Missed Check-in on ${new Date(g.check_in_time).toLocaleString()}`,message:"Please complete your check-in."})}):r({title:"You have no missed check-ins.",message:""})}catch(x){console.error("Failed to fetch missed check-ins:",x),r({title:"Failed to fetch missed check-ins. Please check the console for more details.",message:""})}},m=x=>{l(x.currentTarget)},w=x=>{l(null),o(x)},y=()=>{a&&a.userId?i(`/user/profile/${a.userId}`):console.error("User ID not found")};return p.useEffect(()=>{const x=k=>{k.data&&k.data.msg==="updateCount"&&(console.log("Received message from service worker:",k.data),r({title:k.data.title,message:k.data.body}),t())};return navigator.serviceWorker.addEventListener("message",x),()=>{navigator.serviceWorker.removeEventListener("message",x)}},[]),u.jsx(kj,{position:"fixed",sx:{zIndex:x=>x.zIndex.drawer+1},children:u.jsxs(BA,{children:[u.jsx(lt,{onClick:e,color:"inherit",edge:"start",sx:{marginRight:2},children:u.jsx($2,{})}),u.jsx(Ie,{variant:"h6",noWrap:!0,component:"div",sx:{flexGrow:1},children:"Dashboard"}),(a==null?void 0:a.userId)&&u.jsx(lt,{color:"inherit",onClick:m,children:u.jsx(i3,{badgeContent:n.length,color:"secondary",children:u.jsx(j2,{})})}),u.jsx(l2,{anchorEl:s,open:!!s,onClose:()=>w(null),children:n.map((x,k)=>u.jsx(Zn,{onClick:()=>w(k),sx:{whiteSpace:"normal",maxWidth:350,padding:1},children:u.jsxs(id,{elevation:2,sx:{display:"flex",alignItems:"center",width:"100%"},children:[u.jsx(M2,{color:"error"}),u.jsxs(Cm,{sx:{flex:"1 1 auto"},children:[u.jsx(Ie,{variant:"subtitle1",sx:{fontWeight:"bold"},children:x.title}),u.jsx(Ie,{variant:"body2",color:"text.secondary",children:x.message})]})]})},k))}),(a==null?void 0:a.userId)&&u.jsx(lt,{color:"inherit",onClick:y,children:u.jsx(ng,{})})]})})}var mg={},lD=Te;Object.defineProperty(mg,"__esModule",{value:!0});var O2=mg.default=void 0,cD=lD(Me()),uD=u;O2=mg.default=(0,cD.default)((0,uD.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M17 13l-5 5-5-5h3V9h4v4z"}),"CloudDownload");var gg={},dD=Te;Object.defineProperty(gg,"__esModule",{value:!0});var _p=gg.default=void 0,fD=dD(Me()),pD=u;_p=gg.default=(0,fD.default)((0,pD.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"DeleteForever");var vg={},hD=Te;Object.defineProperty(vg,"__esModule",{value:!0});var I2=vg.default=void 0,mD=hD(Me()),gD=u;I2=vg.default=(0,mD.default)((0,gD.jsx)("path",{d:"M9 11H7v2h2zm4 0h-2v2h2zm4 0h-2v2h2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 16H5V9h14z"}),"DateRange");const vD=ie(En)(({theme:e})=>({padding:e.spacing(3),borderRadius:e.shape.borderRadius,boxShadow:1,maxWidth:"100%",margin:"auto",marginTop:e.spacing(2),backgroundColor:"#fff",overflow:"auto"})),Cl=ie(Rt)(({theme:e})=>({margin:e.spacing(0),paddingLeft:e.spacing(1),paddingRight:e.spacing(3)}));function yD(){const[e,t]=nn.useState(!1),[n,r]=p.useState(!1),[o,i]=nn.useState(""),[a,s]=nn.useState("info"),[l,c]=p.useState(!1),[d,f]=p.useState(""),[m,w]=p.useState(""),[y,x]=p.useState(!1),k=(R,E)=>{E!=="clickaway"&&t(!1)},g=()=>{r(!1)},h=R=>{x(R),r(!0)},b=async(R=!1)=>{var E,P;c(!0);try{const M=R?"/api/user/download_chat_logs/range":"/api/user/download_chat_logs",D=R?{params:{start_date:d,end_date:m}}:{},O=await Oe.get(M,{...D,headers:{Authorization:`Bearer ${localStorage.getItem("token")}`},responseType:"blob"}),F=window.URL.createObjectURL(new Blob([O.data])),V=document.createElement("a");V.href=F,V.setAttribute("download",R?"chat_logs_range.csv":"chat_logs.csv"),document.body.appendChild(V),V.click(),i("Chat logs downloaded successfully."),s("success")}catch(M){i(`Failed to download chat logs: ${((P=(E=M.response)==null?void 0:E.data)==null?void 0:P.error)||M.message}`),s("error")}finally{c(!1)}t(!0)},C=async()=>{var R,E;r(!1),c(!0);try{const P=y?"/api/user/delete_chat_logs/range":"/api/user/delete_chat_logs",M=y?{params:{start_date:d,end_date:m}}:{},D=await Oe.delete(P,{...M,headers:{Authorization:`Bearer ${localStorage.getItem("token")}`}});i(D.data.message),s("success")}catch(P){i(`Failed to delete chat logs: ${((E=(R=P.response)==null?void 0:R.data)==null?void 0:E.error)||P.message}`),s("error")}finally{c(!1)}t(!0)};return u.jsxs(vD,{sx:{height:"91vh"},children:[u.jsx(Ie,{variant:"h4",gutterBottom:!0,children:"Manage Your Chat Logs"}),u.jsx(Ie,{variant:"body1",paragraph:!0,children:"Manage your chat logs efficiently by downloading or deleting entries for specific dates or entire ranges. Please be cautious as deletion is permanent."}),u.jsxs("div",{style:{display:"flex",justifyContent:"center",flexDirection:"column",alignItems:"center",gap:20},children:[u.jsxs("div",{style:{display:"flex",gap:10,marginBottom:20},children:[u.jsx(at,{label:"Start Date",type:"date",value:d,onChange:R=>f(R.target.value),InputLabelProps:{shrink:!0}}),u.jsx(at,{label:"End Date",type:"date",value:m,onChange:R=>w(R.target.value),InputLabelProps:{shrink:!0}})]}),u.jsx(Ie,{variant:"body1",paragraph:!0,children:"Here you can download your chat logs as a CSV file, which includes details like chat IDs, content, type, and additional information for each session."}),u.jsx(Ln,{title:"Download chat logs for selected date range",children:u.jsx(Cl,{variant:"outlined",startIcon:u.jsx(I2,{}),onClick:()=>b(!0),disabled:l||!d||!m,children:l?u.jsx(_n,{size:24,color:"inherit"}):"Download Range"})}),u.jsx(Ln,{title:"Download your chat logs as a CSV file",children:u.jsx(Cl,{variant:"contained",color:"primary",startIcon:u.jsx(O2,{}),onClick:()=>b(!1),disabled:l,children:l?u.jsx(_n,{size:24,color:"inherit"}):"Download Chat Logs"})}),u.jsx(Ie,{variant:"body1",paragraph:!0,children:"If you need to clear your history for privacy or other reasons, you can also permanently delete your chat logs from the server."}),u.jsx(Ln,{title:"Delete chat logs for selected date range",children:u.jsx(Cl,{variant:"outlined",color:"warning",startIcon:u.jsx(_p,{}),onClick:()=>h(!0),disabled:l||!d||!m,children:l?u.jsx(_n,{size:24,color:"inherit"}):"Delete Range"})}),u.jsx(Ln,{title:"Permanently delete all your chat logs",children:u.jsx(Cl,{variant:"contained",color:"secondary",startIcon:u.jsx(_p,{}),onClick:()=>h(!1),disabled:l,children:l?u.jsx(_n,{size:24,color:"inherit"}):"Delete Chat Logs"})}),u.jsx(Ie,{variant:"body1",paragraph:!0,children:"Please use these options carefully as deleting your chat logs is irreversible."})]}),u.jsxs($p,{open:n,onClose:g,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[u.jsx(Op,{id:"alert-dialog-title",children:"Confirm Deletion"}),u.jsx(Mp,{children:u.jsx(t2,{id:"alert-dialog-description",children:"Are you sure you want to delete these chat logs? This action cannot be undone."})}),u.jsxs(jp,{children:[u.jsx(Rt,{onClick:g,color:"primary",children:"Cancel"}),u.jsx(Rt,{onClick:()=>C(),color:"secondary",autoFocus:!0,children:"Confirm"})]})]}),u.jsx(yo,{open:e,autoHideDuration:6e3,onClose:k,children:u.jsx(xr,{onClose:k,severity:a,sx:{width:"100%"},children:o})})]})}const Oy=()=>{const{user:e,voiceEnabled:t,setVoiceEnabled:n}=p.useContext(vr),r=e==null?void 0:e.userId,[o,i]=p.useState(0),[a,s]=p.useState(0),[l,c]=p.useState(""),[d,f]=p.useState([]),[m,w]=p.useState(!1),[y,x]=p.useState(null),k=p.useRef([]),[g,h]=p.useState(!1),[b,C]=p.useState(!1),[R,E]=p.useState(""),[P,M]=p.useState("info"),[D,O]=p.useState(null),F=T=>{T.preventDefault(),n(!t)},V=T=>{if(!t||T===D){O(null),window.speechSynthesis.cancel();return}const L=window.speechSynthesis,_=new SpeechSynthesisUtterance(T),N=()=>{const H=L.getVoices();console.log(H.map(A=>`${A.name} - ${A.lang} - ${A.gender}`));const j=H.find(A=>A.name.includes("Microsoft Zira - English (United States)"));j?_.voice=j:console.log("No female voice found"),_.onend=()=>{O(null)},O(T),L.speak(_)};L.getVoices().length===0?L.onvoiceschanged=N:N()},U=(T,L)=>{L!=="clickaway"&&C(!1)},q=p.useCallback(async()=>{if(o!==null){h(!0);try{const T=await fetch(`/api/ai/mental_health/finalize/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"}}),L=await T.json();T.ok?(E("Chat finalized successfully"),M("success"),i(null),s(0),f([])):(E("Failed to finalize chat"),M("error"))}catch{E("Error finalizing chat"),M("error")}finally{h(!1),C(!0)}}},[r,o]),ee=p.useCallback(async()=>{if(l.trim()){console.log(o),h(!0);try{const T=JSON.stringify({prompt:l,turn_id:a}),L=await fetch(`/api/ai/mental_health/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"},body:T}),_=await L.json();console.log(_),L.ok?(f(N=>[...N,{message:l,sender:"user"},{message:_,sender:"agent"}]),s(N=>N+1),c("")):(console.error("Failed to send message:",_),E(_.error||"An error occurred while sending the message."),M("error"),C(!0))}catch(T){console.error("Failed to send message:",T),E("Network or server error occurred."),M("error"),C(!0)}finally{h(!1)}}},[l,r,o,a]),J=()=>MediaRecorder.isTypeSupported("audio/webm; codecs=opus")?"audio/webm; codecs=opus":MediaRecorder.isTypeSupported("audio/mp4")?"audio/mp4":"audio/wav",re=()=>{navigator.mediaDevices.getUserMedia({audio:{sampleRate:44100,channelCount:1,volume:1,echoCancellation:!0}}).then(T=>{k.current=[];const L=J();let _=new MediaRecorder(T,{mimeType:L});_.ondataavailable=N=>{k.current.push(N.data)},_.start(),x(_),w(!0)}).catch(T=>{console.error("Error accessing microphone:",T)})},I=()=>{y&&(y.stream.getTracks().forEach(T=>T.stop()),y.onstop=()=>{const T=y.mimeType,L=new Blob(k.current,{type:T});B(L),w(!1),x(null)},y.stop())},B=T=>{if(T.size===0){console.error("Audio Blob is empty");return}const L=new FormData;L.append("audio",T),h(!0),Oe.post("/api/ai/mental_health/voice-to-text",L,{headers:{"Content-Type":"multipart/form-data"}}).then(_=>{const{message:N}=_.data;c(N),ee()}).catch(_=>{console.error("Error uploading audio:",_)}).finally(()=>{h(!1)})},$=p.useCallback(T=>{const L=T.target.value;L.split(/\s+/).length>200?(c(N=>N.split(/\s+/).slice(0,200).join(" ")),E("Word limit reached. Only 200 words allowed."),M("warning"),C(!0)):c(L)},[]),v=T=>T===D?u.jsx(Cs,{}):u.jsx(Ss,{});return u.jsxs(u.Fragment,{children:[u.jsx("style",{children:` + `}),u.jsxs(et,{sx:{maxWidth:"100%",mx:"auto",my:2,display:"flex",flexDirection:"column",height:"91vh",borderRadius:2,boxShadow:1},children:[u.jsxs(id,{sx:{display:"flex",flexDirection:"column",height:"100%",borderRadius:2,boxShadow:3},children:[u.jsxs(Cm,{sx:{flexGrow:1,overflow:"auto",padding:3,position:"relative"},children:[u.jsxs(et,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",position:"relative",marginBottom:"5px"},children:[u.jsx(Ln,{title:"Toggle voice responses",children:u.jsx(lt,{color:"inherit",onClick:ee,sx:{padding:0},children:u.jsx(d2,{checked:t,onChange:j=>n(j.target.checked),icon:u.jsx(Cs,{}),checkedIcon:u.jsx(Ss,{}),inputProps:{"aria-label":"Voice response toggle"},color:"default",sx:{height:42,"& .MuiSwitch-switchBase":{padding:"9px"},"& .MuiSwitch-switchBase.Mui-checked":{color:"white",transform:"translateX(16px)","& + .MuiSwitch-track":{backgroundColor:"primary.main"}}}})})}),u.jsx(Ln,{title:"Start a new chat",placement:"top",arrow:!0,children:u.jsx(lt,{"aria-label":"new chat",color:"primary",onClick:B,disabled:g,sx:{"&:hover":{backgroundColor:"primary.main",color:"common.white"}},children:u.jsx(Um,{})})})]}),u.jsx(Wi,{sx:{marginBottom:"10px"}}),b.length===0&&u.jsxs(et,{sx:{display:"flex",marginBottom:2,marginTop:3},children:[u.jsx(Er,{src:Pi,sx:{width:44,height:44,marginRight:2},alt:"Aria"}),u.jsx(Ie,{variant:"h4",component:"h1",gutterBottom:!0,children:"Welcome to Your Mental Health Companion"})]}),R?u.jsx(AN,{}):d.length===0&&u.jsxs(et,{sx:{display:"flex"},children:[u.jsx(Er,{src:Pi,sx:{width:36,height:36,marginRight:1},alt:"Aria"}),u.jsxs(Ie,{variant:"body1",gutterBottom:!0,sx:{bgcolor:"grey.200",borderRadius:"16px",px:2,py:1,display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap"},children:[b,t&&b&&u.jsx(lt,{onClick:()=>J(b),size:"small",sx:{ml:1},children:H(b)})]})]}),u.jsx(Ws,{sx:{maxHeight:"100%",overflow:"auto"},children:d.map((j,A)=>u.jsx(_c,{sx:{display:"flex",flexDirection:"column",alignItems:j.sender==="user"?"flex-end":"flex-start",borderRadius:2,mb:.5,p:1,border:"none","&:before":{display:"none"},"&:after":{display:"none"}},children:u.jsxs(et,{sx:{display:"flex",alignItems:"center",color:j.sender==="user"?"common.white":"text.primary",borderRadius:"16px"},children:[j.sender==="agent"&&u.jsx(Er,{src:Pi,sx:{width:36,height:36,mr:1},alt:"Aria"}),u.jsx(ws,{primary:u.jsxs(et,{sx:{display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap"},children:[j.message,t&&j.sender==="agent"&&u.jsx(lt,{onClick:()=>J(j.message),size:"small",sx:{ml:1},children:H(j.message)})]}),primaryTypographyProps:{sx:{color:j.sender==="user"?"common.white":"text.primary",bgcolor:j.sender==="user"?"primary.main":"grey.200",borderRadius:"16px",px:2,py:1,display:"inline-block"}}}),j.sender==="user"&&u.jsx(Er,{sx:{width:36,height:36,ml:1},children:u.jsx(cd,{})})]})},A))})]}),u.jsx(Wi,{}),u.jsxs(et,{sx:{p:2,pb:1,display:"flex",alignItems:"center",bgcolor:"background.paper"},children:[u.jsx(at,{fullWidth:!0,variant:"outlined",placeholder:"Type your message here...",value:l,onChange:N,disabled:g,sx:{mr:1,flexGrow:1},InputProps:{endAdornment:u.jsx(Ic,{position:"end",children:u.jsxs(lt,{onClick:m?L:T,color:"primary.main","aria-label":m?"Stop recording":"Start recording",size:"large",edge:"end",disabled:g,children:[m?u.jsx(Nm,{size:"small"}):u.jsx(Lm,{size:"small"}),m&&u.jsx(_n,{size:30,sx:{color:"primary.main",position:"absolute",zIndex:1}})]})})}}),g?u.jsx(_n,{size:24}):u.jsx(Rt,{variant:"contained",color:"primary",onClick:$,disabled:g||!l.trim(),endIcon:u.jsx(oa,{}),children:"Send"})]})]}),u.jsx(yo,{open:P,autoHideDuration:6e3,onClose:I,children:u.jsx(xr,{elevation:6,variant:"filled",onClose:I,severity:F,children:D})})]})]})};var Wm={},DN=Te;Object.defineProperty(Wm,"__esModule",{value:!0});var p2=Wm.default=void 0,zN=DN(Me()),BN=u;p2=Wm.default=(0,zN.default)((0,BN.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2M9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9zm9 14H6V10h12zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2"}),"LockOutlined");var Vm={},FN=Te;Object.defineProperty(Vm,"__esModule",{value:!0});var h2=Vm.default=void 0,UN=FN(Me()),WN=u;h2=Vm.default=(0,UN.default)((0,WN.jsx)("path",{d:"M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m-9-2V7H4v3H1v2h3v3h2v-3h3v-2zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"PersonAdd");var Hm={},VN=Te;Object.defineProperty(Hm,"__esModule",{value:!0});var Ac=Hm.default=void 0,HN=VN(Me()),qN=u;Ac=Hm.default=(0,HN.default)((0,qN.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");const Ry=Ht(u.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),Py=Ht(u.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");var qm={},GN=Te;Object.defineProperty(qm,"__esModule",{value:!0});var Gm=qm.default=void 0,KN=GN(Me()),YN=u;Gm=qm.default=(0,KN.default)((0,YN.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info");const sf=zs({palette:{primary:{main:"#556cd6"},secondary:{main:"#19857b"},background:{default:"linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)",paper:"#fff"}},typography:{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif',h5:{fontWeight:600,color:"#444"},button:{textTransform:"none",fontWeight:"bold"}},components:{MuiButton:{styleOverrides:{root:{margin:"8px"}}}}}),XN=ie(En)(({theme:e})=>({marginTop:e.spacing(12),display:"flex",flexDirection:"column",alignItems:"center",padding:e.spacing(4),borderRadius:e.shape.borderRadius,boxShadow:e.shadows[10],width:"90%",maxWidth:"450px",opacity:.98,backdropFilter:"blur(10px)"}));function QN(){const e=qo(),[t,n]=p.useState(!1),{setUser:r}=p.useContext(vr),[o,i]=p.useState(0),[a,s]=p.useState(""),[l,c]=p.useState(""),[d,f]=p.useState(!1),[m,w]=p.useState(""),[y,x]=p.useState(!1),[k,g]=p.useState(""),[h,b]=p.useState(""),[C,R]=p.useState(""),[E,P]=p.useState(""),[M,D]=p.useState(""),[O,F]=p.useState(!1),[V,U]=p.useState(!1),[q,ee]=p.useState(""),[J,re]=p.useState("info"),I=[{id:"job_search",name:"Stress from job search"},{id:"classwork",name:"Stress from classwork"},{id:"social_anxiety",name:"Social anxiety"},{id:"impostor_syndrome",name:"Impostor Syndrome"},{id:"career_drift",name:"Career Drift"}],[B,$]=p.useState([]),v=A=>{const G=A.target.value,Y=B.includes(G)?B.filter(K=>K!==G):[...B,G];$(Y)},T=async A=>{var G,Y;A.preventDefault(),F(!0);try{const K=await Oe.post("/api/user/login",{username:a,password:m});if(K&&K.data){const oe=K.data.userId;localStorage.setItem("token",K.data.access_token),console.log("Token stored:",localStorage.getItem("token")),ee("Login successful!"),re("success"),n(!0),r({userId:oe}),e("/"),console.log("User logged in:",oe)}else throw new Error("Invalid response from server")}catch(K){console.error("Login failed:",K),ee("Login failed: "+(((Y=(G=K.response)==null?void 0:G.data)==null?void 0:Y.msg)||"Unknown error")),re("error"),f(!0)}U(!0),F(!1)},L=async A=>{var G,Y;A.preventDefault(),F(!0);try{const K=await Oe.post("/api/user/signup",{username:a,email:l,password:m,name:k,age:h,gender:C,placeOfResidence:E,fieldOfWork:M,mental_health_concerns:B});if(K&&K.data){const oe=K.data.userId;localStorage.setItem("token",K.data.access_token),console.log("Token stored:",localStorage.getItem("token")),ee("User registered successfully!"),re("success"),n(!0),r({userId:oe}),e("/"),console.log("User registered:",oe)}else throw new Error("Invalid response from server")}catch(K){console.error("Signup failed:",K),ee(((Y=(G=K.response)==null?void 0:G.data)==null?void 0:Y.error)||"Failed to register user."),re("error")}F(!1),U(!0)},_=async A=>{var G,Y;A.preventDefault(),F(!0);try{const K=await Oe.post("/api/user/anonymous_signin");if(K&&K.data)localStorage.setItem("token",K.data.access_token),console.log("Token stored:",localStorage.getItem("token")),ee("Anonymous sign-in successful!"),re("success"),n(!0),r({userId:null}),e("/");else throw new Error("Invalid response from server")}catch(K){console.error("Anonymous sign-in failed:",K),ee("Anonymous sign-in failed: "+(((Y=(G=K.response)==null?void 0:G.data)==null?void 0:Y.msg)||"Unknown error")),re("error")}F(!1),U(!0)},N=(A,G)=>{i(G)},H=(A,G)=>{G!=="clickaway"&&U(!1)},j=()=>{x(!y)};return u.jsxs(lm,{theme:sf,children:[u.jsx(Rm,{}),u.jsx(et,{sx:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",background:sf.palette.background.default},children:u.jsxs(XN,{children:[u.jsxs(f2,{value:o,onChange:N,variant:"fullWidth",centered:!0,indicatorColor:"primary",textColor:"primary",children:[u.jsx(ql,{icon:u.jsx(p2,{}),label:"Login"}),u.jsx(ql,{icon:u.jsx(h2,{}),label:"Sign Up"}),u.jsx(ql,{icon:u.jsx(Ac,{}),label:"Anonymous"})]}),u.jsxs(et,{sx:{mt:3,width:"100%",px:3},children:[o===0&&u.jsxs("form",{onSubmit:T,children:[u.jsx(at,{label:"Username",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:a,onChange:A=>s(A.target.value)}),u.jsx(at,{label:"Password",type:y?"text":"password",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:m,onChange:A=>w(A.target.value),InputProps:{endAdornment:u.jsx(lt,{onClick:j,edge:"end",children:y?u.jsx(Py,{}):u.jsx(Ry,{})})}}),u.jsxs(Rt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,sx:{mt:2,maxWidth:"325px"},disabled:O,children:[O?u.jsx(_n,{size:24}):"Login"," "]}),d&&u.jsxs(Ie,{variant:"body2",textAlign:"center",sx:{mt:2},children:["Forgot your password? ",u.jsx(Rb,{to:"/request_reset",style:{textDecoration:"none",color:sf.palette.secondary.main},children:"Reset it here"})]})]}),o===1&&u.jsxs("form",{onSubmit:L,children:[u.jsx(at,{label:"Username",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:a,onChange:A=>s(A.target.value)}),u.jsx(at,{label:"Email",type:"email",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:l,onChange:A=>c(A.target.value)}),u.jsx(at,{label:"Password",type:y?"text":"password",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:m,onChange:A=>w(A.target.value),InputProps:{endAdornment:u.jsx(lt,{onClick:j,edge:"end",children:y?u.jsx(Py,{}):u.jsx(Ry,{})})}}),u.jsx(at,{label:"Name",variant:"outlined",margin:"normal",fullWidth:!0,value:k,onChange:A=>g(A.target.value)}),u.jsx(at,{label:"Age",type:"number",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:h,onChange:A=>b(A.target.value)}),u.jsxs(sd,{required:!0,fullWidth:!0,margin:"normal",children:[u.jsx(ld,{children:"Gender"}),u.jsxs(Vs,{value:C,label:"Gender",onChange:A=>R(A.target.value),children:[u.jsx(Zn,{value:"",children:"Select Gender"}),u.jsx(Zn,{value:"male",children:"Male"}),u.jsx(Zn,{value:"female",children:"Female"}),u.jsx(Zn,{value:"other",children:"Other"})]})]}),u.jsx(at,{label:"Place of Residence",variant:"outlined",margin:"normal",fullWidth:!0,value:E,onChange:A=>P(A.target.value)}),u.jsx(at,{label:"Field of Work",variant:"outlined",margin:"normal",fullWidth:!0,value:M,onChange:A=>D(A.target.value)}),u.jsxs(o2,{sx:{marginTop:"10px"},children:[u.jsx(Ie,{variant:"body1",gutterBottom:!0,children:"Select any mental stressors you are currently experiencing to help us better tailor your therapy sessions."}),I.map(A=>u.jsx(Tm,{control:u.jsx(km,{checked:B.includes(A.id),onChange:v,value:A.id}),label:u.jsxs(et,{display:"flex",alignItems:"center",children:[A.name,u.jsx(Ln,{title:u.jsx(Ie,{variant:"body2",children:JN(A.id)}),arrow:!0,placement:"right",children:u.jsx(Gm,{color:"action",style:{marginLeft:4,fontSize:20}})})]})},A.id))]}),u.jsx(Rt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,sx:{mt:2},disabled:O,children:O?u.jsx(_n,{size:24}):"Sign Up"})]}),o===2&&u.jsx("form",{onSubmit:_,children:u.jsx(Rt,{type:"submit",variant:"outlined",color:"secondary",fullWidth:!0,sx:{mt:2},disabled:O,children:O?u.jsx(_n,{size:24}):"Anonymous Sign-In"})})]}),u.jsx(yo,{open:V,autoHideDuration:6e3,onClose:H,children:u.jsx(xr,{onClose:H,severity:J,sx:{width:"100%"},children:q})})]})})]})}function JN(e){switch(e){case"job_search":return"Feelings of stress stemming from the job search process.";case"classwork":return"Stress related to managing coursework and academic responsibilities.";case"social_anxiety":return"Anxiety experienced during social interactions or in anticipation of social interactions.";case"impostor_syndrome":return"Persistent doubt concerning one's abilities or accomplishments coupled with a fear of being exposed as a fraud.";case"career_drift":return"Stress from uncertainty or dissatisfaction with one's career path or progress.";default:return"No description available."}}var Km={},ZN=Te;Object.defineProperty(Km,"__esModule",{value:!0});var m2=Km.default=void 0,e6=ZN(Me()),t6=u;m2=Km.default=(0,e6.default)((0,t6.jsx)("path",{d:"M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"}),"VpnKey");var Ym={},n6=Te;Object.defineProperty(Ym,"__esModule",{value:!0});var g2=Ym.default=void 0,r6=n6(Me()),o6=u;g2=Ym.default=(0,r6.default)((0,o6.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");const Ey=zs({palette:{primary:{main:"#3F51B5"},secondary:{main:"#F6AE2D"}}}),i6=()=>{const{changePassword:e}=p.useContext(vr),[t,n]=p.useState(""),[r,o]=p.useState(""),[i,a]=p.useState(!1),[s,l]=p.useState(""),[c,d]=p.useState("success"),{userId:f}=Ms(),m=async w=>{w.preventDefault();const y=await e(f,t,r);l(y.message),d(y.success?"success":"error"),a(!0)};return u.jsx(lm,{theme:Ey,children:u.jsx(Zw,{component:"main",maxWidth:"xs",sx:{background:"#fff",borderRadius:"8px",boxShadow:"0px 2px 4px rgba(0,0,0,0.2)"},children:u.jsxs(et,{sx:{marginTop:8,display:"flex",flexDirection:"column",alignItems:"center"},children:[u.jsx(Ie,{component:"h1",variant:"h5",children:"Update Password"}),u.jsxs("form",{onSubmit:m,style:{width:"100%",marginTop:Ey.spacing(1)},children:[u.jsx(at,{variant:"outlined",margin:"normal",required:!0,fullWidth:!0,id:"current-password",label:"Current Password",name:"currentPassword",autoComplete:"current-password",type:"password",value:t,onChange:w=>n(w.target.value),InputProps:{startAdornment:u.jsx(g2,{color:"primary",style:{marginRight:"10px"}})}}),u.jsx(at,{variant:"outlined",margin:"normal",required:!0,fullWidth:!0,id:"new-password",label:"New Password",name:"newPassword",autoComplete:"new-password",type:"password",value:r,onChange:w=>o(w.target.value),InputProps:{startAdornment:u.jsx(m2,{color:"secondary",style:{marginRight:"10px"}})}}),u.jsx(Rt,{type:"submit",fullWidth:!0,variant:"contained",color:"primary",sx:{mt:3,mb:2},children:"Update Password"})]}),u.jsx(yo,{open:i,autoHideDuration:6e3,onClose:()=>a(!1),children:u.jsx(xr,{onClose:()=>a(!1),severity:c,sx:{width:"100%"},children:s})})]})})})};var Xm={},a6=Te;Object.defineProperty(Xm,"__esModule",{value:!0});var v2=Xm.default=void 0,s6=a6(Me()),l6=u;v2=Xm.default=(0,s6.default)((0,l6.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"}),"Email");var Qm={},c6=Te;Object.defineProperty(Qm,"__esModule",{value:!0});var y2=Qm.default=void 0,u6=c6(Me()),d6=u;y2=Qm.default=(0,u6.default)((0,d6.jsx)("path",{d:"M12 6c1.11 0 2-.9 2-2 0-.38-.1-.73-.29-1.03L12 0l-1.71 2.97c-.19.3-.29.65-.29 1.03 0 1.1.9 2 2 2m4.6 9.99-1.07-1.07-1.08 1.07c-1.3 1.3-3.58 1.31-4.89 0l-1.07-1.07-1.09 1.07C6.75 16.64 5.88 17 4.96 17c-.73 0-1.4-.23-1.96-.61V21c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-4.61c-.56.38-1.23.61-1.96.61-.92 0-1.79-.36-2.44-1.01M18 9h-5V7h-2v2H6c-1.66 0-3 1.34-3 3v1.54c0 1.08.88 1.96 1.96 1.96.52 0 1.02-.2 1.38-.57l2.14-2.13 2.13 2.13c.74.74 2.03.74 2.77 0l2.14-2.13 2.13 2.13c.37.37.86.57 1.38.57 1.08 0 1.96-.88 1.96-1.96V12C21 10.34 19.66 9 18 9"}),"Cake");var Jm={},f6=Te;Object.defineProperty(Jm,"__esModule",{value:!0});var x2=Jm.default=void 0,p6=f6(Me()),h6=u;x2=Jm.default=(0,p6.default)((0,h6.jsx)("path",{d:"M5.5 22v-7.5H4V9c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2v5.5H9.5V22zM18 22v-6h3l-2.54-7.63C18.18 7.55 17.42 7 16.56 7h-.12c-.86 0-1.63.55-1.9 1.37L12 16h3v6zM7.5 6c1.11 0 2-.89 2-2s-.89-2-2-2-2 .89-2 2 .89 2 2 2m9 0c1.11 0 2-.89 2-2s-.89-2-2-2-2 .89-2 2 .89 2 2 2"}),"Wc");var Zm={},m6=Te;Object.defineProperty(Zm,"__esModule",{value:!0});var b2=Zm.default=void 0,g6=m6(Me()),v6=u;b2=Zm.default=(0,g6.default)((0,v6.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home");var eg={},y6=Te;Object.defineProperty(eg,"__esModule",{value:!0});var w2=eg.default=void 0,x6=y6(Me()),b6=u;w2=eg.default=(0,x6.default)((0,b6.jsx)("path",{d:"M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-6 0h-4V4h4z"}),"Work");var tg={},w6=Te;Object.defineProperty(tg,"__esModule",{value:!0});var ng=tg.default=void 0,S6=w6(Me()),C6=u;ng=tg.default=(0,S6.default)((0,C6.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 4c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6m0 14c-2.03 0-4.43-.82-6.14-2.88C7.55 15.8 9.68 15 12 15s4.45.8 6.14 2.12C16.43 19.18 14.03 20 12 20"}),"AccountCircle");var rg={},k6=Te;Object.defineProperty(rg,"__esModule",{value:!0});var S2=rg.default=void 0,R6=k6(Me()),P6=u;S2=rg.default=(0,R6.default)((0,P6.jsx)("path",{d:"M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8z"}),"Update");const E6=ie(f2)({background:"#fff",borderRadius:"8px",boxShadow:"0 2px 4px rgba(0,0,0,0.1)",margin:"20px 0",maxWidth:"100%",overflow:"hidden"}),Ty=ie(ql)({fontSize:"1rem",fontWeight:"bold",color:"#3F51B5",marginRight:"4px",marginLeft:"4px",flex:1,maxWidth:"none","&.Mui-selected":{color:"#F6AE2D",background:"#e0e0e0"},"&:hover":{background:"#f4f4f4",transition:"background-color 0.3s"},"@media (max-width: 720px)":{padding:"6px 12px",fontSize:"0.8rem"}}),T6=zs({palette:{primary:{main:"#3F51B5"},secondary:{main:"#F6AE2D"},background:{default:"#e0e0e0"}},typography:{fontFamily:'"Open Sans", "Helvetica", "Arial", sans-serif',button:{textTransform:"none",fontWeight:"bold"}},components:{MuiButton:{styleOverrides:{root:{boxShadow:"none",borderRadius:8,"&:hover":{boxShadow:"0px 2px 4px rgba(0,0,0,0.2)"}}}},MuiPaper:{styleOverrides:{root:{padding:"20px",borderRadius:"10px",boxShadow:"0px 4px 12px rgba(0,0,0,0.1)"}}}}}),$6=ie(En)(({theme:e})=>({marginTop:e.spacing(2),padding:e.spacing(2),display:"flex",flexDirection:"column",alignItems:"center",gap:e.spacing(2),boxShadow:e.shadows[3]}));function j6(){const{userId:e}=Ms(),[t,n]=p.useState({username:"",name:"",email:"",age:"",gender:"",placeOfResidence:"",fieldOfWork:"",mental_health_concerns:[]}),[r,o]=p.useState(0),i=(g,h)=>{o(h)},[a,s]=p.useState(""),[l,c]=p.useState(!1),[d,f]=p.useState("info");p.useEffect(()=>{if(!e){console.error("User ID is undefined");return}(async()=>{try{const h=await Oe.get(`/api/user/profile/${e}`);console.log("Fetched data:",h.data);const b={username:h.data.username||"",name:h.data.name||"",email:h.data.email||"",age:h.data.age||"",gender:h.data.gender||"",placeOfResidence:h.data.placeOfResidence||"Not specified",fieldOfWork:h.data.fieldOfWork||"Not specified",mental_health_concerns:h.data.mental_health_concerns||[]};console.log("Formatted data:",b),n(b)}catch{s("Failed to fetch user data"),f("error"),c(!0)}})()},[e]);const m=[{label:"Stress from Job Search",value:"job_search"},{label:"Stress from Classwork",value:"classwork"},{label:"Social Anxiety",value:"social_anxiety"},{label:"Impostor Syndrome",value:"impostor_syndrome"},{label:"Career Drift",value:"career_drift"}];console.log("current mental health concerns: ",t.mental_health_concerns);const w=g=>{const{name:h,checked:b}=g.target;n(C=>{const R=b?[...C.mental_health_concerns,h]:C.mental_health_concerns.filter(E=>E!==h);return{...C,mental_health_concerns:R}})},y=g=>{const{name:h,value:b}=g.target;n(C=>({...C,[h]:b}))},x=async g=>{g.preventDefault();try{await Oe.patch(`/api/user/profile/${e}`,t),s("Profile updated successfully!"),f("success")}catch{s("Failed to update profile"),f("error")}c(!0)},k=()=>{c(!1)};return u.jsxs(lm,{theme:T6,children:[u.jsx(Rm,{}),u.jsxs(Zw,{component:"main",maxWidth:"md",children:[u.jsxs(E6,{value:r,onChange:i,centered:!0,children:[u.jsx(Ty,{label:"Profile"}),u.jsx(Ty,{label:"Update Password"})]}),r===0&&u.jsxs($6,{component:"form",onSubmit:x,sx:{maxHeight:"81vh",overflow:"auto"},children:[u.jsxs(Ie,{variant:"h5",style:{fontWeight:700},children:[u.jsx(ng,{style:{marginRight:"10px"}})," ",t.username]}),u.jsx(at,{fullWidth:!0,label:"Name",variant:"outlined",name:"name",value:t.name||"",onChange:y,InputProps:{startAdornment:u.jsx(lt,{position:"start",children:u.jsx(cd,{})})}}),u.jsx(at,{fullWidth:!0,label:"Email",variant:"outlined",name:"email",value:t.email||"",onChange:y,InputProps:{startAdornment:u.jsx(lt,{position:"start",children:u.jsx(v2,{})})}}),u.jsx(at,{fullWidth:!0,label:"Age",variant:"outlined",name:"age",type:"number",value:t.age||"",onChange:y,InputProps:{startAdornment:u.jsx(lt,{children:u.jsx(y2,{})})}}),u.jsxs(sd,{fullWidth:!0,children:[u.jsx(ld,{children:"Gender"}),u.jsxs(Vs,{name:"gender",value:t.gender||"",label:"Gender",onChange:y,startAdornment:u.jsx(lt,{children:u.jsx(x2,{})}),children:[u.jsx(Zn,{value:"male",children:"Male"}),u.jsx(Zn,{value:"female",children:"Female"}),u.jsx(Zn,{value:"other",children:"Other"})]})]}),u.jsx(at,{fullWidth:!0,label:"Place of Residence",variant:"outlined",name:"placeOfResidence",value:t.placeOfResidence||"",onChange:y,InputProps:{startAdornment:u.jsx(lt,{children:u.jsx(b2,{})})}}),u.jsx(at,{fullWidth:!0,label:"Field of Work",variant:"outlined",name:"fieldOfWork",value:t.fieldOfWork||"",onChange:y,InputProps:{startAdornment:u.jsx(lt,{position:"start",children:u.jsx(w2,{})})}}),u.jsx(o2,{children:m.map((g,h)=>(console.log(`Is "${g.label}" checked?`,t.mental_health_concerns.includes(g.value)),u.jsx(Tm,{control:u.jsx(km,{checked:t.mental_health_concerns.includes(g.value),onChange:w,name:g.value}),label:u.jsxs(et,{display:"flex",alignItems:"center",children:[g.label,u.jsx(Ln,{title:u.jsx(Ie,{variant:"body2",children:M6(g.value)}),arrow:!0,placement:"right",children:u.jsx(Gm,{color:"action",style:{marginLeft:4,fontSize:20}})})]})},h)))}),u.jsxs(Rt,{type:"submit",color:"primary",variant:"contained",children:[u.jsx(S2,{style:{marginRight:"10px"}}),"Update Profile"]})]}),r===1&&u.jsx(i6,{userId:e}),u.jsx(yo,{open:l,autoHideDuration:6e3,onClose:k,children:u.jsx(xr,{onClose:k,severity:d,sx:{width:"100%"},children:a})})]})]})}function M6(e){switch(e){case"job_search":return"Feelings of stress stemming from the job search process.";case"classwork":return"Stress related to managing coursework and academic responsibilities.";case"social_anxiety":return"Anxiety experienced during social interactions or in anticipation of social interactions.";case"impostor_syndrome":return"Persistent doubt concerning one's abilities or accomplishments coupled with a fear of being exposed as a fraud.";case"career_drift":return"Stress from uncertainty or dissatisfaction with one's career path or progress.";default:return"No description available."}}var og={},O6=Te;Object.defineProperty(og,"__esModule",{value:!0});var C2=og.default=void 0,I6=O6(Me()),$y=u;C2=og.default=(0,I6.default)([(0,$y.jsx)("path",{d:"M22 9 12 2 2 9h9v13h2V9z"},"0"),(0,$y.jsx)("path",{d:"m4.14 12-1.96.37.82 4.37V22h2l.02-4H7v4h2v-6H4.9zm14.96 4H15v6h2v-4h1.98l.02 4h2v-5.26l.82-4.37-1.96-.37z"},"1")],"Deck");var ig={},_6=Te;Object.defineProperty(ig,"__esModule",{value:!0});var k2=ig.default=void 0,L6=_6(Me()),A6=u;k2=ig.default=(0,L6.default)((0,A6.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5m-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11m3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5"}),"InsertEmoticon");var ag={},N6=Te;Object.defineProperty(ag,"__esModule",{value:!0});var sg=ag.default=void 0,D6=N6(Me()),z6=u;sg=ag.default=(0,D6.default)((0,z6.jsx)("path",{d:"M19 5v14H5V5zm1.1-2H3.9c-.5 0-.9.4-.9.9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9M11 7h6v2h-6zm0 4h6v2h-6zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7z"}),"ListAlt");var lg={},B6=Te;Object.defineProperty(lg,"__esModule",{value:!0});var R2=lg.default=void 0,F6=B6(Me()),U6=u;R2=lg.default=(0,F6.default)((0,U6.jsx)("path",{d:"M10.09 15.59 11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"ExitToApp");var cg={},W6=Te;Object.defineProperty(cg,"__esModule",{value:!0});var P2=cg.default=void 0,V6=W6(Me()),H6=u;P2=cg.default=(0,V6.default)((0,H6.jsx)("path",{d:"M16.53 11.06 15.47 10l-4.88 4.88-2.12-2.12-1.06 1.06L10.59 17zM19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V8h14z"}),"EventAvailable");var ug={},q6=Te;Object.defineProperty(ug,"__esModule",{value:!0});var E2=ug.default=void 0,G6=q6(Me()),jy=u;E2=ug.default=(0,G6.default)([(0,jy.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,jy.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"Schedule");var dg={},K6=Te;Object.defineProperty(dg,"__esModule",{value:!0});var T2=dg.default=void 0,Y6=K6(Me()),X6=u;T2=dg.default=(0,Y6.default)((0,X6.jsx)("path",{d:"m22.69 18.37 1.14-1-1-1.73-1.45.49c-.32-.27-.68-.48-1.08-.63L20 14h-2l-.3 1.49c-.4.15-.76.36-1.08.63l-1.45-.49-1 1.73 1.14 1c-.08.5-.08.76 0 1.26l-1.14 1 1 1.73 1.45-.49c.32.27.68.48 1.08.63L18 24h2l.3-1.49c.4-.15.76-.36 1.08-.63l1.45.49 1-1.73-1.14-1c.08-.51.08-.77 0-1.27M19 21c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2M11 7v5.41l2.36 2.36 1.04-1.79-1.4-1.39V7zm10 5c0-4.97-4.03-9-9-9-2.83 0-5.35 1.32-7 3.36V4H3v6h6V8H6.26C7.53 6.19 9.63 5 12 5c3.86 0 7 3.14 7 7zm-10.14 6.91c-2.99-.49-5.35-2.9-5.78-5.91H3.06c.5 4.5 4.31 8 8.94 8h.07z"}),"ManageHistory");const My=230;function Q6(){const{logout:e,user:t}=p.useContext(vr),n=ho(),r=i=>n.pathname===i,o=[{text:"Mind Chat",icon:u.jsx(C2,{}),path:"/"},...t!=null&&t.userId?[{text:"Track Your Vibes",icon:u.jsx(k2,{}),path:"/user/mood_logging"},{text:"Mood Logs",icon:u.jsx(sg,{}),path:"/user/mood_logs"},{text:"Schedule Check-In",icon:u.jsx(E2,{}),path:"/user/check_in"},{text:"Check-In Reporting",icon:u.jsx(P2,{}),path:`/user/check_ins/${t==null?void 0:t.userId}`},{text:"Chat Log Manager",icon:u.jsx(T2,{}),path:"/user/chat_log_Manager"}]:[]];return u.jsx(UI,{sx:{width:My,flexShrink:0,mt:8,"& .MuiDrawer-paper":{width:My,boxSizing:"border-box",position:"relative",height:"91vh",top:0,overflowX:"hidden",borderRadius:2,boxShadow:1}},variant:"permanent",anchor:"left",children:u.jsxs(Ws,{children:[o.map(i=>u.jsx(VP,{to:i.path,style:{textDecoration:"none",color:"inherit"},children:u.jsxs(_c,{button:!0,sx:{backgroundColor:r(i.path)?"rgba(25, 118, 210, 0.5)":"inherit","&:hover":{bgcolor:"grey.200"}},children:[u.jsx(dy,{children:i.icon}),u.jsx(ws,{primary:i.text})]})},i.text)),u.jsxs(_c,{button:!0,onClick:e,children:[u.jsx(dy,{children:u.jsx(R2,{})}),u.jsx(ws,{primary:"Logout"})]})]})})}var fg={},J6=Te;Object.defineProperty(fg,"__esModule",{value:!0});var $2=fg.default=void 0,Z6=J6(Me()),eD=u;$2=fg.default=(0,Z6.default)((0,eD.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");var pg={},tD=Te;Object.defineProperty(pg,"__esModule",{value:!0});var j2=pg.default=void 0,nD=tD(Me()),rD=u;j2=pg.default=(0,nD.default)((0,rD.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2m6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1z"}),"Notifications");var hg={},oD=Te;Object.defineProperty(hg,"__esModule",{value:!0});var M2=hg.default=void 0,iD=oD(Me()),aD=u;M2=hg.default=(0,iD.default)((0,aD.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel");function sD({toggleSidebar:e}){const{incrementNotificationCount:t,notifications:n,addNotification:r,removeNotification:o}=p.useContext(vr),i=qo(),{user:a}=p.useContext(vr),[s,l]=p.useState(null),c=localStorage.getItem("token"),d=a==null?void 0:a.userId;console.log("User ID:",d),p.useEffect(()=>{d?f():console.error("No user ID available from URL parameters.")},[d]);const f=async()=>{if(!d){console.error("User ID is missing in context");return}try{const k=(await Oe.get(`/api/check-in/missed?user_id=${d}`,{headers:{Authorization:`Bearer ${c}`}})).data;console.log("Missed check-ins:",k),k.length>0?k.forEach(g=>{r({title:`Missed Check-in on ${new Date(g.check_in_time).toLocaleString()}`,message:"Please complete your check-in."})}):r({title:"You have no missed check-ins.",message:""})}catch(x){console.error("Failed to fetch missed check-ins:",x),r({title:"Failed to fetch missed check-ins. Please check the console for more details.",message:""})}},m=x=>{l(x.currentTarget)},w=x=>{l(null),o(x)},y=()=>{a&&a.userId?i(`/user/profile/${a.userId}`):console.error("User ID not found")};return p.useEffect(()=>{const x=k=>{k.data&&k.data.msg==="updateCount"&&(console.log("Received message from service worker:",k.data),r({title:k.data.title,message:k.data.body}),t())};return navigator.serviceWorker.addEventListener("message",x),()=>{navigator.serviceWorker.removeEventListener("message",x)}},[]),u.jsx(kj,{position:"fixed",sx:{zIndex:x=>x.zIndex.drawer+1},children:u.jsxs(BA,{children:[u.jsx(lt,{onClick:e,color:"inherit",edge:"start",sx:{marginRight:2},children:u.jsx($2,{})}),u.jsx(Ie,{variant:"h6",noWrap:!0,component:"div",sx:{flexGrow:1},children:"Dashboard"}),(a==null?void 0:a.userId)&&u.jsx(lt,{color:"inherit",onClick:m,children:u.jsx(i3,{badgeContent:n.length,color:"secondary",children:u.jsx(j2,{})})}),u.jsx(l2,{anchorEl:s,open:!!s,onClose:()=>w(null),children:n.map((x,k)=>u.jsx(Zn,{onClick:()=>w(k),sx:{whiteSpace:"normal",maxWidth:350,padding:1},children:u.jsxs(id,{elevation:2,sx:{display:"flex",alignItems:"center",width:"100%"},children:[u.jsx(M2,{color:"error"}),u.jsxs(Cm,{sx:{flex:"1 1 auto"},children:[u.jsx(Ie,{variant:"subtitle1",sx:{fontWeight:"bold"},children:x.title}),u.jsx(Ie,{variant:"body2",color:"text.secondary",children:x.message})]})]})},k))}),(a==null?void 0:a.userId)&&u.jsx(lt,{color:"inherit",onClick:y,children:u.jsx(ng,{})})]})})}var mg={},lD=Te;Object.defineProperty(mg,"__esModule",{value:!0});var O2=mg.default=void 0,cD=lD(Me()),uD=u;O2=mg.default=(0,cD.default)((0,uD.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M17 13l-5 5-5-5h3V9h4v4z"}),"CloudDownload");var gg={},dD=Te;Object.defineProperty(gg,"__esModule",{value:!0});var _p=gg.default=void 0,fD=dD(Me()),pD=u;_p=gg.default=(0,fD.default)((0,pD.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"DeleteForever");var vg={},hD=Te;Object.defineProperty(vg,"__esModule",{value:!0});var I2=vg.default=void 0,mD=hD(Me()),gD=u;I2=vg.default=(0,mD.default)((0,gD.jsx)("path",{d:"M9 11H7v2h2zm4 0h-2v2h2zm4 0h-2v2h2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 16H5V9h14z"}),"DateRange");const vD=ie(En)(({theme:e})=>({padding:e.spacing(3),borderRadius:e.shape.borderRadius,boxShadow:1,maxWidth:"100%",margin:"auto",marginTop:e.spacing(2),backgroundColor:"#fff",overflow:"auto"})),Cl=ie(Rt)(({theme:e})=>({margin:e.spacing(0),paddingLeft:e.spacing(1),paddingRight:e.spacing(3)}));function yD(){const[e,t]=nn.useState(!1),[n,r]=p.useState(!1),[o,i]=nn.useState(""),[a,s]=nn.useState("info"),[l,c]=p.useState(!1),[d,f]=p.useState(""),[m,w]=p.useState(""),[y,x]=p.useState(!1),k=(R,E)=>{E!=="clickaway"&&t(!1)},g=()=>{r(!1)},h=R=>{x(R),r(!0)},b=async(R=!1)=>{var E,P;c(!0);try{const M=R?"/api/user/download_chat_logs/range":"/api/user/download_chat_logs",D=R?{params:{start_date:d,end_date:m}}:{},O=await Oe.get(M,{...D,headers:{Authorization:`Bearer ${localStorage.getItem("token")}`},responseType:"blob"}),F=window.URL.createObjectURL(new Blob([O.data])),V=document.createElement("a");V.href=F,V.setAttribute("download",R?"chat_logs_range.csv":"chat_logs.csv"),document.body.appendChild(V),V.click(),i("Chat logs downloaded successfully."),s("success")}catch(M){i(`Failed to download chat logs: ${((P=(E=M.response)==null?void 0:E.data)==null?void 0:P.error)||M.message}`),s("error")}finally{c(!1)}t(!0)},C=async()=>{var R,E;r(!1),c(!0);try{const P=y?"/api/user/delete_chat_logs/range":"/api/user/delete_chat_logs",M=y?{params:{start_date:d,end_date:m}}:{},D=await Oe.delete(P,{...M,headers:{Authorization:`Bearer ${localStorage.getItem("token")}`}});i(D.data.message),s("success")}catch(P){i(`Failed to delete chat logs: ${((E=(R=P.response)==null?void 0:R.data)==null?void 0:E.error)||P.message}`),s("error")}finally{c(!1)}t(!0)};return u.jsxs(vD,{sx:{height:"91vh"},children:[u.jsx(Ie,{variant:"h4",gutterBottom:!0,children:"Manage Your Chat Logs"}),u.jsx(Ie,{variant:"body1",paragraph:!0,children:"Manage your chat logs efficiently by downloading or deleting entries for specific dates or entire ranges. Please be cautious as deletion is permanent."}),u.jsxs("div",{style:{display:"flex",justifyContent:"center",flexDirection:"column",alignItems:"center",gap:20},children:[u.jsxs("div",{style:{display:"flex",gap:10,marginBottom:20},children:[u.jsx(at,{label:"Start Date",type:"date",value:d,onChange:R=>f(R.target.value),InputLabelProps:{shrink:!0}}),u.jsx(at,{label:"End Date",type:"date",value:m,onChange:R=>w(R.target.value),InputLabelProps:{shrink:!0}})]}),u.jsx(Ie,{variant:"body1",paragraph:!0,children:"Here you can download your chat logs as a CSV file, which includes details like chat IDs, content, type, and additional information for each session."}),u.jsx(Ln,{title:"Download chat logs for selected date range",children:u.jsx(Cl,{variant:"outlined",startIcon:u.jsx(I2,{}),onClick:()=>b(!0),disabled:l||!d||!m,children:l?u.jsx(_n,{size:24,color:"inherit"}):"Download Range"})}),u.jsx(Ln,{title:"Download your chat logs as a CSV file",children:u.jsx(Cl,{variant:"contained",color:"primary",startIcon:u.jsx(O2,{}),onClick:()=>b(!1),disabled:l,children:l?u.jsx(_n,{size:24,color:"inherit"}):"Download Chat Logs"})}),u.jsx(Ie,{variant:"body1",paragraph:!0,children:"If you need to clear your history for privacy or other reasons, you can also permanently delete your chat logs from the server."}),u.jsx(Ln,{title:"Delete chat logs for selected date range",children:u.jsx(Cl,{variant:"outlined",color:"warning",startIcon:u.jsx(_p,{}),onClick:()=>h(!0),disabled:l||!d||!m,children:l?u.jsx(_n,{size:24,color:"inherit"}):"Delete Range"})}),u.jsx(Ln,{title:"Permanently delete all your chat logs",children:u.jsx(Cl,{variant:"contained",color:"secondary",startIcon:u.jsx(_p,{}),onClick:()=>h(!1),disabled:l,children:l?u.jsx(_n,{size:24,color:"inherit"}):"Delete Chat Logs"})}),u.jsx(Ie,{variant:"body1",paragraph:!0,children:"Please use these options carefully as deleting your chat logs is irreversible."})]}),u.jsxs($p,{open:n,onClose:g,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[u.jsx(Op,{id:"alert-dialog-title",children:"Confirm Deletion"}),u.jsx(Mp,{children:u.jsx(t2,{id:"alert-dialog-description",children:"Are you sure you want to delete these chat logs? This action cannot be undone."})}),u.jsxs(jp,{children:[u.jsx(Rt,{onClick:g,color:"primary",children:"Cancel"}),u.jsx(Rt,{onClick:()=>C(),color:"secondary",autoFocus:!0,children:"Confirm"})]})]}),u.jsx(yo,{open:e,autoHideDuration:6e3,onClose:k,children:u.jsx(xr,{onClose:k,severity:a,sx:{width:"100%"},children:o})})]})}const Oy=()=>{const{user:e,voiceEnabled:t,setVoiceEnabled:n}=p.useContext(vr),r=e==null?void 0:e.userId,[o,i]=p.useState(0),[a,s]=p.useState(0),[l,c]=p.useState(""),[d,f]=p.useState([]),[m,w]=p.useState(!1),[y,x]=p.useState(null),k=p.useRef([]),[g,h]=p.useState(!1),[b,C]=p.useState(!1),[R,E]=p.useState(""),[P,M]=p.useState("info"),[D,O]=p.useState(null),F=T=>{T.preventDefault(),n(!t)},V=T=>{if(!t||T===D){O(null),window.speechSynthesis.cancel();return}const L=window.speechSynthesis,_=new SpeechSynthesisUtterance(T),N=()=>{const H=L.getVoices();console.log(H.map(A=>`${A.name} - ${A.lang} - ${A.gender}`));const j=H.find(A=>A.name.includes("Microsoft Zira - English (United States)"));j?_.voice=j:console.log("No female voice found"),_.onend=()=>{O(null)},O(T),L.speak(_)};L.getVoices().length===0?L.onvoiceschanged=N:N()},U=(T,L)=>{L!=="clickaway"&&C(!1)},q=p.useCallback(async()=>{if(o!==null){h(!0);try{const T=await fetch(`/api/ai/mental_health/finalize/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"}}),L=await T.json();T.ok?(E("Chat finalized successfully"),M("success"),i(null),s(0),f([])):(E("Failed to finalize chat"),M("error"))}catch{E("Error finalizing chat"),M("error")}finally{h(!1),C(!0)}}},[r,o]),ee=p.useCallback(async()=>{if(l.trim()){console.log(o),h(!0);try{const T=JSON.stringify({prompt:l,turn_id:a}),L=await fetch(`/api/ai/mental_health/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"},body:T}),_=await L.json();console.log(_),L.ok?(f(N=>[...N,{message:l,sender:"user"},{message:_,sender:"agent"}]),s(N=>N+1),c("")):(console.error("Failed to send message:",_),E(_.error||"An error occurred while sending the message."),M("error"),C(!0))}catch(T){console.error("Failed to send message:",T),E("Network or server error occurred."),M("error"),C(!0)}finally{h(!1)}}},[l,r,o,a]),J=()=>MediaRecorder.isTypeSupported("audio/webm; codecs=opus")?"audio/webm; codecs=opus":MediaRecorder.isTypeSupported("audio/mp4")?"audio/mp4":"audio/wav",re=()=>{navigator.mediaDevices.getUserMedia({audio:{sampleRate:44100,channelCount:1,volume:1,echoCancellation:!0}}).then(T=>{k.current=[];const L=J();let _=new MediaRecorder(T,{mimeType:L});_.ondataavailable=N=>{k.current.push(N.data)},_.start(),x(_),w(!0)}).catch(T=>{console.error("Error accessing microphone:",T)})},I=()=>{y&&(y.stream.getTracks().forEach(T=>T.stop()),y.onstop=()=>{const T=y.mimeType,L=new Blob(k.current,{type:T});B(L),w(!1),x(null)},y.stop())},B=T=>{if(T.size===0){console.error("Audio Blob is empty");return}const L=new FormData;L.append("audio",T),h(!0),Oe.post("/api/ai/mental_health/voice-to-text",L,{headers:{"Content-Type":"multipart/form-data"}}).then(_=>{const{message:N}=_.data;c(N),ee()}).catch(_=>{console.error("Error uploading audio:",_)}).finally(()=>{h(!1)})},$=p.useCallback(T=>{const L=T.target.value;L.split(/\s+/).length>200?(c(N=>N.split(/\s+/).slice(0,200).join(" ")),E("Word limit reached. Only 200 words allowed."),M("warning"),C(!0)):c(L)},[]),v=T=>T===D?u.jsx(Cs,{}):u.jsx(Ss,{});return u.jsxs(u.Fragment,{children:[u.jsx("style",{children:` @keyframes blink { 0%, 100% { opacity: 0; } 50% { opacity: 1; } @@ -486,4 +486,4 @@ Error generating stack: `+i.message+` font-size: 0.8rem; /* Smaller font size */ } } - `}),u.jsxs(et,{sx:{maxWidth:"100%",mx:"auto",my:2,display:"flex",flexDirection:"column",height:"91vh",borderRadius:2,boxShadow:1},children:[u.jsxs(id,{sx:{display:"flex",flexDirection:"column",height:"100%",borderRadius:2,boxShadow:3},children:[u.jsxs(Cm,{sx:{flexGrow:1,overflow:"auto",padding:3,position:"relative"},children:[u.jsxs(et,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",position:"relative",marginBottom:"5px"},children:[u.jsx(Ln,{title:"Toggle voice responses",children:u.jsx(lt,{color:"inherit",onClick:F,sx:{padding:0},children:u.jsx(d2,{checked:t,onChange:T=>n(T.target.checked),icon:u.jsx(Cs,{}),checkedIcon:u.jsx(Ss,{}),inputProps:{"aria-label":"Voice response toggle"},color:"default",sx:{height:42,"& .MuiSwitch-switchBase":{padding:"9px"},"& .MuiSwitch-switchBase.Mui-checked":{color:"white",transform:"translateX(16px)","& + .MuiSwitch-track":{backgroundColor:"primary.main"}}}})})}),u.jsx(Ln,{title:"Start a new chat",placement:"top",arrow:!0,children:u.jsx(lt,{"aria-label":"new chat",color:"primary",onClick:q,disabled:g,sx:{"&:hover":{backgroundColor:"primary.main",color:"common.white"}},children:u.jsx(Um,{})})})]}),u.jsx(Wi,{sx:{marginBottom:"10px"}}),d.length===0&&u.jsxs(et,{sx:{display:"flex",marginBottom:2,marginTop:3},children:[u.jsx(Er,{src:Pi,sx:{width:44,height:44,marginRight:2},alt:"Aria"}),u.jsx(Ie,{variant:"h4",component:"h1",gutterBottom:!0,children:"Welcome to Mental Health Companion"})]}),u.jsx(Ws,{sx:{maxHeight:"100%",overflow:"auto"},children:d.map((T,L)=>u.jsx(_c,{sx:{display:"flex",flexDirection:"column",alignItems:T.sender==="user"?"flex-end":"flex-start",borderRadius:2,mb:.5,p:1,border:"none","&:before":{display:"none"},"&:after":{display:"none"}},children:u.jsxs(et,{sx:{display:"flex",alignItems:"center",color:T.sender==="user"?"common.white":"text.primary",borderRadius:"16px"},children:[T.sender==="agent"&&u.jsx(Er,{src:Pi,sx:{width:36,height:36,mr:1},alt:"Aria"}),u.jsx(ws,{primary:u.jsxs(et,{sx:{display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap"},children:[T.message,t&&T.sender==="agent"&&u.jsx(lt,{onClick:()=>V(T.message),size:"small",sx:{ml:1},children:v(T.message)})]}),primaryTypographyProps:{sx:{color:T.sender==="user"?"common.white":"text.primary",bgcolor:T.sender==="user"?"primary.main":"grey.200",borderRadius:"16px",px:2,py:1,display:"inline-block"}}}),T.sender==="user"&&u.jsx(Er,{sx:{width:36,height:36,ml:1},children:u.jsx(cd,{})})]})},L))})]}),u.jsx(Wi,{}),u.jsxs(et,{sx:{p:2,pb:1,display:"flex",alignItems:"center",bgcolor:"background.paper"},children:[u.jsx(at,{fullWidth:!0,variant:"outlined",placeholder:"Type your message here...",value:l,onChange:$,disabled:g,sx:{mr:1,flexGrow:1},InputProps:{endAdornment:u.jsx(Ic,{position:"end",children:u.jsxs(lt,{onClick:m?I:re,color:"primary.main","aria-label":m?"Stop recording":"Start recording",size:"large",edge:"end",disabled:g,children:[m?u.jsx(Nm,{size:"small"}):u.jsx(Lm,{size:"small"}),m&&u.jsx(_n,{size:30,sx:{color:"primary.main",position:"absolute",zIndex:1}})]})})}}),g?u.jsx(_n,{size:24}):u.jsx(Rt,{variant:"contained",color:"primary",onClick:ee,disabled:g||!l.trim(),endIcon:u.jsx(oa,{}),children:"Send"})]})]}),u.jsx(yo,{open:b,autoHideDuration:6e3,onClose:U,children:u.jsx(xr,{elevation:6,variant:"filled",onClose:U,severity:P,children:R})})]})]})};var yg={},xD=Te;Object.defineProperty(yg,"__esModule",{value:!0});var _2=yg.default=void 0,bD=xD(Me()),wD=u;_2=yg.default=(0,bD.default)((0,wD.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5m-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11m3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5"}),"Mood");function SD(){const[e,t]=p.useState(""),[n,r]=p.useState(""),[o,i]=p.useState(""),a=async()=>{const s=localStorage.getItem("token");if(!e||!n){i("Both mood and activities are required.");return}if(!s){i("You are not logged in.");return}try{const l=await Oe.post("/api/user/log_mood",{mood:e,activities:n},{headers:{Authorization:`Bearer ${s}`}});i(l.data.message)}catch(l){i(l.response.data.error)}};return u.jsxs("div",{className:"mood-logging-container",children:[u.jsxs("h1",{children:[u.jsx(_2,{fontSize:"large"})," Track Your Vibes "]}),u.jsxs("div",{className:"mood-logging",children:[u.jsxs("div",{className:"input-group",children:[u.jsx("label",{htmlFor:"mood-input",children:"Mood:"}),u.jsx("input",{id:"mood-input",type:"text",value:e,onChange:s=>t(s.target.value),placeholder:"Enter your current mood"}),u.jsx("label",{htmlFor:"activities-input",children:"Activities:"}),u.jsx("input",{id:"activities-input",type:"text",value:n,onChange:s=>r(s.target.value),placeholder:"What are you doing?"})]}),u.jsx(Rt,{variant:"contained",className:"submit-button",onClick:a,startIcon:u.jsx(oa,{}),children:"Log Mood"}),o&&u.jsx("div",{className:"message",children:o})]})]})}function CD(){const[e,t]=p.useState([]),[n,r]=p.useState("");p.useEffect(()=>{(async()=>{const a=localStorage.getItem("token");if(!a){r("You are not logged in.");return}try{const s=await Oe.get("/api/user/get_mood_logs",{headers:{Authorization:`Bearer ${a}`}});console.log("Received data:",s.data),t(s.data.mood_logs||[])}catch(s){r(s.response.data.error)}})()},[]);const o=i=>{const a={year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"};try{const s=i.$date;return new Date(s).toLocaleDateString("en-US",a)}catch(s){return console.error("Date parsing error:",s),"Invalid Date"}};return u.jsxs("div",{className:"mood-logs",children:[u.jsxs("h2",{children:[u.jsx(sg,{className:"icon-large"}),"Your Mood Journey"]}),n?u.jsx("div",{className:"error",children:n}):u.jsx("ul",{children:e.map((i,a)=>u.jsxs("li",{children:[u.jsxs("div",{children:[u.jsx("strong",{children:"Mood:"})," ",i.mood]}),u.jsxs("div",{children:[u.jsx("strong",{children:"Activities:"})," ",i.activities]}),u.jsxs("div",{children:[u.jsx("strong",{children:"Timestamp:"})," ",o(i.timestamp)]})]},a))})]})}function kD(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}const L2=6e4,A2=36e5;function lf(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}function RD(e,t){const n=kD(e);if(isNaN(n.getTime()))throw new RangeError("Invalid time value");const r=(t==null?void 0:t.format)??"extended";let o="";const i=r==="extended"?"-":"";{const a=lf(n.getDate(),2),s=lf(n.getMonth()+1,2);o=`${lf(n.getFullYear(),4)}${i}${s}${i}${a}`}return o}function PD(e,t){const r=jD(e);let o;if(r.date){const l=MD(r.date,2);o=OD(l.restDateString,l.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);const i=o.getTime();let a=0,s;if(r.time&&(a=ID(r.time),isNaN(a)))return new Date(NaN);if(r.timezone){if(s=_D(r.timezone),isNaN(s))return new Date(NaN)}else{const l=new Date(i+a),c=new Date(0);return c.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),c.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),c}return new Date(i+a+s)}const kl={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},ED=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,TD=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,$D=/^([+-])(\d{2})(?::?(\d{2}))?$/;function jD(e){const t={},n=e.split(kl.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],kl.timeZoneDelimiter.test(t.date)&&(t.date=e.split(kl.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const o=kl.timezone.exec(r);o?(t.time=r.replace(o[1],""),t.timezone=o[1]):t.time=r}return t}function MD(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?o:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function OD(e,t){if(t===null)return new Date(NaN);const n=e.match(ED);if(!n)return new Date(NaN);const r=!!n[4],o=Ra(n[1]),i=Ra(n[2])-1,a=Ra(n[3]),s=Ra(n[4]),l=Ra(n[5])-1;if(r)return zD(t,s,l)?LD(t,s,l):new Date(NaN);{const c=new Date(0);return!ND(t,i,a)||!DD(t,o)?new Date(NaN):(c.setUTCFullYear(t,i,Math.max(o,a)),c)}}function Ra(e){return e?parseInt(e):1}function ID(e){const t=e.match(TD);if(!t)return NaN;const n=cf(t[1]),r=cf(t[2]),o=cf(t[3]);return BD(n,r,o)?n*A2+r*L2+o*1e3:NaN}function cf(e){return e&&parseFloat(e.replace(",","."))||0}function _D(e){if(e==="Z")return 0;const t=e.match($D);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return FD(r,o)?n*(r*A2+o*L2):NaN}function LD(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,i=(t-1)*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}const AD=[31,null,31,30,31,30,31,31,30,31,30,31];function N2(e){return e%400===0||e%4===0&&e%100!==0}function ND(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(AD[t]||(N2(e)?29:28))}function DD(e,t){return t>=1&&t<=(N2(e)?366:365)}function zD(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function BD(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function FD(e,t){return t>=0&&t<=59}function Lp({userId:e,update:t}){const[n,r]=p.useState(""),[o,i]=p.useState("daily"),[a,s]=p.useState(!1),{checkInId:l}=Ms(),[c,d]=p.useState(!1),[f,m]=p.useState({open:!1,message:"",severity:"info"}),w=localStorage.getItem("token");p.useEffect(()=>{t&&l&&(d(!0),Oe.get(`/api/check-in/${l}`,{headers:{Authorization:`Bearer ${w}`}}).then(k=>{const g=k.data;console.log("Fetched check-in data:",g);const h=RD(PD(g.check_in_time),{representation:"date"});r(h.slice(0,16)),i(g.frequency),s(g.notify),d(!1)}).catch(k=>{console.error("Failed to fetch check-in details:",k),d(!1)}))},[t,l]);const y=async k=>{var P,M,D;if(k.preventDefault(),new Date(n)<=new Date){m({open:!0,message:"Cannot schedule check-in in the past. Please choose a future time.",severity:"error"});return}const b=t?`/api/check-in/${l}`:"/api/check-in/schedule",C={headers:{Authorization:`Bearer ${w}`,"Content-Type":"application/json"}};console.log("URL:",b);const R=t?"patch":"post",E={user_id:e,check_in_time:n,frequency:o,notify:a};console.log("Submitting:",E);try{const O=await Oe[R](b,E,C);console.log("Success:",O.data.message),m({open:!0,message:O.data.message,severity:"success"})}catch(O){console.error("Error:",((P=O.response)==null?void 0:P.data)||O);const F=((D=(M=O.response)==null?void 0:M.data)==null?void 0:D.error)||"An unexpected error occurred";m({open:!0,message:F,severity:"error"})}},x=(k,g)=>{g!=="clickaway"&&m({...f,open:!1})};return c?u.jsx(Ie,{children:"Loading..."}):u.jsxs(et,{component:"form",onSubmit:y,noValidate:!0,sx:{mt:4,padding:3,borderRadius:2,boxShadow:3},children:[u.jsx(at,{id:"datetime-local",label:"Check-in Time",type:"datetime-local",fullWidth:!0,value:n,onChange:k=>r(k.target.value),sx:{marginBottom:3},InputLabelProps:{shrink:!0},required:!0,helperText:"Select the date and time for your check-in."}),u.jsxs(sd,{fullWidth:!0,sx:{marginBottom:3},children:[u.jsx(ld,{id:"frequency-label",children:"Frequency"}),u.jsxs(Vs,{labelId:"frequency-label",id:"frequency",value:o,label:"Frequency",onChange:k=>i(k.target.value),children:[u.jsx(Zn,{value:"daily",children:"Daily"}),u.jsx(Zn,{value:"weekly",children:"Weekly"}),u.jsx(Zn,{value:"monthly",children:"Monthly"})]}),u.jsx(Ln,{title:"Choose how often you want the check-ins to occur",children:u.jsx("i",{className:"fas fa-info-circle"})})]}),u.jsx(Tm,{control:u.jsx(km,{checked:a,onChange:k=>s(k.target.checked),color:"primary"}),label:"Notify me",sx:{marginBottom:2}}),u.jsx(Rt,{type:"submit",fullWidth:!0,variant:"contained",color:"primary",sx:{mt:2,mb:2,padding:"10px 0"},children:t?"Update Check-In":"Schedule Check-In"}),u.jsx(yo,{open:f.open,autoHideDuration:6e3,onClose:x,children:u.jsx(xr,{onClose:x,severity:f.severity,children:f.message})})]})}Lp.propTypes={userId:Vd.string.isRequired,checkInId:Vd.string,update:Vd.bool.isRequired};var xg={},UD=Te;Object.defineProperty(xg,"__esModule",{value:!0});var D2=xg.default=void 0,WD=UD(Me()),Iy=u;D2=xg.default=(0,WD.default)([(0,Iy.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,Iy.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");var bg={},VD=Te;Object.defineProperty(bg,"__esModule",{value:!0});var z2=bg.default=void 0,HD=VD(Me()),qD=u;z2=bg.default=(0,HD.default)((0,qD.jsx)("path",{d:"M7 7h10v3l4-4-4-4v3H5v6h2zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2z"}),"Repeat");var wg={},GD=Te;Object.defineProperty(wg,"__esModule",{value:!0});var B2=wg.default=void 0,KD=GD(Me()),YD=u;B2=wg.default=(0,KD.default)((0,YD.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert");var Sg={},XD=Te;Object.defineProperty(Sg,"__esModule",{value:!0});var F2=Sg.default=void 0,QD=XD(Me()),JD=u;F2=Sg.default=(0,QD.default)((0,JD.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");var Cg={},ZD=Te;Object.defineProperty(Cg,"__esModule",{value:!0});var U2=Cg.default=void 0,ez=ZD(Me()),tz=u;U2=Cg.default=(0,ez.default)((0,tz.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");const nz=ie(id)(({theme:e})=>({marginBottom:e.spacing(2),padding:e.spacing(2),display:"flex",alignItems:"center",justifyContent:"space-between",transition:"transform 0.1s ease-in-out","&:hover":{transform:"scale(1.01)",boxShadow:e.shadows[3]}})),rz=nn.forwardRef(function(t,n){return u.jsx(xr,{elevation:6,ref:n,variant:"filled",...t})});function oz(){const{userId:e}=Ms(),t=qo(),[n,r]=p.useState([]),[o,i]=p.useState(null),[a,s]=p.useState(!1),[l,c]=p.useState(!1),[d,f]=p.useState(!1),[m,w]=p.useState(""),[y,x]=p.useState(!1),[k,g]=p.useState(""),[h,b]=p.useState("info"),C=localStorage.getItem("token");p.useEffect(()=>{R()},[e]);const R=async()=>{if(!e){w("User not logged in");return}if(!C){w("No token found, please log in again");return}f(!0);try{const V=await Oe.get(`/api/check-in/all?user_id=${e}`,{headers:{Authorization:`Bearer ${C}`}});if(console.log("API Response:",V.data),Array.isArray(V.data)&&V.data.every(U=>U._id&&U._id.$oid&&U.check_in_time&&U.check_in_time.$date)){const U=V.data.map(q=>({...q,_id:q._id.$oid,check_in_time:new Date(q.check_in_time.$date).toLocaleString()}));r(U)}else console.error("Data received is not in expected array format:",V.data),w("Unexpected data format");f(!1)}catch(V){console.error("Error during fetch:",V),w(V.message),f(!1)}},E=V=>{const U=n.find(q=>q._id===V);U&&(i(U),console.log("Selected check-in for details or update:",U),s(!0))},P=()=>{s(!1),c(!1)},M=async()=>{if(o){try{await Oe.delete(`/api/check-in/${o._id}`,{headers:{Authorization:`Bearer ${C}`}}),g("Check-in deleted successfully"),b("success"),R(),P()}catch{g("Failed to delete check-in"),b("error")}x(!0)}},D=()=>{t(`/user/check_in/${o._id}`),console.log("Redirecting to update check-in form",o._id)},O=(V,U)=>{U!=="clickaway"&&x(!1)},F=()=>{c(!0)};return e?d?u.jsx(Ie,{variant:"h6",mt:"2",children:"Loading..."}):u.jsxs(et,{sx:{margin:3,maxWidth:600,mx:"auto",maxHeight:"91vh",overflow:"auto"},children:[u.jsx(Ie,{variant:"h4",gutterBottom:!0,children:"Track Your Commitments"}),u.jsx(Wi,{sx:{mb:2}}),n.length>0?u.jsx(Ws,{children:n.map(V=>u.jsxs(nz,{children:[u.jsx(Z_,{children:u.jsx(Er,{sx:{bgcolor:"primary.main"},children:u.jsx(D2,{})})}),u.jsx(ws,{primary:`Check-In: ${V.check_in_time}`,secondary:u.jsx(EO,{label:V.frequency,icon:u.jsx(z2,{}),size:"small"})}),u.jsx(Ln,{title:"More options",children:u.jsx(lt,{onClick:()=>E(V._id),children:u.jsx(B2,{})})})]},V._id))}):u.jsx(Ie,{variant:"h6",sx:{mb:2,mt:2,color:"error.main",fontWeight:"medium",textAlign:"center",padding:2,borderRadius:1,backgroundColor:"background.paper",boxShadow:2},children:"No check-ins found."}),u.jsxs($p,{open:a,onClose:P,children:[u.jsx(Op,{children:"Check-In Details"}),u.jsx(Mp,{children:u.jsxs(Ie,{component:"div",children:[u.jsxs(Ie,{variant:"body1",children:[u.jsx("strong",{children:"Time:"})," ",o==null?void 0:o.check_in_time]}),u.jsxs(Ie,{variant:"body1",children:[u.jsx("strong",{children:"Frequency:"})," ",o==null?void 0:o.frequency]}),u.jsxs(Ie,{variant:"body1",children:[u.jsx("strong",{children:"Status:"})," ",o==null?void 0:o.status]}),u.jsxs(Ie,{variant:"body1",children:[u.jsx("strong",{children:"Notify:"})," ",o!=null&&o.notify?"Yes":"No"]})]})}),u.jsxs(jp,{children:[u.jsx(Rt,{onClick:D,startIcon:u.jsx(U2,{}),children:"Update"}),u.jsx(Rt,{onClick:F,startIcon:u.jsx(F2,{}),color:"error",children:"Delete"}),u.jsx(Rt,{onClick:P,children:"Close"})]})]}),u.jsxs($p,{open:l,onClose:P,children:[u.jsx(Op,{children:"Confirm Deletion"}),u.jsx(Mp,{children:u.jsx(t2,{children:"Are you sure you want to delete this check-in? This action cannot be undone."})}),u.jsxs(jp,{children:[u.jsx(Rt,{onClick:M,color:"error",children:"Delete"}),u.jsx(Rt,{onClick:P,children:"Cancel"})]})]}),u.jsx(yo,{open:y,autoHideDuration:6e3,onClose:O,children:u.jsx(rz,{onClose:O,severity:h,children:k})})]}):u.jsx(Ie,{variant:"h6",mt:"2",children:"Please log in to see your check-ins."})}const wr=({children:e})=>{const t=localStorage.getItem("token");return console.log("isAuthenticated:",t),t?e:u.jsx(MP,{to:"/auth",replace:!0})};var kg={},iz=Te;Object.defineProperty(kg,"__esModule",{value:!0});var W2=kg.default=void 0,az=iz(Me()),sz=u;W2=kg.default=(0,az.default)((0,sz.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 14H4V8l8 5 8-5zm-8-7L4 6h16z"}),"MailOutline");function lz(){const[e,t]=p.useState(""),[n,r]=p.useState(""),[o,i]=p.useState(!1),[a,s]=p.useState(!1),l=async c=>{var d,f;c.preventDefault(),s(!0);try{const m=await Oe.post("/api/user/request_reset",{email:e});r(m.data.message),i(!1)}catch(m){r(((f=(d=m.response)==null?void 0:d.data)==null?void 0:f.message)||"Failed to send reset link. Please try again."),i(!0)}s(!1)};return u.jsx(et,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",sx:{background:"linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)","& .MuiPaper-root":{background:"#fff",padding:"30px",width:"400px",textAlign:"center"}},children:u.jsxs(En,{elevation:3,style:{padding:"30px",width:"400px",textAlign:"center"},children:[u.jsx(Ie,{variant:"h5",component:"h1",marginBottom:"20px",children:"Reset Your Password"}),u.jsxs("form",{onSubmit:l,children:[u.jsx(at,{label:"Email Address",type:"email",value:e,onChange:c=>t(c.target.value),variant:"outlined",fullWidth:!0,required:!0,margin:"normal",InputProps:{endAdornment:u.jsx(W2,{})}}),u.jsx(Rt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,disabled:a,endIcon:a?null:u.jsx(oa,{}),children:a?u.jsx(_n,{size:24}):"Send Reset Link"})]}),n&&u.jsx(xr,{severity:o?"error":"success",sx:{maxWidth:"325px",mt:2},children:n})]})})}var Rg={},cz=Te;Object.defineProperty(Rg,"__esModule",{value:!0});var Ap=Rg.default=void 0,uz=cz(Me()),dz=u;Ap=Rg.default=(0,uz.default)((0,dz.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");var Pg={},fz=Te;Object.defineProperty(Pg,"__esModule",{value:!0});var V2=Pg.default=void 0,pz=fz(Me()),hz=u;V2=Pg.default=(0,pz.default)((0,hz.jsx)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l4 4 4-4H6c0-3.86 3.14-7 7-7s7 3.14 7 7-3.14 7-7 7c-1.9 0-3.62-.76-4.88-1.99L6.7 18.42C8.32 20.01 10.55 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m2 8v-1c0-1.1-.9-2-2-2s-2 .9-2 2v1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1m-1 0h-2v-1c0-.55.45-1 1-1s1 .45 1 1z"}),"LockReset");function mz(){const e=qo(),{token:t}=Ms(),[n,r]=p.useState(""),[o,i]=p.useState(""),[a,s]=p.useState(!1),[l,c]=p.useState(""),[d,f]=p.useState(!1),m=async y=>{if(y.preventDefault(),n!==o){c("Passwords do not match."),f(!0);return}try{const x=await Oe.post(`/api/user/reset_password/${t}`,{password:n});c(x.data.message),f(!1),setTimeout(()=>e("/auth"),2e3)}catch(x){c(x.response.data.error),f(!0)}},w=()=>{s(!a)};return u.jsx(et,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",sx:{background:"linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)","& .MuiPaper-root":{padding:"40px",width:"400px",textAlign:"center",marginTop:"20px",borderRadius:"10px"}},children:u.jsxs(En,{elevation:6,children:[u.jsxs(Ie,{variant:"h5",component:"h1",marginBottom:"2",children:["Reset Your Password ",u.jsx(V2,{})]}),u.jsxs("form",{onSubmit:m,children:[u.jsx(at,{label:"New Password",type:a?"text":"password",value:n,onChange:y=>r(y.target.value),variant:"outlined",fullWidth:!0,required:!0,margin:"normal",InputProps:{endAdornment:u.jsx(Ic,{position:"end",children:u.jsx(lt,{"aria-label":"toggle password visibility",onClick:w,children:a?u.jsx(Ap,{}):u.jsx(Ac,{})})})}}),u.jsx(at,{label:"Confirm New Password",type:a?"text":"password",value:o,onChange:y=>i(y.target.value),variant:"outlined",fullWidth:!0,required:!0,margin:"normal",InputProps:{endAdornment:u.jsx(Ic,{position:"end",children:u.jsx(lt,{"aria-label":"toggle password visibility",onClick:w,children:a?u.jsx(Ap,{}):u.jsx(Ac,{})})})}}),u.jsx(Rt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,sx:{mt:2},endIcon:u.jsx(oa,{}),children:"Reset Password"})]}),l&&u.jsx(xr,{severity:d?"error":"success",sx:{mt:2,maxWidth:"325px"},children:l})]})})}function gz(){const{user:e}=p.useContext(vr);return p.useEffect(()=>{document.body.style.backgroundColor="#f5f5f5"},[]),u.jsx(vz,{children:u.jsxs(IP,{children:[u.jsx(mn,{path:"/",element:u.jsx(wr,{children:e!=null&&e.userId?u.jsx(NN,{}):u.jsx(Oy,{})})}),u.jsx(mn,{path:"/chat",element:u.jsx(wr,{children:u.jsx(Oy,{})})}),u.jsx(mn,{path:"/reset_password/:token",element:u.jsx(mz,{})}),u.jsx(mn,{path:"/request_reset",element:u.jsx(lz,{})}),u.jsx(mn,{path:"/auth",element:u.jsx(QN,{})}),u.jsx(mn,{path:"/user/profile/:userId",element:u.jsx(wr,{children:u.jsx(j6,{})})}),u.jsx(mn,{path:"/user/mood_logging",element:u.jsx(wr,{children:u.jsx(SD,{})})}),u.jsx(mn,{path:"/user/mood_logs",element:u.jsx(wr,{children:u.jsx(CD,{})})}),u.jsx(mn,{path:"/user/check_in",element:u.jsx(wr,{children:u.jsx(Lp,{userId:e==null?void 0:e.userId,checkInId:"",update:!1})})}),u.jsx(mn,{path:"/user/check_in/:checkInId",element:u.jsx(wr,{children:u.jsx(Lp,{userId:e==null?void 0:e.userId,update:!0})})}),u.jsx(mn,{path:"/user/chat_log_Manager",element:u.jsx(wr,{children:u.jsx(yD,{})})}),u.jsx(mn,{path:"/user/check_ins/:userId",element:u.jsx(wr,{children:u.jsx(oz,{})})})]})})}function vz({children:e}){p.useContext(vr);const t=ho(),r=!["/auth","/request_reset",new RegExp("^/reset_password/[^/]+$")].some(l=>typeof l=="string"?l===t.pathname:l.test(t.pathname)),o=r?6:0,[i,a]=p.useState(!0),s=()=>{a(!i)};return u.jsxs(et,{sx:{display:"flex",maxHeight:"100vh"},children:[u.jsx(Rm,{}),r&&u.jsx(sD,{toggleSidebar:s}),r&&i&&u.jsx(Q6,{}),u.jsx(et,{component:"main",sx:{flexGrow:1,p:o},children:e})]})}function yz(e){const t="=".repeat((4-e.length%4)%4),n=(e+t).replace(/-/g,"+").replace(/_/g,"/"),r=window.atob(n),o=new Uint8Array(r.length);for(let i=0;i{if(t!=="granted")throw new Error("Permission not granted for Notification");return e.pushManager.getSubscription()}).then(function(t){return t||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:yz(bz)})}).then(function(t){console.log("Subscription:",t);const n={p256dh:btoa(String.fromCharCode.apply(null,new Uint8Array(t.getKey("p256dh")))),auth:btoa(String.fromCharCode.apply(null,new Uint8Array(t.getKey("auth"))))};if(console.log("Subscription keys:",n),!n.p256dh||!n.auth)throw console.error("Subscription object:",t),new Error("Subscription keys are missing");const r={endpoint:t.endpoint,keys:n},o=xz();if(!o)throw new Error("No token found");return fetch("/api/subscribe",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`},body:JSON.stringify(r)})}).then(t=>t.json()).then(t=>console.log("Subscription response:",t)).catch(t=>console.error("Subscription failed:",t))}).catch(function(e){console.error("Service Worker registration failed:",e)})});uf.createRoot(document.getElementById("root")).render(u.jsx(FP,{children:u.jsx(KP,{children:u.jsx(gz,{})})})); + `}),u.jsxs(et,{sx:{maxWidth:"100%",mx:"auto",my:2,display:"flex",flexDirection:"column",height:"91vh",borderRadius:2,boxShadow:1},children:[u.jsxs(id,{sx:{display:"flex",flexDirection:"column",height:"100%",borderRadius:2,boxShadow:3},children:[u.jsxs(Cm,{sx:{flexGrow:1,overflow:"auto",padding:3,position:"relative"},children:[u.jsxs(et,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",position:"relative",marginBottom:"5px"},children:[u.jsx(Ln,{title:"Toggle voice responses",children:u.jsx(lt,{color:"inherit",onClick:F,sx:{padding:0},children:u.jsx(d2,{checked:t,onChange:T=>n(T.target.checked),icon:u.jsx(Cs,{}),checkedIcon:u.jsx(Ss,{}),inputProps:{"aria-label":"Voice response toggle"},color:"default",sx:{height:42,"& .MuiSwitch-switchBase":{padding:"9px"},"& .MuiSwitch-switchBase.Mui-checked":{color:"white",transform:"translateX(16px)","& + .MuiSwitch-track":{backgroundColor:"primary.main"}}}})})}),u.jsx(Ln,{title:"Start a new chat",placement:"top",arrow:!0,children:u.jsx(lt,{"aria-label":"new chat",color:"primary",onClick:q,disabled:g,sx:{"&:hover":{backgroundColor:"primary.main",color:"common.white"}},children:u.jsx(Um,{})})})]}),u.jsx(Wi,{sx:{marginBottom:"10px"}}),d.length===0&&u.jsxs(et,{sx:{display:"flex",marginBottom:2,marginTop:3},children:[u.jsx(Er,{src:Pi,sx:{width:44,height:44,marginRight:2},alt:"Aria"}),u.jsx(Ie,{variant:"h4",component:"h1",gutterBottom:!0,children:"Welcome to Your Mental Health Companion"})]}),u.jsx(Ws,{sx:{maxHeight:"100%",overflow:"auto"},children:d.map((T,L)=>u.jsx(_c,{sx:{display:"flex",flexDirection:"column",alignItems:T.sender==="user"?"flex-end":"flex-start",borderRadius:2,mb:.5,p:1,border:"none","&:before":{display:"none"},"&:after":{display:"none"}},children:u.jsxs(et,{sx:{display:"flex",alignItems:"center",color:T.sender==="user"?"common.white":"text.primary",borderRadius:"16px"},children:[T.sender==="agent"&&u.jsx(Er,{src:Pi,sx:{width:36,height:36,mr:1},alt:"Aria"}),u.jsx(ws,{primary:u.jsxs(et,{sx:{display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap"},children:[T.message,t&&T.sender==="agent"&&u.jsx(lt,{onClick:()=>V(T.message),size:"small",sx:{ml:1},children:v(T.message)})]}),primaryTypographyProps:{sx:{color:T.sender==="user"?"common.white":"text.primary",bgcolor:T.sender==="user"?"primary.main":"grey.200",borderRadius:"16px",px:2,py:1,display:"inline-block"}}}),T.sender==="user"&&u.jsx(Er,{sx:{width:36,height:36,ml:1},children:u.jsx(cd,{})})]})},L))})]}),u.jsx(Wi,{}),u.jsxs(et,{sx:{p:2,pb:1,display:"flex",alignItems:"center",bgcolor:"background.paper"},children:[u.jsx(at,{fullWidth:!0,variant:"outlined",placeholder:"Type your message here...",value:l,onChange:$,disabled:g,sx:{mr:1,flexGrow:1},InputProps:{endAdornment:u.jsx(Ic,{position:"end",children:u.jsxs(lt,{onClick:m?I:re,color:"primary.main","aria-label":m?"Stop recording":"Start recording",size:"large",edge:"end",disabled:g,children:[m?u.jsx(Nm,{size:"small"}):u.jsx(Lm,{size:"small"}),m&&u.jsx(_n,{size:30,sx:{color:"primary.main",position:"absolute",zIndex:1}})]})})}}),g?u.jsx(_n,{size:24}):u.jsx(Rt,{variant:"contained",color:"primary",onClick:ee,disabled:g||!l.trim(),endIcon:u.jsx(oa,{}),children:"Send"})]})]}),u.jsx(yo,{open:b,autoHideDuration:6e3,onClose:U,children:u.jsx(xr,{elevation:6,variant:"filled",onClose:U,severity:P,children:R})})]})]})};var yg={},xD=Te;Object.defineProperty(yg,"__esModule",{value:!0});var _2=yg.default=void 0,bD=xD(Me()),wD=u;_2=yg.default=(0,bD.default)((0,wD.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5m-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11m3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5"}),"Mood");function SD(){const[e,t]=p.useState(""),[n,r]=p.useState(""),[o,i]=p.useState(""),a=async()=>{const s=localStorage.getItem("token");if(!e||!n){i("Both mood and activities are required.");return}if(!s){i("You are not logged in.");return}try{const l=await Oe.post("/api/user/log_mood",{mood:e,activities:n},{headers:{Authorization:`Bearer ${s}`}});i(l.data.message)}catch(l){i(l.response.data.error)}};return u.jsxs("div",{className:"mood-logging-container",children:[u.jsxs("h1",{children:[u.jsx(_2,{fontSize:"large"})," Track Your Vibes "]}),u.jsxs("div",{className:"mood-logging",children:[u.jsxs("div",{className:"input-group",children:[u.jsx("label",{htmlFor:"mood-input",children:"Mood:"}),u.jsx("input",{id:"mood-input",type:"text",value:e,onChange:s=>t(s.target.value),placeholder:"Enter your current mood"}),u.jsx("label",{htmlFor:"activities-input",children:"Activities:"}),u.jsx("input",{id:"activities-input",type:"text",value:n,onChange:s=>r(s.target.value),placeholder:"What are you doing?"})]}),u.jsx(Rt,{variant:"contained",className:"submit-button",onClick:a,startIcon:u.jsx(oa,{}),children:"Log Mood"}),o&&u.jsx("div",{className:"message",children:o})]})]})}function CD(){const[e,t]=p.useState([]),[n,r]=p.useState("");p.useEffect(()=>{(async()=>{const a=localStorage.getItem("token");if(!a){r("You are not logged in.");return}try{const s=await Oe.get("/api/user/get_mood_logs",{headers:{Authorization:`Bearer ${a}`}});console.log("Received data:",s.data),t(s.data.mood_logs||[])}catch(s){r(s.response.data.error)}})()},[]);const o=i=>{const a={year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"};try{const s=i.$date;return new Date(s).toLocaleDateString("en-US",a)}catch(s){return console.error("Date parsing error:",s),"Invalid Date"}};return u.jsxs("div",{className:"mood-logs",children:[u.jsxs("h2",{children:[u.jsx(sg,{className:"icon-large"}),"Your Mood Journey"]}),n?u.jsx("div",{className:"error",children:n}):u.jsx("ul",{children:e.map((i,a)=>u.jsxs("li",{children:[u.jsxs("div",{children:[u.jsx("strong",{children:"Mood:"})," ",i.mood]}),u.jsxs("div",{children:[u.jsx("strong",{children:"Activities:"})," ",i.activities]}),u.jsxs("div",{children:[u.jsx("strong",{children:"Timestamp:"})," ",o(i.timestamp)]})]},a))})]})}function kD(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}const L2=6e4,A2=36e5;function lf(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}function RD(e,t){const n=kD(e);if(isNaN(n.getTime()))throw new RangeError("Invalid time value");const r=(t==null?void 0:t.format)??"extended";let o="";const i=r==="extended"?"-":"";{const a=lf(n.getDate(),2),s=lf(n.getMonth()+1,2);o=`${lf(n.getFullYear(),4)}${i}${s}${i}${a}`}return o}function PD(e,t){const r=jD(e);let o;if(r.date){const l=MD(r.date,2);o=OD(l.restDateString,l.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);const i=o.getTime();let a=0,s;if(r.time&&(a=ID(r.time),isNaN(a)))return new Date(NaN);if(r.timezone){if(s=_D(r.timezone),isNaN(s))return new Date(NaN)}else{const l=new Date(i+a),c=new Date(0);return c.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),c.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),c}return new Date(i+a+s)}const kl={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},ED=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,TD=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,$D=/^([+-])(\d{2})(?::?(\d{2}))?$/;function jD(e){const t={},n=e.split(kl.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],kl.timeZoneDelimiter.test(t.date)&&(t.date=e.split(kl.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const o=kl.timezone.exec(r);o?(t.time=r.replace(o[1],""),t.timezone=o[1]):t.time=r}return t}function MD(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?o:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function OD(e,t){if(t===null)return new Date(NaN);const n=e.match(ED);if(!n)return new Date(NaN);const r=!!n[4],o=Ra(n[1]),i=Ra(n[2])-1,a=Ra(n[3]),s=Ra(n[4]),l=Ra(n[5])-1;if(r)return zD(t,s,l)?LD(t,s,l):new Date(NaN);{const c=new Date(0);return!ND(t,i,a)||!DD(t,o)?new Date(NaN):(c.setUTCFullYear(t,i,Math.max(o,a)),c)}}function Ra(e){return e?parseInt(e):1}function ID(e){const t=e.match(TD);if(!t)return NaN;const n=cf(t[1]),r=cf(t[2]),o=cf(t[3]);return BD(n,r,o)?n*A2+r*L2+o*1e3:NaN}function cf(e){return e&&parseFloat(e.replace(",","."))||0}function _D(e){if(e==="Z")return 0;const t=e.match($D);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return FD(r,o)?n*(r*A2+o*L2):NaN}function LD(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,i=(t-1)*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}const AD=[31,null,31,30,31,30,31,31,30,31,30,31];function N2(e){return e%400===0||e%4===0&&e%100!==0}function ND(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(AD[t]||(N2(e)?29:28))}function DD(e,t){return t>=1&&t<=(N2(e)?366:365)}function zD(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function BD(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function FD(e,t){return t>=0&&t<=59}function Lp({userId:e,update:t}){const[n,r]=p.useState(""),[o,i]=p.useState("daily"),[a,s]=p.useState(!1),{checkInId:l}=Ms(),[c,d]=p.useState(!1),[f,m]=p.useState({open:!1,message:"",severity:"info"}),w=localStorage.getItem("token");p.useEffect(()=>{t&&l&&(d(!0),Oe.get(`/api/check-in/${l}`,{headers:{Authorization:`Bearer ${w}`}}).then(k=>{const g=k.data;console.log("Fetched check-in data:",g);const h=RD(PD(g.check_in_time),{representation:"date"});r(h.slice(0,16)),i(g.frequency),s(g.notify),d(!1)}).catch(k=>{console.error("Failed to fetch check-in details:",k),d(!1)}))},[t,l]);const y=async k=>{var P,M,D;if(k.preventDefault(),new Date(n)<=new Date){m({open:!0,message:"Cannot schedule check-in in the past. Please choose a future time.",severity:"error"});return}const b=t?`/api/check-in/${l}`:"/api/check-in/schedule",C={headers:{Authorization:`Bearer ${w}`,"Content-Type":"application/json"}};console.log("URL:",b);const R=t?"patch":"post",E={user_id:e,check_in_time:n,frequency:o,notify:a};console.log("Submitting:",E);try{const O=await Oe[R](b,E,C);console.log("Success:",O.data.message),m({open:!0,message:O.data.message,severity:"success"})}catch(O){console.error("Error:",((P=O.response)==null?void 0:P.data)||O);const F=((D=(M=O.response)==null?void 0:M.data)==null?void 0:D.error)||"An unexpected error occurred";m({open:!0,message:F,severity:"error"})}},x=(k,g)=>{g!=="clickaway"&&m({...f,open:!1})};return c?u.jsx(Ie,{children:"Loading..."}):u.jsxs(et,{component:"form",onSubmit:y,noValidate:!0,sx:{mt:4,padding:3,borderRadius:2,boxShadow:3},children:[u.jsx(at,{id:"datetime-local",label:"Check-in Time",type:"datetime-local",fullWidth:!0,value:n,onChange:k=>r(k.target.value),sx:{marginBottom:3},InputLabelProps:{shrink:!0},required:!0,helperText:"Select the date and time for your check-in."}),u.jsxs(sd,{fullWidth:!0,sx:{marginBottom:3},children:[u.jsx(ld,{id:"frequency-label",children:"Frequency"}),u.jsxs(Vs,{labelId:"frequency-label",id:"frequency",value:o,label:"Frequency",onChange:k=>i(k.target.value),children:[u.jsx(Zn,{value:"daily",children:"Daily"}),u.jsx(Zn,{value:"weekly",children:"Weekly"}),u.jsx(Zn,{value:"monthly",children:"Monthly"})]}),u.jsx(Ln,{title:"Choose how often you want the check-ins to occur",children:u.jsx("i",{className:"fas fa-info-circle"})})]}),u.jsx(Tm,{control:u.jsx(km,{checked:a,onChange:k=>s(k.target.checked),color:"primary"}),label:"Notify me",sx:{marginBottom:2}}),u.jsx(Rt,{type:"submit",fullWidth:!0,variant:"contained",color:"primary",sx:{mt:2,mb:2,padding:"10px 0"},children:t?"Update Check-In":"Schedule Check-In"}),u.jsx(yo,{open:f.open,autoHideDuration:6e3,onClose:x,children:u.jsx(xr,{onClose:x,severity:f.severity,children:f.message})})]})}Lp.propTypes={userId:Vd.string.isRequired,checkInId:Vd.string,update:Vd.bool.isRequired};var xg={},UD=Te;Object.defineProperty(xg,"__esModule",{value:!0});var D2=xg.default=void 0,WD=UD(Me()),Iy=u;D2=xg.default=(0,WD.default)([(0,Iy.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,Iy.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");var bg={},VD=Te;Object.defineProperty(bg,"__esModule",{value:!0});var z2=bg.default=void 0,HD=VD(Me()),qD=u;z2=bg.default=(0,HD.default)((0,qD.jsx)("path",{d:"M7 7h10v3l4-4-4-4v3H5v6h2zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2z"}),"Repeat");var wg={},GD=Te;Object.defineProperty(wg,"__esModule",{value:!0});var B2=wg.default=void 0,KD=GD(Me()),YD=u;B2=wg.default=(0,KD.default)((0,YD.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert");var Sg={},XD=Te;Object.defineProperty(Sg,"__esModule",{value:!0});var F2=Sg.default=void 0,QD=XD(Me()),JD=u;F2=Sg.default=(0,QD.default)((0,JD.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");var Cg={},ZD=Te;Object.defineProperty(Cg,"__esModule",{value:!0});var U2=Cg.default=void 0,ez=ZD(Me()),tz=u;U2=Cg.default=(0,ez.default)((0,tz.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");const nz=ie(id)(({theme:e})=>({marginBottom:e.spacing(2),padding:e.spacing(2),display:"flex",alignItems:"center",justifyContent:"space-between",transition:"transform 0.1s ease-in-out","&:hover":{transform:"scale(1.01)",boxShadow:e.shadows[3]}})),rz=nn.forwardRef(function(t,n){return u.jsx(xr,{elevation:6,ref:n,variant:"filled",...t})});function oz(){const{userId:e}=Ms(),t=qo(),[n,r]=p.useState([]),[o,i]=p.useState(null),[a,s]=p.useState(!1),[l,c]=p.useState(!1),[d,f]=p.useState(!1),[m,w]=p.useState(""),[y,x]=p.useState(!1),[k,g]=p.useState(""),[h,b]=p.useState("info"),C=localStorage.getItem("token");p.useEffect(()=>{R()},[e]);const R=async()=>{if(!e){w("User not logged in");return}if(!C){w("No token found, please log in again");return}f(!0);try{const V=await Oe.get(`/api/check-in/all?user_id=${e}`,{headers:{Authorization:`Bearer ${C}`}});if(console.log("API Response:",V.data),Array.isArray(V.data)&&V.data.every(U=>U._id&&U._id.$oid&&U.check_in_time&&U.check_in_time.$date)){const U=V.data.map(q=>({...q,_id:q._id.$oid,check_in_time:new Date(q.check_in_time.$date).toLocaleString()}));r(U)}else console.error("Data received is not in expected array format:",V.data),w("Unexpected data format");f(!1)}catch(V){console.error("Error during fetch:",V),w(V.message),f(!1)}},E=V=>{const U=n.find(q=>q._id===V);U&&(i(U),console.log("Selected check-in for details or update:",U),s(!0))},P=()=>{s(!1),c(!1)},M=async()=>{if(o){try{await Oe.delete(`/api/check-in/${o._id}`,{headers:{Authorization:`Bearer ${C}`}}),g("Check-in deleted successfully"),b("success"),R(),P()}catch{g("Failed to delete check-in"),b("error")}x(!0)}},D=()=>{t(`/user/check_in/${o._id}`),console.log("Redirecting to update check-in form",o._id)},O=(V,U)=>{U!=="clickaway"&&x(!1)},F=()=>{c(!0)};return e?d?u.jsx(Ie,{variant:"h6",mt:"2",children:"Loading..."}):u.jsxs(et,{sx:{margin:3,maxWidth:600,mx:"auto",maxHeight:"91vh",overflow:"auto"},children:[u.jsx(Ie,{variant:"h4",gutterBottom:!0,children:"Track Your Commitments"}),u.jsx(Wi,{sx:{mb:2}}),n.length>0?u.jsx(Ws,{children:n.map(V=>u.jsxs(nz,{children:[u.jsx(Z_,{children:u.jsx(Er,{sx:{bgcolor:"primary.main"},children:u.jsx(D2,{})})}),u.jsx(ws,{primary:`Check-In: ${V.check_in_time}`,secondary:u.jsx(EO,{label:V.frequency,icon:u.jsx(z2,{}),size:"small"})}),u.jsx(Ln,{title:"More options",children:u.jsx(lt,{onClick:()=>E(V._id),children:u.jsx(B2,{})})})]},V._id))}):u.jsx(Ie,{variant:"h6",sx:{mb:2,mt:2,color:"error.main",fontWeight:"medium",textAlign:"center",padding:2,borderRadius:1,backgroundColor:"background.paper",boxShadow:2},children:"No check-ins found."}),u.jsxs($p,{open:a,onClose:P,children:[u.jsx(Op,{children:"Check-In Details"}),u.jsx(Mp,{children:u.jsxs(Ie,{component:"div",children:[u.jsxs(Ie,{variant:"body1",children:[u.jsx("strong",{children:"Time:"})," ",o==null?void 0:o.check_in_time]}),u.jsxs(Ie,{variant:"body1",children:[u.jsx("strong",{children:"Frequency:"})," ",o==null?void 0:o.frequency]}),u.jsxs(Ie,{variant:"body1",children:[u.jsx("strong",{children:"Status:"})," ",o==null?void 0:o.status]}),u.jsxs(Ie,{variant:"body1",children:[u.jsx("strong",{children:"Notify:"})," ",o!=null&&o.notify?"Yes":"No"]})]})}),u.jsxs(jp,{children:[u.jsx(Rt,{onClick:D,startIcon:u.jsx(U2,{}),children:"Update"}),u.jsx(Rt,{onClick:F,startIcon:u.jsx(F2,{}),color:"error",children:"Delete"}),u.jsx(Rt,{onClick:P,children:"Close"})]})]}),u.jsxs($p,{open:l,onClose:P,children:[u.jsx(Op,{children:"Confirm Deletion"}),u.jsx(Mp,{children:u.jsx(t2,{children:"Are you sure you want to delete this check-in? This action cannot be undone."})}),u.jsxs(jp,{children:[u.jsx(Rt,{onClick:M,color:"error",children:"Delete"}),u.jsx(Rt,{onClick:P,children:"Cancel"})]})]}),u.jsx(yo,{open:y,autoHideDuration:6e3,onClose:O,children:u.jsx(rz,{onClose:O,severity:h,children:k})})]}):u.jsx(Ie,{variant:"h6",mt:"2",children:"Please log in to see your check-ins."})}const wr=({children:e})=>{const t=localStorage.getItem("token");return console.log("isAuthenticated:",t),t?e:u.jsx(MP,{to:"/auth",replace:!0})};var kg={},iz=Te;Object.defineProperty(kg,"__esModule",{value:!0});var W2=kg.default=void 0,az=iz(Me()),sz=u;W2=kg.default=(0,az.default)((0,sz.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 14H4V8l8 5 8-5zm-8-7L4 6h16z"}),"MailOutline");function lz(){const[e,t]=p.useState(""),[n,r]=p.useState(""),[o,i]=p.useState(!1),[a,s]=p.useState(!1),l=async c=>{var d,f;c.preventDefault(),s(!0);try{const m=await Oe.post("/api/user/request_reset",{email:e});r(m.data.message),i(!1)}catch(m){r(((f=(d=m.response)==null?void 0:d.data)==null?void 0:f.message)||"Failed to send reset link. Please try again."),i(!0)}s(!1)};return u.jsx(et,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",sx:{background:"linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)","& .MuiPaper-root":{background:"#fff",padding:"30px",width:"400px",textAlign:"center"}},children:u.jsxs(En,{elevation:3,style:{padding:"30px",width:"400px",textAlign:"center"},children:[u.jsx(Ie,{variant:"h5",component:"h1",marginBottom:"20px",children:"Reset Your Password"}),u.jsxs("form",{onSubmit:l,children:[u.jsx(at,{label:"Email Address",type:"email",value:e,onChange:c=>t(c.target.value),variant:"outlined",fullWidth:!0,required:!0,margin:"normal",InputProps:{endAdornment:u.jsx(W2,{})}}),u.jsx(Rt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,disabled:a,endIcon:a?null:u.jsx(oa,{}),children:a?u.jsx(_n,{size:24}):"Send Reset Link"})]}),n&&u.jsx(xr,{severity:o?"error":"success",sx:{maxWidth:"325px",mt:2},children:n})]})})}var Rg={},cz=Te;Object.defineProperty(Rg,"__esModule",{value:!0});var Ap=Rg.default=void 0,uz=cz(Me()),dz=u;Ap=Rg.default=(0,uz.default)((0,dz.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");var Pg={},fz=Te;Object.defineProperty(Pg,"__esModule",{value:!0});var V2=Pg.default=void 0,pz=fz(Me()),hz=u;V2=Pg.default=(0,pz.default)((0,hz.jsx)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l4 4 4-4H6c0-3.86 3.14-7 7-7s7 3.14 7 7-3.14 7-7 7c-1.9 0-3.62-.76-4.88-1.99L6.7 18.42C8.32 20.01 10.55 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m2 8v-1c0-1.1-.9-2-2-2s-2 .9-2 2v1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1m-1 0h-2v-1c0-.55.45-1 1-1s1 .45 1 1z"}),"LockReset");function mz(){const e=qo(),{token:t}=Ms(),[n,r]=p.useState(""),[o,i]=p.useState(""),[a,s]=p.useState(!1),[l,c]=p.useState(""),[d,f]=p.useState(!1),m=async y=>{if(y.preventDefault(),n!==o){c("Passwords do not match."),f(!0);return}try{const x=await Oe.post(`/api/user/reset_password/${t}`,{password:n});c(x.data.message),f(!1),setTimeout(()=>e("/auth"),2e3)}catch(x){c(x.response.data.error),f(!0)}},w=()=>{s(!a)};return u.jsx(et,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",sx:{background:"linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)","& .MuiPaper-root":{padding:"40px",width:"400px",textAlign:"center",marginTop:"20px",borderRadius:"10px"}},children:u.jsxs(En,{elevation:6,children:[u.jsxs(Ie,{variant:"h5",component:"h1",marginBottom:"2",children:["Reset Your Password ",u.jsx(V2,{})]}),u.jsxs("form",{onSubmit:m,children:[u.jsx(at,{label:"New Password",type:a?"text":"password",value:n,onChange:y=>r(y.target.value),variant:"outlined",fullWidth:!0,required:!0,margin:"normal",InputProps:{endAdornment:u.jsx(Ic,{position:"end",children:u.jsx(lt,{"aria-label":"toggle password visibility",onClick:w,children:a?u.jsx(Ap,{}):u.jsx(Ac,{})})})}}),u.jsx(at,{label:"Confirm New Password",type:a?"text":"password",value:o,onChange:y=>i(y.target.value),variant:"outlined",fullWidth:!0,required:!0,margin:"normal",InputProps:{endAdornment:u.jsx(Ic,{position:"end",children:u.jsx(lt,{"aria-label":"toggle password visibility",onClick:w,children:a?u.jsx(Ap,{}):u.jsx(Ac,{})})})}}),u.jsx(Rt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,sx:{mt:2},endIcon:u.jsx(oa,{}),children:"Reset Password"})]}),l&&u.jsx(xr,{severity:d?"error":"success",sx:{mt:2,maxWidth:"325px"},children:l})]})})}function gz(){const{user:e}=p.useContext(vr);return p.useEffect(()=>{document.body.style.backgroundColor="#f5f5f5"},[]),u.jsx(vz,{children:u.jsxs(IP,{children:[u.jsx(mn,{path:"/",element:u.jsx(wr,{children:e!=null&&e.userId?u.jsx(NN,{}):u.jsx(Oy,{})})}),u.jsx(mn,{path:"/chat",element:u.jsx(wr,{children:u.jsx(Oy,{})})}),u.jsx(mn,{path:"/reset_password/:token",element:u.jsx(mz,{})}),u.jsx(mn,{path:"/request_reset",element:u.jsx(lz,{})}),u.jsx(mn,{path:"/auth",element:u.jsx(QN,{})}),u.jsx(mn,{path:"/user/profile/:userId",element:u.jsx(wr,{children:u.jsx(j6,{})})}),u.jsx(mn,{path:"/user/mood_logging",element:u.jsx(wr,{children:u.jsx(SD,{})})}),u.jsx(mn,{path:"/user/mood_logs",element:u.jsx(wr,{children:u.jsx(CD,{})})}),u.jsx(mn,{path:"/user/check_in",element:u.jsx(wr,{children:u.jsx(Lp,{userId:e==null?void 0:e.userId,checkInId:"",update:!1})})}),u.jsx(mn,{path:"/user/check_in/:checkInId",element:u.jsx(wr,{children:u.jsx(Lp,{userId:e==null?void 0:e.userId,update:!0})})}),u.jsx(mn,{path:"/user/chat_log_Manager",element:u.jsx(wr,{children:u.jsx(yD,{})})}),u.jsx(mn,{path:"/user/check_ins/:userId",element:u.jsx(wr,{children:u.jsx(oz,{})})})]})})}function vz({children:e}){p.useContext(vr);const t=ho(),r=!["/auth","/request_reset",new RegExp("^/reset_password/[^/]+$")].some(l=>typeof l=="string"?l===t.pathname:l.test(t.pathname)),o=r?6:0,[i,a]=p.useState(!0),s=()=>{a(!i)};return u.jsxs(et,{sx:{display:"flex",maxHeight:"100vh"},children:[u.jsx(Rm,{}),r&&u.jsx(sD,{toggleSidebar:s}),r&&i&&u.jsx(Q6,{}),u.jsx(et,{component:"main",sx:{flexGrow:1,p:o},children:e})]})}function yz(e){const t="=".repeat((4-e.length%4)%4),n=(e+t).replace(/-/g,"+").replace(/_/g,"/"),r=window.atob(n),o=new Uint8Array(r.length);for(let i=0;i{if(t!=="granted")throw new Error("Permission not granted for Notification");return e.pushManager.getSubscription()}).then(function(t){return t||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:yz(bz)})}).then(function(t){console.log("Subscription:",t);const n={p256dh:btoa(String.fromCharCode.apply(null,new Uint8Array(t.getKey("p256dh")))),auth:btoa(String.fromCharCode.apply(null,new Uint8Array(t.getKey("auth"))))};if(console.log("Subscription keys:",n),!n.p256dh||!n.auth)throw console.error("Subscription object:",t),new Error("Subscription keys are missing");const r={endpoint:t.endpoint,keys:n},o=xz();if(!o)throw new Error("No token found");return fetch("/api/subscribe",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`},body:JSON.stringify(r)})}).then(t=>t.json()).then(t=>console.log("Subscription response:",t)).catch(t=>console.error("Subscription failed:",t))}).catch(function(e){console.error("Service Worker registration failed:",e)})});uf.createRoot(document.getElementById("root")).render(u.jsx(FP,{children:u.jsx(KP,{children:u.jsx(gz,{})})})); diff --git a/client/dist/index.html b/client/dist/index.html index 1f3815ae..56fc83b6 100644 --- a/client/dist/index.html +++ b/client/dist/index.html @@ -7,10 +7,10 @@ - Mental Health App - + Mental Health Companion + diff --git a/client/index.html b/client/index.html index 8bf462a6..d3082522 100644 --- a/client/index.html +++ b/client/index.html @@ -7,9 +7,9 @@ - Mental Health App + Mental Health Companion
diff --git a/client/src/Components/chatComponent.jsx b/client/src/Components/chatComponent.jsx index eee7bb07..707ad669 100644 --- a/client/src/Components/chatComponent.jsx +++ b/client/src/Components/chatComponent.jsx @@ -399,7 +399,7 @@ const sendAudioToServer = (audioBlob) => { - Welcome to Mental Health Companion + Welcome to Your Mental Health Companion )} diff --git a/client/src/Components/chatInterface.jsx b/client/src/Components/chatInterface.jsx index 56c54325..325c10d0 100644 --- a/client/src/Components/chatInterface.jsx +++ b/client/src/Components/chatInterface.jsx @@ -346,7 +346,7 @@ const sendAudioToServer = (audioBlob) => { - Welcome to Mental Health Companion + Welcome to Your Mental Health Companion )}