From 9b3a5e08953132d541078f1cb4353b9611252ace Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=20Poljan=C5=A1ek?= Date: Wed, 23 Apr 2025 21:48:46 +0200 Subject: [PATCH] Posodobitev komponent in dodajanje novih strani --- KOMPONENTE.md | 116 +- node_modules/.package-lock.json | 835 ++ .../.vite/deps/@mui_icons-material_Add.js | 20 - .../.vite/deps/@mui_icons-material_Add.js.map | 7 - .../deps/@mui_icons-material_ArrowBack.js | 20 - .../deps/@mui_icons-material_ArrowBack.js.map | 7 - .../.vite/deps/@mui_icons-material_Bolt.js | 2 +- .../@mui_icons-material_BookmarkBorder.js | 20 - .../@mui_icons-material_BookmarkBorder.js.map | 7 - ...i_icons-material_BookmarkBorderOutlined.js | 2 +- .../deps/@mui_icons-material_CalendarMonth.js | 20 - .../@mui_icons-material_CalendarMonth.js.map | 7 - .../deps/@mui_icons-material_CalendarToday.js | 20 - .../@mui_icons-material_CalendarToday.js.map | 7 - .../.vite/deps/@mui_icons-material_Call.js | 20 - .../deps/@mui_icons-material_Call.js.map | 7 - .../deps/@mui_icons-material_Collections.js | 20 - .../@mui_icons-material_Collections.js.map | 7 - .../deps/@mui_icons-material_Directions.js | 20 - .../@mui_icons-material_Directions.js.map | 7 - .../deps/@mui_icons-material_ExpandLess.js | 20 - .../@mui_icons-material_ExpandLess.js.map | 7 - .../deps/@mui_icons-material_ExpandMore.js | 20 - .../@mui_icons-material_ExpandMore.js.map | 7 - .../deps/@mui_icons-material_Favorite.js | 2 +- .../@mui_icons-material_FavoriteBorder.js | 2 +- .../deps/@mui_icons-material_HelpOutline.js | 20 - .../@mui_icons-material_HelpOutline.js.map | 7 - .../deps/@mui_icons-material_HomeOutlined.js | 2 +- .../deps/@mui_icons-material_InfoOutlined.js | 20 - .../@mui_icons-material_InfoOutlined.js.map | 7 - .../deps/@mui_icons-material_Language.js | 20 - .../deps/@mui_icons-material_Language.js.map | 7 - ...@mui_icons-material_LocalFireDepartment.js | 22 - ..._icons-material_LocalFireDepartment.js.map | 7 - .../@mui_icons-material_LocationOnOutlined.js | 24 - ...i_icons-material_LocationOnOutlined.js.map | 7 - .../.vite/deps/@mui_icons-material_Map.js | 20 - .../.vite/deps/@mui_icons-material_Map.js.map | 7 - .../.vite/deps/@mui_icons-material_Menu.js | 20 - .../deps/@mui_icons-material_Menu.js.map | 7 - .../.vite/deps/@mui_icons-material_People.js | 20 - .../deps/@mui_icons-material_People.js.map | 7 - .../deps/@mui_icons-material_PersonOutline.js | 20 - .../@mui_icons-material_PersonOutline.js.map | 7 - ...ui_icons-material_PersonOutlineOutlined.js | 2 +- .../deps/@mui_icons-material_PhoneOutlined.js | 20 - .../@mui_icons-material_PhoneOutlined.js.map | 7 - .../.vite/deps/@mui_icons-material_Remove.js | 20 - .../deps/@mui_icons-material_Remove.js.map | 7 - .../deps/@mui_icons-material_Schedule.js | 2 +- .../.vite/deps/@mui_icons-material_Search.js | 20 - .../deps/@mui_icons-material_Search.js.map | 7 - .../@mui_icons-material_SearchOutlined.js | 2 +- .../.vite/deps/@mui_icons-material_Share.js | 20 - .../deps/@mui_icons-material_Share.js.map | 7 - .../.vite/deps/@mui_icons-material_Spa.js | 22 - .../.vite/deps/@mui_icons-material_Spa.js.map | 7 - .../.vite/deps/@mui_icons-material_Star.js | 2 +- .../deps/@mui_icons-material_StarHalf.js | 20 - .../deps/@mui_icons-material_StarHalf.js.map | 7 - .../deps/@mui_icons-material_StarOutline.js | 20 - .../@mui_icons-material_StarOutline.js.map | 7 - .../deps/@mui_icons-material_ThreeSixty.js | 20 - .../@mui_icons-material_ThreeSixty.js.map | 7 - .../.vite/deps/@mui_icons-material_Warning.js | 20 - .../deps/@mui_icons-material_Warning.js.map | 7 - node_modules/.vite/deps/_metadata.json | 214 +- node_modules/.vite/deps/chunk-Y7GULVZW.js | 9458 ------------ node_modules/.vite/deps/chunk-Y7GULVZW.js.map | 7 - node_modules/.vite/deps/react-router-dom.js | 11963 ---------------- .../.vite/deps/react-router-dom.js.map | 7 - package-lock.json | 838 +- package.json | 2 +- src/App.tsx | 11 +- src/components/ActiveFiltersDisplay.tsx | 36 + src/components/AdditionalOptionsFilter.tsx | 79 + src/components/AdvancedSearchBar.tsx | 68 +- src/components/CuisineFilterGrid.tsx | 46 + src/components/EmptyReservations.tsx | 32 +- src/components/FavoriteRestaurants.tsx | 106 + src/components/FilterHeader.tsx | 21 + src/components/LoadMoreButton.tsx | 18 + src/components/LocationFilter.tsx | 45 + src/components/PriceRangeFilter.tsx | 40 + src/components/ProfileHeader.tsx | 66 + src/components/ProfileNavBar.tsx | 39 + src/components/ProfileTabs.tsx | 44 + src/components/RatingSlider.tsx | 32 + src/components/ReservationsList.tsx | 73 +- src/components/ReservationsNavBar.tsx | 8 +- src/components/ReservationsTabs.tsx | 14 +- src/components/SearchNavBar.tsx | 4 +- src/components/SearchRestaurantCard.tsx | 83 + src/components/SearchResultsHeader.tsx | 34 + src/components/UserReservations.tsx | 99 + src/components/UserReviews.tsx | 94 + src/pages/HomePage.tsx | 3 +- src/pages/ProfilePage.tsx | 107 + src/pages/ReservationsHistoryPage.tsx | 4 +- src/pages/SearchPage.tsx | 256 +- 101 files changed, 3097 insertions(+), 22587 deletions(-) delete mode 100644 node_modules/.vite/deps/@mui_icons-material_Add.js delete mode 100644 node_modules/.vite/deps/@mui_icons-material_Add.js.map delete mode 100644 node_modules/.vite/deps/@mui_icons-material_ArrowBack.js delete mode 100644 node_modules/.vite/deps/@mui_icons-material_ArrowBack.js.map delete mode 100644 node_modules/.vite/deps/@mui_icons-material_BookmarkBorder.js delete mode 100644 node_modules/.vite/deps/@mui_icons-material_BookmarkBorder.js.map delete mode 100644 node_modules/.vite/deps/@mui_icons-material_CalendarMonth.js delete mode 100644 node_modules/.vite/deps/@mui_icons-material_CalendarMonth.js.map delete mode 100644 node_modules/.vite/deps/@mui_icons-material_CalendarToday.js delete mode 100644 node_modules/.vite/deps/@mui_icons-material_CalendarToday.js.map delete mode 100644 node_modules/.vite/deps/@mui_icons-material_Call.js delete mode 100644 node_modules/.vite/deps/@mui_icons-material_Call.js.map delete mode 100644 node_modules/.vite/deps/@mui_icons-material_Collections.js delete mode 100644 node_modules/.vite/deps/@mui_icons-material_Collections.js.map delete mode 100644 node_modules/.vite/deps/@mui_icons-material_Directions.js delete mode 100644 node_modules/.vite/deps/@mui_icons-material_Directions.js.map delete mode 100644 node_modules/.vite/deps/@mui_icons-material_ExpandLess.js delete mode 100644 node_modules/.vite/deps/@mui_icons-material_ExpandLess.js.map delete mode 100644 node_modules/.vite/deps/@mui_icons-material_ExpandMore.js delete mode 100644 node_modules/.vite/deps/@mui_icons-material_ExpandMore.js.map delete mode 100644 node_modules/.vite/deps/@mui_icons-material_HelpOutline.js delete mode 100644 node_modules/.vite/deps/@mui_icons-material_HelpOutline.js.map delete mode 100644 node_modules/.vite/deps/@mui_icons-material_InfoOutlined.js delete mode 100644 node_modules/.vite/deps/@mui_icons-material_InfoOutlined.js.map delete mode 100644 node_modules/.vite/deps/@mui_icons-material_Language.js delete mode 100644 node_modules/.vite/deps/@mui_icons-material_Language.js.map delete mode 100644 node_modules/.vite/deps/@mui_icons-material_LocalFireDepartment.js delete mode 100644 node_modules/.vite/deps/@mui_icons-material_LocalFireDepartment.js.map delete mode 100644 node_modules/.vite/deps/@mui_icons-material_LocationOnOutlined.js delete mode 100644 node_modules/.vite/deps/@mui_icons-material_LocationOnOutlined.js.map delete mode 100644 node_modules/.vite/deps/@mui_icons-material_Map.js delete mode 100644 node_modules/.vite/deps/@mui_icons-material_Map.js.map delete mode 100644 node_modules/.vite/deps/@mui_icons-material_Menu.js delete mode 100644 node_modules/.vite/deps/@mui_icons-material_Menu.js.map delete mode 100644 node_modules/.vite/deps/@mui_icons-material_People.js delete mode 100644 node_modules/.vite/deps/@mui_icons-material_People.js.map delete mode 100644 node_modules/.vite/deps/@mui_icons-material_PersonOutline.js delete mode 100644 node_modules/.vite/deps/@mui_icons-material_PersonOutline.js.map delete mode 100644 node_modules/.vite/deps/@mui_icons-material_PhoneOutlined.js delete mode 100644 node_modules/.vite/deps/@mui_icons-material_PhoneOutlined.js.map delete mode 100644 node_modules/.vite/deps/@mui_icons-material_Remove.js delete mode 100644 node_modules/.vite/deps/@mui_icons-material_Remove.js.map delete mode 100644 node_modules/.vite/deps/@mui_icons-material_Search.js delete mode 100644 node_modules/.vite/deps/@mui_icons-material_Search.js.map delete mode 100644 node_modules/.vite/deps/@mui_icons-material_Share.js delete mode 100644 node_modules/.vite/deps/@mui_icons-material_Share.js.map delete mode 100644 node_modules/.vite/deps/@mui_icons-material_Spa.js delete mode 100644 node_modules/.vite/deps/@mui_icons-material_Spa.js.map delete mode 100644 node_modules/.vite/deps/@mui_icons-material_StarHalf.js delete mode 100644 node_modules/.vite/deps/@mui_icons-material_StarHalf.js.map delete mode 100644 node_modules/.vite/deps/@mui_icons-material_StarOutline.js delete mode 100644 node_modules/.vite/deps/@mui_icons-material_StarOutline.js.map delete mode 100644 node_modules/.vite/deps/@mui_icons-material_ThreeSixty.js delete mode 100644 node_modules/.vite/deps/@mui_icons-material_ThreeSixty.js.map delete mode 100644 node_modules/.vite/deps/@mui_icons-material_Warning.js delete mode 100644 node_modules/.vite/deps/@mui_icons-material_Warning.js.map delete mode 100644 node_modules/.vite/deps/chunk-Y7GULVZW.js delete mode 100644 node_modules/.vite/deps/chunk-Y7GULVZW.js.map delete mode 100644 node_modules/.vite/deps/react-router-dom.js delete mode 100644 node_modules/.vite/deps/react-router-dom.js.map create mode 100644 src/components/ActiveFiltersDisplay.tsx create mode 100644 src/components/AdditionalOptionsFilter.tsx create mode 100644 src/components/CuisineFilterGrid.tsx create mode 100644 src/components/FavoriteRestaurants.tsx create mode 100644 src/components/FilterHeader.tsx create mode 100644 src/components/LoadMoreButton.tsx create mode 100644 src/components/LocationFilter.tsx create mode 100644 src/components/PriceRangeFilter.tsx create mode 100644 src/components/ProfileHeader.tsx create mode 100644 src/components/ProfileNavBar.tsx create mode 100644 src/components/ProfileTabs.tsx create mode 100644 src/components/RatingSlider.tsx create mode 100644 src/components/SearchRestaurantCard.tsx create mode 100644 src/components/SearchResultsHeader.tsx create mode 100644 src/components/UserReservations.tsx create mode 100644 src/components/UserReviews.tsx create mode 100644 src/pages/ProfilePage.tsx diff --git a/KOMPONENTE.md b/KOMPONENTE.md index 695e00ae..352016b7 100644 --- a/KOMPONENTE.md +++ b/KOMPONENTE.md @@ -236,63 +236,63 @@ Ta dokument vsebuje kratek pregled vseh komponent v aplikaciji za rezervacije re ### 50. SearchNavBar **Lokacija:** `/src/components/SearchNavBar.tsx` -**Namen:** Navigacijska vrstica za stran z iskanjem, z naslovom in gumbi za ponastavitev filtrov in pomoč. -**Uporaba:** Uporabite na vrhu strani za iskanje in filtriranje restavracij. +**Namen:** Navigacijska vrstica za stran z iskanjem, ki vsebuje naslov strani in gumbe za hitro ponastavitev filtrov in dostop do pomoči. +**Uporaba:** Uporabite kot glavno navigacijo na vrhu strani za iskanje in filtriranje. ### 51. AdvancedSearchBar **Lokacija:** `/src/components/AdvancedSearchBar.tsx` -**Namen:** Napredno iskalno polje z možnostjo čiščenja vnosa. -**Uporaba:** Uporabite na vrhu strani za iskanje, ko želite omogočiti iskanje po imenih restavracij ali jedi. +**Namen:** Iskalno polje s podporo za vnos in čiščenje poizvedbe, s poudarjeno vizualno podobo. +**Uporaba:** Uporabite kot glavni vnos za iskalno poizvedbo na strani za iskanje. ### 52. FilterHeader **Lokacija:** `/src/components/FilterHeader.tsx` -**Namen:** Glava sekcije filtrov z naslovom in gumbom za ponastavitev. -**Uporaba:** Uporabite kot uvod v sekcijo filtrov na strani za iskanje. +**Namen:** Naslovni del filtrirne sekcije, ki prikazuje naslov "Filtri" in gumb za ponastavitev vseh filtrov. +**Uporaba:** Uporabite kot uvod v sklop filtrov na strani za iskanje. ### 53. LocationFilter **Lokacija:** `/src/components/LocationFilter.tsx` -**Namen:** Filter za izbiro lokacije z vnosnim poljem in hitro izbiro priljubljenih lokacij. -**Uporaba:** Uporabite v sekciji filtrov za filtriranje restavracij po lokaciji. +**Namen:** Kompleksna komponenta za filtriranje po lokaciji, ki združuje vnosno polje in hitre izbire priljubljenih lokacij. +**Uporaba:** Uporabite za omogočanje različnih načinov določanja lokacije pri iskanju restavracij. ### 54. CuisineFilterGrid **Lokacija:** `/src/components/CuisineFilterGrid.tsx` -**Namen:** Mreža izbirnih polj za filtriranje po vrstah kuhinje. -**Uporaba:** Uporabite v sekciji filtrov za izbiro željenih vrst kuhinj. +**Namen:** Vizualno privlačna mreža za izbiro vrst kuhinje z ikonami in besedilom, podpira večkratno izbiro. +**Uporaba:** Uporabite za filtriranje restavracij po vrstah kuhinje. ### 55. PriceRangeFilter **Lokacija:** `/src/components/PriceRangeFilter.tsx` -**Namen:** Filter za izbiro cenovnih razredov restavracij (od € do €€€€). -**Uporaba:** Uporabite v sekciji filtrov za filtriranje po cenovnem razredu. +**Namen:** Filter za izbiro enega ali več cenovnih razredov (€, €€, €€€, €€€€). +**Uporaba:** Uporabite za filtriranje restavracij po cenovnem razredu. ### 56. RatingSlider **Lokacija:** `/src/components/RatingSlider.tsx` -**Namen:** Drsnik za filtriranje restavracij po minimalni oceni. -**Uporaba:** Uporabite v sekciji filtrov za filtriranje restavracij po minimalni oceni. +**Namen:** Drsnik za izbiro minimalne ocene pri filtriranju, z natančnim prikazom trenutno izbrane vrednosti. +**Uporaba:** Uporabite za filtriranje restavracij glede na oceno (od 0 do 5). ### 57. AdditionalOptionsFilter **Lokacija:** `/src/components/AdditionalOptionsFilter.tsx` -**Namen:** Skupina potrditvenih polj za dodatne možnosti filtriranja (odprto zdaj, parkirišče, ipd.). -**Uporaba:** Uporabite v sekciji filtrov za bolj natančno filtriranje restavracij. +**Namen:** Zbirka potrditvenih polj za dodatne možnosti filtriranja, kot so trenutno odprto, parkirišče in podobno. +**Uporaba:** Uporabite za omogočanje filtriranja po dodatnih specifikacijah restavracij. ### 58. SearchResultsHeader **Lokacija:** `/src/components/SearchResultsHeader.tsx` -**Namen:** Glava sekcije rezultatov iskanja z naslovom in izbirnikom za razvrščanje. -**Uporaba:** Uporabite kot uvod v sekcijo rezultatov iskanja. +**Namen:** Naslovni del rezultatov iskanja z naslovom in izbirnikom za razvrščanje rezultatov po različnih kriterijih. +**Uporaba:** Uporabite na začetku sekcije z rezultati iskanja. ### 59. ActiveFiltersDisplay **Lokacija:** `/src/components/ActiveFiltersDisplay.tsx` -**Namen:** Prikaz aktivnih filtrov in možnost njihove odstranitve. -**Uporaba:** Uporabite nad rezultati iskanja za prikaz in hitro odstranjevanje aplikaciranih filtrov. +**Namen:** Prikaz trenutno aktivnih filtrov v obliki značk (chips) z možnostjo hitrega odstranjevanja posameznih filtrov. +**Uporaba:** Uporabite pod naslovom rezultatov iskanja za pregleden prikaz uporabljenih filtrov. ### 60. SearchRestaurantCard **Lokacija:** `/src/components/SearchRestaurantCard.tsx` -**Namen:** Razširjena kartica restavracije s podrobnostmi za prikaz v rezultatih iskanja. -**Uporaba:** Uporabite za prikaz posamezne restavracije v rezultatih iskanja. +**Namen:** Podrobna kartica posamezne restavracije v rezultatih iskanja, ki prikazuje sliko, osnovne podatke, oceno, kuhinje in gumb za rezervacijo. +**Uporaba:** Uporabite za vsako restavracijo v seznamu rezultatov iskanja. ### 61. LoadMoreButton **Lokacija:** `/src/components/LoadMoreButton.tsx` -**Namen:** Gumb za nalaganje dodatnih rezultatov iskanja. -**Uporaba:** Uporabite na koncu seznama rezultatov iskanja za prikaz več restavracij. +**Namen:** Gumb za nalaganje dodatnih rezultatov iskanja za implementacijo paginacije. +**Uporaba:** Uporabite na koncu seznama rezultatov iskanja, ko je na voljo več rezultatov kot je trenutno prikazano. ## Strani aplikacije @@ -378,4 +378,70 @@ const { navigateTo } = useContext(NavigationContext); const handleButtonClick = () => { navigateTo('pageName'); // kjer je pageName ena izmed: 'home', 'detail', 'reservation', 'confirmation', 'reservations' }; -``` \ No newline at end of file +``` + +## Nove komponente za iskanje in filtriranje + +V sklopu posodobitve strani za iskanje smo ustvarili naslednje nove komponente: + +### SearchNavBar +**Lokacija:** `/src/components/SearchNavBar.tsx` +**Namen:** Navigacijska vrstica za stran z iskanjem, ki vsebuje naslov strani in gumbe za hitro ponastavitev filtrov in dostop do pomoči. +**Uporaba:** Uporabite kot glavno navigacijo na vrhu strani za iskanje in filtriranje. + +### AdvancedSearchBar +**Lokacija:** `/src/components/AdvancedSearchBar.tsx` +**Namen:** Iskalno polje s podporo za vnos in čiščenje poizvedbe, s poudarjeno vizualno podobo. +**Uporaba:** Uporabite kot glavni vnos za iskalno poizvedbo na strani za iskanje. + +### FilterHeader +**Lokacija:** `/src/components/FilterHeader.tsx` +**Namen:** Naslovni del filtrirne sekcije, ki prikazuje naslov "Filtri" in gumb za ponastavitev vseh filtrov. +**Uporaba:** Uporabite kot uvod v sklop filtrov na strani za iskanje. + +### LocationFilter +**Lokacija:** `/src/components/LocationFilter.tsx` +**Namen:** Kompleksna komponenta za filtriranje po lokaciji, ki združuje vnosno polje in hitre izbire priljubljenih lokacij. +**Uporaba:** Uporabite za omogočanje različnih načinov določanja lokacije pri iskanju restavracij. + +### CuisineFilterGrid +**Lokacija:** `/src/components/CuisineFilterGrid.tsx` +**Namen:** Vizualno privlačna mreža za izbiro vrst kuhinje z ikonami in besedilom, podpira večkratno izbiro. +**Uporaba:** Uporabite za filtriranje restavracij po vrstah kuhinje. + +### PriceRangeFilter +**Lokacija:** `/src/components/PriceRangeFilter.tsx` +**Namen:** Filter za izbiro enega ali več cenovnih razredov (€, €€, €€€, €€€€). +**Uporaba:** Uporabite za filtriranje restavracij po cenovnem razredu. + +### RatingSlider +**Lokacija:** `/src/components/RatingSlider.tsx` +**Namen:** Drsnik za izbiro minimalne ocene pri filtriranju, z natančnim prikazom trenutno izbrane vrednosti. +**Uporaba:** Uporabite za filtriranje restavracij glede na oceno (od 0 do 5). + +### AdditionalOptionsFilter +**Lokacija:** `/src/components/AdditionalOptionsFilter.tsx` +**Namen:** Zbirka potrditvenih polj za dodatne možnosti filtriranja, kot so trenutno odprto, parkirišče in podobno. +**Uporaba:** Uporabite za omogočanje filtriranja po dodatnih specifikacijah restavracij. + +### SearchResultsHeader +**Lokacija:** `/src/components/SearchResultsHeader.tsx` +**Namen:** Naslovni del rezultatov iskanja z naslovom in izbirnikom za razvrščanje rezultatov po različnih kriterijih. +**Uporaba:** Uporabite na začetku sekcije z rezultati iskanja. + +### ActiveFiltersDisplay +**Lokacija:** `/src/components/ActiveFiltersDisplay.tsx` +**Namen:** Prikaz trenutno aktivnih filtrov v obliki značk (chips) z možnostjo hitrega odstranjevanja posameznih filtrov. +**Uporaba:** Uporabite pod naslovom rezultatov iskanja za pregleden prikaz uporabljenih filtrov. + +### SearchRestaurantCard +**Lokacija:** `/src/components/SearchRestaurantCard.tsx` +**Namen:** Podrobna kartica posamezne restavracije v rezultatih iskanja, ki prikazuje sliko, osnovne podatke, oceno, kuhinje in gumb za rezervacijo. +**Uporaba:** Uporabite za vsako restavracijo v seznamu rezultatov iskanja. + +### LoadMoreButton +**Lokacija:** `/src/components/LoadMoreButton.tsx` +**Namen:** Gumb za nalaganje dodatnih rezultatov iskanja za implementacijo paginacije. +**Uporaba:** Uporabite na koncu seznama rezultatov iskanja, ko je na voljo več rezultatov kot je trenutno prikazano. + +Te komponente skupaj omogočajo moderno, prilagodljivo in uporabniku prijazno izkušnjo iskanja in filtriranja restavracij, ki sledi najboljšim praksam komponentno usmerjenega razvoja v Reactu. \ No newline at end of file diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json index 6c8dbdbe..2dffa17e 100644 --- a/node_modules/.package-lock.json +++ b/node_modules/.package-lock.json @@ -1411,6 +1411,19 @@ "vite": "^4.2.0 || ^5.0.0 || ^6.0.0" } }, + "node_modules/accepts": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", + "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", + "license": "MIT", + "dependencies": { + "mime-types": "~2.1.34", + "negotiator": "0.6.3" + }, + "engines": { + "node": ">= 0.6" + } + }, "node_modules/acorn": { "version": "8.14.1", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.1.tgz", @@ -1515,6 +1528,12 @@ "dev": true, "license": "Python-2.0" }, + "node_modules/array-flatten": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==", + "license": "MIT" + }, "node_modules/autoprefixer": { "version": "10.4.21", "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.21.tgz", @@ -1588,6 +1607,45 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/body-parser": { + "version": "1.20.3", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.3.tgz", + "integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==", + "license": "MIT", + "dependencies": { + "bytes": "3.1.2", + "content-type": "~1.0.5", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "on-finished": "2.4.1", + "qs": "6.13.0", + "raw-body": "2.5.2", + "type-is": "~1.6.18", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/body-parser/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/body-parser/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "license": "MIT" + }, "node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", @@ -1645,6 +1703,44 @@ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" } }, + "node_modules/bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/call-bound": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", + "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "get-intrinsic": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/callsites": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", @@ -1786,6 +1882,27 @@ "dev": true, "license": "MIT" }, + "node_modules/content-disposition": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", + "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", + "license": "MIT", + "dependencies": { + "safe-buffer": "5.2.1" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/content-type": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", + "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, "node_modules/convert-source-map": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", @@ -1802,6 +1919,12 @@ "node": ">=18" } }, + "node_modules/cookie-signature": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", + "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==", + "license": "MIT" + }, "node_modules/cosmiconfig": { "version": "7.1.0", "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz", @@ -1885,6 +2008,25 @@ "dev": true, "license": "MIT" }, + "node_modules/depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/destroy": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", + "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", + "license": "MIT", + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, "node_modules/detect-libc": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.4.tgz", @@ -1921,6 +2063,20 @@ "csstype": "^3.0.2" } }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/eastasianwidth": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", @@ -1928,6 +2084,12 @@ "dev": true, "license": "MIT" }, + "node_modules/ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", + "license": "MIT" + }, "node_modules/electron-to-chromium": { "version": "1.5.140", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.140.tgz", @@ -1942,6 +2104,15 @@ "dev": true, "license": "MIT" }, + "node_modules/encodeurl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", + "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, "node_modules/error-ex": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", @@ -1951,6 +2122,36 @@ "is-arrayish": "^0.2.1" } }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/esbuild": { "version": "0.25.2", "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.2.tgz", @@ -2002,6 +2203,12 @@ "node": ">=6" } }, + "node_modules/escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", + "license": "MIT" + }, "node_modules/escape-string-regexp": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", @@ -2192,6 +2399,85 @@ "node": ">=0.10.0" } }, + "node_modules/etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/express": { + "version": "4.21.2", + "resolved": "https://registry.npmjs.org/express/-/express-4.21.2.tgz", + "integrity": "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==", + "license": "MIT", + "dependencies": { + "accepts": "~1.3.8", + "array-flatten": "1.1.1", + "body-parser": "1.20.3", + "content-disposition": "0.5.4", + "content-type": "~1.0.4", + "cookie": "0.7.1", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "2.0.0", + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "1.3.1", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "merge-descriptors": "1.0.3", + "methods": "~1.1.2", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "path-to-regexp": "0.1.12", + "proxy-addr": "~2.0.7", + "qs": "6.13.0", + "range-parser": "~1.2.1", + "safe-buffer": "5.2.1", + "send": "0.19.0", + "serve-static": "1.16.2", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + }, + "engines": { + "node": ">= 0.10.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/express/node_modules/cookie": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz", + "integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/express/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/express/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "license": "MIT" + }, "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", @@ -2279,6 +2565,39 @@ "node": ">=8" } }, + "node_modules/finalhandler": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.1.tgz", + "integrity": "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==", + "license": "MIT", + "dependencies": { + "debug": "2.6.9", + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "statuses": "2.0.1", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/finalhandler/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/finalhandler/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "license": "MIT" + }, "node_modules/find-root": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/find-root/-/find-root-1.1.0.tgz", @@ -2340,6 +2659,15 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/forwarded": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, "node_modules/fraction.js": { "version": "4.3.7", "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.3.7.tgz", @@ -2354,6 +2682,15 @@ "url": "https://github.com/sponsors/rawify" } }, + "node_modules/fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, "node_modules/fsevents": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", @@ -2388,6 +2725,43 @@ "node": ">=6.9.0" } }, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/glob": { "version": "10.4.5", "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", @@ -2461,6 +2835,18 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/graphemer": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", @@ -2478,6 +2864,18 @@ "node": ">=8" } }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/hasown": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", @@ -2505,6 +2903,34 @@ "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", "license": "MIT" }, + "node_modules/http-errors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", + "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", + "license": "MIT", + "dependencies": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/ignore": { "version": "5.3.2", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", @@ -2541,6 +2967,21 @@ "node": ">=0.8.19" } }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "license": "ISC" + }, + "node_modules/ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "license": "MIT", + "engines": { + "node": ">= 0.10" + } + }, "node_modules/is-arrayish": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", @@ -2862,6 +3303,33 @@ "yallist": "^3.0.2" } }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/merge-descriptors": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz", + "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/merge2": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", @@ -2872,6 +3340,15 @@ "node": ">= 8" } }, + "node_modules/methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, "node_modules/micromatch": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", @@ -2886,6 +3363,39 @@ "node": ">=8.6" } }, + "node_modules/mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "license": "MIT", + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, "node_modules/minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", @@ -2953,6 +3463,15 @@ "dev": true, "license": "MIT" }, + "node_modules/negotiator": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, "node_modules/node-releases": { "version": "2.0.19", "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.19.tgz", @@ -2999,6 +3518,30 @@ "node": ">= 6" } }, + "node_modules/object-inspect": { + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", + "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/on-finished": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "license": "MIT", + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, "node_modules/optionator": { "version": "0.9.4", "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", @@ -3086,6 +3629,15 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, "node_modules/path-exists": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", @@ -3136,6 +3688,12 @@ "dev": true, "license": "ISC" }, + "node_modules/path-to-regexp": { + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz", + "integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==", + "license": "MIT" + }, "node_modules/path-type": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", @@ -3374,6 +3932,19 @@ "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", "license": "MIT" }, + "node_modules/proxy-addr": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", + "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", + "license": "MIT", + "dependencies": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + }, + "engines": { + "node": ">= 0.10" + } + }, "node_modules/punycode": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", @@ -3384,6 +3955,21 @@ "node": ">=6" } }, + "node_modules/qs": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz", + "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==", + "license": "BSD-3-Clause", + "dependencies": { + "side-channel": "^1.0.6" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/queue-microtask": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", @@ -3405,6 +3991,30 @@ ], "license": "MIT" }, + "node_modules/range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/raw-body": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz", + "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==", + "license": "MIT", + "dependencies": { + "bytes": "3.1.2", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, "node_modules/react": { "version": "19.1.0", "resolved": "https://registry.npmjs.org/react/-/react-19.1.0.tgz", @@ -3630,6 +4240,32 @@ "queue-microtask": "^1.2.2" } }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "license": "MIT" + }, "node_modules/scheduler": { "version": "0.26.0", "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.26.0.tgz", @@ -3646,12 +4282,81 @@ "semver": "bin/semver.js" } }, + "node_modules/send": { + "version": "0.19.0", + "resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz", + "integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==", + "license": "MIT", + "dependencies": { + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "2.4.1", + "range-parser": "~1.2.1", + "statuses": "2.0.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/send/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/send/node_modules/debug/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "license": "MIT" + }, + "node_modules/send/node_modules/encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/serve-static": { + "version": "1.16.2", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz", + "integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==", + "license": "MIT", + "dependencies": { + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "0.19.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, "node_modules/set-cookie-parser": { "version": "2.7.1", "resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-2.7.1.tgz", "integrity": "sha512-IOc8uWeOZgnb3ptbCURJWNjWUPcO3ZnTTdzsurqERrP6nPyv+paC55vJM0LpOlT2ne+Ix+9+CRG1MNLlyZ4GjQ==", "license": "MIT" }, + "node_modules/setprototypeof": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", + "license": "ISC" + }, "node_modules/shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", @@ -3675,6 +4380,78 @@ "node": ">=8" } }, + "node_modules/side-channel": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", + "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3", + "side-channel-list": "^1.0.0", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-list": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", + "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", + "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-weakmap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", + "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/signal-exit": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", @@ -3707,6 +4484,15 @@ "node": ">=0.10.0" } }, + "node_modules/statuses": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, "node_modules/string-width": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", @@ -4007,6 +4793,15 @@ "node": ">=8.0" } }, + "node_modules/toidentifier": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", + "license": "MIT", + "engines": { + "node": ">=0.6" + } + }, "node_modules/ts-api-utils": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.1.0.tgz", @@ -4046,6 +4841,19 @@ "node": ">= 0.8.0" } }, + "node_modules/type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "license": "MIT", + "dependencies": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + }, + "engines": { + "node": ">= 0.6" + } + }, "node_modules/typescript": { "version": "5.7.3", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.3.tgz", @@ -4083,6 +4891,15 @@ "typescript": ">=4.8.4 <5.9.0" } }, + "node_modules/unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, "node_modules/update-browserslist-db": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz", @@ -4131,6 +4948,24 @@ "dev": true, "license": "MIT" }, + "node_modules/utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", + "license": "MIT", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, "node_modules/vite": { "version": "6.3.2", "resolved": "https://registry.npmjs.org/vite/-/vite-6.3.2.tgz", diff --git a/node_modules/.vite/deps/@mui_icons-material_Add.js b/node_modules/.vite/deps/@mui_icons-material_Add.js deleted file mode 100644 index 7fa8f3d4..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_Add.js +++ /dev/null @@ -1,20 +0,0 @@ -"use client"; -import { - createSvgIcon -} from "./chunk-Y7GULVZW.js"; -import { - require_jsx_runtime -} from "./chunk-CWMN43OP.js"; -import { - __toESM -} from "./chunk-37AZBUIX.js"; - -// node_modules/@mui/icons-material/esm/Add.js -var import_jsx_runtime = __toESM(require_jsx_runtime()); -var Add_default = createSvgIcon((0, import_jsx_runtime.jsx)("path", { - d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z" -}), "Add"); -export { - Add_default as default -}; -//# sourceMappingURL=@mui_icons-material_Add.js.map diff --git a/node_modules/.vite/deps/@mui_icons-material_Add.js.map b/node_modules/.vite/deps/@mui_icons-material_Add.js.map deleted file mode 100644 index fee22146..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_Add.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../../@mui/icons-material/esm/Add.js"], - "sourcesContent": ["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z\"\n}), 'Add');"], - "mappings": ";;;;;;;;;;;;AAGA,yBAA4B;AAC5B,IAAO,cAAQ,kBAA2B,mBAAAA,KAAK,QAAQ;AAAA,EACrD,GAAG;AACL,CAAC,GAAG,KAAK;", - "names": ["_jsx"] -} diff --git a/node_modules/.vite/deps/@mui_icons-material_ArrowBack.js b/node_modules/.vite/deps/@mui_icons-material_ArrowBack.js deleted file mode 100644 index 12431bb2..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_ArrowBack.js +++ /dev/null @@ -1,20 +0,0 @@ -"use client"; -import { - createSvgIcon -} from "./chunk-Y7GULVZW.js"; -import { - require_jsx_runtime -} from "./chunk-CWMN43OP.js"; -import { - __toESM -} from "./chunk-37AZBUIX.js"; - -// node_modules/@mui/icons-material/esm/ArrowBack.js -var import_jsx_runtime = __toESM(require_jsx_runtime()); -var ArrowBack_default = createSvgIcon((0, import_jsx_runtime.jsx)("path", { - d: "M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z" -}), "ArrowBack"); -export { - ArrowBack_default as default -}; -//# sourceMappingURL=@mui_icons-material_ArrowBack.js.map diff --git a/node_modules/.vite/deps/@mui_icons-material_ArrowBack.js.map b/node_modules/.vite/deps/@mui_icons-material_ArrowBack.js.map deleted file mode 100644 index 98ae613f..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_ArrowBack.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../../@mui/icons-material/esm/ArrowBack.js"], - "sourcesContent": ["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z\"\n}), 'ArrowBack');"], - "mappings": ";;;;;;;;;;;;AAGA,yBAA4B;AAC5B,IAAO,oBAAQ,kBAA2B,mBAAAA,KAAK,QAAQ;AAAA,EACrD,GAAG;AACL,CAAC,GAAG,WAAW;", - "names": ["_jsx"] -} diff --git a/node_modules/.vite/deps/@mui_icons-material_Bolt.js b/node_modules/.vite/deps/@mui_icons-material_Bolt.js index b694e888..a4cfd692 100644 --- a/node_modules/.vite/deps/@mui_icons-material_Bolt.js +++ b/node_modules/.vite/deps/@mui_icons-material_Bolt.js @@ -1,7 +1,7 @@ "use client"; import { createSvgIcon -} from "./chunk-Y7GULVZW.js"; +} from "./chunk-WMQC35LZ.js"; import { require_jsx_runtime } from "./chunk-CWMN43OP.js"; diff --git a/node_modules/.vite/deps/@mui_icons-material_BookmarkBorder.js b/node_modules/.vite/deps/@mui_icons-material_BookmarkBorder.js deleted file mode 100644 index baf0416e..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_BookmarkBorder.js +++ /dev/null @@ -1,20 +0,0 @@ -"use client"; -import { - createSvgIcon -} from "./chunk-Y7GULVZW.js"; -import { - require_jsx_runtime -} from "./chunk-CWMN43OP.js"; -import { - __toESM -} from "./chunk-37AZBUIX.js"; - -// node_modules/@mui/icons-material/esm/BookmarkBorder.js -var import_jsx_runtime = __toESM(require_jsx_runtime()); -var BookmarkBorder_default = createSvgIcon((0, import_jsx_runtime.jsx)("path", { - d: "M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2m0 15-5-2.18L7 18V5h10z" -}), "BookmarkBorder"); -export { - BookmarkBorder_default as default -}; -//# sourceMappingURL=@mui_icons-material_BookmarkBorder.js.map diff --git a/node_modules/.vite/deps/@mui_icons-material_BookmarkBorder.js.map b/node_modules/.vite/deps/@mui_icons-material_BookmarkBorder.js.map deleted file mode 100644 index d73a4267..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_BookmarkBorder.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../../@mui/icons-material/esm/BookmarkBorder.js"], - "sourcesContent": ["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2m0 15-5-2.18L7 18V5h10z\"\n}), 'BookmarkBorder');"], - "mappings": ";;;;;;;;;;;;AAGA,yBAA4B;AAC5B,IAAO,yBAAQ,kBAA2B,mBAAAA,KAAK,QAAQ;AAAA,EACrD,GAAG;AACL,CAAC,GAAG,gBAAgB;", - "names": ["_jsx"] -} diff --git a/node_modules/.vite/deps/@mui_icons-material_BookmarkBorderOutlined.js b/node_modules/.vite/deps/@mui_icons-material_BookmarkBorderOutlined.js index 9ee49a60..18e2905f 100644 --- a/node_modules/.vite/deps/@mui_icons-material_BookmarkBorderOutlined.js +++ b/node_modules/.vite/deps/@mui_icons-material_BookmarkBorderOutlined.js @@ -1,7 +1,7 @@ "use client"; import { createSvgIcon -} from "./chunk-Y7GULVZW.js"; +} from "./chunk-WMQC35LZ.js"; import { require_jsx_runtime } from "./chunk-CWMN43OP.js"; diff --git a/node_modules/.vite/deps/@mui_icons-material_CalendarMonth.js b/node_modules/.vite/deps/@mui_icons-material_CalendarMonth.js deleted file mode 100644 index bb249aee..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_CalendarMonth.js +++ /dev/null @@ -1,20 +0,0 @@ -"use client"; -import { - createSvgIcon -} from "./chunk-Y7GULVZW.js"; -import { - require_jsx_runtime -} from "./chunk-CWMN43OP.js"; -import { - __toESM -} from "./chunk-37AZBUIX.js"; - -// node_modules/@mui/icons-material/esm/CalendarMonth.js -var import_jsx_runtime = __toESM(require_jsx_runtime()); -var CalendarMonth_default = createSvgIcon((0, import_jsx_runtime.jsx)("path", { - d: "M19 4h-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 16H5V10h14zM9 14H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2zm-8 4H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2z" -}), "CalendarMonth"); -export { - CalendarMonth_default as default -}; -//# sourceMappingURL=@mui_icons-material_CalendarMonth.js.map diff --git a/node_modules/.vite/deps/@mui_icons-material_CalendarMonth.js.map b/node_modules/.vite/deps/@mui_icons-material_CalendarMonth.js.map deleted file mode 100644 index 6e7aad16..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_CalendarMonth.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../../@mui/icons-material/esm/CalendarMonth.js"], - "sourcesContent": ["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M19 4h-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 16H5V10h14zM9 14H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2zm-8 4H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2z\"\n}), 'CalendarMonth');"], - "mappings": ";;;;;;;;;;;;AAGA,yBAA4B;AAC5B,IAAO,wBAAQ,kBAA2B,mBAAAA,KAAK,QAAQ;AAAA,EACrD,GAAG;AACL,CAAC,GAAG,eAAe;", - "names": ["_jsx"] -} diff --git a/node_modules/.vite/deps/@mui_icons-material_CalendarToday.js b/node_modules/.vite/deps/@mui_icons-material_CalendarToday.js deleted file mode 100644 index e43a8fef..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_CalendarToday.js +++ /dev/null @@ -1,20 +0,0 @@ -"use client"; -import { - createSvgIcon -} from "./chunk-Y7GULVZW.js"; -import { - require_jsx_runtime -} from "./chunk-CWMN43OP.js"; -import { - __toESM -} from "./chunk-37AZBUIX.js"; - -// node_modules/@mui/icons-material/esm/CalendarToday.js -var import_jsx_runtime = __toESM(require_jsx_runtime()); -var CalendarToday_default = createSvgIcon((0, import_jsx_runtime.jsx)("path", { - d: "M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z" -}), "CalendarToday"); -export { - CalendarToday_default as default -}; -//# sourceMappingURL=@mui_icons-material_CalendarToday.js.map diff --git a/node_modules/.vite/deps/@mui_icons-material_CalendarToday.js.map b/node_modules/.vite/deps/@mui_icons-material_CalendarToday.js.map deleted file mode 100644 index 76a2ea53..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_CalendarToday.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../../@mui/icons-material/esm/CalendarToday.js"], - "sourcesContent": ["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z\"\n}), 'CalendarToday');"], - "mappings": ";;;;;;;;;;;;AAGA,yBAA4B;AAC5B,IAAO,wBAAQ,kBAA2B,mBAAAA,KAAK,QAAQ;AAAA,EACrD,GAAG;AACL,CAAC,GAAG,eAAe;", - "names": ["_jsx"] -} diff --git a/node_modules/.vite/deps/@mui_icons-material_Call.js b/node_modules/.vite/deps/@mui_icons-material_Call.js deleted file mode 100644 index 98c4e916..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_Call.js +++ /dev/null @@ -1,20 +0,0 @@ -"use client"; -import { - createSvgIcon -} from "./chunk-Y7GULVZW.js"; -import { - require_jsx_runtime -} from "./chunk-CWMN43OP.js"; -import { - __toESM -} from "./chunk-37AZBUIX.js"; - -// node_modules/@mui/icons-material/esm/Call.js -var import_jsx_runtime = __toESM(require_jsx_runtime()); -var Call_default = createSvgIcon((0, import_jsx_runtime.jsx)("path", { - d: "M20.01 15.38c-1.23 0-2.42-.2-3.53-.56-.35-.12-.74-.03-1.01.24l-1.57 1.97c-2.83-1.35-5.48-3.9-6.89-6.83l1.95-1.66c.27-.28.35-.67.24-1.02-.37-1.11-.56-2.3-.56-3.53 0-.54-.45-.99-.99-.99H4.19C3.65 3 3 3.24 3 3.99 3 13.28 10.73 21 20.01 21c.71 0 .99-.63.99-1.18v-3.45c0-.54-.45-.99-.99-.99" -}), "Call"); -export { - Call_default as default -}; -//# sourceMappingURL=@mui_icons-material_Call.js.map diff --git a/node_modules/.vite/deps/@mui_icons-material_Call.js.map b/node_modules/.vite/deps/@mui_icons-material_Call.js.map deleted file mode 100644 index a2c43411..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_Call.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../../@mui/icons-material/esm/Call.js"], - "sourcesContent": ["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M20.01 15.38c-1.23 0-2.42-.2-3.53-.56-.35-.12-.74-.03-1.01.24l-1.57 1.97c-2.83-1.35-5.48-3.9-6.89-6.83l1.95-1.66c.27-.28.35-.67.24-1.02-.37-1.11-.56-2.3-.56-3.53 0-.54-.45-.99-.99-.99H4.19C3.65 3 3 3.24 3 3.99 3 13.28 10.73 21 20.01 21c.71 0 .99-.63.99-1.18v-3.45c0-.54-.45-.99-.99-.99\"\n}), 'Call');"], - "mappings": ";;;;;;;;;;;;AAGA,yBAA4B;AAC5B,IAAO,eAAQ,kBAA2B,mBAAAA,KAAK,QAAQ;AAAA,EACrD,GAAG;AACL,CAAC,GAAG,MAAM;", - "names": ["_jsx"] -} diff --git a/node_modules/.vite/deps/@mui_icons-material_Collections.js b/node_modules/.vite/deps/@mui_icons-material_Collections.js deleted file mode 100644 index 719cdacb..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_Collections.js +++ /dev/null @@ -1,20 +0,0 @@ -"use client"; -import { - createSvgIcon -} from "./chunk-Y7GULVZW.js"; -import { - require_jsx_runtime -} from "./chunk-CWMN43OP.js"; -import { - __toESM -} from "./chunk-37AZBUIX.js"; - -// node_modules/@mui/icons-material/esm/Collections.js -var import_jsx_runtime = __toESM(require_jsx_runtime()); -var Collections_default = createSvgIcon((0, import_jsx_runtime.jsx)("path", { - d: "M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2m-11-4 2.03 2.71L16 11l4 5H8zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6z" -}), "Collections"); -export { - Collections_default as default -}; -//# sourceMappingURL=@mui_icons-material_Collections.js.map diff --git a/node_modules/.vite/deps/@mui_icons-material_Collections.js.map b/node_modules/.vite/deps/@mui_icons-material_Collections.js.map deleted file mode 100644 index dd27d4c5..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_Collections.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../../@mui/icons-material/esm/Collections.js"], - "sourcesContent": ["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2m-11-4 2.03 2.71L16 11l4 5H8zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6z\"\n}), 'Collections');"], - "mappings": ";;;;;;;;;;;;AAGA,yBAA4B;AAC5B,IAAO,sBAAQ,kBAA2B,mBAAAA,KAAK,QAAQ;AAAA,EACrD,GAAG;AACL,CAAC,GAAG,aAAa;", - "names": ["_jsx"] -} diff --git a/node_modules/.vite/deps/@mui_icons-material_Directions.js b/node_modules/.vite/deps/@mui_icons-material_Directions.js deleted file mode 100644 index 2e7201d7..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_Directions.js +++ /dev/null @@ -1,20 +0,0 @@ -"use client"; -import { - createSvgIcon -} from "./chunk-Y7GULVZW.js"; -import { - require_jsx_runtime -} from "./chunk-CWMN43OP.js"; -import { - __toESM -} from "./chunk-37AZBUIX.js"; - -// node_modules/@mui/icons-material/esm/Directions.js -var import_jsx_runtime = __toESM(require_jsx_runtime()); -var Directions_default = createSvgIcon((0, import_jsx_runtime.jsx)("path", { - d: "m21.41 10.59-7.99-8c-.78-.78-2.05-.78-2.83 0l-8.01 8c-.78.78-.78 2.05 0 2.83l8.01 8c.78.78 2.05.78 2.83 0l7.99-8c.79-.79.79-2.05 0-2.83M13.5 14.5V12H10v3H8v-4c0-.55.45-1 1-1h4.5V7.5L17 11z" -}), "Directions"); -export { - Directions_default as default -}; -//# sourceMappingURL=@mui_icons-material_Directions.js.map diff --git a/node_modules/.vite/deps/@mui_icons-material_Directions.js.map b/node_modules/.vite/deps/@mui_icons-material_Directions.js.map deleted file mode 100644 index c77d3a5b..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_Directions.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../../@mui/icons-material/esm/Directions.js"], - "sourcesContent": ["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"m21.41 10.59-7.99-8c-.78-.78-2.05-.78-2.83 0l-8.01 8c-.78.78-.78 2.05 0 2.83l8.01 8c.78.78 2.05.78 2.83 0l7.99-8c.79-.79.79-2.05 0-2.83M13.5 14.5V12H10v3H8v-4c0-.55.45-1 1-1h4.5V7.5L17 11z\"\n}), 'Directions');"], - "mappings": ";;;;;;;;;;;;AAGA,yBAA4B;AAC5B,IAAO,qBAAQ,kBAA2B,mBAAAA,KAAK,QAAQ;AAAA,EACrD,GAAG;AACL,CAAC,GAAG,YAAY;", - "names": ["_jsx"] -} diff --git a/node_modules/.vite/deps/@mui_icons-material_ExpandLess.js b/node_modules/.vite/deps/@mui_icons-material_ExpandLess.js deleted file mode 100644 index 875ba460..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_ExpandLess.js +++ /dev/null @@ -1,20 +0,0 @@ -"use client"; -import { - createSvgIcon -} from "./chunk-Y7GULVZW.js"; -import { - require_jsx_runtime -} from "./chunk-CWMN43OP.js"; -import { - __toESM -} from "./chunk-37AZBUIX.js"; - -// node_modules/@mui/icons-material/esm/ExpandLess.js -var import_jsx_runtime = __toESM(require_jsx_runtime()); -var ExpandLess_default = createSvgIcon((0, import_jsx_runtime.jsx)("path", { - d: "m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z" -}), "ExpandLess"); -export { - ExpandLess_default as default -}; -//# sourceMappingURL=@mui_icons-material_ExpandLess.js.map diff --git a/node_modules/.vite/deps/@mui_icons-material_ExpandLess.js.map b/node_modules/.vite/deps/@mui_icons-material_ExpandLess.js.map deleted file mode 100644 index 214b605a..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_ExpandLess.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../../@mui/icons-material/esm/ExpandLess.js"], - "sourcesContent": ["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z\"\n}), 'ExpandLess');"], - "mappings": ";;;;;;;;;;;;AAGA,yBAA4B;AAC5B,IAAO,qBAAQ,kBAA2B,mBAAAA,KAAK,QAAQ;AAAA,EACrD,GAAG;AACL,CAAC,GAAG,YAAY;", - "names": ["_jsx"] -} diff --git a/node_modules/.vite/deps/@mui_icons-material_ExpandMore.js b/node_modules/.vite/deps/@mui_icons-material_ExpandMore.js deleted file mode 100644 index 2ed4530f..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_ExpandMore.js +++ /dev/null @@ -1,20 +0,0 @@ -"use client"; -import { - createSvgIcon -} from "./chunk-Y7GULVZW.js"; -import { - require_jsx_runtime -} from "./chunk-CWMN43OP.js"; -import { - __toESM -} from "./chunk-37AZBUIX.js"; - -// node_modules/@mui/icons-material/esm/ExpandMore.js -var import_jsx_runtime = __toESM(require_jsx_runtime()); -var ExpandMore_default = createSvgIcon((0, import_jsx_runtime.jsx)("path", { - d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z" -}), "ExpandMore"); -export { - ExpandMore_default as default -}; -//# sourceMappingURL=@mui_icons-material_ExpandMore.js.map diff --git a/node_modules/.vite/deps/@mui_icons-material_ExpandMore.js.map b/node_modules/.vite/deps/@mui_icons-material_ExpandMore.js.map deleted file mode 100644 index 1d5da584..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_ExpandMore.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../../@mui/icons-material/esm/ExpandMore.js"], - "sourcesContent": ["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z\"\n}), 'ExpandMore');"], - "mappings": ";;;;;;;;;;;;AAGA,yBAA4B;AAC5B,IAAO,qBAAQ,kBAA2B,mBAAAA,KAAK,QAAQ;AAAA,EACrD,GAAG;AACL,CAAC,GAAG,YAAY;", - "names": ["_jsx"] -} diff --git a/node_modules/.vite/deps/@mui_icons-material_Favorite.js b/node_modules/.vite/deps/@mui_icons-material_Favorite.js index bf64b665..1fcdf30e 100644 --- a/node_modules/.vite/deps/@mui_icons-material_Favorite.js +++ b/node_modules/.vite/deps/@mui_icons-material_Favorite.js @@ -1,7 +1,7 @@ "use client"; import { createSvgIcon -} from "./chunk-Y7GULVZW.js"; +} from "./chunk-WMQC35LZ.js"; import { require_jsx_runtime } from "./chunk-CWMN43OP.js"; diff --git a/node_modules/.vite/deps/@mui_icons-material_FavoriteBorder.js b/node_modules/.vite/deps/@mui_icons-material_FavoriteBorder.js index 8e41940f..d85dec0f 100644 --- a/node_modules/.vite/deps/@mui_icons-material_FavoriteBorder.js +++ b/node_modules/.vite/deps/@mui_icons-material_FavoriteBorder.js @@ -1,7 +1,7 @@ "use client"; import { createSvgIcon -} from "./chunk-Y7GULVZW.js"; +} from "./chunk-WMQC35LZ.js"; import { require_jsx_runtime } from "./chunk-CWMN43OP.js"; diff --git a/node_modules/.vite/deps/@mui_icons-material_HelpOutline.js b/node_modules/.vite/deps/@mui_icons-material_HelpOutline.js deleted file mode 100644 index b10ce218..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_HelpOutline.js +++ /dev/null @@ -1,20 +0,0 @@ -"use client"; -import { - createSvgIcon -} from "./chunk-Y7GULVZW.js"; -import { - require_jsx_runtime -} from "./chunk-CWMN43OP.js"; -import { - __toESM -} from "./chunk-37AZBUIX.js"; - -// node_modules/@mui/icons-material/esm/HelpOutline.js -var import_jsx_runtime = __toESM(require_jsx_runtime()); -var HelpOutline_default = createSvgIcon((0, import_jsx_runtime.jsx)("path", { - d: "M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4" -}), "HelpOutline"); -export { - HelpOutline_default as default -}; -//# sourceMappingURL=@mui_icons-material_HelpOutline.js.map diff --git a/node_modules/.vite/deps/@mui_icons-material_HelpOutline.js.map b/node_modules/.vite/deps/@mui_icons-material_HelpOutline.js.map deleted file mode 100644 index 2935c0fd..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_HelpOutline.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../../@mui/icons-material/esm/HelpOutline.js"], - "sourcesContent": ["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4\"\n}), 'HelpOutline');"], - "mappings": ";;;;;;;;;;;;AAGA,yBAA4B;AAC5B,IAAO,sBAAQ,kBAA2B,mBAAAA,KAAK,QAAQ;AAAA,EACrD,GAAG;AACL,CAAC,GAAG,aAAa;", - "names": ["_jsx"] -} diff --git a/node_modules/.vite/deps/@mui_icons-material_HomeOutlined.js b/node_modules/.vite/deps/@mui_icons-material_HomeOutlined.js index 845d2bd6..7491342c 100644 --- a/node_modules/.vite/deps/@mui_icons-material_HomeOutlined.js +++ b/node_modules/.vite/deps/@mui_icons-material_HomeOutlined.js @@ -1,7 +1,7 @@ "use client"; import { createSvgIcon -} from "./chunk-Y7GULVZW.js"; +} from "./chunk-WMQC35LZ.js"; import { require_jsx_runtime } from "./chunk-CWMN43OP.js"; diff --git a/node_modules/.vite/deps/@mui_icons-material_InfoOutlined.js b/node_modules/.vite/deps/@mui_icons-material_InfoOutlined.js deleted file mode 100644 index 3507db23..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_InfoOutlined.js +++ /dev/null @@ -1,20 +0,0 @@ -"use client"; -import { - createSvgIcon -} from "./chunk-Y7GULVZW.js"; -import { - require_jsx_runtime -} from "./chunk-CWMN43OP.js"; -import { - __toESM -} from "./chunk-37AZBUIX.js"; - -// node_modules/@mui/icons-material/esm/InfoOutlined.js -var import_jsx_runtime = __toESM(require_jsx_runtime()); -var InfoOutlined_default = createSvgIcon((0, import_jsx_runtime.jsx)("path", { - d: "M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8" -}), "InfoOutlined"); -export { - InfoOutlined_default as default -}; -//# sourceMappingURL=@mui_icons-material_InfoOutlined.js.map diff --git a/node_modules/.vite/deps/@mui_icons-material_InfoOutlined.js.map b/node_modules/.vite/deps/@mui_icons-material_InfoOutlined.js.map deleted file mode 100644 index 0bbd7854..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_InfoOutlined.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../../@mui/icons-material/esm/InfoOutlined.js"], - "sourcesContent": ["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8\"\n}), 'InfoOutlined');"], - "mappings": ";;;;;;;;;;;;AAGA,yBAA4B;AAC5B,IAAO,uBAAQ,kBAA2B,mBAAAA,KAAK,QAAQ;AAAA,EACrD,GAAG;AACL,CAAC,GAAG,cAAc;", - "names": ["_jsx"] -} diff --git a/node_modules/.vite/deps/@mui_icons-material_Language.js b/node_modules/.vite/deps/@mui_icons-material_Language.js deleted file mode 100644 index 1ae214b8..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_Language.js +++ /dev/null @@ -1,20 +0,0 @@ -"use client"; -import { - createSvgIcon -} from "./chunk-Y7GULVZW.js"; -import { - require_jsx_runtime -} from "./chunk-CWMN43OP.js"; -import { - __toESM -} from "./chunk-37AZBUIX.js"; - -// node_modules/@mui/icons-material/esm/Language.js -var import_jsx_runtime = __toESM(require_jsx_runtime()); -var Language_default = createSvgIcon((0, import_jsx_runtime.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 2m6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56M12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96M4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2s.06 1.34.14 2zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56m2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8M12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96M14.34 14H9.66c-.09-.66-.16-1.32-.16-2s.07-1.35.16-2h4.68c.09.65.16 1.32.16 2s-.07 1.34-.16 2m.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56M16.36 14c.08-.66.14-1.32.14-2s-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2z" -}), "Language"); -export { - Language_default as default -}; -//# sourceMappingURL=@mui_icons-material_Language.js.map diff --git a/node_modules/.vite/deps/@mui_icons-material_Language.js.map b/node_modules/.vite/deps/@mui_icons-material_Language.js.map deleted file mode 100644 index 5c6abdcc..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_Language.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../../@mui/icons-material/esm/Language.js"], - "sourcesContent": ["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n 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 2m6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56M12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96M4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2s.06 1.34.14 2zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56m2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8M12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96M14.34 14H9.66c-.09-.66-.16-1.32-.16-2s.07-1.35.16-2h4.68c.09.65.16 1.32.16 2s-.07 1.34-.16 2m.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56M16.36 14c.08-.66.14-1.32.14-2s-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2z\"\n}), 'Language');"], - "mappings": ";;;;;;;;;;;;AAGA,yBAA4B;AAC5B,IAAO,mBAAQ,kBAA2B,mBAAAA,KAAK,QAAQ;AAAA,EACrD,GAAG;AACL,CAAC,GAAG,UAAU;", - "names": ["_jsx"] -} diff --git a/node_modules/.vite/deps/@mui_icons-material_LocalFireDepartment.js b/node_modules/.vite/deps/@mui_icons-material_LocalFireDepartment.js deleted file mode 100644 index e70ec251..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_LocalFireDepartment.js +++ /dev/null @@ -1,22 +0,0 @@ -"use client"; -import { - createSvgIcon -} from "./chunk-Y7GULVZW.js"; -import { - require_jsx_runtime -} from "./chunk-CWMN43OP.js"; -import { - __toESM -} from "./chunk-37AZBUIX.js"; - -// node_modules/@mui/icons-material/esm/LocalFireDepartment.js -var import_jsx_runtime = __toESM(require_jsx_runtime()); -var LocalFireDepartment_default = createSvgIcon([(0, import_jsx_runtime.jsx)("path", { - d: "m12 12.9-2.13 2.09c-.56.56-.87 1.29-.87 2.07C9 18.68 10.35 20 12 20s3-1.32 3-2.94c0-.78-.31-1.52-.87-2.07z" -}, "0"), (0, import_jsx_runtime.jsx)("path", { - d: "m16 6-.44.55C14.38 8.02 12 7.19 12 5.3V2S4 6 4 13c0 2.92 1.56 5.47 3.89 6.86-.56-.79-.89-1.76-.89-2.8 0-1.32.52-2.56 1.47-3.5L12 10.1l3.53 3.47c.95.93 1.47 2.17 1.47 3.5 0 1.02-.31 1.96-.85 2.75 1.89-1.15 3.29-3.06 3.71-5.3.66-3.55-1.07-6.9-3.86-8.52" -}, "1")], "LocalFireDepartment"); -export { - LocalFireDepartment_default as default -}; -//# sourceMappingURL=@mui_icons-material_LocalFireDepartment.js.map diff --git a/node_modules/.vite/deps/@mui_icons-material_LocalFireDepartment.js.map b/node_modules/.vite/deps/@mui_icons-material_LocalFireDepartment.js.map deleted file mode 100644 index 7f11e339..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_LocalFireDepartment.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../../@mui/icons-material/esm/LocalFireDepartment.js"], - "sourcesContent": ["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon([/*#__PURE__*/_jsx(\"path\", {\n d: \"m12 12.9-2.13 2.09c-.56.56-.87 1.29-.87 2.07C9 18.68 10.35 20 12 20s3-1.32 3-2.94c0-.78-.31-1.52-.87-2.07z\"\n}, \"0\"), /*#__PURE__*/_jsx(\"path\", {\n d: \"m16 6-.44.55C14.38 8.02 12 7.19 12 5.3V2S4 6 4 13c0 2.92 1.56 5.47 3.89 6.86-.56-.79-.89-1.76-.89-2.8 0-1.32.52-2.56 1.47-3.5L12 10.1l3.53 3.47c.95.93 1.47 2.17 1.47 3.5 0 1.02-.31 1.96-.85 2.75 1.89-1.15 3.29-3.06 3.71-5.3.66-3.55-1.07-6.9-3.86-8.52\"\n}, \"1\")], 'LocalFireDepartment');"], - "mappings": ";;;;;;;;;;;;AAGA,yBAA4B;AAC5B,IAAO,8BAAQ,cAAc,KAAc,mBAAAA,KAAK,QAAQ;AAAA,EACtD,GAAG;AACL,GAAG,GAAG,OAAgB,mBAAAA,KAAK,QAAQ;AAAA,EACjC,GAAG;AACL,GAAG,GAAG,CAAC,GAAG,qBAAqB;", - "names": ["_jsx"] -} diff --git a/node_modules/.vite/deps/@mui_icons-material_LocationOnOutlined.js b/node_modules/.vite/deps/@mui_icons-material_LocationOnOutlined.js deleted file mode 100644 index 3e8a1720..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_LocationOnOutlined.js +++ /dev/null @@ -1,24 +0,0 @@ -"use client"; -import { - createSvgIcon -} from "./chunk-Y7GULVZW.js"; -import { - require_jsx_runtime -} from "./chunk-CWMN43OP.js"; -import { - __toESM -} from "./chunk-37AZBUIX.js"; - -// node_modules/@mui/icons-material/esm/LocationOnOutlined.js -var import_jsx_runtime = __toESM(require_jsx_runtime()); -var LocationOnOutlined_default = createSvgIcon([(0, import_jsx_runtime.jsx)("path", { - d: "M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7M7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 2.88-2.88 7.19-5 9.88C9.92 16.21 7 11.85 7 9" -}, "0"), (0, import_jsx_runtime.jsx)("circle", { - cx: "12", - cy: "9", - r: "2.5" -}, "1")], "LocationOnOutlined"); -export { - LocationOnOutlined_default as default -}; -//# sourceMappingURL=@mui_icons-material_LocationOnOutlined.js.map diff --git a/node_modules/.vite/deps/@mui_icons-material_LocationOnOutlined.js.map b/node_modules/.vite/deps/@mui_icons-material_LocationOnOutlined.js.map deleted file mode 100644 index a285614e..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_LocationOnOutlined.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../../@mui/icons-material/esm/LocationOnOutlined.js"], - "sourcesContent": ["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon([/*#__PURE__*/_jsx(\"path\", {\n d: \"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7M7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 2.88-2.88 7.19-5 9.88C9.92 16.21 7 11.85 7 9\"\n}, \"0\"), /*#__PURE__*/_jsx(\"circle\", {\n cx: \"12\",\n cy: \"9\",\n r: \"2.5\"\n}, \"1\")], 'LocationOnOutlined');"], - "mappings": ";;;;;;;;;;;;AAGA,yBAA4B;AAC5B,IAAO,6BAAQ,cAAc,KAAc,mBAAAA,KAAK,QAAQ;AAAA,EACtD,GAAG;AACL,GAAG,GAAG,OAAgB,mBAAAA,KAAK,UAAU;AAAA,EACnC,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,GAAG;AACL,GAAG,GAAG,CAAC,GAAG,oBAAoB;", - "names": ["_jsx"] -} diff --git a/node_modules/.vite/deps/@mui_icons-material_Map.js b/node_modules/.vite/deps/@mui_icons-material_Map.js deleted file mode 100644 index 7dc36cdd..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_Map.js +++ /dev/null @@ -1,20 +0,0 @@ -"use client"; -import { - createSvgIcon -} from "./chunk-Y7GULVZW.js"; -import { - require_jsx_runtime -} from "./chunk-CWMN43OP.js"; -import { - __toESM -} from "./chunk-37AZBUIX.js"; - -// node_modules/@mui/icons-material/esm/Map.js -var import_jsx_runtime = __toESM(require_jsx_runtime()); -var Map_default = createSvgIcon((0, import_jsx_runtime.jsx)("path", { - d: "m20.5 3-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5M15 19l-6-2.11V5l6 2.11z" -}), "Map"); -export { - Map_default as default -}; -//# sourceMappingURL=@mui_icons-material_Map.js.map diff --git a/node_modules/.vite/deps/@mui_icons-material_Map.js.map b/node_modules/.vite/deps/@mui_icons-material_Map.js.map deleted file mode 100644 index b7a2e438..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_Map.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../../@mui/icons-material/esm/Map.js"], - "sourcesContent": ["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"m20.5 3-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5M15 19l-6-2.11V5l6 2.11z\"\n}), 'Map');"], - "mappings": ";;;;;;;;;;;;AAGA,yBAA4B;AAC5B,IAAO,cAAQ,kBAA2B,mBAAAA,KAAK,QAAQ;AAAA,EACrD,GAAG;AACL,CAAC,GAAG,KAAK;", - "names": ["_jsx"] -} diff --git a/node_modules/.vite/deps/@mui_icons-material_Menu.js b/node_modules/.vite/deps/@mui_icons-material_Menu.js deleted file mode 100644 index 16051596..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_Menu.js +++ /dev/null @@ -1,20 +0,0 @@ -"use client"; -import { - createSvgIcon -} from "./chunk-Y7GULVZW.js"; -import { - require_jsx_runtime -} from "./chunk-CWMN43OP.js"; -import { - __toESM -} from "./chunk-37AZBUIX.js"; - -// node_modules/@mui/icons-material/esm/Menu.js -var import_jsx_runtime = __toESM(require_jsx_runtime()); -var Menu_default = createSvgIcon((0, import_jsx_runtime.jsx)("path", { - d: "M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z" -}), "Menu"); -export { - Menu_default as default -}; -//# sourceMappingURL=@mui_icons-material_Menu.js.map diff --git a/node_modules/.vite/deps/@mui_icons-material_Menu.js.map b/node_modules/.vite/deps/@mui_icons-material_Menu.js.map deleted file mode 100644 index c18d80fb..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_Menu.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../../@mui/icons-material/esm/Menu.js"], - "sourcesContent": ["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z\"\n}), 'Menu');"], - "mappings": ";;;;;;;;;;;;AAGA,yBAA4B;AAC5B,IAAO,eAAQ,kBAA2B,mBAAAA,KAAK,QAAQ;AAAA,EACrD,GAAG;AACL,CAAC,GAAG,MAAM;", - "names": ["_jsx"] -} diff --git a/node_modules/.vite/deps/@mui_icons-material_People.js b/node_modules/.vite/deps/@mui_icons-material_People.js deleted file mode 100644 index 26c3c049..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_People.js +++ /dev/null @@ -1,20 +0,0 @@ -"use client"; -import { - createSvgIcon -} from "./chunk-Y7GULVZW.js"; -import { - require_jsx_runtime -} from "./chunk-CWMN43OP.js"; -import { - __toESM -} from "./chunk-37AZBUIX.js"; - -// node_modules/@mui/icons-material/esm/People.js -var import_jsx_runtime = __toESM(require_jsx_runtime()); -var People_default = createSvgIcon((0, import_jsx_runtime.jsx)("path", { - d: "M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5" -}), "People"); -export { - People_default as default -}; -//# sourceMappingURL=@mui_icons-material_People.js.map diff --git a/node_modules/.vite/deps/@mui_icons-material_People.js.map b/node_modules/.vite/deps/@mui_icons-material_People.js.map deleted file mode 100644 index b279aeac..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_People.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../../@mui/icons-material/esm/People.js"], - "sourcesContent": ["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5\"\n}), 'People');"], - "mappings": ";;;;;;;;;;;;AAGA,yBAA4B;AAC5B,IAAO,iBAAQ,kBAA2B,mBAAAA,KAAK,QAAQ;AAAA,EACrD,GAAG;AACL,CAAC,GAAG,QAAQ;", - "names": ["_jsx"] -} diff --git a/node_modules/.vite/deps/@mui_icons-material_PersonOutline.js b/node_modules/.vite/deps/@mui_icons-material_PersonOutline.js deleted file mode 100644 index 09651e13..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_PersonOutline.js +++ /dev/null @@ -1,20 +0,0 @@ -"use client"; -import { - createSvgIcon -} from "./chunk-Y7GULVZW.js"; -import { - require_jsx_runtime -} from "./chunk-CWMN43OP.js"; -import { - __toESM -} from "./chunk-37AZBUIX.js"; - -// node_modules/@mui/icons-material/esm/PersonOutline.js -var import_jsx_runtime = __toESM(require_jsx_runtime()); -var PersonOutline_default = createSvgIcon((0, import_jsx_runtime.jsx)("path", { - d: "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4" -}), "PersonOutline"); -export { - PersonOutline_default as default -}; -//# sourceMappingURL=@mui_icons-material_PersonOutline.js.map diff --git a/node_modules/.vite/deps/@mui_icons-material_PersonOutline.js.map b/node_modules/.vite/deps/@mui_icons-material_PersonOutline.js.map deleted file mode 100644 index 54709272..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_PersonOutline.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../../@mui/icons-material/esm/PersonOutline.js"], - "sourcesContent": ["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4\"\n}), 'PersonOutline');"], - "mappings": ";;;;;;;;;;;;AAGA,yBAA4B;AAC5B,IAAO,wBAAQ,kBAA2B,mBAAAA,KAAK,QAAQ;AAAA,EACrD,GAAG;AACL,CAAC,GAAG,eAAe;", - "names": ["_jsx"] -} diff --git a/node_modules/.vite/deps/@mui_icons-material_PersonOutlineOutlined.js b/node_modules/.vite/deps/@mui_icons-material_PersonOutlineOutlined.js index bff59a7d..dbef2278 100644 --- a/node_modules/.vite/deps/@mui_icons-material_PersonOutlineOutlined.js +++ b/node_modules/.vite/deps/@mui_icons-material_PersonOutlineOutlined.js @@ -1,7 +1,7 @@ "use client"; import { createSvgIcon -} from "./chunk-Y7GULVZW.js"; +} from "./chunk-WMQC35LZ.js"; import { require_jsx_runtime } from "./chunk-CWMN43OP.js"; diff --git a/node_modules/.vite/deps/@mui_icons-material_PhoneOutlined.js b/node_modules/.vite/deps/@mui_icons-material_PhoneOutlined.js deleted file mode 100644 index e24c3943..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_PhoneOutlined.js +++ /dev/null @@ -1,20 +0,0 @@ -"use client"; -import { - createSvgIcon -} from "./chunk-Y7GULVZW.js"; -import { - require_jsx_runtime -} from "./chunk-CWMN43OP.js"; -import { - __toESM -} from "./chunk-37AZBUIX.js"; - -// node_modules/@mui/icons-material/esm/PhoneOutlined.js -var import_jsx_runtime = __toESM(require_jsx_runtime()); -var PhoneOutlined_default = createSvgIcon((0, import_jsx_runtime.jsx)("path", { - d: "M6.54 5c.06.89.21 1.76.45 2.59l-1.2 1.2c-.41-1.2-.67-2.47-.76-3.79zm9.86 12.02c.85.24 1.72.39 2.6.45v1.49c-1.32-.09-2.59-.35-3.8-.75zM7.5 3H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.49c0-.55-.45-1-1-1-1.24 0-2.45-.2-3.57-.57-.1-.04-.21-.05-.31-.05-.26 0-.51.1-.71.29l-2.2 2.2c-2.83-1.45-5.15-3.76-6.59-6.59l2.2-2.2c.28-.28.36-.67.25-1.02C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1" -}), "PhoneOutlined"); -export { - PhoneOutlined_default as default -}; -//# sourceMappingURL=@mui_icons-material_PhoneOutlined.js.map diff --git a/node_modules/.vite/deps/@mui_icons-material_PhoneOutlined.js.map b/node_modules/.vite/deps/@mui_icons-material_PhoneOutlined.js.map deleted file mode 100644 index 1f71111b..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_PhoneOutlined.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../../@mui/icons-material/esm/PhoneOutlined.js"], - "sourcesContent": ["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M6.54 5c.06.89.21 1.76.45 2.59l-1.2 1.2c-.41-1.2-.67-2.47-.76-3.79zm9.86 12.02c.85.24 1.72.39 2.6.45v1.49c-1.32-.09-2.59-.35-3.8-.75zM7.5 3H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.49c0-.55-.45-1-1-1-1.24 0-2.45-.2-3.57-.57-.1-.04-.21-.05-.31-.05-.26 0-.51.1-.71.29l-2.2 2.2c-2.83-1.45-5.15-3.76-6.59-6.59l2.2-2.2c.28-.28.36-.67.25-1.02C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1\"\n}), 'PhoneOutlined');"], - "mappings": ";;;;;;;;;;;;AAGA,yBAA4B;AAC5B,IAAO,wBAAQ,kBAA2B,mBAAAA,KAAK,QAAQ;AAAA,EACrD,GAAG;AACL,CAAC,GAAG,eAAe;", - "names": ["_jsx"] -} diff --git a/node_modules/.vite/deps/@mui_icons-material_Remove.js b/node_modules/.vite/deps/@mui_icons-material_Remove.js deleted file mode 100644 index 69016a47..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_Remove.js +++ /dev/null @@ -1,20 +0,0 @@ -"use client"; -import { - createSvgIcon -} from "./chunk-Y7GULVZW.js"; -import { - require_jsx_runtime -} from "./chunk-CWMN43OP.js"; -import { - __toESM -} from "./chunk-37AZBUIX.js"; - -// node_modules/@mui/icons-material/esm/Remove.js -var import_jsx_runtime = __toESM(require_jsx_runtime()); -var Remove_default = createSvgIcon((0, import_jsx_runtime.jsx)("path", { - d: "M19 13H5v-2h14z" -}), "Remove"); -export { - Remove_default as default -}; -//# sourceMappingURL=@mui_icons-material_Remove.js.map diff --git a/node_modules/.vite/deps/@mui_icons-material_Remove.js.map b/node_modules/.vite/deps/@mui_icons-material_Remove.js.map deleted file mode 100644 index 4d851dc3..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_Remove.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../../@mui/icons-material/esm/Remove.js"], - "sourcesContent": ["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M19 13H5v-2h14z\"\n}), 'Remove');"], - "mappings": ";;;;;;;;;;;;AAGA,yBAA4B;AAC5B,IAAO,iBAAQ,kBAA2B,mBAAAA,KAAK,QAAQ;AAAA,EACrD,GAAG;AACL,CAAC,GAAG,QAAQ;", - "names": ["_jsx"] -} diff --git a/node_modules/.vite/deps/@mui_icons-material_Schedule.js b/node_modules/.vite/deps/@mui_icons-material_Schedule.js index 7ee69199..67b602a1 100644 --- a/node_modules/.vite/deps/@mui_icons-material_Schedule.js +++ b/node_modules/.vite/deps/@mui_icons-material_Schedule.js @@ -1,7 +1,7 @@ "use client"; import { createSvgIcon -} from "./chunk-Y7GULVZW.js"; +} from "./chunk-WMQC35LZ.js"; import { require_jsx_runtime } from "./chunk-CWMN43OP.js"; diff --git a/node_modules/.vite/deps/@mui_icons-material_Search.js b/node_modules/.vite/deps/@mui_icons-material_Search.js deleted file mode 100644 index 7adf4764..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_Search.js +++ /dev/null @@ -1,20 +0,0 @@ -"use client"; -import { - createSvgIcon -} from "./chunk-Y7GULVZW.js"; -import { - require_jsx_runtime -} from "./chunk-CWMN43OP.js"; -import { - __toESM -} from "./chunk-37AZBUIX.js"; - -// node_modules/@mui/icons-material/esm/Search.js -var import_jsx_runtime = __toESM(require_jsx_runtime()); -var Search_default = createSvgIcon((0, import_jsx_runtime.jsx)("path", { - d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14" -}), "Search"); -export { - Search_default as default -}; -//# sourceMappingURL=@mui_icons-material_Search.js.map diff --git a/node_modules/.vite/deps/@mui_icons-material_Search.js.map b/node_modules/.vite/deps/@mui_icons-material_Search.js.map deleted file mode 100644 index e4d257c2..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_Search.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../../@mui/icons-material/esm/Search.js"], - "sourcesContent": ["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14\"\n}), 'Search');"], - "mappings": ";;;;;;;;;;;;AAGA,yBAA4B;AAC5B,IAAO,iBAAQ,kBAA2B,mBAAAA,KAAK,QAAQ;AAAA,EACrD,GAAG;AACL,CAAC,GAAG,QAAQ;", - "names": ["_jsx"] -} diff --git a/node_modules/.vite/deps/@mui_icons-material_SearchOutlined.js b/node_modules/.vite/deps/@mui_icons-material_SearchOutlined.js index 2129cbfe..9f6d3525 100644 --- a/node_modules/.vite/deps/@mui_icons-material_SearchOutlined.js +++ b/node_modules/.vite/deps/@mui_icons-material_SearchOutlined.js @@ -1,7 +1,7 @@ "use client"; import { createSvgIcon -} from "./chunk-Y7GULVZW.js"; +} from "./chunk-WMQC35LZ.js"; import { require_jsx_runtime } from "./chunk-CWMN43OP.js"; diff --git a/node_modules/.vite/deps/@mui_icons-material_Share.js b/node_modules/.vite/deps/@mui_icons-material_Share.js deleted file mode 100644 index ef3073aa..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_Share.js +++ /dev/null @@ -1,20 +0,0 @@ -"use client"; -import { - createSvgIcon -} from "./chunk-Y7GULVZW.js"; -import { - require_jsx_runtime -} from "./chunk-CWMN43OP.js"; -import { - __toESM -} from "./chunk-37AZBUIX.js"; - -// node_modules/@mui/icons-material/esm/Share.js -var import_jsx_runtime = __toESM(require_jsx_runtime()); -var Share_default = createSvgIcon((0, import_jsx_runtime.jsx)("path", { - d: "M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92" -}), "Share"); -export { - Share_default as default -}; -//# sourceMappingURL=@mui_icons-material_Share.js.map diff --git a/node_modules/.vite/deps/@mui_icons-material_Share.js.map b/node_modules/.vite/deps/@mui_icons-material_Share.js.map deleted file mode 100644 index 81627324..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_Share.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../../@mui/icons-material/esm/Share.js"], - "sourcesContent": ["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92\"\n}), 'Share');"], - "mappings": ";;;;;;;;;;;;AAGA,yBAA4B;AAC5B,IAAO,gBAAQ,kBAA2B,mBAAAA,KAAK,QAAQ;AAAA,EACrD,GAAG;AACL,CAAC,GAAG,OAAO;", - "names": ["_jsx"] -} diff --git a/node_modules/.vite/deps/@mui_icons-material_Spa.js b/node_modules/.vite/deps/@mui_icons-material_Spa.js deleted file mode 100644 index 069c59e7..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_Spa.js +++ /dev/null @@ -1,22 +0,0 @@ -"use client"; -import { - createSvgIcon -} from "./chunk-Y7GULVZW.js"; -import { - require_jsx_runtime -} from "./chunk-CWMN43OP.js"; -import { - __toESM -} from "./chunk-37AZBUIX.js"; - -// node_modules/@mui/icons-material/esm/Spa.js -var import_jsx_runtime = __toESM(require_jsx_runtime()); -var Spa_default = createSvgIcon([(0, import_jsx_runtime.jsx)("path", { - d: "M8.55 12c-1.07-.71-2.25-1.27-3.53-1.61 1.28.34 2.46.9 3.53 1.61m10.43-1.61c-1.29.34-2.49.91-3.57 1.64 1.08-.73 2.28-1.3 3.57-1.64" -}, "0"), (0, import_jsx_runtime.jsx)("path", { - d: "M15.49 9.63c-.18-2.79-1.31-5.51-3.43-7.63-2.14 2.14-3.32 4.86-3.55 7.63 1.28.68 2.46 1.56 3.49 2.63 1.03-1.06 2.21-1.94 3.49-2.63m-6.5 2.65c-.14-.1-.3-.19-.45-.29.15.11.31.19.45.29m6.42-.25c-.13.09-.27.16-.4.26.13-.1.27-.17.4-.26M12 15.45C9.85 12.17 6.18 10 2 10c0 5.32 3.36 9.82 8.03 11.49.63.23 1.29.4 1.97.51.68-.12 1.33-.29 1.97-.51C18.64 19.82 22 15.32 22 10c-4.18 0-7.85 2.17-10 5.45" -}, "1")], "Spa"); -export { - Spa_default as default -}; -//# sourceMappingURL=@mui_icons-material_Spa.js.map diff --git a/node_modules/.vite/deps/@mui_icons-material_Spa.js.map b/node_modules/.vite/deps/@mui_icons-material_Spa.js.map deleted file mode 100644 index 80719a12..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_Spa.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../../@mui/icons-material/esm/Spa.js"], - "sourcesContent": ["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon([/*#__PURE__*/_jsx(\"path\", {\n d: \"M8.55 12c-1.07-.71-2.25-1.27-3.53-1.61 1.28.34 2.46.9 3.53 1.61m10.43-1.61c-1.29.34-2.49.91-3.57 1.64 1.08-.73 2.28-1.3 3.57-1.64\"\n}, \"0\"), /*#__PURE__*/_jsx(\"path\", {\n d: \"M15.49 9.63c-.18-2.79-1.31-5.51-3.43-7.63-2.14 2.14-3.32 4.86-3.55 7.63 1.28.68 2.46 1.56 3.49 2.63 1.03-1.06 2.21-1.94 3.49-2.63m-6.5 2.65c-.14-.1-.3-.19-.45-.29.15.11.31.19.45.29m6.42-.25c-.13.09-.27.16-.4.26.13-.1.27-.17.4-.26M12 15.45C9.85 12.17 6.18 10 2 10c0 5.32 3.36 9.82 8.03 11.49.63.23 1.29.4 1.97.51.68-.12 1.33-.29 1.97-.51C18.64 19.82 22 15.32 22 10c-4.18 0-7.85 2.17-10 5.45\"\n}, \"1\")], 'Spa');"], - "mappings": ";;;;;;;;;;;;AAGA,yBAA4B;AAC5B,IAAO,cAAQ,cAAc,KAAc,mBAAAA,KAAK,QAAQ;AAAA,EACtD,GAAG;AACL,GAAG,GAAG,OAAgB,mBAAAA,KAAK,QAAQ;AAAA,EACjC,GAAG;AACL,GAAG,GAAG,CAAC,GAAG,KAAK;", - "names": ["_jsx"] -} diff --git a/node_modules/.vite/deps/@mui_icons-material_Star.js b/node_modules/.vite/deps/@mui_icons-material_Star.js index e57b771d..3e69b74d 100644 --- a/node_modules/.vite/deps/@mui_icons-material_Star.js +++ b/node_modules/.vite/deps/@mui_icons-material_Star.js @@ -1,7 +1,7 @@ "use client"; import { createSvgIcon -} from "./chunk-Y7GULVZW.js"; +} from "./chunk-WMQC35LZ.js"; import { require_jsx_runtime } from "./chunk-CWMN43OP.js"; diff --git a/node_modules/.vite/deps/@mui_icons-material_StarHalf.js b/node_modules/.vite/deps/@mui_icons-material_StarHalf.js deleted file mode 100644 index 861c730c..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_StarHalf.js +++ /dev/null @@ -1,20 +0,0 @@ -"use client"; -import { - createSvgIcon -} from "./chunk-Y7GULVZW.js"; -import { - require_jsx_runtime -} from "./chunk-CWMN43OP.js"; -import { - __toESM -} from "./chunk-37AZBUIX.js"; - -// node_modules/@mui/icons-material/esm/StarHalf.js -var import_jsx_runtime = __toESM(require_jsx_runtime()); -var StarHalf_default = createSvgIcon((0, import_jsx_runtime.jsx)("path", { - d: "m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28z" -}), "StarHalf"); -export { - StarHalf_default as default -}; -//# sourceMappingURL=@mui_icons-material_StarHalf.js.map diff --git a/node_modules/.vite/deps/@mui_icons-material_StarHalf.js.map b/node_modules/.vite/deps/@mui_icons-material_StarHalf.js.map deleted file mode 100644 index d118f5f6..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_StarHalf.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../../@mui/icons-material/esm/StarHalf.js"], - "sourcesContent": ["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28z\"\n}), 'StarHalf');"], - "mappings": ";;;;;;;;;;;;AAGA,yBAA4B;AAC5B,IAAO,mBAAQ,kBAA2B,mBAAAA,KAAK,QAAQ;AAAA,EACrD,GAAG;AACL,CAAC,GAAG,UAAU;", - "names": ["_jsx"] -} diff --git a/node_modules/.vite/deps/@mui_icons-material_StarOutline.js b/node_modules/.vite/deps/@mui_icons-material_StarOutline.js deleted file mode 100644 index dba9844a..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_StarOutline.js +++ /dev/null @@ -1,20 +0,0 @@ -"use client"; -import { - createSvgIcon -} from "./chunk-Y7GULVZW.js"; -import { - require_jsx_runtime -} from "./chunk-CWMN43OP.js"; -import { - __toESM -} from "./chunk-37AZBUIX.js"; - -// node_modules/@mui/icons-material/esm/StarOutline.js -var import_jsx_runtime = __toESM(require_jsx_runtime()); -var StarOutline_default = createSvgIcon((0, import_jsx_runtime.jsx)("path", { - d: "m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28z" -}), "StarOutline"); -export { - StarOutline_default as default -}; -//# sourceMappingURL=@mui_icons-material_StarOutline.js.map diff --git a/node_modules/.vite/deps/@mui_icons-material_StarOutline.js.map b/node_modules/.vite/deps/@mui_icons-material_StarOutline.js.map deleted file mode 100644 index 500e1499..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_StarOutline.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../../@mui/icons-material/esm/StarOutline.js"], - "sourcesContent": ["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28z\"\n}), 'StarOutline');"], - "mappings": ";;;;;;;;;;;;AAGA,yBAA4B;AAC5B,IAAO,sBAAQ,kBAA2B,mBAAAA,KAAK,QAAQ;AAAA,EACrD,GAAG;AACL,CAAC,GAAG,aAAa;", - "names": ["_jsx"] -} diff --git a/node_modules/.vite/deps/@mui_icons-material_ThreeSixty.js b/node_modules/.vite/deps/@mui_icons-material_ThreeSixty.js deleted file mode 100644 index 24da0a41..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_ThreeSixty.js +++ /dev/null @@ -1,20 +0,0 @@ -"use client"; -import { - createSvgIcon -} from "./chunk-Y7GULVZW.js"; -import { - require_jsx_runtime -} from "./chunk-CWMN43OP.js"; -import { - __toESM -} from "./chunk-37AZBUIX.js"; - -// node_modules/@mui/icons-material/esm/ThreeSixty.js -var import_jsx_runtime = __toESM(require_jsx_runtime()); -var ThreeSixty_default = createSvgIcon((0, import_jsx_runtime.jsx)("path", { - d: "M12 7C6.48 7 2 9.24 2 12c0 2.24 2.94 4.13 7 4.77V20l4-4-4-4v2.73c-3.15-.56-5-1.9-5-2.73 0-1.06 3.04-3 8-3s8 1.94 8 3c0 .73-1.46 1.89-4 2.53v2.05c3.53-.77 6-2.53 6-4.58 0-2.76-4.48-5-10-5" -}), "ThreeSixty"); -export { - ThreeSixty_default as default -}; -//# sourceMappingURL=@mui_icons-material_ThreeSixty.js.map diff --git a/node_modules/.vite/deps/@mui_icons-material_ThreeSixty.js.map b/node_modules/.vite/deps/@mui_icons-material_ThreeSixty.js.map deleted file mode 100644 index 8b828f38..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_ThreeSixty.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../../@mui/icons-material/esm/ThreeSixty.js"], - "sourcesContent": ["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M12 7C6.48 7 2 9.24 2 12c0 2.24 2.94 4.13 7 4.77V20l4-4-4-4v2.73c-3.15-.56-5-1.9-5-2.73 0-1.06 3.04-3 8-3s8 1.94 8 3c0 .73-1.46 1.89-4 2.53v2.05c3.53-.77 6-2.53 6-4.58 0-2.76-4.48-5-10-5\"\n}), 'ThreeSixty');"], - "mappings": ";;;;;;;;;;;;AAGA,yBAA4B;AAC5B,IAAO,qBAAQ,kBAA2B,mBAAAA,KAAK,QAAQ;AAAA,EACrD,GAAG;AACL,CAAC,GAAG,YAAY;", - "names": ["_jsx"] -} diff --git a/node_modules/.vite/deps/@mui_icons-material_Warning.js b/node_modules/.vite/deps/@mui_icons-material_Warning.js deleted file mode 100644 index 0b6d4171..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_Warning.js +++ /dev/null @@ -1,20 +0,0 @@ -"use client"; -import { - createSvgIcon -} from "./chunk-Y7GULVZW.js"; -import { - require_jsx_runtime -} from "./chunk-CWMN43OP.js"; -import { - __toESM -} from "./chunk-37AZBUIX.js"; - -// node_modules/@mui/icons-material/esm/Warning.js -var import_jsx_runtime = __toESM(require_jsx_runtime()); -var Warning_default = createSvgIcon((0, import_jsx_runtime.jsx)("path", { - d: "M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z" -}), "Warning"); -export { - Warning_default as default -}; -//# sourceMappingURL=@mui_icons-material_Warning.js.map diff --git a/node_modules/.vite/deps/@mui_icons-material_Warning.js.map b/node_modules/.vite/deps/@mui_icons-material_Warning.js.map deleted file mode 100644 index 55a65b10..00000000 --- a/node_modules/.vite/deps/@mui_icons-material_Warning.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../../@mui/icons-material/esm/Warning.js"], - "sourcesContent": ["\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z\"\n}), 'Warning');"], - "mappings": ";;;;;;;;;;;;AAGA,yBAA4B;AAC5B,IAAO,kBAAQ,kBAA2B,mBAAAA,KAAK,QAAQ;AAAA,EACrD,GAAG;AACL,CAAC,GAAG,SAAS;", - "names": ["_jsx"] -} diff --git a/node_modules/.vite/deps/_metadata.json b/node_modules/.vite/deps/_metadata.json index 0cb3e3e5..3b9d6c51 100644 --- a/node_modules/.vite/deps/_metadata.json +++ b/node_modules/.vite/deps/_metadata.json @@ -1,274 +1,100 @@ { - "hash": "5ef07269", - "configHash": "09fb8e3b", - "lockfileHash": "831dfe8f", - "browserHash": "45e8d737", + "hash": "8ebffc56", + "configHash": "a6bbf03f", + "lockfileHash": "3a42d559", + "browserHash": "40d3e13b", "optimized": { "react": { "src": "../../react/index.js", "file": "react.js", - "fileHash": "7fb7686f", + "fileHash": "48e354ea", "needsInterop": true }, "react-dom": { "src": "../../react-dom/index.js", "file": "react-dom.js", - "fileHash": "df7d2859", + "fileHash": "79612f02", "needsInterop": true }, "react/jsx-dev-runtime": { "src": "../../react/jsx-dev-runtime.js", "file": "react_jsx-dev-runtime.js", - "fileHash": "6ecc5f3c", + "fileHash": "b266e8aa", "needsInterop": true }, "react/jsx-runtime": { "src": "../../react/jsx-runtime.js", "file": "react_jsx-runtime.js", - "fileHash": "8e582a50", + "fileHash": "cbf05157", "needsInterop": true }, "@mui/icons-material/Bolt": { "src": "../../@mui/icons-material/esm/Bolt.js", "file": "@mui_icons-material_Bolt.js", - "fileHash": "d9f5a101", - "needsInterop": false - }, - "@mui/icons-material/BookmarkBorder": { - "src": "../../@mui/icons-material/esm/BookmarkBorder.js", - "file": "@mui_icons-material_BookmarkBorder.js", - "fileHash": "056b53e6", + "fileHash": "f86d1873", "needsInterop": false }, "@mui/icons-material/BookmarkBorderOutlined": { "src": "../../@mui/icons-material/esm/BookmarkBorderOutlined.js", "file": "@mui_icons-material_BookmarkBorderOutlined.js", - "fileHash": "d5424b85", + "fileHash": "1b7152dd", "needsInterop": false }, "@mui/icons-material/Favorite": { "src": "../../@mui/icons-material/esm/Favorite.js", "file": "@mui_icons-material_Favorite.js", - "fileHash": "5c7d1679", + "fileHash": "a4e2c7a3", "needsInterop": false }, "@mui/icons-material/FavoriteBorder": { "src": "../../@mui/icons-material/esm/FavoriteBorder.js", "file": "@mui_icons-material_FavoriteBorder.js", - "fileHash": "222f66ec", + "fileHash": "bd44a34f", "needsInterop": false }, "@mui/icons-material/HomeOutlined": { "src": "../../@mui/icons-material/esm/HomeOutlined.js", "file": "@mui_icons-material_HomeOutlined.js", - "fileHash": "6ad849c1", - "needsInterop": false - }, - "@mui/icons-material/Map": { - "src": "../../@mui/icons-material/esm/Map.js", - "file": "@mui_icons-material_Map.js", - "fileHash": "48df0f94", - "needsInterop": false - }, - "@mui/icons-material/Menu": { - "src": "../../@mui/icons-material/esm/Menu.js", - "file": "@mui_icons-material_Menu.js", - "fileHash": "e09e4ac3", - "needsInterop": false - }, - "@mui/icons-material/People": { - "src": "../../@mui/icons-material/esm/People.js", - "file": "@mui_icons-material_People.js", - "fileHash": "0043bea8", - "needsInterop": false - }, - "@mui/icons-material/PersonOutline": { - "src": "../../@mui/icons-material/esm/PersonOutline.js", - "file": "@mui_icons-material_PersonOutline.js", - "fileHash": "1e63241b", + "fileHash": "1f6ed9ce", "needsInterop": false }, "@mui/icons-material/PersonOutlineOutlined": { "src": "../../@mui/icons-material/esm/PersonOutlineOutlined.js", "file": "@mui_icons-material_PersonOutlineOutlined.js", - "fileHash": "b25f8bad", + "fileHash": "722ee881", "needsInterop": false }, "@mui/icons-material/Schedule": { "src": "../../@mui/icons-material/esm/Schedule.js", "file": "@mui_icons-material_Schedule.js", - "fileHash": "2d43d762", - "needsInterop": false - }, - "@mui/icons-material/Search": { - "src": "../../@mui/icons-material/esm/Search.js", - "file": "@mui_icons-material_Search.js", - "fileHash": "a7b7bf11", + "fileHash": "73ecbc4d", "needsInterop": false }, "@mui/icons-material/SearchOutlined": { "src": "../../@mui/icons-material/esm/SearchOutlined.js", "file": "@mui_icons-material_SearchOutlined.js", - "fileHash": "bba631f6", - "needsInterop": false - }, - "@mui/icons-material/Spa": { - "src": "../../@mui/icons-material/esm/Spa.js", - "file": "@mui_icons-material_Spa.js", - "fileHash": "287698ce", + "fileHash": "933e8dc9", "needsInterop": false }, "@mui/icons-material/Star": { "src": "../../@mui/icons-material/esm/Star.js", "file": "@mui_icons-material_Star.js", - "fileHash": "499e2dfb", + "fileHash": "a6bf3f83", "needsInterop": false }, "react-dom/client": { "src": "../../react-dom/client.js", "file": "react-dom_client.js", - "fileHash": "8816a7b7", + "fileHash": "a09bec96", "needsInterop": true - }, - "@mui/icons-material/ArrowBack": { - "src": "../../@mui/icons-material/esm/ArrowBack.js", - "file": "@mui_icons-material_ArrowBack.js", - "fileHash": "26cb48ab", - "needsInterop": false - }, - "@mui/icons-material/Share": { - "src": "../../@mui/icons-material/esm/Share.js", - "file": "@mui_icons-material_Share.js", - "fileHash": "796301c3", - "needsInterop": false - }, - "@mui/icons-material/StarHalf": { - "src": "../../@mui/icons-material/esm/StarHalf.js", - "file": "@mui_icons-material_StarHalf.js", - "fileHash": "90e94703", - "needsInterop": false - }, - "@mui/icons-material/StarOutline": { - "src": "../../@mui/icons-material/esm/StarOutline.js", - "file": "@mui_icons-material_StarOutline.js", - "fileHash": "92a31d90", - "needsInterop": false - }, - "@mui/icons-material/Call": { - "src": "../../@mui/icons-material/esm/Call.js", - "file": "@mui_icons-material_Call.js", - "fileHash": "36ed310e", - "needsInterop": false - }, - "@mui/icons-material/Directions": { - "src": "../../@mui/icons-material/esm/Directions.js", - "file": "@mui_icons-material_Directions.js", - "fileHash": "62829467", - "needsInterop": false - }, - "@mui/icons-material/Language": { - "src": "../../@mui/icons-material/esm/Language.js", - "file": "@mui_icons-material_Language.js", - "fileHash": "00dcdbbd", - "needsInterop": false - }, - "@mui/icons-material/ExpandMore": { - "src": "../../@mui/icons-material/esm/ExpandMore.js", - "file": "@mui_icons-material_ExpandMore.js", - "fileHash": "0b8cc1b4", - "needsInterop": false - }, - "@mui/icons-material/LocalFireDepartment": { - "src": "../../@mui/icons-material/esm/LocalFireDepartment.js", - "file": "@mui_icons-material_LocalFireDepartment.js", - "fileHash": "df6a7447", - "needsInterop": false - }, - "@mui/icons-material/Warning": { - "src": "../../@mui/icons-material/esm/Warning.js", - "file": "@mui_icons-material_Warning.js", - "fileHash": "49c2238e", - "needsInterop": false - }, - "@mui/icons-material/Add": { - "src": "../../@mui/icons-material/esm/Add.js", - "file": "@mui_icons-material_Add.js", - "fileHash": "181647c0", - "needsInterop": false - }, - "@mui/icons-material/Remove": { - "src": "../../@mui/icons-material/esm/Remove.js", - "file": "@mui_icons-material_Remove.js", - "fileHash": "9314724d", - "needsInterop": false - }, - "@mui/icons-material/CalendarMonth": { - "src": "../../@mui/icons-material/esm/CalendarMonth.js", - "file": "@mui_icons-material_CalendarMonth.js", - "fileHash": "0a3f523f", - "needsInterop": false - }, - "@mui/icons-material/Collections": { - "src": "../../@mui/icons-material/esm/Collections.js", - "file": "@mui_icons-material_Collections.js", - "fileHash": "121e09e9", - "needsInterop": false - }, - "@mui/icons-material/ThreeSixty": { - "src": "../../@mui/icons-material/esm/ThreeSixty.js", - "file": "@mui_icons-material_ThreeSixty.js", - "fileHash": "bc898f7a", - "needsInterop": false - }, - "react-router-dom": { - "src": "../../react-router-dom/dist/index.mjs", - "file": "react-router-dom.js", - "fileHash": "0b4ed6cc", - "needsInterop": false - }, - "@mui/icons-material/ExpandLess": { - "src": "../../@mui/icons-material/esm/ExpandLess.js", - "file": "@mui_icons-material_ExpandLess.js", - "fileHash": "9f28451f", - "needsInterop": false - }, - "@mui/icons-material/LocationOnOutlined": { - "src": "../../@mui/icons-material/esm/LocationOnOutlined.js", - "file": "@mui_icons-material_LocationOnOutlined.js", - "fileHash": "766b07fd", - "needsInterop": false - }, - "@mui/icons-material/PhoneOutlined": { - "src": "../../@mui/icons-material/esm/PhoneOutlined.js", - "file": "@mui_icons-material_PhoneOutlined.js", - "fileHash": "e371a20f", - "needsInterop": false - }, - "@mui/icons-material/InfoOutlined": { - "src": "../../@mui/icons-material/esm/InfoOutlined.js", - "file": "@mui_icons-material_InfoOutlined.js", - "fileHash": "af5a8ac9", - "needsInterop": false - }, - "@mui/icons-material/HelpOutline": { - "src": "../../@mui/icons-material/esm/HelpOutline.js", - "file": "@mui_icons-material_HelpOutline.js", - "fileHash": "5bb97e48", - "needsInterop": false - }, - "@mui/icons-material/CalendarToday": { - "src": "../../@mui/icons-material/esm/CalendarToday.js", - "file": "@mui_icons-material_CalendarToday.js", - "fileHash": "6a98d87e", - "needsInterop": false } }, "chunks": { "chunk-GJJM2GG4": { "file": "chunk-GJJM2GG4.js" }, - "chunk-Y7GULVZW": { - "file": "chunk-Y7GULVZW.js" + "chunk-WMQC35LZ": { + "file": "chunk-WMQC35LZ.js" }, "chunk-CWMN43OP": { "file": "chunk-CWMN43OP.js" diff --git a/node_modules/.vite/deps/chunk-Y7GULVZW.js b/node_modules/.vite/deps/chunk-Y7GULVZW.js deleted file mode 100644 index ceaa2cc1..00000000 --- a/node_modules/.vite/deps/chunk-Y7GULVZW.js +++ /dev/null @@ -1,9458 +0,0 @@ -import { - require_jsx_runtime -} from "./chunk-CWMN43OP.js"; -import { - __commonJS, - __publicField, - __toESM, - require_react -} from "./chunk-37AZBUIX.js"; - -// node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js -var require_react_is_development = __commonJS({ - "node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js"(exports) { - "use strict"; - if (true) { - (function() { - "use strict"; - var hasSymbol2 = typeof Symbol === "function" && Symbol.for; - var REACT_ELEMENT_TYPE = hasSymbol2 ? Symbol.for("react.element") : 60103; - var REACT_PORTAL_TYPE = hasSymbol2 ? Symbol.for("react.portal") : 60106; - var REACT_FRAGMENT_TYPE = hasSymbol2 ? Symbol.for("react.fragment") : 60107; - var REACT_STRICT_MODE_TYPE = hasSymbol2 ? Symbol.for("react.strict_mode") : 60108; - var REACT_PROFILER_TYPE = hasSymbol2 ? Symbol.for("react.profiler") : 60114; - var REACT_PROVIDER_TYPE = hasSymbol2 ? Symbol.for("react.provider") : 60109; - var REACT_CONTEXT_TYPE = hasSymbol2 ? Symbol.for("react.context") : 60110; - var REACT_ASYNC_MODE_TYPE = hasSymbol2 ? Symbol.for("react.async_mode") : 60111; - var REACT_CONCURRENT_MODE_TYPE = hasSymbol2 ? Symbol.for("react.concurrent_mode") : 60111; - var REACT_FORWARD_REF_TYPE = hasSymbol2 ? Symbol.for("react.forward_ref") : 60112; - var REACT_SUSPENSE_TYPE = hasSymbol2 ? Symbol.for("react.suspense") : 60113; - var REACT_SUSPENSE_LIST_TYPE = hasSymbol2 ? Symbol.for("react.suspense_list") : 60120; - var REACT_MEMO_TYPE = hasSymbol2 ? Symbol.for("react.memo") : 60115; - var REACT_LAZY_TYPE = hasSymbol2 ? Symbol.for("react.lazy") : 60116; - var REACT_BLOCK_TYPE = hasSymbol2 ? Symbol.for("react.block") : 60121; - var REACT_FUNDAMENTAL_TYPE = hasSymbol2 ? Symbol.for("react.fundamental") : 60117; - var REACT_RESPONDER_TYPE = hasSymbol2 ? Symbol.for("react.responder") : 60118; - var REACT_SCOPE_TYPE = hasSymbol2 ? Symbol.for("react.scope") : 60119; - function isValidElementType2(type) { - return typeof type === "string" || typeof type === "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. - type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE); - } - function typeOf(object) { - if (typeof object === "object" && object !== null) { - var $$typeof = object.$$typeof; - switch ($$typeof) { - case REACT_ELEMENT_TYPE: - var type = object.type; - switch (type) { - case REACT_ASYNC_MODE_TYPE: - case REACT_CONCURRENT_MODE_TYPE: - case REACT_FRAGMENT_TYPE: - case REACT_PROFILER_TYPE: - case REACT_STRICT_MODE_TYPE: - case REACT_SUSPENSE_TYPE: - return type; - default: - var $$typeofType = type && type.$$typeof; - switch ($$typeofType) { - case REACT_CONTEXT_TYPE: - case REACT_FORWARD_REF_TYPE: - case REACT_LAZY_TYPE: - case REACT_MEMO_TYPE: - case REACT_PROVIDER_TYPE: - return $$typeofType; - default: - return $$typeof; - } - } - case REACT_PORTAL_TYPE: - return $$typeof; - } - } - return void 0; - } - var AsyncMode = REACT_ASYNC_MODE_TYPE; - var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE; - var ContextConsumer = REACT_CONTEXT_TYPE; - var ContextProvider = REACT_PROVIDER_TYPE; - var Element = REACT_ELEMENT_TYPE; - var ForwardRef2 = REACT_FORWARD_REF_TYPE; - var Fragment5 = REACT_FRAGMENT_TYPE; - var Lazy = REACT_LAZY_TYPE; - var Memo2 = REACT_MEMO_TYPE; - var Portal = REACT_PORTAL_TYPE; - var Profiler = REACT_PROFILER_TYPE; - var StrictMode = REACT_STRICT_MODE_TYPE; - var Suspense = REACT_SUSPENSE_TYPE; - var hasWarnedAboutDeprecatedIsAsyncMode = false; - function isAsyncMode(object) { - { - if (!hasWarnedAboutDeprecatedIsAsyncMode) { - hasWarnedAboutDeprecatedIsAsyncMode = true; - console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API."); - } - } - return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE; - } - function isConcurrentMode(object) { - return typeOf(object) === REACT_CONCURRENT_MODE_TYPE; - } - function isContextConsumer(object) { - return typeOf(object) === REACT_CONTEXT_TYPE; - } - function isContextProvider(object) { - return typeOf(object) === REACT_PROVIDER_TYPE; - } - function isElement(object) { - return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; - } - function isForwardRef(object) { - return typeOf(object) === REACT_FORWARD_REF_TYPE; - } - function isFragment(object) { - return typeOf(object) === REACT_FRAGMENT_TYPE; - } - function isLazy(object) { - return typeOf(object) === REACT_LAZY_TYPE; - } - function isMemo(object) { - return typeOf(object) === REACT_MEMO_TYPE; - } - function isPortal(object) { - return typeOf(object) === REACT_PORTAL_TYPE; - } - function isProfiler(object) { - return typeOf(object) === REACT_PROFILER_TYPE; - } - function isStrictMode(object) { - return typeOf(object) === REACT_STRICT_MODE_TYPE; - } - function isSuspense(object) { - return typeOf(object) === REACT_SUSPENSE_TYPE; - } - exports.AsyncMode = AsyncMode; - exports.ConcurrentMode = ConcurrentMode; - exports.ContextConsumer = ContextConsumer; - exports.ContextProvider = ContextProvider; - exports.Element = Element; - exports.ForwardRef = ForwardRef2; - exports.Fragment = Fragment5; - exports.Lazy = Lazy; - exports.Memo = Memo2; - exports.Portal = Portal; - exports.Profiler = Profiler; - exports.StrictMode = StrictMode; - exports.Suspense = Suspense; - exports.isAsyncMode = isAsyncMode; - exports.isConcurrentMode = isConcurrentMode; - exports.isContextConsumer = isContextConsumer; - exports.isContextProvider = isContextProvider; - exports.isElement = isElement; - exports.isForwardRef = isForwardRef; - exports.isFragment = isFragment; - exports.isLazy = isLazy; - exports.isMemo = isMemo; - exports.isPortal = isPortal; - exports.isProfiler = isProfiler; - exports.isStrictMode = isStrictMode; - exports.isSuspense = isSuspense; - exports.isValidElementType = isValidElementType2; - exports.typeOf = typeOf; - })(); - } - } -}); - -// node_modules/prop-types/node_modules/react-is/index.js -var require_react_is = __commonJS({ - "node_modules/prop-types/node_modules/react-is/index.js"(exports, module) { - "use strict"; - if (false) { - module.exports = null; - } else { - module.exports = require_react_is_development(); - } - } -}); - -// node_modules/object-assign/index.js -var require_object_assign = __commonJS({ - "node_modules/object-assign/index.js"(exports, module) { - "use strict"; - var getOwnPropertySymbols = Object.getOwnPropertySymbols; - var hasOwnProperty = Object.prototype.hasOwnProperty; - var propIsEnumerable = Object.prototype.propertyIsEnumerable; - function toObject(val) { - if (val === null || val === void 0) { - throw new TypeError("Object.assign cannot be called with null or undefined"); - } - return Object(val); - } - function shouldUseNative() { - try { - if (!Object.assign) { - return false; - } - var test1 = new String("abc"); - test1[5] = "de"; - if (Object.getOwnPropertyNames(test1)[0] === "5") { - return false; - } - var test2 = {}; - for (var i = 0; i < 10; i++) { - test2["_" + String.fromCharCode(i)] = i; - } - var order2 = Object.getOwnPropertyNames(test2).map(function(n) { - return test2[n]; - }); - if (order2.join("") !== "0123456789") { - return false; - } - var test3 = {}; - "abcdefghijklmnopqrst".split("").forEach(function(letter) { - test3[letter] = letter; - }); - if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") { - return false; - } - return true; - } catch (err) { - return false; - } - } - module.exports = shouldUseNative() ? Object.assign : function(target, source) { - var from2; - var to = toObject(target); - var symbols; - for (var s = 1; s < arguments.length; s++) { - from2 = Object(arguments[s]); - for (var key in from2) { - if (hasOwnProperty.call(from2, key)) { - to[key] = from2[key]; - } - } - if (getOwnPropertySymbols) { - symbols = getOwnPropertySymbols(from2); - for (var i = 0; i < symbols.length; i++) { - if (propIsEnumerable.call(from2, symbols[i])) { - to[symbols[i]] = from2[symbols[i]]; - } - } - } - } - return to; - }; - } -}); - -// node_modules/prop-types/lib/ReactPropTypesSecret.js -var require_ReactPropTypesSecret = __commonJS({ - "node_modules/prop-types/lib/ReactPropTypesSecret.js"(exports, module) { - "use strict"; - var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"; - module.exports = ReactPropTypesSecret; - } -}); - -// node_modules/prop-types/lib/has.js -var require_has = __commonJS({ - "node_modules/prop-types/lib/has.js"(exports, module) { - module.exports = Function.call.bind(Object.prototype.hasOwnProperty); - } -}); - -// node_modules/prop-types/checkPropTypes.js -var require_checkPropTypes = __commonJS({ - "node_modules/prop-types/checkPropTypes.js"(exports, module) { - "use strict"; - var printWarning = function() { - }; - if (true) { - ReactPropTypesSecret = require_ReactPropTypesSecret(); - loggedTypeFailures = {}; - has = require_has(); - printWarning = function(text) { - var message = "Warning: " + text; - if (typeof console !== "undefined") { - console.error(message); - } - try { - throw new Error(message); - } catch (x) { - } - }; - } - var ReactPropTypesSecret; - var loggedTypeFailures; - var has; - function checkPropTypes(typeSpecs, values2, location, componentName, getStack) { - if (true) { - for (var typeSpecName in typeSpecs) { - if (has(typeSpecs, typeSpecName)) { - var error; - try { - if (typeof typeSpecs[typeSpecName] !== "function") { - var err = Error( - (componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`." - ); - err.name = "Invariant Violation"; - throw err; - } - error = typeSpecs[typeSpecName](values2, typeSpecName, componentName, location, null, ReactPropTypesSecret); - } catch (ex) { - error = ex; - } - if (error && !(error instanceof Error)) { - printWarning( - (componentName || "React class") + ": type specification of " + location + " `" + typeSpecName + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof error + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)." - ); - } - if (error instanceof Error && !(error.message in loggedTypeFailures)) { - loggedTypeFailures[error.message] = true; - var stack = getStack ? getStack() : ""; - printWarning( - "Failed " + location + " type: " + error.message + (stack != null ? stack : "") - ); - } - } - } - } - } - checkPropTypes.resetWarningCache = function() { - if (true) { - loggedTypeFailures = {}; - } - }; - module.exports = checkPropTypes; - } -}); - -// node_modules/prop-types/factoryWithTypeCheckers.js -var require_factoryWithTypeCheckers = __commonJS({ - "node_modules/prop-types/factoryWithTypeCheckers.js"(exports, module) { - "use strict"; - var ReactIs = require_react_is(); - var assign2 = require_object_assign(); - var ReactPropTypesSecret = require_ReactPropTypesSecret(); - var has = require_has(); - var checkPropTypes = require_checkPropTypes(); - var printWarning = function() { - }; - if (true) { - printWarning = function(text) { - var message = "Warning: " + text; - if (typeof console !== "undefined") { - console.error(message); - } - try { - throw new Error(message); - } catch (x) { - } - }; - } - function emptyFunctionThatReturnsNull() { - return null; - } - module.exports = function(isValidElement7, throwOnDirectAccess) { - var ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator; - var FAUX_ITERATOR_SYMBOL = "@@iterator"; - function getIteratorFn(maybeIterable) { - var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]); - if (typeof iteratorFn === "function") { - return iteratorFn; - } - } - var ANONYMOUS = "<>"; - var ReactPropTypes = { - array: createPrimitiveTypeChecker("array"), - bigint: createPrimitiveTypeChecker("bigint"), - bool: createPrimitiveTypeChecker("boolean"), - func: createPrimitiveTypeChecker("function"), - number: createPrimitiveTypeChecker("number"), - object: createPrimitiveTypeChecker("object"), - string: createPrimitiveTypeChecker("string"), - symbol: createPrimitiveTypeChecker("symbol"), - any: createAnyTypeChecker(), - arrayOf: createArrayOfTypeChecker, - element: createElementTypeChecker(), - elementType: createElementTypeTypeChecker(), - instanceOf: createInstanceTypeChecker, - node: createNodeChecker(), - objectOf: createObjectOfTypeChecker, - oneOf: createEnumTypeChecker, - oneOfType: createUnionTypeChecker, - shape: createShapeTypeChecker, - exact: createStrictShapeTypeChecker - }; - function is(x, y) { - if (x === y) { - return x !== 0 || 1 / x === 1 / y; - } else { - return x !== x && y !== y; - } - } - function PropTypeError(message, data) { - this.message = message; - this.data = data && typeof data === "object" ? data : {}; - this.stack = ""; - } - PropTypeError.prototype = Error.prototype; - function createChainableTypeChecker(validate) { - if (true) { - var manualPropTypeCallCache = {}; - var manualPropTypeWarningCount = 0; - } - function checkType(isRequired, props, propName, componentName, location, propFullName, secret) { - componentName = componentName || ANONYMOUS; - propFullName = propFullName || propName; - if (secret !== ReactPropTypesSecret) { - if (throwOnDirectAccess) { - var err = new Error( - "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types" - ); - err.name = "Invariant Violation"; - throw err; - } else if (typeof console !== "undefined") { - var cacheKey = componentName + ":" + propName; - if (!manualPropTypeCallCache[cacheKey] && // Avoid spamming the console because they are often not actionable except for lib authors - manualPropTypeWarningCount < 3) { - printWarning( - "You are manually calling a React.PropTypes validation function for the `" + propFullName + "` prop on `" + componentName + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details." - ); - manualPropTypeCallCache[cacheKey] = true; - manualPropTypeWarningCount++; - } - } - } - if (props[propName] == null) { - if (isRequired) { - if (props[propName] === null) { - return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required " + ("in `" + componentName + "`, but its value is `null`.")); - } - return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required in " + ("`" + componentName + "`, but its value is `undefined`.")); - } - return null; - } else { - return validate(props, propName, componentName, location, propFullName); - } - } - var chainedCheckType = checkType.bind(null, false); - chainedCheckType.isRequired = checkType.bind(null, true); - return chainedCheckType; - } - function createPrimitiveTypeChecker(expectedType) { - function validate(props, propName, componentName, location, propFullName, secret) { - var propValue = props[propName]; - var propType = getPropType(propValue); - if (propType !== expectedType) { - var preciseType = getPreciseType(propValue); - return new PropTypeError( - "Invalid " + location + " `" + propFullName + "` of type " + ("`" + preciseType + "` supplied to `" + componentName + "`, expected ") + ("`" + expectedType + "`."), - { expectedType } - ); - } - return null; - } - return createChainableTypeChecker(validate); - } - function createAnyTypeChecker() { - return createChainableTypeChecker(emptyFunctionThatReturnsNull); - } - function createArrayOfTypeChecker(typeChecker) { - function validate(props, propName, componentName, location, propFullName) { - if (typeof typeChecker !== "function") { - return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside arrayOf."); - } - var propValue = props[propName]; - if (!Array.isArray(propValue)) { - var propType = getPropType(propValue); - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an array.")); - } - for (var i = 0; i < propValue.length; i++) { - var error = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret); - if (error instanceof Error) { - return error; - } - } - return null; - } - return createChainableTypeChecker(validate); - } - function createElementTypeChecker() { - function validate(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - if (!isValidElement7(propValue)) { - var propType = getPropType(propValue); - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement.")); - } - return null; - } - return createChainableTypeChecker(validate); - } - function createElementTypeTypeChecker() { - function validate(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - if (!ReactIs.isValidElementType(propValue)) { - var propType = getPropType(propValue); - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement type.")); - } - return null; - } - return createChainableTypeChecker(validate); - } - function createInstanceTypeChecker(expectedClass) { - function validate(props, propName, componentName, location, propFullName) { - if (!(props[propName] instanceof expectedClass)) { - var expectedClassName = expectedClass.name || ANONYMOUS; - var actualClassName = getClassName(props[propName]); - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + actualClassName + "` supplied to `" + componentName + "`, expected ") + ("instance of `" + expectedClassName + "`.")); - } - return null; - } - return createChainableTypeChecker(validate); - } - function createEnumTypeChecker(expectedValues) { - if (!Array.isArray(expectedValues)) { - if (true) { - if (arguments.length > 1) { - printWarning( - "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])." - ); - } else { - printWarning("Invalid argument supplied to oneOf, expected an array."); - } - } - return emptyFunctionThatReturnsNull; - } - function validate(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - for (var i = 0; i < expectedValues.length; i++) { - if (is(propValue, expectedValues[i])) { - return null; - } - } - var valuesString = JSON.stringify(expectedValues, function replacer(key, value) { - var type = getPreciseType(value); - if (type === "symbol") { - return String(value); - } - return value; - }); - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of value `" + String(propValue) + "` " + ("supplied to `" + componentName + "`, expected one of " + valuesString + ".")); - } - return createChainableTypeChecker(validate); - } - function createObjectOfTypeChecker(typeChecker) { - function validate(props, propName, componentName, location, propFullName) { - if (typeof typeChecker !== "function") { - return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside objectOf."); - } - var propValue = props[propName]; - var propType = getPropType(propValue); - if (propType !== "object") { - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an object.")); - } - for (var key in propValue) { - if (has(propValue, key)) { - var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret); - if (error instanceof Error) { - return error; - } - } - } - return null; - } - return createChainableTypeChecker(validate); - } - function createUnionTypeChecker(arrayOfTypeCheckers) { - if (!Array.isArray(arrayOfTypeCheckers)) { - true ? printWarning("Invalid argument supplied to oneOfType, expected an instance of array.") : void 0; - return emptyFunctionThatReturnsNull; - } - for (var i = 0; i < arrayOfTypeCheckers.length; i++) { - var checker = arrayOfTypeCheckers[i]; - if (typeof checker !== "function") { - printWarning( - "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i + "." - ); - return emptyFunctionThatReturnsNull; - } - } - function validate(props, propName, componentName, location, propFullName) { - var expectedTypes = []; - for (var i2 = 0; i2 < arrayOfTypeCheckers.length; i2++) { - var checker2 = arrayOfTypeCheckers[i2]; - var checkerResult = checker2(props, propName, componentName, location, propFullName, ReactPropTypesSecret); - if (checkerResult == null) { - return null; - } - if (checkerResult.data && has(checkerResult.data, "expectedType")) { - expectedTypes.push(checkerResult.data.expectedType); - } - } - var expectedTypesMessage = expectedTypes.length > 0 ? ", expected one of type [" + expectedTypes.join(", ") + "]" : ""; - return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`" + expectedTypesMessage + ".")); - } - return createChainableTypeChecker(validate); - } - function createNodeChecker() { - function validate(props, propName, componentName, location, propFullName) { - if (!isNode(props[propName])) { - return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`, expected a ReactNode.")); - } - return null; - } - return createChainableTypeChecker(validate); - } - function invalidValidatorError(componentName, location, propFullName, key, type) { - return new PropTypeError( - (componentName || "React class") + ": " + location + " type `" + propFullName + "." + key + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + type + "`." - ); - } - function createShapeTypeChecker(shapeTypes) { - function validate(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - var propType = getPropType(propValue); - if (propType !== "object") { - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`.")); - } - for (var key in shapeTypes) { - var checker = shapeTypes[key]; - if (typeof checker !== "function") { - return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker)); - } - var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret); - if (error) { - return error; - } - } - return null; - } - return createChainableTypeChecker(validate); - } - function createStrictShapeTypeChecker(shapeTypes) { - function validate(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - var propType = getPropType(propValue); - if (propType !== "object") { - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`.")); - } - var allKeys = assign2({}, props[propName], shapeTypes); - for (var key in allKeys) { - var checker = shapeTypes[key]; - if (has(shapeTypes, key) && typeof checker !== "function") { - return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker)); - } - if (!checker) { - return new PropTypeError( - "Invalid " + location + " `" + propFullName + "` key `" + key + "` supplied to `" + componentName + "`.\nBad object: " + JSON.stringify(props[propName], null, " ") + "\nValid keys: " + JSON.stringify(Object.keys(shapeTypes), null, " ") - ); - } - var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret); - if (error) { - return error; - } - } - return null; - } - return createChainableTypeChecker(validate); - } - function isNode(propValue) { - switch (typeof propValue) { - case "number": - case "string": - case "undefined": - return true; - case "boolean": - return !propValue; - case "object": - if (Array.isArray(propValue)) { - return propValue.every(isNode); - } - if (propValue === null || isValidElement7(propValue)) { - return true; - } - var iteratorFn = getIteratorFn(propValue); - if (iteratorFn) { - var iterator = iteratorFn.call(propValue); - var step; - if (iteratorFn !== propValue.entries) { - while (!(step = iterator.next()).done) { - if (!isNode(step.value)) { - return false; - } - } - } else { - while (!(step = iterator.next()).done) { - var entry = step.value; - if (entry) { - if (!isNode(entry[1])) { - return false; - } - } - } - } - } else { - return false; - } - return true; - default: - return false; - } - } - function isSymbol(propType, propValue) { - if (propType === "symbol") { - return true; - } - if (!propValue) { - return false; - } - if (propValue["@@toStringTag"] === "Symbol") { - return true; - } - if (typeof Symbol === "function" && propValue instanceof Symbol) { - return true; - } - return false; - } - function getPropType(propValue) { - var propType = typeof propValue; - if (Array.isArray(propValue)) { - return "array"; - } - if (propValue instanceof RegExp) { - return "object"; - } - if (isSymbol(propType, propValue)) { - return "symbol"; - } - return propType; - } - function getPreciseType(propValue) { - if (typeof propValue === "undefined" || propValue === null) { - return "" + propValue; - } - var propType = getPropType(propValue); - if (propType === "object") { - if (propValue instanceof Date) { - return "date"; - } else if (propValue instanceof RegExp) { - return "regexp"; - } - } - return propType; - } - function getPostfixForTypeWarning(value) { - var type = getPreciseType(value); - switch (type) { - case "array": - case "object": - return "an " + type; - case "boolean": - case "date": - case "regexp": - return "a " + type; - default: - return type; - } - } - function getClassName(propValue) { - if (!propValue.constructor || !propValue.constructor.name) { - return ANONYMOUS; - } - return propValue.constructor.name; - } - ReactPropTypes.checkPropTypes = checkPropTypes; - ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache; - ReactPropTypes.PropTypes = ReactPropTypes; - return ReactPropTypes; - }; - } -}); - -// node_modules/prop-types/index.js -var require_prop_types = __commonJS({ - "node_modules/prop-types/index.js"(exports, module) { - if (true) { - ReactIs = require_react_is(); - throwOnDirectAccess = true; - module.exports = require_factoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess); - } else { - module.exports = null(); - } - var ReactIs; - var throwOnDirectAccess; - } -}); - -// node_modules/react-is/cjs/react-is.development.js -var require_react_is_development2 = __commonJS({ - "node_modules/react-is/cjs/react-is.development.js"(exports) { - "use strict"; - (function() { - function typeOf(object) { - if ("object" === typeof object && null !== object) { - var $$typeof = object.$$typeof; - switch ($$typeof) { - case REACT_ELEMENT_TYPE: - switch (object = object.type, object) { - case REACT_FRAGMENT_TYPE: - case REACT_PROFILER_TYPE: - case REACT_STRICT_MODE_TYPE: - case REACT_SUSPENSE_TYPE: - case REACT_SUSPENSE_LIST_TYPE: - case REACT_VIEW_TRANSITION_TYPE: - return object; - default: - switch (object = object && object.$$typeof, object) { - case REACT_CONTEXT_TYPE: - case REACT_FORWARD_REF_TYPE: - case REACT_LAZY_TYPE: - case REACT_MEMO_TYPE: - return object; - case REACT_CONSUMER_TYPE: - return object; - default: - return $$typeof; - } - } - case REACT_PORTAL_TYPE: - return $$typeof; - } - } - } - var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"); - Symbol.for("react.provider"); - var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"); - exports.ContextConsumer = REACT_CONSUMER_TYPE; - exports.ContextProvider = REACT_CONTEXT_TYPE; - exports.Element = REACT_ELEMENT_TYPE; - exports.ForwardRef = REACT_FORWARD_REF_TYPE; - exports.Fragment = REACT_FRAGMENT_TYPE; - exports.Lazy = REACT_LAZY_TYPE; - exports.Memo = REACT_MEMO_TYPE; - exports.Portal = REACT_PORTAL_TYPE; - exports.Profiler = REACT_PROFILER_TYPE; - exports.StrictMode = REACT_STRICT_MODE_TYPE; - exports.Suspense = REACT_SUSPENSE_TYPE; - exports.SuspenseList = REACT_SUSPENSE_LIST_TYPE; - exports.isContextConsumer = function(object) { - return typeOf(object) === REACT_CONSUMER_TYPE; - }; - exports.isContextProvider = function(object) { - return typeOf(object) === REACT_CONTEXT_TYPE; - }; - exports.isElement = function(object) { - return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE; - }; - exports.isForwardRef = function(object) { - return typeOf(object) === REACT_FORWARD_REF_TYPE; - }; - exports.isFragment = function(object) { - return typeOf(object) === REACT_FRAGMENT_TYPE; - }; - exports.isLazy = function(object) { - return typeOf(object) === REACT_LAZY_TYPE; - }; - exports.isMemo = function(object) { - return typeOf(object) === REACT_MEMO_TYPE; - }; - exports.isPortal = function(object) { - return typeOf(object) === REACT_PORTAL_TYPE; - }; - exports.isProfiler = function(object) { - return typeOf(object) === REACT_PROFILER_TYPE; - }; - exports.isStrictMode = function(object) { - return typeOf(object) === REACT_STRICT_MODE_TYPE; - }; - exports.isSuspense = function(object) { - return typeOf(object) === REACT_SUSPENSE_TYPE; - }; - exports.isSuspenseList = function(object) { - return typeOf(object) === REACT_SUSPENSE_LIST_TYPE; - }; - exports.isValidElementType = function(type) { - return "string" === typeof type || "function" === typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || "object" === typeof type && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || void 0 !== type.getModuleId) ? true : false; - }; - exports.typeOf = typeOf; - })(); - } -}); - -// node_modules/react-is/index.js -var require_react_is2 = __commonJS({ - "node_modules/react-is/index.js"(exports, module) { - "use strict"; - if (false) { - module.exports = null; - } else { - module.exports = require_react_is_development2(); - } - } -}); - -// node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js -var require_react_is_development3 = __commonJS({ - "node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js"(exports) { - "use strict"; - if (true) { - (function() { - "use strict"; - var hasSymbol2 = typeof Symbol === "function" && Symbol.for; - var REACT_ELEMENT_TYPE = hasSymbol2 ? Symbol.for("react.element") : 60103; - var REACT_PORTAL_TYPE = hasSymbol2 ? Symbol.for("react.portal") : 60106; - var REACT_FRAGMENT_TYPE = hasSymbol2 ? Symbol.for("react.fragment") : 60107; - var REACT_STRICT_MODE_TYPE = hasSymbol2 ? Symbol.for("react.strict_mode") : 60108; - var REACT_PROFILER_TYPE = hasSymbol2 ? Symbol.for("react.profiler") : 60114; - var REACT_PROVIDER_TYPE = hasSymbol2 ? Symbol.for("react.provider") : 60109; - var REACT_CONTEXT_TYPE = hasSymbol2 ? Symbol.for("react.context") : 60110; - var REACT_ASYNC_MODE_TYPE = hasSymbol2 ? Symbol.for("react.async_mode") : 60111; - var REACT_CONCURRENT_MODE_TYPE = hasSymbol2 ? Symbol.for("react.concurrent_mode") : 60111; - var REACT_FORWARD_REF_TYPE = hasSymbol2 ? Symbol.for("react.forward_ref") : 60112; - var REACT_SUSPENSE_TYPE = hasSymbol2 ? Symbol.for("react.suspense") : 60113; - var REACT_SUSPENSE_LIST_TYPE = hasSymbol2 ? Symbol.for("react.suspense_list") : 60120; - var REACT_MEMO_TYPE = hasSymbol2 ? Symbol.for("react.memo") : 60115; - var REACT_LAZY_TYPE = hasSymbol2 ? Symbol.for("react.lazy") : 60116; - var REACT_BLOCK_TYPE = hasSymbol2 ? Symbol.for("react.block") : 60121; - var REACT_FUNDAMENTAL_TYPE = hasSymbol2 ? Symbol.for("react.fundamental") : 60117; - var REACT_RESPONDER_TYPE = hasSymbol2 ? Symbol.for("react.responder") : 60118; - var REACT_SCOPE_TYPE = hasSymbol2 ? Symbol.for("react.scope") : 60119; - function isValidElementType2(type) { - return typeof type === "string" || typeof type === "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. - type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE); - } - function typeOf(object) { - if (typeof object === "object" && object !== null) { - var $$typeof = object.$$typeof; - switch ($$typeof) { - case REACT_ELEMENT_TYPE: - var type = object.type; - switch (type) { - case REACT_ASYNC_MODE_TYPE: - case REACT_CONCURRENT_MODE_TYPE: - case REACT_FRAGMENT_TYPE: - case REACT_PROFILER_TYPE: - case REACT_STRICT_MODE_TYPE: - case REACT_SUSPENSE_TYPE: - return type; - default: - var $$typeofType = type && type.$$typeof; - switch ($$typeofType) { - case REACT_CONTEXT_TYPE: - case REACT_FORWARD_REF_TYPE: - case REACT_LAZY_TYPE: - case REACT_MEMO_TYPE: - case REACT_PROVIDER_TYPE: - return $$typeofType; - default: - return $$typeof; - } - } - case REACT_PORTAL_TYPE: - return $$typeof; - } - } - return void 0; - } - var AsyncMode = REACT_ASYNC_MODE_TYPE; - var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE; - var ContextConsumer = REACT_CONTEXT_TYPE; - var ContextProvider = REACT_PROVIDER_TYPE; - var Element = REACT_ELEMENT_TYPE; - var ForwardRef2 = REACT_FORWARD_REF_TYPE; - var Fragment5 = REACT_FRAGMENT_TYPE; - var Lazy = REACT_LAZY_TYPE; - var Memo2 = REACT_MEMO_TYPE; - var Portal = REACT_PORTAL_TYPE; - var Profiler = REACT_PROFILER_TYPE; - var StrictMode = REACT_STRICT_MODE_TYPE; - var Suspense = REACT_SUSPENSE_TYPE; - var hasWarnedAboutDeprecatedIsAsyncMode = false; - function isAsyncMode(object) { - { - if (!hasWarnedAboutDeprecatedIsAsyncMode) { - hasWarnedAboutDeprecatedIsAsyncMode = true; - console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API."); - } - } - return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE; - } - function isConcurrentMode(object) { - return typeOf(object) === REACT_CONCURRENT_MODE_TYPE; - } - function isContextConsumer(object) { - return typeOf(object) === REACT_CONTEXT_TYPE; - } - function isContextProvider(object) { - return typeOf(object) === REACT_PROVIDER_TYPE; - } - function isElement(object) { - return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; - } - function isForwardRef(object) { - return typeOf(object) === REACT_FORWARD_REF_TYPE; - } - function isFragment(object) { - return typeOf(object) === REACT_FRAGMENT_TYPE; - } - function isLazy(object) { - return typeOf(object) === REACT_LAZY_TYPE; - } - function isMemo(object) { - return typeOf(object) === REACT_MEMO_TYPE; - } - function isPortal(object) { - return typeOf(object) === REACT_PORTAL_TYPE; - } - function isProfiler(object) { - return typeOf(object) === REACT_PROFILER_TYPE; - } - function isStrictMode(object) { - return typeOf(object) === REACT_STRICT_MODE_TYPE; - } - function isSuspense(object) { - return typeOf(object) === REACT_SUSPENSE_TYPE; - } - exports.AsyncMode = AsyncMode; - exports.ConcurrentMode = ConcurrentMode; - exports.ContextConsumer = ContextConsumer; - exports.ContextProvider = ContextProvider; - exports.Element = Element; - exports.ForwardRef = ForwardRef2; - exports.Fragment = Fragment5; - exports.Lazy = Lazy; - exports.Memo = Memo2; - exports.Portal = Portal; - exports.Profiler = Profiler; - exports.StrictMode = StrictMode; - exports.Suspense = Suspense; - exports.isAsyncMode = isAsyncMode; - exports.isConcurrentMode = isConcurrentMode; - exports.isContextConsumer = isContextConsumer; - exports.isContextProvider = isContextProvider; - exports.isElement = isElement; - exports.isForwardRef = isForwardRef; - exports.isFragment = isFragment; - exports.isLazy = isLazy; - exports.isMemo = isMemo; - exports.isPortal = isPortal; - exports.isProfiler = isProfiler; - exports.isStrictMode = isStrictMode; - exports.isSuspense = isSuspense; - exports.isValidElementType = isValidElementType2; - exports.typeOf = typeOf; - })(); - } - } -}); - -// node_modules/hoist-non-react-statics/node_modules/react-is/index.js -var require_react_is3 = __commonJS({ - "node_modules/hoist-non-react-statics/node_modules/react-is/index.js"(exports, module) { - "use strict"; - if (false) { - module.exports = null; - } else { - module.exports = require_react_is_development3(); - } - } -}); - -// node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js -var require_hoist_non_react_statics_cjs = __commonJS({ - "node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(exports, module) { - "use strict"; - var reactIs = require_react_is3(); - var REACT_STATICS = { - childContextTypes: true, - contextType: true, - contextTypes: true, - defaultProps: true, - displayName: true, - getDefaultProps: true, - getDerivedStateFromError: true, - getDerivedStateFromProps: true, - mixins: true, - propTypes: true, - type: true - }; - var KNOWN_STATICS = { - name: true, - length: true, - prototype: true, - caller: true, - callee: true, - arguments: true, - arity: true - }; - var FORWARD_REF_STATICS = { - "$$typeof": true, - render: true, - defaultProps: true, - displayName: true, - propTypes: true - }; - var MEMO_STATICS = { - "$$typeof": true, - compare: true, - defaultProps: true, - displayName: true, - propTypes: true, - type: true - }; - var TYPE_STATICS = {}; - TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS; - TYPE_STATICS[reactIs.Memo] = MEMO_STATICS; - function getStatics(component) { - if (reactIs.isMemo(component)) { - return MEMO_STATICS; - } - return TYPE_STATICS[component["$$typeof"]] || REACT_STATICS; - } - var defineProperty = Object.defineProperty; - var getOwnPropertyNames = Object.getOwnPropertyNames; - var getOwnPropertySymbols = Object.getOwnPropertySymbols; - var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; - var getPrototypeOf = Object.getPrototypeOf; - var objectPrototype = Object.prototype; - function hoistNonReactStatics2(targetComponent, sourceComponent, blacklist) { - if (typeof sourceComponent !== "string") { - if (objectPrototype) { - var inheritedComponent = getPrototypeOf(sourceComponent); - if (inheritedComponent && inheritedComponent !== objectPrototype) { - hoistNonReactStatics2(targetComponent, inheritedComponent, blacklist); - } - } - var keys = getOwnPropertyNames(sourceComponent); - if (getOwnPropertySymbols) { - keys = keys.concat(getOwnPropertySymbols(sourceComponent)); - } - var targetStatics = getStatics(targetComponent); - var sourceStatics = getStatics(sourceComponent); - for (var i = 0; i < keys.length; ++i) { - var key = keys[i]; - if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) { - var descriptor = getOwnPropertyDescriptor(sourceComponent, key); - try { - defineProperty(targetComponent, key, descriptor); - } catch (e) { - } - } - } - } - return targetComponent; - } - module.exports = hoistNonReactStatics2; - } -}); - -// node_modules/@mui/material/esm/utils/createSvgIcon.js -var React42 = __toESM(require_react(), 1); - -// node_modules/@mui/material/esm/SvgIcon/SvgIcon.js -var React41 = __toESM(require_react(), 1); -var import_prop_types23 = __toESM(require_prop_types(), 1); - -// node_modules/clsx/dist/clsx.mjs -function r(e) { - var t, f, n = ""; - if ("string" == typeof e || "number" == typeof e) n += e; - else if ("object" == typeof e) if (Array.isArray(e)) { - var o = e.length; - for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f); - } else for (f in e) e[f] && (n && (n += " "), n += f); - return n; -} -function clsx() { - for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t); - return n; -} -var clsx_default = clsx; - -// node_modules/@mui/utils/esm/composeClasses/composeClasses.js -function composeClasses(slots, getUtilityClass, classes = void 0) { - const output = {}; - for (const slotName in slots) { - const slot = slots[slotName]; - let buffer = ""; - let start = true; - for (let i = 0; i < slot.length; i += 1) { - const value = slot[i]; - if (value) { - buffer += (start === true ? "" : " ") + getUtilityClass(value); - start = false; - if (classes && classes[value]) { - buffer += " " + classes[value]; - } - } - } - output[slotName] = buffer; - } - return output; -} - -// node_modules/@mui/utils/esm/capitalize/capitalize.js -function capitalize(string) { - if (typeof string !== "string") { - throw new Error(true ? "MUI: `capitalize(string)` expects a string argument." : formatMuiErrorMessage(7)); - } - return string.charAt(0).toUpperCase() + string.slice(1); -} - -// node_modules/@mui/material/esm/utils/capitalize.js -var capitalize_default = capitalize; - -// node_modules/@mui/material/esm/zero-styled/index.js -var React39 = __toESM(require_react(), 1); - -// node_modules/@mui/utils/esm/deepmerge/deepmerge.js -var React = __toESM(require_react(), 1); -var import_react_is = __toESM(require_react_is2(), 1); -function isPlainObject(item) { - if (typeof item !== "object" || item === null) { - return false; - } - const prototype = Object.getPrototypeOf(item); - return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in item) && !(Symbol.iterator in item); -} -function deepClone(source) { - if (React.isValidElement(source) || (0, import_react_is.isValidElementType)(source) || !isPlainObject(source)) { - return source; - } - const output = {}; - Object.keys(source).forEach((key) => { - output[key] = deepClone(source[key]); - }); - return output; -} -function deepmerge(target, source, options = { - clone: true -}) { - const output = options.clone ? { - ...target - } : target; - if (isPlainObject(target) && isPlainObject(source)) { - Object.keys(source).forEach((key) => { - if (React.isValidElement(source[key]) || (0, import_react_is.isValidElementType)(source[key])) { - output[key] = source[key]; - } else if (isPlainObject(source[key]) && // Avoid prototype pollution - Object.prototype.hasOwnProperty.call(target, key) && isPlainObject(target[key])) { - output[key] = deepmerge(target[key], source[key], options); - } else if (options.clone) { - output[key] = isPlainObject(source[key]) ? deepClone(source[key]) : source[key]; - } else { - output[key] = source[key]; - } - }); - } - return output; -} - -// node_modules/@mui/system/esm/merge/merge.js -function merge(acc, item) { - if (!item) { - return acc; - } - return deepmerge(acc, item, { - clone: false - // No need to clone deep, it's way faster. - }); -} -var merge_default = merge; - -// node_modules/@mui/system/esm/responsivePropType/responsivePropType.js -var import_prop_types = __toESM(require_prop_types(), 1); -var responsivePropType = true ? import_prop_types.default.oneOfType([import_prop_types.default.number, import_prop_types.default.string, import_prop_types.default.object, import_prop_types.default.array]) : {}; -var responsivePropType_default = responsivePropType; - -// node_modules/@mui/system/esm/breakpoints/breakpoints.js -var import_prop_types2 = __toESM(require_prop_types(), 1); - -// node_modules/@mui/system/esm/cssContainerQueries/cssContainerQueries.js -function sortContainerQueries(theme, css2) { - if (!theme.containerQueries) { - return css2; - } - const sorted = Object.keys(css2).filter((key) => key.startsWith("@container")).sort((a, b) => { - var _a, _b; - const regex = /min-width:\s*([0-9.]+)/; - return +(((_a = a.match(regex)) == null ? void 0 : _a[1]) || 0) - +(((_b = b.match(regex)) == null ? void 0 : _b[1]) || 0); - }); - if (!sorted.length) { - return css2; - } - return sorted.reduce((acc, key) => { - const value = css2[key]; - delete acc[key]; - acc[key] = value; - return acc; - }, { - ...css2 - }); -} -function isCqShorthand(breakpointKeys, value) { - return value === "@" || value.startsWith("@") && (breakpointKeys.some((key) => value.startsWith(`@${key}`)) || !!value.match(/^@\d/)); -} -function getContainerQuery(theme, shorthand) { - const matches = shorthand.match(/^@([^/]+)?\/?(.+)?$/); - if (!matches) { - if (true) { - throw new Error(true ? `MUI: The provided shorthand ${`(${shorthand})`} is invalid. The format should be \`@\` or \`@/\`. -For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.` : formatMuiErrorMessage(18, `(${shorthand})`)); - } - return null; - } - const [, containerQuery, containerName] = matches; - const value = Number.isNaN(+containerQuery) ? containerQuery || 0 : +containerQuery; - return theme.containerQueries(containerName).up(value); -} -function cssContainerQueries(themeInput) { - const toContainerQuery = (mediaQuery, name) => mediaQuery.replace("@media", name ? `@container ${name}` : "@container"); - function attachCq(node3, name) { - node3.up = (...args) => toContainerQuery(themeInput.breakpoints.up(...args), name); - node3.down = (...args) => toContainerQuery(themeInput.breakpoints.down(...args), name); - node3.between = (...args) => toContainerQuery(themeInput.breakpoints.between(...args), name); - node3.only = (...args) => toContainerQuery(themeInput.breakpoints.only(...args), name); - node3.not = (...args) => { - const result = toContainerQuery(themeInput.breakpoints.not(...args), name); - if (result.includes("not all and")) { - return result.replace("not all and ", "").replace("min-width:", "width<").replace("max-width:", "width>").replace("and", "or"); - } - return result; - }; - } - const node2 = {}; - const containerQueries = (name) => { - attachCq(node2, name); - return node2; - }; - attachCq(containerQueries); - return { - ...themeInput, - containerQueries - }; -} - -// node_modules/@mui/system/esm/breakpoints/breakpoints.js -var values = { - xs: 0, - // phone - sm: 600, - // tablet - md: 900, - // small laptop - lg: 1200, - // desktop - xl: 1536 - // large screen -}; -var defaultBreakpoints = { - // Sorted ASC by size. That's important. - // It can't be configured as it's used statically for propTypes. - keys: ["xs", "sm", "md", "lg", "xl"], - up: (key) => `@media (min-width:${values[key]}px)` -}; -var defaultContainerQueries = { - containerQueries: (containerName) => ({ - up: (key) => { - let result = typeof key === "number" ? key : values[key] || key; - if (typeof result === "number") { - result = `${result}px`; - } - return containerName ? `@container ${containerName} (min-width:${result})` : `@container (min-width:${result})`; - } - }) -}; -function handleBreakpoints(props, propValue, styleFromPropValue) { - const theme = props.theme || {}; - if (Array.isArray(propValue)) { - const themeBreakpoints = theme.breakpoints || defaultBreakpoints; - return propValue.reduce((acc, item, index) => { - acc[themeBreakpoints.up(themeBreakpoints.keys[index])] = styleFromPropValue(propValue[index]); - return acc; - }, {}); - } - if (typeof propValue === "object") { - const themeBreakpoints = theme.breakpoints || defaultBreakpoints; - return Object.keys(propValue).reduce((acc, breakpoint) => { - if (isCqShorthand(themeBreakpoints.keys, breakpoint)) { - const containerKey = getContainerQuery(theme.containerQueries ? theme : defaultContainerQueries, breakpoint); - if (containerKey) { - acc[containerKey] = styleFromPropValue(propValue[breakpoint], breakpoint); - } - } else if (Object.keys(themeBreakpoints.values || values).includes(breakpoint)) { - const mediaKey = themeBreakpoints.up(breakpoint); - acc[mediaKey] = styleFromPropValue(propValue[breakpoint], breakpoint); - } else { - const cssKey = breakpoint; - acc[cssKey] = propValue[cssKey]; - } - return acc; - }, {}); - } - const output = styleFromPropValue(propValue); - return output; -} -function createEmptyBreakpointObject(breakpointsInput = {}) { - var _a; - const breakpointsInOrder = (_a = breakpointsInput.keys) == null ? void 0 : _a.reduce((acc, key) => { - const breakpointStyleKey = breakpointsInput.up(key); - acc[breakpointStyleKey] = {}; - return acc; - }, {}); - return breakpointsInOrder || {}; -} -function removeUnusedBreakpoints(breakpointKeys, style4) { - return breakpointKeys.reduce((acc, key) => { - const breakpointOutput = acc[key]; - const isBreakpointUnused = !breakpointOutput || Object.keys(breakpointOutput).length === 0; - if (isBreakpointUnused) { - delete acc[key]; - } - return acc; - }, style4); -} -function mergeBreakpointsInOrder(breakpointsInput, ...styles) { - const emptyBreakpoints = createEmptyBreakpointObject(breakpointsInput); - const mergedOutput = [emptyBreakpoints, ...styles].reduce((prev2, next2) => deepmerge(prev2, next2), {}); - return removeUnusedBreakpoints(Object.keys(emptyBreakpoints), mergedOutput); -} -function computeBreakpointsBase(breakpointValues, themeBreakpoints) { - if (typeof breakpointValues !== "object") { - return {}; - } - const base = {}; - const breakpointsKeys = Object.keys(themeBreakpoints); - if (Array.isArray(breakpointValues)) { - breakpointsKeys.forEach((breakpoint, i) => { - if (i < breakpointValues.length) { - base[breakpoint] = true; - } - }); - } else { - breakpointsKeys.forEach((breakpoint) => { - if (breakpointValues[breakpoint] != null) { - base[breakpoint] = true; - } - }); - } - return base; -} -function resolveBreakpointValues({ - values: breakpointValues, - breakpoints: themeBreakpoints, - base: customBase -}) { - const base = customBase || computeBreakpointsBase(breakpointValues, themeBreakpoints); - const keys = Object.keys(base); - if (keys.length === 0) { - return breakpointValues; - } - let previous; - return keys.reduce((acc, breakpoint, i) => { - if (Array.isArray(breakpointValues)) { - acc[breakpoint] = breakpointValues[i] != null ? breakpointValues[i] : breakpointValues[previous]; - previous = i; - } else if (typeof breakpointValues === "object") { - acc[breakpoint] = breakpointValues[breakpoint] != null ? breakpointValues[breakpoint] : breakpointValues[previous]; - previous = breakpoint; - } else { - acc[breakpoint] = breakpointValues; - } - return acc; - }, {}); -} - -// node_modules/@mui/system/esm/style/style.js -function getPath(obj, path, checkVars = true) { - if (!path || typeof path !== "string") { - return null; - } - if (obj && obj.vars && checkVars) { - const val = `vars.${path}`.split(".").reduce((acc, item) => acc && acc[item] ? acc[item] : null, obj); - if (val != null) { - return val; - } - } - return path.split(".").reduce((acc, item) => { - if (acc && acc[item] != null) { - return acc[item]; - } - return null; - }, obj); -} -function getStyleValue(themeMapping, transform, propValueFinal, userValue = propValueFinal) { - let value; - if (typeof themeMapping === "function") { - value = themeMapping(propValueFinal); - } else if (Array.isArray(themeMapping)) { - value = themeMapping[propValueFinal] || userValue; - } else { - value = getPath(themeMapping, propValueFinal) || userValue; - } - if (transform) { - value = transform(value, userValue, themeMapping); - } - return value; -} -function style(options) { - const { - prop, - cssProperty = options.prop, - themeKey, - transform - } = options; - const fn = (props) => { - if (props[prop] == null) { - return null; - } - const propValue = props[prop]; - const theme = props.theme; - const themeMapping = getPath(theme, themeKey) || {}; - const styleFromPropValue = (propValueFinal) => { - let value = getStyleValue(themeMapping, transform, propValueFinal); - if (propValueFinal === value && typeof propValueFinal === "string") { - value = getStyleValue(themeMapping, transform, `${prop}${propValueFinal === "default" ? "" : capitalize(propValueFinal)}`, propValueFinal); - } - if (cssProperty === false) { - return value; - } - return { - [cssProperty]: value - }; - }; - return handleBreakpoints(props, propValue, styleFromPropValue); - }; - fn.propTypes = true ? { - [prop]: responsivePropType_default - } : {}; - fn.filterProps = [prop]; - return fn; -} -var style_default = style; - -// node_modules/@mui/system/esm/memoize/memoize.js -function memoize(fn) { - const cache = {}; - return (arg2) => { - if (cache[arg2] === void 0) { - cache[arg2] = fn(arg2); - } - return cache[arg2]; - }; -} - -// node_modules/@mui/system/esm/spacing/spacing.js -var properties = { - m: "margin", - p: "padding" -}; -var directions = { - t: "Top", - r: "Right", - b: "Bottom", - l: "Left", - x: ["Left", "Right"], - y: ["Top", "Bottom"] -}; -var aliases = { - marginX: "mx", - marginY: "my", - paddingX: "px", - paddingY: "py" -}; -var getCssProperties = memoize((prop) => { - if (prop.length > 2) { - if (aliases[prop]) { - prop = aliases[prop]; - } else { - return [prop]; - } - } - const [a, b] = prop.split(""); - const property = properties[a]; - const direction = directions[b] || ""; - return Array.isArray(direction) ? direction.map((dir) => property + dir) : [property + direction]; -}); -var marginKeys = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"]; -var paddingKeys = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"]; -var spacingKeys = [...marginKeys, ...paddingKeys]; -function createUnaryUnit(theme, themeKey, defaultValue, propName) { - const themeSpacing = getPath(theme, themeKey, true) ?? defaultValue; - if (typeof themeSpacing === "number" || typeof themeSpacing === "string") { - return (val) => { - if (typeof val === "string") { - return val; - } - if (true) { - if (typeof val !== "number") { - console.error(`MUI: Expected ${propName} argument to be a number or a string, got ${val}.`); - } - } - if (typeof themeSpacing === "string") { - if (themeSpacing.startsWith("var(") && val === 0) { - return 0; - } - if (themeSpacing.startsWith("var(") && val === 1) { - return themeSpacing; - } - return `calc(${val} * ${themeSpacing})`; - } - return themeSpacing * val; - }; - } - if (Array.isArray(themeSpacing)) { - return (val) => { - if (typeof val === "string") { - return val; - } - const abs2 = Math.abs(val); - if (true) { - if (!Number.isInteger(abs2)) { - console.error([`MUI: The \`theme.${themeKey}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${themeKey}\` as a number.`].join("\n")); - } else if (abs2 > themeSpacing.length - 1) { - console.error([`MUI: The value provided (${abs2}) overflows.`, `The supported values are: ${JSON.stringify(themeSpacing)}.`, `${abs2} > ${themeSpacing.length - 1}, you need to add the missing values.`].join("\n")); - } - } - const transformed = themeSpacing[abs2]; - if (val >= 0) { - return transformed; - } - if (typeof transformed === "number") { - return -transformed; - } - if (typeof transformed === "string" && transformed.startsWith("var(")) { - return `calc(-1 * ${transformed})`; - } - return `-${transformed}`; - }; - } - if (typeof themeSpacing === "function") { - return themeSpacing; - } - if (true) { - console.error([`MUI: The \`theme.${themeKey}\` value (${themeSpacing}) is invalid.`, "It should be a number, an array or a function."].join("\n")); - } - return () => void 0; -} -function createUnarySpacing(theme) { - return createUnaryUnit(theme, "spacing", 8, "spacing"); -} -function getValue(transformer, propValue) { - if (typeof propValue === "string" || propValue == null) { - return propValue; - } - return transformer(propValue); -} -function getStyleFromPropValue(cssProperties, transformer) { - return (propValue) => cssProperties.reduce((acc, cssProperty) => { - acc[cssProperty] = getValue(transformer, propValue); - return acc; - }, {}); -} -function resolveCssProperty(props, keys, prop, transformer) { - if (!keys.includes(prop)) { - return null; - } - const cssProperties = getCssProperties(prop); - const styleFromPropValue = getStyleFromPropValue(cssProperties, transformer); - const propValue = props[prop]; - return handleBreakpoints(props, propValue, styleFromPropValue); -} -function style2(props, keys) { - const transformer = createUnarySpacing(props.theme); - return Object.keys(props).map((prop) => resolveCssProperty(props, keys, prop, transformer)).reduce(merge_default, {}); -} -function margin(props) { - return style2(props, marginKeys); -} -margin.propTypes = true ? marginKeys.reduce((obj, key) => { - obj[key] = responsivePropType_default; - return obj; -}, {}) : {}; -margin.filterProps = marginKeys; -function padding(props) { - return style2(props, paddingKeys); -} -padding.propTypes = true ? paddingKeys.reduce((obj, key) => { - obj[key] = responsivePropType_default; - return obj; -}, {}) : {}; -padding.filterProps = paddingKeys; -function spacing(props) { - return style2(props, spacingKeys); -} -spacing.propTypes = true ? spacingKeys.reduce((obj, key) => { - obj[key] = responsivePropType_default; - return obj; -}, {}) : {}; -spacing.filterProps = spacingKeys; -var spacing_default = spacing; - -// node_modules/@mui/system/esm/compose/compose.js -function compose(...styles) { - const handlers = styles.reduce((acc, style4) => { - style4.filterProps.forEach((prop) => { - acc[prop] = style4; - }); - return acc; - }, {}); - const fn = (props) => { - return Object.keys(props).reduce((acc, prop) => { - if (handlers[prop]) { - return merge_default(acc, handlers[prop](props)); - } - return acc; - }, {}); - }; - fn.propTypes = true ? styles.reduce((acc, style4) => Object.assign(acc, style4.propTypes), {}) : {}; - fn.filterProps = styles.reduce((acc, style4) => acc.concat(style4.filterProps), []); - return fn; -} -var compose_default = compose; - -// node_modules/@mui/system/esm/borders/borders.js -function borderTransform(value) { - if (typeof value !== "number") { - return value; - } - return `${value}px solid`; -} -function createBorderStyle(prop, transform) { - return style_default({ - prop, - themeKey: "borders", - transform - }); -} -var border = createBorderStyle("border", borderTransform); -var borderTop = createBorderStyle("borderTop", borderTransform); -var borderRight = createBorderStyle("borderRight", borderTransform); -var borderBottom = createBorderStyle("borderBottom", borderTransform); -var borderLeft = createBorderStyle("borderLeft", borderTransform); -var borderColor = createBorderStyle("borderColor"); -var borderTopColor = createBorderStyle("borderTopColor"); -var borderRightColor = createBorderStyle("borderRightColor"); -var borderBottomColor = createBorderStyle("borderBottomColor"); -var borderLeftColor = createBorderStyle("borderLeftColor"); -var outline = createBorderStyle("outline", borderTransform); -var outlineColor = createBorderStyle("outlineColor"); -var borderRadius = (props) => { - if (props.borderRadius !== void 0 && props.borderRadius !== null) { - const transformer = createUnaryUnit(props.theme, "shape.borderRadius", 4, "borderRadius"); - const styleFromPropValue = (propValue) => ({ - borderRadius: getValue(transformer, propValue) - }); - return handleBreakpoints(props, props.borderRadius, styleFromPropValue); - } - return null; -}; -borderRadius.propTypes = true ? { - borderRadius: responsivePropType_default -} : {}; -borderRadius.filterProps = ["borderRadius"]; -var borders = compose_default(border, borderTop, borderRight, borderBottom, borderLeft, borderColor, borderTopColor, borderRightColor, borderBottomColor, borderLeftColor, borderRadius, outline, outlineColor); -var borders_default = borders; - -// node_modules/@mui/system/esm/cssGrid/cssGrid.js -var gap = (props) => { - if (props.gap !== void 0 && props.gap !== null) { - const transformer = createUnaryUnit(props.theme, "spacing", 8, "gap"); - const styleFromPropValue = (propValue) => ({ - gap: getValue(transformer, propValue) - }); - return handleBreakpoints(props, props.gap, styleFromPropValue); - } - return null; -}; -gap.propTypes = true ? { - gap: responsivePropType_default -} : {}; -gap.filterProps = ["gap"]; -var columnGap = (props) => { - if (props.columnGap !== void 0 && props.columnGap !== null) { - const transformer = createUnaryUnit(props.theme, "spacing", 8, "columnGap"); - const styleFromPropValue = (propValue) => ({ - columnGap: getValue(transformer, propValue) - }); - return handleBreakpoints(props, props.columnGap, styleFromPropValue); - } - return null; -}; -columnGap.propTypes = true ? { - columnGap: responsivePropType_default -} : {}; -columnGap.filterProps = ["columnGap"]; -var rowGap = (props) => { - if (props.rowGap !== void 0 && props.rowGap !== null) { - const transformer = createUnaryUnit(props.theme, "spacing", 8, "rowGap"); - const styleFromPropValue = (propValue) => ({ - rowGap: getValue(transformer, propValue) - }); - return handleBreakpoints(props, props.rowGap, styleFromPropValue); - } - return null; -}; -rowGap.propTypes = true ? { - rowGap: responsivePropType_default -} : {}; -rowGap.filterProps = ["rowGap"]; -var gridColumn = style_default({ - prop: "gridColumn" -}); -var gridRow = style_default({ - prop: "gridRow" -}); -var gridAutoFlow = style_default({ - prop: "gridAutoFlow" -}); -var gridAutoColumns = style_default({ - prop: "gridAutoColumns" -}); -var gridAutoRows = style_default({ - prop: "gridAutoRows" -}); -var gridTemplateColumns = style_default({ - prop: "gridTemplateColumns" -}); -var gridTemplateRows = style_default({ - prop: "gridTemplateRows" -}); -var gridTemplateAreas = style_default({ - prop: "gridTemplateAreas" -}); -var gridArea = style_default({ - prop: "gridArea" -}); -var grid = compose_default(gap, columnGap, rowGap, gridColumn, gridRow, gridAutoFlow, gridAutoColumns, gridAutoRows, gridTemplateColumns, gridTemplateRows, gridTemplateAreas, gridArea); -var cssGrid_default = grid; - -// node_modules/@mui/system/esm/palette/palette.js -function paletteTransform(value, userValue) { - if (userValue === "grey") { - return userValue; - } - return value; -} -var color = style_default({ - prop: "color", - themeKey: "palette", - transform: paletteTransform -}); -var bgcolor = style_default({ - prop: "bgcolor", - cssProperty: "backgroundColor", - themeKey: "palette", - transform: paletteTransform -}); -var backgroundColor = style_default({ - prop: "backgroundColor", - themeKey: "palette", - transform: paletteTransform -}); -var palette = compose_default(color, bgcolor, backgroundColor); -var palette_default = palette; - -// node_modules/@mui/system/esm/sizing/sizing.js -function sizingTransform(value) { - return value <= 1 && value !== 0 ? `${value * 100}%` : value; -} -var width = style_default({ - prop: "width", - transform: sizingTransform -}); -var maxWidth = (props) => { - if (props.maxWidth !== void 0 && props.maxWidth !== null) { - const styleFromPropValue = (propValue) => { - var _a, _b, _c, _d, _e; - const breakpoint = ((_c = (_b = (_a = props.theme) == null ? void 0 : _a.breakpoints) == null ? void 0 : _b.values) == null ? void 0 : _c[propValue]) || values[propValue]; - if (!breakpoint) { - return { - maxWidth: sizingTransform(propValue) - }; - } - if (((_e = (_d = props.theme) == null ? void 0 : _d.breakpoints) == null ? void 0 : _e.unit) !== "px") { - return { - maxWidth: `${breakpoint}${props.theme.breakpoints.unit}` - }; - } - return { - maxWidth: breakpoint - }; - }; - return handleBreakpoints(props, props.maxWidth, styleFromPropValue); - } - return null; -}; -maxWidth.filterProps = ["maxWidth"]; -var minWidth = style_default({ - prop: "minWidth", - transform: sizingTransform -}); -var height = style_default({ - prop: "height", - transform: sizingTransform -}); -var maxHeight = style_default({ - prop: "maxHeight", - transform: sizingTransform -}); -var minHeight = style_default({ - prop: "minHeight", - transform: sizingTransform -}); -var sizeWidth = style_default({ - prop: "size", - cssProperty: "width", - transform: sizingTransform -}); -var sizeHeight = style_default({ - prop: "size", - cssProperty: "height", - transform: sizingTransform -}); -var boxSizing = style_default({ - prop: "boxSizing" -}); -var sizing = compose_default(width, maxWidth, minWidth, height, maxHeight, minHeight, boxSizing); -var sizing_default = sizing; - -// node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js -var defaultSxConfig = { - // borders - border: { - themeKey: "borders", - transform: borderTransform - }, - borderTop: { - themeKey: "borders", - transform: borderTransform - }, - borderRight: { - themeKey: "borders", - transform: borderTransform - }, - borderBottom: { - themeKey: "borders", - transform: borderTransform - }, - borderLeft: { - themeKey: "borders", - transform: borderTransform - }, - borderColor: { - themeKey: "palette" - }, - borderTopColor: { - themeKey: "palette" - }, - borderRightColor: { - themeKey: "palette" - }, - borderBottomColor: { - themeKey: "palette" - }, - borderLeftColor: { - themeKey: "palette" - }, - outline: { - themeKey: "borders", - transform: borderTransform - }, - outlineColor: { - themeKey: "palette" - }, - borderRadius: { - themeKey: "shape.borderRadius", - style: borderRadius - }, - // palette - color: { - themeKey: "palette", - transform: paletteTransform - }, - bgcolor: { - themeKey: "palette", - cssProperty: "backgroundColor", - transform: paletteTransform - }, - backgroundColor: { - themeKey: "palette", - transform: paletteTransform - }, - // spacing - p: { - style: padding - }, - pt: { - style: padding - }, - pr: { - style: padding - }, - pb: { - style: padding - }, - pl: { - style: padding - }, - px: { - style: padding - }, - py: { - style: padding - }, - padding: { - style: padding - }, - paddingTop: { - style: padding - }, - paddingRight: { - style: padding - }, - paddingBottom: { - style: padding - }, - paddingLeft: { - style: padding - }, - paddingX: { - style: padding - }, - paddingY: { - style: padding - }, - paddingInline: { - style: padding - }, - paddingInlineStart: { - style: padding - }, - paddingInlineEnd: { - style: padding - }, - paddingBlock: { - style: padding - }, - paddingBlockStart: { - style: padding - }, - paddingBlockEnd: { - style: padding - }, - m: { - style: margin - }, - mt: { - style: margin - }, - mr: { - style: margin - }, - mb: { - style: margin - }, - ml: { - style: margin - }, - mx: { - style: margin - }, - my: { - style: margin - }, - margin: { - style: margin - }, - marginTop: { - style: margin - }, - marginRight: { - style: margin - }, - marginBottom: { - style: margin - }, - marginLeft: { - style: margin - }, - marginX: { - style: margin - }, - marginY: { - style: margin - }, - marginInline: { - style: margin - }, - marginInlineStart: { - style: margin - }, - marginInlineEnd: { - style: margin - }, - marginBlock: { - style: margin - }, - marginBlockStart: { - style: margin - }, - marginBlockEnd: { - style: margin - }, - // display - displayPrint: { - cssProperty: false, - transform: (value) => ({ - "@media print": { - display: value - } - }) - }, - display: {}, - overflow: {}, - textOverflow: {}, - visibility: {}, - whiteSpace: {}, - // flexbox - flexBasis: {}, - flexDirection: {}, - flexWrap: {}, - justifyContent: {}, - alignItems: {}, - alignContent: {}, - order: {}, - flex: {}, - flexGrow: {}, - flexShrink: {}, - alignSelf: {}, - justifyItems: {}, - justifySelf: {}, - // grid - gap: { - style: gap - }, - rowGap: { - style: rowGap - }, - columnGap: { - style: columnGap - }, - gridColumn: {}, - gridRow: {}, - gridAutoFlow: {}, - gridAutoColumns: {}, - gridAutoRows: {}, - gridTemplateColumns: {}, - gridTemplateRows: {}, - gridTemplateAreas: {}, - gridArea: {}, - // positions - position: {}, - zIndex: { - themeKey: "zIndex" - }, - top: {}, - right: {}, - bottom: {}, - left: {}, - // shadows - boxShadow: { - themeKey: "shadows" - }, - // sizing - width: { - transform: sizingTransform - }, - maxWidth: { - style: maxWidth - }, - minWidth: { - transform: sizingTransform - }, - height: { - transform: sizingTransform - }, - maxHeight: { - transform: sizingTransform - }, - minHeight: { - transform: sizingTransform - }, - boxSizing: {}, - // typography - font: { - themeKey: "font" - }, - fontFamily: { - themeKey: "typography" - }, - fontSize: { - themeKey: "typography" - }, - fontStyle: { - themeKey: "typography" - }, - fontWeight: { - themeKey: "typography" - }, - letterSpacing: {}, - textTransform: {}, - lineHeight: {}, - textAlign: {}, - typography: { - cssProperty: false, - themeKey: "typography" - } -}; -var defaultSxConfig_default = defaultSxConfig; - -// node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js -function objectsHaveSameKeys(...objects) { - const allKeys = objects.reduce((keys, object) => keys.concat(Object.keys(object)), []); - const union = new Set(allKeys); - return objects.every((object) => union.size === Object.keys(object).length); -} -function callIfFn(maybeFn, arg2) { - return typeof maybeFn === "function" ? maybeFn(arg2) : maybeFn; -} -function unstable_createStyleFunctionSx() { - function getThemeValue(prop, val, theme, config) { - const props = { - [prop]: val, - theme - }; - const options = config[prop]; - if (!options) { - return { - [prop]: val - }; - } - const { - cssProperty = prop, - themeKey, - transform, - style: style4 - } = options; - if (val == null) { - return null; - } - if (themeKey === "typography" && val === "inherit") { - return { - [prop]: val - }; - } - const themeMapping = getPath(theme, themeKey) || {}; - if (style4) { - return style4(props); - } - const styleFromPropValue = (propValueFinal) => { - let value = getStyleValue(themeMapping, transform, propValueFinal); - if (propValueFinal === value && typeof propValueFinal === "string") { - value = getStyleValue(themeMapping, transform, `${prop}${propValueFinal === "default" ? "" : capitalize(propValueFinal)}`, propValueFinal); - } - if (cssProperty === false) { - return value; - } - return { - [cssProperty]: value - }; - }; - return handleBreakpoints(props, val, styleFromPropValue); - } - function styleFunctionSx2(props) { - const { - sx, - theme = {} - } = props || {}; - if (!sx) { - return null; - } - const config = theme.unstable_sxConfig ?? defaultSxConfig_default; - function traverse(sxInput) { - let sxObject = sxInput; - if (typeof sxInput === "function") { - sxObject = sxInput(theme); - } else if (typeof sxInput !== "object") { - return sxInput; - } - if (!sxObject) { - return null; - } - const emptyBreakpoints = createEmptyBreakpointObject(theme.breakpoints); - const breakpointsKeys = Object.keys(emptyBreakpoints); - let css2 = emptyBreakpoints; - Object.keys(sxObject).forEach((styleKey) => { - const value = callIfFn(sxObject[styleKey], theme); - if (value !== null && value !== void 0) { - if (typeof value === "object") { - if (config[styleKey]) { - css2 = merge_default(css2, getThemeValue(styleKey, value, theme, config)); - } else { - const breakpointsValues = handleBreakpoints({ - theme - }, value, (x) => ({ - [styleKey]: x - })); - if (objectsHaveSameKeys(breakpointsValues, value)) { - css2[styleKey] = styleFunctionSx2({ - sx: value, - theme - }); - } else { - css2 = merge_default(css2, breakpointsValues); - } - } - } else { - css2 = merge_default(css2, getThemeValue(styleKey, value, theme, config)); - } - } - }); - return sortContainerQueries(theme, removeUnusedBreakpoints(breakpointsKeys, css2)); - } - return Array.isArray(sx) ? sx.map(traverse) : traverse(sx); - } - return styleFunctionSx2; -} -var styleFunctionSx = unstable_createStyleFunctionSx(); -styleFunctionSx.filterProps = ["sx"]; -var styleFunctionSx_default = styleFunctionSx; - -// node_modules/@mui/system/esm/styleFunctionSx/extendSxProp.js -var splitProps = (props) => { - var _a; - const result = { - systemProps: {}, - otherProps: {} - }; - const config = ((_a = props == null ? void 0 : props.theme) == null ? void 0 : _a.unstable_sxConfig) ?? defaultSxConfig_default; - Object.keys(props).forEach((prop) => { - if (config[prop]) { - result.systemProps[prop] = props[prop]; - } else { - result.otherProps[prop] = props[prop]; - } - }); - return result; -}; -function extendSxProp(props) { - const { - sx: inSx, - ...other - } = props; - const { - systemProps, - otherProps - } = splitProps(other); - let finalSx; - if (Array.isArray(inSx)) { - finalSx = [systemProps, ...inSx]; - } else if (typeof inSx === "function") { - finalSx = (...args) => { - const result = inSx(...args); - if (!isPlainObject(result)) { - return systemProps; - } - return { - ...systemProps, - ...result - }; - }; - } else { - finalSx = { - ...systemProps, - ...inSx - }; - } - return { - ...otherProps, - sx: finalSx - }; -} - -// node_modules/@mui/material/esm/styles/useTheme.js -var React37 = __toESM(require_react(), 1); - -// node_modules/@babel/runtime/helpers/esm/extends.js -function _extends() { - return _extends = Object.assign ? Object.assign.bind() : function(n) { - for (var e = 1; e < arguments.length; e++) { - var t = arguments[e]; - for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n[r2] = t[r2]); - } - return n; - }, _extends.apply(null, arguments); -} - -// node_modules/@emotion/react/dist/emotion-element-489459f2.browser.development.esm.js -var React3 = __toESM(require_react()); -var import_react = __toESM(require_react()); - -// node_modules/@emotion/sheet/dist/emotion-sheet.development.esm.js -var isDevelopment = true; -function sheetForTag(tag) { - if (tag.sheet) { - return tag.sheet; - } - for (var i = 0; i < document.styleSheets.length; i++) { - if (document.styleSheets[i].ownerNode === tag) { - return document.styleSheets[i]; - } - } - return void 0; -} -function createStyleElement(options) { - var tag = document.createElement("style"); - tag.setAttribute("data-emotion", options.key); - if (options.nonce !== void 0) { - tag.setAttribute("nonce", options.nonce); - } - tag.appendChild(document.createTextNode("")); - tag.setAttribute("data-s", ""); - return tag; -} -var StyleSheet = function() { - function StyleSheet2(options) { - var _this = this; - this._insertTag = function(tag) { - var before; - if (_this.tags.length === 0) { - if (_this.insertionPoint) { - before = _this.insertionPoint.nextSibling; - } else if (_this.prepend) { - before = _this.container.firstChild; - } else { - before = _this.before; - } - } else { - before = _this.tags[_this.tags.length - 1].nextSibling; - } - _this.container.insertBefore(tag, before); - _this.tags.push(tag); - }; - this.isSpeedy = options.speedy === void 0 ? !isDevelopment : options.speedy; - this.tags = []; - this.ctr = 0; - this.nonce = options.nonce; - this.key = options.key; - this.container = options.container; - this.prepend = options.prepend; - this.insertionPoint = options.insertionPoint; - this.before = null; - } - var _proto = StyleSheet2.prototype; - _proto.hydrate = function hydrate(nodes) { - nodes.forEach(this._insertTag); - }; - _proto.insert = function insert(rule) { - if (this.ctr % (this.isSpeedy ? 65e3 : 1) === 0) { - this._insertTag(createStyleElement(this)); - } - var tag = this.tags[this.tags.length - 1]; - { - var isImportRule3 = rule.charCodeAt(0) === 64 && rule.charCodeAt(1) === 105; - if (isImportRule3 && this._alreadyInsertedOrderInsensitiveRule) { - console.error("You're attempting to insert the following rule:\n" + rule + "\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."); - } - this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !isImportRule3; - } - if (this.isSpeedy) { - var sheet = sheetForTag(tag); - try { - sheet.insertRule(rule, sheet.cssRules.length); - } catch (e) { - if (!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(rule)) { - console.error('There was a problem inserting the following rule: "' + rule + '"', e); - } - } - } else { - tag.appendChild(document.createTextNode(rule)); - } - this.ctr++; - }; - _proto.flush = function flush() { - this.tags.forEach(function(tag) { - var _tag$parentNode; - return (_tag$parentNode = tag.parentNode) == null ? void 0 : _tag$parentNode.removeChild(tag); - }); - this.tags = []; - this.ctr = 0; - { - this._alreadyInsertedOrderInsensitiveRule = false; - } - }; - return StyleSheet2; -}(); - -// node_modules/stylis/src/Enum.js -var MS = "-ms-"; -var MOZ = "-moz-"; -var WEBKIT = "-webkit-"; -var COMMENT = "comm"; -var RULESET = "rule"; -var DECLARATION = "decl"; -var IMPORT = "@import"; -var KEYFRAMES = "@keyframes"; -var LAYER = "@layer"; - -// node_modules/stylis/src/Utility.js -var abs = Math.abs; -var from = String.fromCharCode; -var assign = Object.assign; -function hash(value, length2) { - return charat(value, 0) ^ 45 ? (((length2 << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0; -} -function trim(value) { - return value.trim(); -} -function match(value, pattern) { - return (value = pattern.exec(value)) ? value[0] : value; -} -function replace(value, pattern, replacement) { - return value.replace(pattern, replacement); -} -function indexof(value, search) { - return value.indexOf(search); -} -function charat(value, index) { - return value.charCodeAt(index) | 0; -} -function substr(value, begin, end) { - return value.slice(begin, end); -} -function strlen(value) { - return value.length; -} -function sizeof(value) { - return value.length; -} -function append(value, array) { - return array.push(value), value; -} -function combine(array, callback) { - return array.map(callback).join(""); -} - -// node_modules/stylis/src/Tokenizer.js -var line = 1; -var column = 1; -var length = 0; -var position = 0; -var character = 0; -var characters = ""; -function node(value, root, parent, type, props, children, length2) { - return { value, root, parent, type, props, children, line, column, length: length2, return: "" }; -} -function copy(root, props) { - return assign(node("", null, null, "", null, null, 0), root, { length: -root.length }, props); -} -function char() { - return character; -} -function prev() { - character = position > 0 ? charat(characters, --position) : 0; - if (column--, character === 10) - column = 1, line--; - return character; -} -function next() { - character = position < length ? charat(characters, position++) : 0; - if (column++, character === 10) - column = 1, line++; - return character; -} -function peek() { - return charat(characters, position); -} -function caret() { - return position; -} -function slice(begin, end) { - return substr(characters, begin, end); -} -function token(type) { - switch (type) { - // \0 \t \n \r \s whitespace token - case 0: - case 9: - case 10: - case 13: - case 32: - return 5; - // ! + , / > @ ~ isolate token - case 33: - case 43: - case 44: - case 47: - case 62: - case 64: - case 126: - // ; { } breakpoint token - case 59: - case 123: - case 125: - return 4; - // : accompanied token - case 58: - return 3; - // " ' ( [ opening delimit token - case 34: - case 39: - case 40: - case 91: - return 2; - // ) ] closing delimit token - case 41: - case 93: - return 1; - } - return 0; -} -function alloc(value) { - return line = column = 1, length = strlen(characters = value), position = 0, []; -} -function dealloc(value) { - return characters = "", value; -} -function delimit(type) { - return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type))); -} -function whitespace(type) { - while (character = peek()) - if (character < 33) - next(); - else - break; - return token(type) > 2 || token(character) > 3 ? "" : " "; -} -function escaping(index, count) { - while (--count && next()) - if (character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97) - break; - return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32)); -} -function delimiter(type) { - while (next()) - switch (character) { - // ] ) " ' - case type: - return position; - // " ' - case 34: - case 39: - if (type !== 34 && type !== 39) - delimiter(character); - break; - // ( - case 40: - if (type === 41) - delimiter(type); - break; - // \ - case 92: - next(); - break; - } - return position; -} -function commenter(type, index) { - while (next()) - if (type + character === 47 + 10) - break; - else if (type + character === 42 + 42 && peek() === 47) - break; - return "/*" + slice(index, position - 1) + "*" + from(type === 47 ? type : next()); -} -function identifier(index) { - while (!token(peek())) - next(); - return slice(index, position); -} - -// node_modules/stylis/src/Parser.js -function compile(value) { - return dealloc(parse("", null, null, null, [""], value = alloc(value), 0, [0], value)); -} -function parse(value, root, parent, rule, rules, rulesets, pseudo, points, declarations) { - var index = 0; - var offset = 0; - var length2 = pseudo; - var atrule = 0; - var property = 0; - var previous = 0; - var variable = 1; - var scanning = 1; - var ampersand = 1; - var character2 = 0; - var type = ""; - var props = rules; - var children = rulesets; - var reference = rule; - var characters2 = type; - while (scanning) - switch (previous = character2, character2 = next()) { - // ( - case 40: - if (previous != 108 && charat(characters2, length2 - 1) == 58) { - if (indexof(characters2 += replace(delimit(character2), "&", "&\f"), "&\f") != -1) - ampersand = -1; - break; - } - // " ' [ - case 34: - case 39: - case 91: - characters2 += delimit(character2); - break; - // \t \n \r \s - case 9: - case 10: - case 13: - case 32: - characters2 += whitespace(previous); - break; - // \ - case 92: - characters2 += escaping(caret() - 1, 7); - continue; - // / - case 47: - switch (peek()) { - case 42: - case 47: - append(comment(commenter(next(), caret()), root, parent), declarations); - break; - default: - characters2 += "/"; - } - break; - // { - case 123 * variable: - points[index++] = strlen(characters2) * ampersand; - // } ; \0 - case 125 * variable: - case 59: - case 0: - switch (character2) { - // \0 } - case 0: - case 125: - scanning = 0; - // ; - case 59 + offset: - if (ampersand == -1) characters2 = replace(characters2, /\f/g, ""); - if (property > 0 && strlen(characters2) - length2) - append(property > 32 ? declaration(characters2 + ";", rule, parent, length2 - 1) : declaration(replace(characters2, " ", "") + ";", rule, parent, length2 - 2), declarations); - break; - // @ ; - case 59: - characters2 += ";"; - // { rule/at-rule - default: - append(reference = ruleset(characters2, root, parent, index, offset, rules, points, type, props = [], children = [], length2), rulesets); - if (character2 === 123) - if (offset === 0) - parse(characters2, root, reference, reference, props, rulesets, length2, points, children); - else - switch (atrule === 99 && charat(characters2, 3) === 110 ? 100 : atrule) { - // d l m s - case 100: - case 108: - case 109: - case 115: - parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length2), children), rules, children, length2, points, rule ? props : children); - break; - default: - parse(characters2, reference, reference, reference, [""], children, 0, points, children); - } - } - index = offset = property = 0, variable = ampersand = 1, type = characters2 = "", length2 = pseudo; - break; - // : - case 58: - length2 = 1 + strlen(characters2), property = previous; - default: - if (variable < 1) { - if (character2 == 123) - --variable; - else if (character2 == 125 && variable++ == 0 && prev() == 125) - continue; - } - switch (characters2 += from(character2), character2 * variable) { - // & - case 38: - ampersand = offset > 0 ? 1 : (characters2 += "\f", -1); - break; - // , - case 44: - points[index++] = (strlen(characters2) - 1) * ampersand, ampersand = 1; - break; - // @ - case 64: - if (peek() === 45) - characters2 += delimit(next()); - atrule = peek(), offset = length2 = strlen(type = characters2 += identifier(caret())), character2++; - break; - // - - case 45: - if (previous === 45 && strlen(characters2) == 2) - variable = 0; - } - } - return rulesets; -} -function ruleset(value, root, parent, index, offset, rules, points, type, props, children, length2) { - var post = offset - 1; - var rule = offset === 0 ? rules : [""]; - var size = sizeof(rule); - for (var i = 0, j = 0, k = 0; i < index; ++i) - for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x) - if (z = trim(j > 0 ? rule[x] + " " + y : replace(y, /&\f/g, rule[x]))) - props[k++] = z; - return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length2); -} -function comment(value, root, parent) { - return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0); -} -function declaration(value, root, parent, length2) { - return node(value, root, parent, DECLARATION, substr(value, 0, length2), substr(value, length2 + 1, -1), length2); -} - -// node_modules/stylis/src/Serializer.js -function serialize(children, callback) { - var output = ""; - var length2 = sizeof(children); - for (var i = 0; i < length2; i++) - output += callback(children[i], i, children, callback) || ""; - return output; -} -function stringify(element, index, children, callback) { - switch (element.type) { - case LAYER: - if (element.children.length) break; - case IMPORT: - case DECLARATION: - return element.return = element.return || element.value; - case COMMENT: - return ""; - case KEYFRAMES: - return element.return = element.value + "{" + serialize(element.children, callback) + "}"; - case RULESET: - element.value = element.props.join(","); - } - return strlen(children = serialize(element.children, callback)) ? element.return = element.value + "{" + children + "}" : ""; -} - -// node_modules/stylis/src/Middleware.js -function middleware(collection) { - var length2 = sizeof(collection); - return function(element, index, children, callback) { - var output = ""; - for (var i = 0; i < length2; i++) - output += collection[i](element, index, children, callback) || ""; - return output; - }; -} - -// node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js -var weakMemoize = function weakMemoize2(func) { - var cache = /* @__PURE__ */ new WeakMap(); - return function(arg2) { - if (cache.has(arg2)) { - return cache.get(arg2); - } - var ret = func(arg2); - cache.set(arg2, ret); - return ret; - }; -}; - -// node_modules/@emotion/memoize/dist/emotion-memoize.esm.js -function memoize2(fn) { - var cache = /* @__PURE__ */ Object.create(null); - return function(arg2) { - if (cache[arg2] === void 0) cache[arg2] = fn(arg2); - return cache[arg2]; - }; -} - -// node_modules/@emotion/cache/dist/emotion-cache.browser.development.esm.js -var identifierWithPointTracking = function identifierWithPointTracking2(begin, points, index) { - var previous = 0; - var character2 = 0; - while (true) { - previous = character2; - character2 = peek(); - if (previous === 38 && character2 === 12) { - points[index] = 1; - } - if (token(character2)) { - break; - } - next(); - } - return slice(begin, position); -}; -var toRules = function toRules2(parsed, points) { - var index = -1; - var character2 = 44; - do { - switch (token(character2)) { - case 0: - if (character2 === 38 && peek() === 12) { - points[index] = 1; - } - parsed[index] += identifierWithPointTracking(position - 1, points, index); - break; - case 2: - parsed[index] += delimit(character2); - break; - case 4: - if (character2 === 44) { - parsed[++index] = peek() === 58 ? "&\f" : ""; - points[index] = parsed[index].length; - break; - } - // fallthrough - default: - parsed[index] += from(character2); - } - } while (character2 = next()); - return parsed; -}; -var getRules = function getRules2(value, points) { - return dealloc(toRules(alloc(value), points)); -}; -var fixedElements = /* @__PURE__ */ new WeakMap(); -var compat = function compat2(element) { - if (element.type !== "rule" || !element.parent || // positive .length indicates that this rule contains pseudo - // negative .length indicates that this rule has been already prefixed - element.length < 1) { - return; - } - var value = element.value; - var parent = element.parent; - var isImplicitRule = element.column === parent.column && element.line === parent.line; - while (parent.type !== "rule") { - parent = parent.parent; - if (!parent) return; - } - if (element.props.length === 1 && value.charCodeAt(0) !== 58 && !fixedElements.get(parent)) { - return; - } - if (isImplicitRule) { - return; - } - fixedElements.set(element, true); - var points = []; - var rules = getRules(value, points); - var parentRules = parent.props; - for (var i = 0, k = 0; i < rules.length; i++) { - for (var j = 0; j < parentRules.length; j++, k++) { - element.props[k] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i]; - } - } -}; -var removeLabel = function removeLabel2(element) { - if (element.type === "decl") { - var value = element.value; - if ( - // charcode for l - value.charCodeAt(0) === 108 && // charcode for b - value.charCodeAt(2) === 98 - ) { - element["return"] = ""; - element.value = ""; - } - } -}; -var ignoreFlag = "emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason"; -var isIgnoringComment = function isIgnoringComment2(element) { - return element.type === "comm" && element.children.indexOf(ignoreFlag) > -1; -}; -var createUnsafeSelectorsAlarm = function createUnsafeSelectorsAlarm2(cache) { - return function(element, index, children) { - if (element.type !== "rule" || cache.compat) return; - var unsafePseudoClasses = element.value.match(/(:first|:nth|:nth-last)-child/g); - if (unsafePseudoClasses) { - var isNested = !!element.parent; - var commentContainer = isNested ? element.parent.children : ( - // global rule at the root level - children - ); - for (var i = commentContainer.length - 1; i >= 0; i--) { - var node2 = commentContainer[i]; - if (node2.line < element.line) { - break; - } - if (node2.column < element.column) { - if (isIgnoringComment(node2)) { - return; - } - break; - } - } - unsafePseudoClasses.forEach(function(unsafePseudoClass) { - console.error('The pseudo class "' + unsafePseudoClass + '" is potentially unsafe when doing server-side rendering. Try changing it to "' + unsafePseudoClass.split("-child")[0] + '-of-type".'); - }); - } - }; -}; -var isImportRule = function isImportRule2(element) { - return element.type.charCodeAt(1) === 105 && element.type.charCodeAt(0) === 64; -}; -var isPrependedWithRegularRules = function isPrependedWithRegularRules2(index, children) { - for (var i = index - 1; i >= 0; i--) { - if (!isImportRule(children[i])) { - return true; - } - } - return false; -}; -var nullifyElement = function nullifyElement2(element) { - element.type = ""; - element.value = ""; - element["return"] = ""; - element.children = ""; - element.props = ""; -}; -var incorrectImportAlarm = function incorrectImportAlarm2(element, index, children) { - if (!isImportRule(element)) { - return; - } - if (element.parent) { - console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."); - nullifyElement(element); - } else if (isPrependedWithRegularRules(index, children)) { - console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."); - nullifyElement(element); - } -}; -function prefix2(value, length2) { - switch (hash(value, length2)) { - // color-adjust - case 5103: - return WEBKIT + "print-" + value + value; - // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function) - case 5737: - case 4201: - case 3177: - case 3433: - case 1641: - case 4457: - case 2921: - // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break - case 5572: - case 6356: - case 5844: - case 3191: - case 6645: - case 3005: - // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite, - case 6391: - case 5879: - case 5623: - case 6135: - case 4599: - case 4855: - // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width) - case 4215: - case 6389: - case 5109: - case 5365: - case 5621: - case 3829: - return WEBKIT + value + value; - // appearance, user-select, transform, hyphens, text-size-adjust - case 5349: - case 4246: - case 4810: - case 6968: - case 2756: - return WEBKIT + value + MOZ + value + MS + value + value; - // flex, flex-direction - case 6828: - case 4268: - return WEBKIT + value + MS + value + value; - // order - case 6165: - return WEBKIT + value + MS + "flex-" + value + value; - // align-items - case 5187: - return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + "box-$1$2" + MS + "flex-$1$2") + value; - // align-self - case 5443: - return WEBKIT + value + MS + "flex-item-" + replace(value, /flex-|-self/, "") + value; - // align-content - case 4675: - return WEBKIT + value + MS + "flex-line-pack" + replace(value, /align-content|flex-|-self/, "") + value; - // flex-shrink - case 5548: - return WEBKIT + value + MS + replace(value, "shrink", "negative") + value; - // flex-basis - case 5292: - return WEBKIT + value + MS + replace(value, "basis", "preferred-size") + value; - // flex-grow - case 6060: - return WEBKIT + "box-" + replace(value, "-grow", "") + WEBKIT + value + MS + replace(value, "grow", "positive") + value; - // transition - case 4554: - return WEBKIT + replace(value, /([^-])(transform)/g, "$1" + WEBKIT + "$2") + value; - // cursor - case 6187: - return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + "$1"), /(image-set)/, WEBKIT + "$1"), value, "") + value; - // background, background-image - case 5495: - case 3959: - return replace(value, /(image-set\([^]*)/, WEBKIT + "$1$`$1"); - // justify-content - case 4968: - return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + "box-pack:$3" + MS + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + WEBKIT + value + value; - // (margin|padding)-inline-(start|end) - case 4095: - case 3583: - case 4068: - case 2532: - return replace(value, /(.+)-inline(.+)/, WEBKIT + "$1$2") + value; - // (min|max)?(width|height|inline-size|block-size) - case 8116: - case 7059: - case 5753: - case 5535: - case 5445: - case 5701: - case 4933: - case 4677: - case 5533: - case 5789: - case 5021: - case 4765: - if (strlen(value) - 1 - length2 > 6) switch (charat(value, length2 + 1)) { - // (m)ax-content, (m)in-content - case 109: - if (charat(value, length2 + 4) !== 45) break; - // (f)ill-available, (f)it-content - case 102: - return replace(value, /(.+:)(.+)-([^]+)/, "$1" + WEBKIT + "$2-$3$1" + MOZ + (charat(value, length2 + 3) == 108 ? "$3" : "$2-$3")) + value; - // (s)tretch - case 115: - return ~indexof(value, "stretch") ? prefix2(replace(value, "stretch", "fill-available"), length2) + value : value; - } - break; - // position: sticky - case 4949: - if (charat(value, length2 + 1) !== 115) break; - // display: (flex|inline-flex) - case 6444: - switch (charat(value, strlen(value) - 3 - (~indexof(value, "!important") && 10))) { - // stic(k)y - case 107: - return replace(value, ":", ":" + WEBKIT) + value; - // (inline-)?fl(e)x - case 101: - return replace(value, /(.+:)([^;!]+)(;|!.+)?/, "$1" + WEBKIT + (charat(value, 14) === 45 ? "inline-" : "") + "box$3$1" + WEBKIT + "$2$3$1" + MS + "$2box$3") + value; - } - break; - // writing-mode - case 5936: - switch (charat(value, length2 + 11)) { - // vertical-l(r) - case 114: - return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb") + value; - // vertical-r(l) - case 108: - return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb-rl") + value; - // horizontal(-)tb - case 45: - return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "lr") + value; - } - return WEBKIT + value + MS + value + value; - } - return value; -} -var prefixer = function prefixer2(element, index, children, callback) { - if (element.length > -1) { - if (!element["return"]) switch (element.type) { - case DECLARATION: - element["return"] = prefix2(element.value, element.length); - break; - case KEYFRAMES: - return serialize([copy(element, { - value: replace(element.value, "@", "@" + WEBKIT) - })], callback); - case RULESET: - if (element.length) return combine(element.props, function(value) { - switch (match(value, /(::plac\w+|:read-\w+)/)) { - // :read-(only|write) - case ":read-only": - case ":read-write": - return serialize([copy(element, { - props: [replace(value, /:(read-\w+)/, ":" + MOZ + "$1")] - })], callback); - // :placeholder - case "::placeholder": - return serialize([copy(element, { - props: [replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1")] - }), copy(element, { - props: [replace(value, /:(plac\w+)/, ":" + MOZ + "$1")] - }), copy(element, { - props: [replace(value, /:(plac\w+)/, MS + "input-$1")] - })], callback); - } - return ""; - }); - } - } -}; -var defaultStylisPlugins = [prefixer]; -var getSourceMap; -{ - sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g; - getSourceMap = function getSourceMap2(styles) { - var matches = styles.match(sourceMapPattern); - if (!matches) return; - return matches[matches.length - 1]; - }; -} -var sourceMapPattern; -var createCache = function createCache2(options) { - var key = options.key; - if (!key) { - throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements."); - } - if (key === "css") { - var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); - Array.prototype.forEach.call(ssrStyles, function(node2) { - var dataEmotionAttribute = node2.getAttribute("data-emotion"); - if (dataEmotionAttribute.indexOf(" ") === -1) { - return; - } - document.head.appendChild(node2); - node2.setAttribute("data-s", ""); - }); - } - var stylisPlugins = options.stylisPlugins || defaultStylisPlugins; - { - if (/[^a-z-]/.test(key)) { - throw new Error('Emotion key must only contain lower case alphabetical characters and - but "' + key + '" was passed'); - } - } - var inserted = {}; - var container; - var nodesToHydrate = []; - { - container = options.container || document.head; - Array.prototype.forEach.call( - // this means we will ignore elements which don't have a space in them which - // means that the style elements we're looking at are only Emotion 11 server-rendered style elements - document.querySelectorAll('style[data-emotion^="' + key + ' "]'), - function(node2) { - var attrib = node2.getAttribute("data-emotion").split(" "); - for (var i = 1; i < attrib.length; i++) { - inserted[attrib[i]] = true; - } - nodesToHydrate.push(node2); - } - ); - } - var _insert; - var omnipresentPlugins = [compat, removeLabel]; - { - omnipresentPlugins.push(createUnsafeSelectorsAlarm({ - get compat() { - return cache.compat; - } - }), incorrectImportAlarm); - } - { - var currentSheet; - var finalizingPlugins = [stringify, function(element) { - if (!element.root) { - if (element["return"]) { - currentSheet.insert(element["return"]); - } else if (element.value && element.type !== COMMENT) { - currentSheet.insert(element.value + "{}"); - } - } - }]; - var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins)); - var stylis = function stylis2(styles) { - return serialize(compile(styles), serializer); - }; - _insert = function insert(selector, serialized, sheet, shouldCache) { - currentSheet = sheet; - if (getSourceMap) { - var sourceMap = getSourceMap(serialized.styles); - if (sourceMap) { - currentSheet = { - insert: function insert2(rule) { - sheet.insert(rule + sourceMap); - } - }; - } - } - stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles); - if (shouldCache) { - cache.inserted[serialized.name] = true; - } - }; - } - var cache = { - key, - sheet: new StyleSheet({ - key, - container, - nonce: options.nonce, - speedy: options.speedy, - prepend: options.prepend, - insertionPoint: options.insertionPoint - }), - nonce: options.nonce, - inserted, - registered: {}, - insert: _insert - }; - cache.sheet.hydrate(nodesToHydrate); - return cache; -}; - -// node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.esm.js -var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs()); - -// node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js -var isBrowser = true; -function getRegisteredStyles(registered, registeredStyles, classNames) { - var rawClassName = ""; - classNames.split(" ").forEach(function(className) { - if (registered[className] !== void 0) { - registeredStyles.push(registered[className] + ";"); - } else if (className) { - rawClassName += className + " "; - } - }); - return rawClassName; -} -var registerStyles = function registerStyles2(cache, serialized, isStringTag2) { - var className = cache.key + "-" + serialized.name; - if ( - // we only need to add the styles to the registered cache if the - // class name could be used further down - // the tree but if it's a string tag, we know it won't - // so we don't have to add it to registered cache. - // this improves memory usage since we can avoid storing the whole style string - (isStringTag2 === false || // we need to always store it if we're in compat mode and - // in node since emotion-server relies on whether a style is in - // the registered cache to know whether a style is global or not - // also, note that this check will be dead code eliminated in the browser - isBrowser === false) && cache.registered[className] === void 0 - ) { - cache.registered[className] = serialized.styles; - } -}; -var insertStyles = function insertStyles2(cache, serialized, isStringTag2) { - registerStyles(cache, serialized, isStringTag2); - var className = cache.key + "-" + serialized.name; - if (cache.inserted[serialized.name] === void 0) { - var current = serialized; - do { - cache.insert(serialized === current ? "." + className : "", current, cache.sheet, true); - current = current.next; - } while (current !== void 0); - } -}; - -// node_modules/@emotion/hash/dist/emotion-hash.esm.js -function murmur2(str) { - var h = 0; - var k, i = 0, len = str.length; - for (; len >= 4; ++i, len -= 4) { - k = str.charCodeAt(i) & 255 | (str.charCodeAt(++i) & 255) << 8 | (str.charCodeAt(++i) & 255) << 16 | (str.charCodeAt(++i) & 255) << 24; - k = /* Math.imul(k, m): */ - (k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16); - k ^= /* k >>> r: */ - k >>> 24; - h = /* Math.imul(k, m): */ - (k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */ - (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16); - } - switch (len) { - case 3: - h ^= (str.charCodeAt(i + 2) & 255) << 16; - case 2: - h ^= (str.charCodeAt(i + 1) & 255) << 8; - case 1: - h ^= str.charCodeAt(i) & 255; - h = /* Math.imul(h, m): */ - (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16); - } - h ^= h >>> 13; - h = /* Math.imul(h, m): */ - (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16); - return ((h ^ h >>> 15) >>> 0).toString(36); -} - -// node_modules/@emotion/unitless/dist/emotion-unitless.esm.js -var unitlessKeys = { - 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, - scale: 1, - tabSize: 1, - widows: 1, - zIndex: 1, - zoom: 1, - WebkitLineClamp: 1, - // SVG-related properties - fillOpacity: 1, - floodOpacity: 1, - stopOpacity: 1, - strokeDasharray: 1, - strokeDashoffset: 1, - strokeMiterlimit: 1, - strokeOpacity: 1, - strokeWidth: 1 -}; - -// node_modules/@emotion/serialize/dist/emotion-serialize.development.esm.js -var isDevelopment2 = true; -var ILLEGAL_ESCAPE_SEQUENCE_ERROR = `You have illegal escape sequence in your template literal, most likely inside content's property value. -Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". -You can read more about this here: -https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`; -var UNDEFINED_AS_OBJECT_KEY_ERROR = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key)."; -var hyphenateRegex = /[A-Z]|^ms/g; -var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g; -var isCustomProperty = function isCustomProperty2(property) { - return property.charCodeAt(1) === 45; -}; -var isProcessableValue = function isProcessableValue2(value) { - return value != null && typeof value !== "boolean"; -}; -var processStyleName = memoize2(function(styleName) { - return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, "-$&").toLowerCase(); -}); -var processStyleValue = function processStyleValue2(key, value) { - switch (key) { - case "animation": - case "animationName": { - if (typeof value === "string") { - return value.replace(animationRegex, function(match2, p1, p2) { - cursor = { - name: p1, - styles: p2, - next: cursor - }; - return p1; - }); - } - } - } - if (unitlessKeys[key] !== 1 && !isCustomProperty(key) && typeof value === "number" && value !== 0) { - return value + "px"; - } - return value; -}; -{ - contentValuePattern = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/; - contentValues = ["normal", "none", "initial", "inherit", "unset"]; - oldProcessStyleValue = processStyleValue; - msPattern = /^-ms-/; - hyphenPattern = /-(.)/g; - hyphenatedCache = {}; - processStyleValue = function processStyleValue3(key, value) { - if (key === "content") { - if (typeof value !== "string" || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '"' && value.charAt(0) !== "'")) { - throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value + "\"'`"); - } - } - var processed = oldProcessStyleValue(key, value); - if (processed !== "" && !isCustomProperty(key) && key.indexOf("-") !== -1 && hyphenatedCache[key] === void 0) { - hyphenatedCache[key] = true; - console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + key.replace(msPattern, "ms-").replace(hyphenPattern, function(str, _char) { - return _char.toUpperCase(); - }) + "?"); - } - return processed; - }; -} -var contentValuePattern; -var contentValues; -var oldProcessStyleValue; -var msPattern; -var hyphenPattern; -var hyphenatedCache; -var noComponentSelectorMessage = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform."; -function handleInterpolation(mergedProps, registered, interpolation) { - if (interpolation == null) { - return ""; - } - var componentSelector = interpolation; - if (componentSelector.__emotion_styles !== void 0) { - if (String(componentSelector) === "NO_COMPONENT_SELECTOR") { - throw new Error(noComponentSelectorMessage); - } - return componentSelector; - } - switch (typeof interpolation) { - case "boolean": { - return ""; - } - case "object": { - var keyframes2 = interpolation; - if (keyframes2.anim === 1) { - cursor = { - name: keyframes2.name, - styles: keyframes2.styles, - next: cursor - }; - return keyframes2.name; - } - var serializedStyles = interpolation; - if (serializedStyles.styles !== void 0) { - var next2 = serializedStyles.next; - if (next2 !== void 0) { - while (next2 !== void 0) { - cursor = { - name: next2.name, - styles: next2.styles, - next: cursor - }; - next2 = next2.next; - } - } - var styles = serializedStyles.styles + ";"; - return styles; - } - return createStringFromObject(mergedProps, registered, interpolation); - } - case "function": { - if (mergedProps !== void 0) { - var previousCursor = cursor; - var result = interpolation(mergedProps); - cursor = previousCursor; - return handleInterpolation(mergedProps, registered, result); - } else { - console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`"); - } - break; - } - case "string": - { - var matched = []; - var replaced = interpolation.replace(animationRegex, function(_match, _p1, p2) { - var fakeVarName = "animation" + matched.length; - matched.push("const " + fakeVarName + " = keyframes`" + p2.replace(/^@keyframes animation-\w+/, "") + "`"); - return "${" + fakeVarName + "}"; - }); - if (matched.length) { - console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n" + [].concat(matched, ["`" + replaced + "`"]).join("\n") + "\n\nYou should wrap it with `css` like this:\n\ncss`" + replaced + "`"); - } - } - break; - } - var asString = interpolation; - if (registered == null) { - return asString; - } - var cached = registered[asString]; - return cached !== void 0 ? cached : asString; -} -function createStringFromObject(mergedProps, registered, obj) { - var string = ""; - if (Array.isArray(obj)) { - for (var i = 0; i < obj.length; i++) { - string += handleInterpolation(mergedProps, registered, obj[i]) + ";"; - } - } else { - for (var key in obj) { - var value = obj[key]; - if (typeof value !== "object") { - var asString = value; - if (registered != null && registered[asString] !== void 0) { - string += key + "{" + registered[asString] + "}"; - } else if (isProcessableValue(asString)) { - string += processStyleName(key) + ":" + processStyleValue(key, asString) + ";"; - } - } else { - if (key === "NO_COMPONENT_SELECTOR" && isDevelopment2) { - throw new Error(noComponentSelectorMessage); - } - if (Array.isArray(value) && typeof value[0] === "string" && (registered == null || registered[value[0]] === void 0)) { - for (var _i = 0; _i < value.length; _i++) { - if (isProcessableValue(value[_i])) { - string += processStyleName(key) + ":" + processStyleValue(key, value[_i]) + ";"; - } - } - } else { - var interpolated = handleInterpolation(mergedProps, registered, value); - switch (key) { - case "animation": - case "animationName": { - string += processStyleName(key) + ":" + interpolated + ";"; - break; - } - default: { - if (key === "undefined") { - console.error(UNDEFINED_AS_OBJECT_KEY_ERROR); - } - string += key + "{" + interpolated + "}"; - } - } - } - } - } - } - return string; -} -var labelPattern = /label:\s*([^\s;{]+)\s*(;|$)/g; -var cursor; -function serializeStyles(args, registered, mergedProps) { - if (args.length === 1 && typeof args[0] === "object" && args[0] !== null && args[0].styles !== void 0) { - return args[0]; - } - var stringMode = true; - var styles = ""; - cursor = void 0; - var strings = args[0]; - if (strings == null || strings.raw === void 0) { - stringMode = false; - styles += handleInterpolation(mergedProps, registered, strings); - } else { - var asTemplateStringsArr = strings; - if (asTemplateStringsArr[0] === void 0) { - console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR); - } - styles += asTemplateStringsArr[0]; - } - for (var i = 1; i < args.length; i++) { - styles += handleInterpolation(mergedProps, registered, args[i]); - if (stringMode) { - var templateStringsArr = strings; - if (templateStringsArr[i] === void 0) { - console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR); - } - styles += templateStringsArr[i]; - } - } - labelPattern.lastIndex = 0; - var identifierName = ""; - var match2; - while ((match2 = labelPattern.exec(styles)) !== null) { - identifierName += "-" + match2[1]; - } - var name = murmur2(styles) + identifierName; - { - var devStyles = { - name, - styles, - next: cursor, - toString: function toString() { - return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; - } - }; - return devStyles; - } -} - -// node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js -var React2 = __toESM(require_react()); -var syncFallback = function syncFallback2(create) { - return create(); -}; -var useInsertionEffect2 = React2["useInsertionEffect"] ? React2["useInsertionEffect"] : false; -var useInsertionEffectAlwaysWithSyncFallback = useInsertionEffect2 || syncFallback; -var useInsertionEffectWithLayoutFallback = useInsertionEffect2 || React2.useLayoutEffect; - -// node_modules/@emotion/react/dist/emotion-element-489459f2.browser.development.esm.js -var EmotionCacheContext = React3.createContext( - // we're doing this to avoid preconstruct's dead code elimination in this one case - // because this module is primarily intended for the browser and node - // but it's also required in react native and similar environments sometimes - // and we could have a special build just for that - // but this is much easier and the native packages - // might use a different theme context in the future anyway - typeof HTMLElement !== "undefined" ? createCache({ - key: "css" - }) : null -); -{ - EmotionCacheContext.displayName = "EmotionCacheContext"; -} -var CacheProvider = EmotionCacheContext.Provider; -var withEmotionCache = function withEmotionCache2(func) { - return (0, import_react.forwardRef)(function(props, ref) { - var cache = (0, import_react.useContext)(EmotionCacheContext); - return func(props, cache, ref); - }); -}; -var ThemeContext = React3.createContext({}); -{ - ThemeContext.displayName = "EmotionThemeContext"; -} -var getTheme = function getTheme2(outerTheme, theme) { - if (typeof theme === "function") { - var mergedTheme = theme(outerTheme); - if (mergedTheme == null || typeof mergedTheme !== "object" || Array.isArray(mergedTheme)) { - throw new Error("[ThemeProvider] Please return an object from your theme function, i.e. theme={() => ({})}!"); - } - return mergedTheme; - } - if (theme == null || typeof theme !== "object" || Array.isArray(theme)) { - throw new Error("[ThemeProvider] Please make your theme prop a plain object"); - } - return _extends({}, outerTheme, theme); -}; -var createCacheWithTheme = weakMemoize(function(outerTheme) { - return weakMemoize(function(theme) { - return getTheme(outerTheme, theme); - }); -}); -var hasOwn = {}.hasOwnProperty; -var getLastPart = function getLastPart2(functionName) { - var parts = functionName.split("."); - return parts[parts.length - 1]; -}; -var getFunctionNameFromStackTraceLine = function getFunctionNameFromStackTraceLine2(line2) { - var match2 = /^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(line2); - if (match2) return getLastPart(match2[1]); - match2 = /^([A-Za-z0-9$.]+)@/.exec(line2); - if (match2) return getLastPart(match2[1]); - return void 0; -}; -var internalReactFunctionNames = /* @__PURE__ */ new Set(["renderWithHooks", "processChild", "finishClassComponent", "renderToString"]); -var sanitizeIdentifier = function sanitizeIdentifier2(identifier2) { - return identifier2.replace(/\$/g, "-"); -}; -var getLabelFromStackTrace = function getLabelFromStackTrace2(stackTrace) { - if (!stackTrace) return void 0; - var lines = stackTrace.split("\n"); - for (var i = 0; i < lines.length; i++) { - var functionName = getFunctionNameFromStackTraceLine(lines[i]); - if (!functionName) continue; - if (internalReactFunctionNames.has(functionName)) break; - if (/^[A-Z]/.test(functionName)) return sanitizeIdentifier(functionName); - } - return void 0; -}; -var typePropName = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__"; -var labelPropName = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__"; -var createEmotionProps = function createEmotionProps2(type, props) { - if (typeof props.css === "string" && // check if there is a css declaration - props.css.indexOf(":") !== -1) { - throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`" + props.css + "`"); - } - var newProps = {}; - for (var _key in props) { - if (hasOwn.call(props, _key)) { - newProps[_key] = props[_key]; - } - } - newProps[typePropName] = type; - if (typeof globalThis !== "undefined" && !!globalThis.EMOTION_RUNTIME_AUTO_LABEL && !!props.css && (typeof props.css !== "object" || !("name" in props.css) || typeof props.css.name !== "string" || props.css.name.indexOf("-") === -1)) { - var label = getLabelFromStackTrace(new Error().stack); - if (label) newProps[labelPropName] = label; - } - return newProps; -}; -var Insertion = function Insertion2(_ref) { - var cache = _ref.cache, serialized = _ref.serialized, isStringTag2 = _ref.isStringTag; - registerStyles(cache, serialized, isStringTag2); - useInsertionEffectAlwaysWithSyncFallback(function() { - return insertStyles(cache, serialized, isStringTag2); - }); - return null; -}; -var Emotion = withEmotionCache(function(props, cache, ref) { - var cssProp = props.css; - if (typeof cssProp === "string" && cache.registered[cssProp] !== void 0) { - cssProp = cache.registered[cssProp]; - } - var WrappedComponent = props[typePropName]; - var registeredStyles = [cssProp]; - var className = ""; - if (typeof props.className === "string") { - className = getRegisteredStyles(cache.registered, registeredStyles, props.className); - } else if (props.className != null) { - className = props.className + " "; - } - var serialized = serializeStyles(registeredStyles, void 0, React3.useContext(ThemeContext)); - if (serialized.name.indexOf("-") === -1) { - var labelFromStack = props[labelPropName]; - if (labelFromStack) { - serialized = serializeStyles([serialized, "label:" + labelFromStack + ";"]); - } - } - className += cache.key + "-" + serialized.name; - var newProps = {}; - for (var _key2 in props) { - if (hasOwn.call(props, _key2) && _key2 !== "css" && _key2 !== typePropName && _key2 !== labelPropName) { - newProps[_key2] = props[_key2]; - } - } - newProps.className = className; - if (ref) { - newProps.ref = ref; - } - return React3.createElement(React3.Fragment, null, React3.createElement(Insertion, { - cache, - serialized, - isStringTag: typeof WrappedComponent === "string" - }), React3.createElement(WrappedComponent, newProps)); -}); -{ - Emotion.displayName = "EmotionCssPropInternal"; -} -var Emotion$1 = Emotion; - -// node_modules/@emotion/react/dist/emotion-react.browser.development.esm.js -var React4 = __toESM(require_react()); -var import_hoist_non_react_statics2 = __toESM(require_hoist_non_react_statics_cjs()); -var isDevelopment3 = true; -var pkg = { - name: "@emotion/react", - version: "11.14.0", - main: "dist/emotion-react.cjs.js", - module: "dist/emotion-react.esm.js", - types: "dist/emotion-react.cjs.d.ts", - exports: { - ".": { - types: { - "import": "./dist/emotion-react.cjs.mjs", - "default": "./dist/emotion-react.cjs.js" - }, - development: { - "edge-light": { - module: "./dist/emotion-react.development.edge-light.esm.js", - "import": "./dist/emotion-react.development.edge-light.cjs.mjs", - "default": "./dist/emotion-react.development.edge-light.cjs.js" - }, - worker: { - module: "./dist/emotion-react.development.edge-light.esm.js", - "import": "./dist/emotion-react.development.edge-light.cjs.mjs", - "default": "./dist/emotion-react.development.edge-light.cjs.js" - }, - workerd: { - module: "./dist/emotion-react.development.edge-light.esm.js", - "import": "./dist/emotion-react.development.edge-light.cjs.mjs", - "default": "./dist/emotion-react.development.edge-light.cjs.js" - }, - browser: { - module: "./dist/emotion-react.browser.development.esm.js", - "import": "./dist/emotion-react.browser.development.cjs.mjs", - "default": "./dist/emotion-react.browser.development.cjs.js" - }, - module: "./dist/emotion-react.development.esm.js", - "import": "./dist/emotion-react.development.cjs.mjs", - "default": "./dist/emotion-react.development.cjs.js" - }, - "edge-light": { - module: "./dist/emotion-react.edge-light.esm.js", - "import": "./dist/emotion-react.edge-light.cjs.mjs", - "default": "./dist/emotion-react.edge-light.cjs.js" - }, - worker: { - module: "./dist/emotion-react.edge-light.esm.js", - "import": "./dist/emotion-react.edge-light.cjs.mjs", - "default": "./dist/emotion-react.edge-light.cjs.js" - }, - workerd: { - module: "./dist/emotion-react.edge-light.esm.js", - "import": "./dist/emotion-react.edge-light.cjs.mjs", - "default": "./dist/emotion-react.edge-light.cjs.js" - }, - browser: { - module: "./dist/emotion-react.browser.esm.js", - "import": "./dist/emotion-react.browser.cjs.mjs", - "default": "./dist/emotion-react.browser.cjs.js" - }, - module: "./dist/emotion-react.esm.js", - "import": "./dist/emotion-react.cjs.mjs", - "default": "./dist/emotion-react.cjs.js" - }, - "./jsx-runtime": { - types: { - "import": "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs", - "default": "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js" - }, - development: { - "edge-light": { - module: "./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.esm.js", - "import": "./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.mjs", - "default": "./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.js" - }, - worker: { - module: "./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.esm.js", - "import": "./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.mjs", - "default": "./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.js" - }, - workerd: { - module: "./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.esm.js", - "import": "./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.mjs", - "default": "./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.js" - }, - browser: { - module: "./jsx-runtime/dist/emotion-react-jsx-runtime.browser.development.esm.js", - "import": "./jsx-runtime/dist/emotion-react-jsx-runtime.browser.development.cjs.mjs", - "default": "./jsx-runtime/dist/emotion-react-jsx-runtime.browser.development.cjs.js" - }, - module: "./jsx-runtime/dist/emotion-react-jsx-runtime.development.esm.js", - "import": "./jsx-runtime/dist/emotion-react-jsx-runtime.development.cjs.mjs", - "default": "./jsx-runtime/dist/emotion-react-jsx-runtime.development.cjs.js" - }, - "edge-light": { - module: "./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.esm.js", - "import": "./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.mjs", - "default": "./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.js" - }, - worker: { - module: "./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.esm.js", - "import": "./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.mjs", - "default": "./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.js" - }, - workerd: { - module: "./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.esm.js", - "import": "./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.mjs", - "default": "./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.js" - }, - browser: { - module: "./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js", - "import": "./jsx-runtime/dist/emotion-react-jsx-runtime.browser.cjs.mjs", - "default": "./jsx-runtime/dist/emotion-react-jsx-runtime.browser.cjs.js" - }, - module: "./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js", - "import": "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs", - "default": "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js" - }, - "./_isolated-hnrs": { - types: { - "import": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs", - "default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js" - }, - development: { - "edge-light": { - module: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.esm.js", - "import": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.mjs", - "default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.js" - }, - worker: { - module: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.esm.js", - "import": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.mjs", - "default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.js" - }, - workerd: { - module: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.esm.js", - "import": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.mjs", - "default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.js" - }, - browser: { - module: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.esm.js", - "import": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.cjs.mjs", - "default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.cjs.js" - }, - module: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.esm.js", - "import": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.cjs.mjs", - "default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.cjs.js" - }, - "edge-light": { - module: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.esm.js", - "import": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.mjs", - "default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.js" - }, - worker: { - module: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.esm.js", - "import": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.mjs", - "default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.js" - }, - workerd: { - module: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.esm.js", - "import": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.mjs", - "default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.js" - }, - browser: { - module: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js", - "import": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.cjs.mjs", - "default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.cjs.js" - }, - module: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js", - "import": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs", - "default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js" - }, - "./jsx-dev-runtime": { - types: { - "import": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs", - "default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js" - }, - development: { - "edge-light": { - module: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.esm.js", - "import": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.mjs", - "default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.js" - }, - worker: { - module: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.esm.js", - "import": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.mjs", - "default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.js" - }, - workerd: { - module: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.esm.js", - "import": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.mjs", - "default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.js" - }, - browser: { - module: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.development.esm.js", - "import": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.development.cjs.mjs", - "default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.development.cjs.js" - }, - module: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.esm.js", - "import": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.cjs.mjs", - "default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.cjs.js" - }, - "edge-light": { - module: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.esm.js", - "import": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.mjs", - "default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.js" - }, - worker: { - module: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.esm.js", - "import": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.mjs", - "default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.js" - }, - workerd: { - module: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.esm.js", - "import": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.mjs", - "default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.js" - }, - browser: { - module: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js", - "import": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.cjs.mjs", - "default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.cjs.js" - }, - module: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js", - "import": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs", - "default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js" - }, - "./package.json": "./package.json", - "./types/css-prop": "./types/css-prop.d.ts", - "./macro": { - types: { - "import": "./macro.d.mts", - "default": "./macro.d.ts" - }, - "default": "./macro.js" - } - }, - imports: { - "#is-development": { - development: "./src/conditions/true.ts", - "default": "./src/conditions/false.ts" - }, - "#is-browser": { - "edge-light": "./src/conditions/false.ts", - workerd: "./src/conditions/false.ts", - worker: "./src/conditions/false.ts", - browser: "./src/conditions/true.ts", - "default": "./src/conditions/is-browser.ts" - } - }, - files: [ - "src", - "dist", - "jsx-runtime", - "jsx-dev-runtime", - "_isolated-hnrs", - "types/css-prop.d.ts", - "macro.*" - ], - sideEffects: false, - author: "Emotion Contributors", - license: "MIT", - scripts: { - "test:typescript": "dtslint types" - }, - dependencies: { - "@babel/runtime": "^7.18.3", - "@emotion/babel-plugin": "^11.13.5", - "@emotion/cache": "^11.14.0", - "@emotion/serialize": "^1.3.3", - "@emotion/use-insertion-effect-with-fallbacks": "^1.2.0", - "@emotion/utils": "^1.4.2", - "@emotion/weak-memoize": "^0.4.0", - "hoist-non-react-statics": "^3.3.1" - }, - peerDependencies: { - react: ">=16.8.0" - }, - peerDependenciesMeta: { - "@types/react": { - optional: true - } - }, - devDependencies: { - "@definitelytyped/dtslint": "0.0.112", - "@emotion/css": "11.13.5", - "@emotion/css-prettifier": "1.2.0", - "@emotion/server": "11.11.0", - "@emotion/styled": "11.14.0", - "@types/hoist-non-react-statics": "^3.3.5", - "html-tag-names": "^1.1.2", - react: "16.14.0", - "svg-tag-names": "^1.1.1", - typescript: "^5.4.5" - }, - repository: "https://github.com/emotion-js/emotion/tree/main/packages/react", - publishConfig: { - access: "public" - }, - "umd:main": "dist/emotion-react.umd.min.js", - preconstruct: { - entrypoints: [ - "./index.ts", - "./jsx-runtime.ts", - "./jsx-dev-runtime.ts", - "./_isolated-hnrs.ts" - ], - umdName: "emotionReact", - exports: { - extra: { - "./types/css-prop": "./types/css-prop.d.ts", - "./macro": { - types: { - "import": "./macro.d.mts", - "default": "./macro.d.ts" - }, - "default": "./macro.js" - } - } - } - } -}; -var jsx = function jsx2(type, props) { - var args = arguments; - if (props == null || !hasOwn.call(props, "css")) { - return React4.createElement.apply(void 0, args); - } - var argsLength = args.length; - var createElementArgArray = new Array(argsLength); - createElementArgArray[0] = Emotion$1; - createElementArgArray[1] = createEmotionProps(type, props); - for (var i = 2; i < argsLength; i++) { - createElementArgArray[i] = args[i]; - } - return React4.createElement.apply(null, createElementArgArray); -}; -(function(_jsx19) { - var JSX; - /* @__PURE__ */ (function(_JSX) { - })(JSX || (JSX = _jsx19.JSX || (_jsx19.JSX = {}))); -})(jsx || (jsx = {})); -var warnedAboutCssPropForGlobal = false; -var Global = withEmotionCache(function(props, cache) { - if (!warnedAboutCssPropForGlobal && // check for className as well since the user is - // probably using the custom createElement which - // means it will be turned into a className prop - // I don't really want to add it to the type since it shouldn't be used - ("className" in props && props.className || "css" in props && props.css)) { - console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"); - warnedAboutCssPropForGlobal = true; - } - var styles = props.styles; - var serialized = serializeStyles([styles], void 0, React4.useContext(ThemeContext)); - var sheetRef = React4.useRef(); - useInsertionEffectWithLayoutFallback(function() { - var key = cache.key + "-global"; - var sheet = new cache.sheet.constructor({ - key, - nonce: cache.sheet.nonce, - container: cache.sheet.container, - speedy: cache.sheet.isSpeedy - }); - var rehydrating = false; - var node2 = document.querySelector('style[data-emotion="' + key + " " + serialized.name + '"]'); - if (cache.sheet.tags.length) { - sheet.before = cache.sheet.tags[0]; - } - if (node2 !== null) { - rehydrating = true; - node2.setAttribute("data-emotion", key); - sheet.hydrate([node2]); - } - sheetRef.current = [sheet, rehydrating]; - return function() { - sheet.flush(); - }; - }, [cache]); - useInsertionEffectWithLayoutFallback(function() { - var sheetRefCurrent = sheetRef.current; - var sheet = sheetRefCurrent[0], rehydrating = sheetRefCurrent[1]; - if (rehydrating) { - sheetRefCurrent[1] = false; - return; - } - if (serialized.next !== void 0) { - insertStyles(cache, serialized.next, true); - } - if (sheet.tags.length) { - var element = sheet.tags[sheet.tags.length - 1].nextElementSibling; - sheet.before = element; - sheet.flush(); - } - cache.insert("", serialized, sheet, false); - }, [cache, serialized.name]); - return null; -}); -{ - Global.displayName = "EmotionGlobal"; -} -var classnames = function classnames2(args) { - var len = args.length; - var i = 0; - var cls = ""; - for (; i < len; i++) { - var arg2 = args[i]; - if (arg2 == null) continue; - var toAdd = void 0; - switch (typeof arg2) { - case "boolean": - break; - case "object": { - if (Array.isArray(arg2)) { - toAdd = classnames2(arg2); - } else { - if (arg2.styles !== void 0 && arg2.name !== void 0) { - console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from component."); - } - toAdd = ""; - for (var k in arg2) { - if (arg2[k] && k) { - toAdd && (toAdd += " "); - toAdd += k; - } - } - } - break; - } - default: { - toAdd = arg2; - } - } - if (toAdd) { - cls && (cls += " "); - cls += toAdd; - } - } - return cls; -}; -function merge2(registered, css2, className) { - var registeredStyles = []; - var rawClassName = getRegisteredStyles(registered, registeredStyles, className); - if (registeredStyles.length < 2) { - return className; - } - return rawClassName + css2(registeredStyles); -} -var Insertion3 = function Insertion4(_ref) { - var cache = _ref.cache, serializedArr = _ref.serializedArr; - useInsertionEffectAlwaysWithSyncFallback(function() { - for (var i = 0; i < serializedArr.length; i++) { - insertStyles(cache, serializedArr[i], false); - } - }); - return null; -}; -var ClassNames = withEmotionCache(function(props, cache) { - var hasRendered = false; - var serializedArr = []; - var css2 = function css3() { - if (hasRendered && isDevelopment3) { - throw new Error("css can only be used during render"); - } - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - var serialized = serializeStyles(args, cache.registered); - serializedArr.push(serialized); - registerStyles(cache, serialized, false); - return cache.key + "-" + serialized.name; - }; - var cx = function cx2() { - if (hasRendered && isDevelopment3) { - throw new Error("cx can only be used during render"); - } - for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - args[_key2] = arguments[_key2]; - } - return merge2(cache.registered, css2, classnames(args)); - }; - var content = { - css: css2, - cx, - theme: React4.useContext(ThemeContext) - }; - var ele = props.children(content); - hasRendered = true; - return React4.createElement(React4.Fragment, null, React4.createElement(Insertion3, { - cache, - serializedArr - }), ele); -}); -{ - ClassNames.displayName = "EmotionClassNames"; -} -{ - isBrowser2 = typeof document !== "undefined"; - isTestEnv = typeof jest !== "undefined" || typeof vi !== "undefined"; - if (isBrowser2 && !isTestEnv) { - globalContext = typeof globalThis !== "undefined" ? globalThis : isBrowser2 ? window : global; - globalKey = "__EMOTION_REACT_" + pkg.version.split(".")[0] + "__"; - if (globalContext[globalKey]) { - console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."); - } - globalContext[globalKey] = true; - } -} -var isBrowser2; -var isTestEnv; -var globalContext; -var globalKey; - -// node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.development.esm.js -var React5 = __toESM(require_react()); - -// node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js -var reactPropsRegex = /^((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|fetchpriority|fetchPriority|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)-.*))$/; -var isPropValid = memoize2( - function(prop) { - return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91; - } - /* Z+1 */ -); - -// node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.development.esm.js -var isDevelopment4 = true; -var testOmitPropsOnStringTag = isPropValid; -var testOmitPropsOnComponent = function testOmitPropsOnComponent2(key) { - return key !== "theme"; -}; -var getDefaultShouldForwardProp = function getDefaultShouldForwardProp2(tag) { - return typeof tag === "string" && // 96 is one less than the char code - // for "a" so this is checking that - // it's a lowercase character - tag.charCodeAt(0) > 96 ? testOmitPropsOnStringTag : testOmitPropsOnComponent; -}; -var composeShouldForwardProps = function composeShouldForwardProps2(tag, options, isReal) { - var shouldForwardProp2; - if (options) { - var optionsShouldForwardProp = options.shouldForwardProp; - shouldForwardProp2 = tag.__emotion_forwardProp && optionsShouldForwardProp ? function(propName) { - return tag.__emotion_forwardProp(propName) && optionsShouldForwardProp(propName); - } : optionsShouldForwardProp; - } - if (typeof shouldForwardProp2 !== "function" && isReal) { - shouldForwardProp2 = tag.__emotion_forwardProp; - } - return shouldForwardProp2; -}; -var ILLEGAL_ESCAPE_SEQUENCE_ERROR2 = `You have illegal escape sequence in your template literal, most likely inside content's property value. -Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". -You can read more about this here: -https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`; -var Insertion5 = function Insertion6(_ref) { - var cache = _ref.cache, serialized = _ref.serialized, isStringTag2 = _ref.isStringTag; - registerStyles(cache, serialized, isStringTag2); - useInsertionEffectAlwaysWithSyncFallback(function() { - return insertStyles(cache, serialized, isStringTag2); - }); - return null; -}; -var createStyled = function createStyled2(tag, options) { - { - if (tag === void 0) { - throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it."); - } - } - var isReal = tag.__emotion_real === tag; - var baseTag = isReal && tag.__emotion_base || tag; - var identifierName; - var targetClassName; - if (options !== void 0) { - identifierName = options.label; - targetClassName = options.target; - } - var shouldForwardProp2 = composeShouldForwardProps(tag, options, isReal); - var defaultShouldForwardProp = shouldForwardProp2 || getDefaultShouldForwardProp(baseTag); - var shouldUseAs = !defaultShouldForwardProp("as"); - return function() { - var args = arguments; - var styles = isReal && tag.__emotion_styles !== void 0 ? tag.__emotion_styles.slice(0) : []; - if (identifierName !== void 0) { - styles.push("label:" + identifierName + ";"); - } - if (args[0] == null || args[0].raw === void 0) { - styles.push.apply(styles, args); - } else { - var templateStringsArr = args[0]; - if (templateStringsArr[0] === void 0) { - console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR2); - } - styles.push(templateStringsArr[0]); - var len = args.length; - var i = 1; - for (; i < len; i++) { - if (templateStringsArr[i] === void 0) { - console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR2); - } - styles.push(args[i], templateStringsArr[i]); - } - } - var Styled = withEmotionCache(function(props, cache, ref) { - var FinalTag = shouldUseAs && props.as || baseTag; - var className = ""; - var classInterpolations = []; - var mergedProps = props; - if (props.theme == null) { - mergedProps = {}; - for (var key in props) { - mergedProps[key] = props[key]; - } - mergedProps.theme = React5.useContext(ThemeContext); - } - if (typeof props.className === "string") { - className = getRegisteredStyles(cache.registered, classInterpolations, props.className); - } else if (props.className != null) { - className = props.className + " "; - } - var serialized = serializeStyles(styles.concat(classInterpolations), cache.registered, mergedProps); - className += cache.key + "-" + serialized.name; - if (targetClassName !== void 0) { - className += " " + targetClassName; - } - var finalShouldForwardProp = shouldUseAs && shouldForwardProp2 === void 0 ? getDefaultShouldForwardProp(FinalTag) : defaultShouldForwardProp; - var newProps = {}; - for (var _key in props) { - if (shouldUseAs && _key === "as") continue; - if (finalShouldForwardProp(_key)) { - newProps[_key] = props[_key]; - } - } - newProps.className = className; - if (ref) { - newProps.ref = ref; - } - return React5.createElement(React5.Fragment, null, React5.createElement(Insertion5, { - cache, - serialized, - isStringTag: typeof FinalTag === "string" - }), React5.createElement(FinalTag, newProps)); - }); - Styled.displayName = identifierName !== void 0 ? identifierName : "Styled(" + (typeof baseTag === "string" ? baseTag : baseTag.displayName || baseTag.name || "Component") + ")"; - Styled.defaultProps = tag.defaultProps; - Styled.__emotion_real = Styled; - Styled.__emotion_base = baseTag; - Styled.__emotion_styles = styles; - Styled.__emotion_forwardProp = shouldForwardProp2; - Object.defineProperty(Styled, "toString", { - value: function value() { - if (targetClassName === void 0 && isDevelopment4) { - return "NO_COMPONENT_SELECTOR"; - } - return "." + targetClassName; - } - }); - Styled.withComponent = function(nextTag, nextOptions) { - var newStyled2 = createStyled2(nextTag, _extends({}, options, nextOptions, { - shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true) - })); - return newStyled2.apply(void 0, styles); - }; - return Styled; - }; -}; - -// node_modules/@emotion/styled/dist/emotion-styled.browser.development.esm.js -var import_react4 = __toESM(require_react()); -var tags = [ - "a", - "abbr", - "address", - "area", - "article", - "aside", - "audio", - "b", - "base", - "bdi", - "bdo", - "big", - "blockquote", - "body", - "br", - "button", - "canvas", - "caption", - "cite", - "code", - "col", - "colgroup", - "data", - "datalist", - "dd", - "del", - "details", - "dfn", - "dialog", - "div", - "dl", - "dt", - "em", - "embed", - "fieldset", - "figcaption", - "figure", - "footer", - "form", - "h1", - "h2", - "h3", - "h4", - "h5", - "h6", - "head", - "header", - "hgroup", - "hr", - "html", - "i", - "iframe", - "img", - "input", - "ins", - "kbd", - "keygen", - "label", - "legend", - "li", - "link", - "main", - "map", - "mark", - "marquee", - "menu", - "menuitem", - "meta", - "meter", - "nav", - "noscript", - "object", - "ol", - "optgroup", - "option", - "output", - "p", - "param", - "picture", - "pre", - "progress", - "q", - "rp", - "rt", - "ruby", - "s", - "samp", - "script", - "section", - "select", - "small", - "source", - "span", - "strong", - "style", - "sub", - "summary", - "sup", - "table", - "tbody", - "td", - "textarea", - "tfoot", - "th", - "thead", - "time", - "title", - "tr", - "track", - "u", - "ul", - "var", - "video", - "wbr", - // SVG - "circle", - "clipPath", - "defs", - "ellipse", - "foreignObject", - "g", - "image", - "line", - "linearGradient", - "mask", - "path", - "pattern", - "polygon", - "polyline", - "radialGradient", - "rect", - "stop", - "svg", - "text", - "tspan" -]; -var newStyled = createStyled.bind(null); -tags.forEach(function(tagName) { - newStyled[tagName] = newStyled(tagName); -}); - -// node_modules/@mui/styled-engine/esm/StyledEngineProvider/StyledEngineProvider.js -var React6 = __toESM(require_react(), 1); -var import_prop_types3 = __toESM(require_prop_types(), 1); -var import_jsx_runtime = __toESM(require_jsx_runtime(), 1); -var cacheMap = /* @__PURE__ */ new Map(); -var TEST_INTERNALS_DO_NOT_USE = { - /** - * to intercept the generated CSS before inserting to the style tag, so that we can check the generated CSS. - * - * let rule; - * TEST_INTERNALS_DO_NOT_USE.insert = (...args) => { - * rule = args[0]; - * }; - * - * expect(rule).to.equal(...); - */ - insert: void 0 -}; -var createEmotionCache = (options, CustomSheet) => { - const cache = createCache(options); - cache.sheet = new CustomSheet({ - key: cache.key, - nonce: cache.sheet.nonce, - container: cache.sheet.container, - speedy: cache.sheet.isSpeedy, - prepend: cache.sheet.prepend, - insertionPoint: cache.sheet.insertionPoint - }); - return cache; -}; -var insertionPoint; -if (typeof document === "object") { - insertionPoint = document.querySelector('[name="emotion-insertion-point"]'); - if (!insertionPoint) { - insertionPoint = document.createElement("meta"); - insertionPoint.setAttribute("name", "emotion-insertion-point"); - insertionPoint.setAttribute("content", ""); - const head = document.querySelector("head"); - if (head) { - head.prepend(insertionPoint); - } - } -} -function getCache(injectFirst, enableCssLayer) { - if (injectFirst || enableCssLayer) { - class MyStyleSheet extends StyleSheet { - insert(rule, options) { - if (TEST_INTERNALS_DO_NOT_USE.insert) { - return TEST_INTERNALS_DO_NOT_USE.insert(rule, options); - } - if (this.key && this.key.endsWith("global")) { - this.before = insertionPoint; - } - return super.insert(rule, options); - } - } - const emotionCache = createEmotionCache({ - key: "css", - insertionPoint: injectFirst ? insertionPoint : void 0 - }, MyStyleSheet); - if (enableCssLayer) { - const prevInsert = emotionCache.insert; - emotionCache.insert = (...args) => { - if (!args[1].styles.startsWith("@layer")) { - args[1].styles = `@layer mui {${args[1].styles}}`; - } - return prevInsert(...args); - }; - } - return emotionCache; - } - return void 0; -} -function StyledEngineProvider(props) { - const { - injectFirst, - enableCssLayer, - children - } = props; - const cache = React6.useMemo(() => { - const cacheKey = `${injectFirst}-${enableCssLayer}`; - if (cacheMap.has(cacheKey)) { - return cacheMap.get(cacheKey); - } - const fresh = getCache(injectFirst, enableCssLayer); - cacheMap.set(cacheKey, fresh); - return fresh; - }, [injectFirst, enableCssLayer]); - return cache ? (0, import_jsx_runtime.jsx)(CacheProvider, { - value: cache, - children - }) : children; -} -true ? StyledEngineProvider.propTypes = { - /** - * Your component tree. - */ - children: import_prop_types3.default.node, - /** - * If `true`, the styles are wrapped in `@layer mui`. - * Learn more about [Cascade layers](https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/Styling_basics/Cascade_layers). - */ - enableCssLayer: import_prop_types3.default.bool, - /** - * By default, the styles are injected last in the element of the page. - * As a result, they gain more specificity than any other style sheet. - * If you want to override MUI's styles, set this prop. - */ - injectFirst: import_prop_types3.default.bool -} : void 0; - -// node_modules/@mui/styled-engine/esm/GlobalStyles/GlobalStyles.js -var React7 = __toESM(require_react(), 1); -var import_prop_types4 = __toESM(require_prop_types(), 1); -var import_jsx_runtime2 = __toESM(require_jsx_runtime(), 1); -function isEmpty(obj) { - return obj === void 0 || obj === null || Object.keys(obj).length === 0; -} -function GlobalStyles(props) { - const { - styles, - defaultTheme: defaultTheme5 = {} - } = props; - const globalStyles = typeof styles === "function" ? (themeInput) => styles(isEmpty(themeInput) ? defaultTheme5 : themeInput) : styles; - return (0, import_jsx_runtime2.jsx)(Global, { - styles: globalStyles - }); -} -true ? GlobalStyles.propTypes = { - defaultTheme: import_prop_types4.default.object, - styles: import_prop_types4.default.oneOfType([import_prop_types4.default.array, import_prop_types4.default.string, import_prop_types4.default.object, import_prop_types4.default.func]) -} : void 0; - -// node_modules/@mui/styled-engine/esm/index.js -function styled(tag, options) { - const stylesFactory = newStyled(tag, options); - if (true) { - return (...styles) => { - const component = typeof tag === "string" ? `"${tag}"` : "component"; - if (styles.length === 0) { - console.error([`MUI: Seems like you called \`styled(${component})()\` without a \`style\` argument.`, 'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join("\n")); - } else if (styles.some((style4) => style4 === void 0)) { - console.error(`MUI: the styled(${component})(...args) API requires all its args to be defined.`); - } - return stylesFactory(...styles); - }; - } - return stylesFactory; -} -function internal_mutateStyles(tag, processor) { - if (Array.isArray(tag.__emotion_styles)) { - tag.__emotion_styles = processor(tag.__emotion_styles); - } -} -var wrapper = []; -function internal_serializeStyles(styles) { - wrapper[0] = styles; - return serializeStyles(wrapper); -} - -// node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js -var React9 = __toESM(require_react(), 1); -var import_prop_types5 = __toESM(require_prop_types(), 1); - -// node_modules/@mui/system/esm/createBreakpoints/createBreakpoints.js -var sortBreakpointsValues = (values2) => { - const breakpointsAsArray = Object.keys(values2).map((key) => ({ - key, - val: values2[key] - })) || []; - breakpointsAsArray.sort((breakpoint1, breakpoint2) => breakpoint1.val - breakpoint2.val); - return breakpointsAsArray.reduce((acc, obj) => { - return { - ...acc, - [obj.key]: obj.val - }; - }, {}); -}; -function createBreakpoints(breakpoints) { - const { - // The breakpoint **start** at this value. - // For instance with the first breakpoint xs: [xs, sm). - values: values2 = { - xs: 0, - // phone - sm: 600, - // tablet - md: 900, - // small laptop - lg: 1200, - // desktop - xl: 1536 - // large screen - }, - unit = "px", - step = 5, - ...other - } = breakpoints; - const sortedValues = sortBreakpointsValues(values2); - const keys = Object.keys(sortedValues); - function up(key) { - const value = typeof values2[key] === "number" ? values2[key] : key; - return `@media (min-width:${value}${unit})`; - } - function down(key) { - const value = typeof values2[key] === "number" ? values2[key] : key; - return `@media (max-width:${value - step / 100}${unit})`; - } - function between(start, end) { - const endIndex = keys.indexOf(end); - return `@media (min-width:${typeof values2[start] === "number" ? values2[start] : start}${unit}) and (max-width:${(endIndex !== -1 && typeof values2[keys[endIndex]] === "number" ? values2[keys[endIndex]] : end) - step / 100}${unit})`; - } - function only(key) { - if (keys.indexOf(key) + 1 < keys.length) { - return between(key, keys[keys.indexOf(key) + 1]); - } - return up(key); - } - function not(key) { - const keyIndex = keys.indexOf(key); - if (keyIndex === 0) { - return up(keys[1]); - } - if (keyIndex === keys.length - 1) { - return down(keys[keyIndex]); - } - return between(key, keys[keys.indexOf(key) + 1]).replace("@media", "@media not all and"); - } - return { - keys, - values: sortedValues, - up, - down, - between, - only, - not, - unit, - ...other - }; -} - -// node_modules/@mui/system/esm/createTheme/shape.js -var shape = { - borderRadius: 4 -}; -var shape_default = shape; - -// node_modules/@mui/system/esm/createTheme/createSpacing.js -function createSpacing(spacingInput = 8, transform = createUnarySpacing({ - spacing: spacingInput -})) { - if (spacingInput.mui) { - return spacingInput; - } - const spacing2 = (...argsInput) => { - if (true) { - if (!(argsInput.length <= 4)) { - console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${argsInput.length}`); - } - } - const args = argsInput.length === 0 ? [1] : argsInput; - return args.map((argument) => { - const output = transform(argument); - return typeof output === "number" ? `${output}px` : output; - }).join(" "); - }; - spacing2.mui = true; - return spacing2; -} - -// node_modules/@mui/system/esm/createTheme/applyStyles.js -function applyStyles(key, styles) { - var _a; - const theme = this; - if (theme.vars) { - if (!((_a = theme.colorSchemes) == null ? void 0 : _a[key]) || typeof theme.getColorSchemeSelector !== "function") { - return {}; - } - let selector = theme.getColorSchemeSelector(key); - if (selector === "&") { - return styles; - } - if (selector.includes("data-") || selector.includes(".")) { - selector = `*:where(${selector.replace(/\s*&$/, "")}) &`; - } - return { - [selector]: styles - }; - } - if (theme.palette.mode === key) { - return styles; - } - return {}; -} - -// node_modules/@mui/system/esm/createTheme/createTheme.js -function createTheme(options = {}, ...args) { - const { - breakpoints: breakpointsInput = {}, - palette: paletteInput = {}, - spacing: spacingInput, - shape: shapeInput = {}, - ...other - } = options; - const breakpoints = createBreakpoints(breakpointsInput); - const spacing2 = createSpacing(spacingInput); - let muiTheme = deepmerge({ - breakpoints, - direction: "ltr", - components: {}, - // Inject component definitions. - palette: { - mode: "light", - ...paletteInput - }, - spacing: spacing2, - shape: { - ...shape_default, - ...shapeInput - } - }, other); - muiTheme = cssContainerQueries(muiTheme); - muiTheme.applyStyles = applyStyles; - muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme); - muiTheme.unstable_sxConfig = { - ...defaultSxConfig_default, - ...other == null ? void 0 : other.unstable_sxConfig - }; - muiTheme.unstable_sx = function sx(props) { - return styleFunctionSx_default({ - sx: props, - theme: this - }); - }; - return muiTheme; -} -var createTheme_default = createTheme; - -// node_modules/@mui/system/esm/useThemeWithoutDefault/useThemeWithoutDefault.js -var React8 = __toESM(require_react(), 1); -function isObjectEmpty(obj) { - return Object.keys(obj).length === 0; -} -function useTheme2(defaultTheme5 = null) { - const contextTheme = React8.useContext(ThemeContext); - return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme5 : contextTheme; -} -var useThemeWithoutDefault_default = useTheme2; - -// node_modules/@mui/system/esm/useTheme/useTheme.js -var systemDefaultTheme = createTheme_default(); -function useTheme3(defaultTheme5 = systemDefaultTheme) { - return useThemeWithoutDefault_default(defaultTheme5); -} -var useTheme_default = useTheme3; - -// node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js -var import_jsx_runtime3 = __toESM(require_jsx_runtime(), 1); -function GlobalStyles2({ - styles, - themeId, - defaultTheme: defaultTheme5 = {} -}) { - const upperTheme = useTheme_default(defaultTheme5); - const globalStyles = typeof styles === "function" ? styles(themeId ? upperTheme[themeId] || upperTheme : upperTheme) : styles; - return (0, import_jsx_runtime3.jsx)(GlobalStyles, { - styles: globalStyles - }); -} -true ? GlobalStyles2.propTypes = { - // ┌────────────────────────────── Warning ──────────────────────────────┐ - // │ These PropTypes are generated from the TypeScript type definitions. │ - // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │ - // └─────────────────────────────────────────────────────────────────────┘ - /** - * @ignore - */ - defaultTheme: import_prop_types5.default.object, - /** - * @ignore - */ - styles: import_prop_types5.default.oneOfType([import_prop_types5.default.array, import_prop_types5.default.func, import_prop_types5.default.number, import_prop_types5.default.object, import_prop_types5.default.string, import_prop_types5.default.bool]), - /** - * @ignore - */ - themeId: import_prop_types5.default.string -} : void 0; -var GlobalStyles_default = GlobalStyles2; - -// node_modules/@mui/system/esm/display/display.js -var displayPrint = style_default({ - prop: "displayPrint", - cssProperty: false, - transform: (value) => ({ - "@media print": { - display: value - } - }) -}); -var displayRaw = style_default({ - prop: "display" -}); -var overflow = style_default({ - prop: "overflow" -}); -var textOverflow = style_default({ - prop: "textOverflow" -}); -var visibility = style_default({ - prop: "visibility" -}); -var whiteSpace = style_default({ - prop: "whiteSpace" -}); -var display_default = compose_default(displayPrint, displayRaw, overflow, textOverflow, visibility, whiteSpace); - -// node_modules/@mui/system/esm/flexbox/flexbox.js -var flexBasis = style_default({ - prop: "flexBasis" -}); -var flexDirection = style_default({ - prop: "flexDirection" -}); -var flexWrap = style_default({ - prop: "flexWrap" -}); -var justifyContent = style_default({ - prop: "justifyContent" -}); -var alignItems = style_default({ - prop: "alignItems" -}); -var alignContent = style_default({ - prop: "alignContent" -}); -var order = style_default({ - prop: "order" -}); -var flex = style_default({ - prop: "flex" -}); -var flexGrow = style_default({ - prop: "flexGrow" -}); -var flexShrink = style_default({ - prop: "flexShrink" -}); -var alignSelf = style_default({ - prop: "alignSelf" -}); -var justifyItems = style_default({ - prop: "justifyItems" -}); -var justifySelf = style_default({ - prop: "justifySelf" -}); -var flexbox = compose_default(flexBasis, flexDirection, flexWrap, justifyContent, alignItems, alignContent, order, flex, flexGrow, flexShrink, alignSelf, justifyItems, justifySelf); -var flexbox_default = flexbox; - -// node_modules/@mui/system/esm/positions/positions.js -var position2 = style_default({ - prop: "position" -}); -var zIndex = style_default({ - prop: "zIndex", - themeKey: "zIndex" -}); -var top = style_default({ - prop: "top" -}); -var right = style_default({ - prop: "right" -}); -var bottom = style_default({ - prop: "bottom" -}); -var left = style_default({ - prop: "left" -}); -var positions_default = compose_default(position2, zIndex, top, right, bottom, left); - -// node_modules/@mui/system/esm/shadows/shadows.js -var boxShadow = style_default({ - prop: "boxShadow", - themeKey: "shadows" -}); -var shadows_default = boxShadow; - -// node_modules/@mui/system/esm/typography/typography.js -var fontFamily = style_default({ - prop: "fontFamily", - themeKey: "typography" -}); -var fontSize = style_default({ - prop: "fontSize", - themeKey: "typography" -}); -var fontStyle = style_default({ - prop: "fontStyle", - themeKey: "typography" -}); -var fontWeight = style_default({ - prop: "fontWeight", - themeKey: "typography" -}); -var letterSpacing = style_default({ - prop: "letterSpacing" -}); -var textTransform = style_default({ - prop: "textTransform" -}); -var lineHeight = style_default({ - prop: "lineHeight" -}); -var textAlign = style_default({ - prop: "textAlign" -}); -var typographyVariant = style_default({ - prop: "typography", - cssProperty: false, - themeKey: "typography" -}); -var typography = compose_default(typographyVariant, fontFamily, fontSize, fontStyle, fontWeight, letterSpacing, lineHeight, textAlign, textTransform); -var typography_default = typography; - -// node_modules/@mui/system/esm/getThemeValue/getThemeValue.js -var filterPropsMapping = { - borders: borders_default.filterProps, - display: display_default.filterProps, - flexbox: flexbox_default.filterProps, - grid: cssGrid_default.filterProps, - positions: positions_default.filterProps, - palette: palette_default.filterProps, - shadows: shadows_default.filterProps, - sizing: sizing_default.filterProps, - spacing: spacing_default.filterProps, - typography: typography_default.filterProps -}; -var styleFunctionMapping = { - borders: borders_default, - display: display_default, - flexbox: flexbox_default, - grid: cssGrid_default, - positions: positions_default, - palette: palette_default, - shadows: shadows_default, - sizing: sizing_default, - spacing: spacing_default, - typography: typography_default -}; -var propToStyleFunction = Object.keys(filterPropsMapping).reduce((acc, styleFnName) => { - filterPropsMapping[styleFnName].forEach((propName) => { - acc[propName] = styleFunctionMapping[styleFnName]; - }); - return acc; -}, {}); - -// node_modules/@mui/system/esm/Box/Box.js -var import_prop_types6 = __toESM(require_prop_types(), 1); - -// node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js -var defaultGenerator = (componentName) => componentName; -var createClassNameGenerator = () => { - let generate = defaultGenerator; - return { - configure(generator) { - generate = generator; - }, - generate(componentName) { - return generate(componentName); - }, - reset() { - generate = defaultGenerator; - } - }; -}; -var ClassNameGenerator = createClassNameGenerator(); -var ClassNameGenerator_default = ClassNameGenerator; - -// node_modules/@mui/system/esm/createBox/createBox.js -var React10 = __toESM(require_react(), 1); -var import_jsx_runtime4 = __toESM(require_jsx_runtime(), 1); -function createBox(options = {}) { - const { - themeId, - defaultTheme: defaultTheme5, - defaultClassName = "MuiBox-root", - generateClassName - } = options; - const BoxRoot = styled("div", { - shouldForwardProp: (prop) => prop !== "theme" && prop !== "sx" && prop !== "as" - })(styleFunctionSx_default); - const Box2 = React10.forwardRef(function Box3(inProps, ref) { - const theme = useTheme_default(defaultTheme5); - const { - className, - component = "div", - ...other - } = extendSxProp(inProps); - return (0, import_jsx_runtime4.jsx)(BoxRoot, { - as: component, - ref, - className: clsx_default(className, generateClassName ? generateClassName(defaultClassName) : defaultClassName), - theme: themeId ? theme[themeId] || theme : theme, - ...other - }); - }); - return Box2; -} - -// node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js -var globalStateClasses = { - 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 generateUtilityClass(componentName, slot, globalStatePrefix = "Mui") { - const globalStateClass = globalStateClasses[slot]; - return globalStateClass ? `${globalStatePrefix}-${globalStateClass}` : `${ClassNameGenerator_default.generate(componentName)}-${slot}`; -} - -// node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js -function generateUtilityClasses(componentName, slots, globalStatePrefix = "Mui") { - const result = {}; - slots.forEach((slot) => { - result[slot] = generateUtilityClass(componentName, slot, globalStatePrefix); - }); - return result; -} - -// node_modules/@mui/system/esm/Box/boxClasses.js -var boxClasses = generateUtilityClasses("MuiBox", ["root"]); -var boxClasses_default = boxClasses; - -// node_modules/@mui/system/esm/Box/Box.js -var Box = createBox({ - defaultClassName: boxClasses_default.root, - generateClassName: ClassNameGenerator_default.generate -}); -true ? Box.propTypes = { - // ┌────────────────────────────── Warning ──────────────────────────────┐ - // │ These PropTypes are generated from the TypeScript type definitions. │ - // │ To update them, edit the d.ts file and run `pnpm proptypes`. │ - // └─────────────────────────────────────────────────────────────────────┘ - /** - * @ignore - */ - children: import_prop_types6.default.node, - /** - * The component used for the root node. - * Either a string to use a HTML element or a component. - */ - component: import_prop_types6.default.elementType, - /** - * The system prop that allows defining system overrides as well as additional CSS styles. - */ - sx: import_prop_types6.default.oneOfType([import_prop_types6.default.arrayOf(import_prop_types6.default.oneOfType([import_prop_types6.default.func, import_prop_types6.default.object, import_prop_types6.default.bool])), import_prop_types6.default.func, import_prop_types6.default.object]) -} : void 0; - -// node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js -var import_react_is2 = __toESM(require_react_is2(), 1); -function getFunctionComponentName(Component, fallback = "") { - return Component.displayName || Component.name || fallback; -} -function getWrappedName(outerType, innerType, wrapperName) { - const functionName = getFunctionComponentName(innerType); - return outerType.displayName || (functionName !== "" ? `${wrapperName}(${functionName})` : wrapperName); -} -function getDisplayName(Component) { - if (Component == null) { - return void 0; - } - if (typeof Component === "string") { - return Component; - } - if (typeof Component === "function") { - return getFunctionComponentName(Component, "Component"); - } - if (typeof Component === "object") { - switch (Component.$$typeof) { - case import_react_is2.ForwardRef: - return getWrappedName(Component, Component.render, "ForwardRef"); - case import_react_is2.Memo: - return getWrappedName(Component, Component.type, "memo"); - default: - return void 0; - } - } - return void 0; -} - -// node_modules/@mui/system/esm/preprocessStyles.js -function preprocessStyles(input) { - const { - variants, - ...style4 - } = input; - const result = { - variants, - style: internal_serializeStyles(style4), - isProcessed: true - }; - if (result.style === style4) { - return result; - } - if (variants) { - variants.forEach((variant) => { - if (typeof variant.style !== "function") { - variant.style = internal_serializeStyles(variant.style); - } - }); - } - return result; -} - -// node_modules/@mui/system/esm/createStyled/createStyled.js -var systemDefaultTheme2 = createTheme_default(); -function shouldForwardProp(prop) { - return prop !== "ownerState" && prop !== "theme" && prop !== "sx" && prop !== "as"; -} -function defaultOverridesResolver(slot) { - if (!slot) { - return null; - } - return (_props, styles) => styles[slot]; -} -function attachTheme(props, themeId, defaultTheme5) { - props.theme = isObjectEmpty2(props.theme) ? defaultTheme5 : props.theme[themeId] || props.theme; -} -function processStyle(props, style4) { - const resolvedStyle = typeof style4 === "function" ? style4(props) : style4; - if (Array.isArray(resolvedStyle)) { - return resolvedStyle.flatMap((subStyle) => processStyle(props, subStyle)); - } - if (Array.isArray(resolvedStyle == null ? void 0 : resolvedStyle.variants)) { - let rootStyle; - if (resolvedStyle.isProcessed) { - rootStyle = resolvedStyle.style; - } else { - const { - variants, - ...otherStyles - } = resolvedStyle; - rootStyle = otherStyles; - } - return processStyleVariants(props, resolvedStyle.variants, [rootStyle]); - } - if (resolvedStyle == null ? void 0 : resolvedStyle.isProcessed) { - return resolvedStyle.style; - } - return resolvedStyle; -} -function processStyleVariants(props, variants, results = []) { - var _a; - let mergedState; - variantLoop: for (let i = 0; i < variants.length; i += 1) { - const variant = variants[i]; - if (typeof variant.props === "function") { - mergedState ?? (mergedState = { - ...props, - ...props.ownerState, - ownerState: props.ownerState - }); - if (!variant.props(mergedState)) { - continue; - } - } else { - for (const key in variant.props) { - if (props[key] !== variant.props[key] && ((_a = props.ownerState) == null ? void 0 : _a[key]) !== variant.props[key]) { - continue variantLoop; - } - } - } - if (typeof variant.style === "function") { - mergedState ?? (mergedState = { - ...props, - ...props.ownerState, - ownerState: props.ownerState - }); - results.push(variant.style(mergedState)); - } else { - results.push(variant.style); - } - } - return results; -} -function createStyled3(input = {}) { - const { - themeId, - defaultTheme: defaultTheme5 = systemDefaultTheme2, - rootShouldForwardProp: rootShouldForwardProp2 = shouldForwardProp, - slotShouldForwardProp: slotShouldForwardProp2 = shouldForwardProp - } = input; - function styleAttachTheme(props) { - attachTheme(props, themeId, defaultTheme5); - } - const styled4 = (tag, inputOptions = {}) => { - internal_mutateStyles(tag, (styles) => styles.filter((style4) => style4 !== styleFunctionSx_default)); - const { - name: componentName, - slot: componentSlot, - skipVariantsResolver: inputSkipVariantsResolver, - skipSx: inputSkipSx, - // TODO v6: remove `lowercaseFirstLetter()` in the next major release - // For more details: https://github.com/mui/material-ui/pull/37908 - overridesResolver = defaultOverridesResolver(lowercaseFirstLetter(componentSlot)), - ...options - } = inputOptions; - const skipVariantsResolver = inputSkipVariantsResolver !== void 0 ? inputSkipVariantsResolver : ( - // TODO v6: remove `Root` in the next major release - // For more details: https://github.com/mui/material-ui/pull/37908 - componentSlot && componentSlot !== "Root" && componentSlot !== "root" || false - ); - const skipSx = inputSkipSx || false; - let shouldForwardPropOption = shouldForwardProp; - if (componentSlot === "Root" || componentSlot === "root") { - shouldForwardPropOption = rootShouldForwardProp2; - } else if (componentSlot) { - shouldForwardPropOption = slotShouldForwardProp2; - } else if (isStringTag(tag)) { - shouldForwardPropOption = void 0; - } - const defaultStyledResolver = styled(tag, { - shouldForwardProp: shouldForwardPropOption, - label: generateStyledLabel(componentName, componentSlot), - ...options - }); - const transformStyle = (style4) => { - if (typeof style4 === "function" && style4.__emotion_real !== style4) { - return function styleFunctionProcessor(props) { - return processStyle(props, style4); - }; - } - if (isPlainObject(style4)) { - const serialized = preprocessStyles(style4); - if (!serialized.variants) { - return serialized.style; - } - return function styleObjectProcessor(props) { - return processStyle(props, serialized); - }; - } - return style4; - }; - const muiStyledResolver = (...expressionsInput) => { - const expressionsHead = []; - const expressionsBody = expressionsInput.map(transformStyle); - const expressionsTail = []; - expressionsHead.push(styleAttachTheme); - if (componentName && overridesResolver) { - expressionsTail.push(function styleThemeOverrides(props) { - var _a, _b; - const theme = props.theme; - const styleOverrides = (_b = (_a = theme.components) == null ? void 0 : _a[componentName]) == null ? void 0 : _b.styleOverrides; - if (!styleOverrides) { - return null; - } - const resolvedStyleOverrides = {}; - for (const slotKey in styleOverrides) { - resolvedStyleOverrides[slotKey] = processStyle(props, styleOverrides[slotKey]); - } - return overridesResolver(props, resolvedStyleOverrides); - }); - } - if (componentName && !skipVariantsResolver) { - expressionsTail.push(function styleThemeVariants(props) { - var _a, _b; - const theme = props.theme; - const themeVariants = (_b = (_a = theme == null ? void 0 : theme.components) == null ? void 0 : _a[componentName]) == null ? void 0 : _b.variants; - if (!themeVariants) { - return null; - } - return processStyleVariants(props, themeVariants); - }); - } - if (!skipSx) { - expressionsTail.push(styleFunctionSx_default); - } - if (Array.isArray(expressionsBody[0])) { - const inputStrings = expressionsBody.shift(); - const placeholdersHead = new Array(expressionsHead.length).fill(""); - const placeholdersTail = new Array(expressionsTail.length).fill(""); - let outputStrings; - { - outputStrings = [...placeholdersHead, ...inputStrings, ...placeholdersTail]; - outputStrings.raw = [...placeholdersHead, ...inputStrings.raw, ...placeholdersTail]; - } - expressionsHead.unshift(outputStrings); - } - const expressions = [...expressionsHead, ...expressionsBody, ...expressionsTail]; - const Component = defaultStyledResolver(...expressions); - if (tag.muiName) { - Component.muiName = tag.muiName; - } - if (true) { - Component.displayName = generateDisplayName(componentName, componentSlot, tag); - } - return Component; - }; - if (defaultStyledResolver.withConfig) { - muiStyledResolver.withConfig = defaultStyledResolver.withConfig; - } - return muiStyledResolver; - }; - return styled4; -} -function generateDisplayName(componentName, componentSlot, tag) { - if (componentName) { - return `${componentName}${capitalize(componentSlot || "")}`; - } - return `Styled(${getDisplayName(tag)})`; -} -function generateStyledLabel(componentName, componentSlot) { - let label; - if (true) { - if (componentName) { - label = `${componentName}-${lowercaseFirstLetter(componentSlot || "Root")}`; - } - } - return label; -} -function isObjectEmpty2(object) { - for (const _ in object) { - return false; - } - return true; -} -function isStringTag(tag) { - return typeof tag === "string" && // 96 is one less than the char code - // for "a" so this is checking that - // it's a lowercase character - tag.charCodeAt(0) > 96; -} -function lowercaseFirstLetter(string) { - if (!string) { - return string; - } - return string.charAt(0).toLowerCase() + string.slice(1); -} - -// node_modules/@mui/system/esm/styled/styled.js -var styled2 = createStyled3(); -var styled_default = styled2; - -// node_modules/@mui/utils/esm/resolveProps/resolveProps.js -function resolveProps(defaultProps, props) { - const output = { - ...props - }; - for (const key in defaultProps) { - if (Object.prototype.hasOwnProperty.call(defaultProps, key)) { - const propName = key; - if (propName === "components" || propName === "slots") { - output[propName] = { - ...defaultProps[propName], - ...output[propName] - }; - } else if (propName === "componentsProps" || propName === "slotProps") { - const defaultSlotProps = defaultProps[propName]; - const slotProps = props[propName]; - if (!slotProps) { - output[propName] = defaultSlotProps || {}; - } else if (!defaultSlotProps) { - output[propName] = slotProps; - } else { - output[propName] = { - ...slotProps - }; - for (const slotKey in defaultSlotProps) { - if (Object.prototype.hasOwnProperty.call(defaultSlotProps, slotKey)) { - const slotPropName = slotKey; - output[propName][slotPropName] = resolveProps(defaultSlotProps[slotPropName], slotProps[slotPropName]); - } - } - } - } else if (output[propName] === void 0) { - output[propName] = defaultProps[propName]; - } - } - } - return output; -} - -// node_modules/@mui/system/esm/useThemeProps/getThemeProps.js -function getThemeProps(params) { - const { - theme, - name, - props - } = params; - if (!theme || !theme.components || !theme.components[name] || !theme.components[name].defaultProps) { - return props; - } - return resolveProps(theme.components[name].defaultProps, props); -} - -// node_modules/@mui/system/esm/useThemeProps/useThemeProps.js -function useThemeProps({ - props, - name, - defaultTheme: defaultTheme5, - themeId -}) { - let theme = useTheme_default(defaultTheme5); - if (themeId) { - theme = theme[themeId] || theme; - } - return getThemeProps({ - theme, - name, - props - }); -} - -// node_modules/@mui/system/esm/useMediaQuery/useMediaQuery.js -var React12 = __toESM(require_react(), 1); - -// node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js -var React11 = __toESM(require_react(), 1); -var useEnhancedEffect = typeof window !== "undefined" ? React11.useLayoutEffect : React11.useEffect; -var useEnhancedEffect_default = useEnhancedEffect; - -// node_modules/@mui/system/esm/useMediaQuery/useMediaQuery.js -function useMediaQueryOld(query, defaultMatches, matchMedia, ssrMatchMedia, noSsr) { - const [match2, setMatch] = React12.useState(() => { - if (noSsr && matchMedia) { - return matchMedia(query).matches; - } - if (ssrMatchMedia) { - return ssrMatchMedia(query).matches; - } - return defaultMatches; - }); - useEnhancedEffect_default(() => { - if (!matchMedia) { - return void 0; - } - const queryList = matchMedia(query); - const updateMatch = () => { - setMatch(queryList.matches); - }; - updateMatch(); - queryList.addEventListener("change", updateMatch); - return () => { - queryList.removeEventListener("change", updateMatch); - }; - }, [query, matchMedia]); - return match2; -} -var safeReact = { - ...React12 -}; -var maybeReactUseSyncExternalStore = safeReact.useSyncExternalStore; -function useMediaQueryNew(query, defaultMatches, matchMedia, ssrMatchMedia, noSsr) { - const getDefaultSnapshot = React12.useCallback(() => defaultMatches, [defaultMatches]); - const getServerSnapshot = React12.useMemo(() => { - if (noSsr && matchMedia) { - return () => matchMedia(query).matches; - } - if (ssrMatchMedia !== null) { - const { - matches - } = ssrMatchMedia(query); - return () => matches; - } - return getDefaultSnapshot; - }, [getDefaultSnapshot, query, ssrMatchMedia, noSsr, matchMedia]); - const [getSnapshot, subscribe] = React12.useMemo(() => { - if (matchMedia === null) { - return [getDefaultSnapshot, () => () => { - }]; - } - const mediaQueryList = matchMedia(query); - return [() => mediaQueryList.matches, (notify) => { - mediaQueryList.addEventListener("change", notify); - return () => { - mediaQueryList.removeEventListener("change", notify); - }; - }]; - }, [getDefaultSnapshot, matchMedia, query]); - const match2 = maybeReactUseSyncExternalStore(subscribe, getSnapshot, getServerSnapshot); - return match2; -} -function unstable_createUseMediaQuery(params = {}) { - const { - themeId - } = params; - return function useMediaQuery2(queryInput, options = {}) { - let theme = useThemeWithoutDefault_default(); - if (theme && themeId) { - theme = theme[themeId] || theme; - } - const supportMatchMedia = typeof window !== "undefined" && typeof window.matchMedia !== "undefined"; - const { - defaultMatches = false, - matchMedia = supportMatchMedia ? window.matchMedia : null, - ssrMatchMedia = null, - noSsr = false - } = getThemeProps({ - name: "MuiUseMediaQuery", - props: options, - theme - }); - if (true) { - if (typeof queryInput === "function" && theme === null) { - console.error(["MUI: The `query` argument provided is invalid.", "You are providing a function without a theme in the context.", "One of the parent elements needs to use a ThemeProvider."].join("\n")); - } - } - let query = typeof queryInput === "function" ? queryInput(theme) : queryInput; - query = query.replace(/^@media( ?)/m, ""); - const useMediaQueryImplementation = maybeReactUseSyncExternalStore !== void 0 ? useMediaQueryNew : useMediaQueryOld; - const match2 = useMediaQueryImplementation(query, defaultMatches, matchMedia, ssrMatchMedia, noSsr); - if (true) { - React12.useDebugValue({ - query, - match: match2 - }); - } - return match2; - }; -} -var useMediaQuery = unstable_createUseMediaQuery(); - -// node_modules/@mui/utils/esm/clamp/clamp.js -function clamp(val, min = Number.MIN_SAFE_INTEGER, max = Number.MAX_SAFE_INTEGER) { - return Math.max(min, Math.min(val, max)); -} -var clamp_default = clamp; - -// node_modules/@mui/system/esm/colorManipulator/colorManipulator.js -function clampWrapper(value, min = 0, max = 1) { - if (true) { - if (value < min || value > max) { - console.error(`MUI: The value provided ${value} is out of range [${min}, ${max}].`); - } - } - return clamp_default(value, min, max); -} -function hexToRgb(color2) { - color2 = color2.slice(1); - const re = new RegExp(`.{1,${color2.length >= 6 ? 2 : 1}}`, "g"); - let colors = color2.match(re); - if (colors && colors[0].length === 1) { - colors = colors.map((n) => n + n); - } - if (true) { - if (color2.length !== color2.trim().length) { - console.error(`MUI: The color: "${color2}" is invalid. Make sure the color input doesn't contain leading/trailing space.`); - } - } - return colors ? `rgb${colors.length === 4 ? "a" : ""}(${colors.map((n, index) => { - return index < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1e3) / 1e3; - }).join(", ")})` : ""; -} -function decomposeColor(color2) { - if (color2.type) { - return color2; - } - if (color2.charAt(0) === "#") { - return decomposeColor(hexToRgb(color2)); - } - const marker = color2.indexOf("("); - const type = color2.substring(0, marker); - if (!["rgb", "rgba", "hsl", "hsla", "color"].includes(type)) { - throw new Error(true ? `MUI: Unsupported \`${color2}\` color. -The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : formatMuiErrorMessage(9, color2)); - } - let values2 = color2.substring(marker + 1, color2.length - 1); - let colorSpace; - if (type === "color") { - values2 = values2.split(" "); - colorSpace = values2.shift(); - if (values2.length === 4 && values2[3].charAt(0) === "/") { - values2[3] = values2[3].slice(1); - } - if (!["srgb", "display-p3", "a98-rgb", "prophoto-rgb", "rec-2020"].includes(colorSpace)) { - throw new Error(true ? `MUI: unsupported \`${colorSpace}\` color space. -The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : formatMuiErrorMessage(10, colorSpace)); - } - } else { - values2 = values2.split(","); - } - values2 = values2.map((value) => parseFloat(value)); - return { - type, - values: values2, - colorSpace - }; -} -var colorChannel = (color2) => { - const decomposedColor = decomposeColor(color2); - return decomposedColor.values.slice(0, 3).map((val, idx) => decomposedColor.type.includes("hsl") && idx !== 0 ? `${val}%` : val).join(" "); -}; -var private_safeColorChannel = (color2, warning) => { - try { - return colorChannel(color2); - } catch (error) { - if (warning && true) { - console.warn(warning); - } - return color2; - } -}; -function recomposeColor(color2) { - const { - type, - colorSpace - } = color2; - let { - values: values2 - } = color2; - if (type.includes("rgb")) { - values2 = values2.map((n, i) => i < 3 ? parseInt(n, 10) : n); - } else if (type.includes("hsl")) { - values2[1] = `${values2[1]}%`; - values2[2] = `${values2[2]}%`; - } - if (type.includes("color")) { - values2 = `${colorSpace} ${values2.join(" ")}`; - } else { - values2 = `${values2.join(", ")}`; - } - return `${type}(${values2})`; -} -function hslToRgb(color2) { - color2 = decomposeColor(color2); - const { - values: values2 - } = color2; - const h = values2[0]; - const s = values2[1] / 100; - const l = values2[2] / 100; - const a = s * Math.min(l, 1 - l); - const f = (n, k = (n + h / 30) % 12) => l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1); - let type = "rgb"; - const rgb = [Math.round(f(0) * 255), Math.round(f(8) * 255), Math.round(f(4) * 255)]; - if (color2.type === "hsla") { - type += "a"; - rgb.push(values2[3]); - } - return recomposeColor({ - type, - values: rgb - }); -} -function getLuminance(color2) { - color2 = decomposeColor(color2); - let rgb = color2.type === "hsl" || color2.type === "hsla" ? decomposeColor(hslToRgb(color2)).values : color2.values; - rgb = rgb.map((val) => { - if (color2.type !== "color") { - val /= 255; - } - return val <= 0.03928 ? val / 12.92 : ((val + 0.055) / 1.055) ** 2.4; - }); - return Number((0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2]).toFixed(3)); -} -function getContrastRatio(foreground, background) { - const lumA = getLuminance(foreground); - const lumB = getLuminance(background); - return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05); -} -function alpha(color2, value) { - color2 = decomposeColor(color2); - value = clampWrapper(value); - if (color2.type === "rgb" || color2.type === "hsl") { - color2.type += "a"; - } - if (color2.type === "color") { - color2.values[3] = `/${value}`; - } else { - color2.values[3] = value; - } - return recomposeColor(color2); -} -function private_safeAlpha(color2, value, warning) { - try { - return alpha(color2, value); - } catch (error) { - if (warning && true) { - console.warn(warning); - } - return color2; - } -} -function darken(color2, coefficient) { - color2 = decomposeColor(color2); - coefficient = clampWrapper(coefficient); - if (color2.type.includes("hsl")) { - color2.values[2] *= 1 - coefficient; - } else if (color2.type.includes("rgb") || color2.type.includes("color")) { - for (let i = 0; i < 3; i += 1) { - color2.values[i] *= 1 - coefficient; - } - } - return recomposeColor(color2); -} -function private_safeDarken(color2, coefficient, warning) { - try { - return darken(color2, coefficient); - } catch (error) { - if (warning && true) { - console.warn(warning); - } - return color2; - } -} -function lighten(color2, coefficient) { - color2 = decomposeColor(color2); - coefficient = clampWrapper(coefficient); - if (color2.type.includes("hsl")) { - color2.values[2] += (100 - color2.values[2]) * coefficient; - } else if (color2.type.includes("rgb")) { - for (let i = 0; i < 3; i += 1) { - color2.values[i] += (255 - color2.values[i]) * coefficient; - } - } else if (color2.type.includes("color")) { - for (let i = 0; i < 3; i += 1) { - color2.values[i] += (1 - color2.values[i]) * coefficient; - } - } - return recomposeColor(color2); -} -function private_safeLighten(color2, coefficient, warning) { - try { - return lighten(color2, coefficient); - } catch (error) { - if (warning && true) { - console.warn(warning); - } - return color2; - } -} -function emphasize(color2, coefficient = 0.15) { - return getLuminance(color2) > 0.5 ? darken(color2, coefficient) : lighten(color2, coefficient); -} -function private_safeEmphasize(color2, coefficient, warning) { - try { - return emphasize(color2, coefficient); - } catch (error) { - if (warning && true) { - console.warn(warning); - } - return color2; - } -} - -// node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js -var React30 = __toESM(require_react(), 1); -var import_prop_types13 = __toESM(require_prop_types(), 1); - -// node_modules/@mui/private-theming/esm/ThemeProvider/ThemeProvider.js -var React27 = __toESM(require_react(), 1); -var import_prop_types10 = __toESM(require_prop_types(), 1); - -// node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes.js -function chainPropTypes(propType1, propType2) { - if (false) { - return () => null; - } - return function validate(...args) { - return propType1(...args) || propType2(...args); - }; -} - -// node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js -var import_prop_types7 = __toESM(require_prop_types(), 1); -function isClassComponent(elementType) { - const { - prototype = {} - } = elementType; - return Boolean(prototype.isReactComponent); -} -function acceptingRef(props, propName, componentName, location, propFullName) { - const element = props[propName]; - const safePropName = propFullName || propName; - if (element == null || // When server-side rendering React doesn't warn either. - // This is not an accurate check for SSR. - // This is only in place for Emotion compat. - // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved. - typeof window === "undefined") { - return null; - } - let warningHint; - const elementType = element.type; - if (typeof elementType === "function" && !isClassComponent(elementType)) { - warningHint = "Did you accidentally use a plain function component for an element instead?"; - } - if (warningHint !== void 0) { - return new Error(`Invalid ${location} \`${safePropName}\` supplied to \`${componentName}\`. Expected an element that can hold a ref. ${warningHint} For more information see https://mui.com/r/caveat-with-refs-guide`); - } - return null; -} -var elementAcceptingRef = chainPropTypes(import_prop_types7.default.element, acceptingRef); -elementAcceptingRef.isRequired = chainPropTypes(import_prop_types7.default.element.isRequired, acceptingRef); - -// node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js -var import_prop_types8 = __toESM(require_prop_types(), 1); -function isClassComponent2(elementType) { - const { - prototype = {} - } = elementType; - return Boolean(prototype.isReactComponent); -} -function elementTypeAcceptingRef(props, propName, componentName, location, propFullName) { - const propValue = props[propName]; - const safePropName = propFullName || propName; - if (propValue == null || // When server-side rendering React doesn't warn either. - // This is not an accurate check for SSR. - // This is only in place for emotion compat. - // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved. - typeof window === "undefined") { - return null; - } - let warningHint; - if (typeof propValue === "function" && !isClassComponent2(propValue)) { - warningHint = "Did you accidentally provide a plain function component instead?"; - } - if (warningHint !== void 0) { - return new Error(`Invalid ${location} \`${safePropName}\` supplied to \`${componentName}\`. Expected an element type that can hold a ref. ${warningHint} For more information see https://mui.com/r/caveat-with-refs-guide`); - } - return null; -} -var elementTypeAcceptingRef_default = chainPropTypes(import_prop_types8.default.elementType, elementTypeAcceptingRef); - -// node_modules/@mui/utils/esm/exactProp/exactProp.js -var specialProperty = "exact-prop: ​"; -function exactProp(propTypes) { - if (false) { - return propTypes; - } - return { - ...propTypes, - [specialProperty]: (props) => { - const unsupportedProps = Object.keys(props).filter((prop) => !propTypes.hasOwnProperty(prop)); - if (unsupportedProps.length > 0) { - return new Error(`The following props are not supported: ${unsupportedProps.map((prop) => `\`${prop}\``).join(", ")}. Please remove them.`); - } - return null; - } - }; -} - -// node_modules/@mui/utils/esm/ponyfillGlobal/ponyfillGlobal.js -var ponyfillGlobal_default = typeof window != "undefined" && window.Math == Math ? window : typeof self != "undefined" && self.Math == Math ? self : Function("return this")(); - -// node_modules/@mui/utils/esm/refType/refType.js -var import_prop_types9 = __toESM(require_prop_types(), 1); -var refType = import_prop_types9.default.oneOfType([import_prop_types9.default.func, import_prop_types9.default.object]); - -// node_modules/@mui/utils/esm/isMuiElement/isMuiElement.js -var React13 = __toESM(require_react(), 1); -function isMuiElement(element, muiNames) { - var _a, _b, _c; - return React13.isValidElement(element) && muiNames.indexOf( - // For server components `muiName` is avaialble in element.type._payload.value.muiName - // relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45 - // eslint-disable-next-line no-underscore-dangle - element.type.muiName ?? ((_c = (_b = (_a = element.type) == null ? void 0 : _a._payload) == null ? void 0 : _b.value) == null ? void 0 : _c.muiName) - ) !== -1; -} - -// node_modules/@mui/utils/esm/useId/useId.js -var React14 = __toESM(require_react(), 1); -var safeReact2 = { - ...React14 -}; -var maybeReactUseId = safeReact2.useId; - -// node_modules/@mui/utils/esm/useControlled/useControlled.js -var React15 = __toESM(require_react(), 1); - -// node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js -var React16 = __toESM(require_react(), 1); - -// node_modules/@mui/utils/esm/useForkRef/useForkRef.js -var React17 = __toESM(require_react(), 1); - -// node_modules/@mui/utils/esm/useLazyRef/useLazyRef.js -var React18 = __toESM(require_react(), 1); - -// node_modules/@mui/utils/esm/useOnMount/useOnMount.js -var React19 = __toESM(require_react(), 1); - -// node_modules/@mui/utils/esm/useTimeout/useTimeout.js -var Timeout = class _Timeout { - constructor() { - __publicField(this, "currentId", null); - __publicField(this, "clear", () => { - if (this.currentId !== null) { - clearTimeout(this.currentId); - this.currentId = null; - } - }); - __publicField(this, "disposeEffect", () => { - return this.clear; - }); - } - static create() { - return new _Timeout(); - } - /** - * Executes `fn` after `delay`, clearing any previously scheduled call. - */ - start(delay, fn) { - this.clear(); - this.currentId = setTimeout(() => { - this.currentId = null; - fn(); - }, delay); - } -}; - -// node_modules/@mui/utils/esm/useIsFocusVisible/useIsFocusVisible.js -var React20 = __toESM(require_react(), 1); -var hadFocusVisibleRecentlyTimeout = new Timeout(); - -// node_modules/@mui/utils/esm/usePreviousProps/usePreviousProps.js -var React21 = __toESM(require_react(), 1); - -// node_modules/@mui/utils/esm/getValidReactChildren/getValidReactChildren.js -var React22 = __toESM(require_react(), 1); - -// node_modules/@mui/utils/esm/integerPropType/integerPropType.js -function getTypeByValue(value) { - const valueType = typeof value; - switch (valueType) { - case "number": - if (Number.isNaN(value)) { - return "NaN"; - } - if (!Number.isFinite(value)) { - return "Infinity"; - } - if (value !== Math.floor(value)) { - return "float"; - } - return "number"; - case "object": - if (value === null) { - return "null"; - } - return value.constructor.name; - default: - return valueType; - } -} -function requiredInteger(props, propName, componentName, location) { - const propValue = props[propName]; - if (propValue == null || !Number.isInteger(propValue)) { - const propType = getTypeByValue(propValue); - return new RangeError(`Invalid ${location} \`${propName}\` of type \`${propType}\` supplied to \`${componentName}\`, expected \`integer\`.`); - } - return null; -} -function validator(props, propName, ...other) { - const propValue = props[propName]; - if (propValue === void 0) { - return null; - } - return requiredInteger(props, propName, ...other); -} -function validatorNoop() { - return null; -} -validator.isRequired = requiredInteger; -validatorNoop.isRequired = validatorNoop; - -// node_modules/@mui/utils/esm/getReactNodeRef/getReactNodeRef.js -var React23 = __toESM(require_react(), 1); - -// node_modules/@mui/utils/esm/getReactElementRef/getReactElementRef.js -var React24 = __toESM(require_react(), 1); - -// node_modules/@mui/private-theming/esm/useTheme/ThemeContext.js -var React25 = __toESM(require_react(), 1); -var ThemeContext2 = React25.createContext(null); -if (true) { - ThemeContext2.displayName = "ThemeContext"; -} -var ThemeContext_default = ThemeContext2; - -// node_modules/@mui/private-theming/esm/useTheme/useTheme.js -var React26 = __toESM(require_react(), 1); -function useTheme4() { - const theme = React26.useContext(ThemeContext_default); - if (true) { - React26.useDebugValue(theme); - } - return theme; -} - -// node_modules/@mui/private-theming/esm/ThemeProvider/nested.js -var hasSymbol = typeof Symbol === "function" && Symbol.for; -var nested_default = hasSymbol ? Symbol.for("mui.nested") : "__THEME_NESTED__"; - -// node_modules/@mui/private-theming/esm/ThemeProvider/ThemeProvider.js -var import_jsx_runtime5 = __toESM(require_jsx_runtime(), 1); -function mergeOuterLocalTheme(outerTheme, localTheme) { - if (typeof localTheme === "function") { - const mergedTheme = localTheme(outerTheme); - if (true) { - if (!mergedTheme) { - console.error(["MUI: You should return an object from your theme function, i.e.", " ({})} />"].join("\n")); - } - } - return mergedTheme; - } - return { - ...outerTheme, - ...localTheme - }; -} -function ThemeProvider2(props) { - const { - children, - theme: localTheme - } = props; - const outerTheme = useTheme4(); - if (true) { - if (outerTheme === null && typeof localTheme === "function") { - console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:", " outerTheme} />", "", "However, no outer theme is present.", "Make sure a theme is already injected higher in the React tree or provide a theme object."].join("\n")); - } - } - const theme = React27.useMemo(() => { - const output = outerTheme === null ? { - ...localTheme - } : mergeOuterLocalTheme(outerTheme, localTheme); - if (output != null) { - output[nested_default] = outerTheme !== null; - } - return output; - }, [localTheme, outerTheme]); - return (0, import_jsx_runtime5.jsx)(ThemeContext_default.Provider, { - value: theme, - children - }); -} -true ? ThemeProvider2.propTypes = { - /** - * Your component tree. - */ - children: import_prop_types10.default.node, - /** - * A theme object. You can provide a function to extend the outer theme. - */ - theme: import_prop_types10.default.oneOfType([import_prop_types10.default.object, import_prop_types10.default.func]).isRequired -} : void 0; -if (true) { - true ? ThemeProvider2.propTypes = exactProp(ThemeProvider2.propTypes) : void 0; -} -var ThemeProvider_default = ThemeProvider2; - -// node_modules/@mui/system/esm/RtlProvider/index.js -var React28 = __toESM(require_react(), 1); -var import_prop_types11 = __toESM(require_prop_types(), 1); -var import_jsx_runtime6 = __toESM(require_jsx_runtime(), 1); -var RtlContext = React28.createContext(); -function RtlProvider({ - value, - ...props -}) { - return (0, import_jsx_runtime6.jsx)(RtlContext.Provider, { - value: value ?? true, - ...props - }); -} -true ? RtlProvider.propTypes = { - children: import_prop_types11.default.node, - value: import_prop_types11.default.bool -} : void 0; -var RtlProvider_default = RtlProvider; - -// node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js -var React29 = __toESM(require_react(), 1); -var import_prop_types12 = __toESM(require_prop_types(), 1); -var import_jsx_runtime7 = __toESM(require_jsx_runtime(), 1); -var PropsContext = React29.createContext(void 0); -function DefaultPropsProvider({ - value, - children -}) { - return (0, import_jsx_runtime7.jsx)(PropsContext.Provider, { - value, - children - }); -} -true ? DefaultPropsProvider.propTypes = { - // ┌────────────────────────────── Warning ──────────────────────────────┐ - // │ These PropTypes are generated from the TypeScript type definitions. │ - // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │ - // └─────────────────────────────────────────────────────────────────────┘ - /** - * @ignore - */ - children: import_prop_types12.default.node, - /** - * @ignore - */ - value: import_prop_types12.default.object -} : void 0; -function getThemeProps2(params) { - const { - theme, - name, - props - } = params; - if (!theme || !theme.components || !theme.components[name]) { - return props; - } - const config = theme.components[name]; - if (config.defaultProps) { - return resolveProps(config.defaultProps, props); - } - if (!config.styleOverrides && !config.variants) { - return resolveProps(config, props); - } - return props; -} -function useDefaultProps({ - props, - name -}) { - const ctx = React29.useContext(PropsContext); - return getThemeProps2({ - props, - name, - theme: { - components: ctx - } - }); -} -var DefaultPropsProvider_default = DefaultPropsProvider; - -// node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js -var import_jsx_runtime8 = __toESM(require_jsx_runtime(), 1); -var EMPTY_THEME = {}; -function useThemeScoping(themeId, upperTheme, localTheme, isPrivate = false) { - return React30.useMemo(() => { - const resolvedTheme = themeId ? upperTheme[themeId] || upperTheme : upperTheme; - if (typeof localTheme === "function") { - const mergedTheme = localTheme(resolvedTheme); - const result = themeId ? { - ...upperTheme, - [themeId]: mergedTheme - } : mergedTheme; - if (isPrivate) { - return () => result; - } - return result; - } - return themeId ? { - ...upperTheme, - [themeId]: localTheme - } : { - ...upperTheme, - ...localTheme - }; - }, [themeId, upperTheme, localTheme, isPrivate]); -} -function ThemeProvider3(props) { - const { - children, - theme: localTheme, - themeId - } = props; - const upperTheme = useThemeWithoutDefault_default(EMPTY_THEME); - const upperPrivateTheme = useTheme4() || EMPTY_THEME; - if (true) { - if (upperTheme === null && typeof localTheme === "function" || themeId && upperTheme && !upperTheme[themeId] && typeof localTheme === "function") { - console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:", " outerTheme} />", "", "However, no outer theme is present.", "Make sure a theme is already injected higher in the React tree or provide a theme object."].join("\n")); - } - } - const engineTheme = useThemeScoping(themeId, upperTheme, localTheme); - const privateTheme = useThemeScoping(themeId, upperPrivateTheme, localTheme, true); - const rtlValue = (themeId ? engineTheme[themeId] : engineTheme).direction === "rtl"; - return (0, import_jsx_runtime8.jsx)(ThemeProvider_default, { - theme: privateTheme, - children: (0, import_jsx_runtime8.jsx)(ThemeContext.Provider, { - value: engineTheme, - children: (0, import_jsx_runtime8.jsx)(RtlProvider_default, { - value: rtlValue, - children: (0, import_jsx_runtime8.jsx)(DefaultPropsProvider_default, { - value: themeId ? engineTheme[themeId].components : engineTheme.components, - children - }) - }) - }) - }); -} -true ? ThemeProvider3.propTypes = { - // ┌────────────────────────────── Warning ──────────────────────────────┐ - // │ These PropTypes are generated from the TypeScript type definitions. │ - // │ To update them, edit the d.ts file and run `pnpm proptypes`. │ - // └─────────────────────────────────────────────────────────────────────┘ - /** - * Your component tree. - */ - children: import_prop_types13.default.node, - /** - * A theme object. You can provide a function to extend the outer theme. - */ - theme: import_prop_types13.default.oneOfType([import_prop_types13.default.func, import_prop_types13.default.object]).isRequired, - /** - * The design system's unique id for getting the corresponded theme when there are multiple design systems. - */ - themeId: import_prop_types13.default.string -} : void 0; -if (true) { - true ? ThemeProvider3.propTypes = exactProp(ThemeProvider3.propTypes) : void 0; -} - -// node_modules/@mui/system/esm/memoTheme.js -var arg = { - theme: void 0 -}; -function unstable_memoTheme(styleFn) { - let lastValue; - let lastTheme; - return function styleMemoized(props) { - let value = lastValue; - if (value === void 0 || props.theme !== lastTheme) { - arg.theme = props.theme; - value = preprocessStyles(styleFn(arg)); - lastValue = value; - lastTheme = props.theme; - } - return value; - }; -} - -// node_modules/@mui/system/esm/cssVars/createCssVarsProvider.js -var React33 = __toESM(require_react(), 1); -var import_prop_types14 = __toESM(require_prop_types(), 1); - -// node_modules/@mui/system/esm/InitColorSchemeScript/InitColorSchemeScript.js -var React31 = __toESM(require_react(), 1); -var import_jsx_runtime9 = __toESM(require_jsx_runtime(), 1); - -// node_modules/@mui/system/esm/cssVars/useCurrentColorScheme.js -var React32 = __toESM(require_react(), 1); - -// node_modules/@mui/system/esm/cssVars/createCssVarsProvider.js -var import_jsx_runtime10 = __toESM(require_jsx_runtime(), 1); - -// node_modules/@mui/system/esm/cssVars/createGetCssVar.js -function createGetCssVar(prefix3 = "") { - function appendVar(...vars) { - if (!vars.length) { - return ""; - } - const value = vars[0]; - if (typeof value === "string" && !value.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)) { - return `, var(--${prefix3 ? `${prefix3}-` : ""}${value}${appendVar(...vars.slice(1))})`; - } - return `, ${value}`; - } - const getCssVar = (field, ...fallbacks) => { - return `var(--${prefix3 ? `${prefix3}-` : ""}${field}${appendVar(...fallbacks)})`; - }; - return getCssVar; -} - -// node_modules/@mui/system/esm/cssVars/cssVarsParser.js -var assignNestedKeys = (obj, keys, value, arrayKeys = []) => { - let temp = obj; - keys.forEach((k, index) => { - if (index === keys.length - 1) { - if (Array.isArray(temp)) { - temp[Number(k)] = value; - } else if (temp && typeof temp === "object") { - temp[k] = value; - } - } else if (temp && typeof temp === "object") { - if (!temp[k]) { - temp[k] = arrayKeys.includes(k) ? [] : {}; - } - temp = temp[k]; - } - }); -}; -var walkObjectDeep = (obj, callback, shouldSkipPaths) => { - function recurse(object, parentKeys = [], arrayKeys = []) { - Object.entries(object).forEach(([key, value]) => { - if (!shouldSkipPaths || shouldSkipPaths && !shouldSkipPaths([...parentKeys, key])) { - if (value !== void 0 && value !== null) { - if (typeof value === "object" && Object.keys(value).length > 0) { - recurse(value, [...parentKeys, key], Array.isArray(value) ? [...arrayKeys, key] : arrayKeys); - } else { - callback([...parentKeys, key], value, arrayKeys); - } - } - } - }); - } - recurse(obj); -}; -var getCssValue = (keys, value) => { - if (typeof value === "number") { - if (["lineHeight", "fontWeight", "opacity", "zIndex"].some((prop) => keys.includes(prop))) { - return value; - } - const lastKey = keys[keys.length - 1]; - if (lastKey.toLowerCase().includes("opacity")) { - return value; - } - return `${value}px`; - } - return value; -}; -function cssVarsParser(theme, options) { - const { - prefix: prefix3, - shouldSkipGeneratingVar: shouldSkipGeneratingVar2 - } = options || {}; - const css2 = {}; - const vars = {}; - const varsWithDefaults = {}; - walkObjectDeep( - theme, - (keys, value, arrayKeys) => { - if (typeof value === "string" || typeof value === "number") { - if (!shouldSkipGeneratingVar2 || !shouldSkipGeneratingVar2(keys, value)) { - const cssVar = `--${prefix3 ? `${prefix3}-` : ""}${keys.join("-")}`; - const resolvedValue = getCssValue(keys, value); - Object.assign(css2, { - [cssVar]: resolvedValue - }); - assignNestedKeys(vars, keys, `var(${cssVar})`, arrayKeys); - assignNestedKeys(varsWithDefaults, keys, `var(${cssVar}, ${resolvedValue})`, arrayKeys); - } - } - }, - (keys) => keys[0] === "vars" - // skip 'vars/*' paths - ); - return { - css: css2, - vars, - varsWithDefaults - }; -} - -// node_modules/@mui/system/esm/cssVars/prepareCssVars.js -function prepareCssVars(theme, parserConfig = {}) { - const { - getSelector = defaultGetSelector, - disableCssColorScheme, - colorSchemeSelector: selector - } = parserConfig; - const { - colorSchemes = {}, - components, - defaultColorScheme = "light", - ...otherTheme - } = theme; - const { - vars: rootVars, - css: rootCss, - varsWithDefaults: rootVarsWithDefaults - } = cssVarsParser(otherTheme, parserConfig); - let themeVars = rootVarsWithDefaults; - const colorSchemesMap = {}; - const { - [defaultColorScheme]: defaultScheme, - ...otherColorSchemes - } = colorSchemes; - Object.entries(otherColorSchemes || {}).forEach(([key, scheme]) => { - const { - vars, - css: css2, - varsWithDefaults - } = cssVarsParser(scheme, parserConfig); - themeVars = deepmerge(themeVars, varsWithDefaults); - colorSchemesMap[key] = { - css: css2, - vars - }; - }); - if (defaultScheme) { - const { - css: css2, - vars, - varsWithDefaults - } = cssVarsParser(defaultScheme, parserConfig); - themeVars = deepmerge(themeVars, varsWithDefaults); - colorSchemesMap[defaultColorScheme] = { - css: css2, - vars - }; - } - function defaultGetSelector(colorScheme, cssObject) { - var _a, _b; - let rule = selector; - if (selector === "class") { - rule = ".%s"; - } - if (selector === "data") { - rule = "[data-%s]"; - } - if ((selector == null ? void 0 : selector.startsWith("data-")) && !selector.includes("%s")) { - rule = `[${selector}="%s"]`; - } - if (colorScheme) { - if (rule === "media") { - if (theme.defaultColorScheme === colorScheme) { - return ":root"; - } - const mode = ((_b = (_a = colorSchemes[colorScheme]) == null ? void 0 : _a.palette) == null ? void 0 : _b.mode) || colorScheme; - return { - [`@media (prefers-color-scheme: ${mode})`]: { - ":root": cssObject - } - }; - } - if (rule) { - if (theme.defaultColorScheme === colorScheme) { - return `:root, ${rule.replace("%s", String(colorScheme))}`; - } - return rule.replace("%s", String(colorScheme)); - } - } - return ":root"; - } - const generateThemeVars = () => { - let vars = { - ...rootVars - }; - Object.entries(colorSchemesMap).forEach(([, { - vars: schemeVars - }]) => { - vars = deepmerge(vars, schemeVars); - }); - return vars; - }; - const generateStyleSheets = () => { - var _a, _b; - const stylesheets = []; - const colorScheme = theme.defaultColorScheme || "light"; - function insertStyleSheet(key, css2) { - if (Object.keys(css2).length) { - stylesheets.push(typeof key === "string" ? { - [key]: { - ...css2 - } - } : key); - } - } - insertStyleSheet(getSelector(void 0, { - ...rootCss - }), rootCss); - const { - [colorScheme]: defaultSchemeVal, - ...other - } = colorSchemesMap; - if (defaultSchemeVal) { - const { - css: css2 - } = defaultSchemeVal; - const cssColorSheme = (_b = (_a = colorSchemes[colorScheme]) == null ? void 0 : _a.palette) == null ? void 0 : _b.mode; - const finalCss = !disableCssColorScheme && cssColorSheme ? { - colorScheme: cssColorSheme, - ...css2 - } : { - ...css2 - }; - insertStyleSheet(getSelector(colorScheme, { - ...finalCss - }), finalCss); - } - Object.entries(other).forEach(([key, { - css: css2 - }]) => { - var _a2, _b2; - const cssColorSheme = (_b2 = (_a2 = colorSchemes[key]) == null ? void 0 : _a2.palette) == null ? void 0 : _b2.mode; - const finalCss = !disableCssColorScheme && cssColorSheme ? { - colorScheme: cssColorSheme, - ...css2 - } : { - ...css2 - }; - insertStyleSheet(getSelector(key, { - ...finalCss - }), finalCss); - }); - return stylesheets; - }; - return { - vars: themeVars, - generateThemeVars, - generateStyleSheets - }; -} -var prepareCssVars_default = prepareCssVars; - -// node_modules/@mui/system/esm/cssVars/getColorSchemeSelector.js -function createGetColorSchemeSelector(selector) { - return function getColorSchemeSelector(colorScheme) { - if (selector === "media") { - if (true) { - if (colorScheme !== "light" && colorScheme !== "dark") { - console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${colorScheme}'.`); - } - } - return `@media (prefers-color-scheme: ${colorScheme})`; - } - if (selector) { - if (selector.startsWith("data-") && !selector.includes("%s")) { - return `[${selector}="${colorScheme}"] &`; - } - if (selector === "class") { - return `.${colorScheme} &`; - } - if (selector === "data") { - return `[data-${colorScheme}] &`; - } - return `${selector.replace("%s", colorScheme)} &`; - } - return "&"; - }; -} - -// node_modules/@mui/system/esm/version/index.js -var major = Number("7"); -var minor = Number("0"); -var patch = Number("2"); - -// node_modules/@mui/system/esm/Container/createContainer.js -var React34 = __toESM(require_react(), 1); -var import_prop_types15 = __toESM(require_prop_types(), 1); -var import_jsx_runtime11 = __toESM(require_jsx_runtime(), 1); -var defaultTheme = createTheme_default(); -var defaultCreateStyledComponent = styled_default("div", { - name: "MuiContainer", - slot: "Root", - overridesResolver: (props, styles) => { - const { - ownerState - } = props; - return [styles.root, styles[`maxWidth${capitalize(String(ownerState.maxWidth))}`], ownerState.fixed && styles.fixed, ownerState.disableGutters && styles.disableGutters]; - } -}); -var useThemePropsDefault = (inProps) => useThemeProps({ - props: inProps, - name: "MuiContainer", - defaultTheme -}); -var useUtilityClasses = (ownerState, componentName) => { - const getContainerUtilityClass = (slot) => { - return generateUtilityClass(componentName, slot); - }; - const { - classes, - fixed, - disableGutters, - maxWidth: maxWidth2 - } = ownerState; - const slots = { - root: ["root", maxWidth2 && `maxWidth${capitalize(String(maxWidth2))}`, fixed && "fixed", disableGutters && "disableGutters"] - }; - return composeClasses(slots, getContainerUtilityClass, classes); -}; -function createContainer(options = {}) { - const { - // This will allow adding custom styled fn (for example for custom sx style function) - createStyledComponent = defaultCreateStyledComponent, - useThemeProps: useThemeProps2 = useThemePropsDefault, - componentName = "MuiContainer" - } = options; - const ContainerRoot = createStyledComponent(({ - theme, - ownerState - }) => ({ - width: "100%", - marginLeft: "auto", - boxSizing: "border-box", - marginRight: "auto", - ...!ownerState.disableGutters && { - paddingLeft: theme.spacing(2), - paddingRight: theme.spacing(2), - // @ts-ignore module augmentation fails if custom breakpoints are used - [theme.breakpoints.up("sm")]: { - paddingLeft: theme.spacing(3), - paddingRight: theme.spacing(3) - } - } - }), ({ - theme, - ownerState - }) => ownerState.fixed && Object.keys(theme.breakpoints.values).reduce((acc, breakpointValueKey) => { - const breakpoint = breakpointValueKey; - const value = theme.breakpoints.values[breakpoint]; - if (value !== 0) { - acc[theme.breakpoints.up(breakpoint)] = { - maxWidth: `${value}${theme.breakpoints.unit}` - }; - } - return acc; - }, {}), ({ - theme, - ownerState - }) => ({ - // @ts-ignore module augmentation fails if custom breakpoints are used - ...ownerState.maxWidth === "xs" && { - // @ts-ignore module augmentation fails if custom breakpoints are used - [theme.breakpoints.up("xs")]: { - // @ts-ignore module augmentation fails if custom breakpoints are used - maxWidth: Math.max(theme.breakpoints.values.xs, 444) - } - }, - ...ownerState.maxWidth && // @ts-ignore module augmentation fails if custom breakpoints are used - ownerState.maxWidth !== "xs" && { - // @ts-ignore module augmentation fails if custom breakpoints are used - [theme.breakpoints.up(ownerState.maxWidth)]: { - // @ts-ignore module augmentation fails if custom breakpoints are used - maxWidth: `${theme.breakpoints.values[ownerState.maxWidth]}${theme.breakpoints.unit}` - } - } - })); - const Container2 = React34.forwardRef(function Container3(inProps, ref) { - const props = useThemeProps2(inProps); - const { - className, - component = "div", - disableGutters = false, - fixed = false, - maxWidth: maxWidth2 = "lg", - classes: classesProp, - ...other - } = props; - const ownerState = { - ...props, - component, - disableGutters, - fixed, - maxWidth: maxWidth2 - }; - const classes = useUtilityClasses(ownerState, componentName); - return ( - // @ts-ignore theme is injected by the styled util - (0, import_jsx_runtime11.jsx)(ContainerRoot, { - as: component, - ownerState, - className: clsx_default(classes.root, className), - ref, - ...other - }) - ); - }); - true ? Container2.propTypes = { - children: import_prop_types15.default.node, - classes: import_prop_types15.default.object, - className: import_prop_types15.default.string, - component: import_prop_types15.default.elementType, - disableGutters: import_prop_types15.default.bool, - fixed: import_prop_types15.default.bool, - maxWidth: import_prop_types15.default.oneOfType([import_prop_types15.default.oneOf(["xs", "sm", "md", "lg", "xl", false]), import_prop_types15.default.string]), - sx: import_prop_types15.default.oneOfType([import_prop_types15.default.arrayOf(import_prop_types15.default.oneOfType([import_prop_types15.default.func, import_prop_types15.default.object, import_prop_types15.default.bool])), import_prop_types15.default.func, import_prop_types15.default.object]) - } : void 0; - return Container2; -} - -// node_modules/@mui/system/esm/Container/Container.js -var import_prop_types16 = __toESM(require_prop_types(), 1); -var Container = createContainer(); -true ? Container.propTypes = { - // ┌────────────────────────────── Warning ──────────────────────────────┐ - // │ These PropTypes are generated from the TypeScript type definitions. │ - // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │ - // └─────────────────────────────────────────────────────────────────────┘ - /** - * @ignore - */ - children: import_prop_types16.default.node, - /** - * Override or extend the styles applied to the component. - */ - classes: import_prop_types16.default.object, - /** - * The component used for the root node. - * Either a string to use a HTML element or a component. - */ - component: import_prop_types16.default.elementType, - /** - * If `true`, the left and right padding is removed. - * @default false - */ - disableGutters: import_prop_types16.default.bool, - /** - * Set the max-width to match the min-width of the current breakpoint. - * This is useful if you'd prefer to design for a fixed set of sizes - * instead of trying to accommodate a fully fluid viewport. - * It's fluid by default. - * @default false - */ - fixed: import_prop_types16.default.bool, - /** - * Determine the max-width of the container. - * The container width grows with the size of the screen. - * Set to `false` to disable `maxWidth`. - * @default 'lg' - */ - maxWidth: import_prop_types16.default.oneOfType([import_prop_types16.default.oneOf(["xs", "sm", "md", "lg", "xl", false]), import_prop_types16.default.string]), - /** - * The system prop that allows defining system overrides as well as additional CSS styles. - */ - sx: import_prop_types16.default.oneOfType([import_prop_types16.default.arrayOf(import_prop_types16.default.oneOfType([import_prop_types16.default.func, import_prop_types16.default.object, import_prop_types16.default.bool])), import_prop_types16.default.func, import_prop_types16.default.object]) -} : void 0; - -// node_modules/@mui/system/esm/Container/containerClasses.js -var containerClasses = generateUtilityClasses("MuiContainer", ["root", "disableGutters", "fixed", "maxWidthXs", "maxWidthSm", "maxWidthMd", "maxWidthLg", "maxWidthXl"]); - -// node_modules/@mui/system/esm/Grid/Grid.js -var import_prop_types18 = __toESM(require_prop_types(), 1); - -// node_modules/@mui/system/esm/Grid/createGrid.js -var React35 = __toESM(require_react(), 1); -var import_prop_types17 = __toESM(require_prop_types(), 1); - -// node_modules/@mui/system/esm/Grid/traverseBreakpoints.js -var filterBreakpointKeys = (breakpointsKeys, responsiveKeys) => breakpointsKeys.filter((key) => responsiveKeys.includes(key)); -var traverseBreakpoints = (breakpoints, responsive, iterator) => { - const smallestBreakpoint = breakpoints.keys[0]; - if (Array.isArray(responsive)) { - responsive.forEach((breakpointValue, index) => { - iterator((responsiveStyles, style4) => { - if (index <= breakpoints.keys.length - 1) { - if (index === 0) { - Object.assign(responsiveStyles, style4); - } else { - responsiveStyles[breakpoints.up(breakpoints.keys[index])] = style4; - } - } - }, breakpointValue); - }); - } else if (responsive && typeof responsive === "object") { - const keys = Object.keys(responsive).length > breakpoints.keys.length ? breakpoints.keys : filterBreakpointKeys(breakpoints.keys, Object.keys(responsive)); - keys.forEach((key) => { - if (breakpoints.keys.includes(key)) { - const breakpointValue = responsive[key]; - if (breakpointValue !== void 0) { - iterator((responsiveStyles, style4) => { - if (smallestBreakpoint === key) { - Object.assign(responsiveStyles, style4); - } else { - responsiveStyles[breakpoints.up(key)] = style4; - } - }, breakpointValue); - } - } - }); - } else if (typeof responsive === "number" || typeof responsive === "string") { - iterator((responsiveStyles, style4) => { - Object.assign(responsiveStyles, style4); - }, responsive); - } -}; - -// node_modules/@mui/system/esm/Grid/gridGenerator.js -function getSelfSpacingVar(axis) { - return `--Grid-${axis}Spacing`; -} -function getParentSpacingVar(axis) { - return `--Grid-parent-${axis}Spacing`; -} -var selfColumnsVar = "--Grid-columns"; -var parentColumnsVar = "--Grid-parent-columns"; -var generateGridSizeStyles = ({ - theme, - ownerState -}) => { - const styles = {}; - traverseBreakpoints(theme.breakpoints, ownerState.size, (appendStyle, value) => { - let style4 = {}; - if (value === "grow") { - style4 = { - flexBasis: 0, - flexGrow: 1, - maxWidth: "100%" - }; - } - if (value === "auto") { - style4 = { - flexBasis: "auto", - flexGrow: 0, - flexShrink: 0, - maxWidth: "none", - width: "auto" - }; - } - if (typeof value === "number") { - style4 = { - flexGrow: 0, - flexBasis: "auto", - width: `calc(100% * ${value} / var(${parentColumnsVar}) - (var(${parentColumnsVar}) - ${value}) * (var(${getParentSpacingVar("column")}) / var(${parentColumnsVar})))` - }; - } - appendStyle(styles, style4); - }); - return styles; -}; -var generateGridOffsetStyles = ({ - theme, - ownerState -}) => { - const styles = {}; - traverseBreakpoints(theme.breakpoints, ownerState.offset, (appendStyle, value) => { - let style4 = {}; - if (value === "auto") { - style4 = { - marginLeft: "auto" - }; - } - if (typeof value === "number") { - style4 = { - marginLeft: value === 0 ? "0px" : `calc(100% * ${value} / var(${parentColumnsVar}) + var(${getParentSpacingVar("column")}) * ${value} / var(${parentColumnsVar}))` - }; - } - appendStyle(styles, style4); - }); - return styles; -}; -var generateGridColumnsStyles = ({ - theme, - ownerState -}) => { - if (!ownerState.container) { - return {}; - } - const styles = { - [selfColumnsVar]: 12 - }; - traverseBreakpoints(theme.breakpoints, ownerState.columns, (appendStyle, value) => { - const columns = value ?? 12; - appendStyle(styles, { - [selfColumnsVar]: columns, - "> *": { - [parentColumnsVar]: columns - } - }); - }); - return styles; -}; -var generateGridRowSpacingStyles = ({ - theme, - ownerState -}) => { - if (!ownerState.container) { - return {}; - } - const styles = {}; - traverseBreakpoints(theme.breakpoints, ownerState.rowSpacing, (appendStyle, value) => { - var _a; - const spacing2 = typeof value === "string" ? value : (_a = theme.spacing) == null ? void 0 : _a.call(theme, value); - appendStyle(styles, { - [getSelfSpacingVar("row")]: spacing2, - "> *": { - [getParentSpacingVar("row")]: spacing2 - } - }); - }); - return styles; -}; -var generateGridColumnSpacingStyles = ({ - theme, - ownerState -}) => { - if (!ownerState.container) { - return {}; - } - const styles = {}; - traverseBreakpoints(theme.breakpoints, ownerState.columnSpacing, (appendStyle, value) => { - var _a; - const spacing2 = typeof value === "string" ? value : (_a = theme.spacing) == null ? void 0 : _a.call(theme, value); - appendStyle(styles, { - [getSelfSpacingVar("column")]: spacing2, - "> *": { - [getParentSpacingVar("column")]: spacing2 - } - }); - }); - return styles; -}; -var generateGridDirectionStyles = ({ - theme, - ownerState -}) => { - if (!ownerState.container) { - return {}; - } - const styles = {}; - traverseBreakpoints(theme.breakpoints, ownerState.direction, (appendStyle, value) => { - appendStyle(styles, { - flexDirection: value - }); - }); - return styles; -}; -var generateGridStyles = ({ - ownerState -}) => { - return { - minWidth: 0, - boxSizing: "border-box", - ...ownerState.container && { - display: "flex", - flexWrap: "wrap", - ...ownerState.wrap && ownerState.wrap !== "wrap" && { - flexWrap: ownerState.wrap - }, - gap: `var(${getSelfSpacingVar("row")}) var(${getSelfSpacingVar("column")})` - } - }; -}; -var generateSizeClassNames = (size) => { - const classNames = []; - Object.entries(size).forEach(([key, value]) => { - if (value !== false && value !== void 0) { - classNames.push(`grid-${key}-${String(value)}`); - } - }); - return classNames; -}; -var generateSpacingClassNames = (spacing2, smallestBreakpoint = "xs") => { - function isValidSpacing(val) { - if (val === void 0) { - return false; - } - return typeof val === "string" && !Number.isNaN(Number(val)) || typeof val === "number" && val > 0; - } - if (isValidSpacing(spacing2)) { - return [`spacing-${smallestBreakpoint}-${String(spacing2)}`]; - } - if (typeof spacing2 === "object" && !Array.isArray(spacing2)) { - const classNames = []; - Object.entries(spacing2).forEach(([key, value]) => { - if (isValidSpacing(value)) { - classNames.push(`spacing-${key}-${String(value)}`); - } - }); - return classNames; - } - return []; -}; -var generateDirectionClasses = (direction) => { - if (direction === void 0) { - return []; - } - if (typeof direction === "object") { - return Object.entries(direction).map(([key, value]) => `direction-${key}-${value}`); - } - return [`direction-xs-${String(direction)}`]; -}; - -// node_modules/@mui/system/esm/Grid/deleteLegacyGridProps.js -var getLegacyGridWarning = (propName) => { - if (["item", "zeroMinWidth"].includes(propName)) { - return `The \`${propName}\` prop has been removed and is no longer necessary. You can safely remove it.`; - } - return `The \`${propName}\` prop has been removed. See https://mui.com/material-ui/migration/upgrade-to-grid-v2/ for migration instructions.`; -}; -var warnedAboutProps = []; -function deleteLegacyGridProps(props, breakpoints) { - const propsToWarn = []; - if (props.item !== void 0) { - delete props.item; - propsToWarn.push("item"); - } - if (props.zeroMinWidth !== void 0) { - delete props.zeroMinWidth; - propsToWarn.push("zeroMinWidth"); - } - breakpoints.keys.forEach((breakpoint) => { - if (props[breakpoint] !== void 0) { - propsToWarn.push(breakpoint); - delete props[breakpoint]; - } - }); - if (true) { - propsToWarn.forEach((prop) => { - if (!warnedAboutProps.includes(prop)) { - warnedAboutProps.push(prop); - console.warn(`MUI Grid: ${getLegacyGridWarning(prop)} -`); - } - }); - } -} - -// node_modules/@mui/system/esm/Grid/createGrid.js -var import_jsx_runtime12 = __toESM(require_jsx_runtime(), 1); -var defaultTheme2 = createTheme_default(); -var defaultCreateStyledComponent2 = styled_default("div", { - name: "MuiGrid", - slot: "Root", - overridesResolver: (props, styles) => styles.root -}); -function useThemePropsDefault2(props) { - return useThemeProps({ - props, - name: "MuiGrid", - defaultTheme: defaultTheme2 - }); -} -function createGrid(options = {}) { - const { - // This will allow adding custom styled fn (for example for custom sx style function) - createStyledComponent = defaultCreateStyledComponent2, - useThemeProps: useThemeProps2 = useThemePropsDefault2, - useTheme: useTheme6 = useTheme_default, - componentName = "MuiGrid" - } = options; - const useUtilityClasses3 = (ownerState, theme) => { - const { - container, - direction, - spacing: spacing2, - wrap, - size - } = ownerState; - const slots = { - root: ["root", container && "container", wrap !== "wrap" && `wrap-xs-${String(wrap)}`, ...generateDirectionClasses(direction), ...generateSizeClassNames(size), ...container ? generateSpacingClassNames(spacing2, theme.breakpoints.keys[0]) : []] - }; - return composeClasses(slots, (slot) => generateUtilityClass(componentName, slot), {}); - }; - function parseResponsiveProp(propValue, breakpoints, shouldUseValue = () => true) { - const parsedProp = {}; - if (propValue === null) { - return parsedProp; - } - if (Array.isArray(propValue)) { - propValue.forEach((value, index) => { - if (value !== null && shouldUseValue(value) && breakpoints.keys[index]) { - parsedProp[breakpoints.keys[index]] = value; - } - }); - } else if (typeof propValue === "object") { - Object.keys(propValue).forEach((key) => { - const value = propValue[key]; - if (value !== null && value !== void 0 && shouldUseValue(value)) { - parsedProp[key] = value; - } - }); - } else { - parsedProp[breakpoints.keys[0]] = propValue; - } - return parsedProp; - } - const GridRoot = createStyledComponent(generateGridColumnsStyles, generateGridColumnSpacingStyles, generateGridRowSpacingStyles, generateGridSizeStyles, generateGridDirectionStyles, generateGridStyles, generateGridOffsetStyles); - const Grid2 = React35.forwardRef(function Grid3(inProps, ref) { - const theme = useTheme6(); - const themeProps = useThemeProps2(inProps); - const props = extendSxProp(themeProps); - deleteLegacyGridProps(props, theme.breakpoints); - const { - className, - children, - columns: columnsProp = 12, - container = false, - component = "div", - direction = "row", - wrap = "wrap", - size: sizeProp = {}, - offset: offsetProp = {}, - spacing: spacingProp = 0, - rowSpacing: rowSpacingProp = spacingProp, - columnSpacing: columnSpacingProp = spacingProp, - unstable_level: level = 0, - ...other - } = props; - const size = parseResponsiveProp(sizeProp, theme.breakpoints, (val) => val !== false); - const offset = parseResponsiveProp(offsetProp, theme.breakpoints); - const columns = inProps.columns ?? (level ? void 0 : columnsProp); - const spacing2 = inProps.spacing ?? (level ? void 0 : spacingProp); - const rowSpacing = inProps.rowSpacing ?? inProps.spacing ?? (level ? void 0 : rowSpacingProp); - const columnSpacing = inProps.columnSpacing ?? inProps.spacing ?? (level ? void 0 : columnSpacingProp); - const ownerState = { - ...props, - level, - columns, - container, - direction, - wrap, - spacing: spacing2, - rowSpacing, - columnSpacing, - size, - offset - }; - const classes = useUtilityClasses3(ownerState, theme); - return (0, import_jsx_runtime12.jsx)(GridRoot, { - ref, - as: component, - ownerState, - className: clsx_default(classes.root, className), - ...other, - children: React35.Children.map(children, (child) => { - var _a; - if (React35.isValidElement(child) && isMuiElement(child, ["Grid"]) && container && child.props.container) { - return React35.cloneElement(child, { - unstable_level: ((_a = child.props) == null ? void 0 : _a.unstable_level) ?? level + 1 - }); - } - return child; - }) - }); - }); - true ? Grid2.propTypes = { - children: import_prop_types17.default.node, - className: import_prop_types17.default.string, - columns: import_prop_types17.default.oneOfType([import_prop_types17.default.arrayOf(import_prop_types17.default.number), import_prop_types17.default.number, import_prop_types17.default.object]), - columnSpacing: import_prop_types17.default.oneOfType([import_prop_types17.default.arrayOf(import_prop_types17.default.oneOfType([import_prop_types17.default.number, import_prop_types17.default.string])), import_prop_types17.default.number, import_prop_types17.default.object, import_prop_types17.default.string]), - component: import_prop_types17.default.elementType, - container: import_prop_types17.default.bool, - direction: import_prop_types17.default.oneOfType([import_prop_types17.default.oneOf(["column-reverse", "column", "row-reverse", "row"]), import_prop_types17.default.arrayOf(import_prop_types17.default.oneOf(["column-reverse", "column", "row-reverse", "row"])), import_prop_types17.default.object]), - offset: import_prop_types17.default.oneOfType([import_prop_types17.default.string, import_prop_types17.default.number, import_prop_types17.default.arrayOf(import_prop_types17.default.oneOfType([import_prop_types17.default.string, import_prop_types17.default.number])), import_prop_types17.default.object]), - rowSpacing: import_prop_types17.default.oneOfType([import_prop_types17.default.arrayOf(import_prop_types17.default.oneOfType([import_prop_types17.default.number, import_prop_types17.default.string])), import_prop_types17.default.number, import_prop_types17.default.object, import_prop_types17.default.string]), - size: import_prop_types17.default.oneOfType([import_prop_types17.default.string, import_prop_types17.default.bool, import_prop_types17.default.number, import_prop_types17.default.arrayOf(import_prop_types17.default.oneOfType([import_prop_types17.default.string, import_prop_types17.default.bool, import_prop_types17.default.number])), import_prop_types17.default.object]), - spacing: import_prop_types17.default.oneOfType([import_prop_types17.default.arrayOf(import_prop_types17.default.oneOfType([import_prop_types17.default.number, import_prop_types17.default.string])), import_prop_types17.default.number, import_prop_types17.default.object, import_prop_types17.default.string]), - sx: import_prop_types17.default.oneOfType([import_prop_types17.default.arrayOf(import_prop_types17.default.oneOfType([import_prop_types17.default.func, import_prop_types17.default.object, import_prop_types17.default.bool])), import_prop_types17.default.func, import_prop_types17.default.object]), - wrap: import_prop_types17.default.oneOf(["nowrap", "wrap-reverse", "wrap"]) - } : void 0; - Grid2.muiName = "Grid"; - return Grid2; -} - -// node_modules/@mui/system/esm/Grid/Grid.js -var Grid = createGrid(); -true ? Grid.propTypes = { - // ┌────────────────────────────── Warning ──────────────────────────────┐ - // │ These PropTypes are generated from the TypeScript type definitions. │ - // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │ - // └─────────────────────────────────────────────────────────────────────┘ - /** - * The content of the component. - */ - children: import_prop_types18.default.node, - /** - * The number of columns. - * @default 12 - */ - columns: import_prop_types18.default.oneOfType([import_prop_types18.default.arrayOf(import_prop_types18.default.number), import_prop_types18.default.number, import_prop_types18.default.object]), - /** - * Defines the horizontal space between the type `item` components. - * It overrides the value of the `spacing` prop. - */ - columnSpacing: import_prop_types18.default.oneOfType([import_prop_types18.default.arrayOf(import_prop_types18.default.oneOfType([import_prop_types18.default.number, import_prop_types18.default.string])), import_prop_types18.default.number, import_prop_types18.default.object, import_prop_types18.default.string]), - /** - * If `true`, the component will have the flex *container* behavior. - * You should be wrapping *items* with a *container*. - * @default false - */ - container: import_prop_types18.default.bool, - /** - * Defines the `flex-direction` style property. - * It is applied for all screen sizes. - * @default 'row' - */ - direction: import_prop_types18.default.oneOfType([import_prop_types18.default.oneOf(["column-reverse", "column", "row-reverse", "row"]), import_prop_types18.default.arrayOf(import_prop_types18.default.oneOf(["column-reverse", "column", "row-reverse", "row"])), import_prop_types18.default.object]), - /** - * Defines the offset value for the type `item` components. - */ - offset: import_prop_types18.default.oneOfType([import_prop_types18.default.string, import_prop_types18.default.number, import_prop_types18.default.arrayOf(import_prop_types18.default.oneOfType([import_prop_types18.default.string, import_prop_types18.default.number])), import_prop_types18.default.object]), - /** - * Defines the vertical space between the type `item` components. - * It overrides the value of the `spacing` prop. - */ - rowSpacing: import_prop_types18.default.oneOfType([import_prop_types18.default.arrayOf(import_prop_types18.default.oneOfType([import_prop_types18.default.number, import_prop_types18.default.string])), import_prop_types18.default.number, import_prop_types18.default.object, import_prop_types18.default.string]), - /** - * Defines the size of the the type `item` components. - */ - size: import_prop_types18.default.oneOfType([import_prop_types18.default.string, import_prop_types18.default.bool, import_prop_types18.default.number, import_prop_types18.default.arrayOf(import_prop_types18.default.oneOfType([import_prop_types18.default.string, import_prop_types18.default.bool, import_prop_types18.default.number])), import_prop_types18.default.object]), - /** - * Defines the space between the type `item` components. - * It can only be used on a type `container` component. - * @default 0 - */ - spacing: import_prop_types18.default.oneOfType([import_prop_types18.default.arrayOf(import_prop_types18.default.oneOfType([import_prop_types18.default.number, import_prop_types18.default.string])), import_prop_types18.default.number, import_prop_types18.default.object, import_prop_types18.default.string]), - /** - * @ignore - */ - sx: import_prop_types18.default.oneOfType([import_prop_types18.default.arrayOf(import_prop_types18.default.oneOfType([import_prop_types18.default.func, import_prop_types18.default.object, import_prop_types18.default.bool])), import_prop_types18.default.func, import_prop_types18.default.object]), - /** - * @internal - * The level of the grid starts from `0` and increases when the grid nests - * inside another grid. Nesting is defined as a container Grid being a direct - * child of a container Grid. - * - * ```js - * // level 0 - * // level 1 - * // level 2 - * ``` - * - * Only consecutive grid is considered nesting. A grid container will start at - * `0` if there are non-Grid container element above it. - * - * ```js - * // level 0 - *
- * // level 0 - * ``` - * - * ```js - * // level 0 - * - * // level 0 - * ``` - */ - unstable_level: import_prop_types18.default.number, - /** - * Defines the `flex-wrap` style property. - * It's applied for all screen sizes. - * @default 'wrap' - */ - wrap: import_prop_types18.default.oneOf(["nowrap", "wrap-reverse", "wrap"]) -} : void 0; - -// node_modules/@mui/system/esm/Grid/gridClasses.js -var SPACINGS = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; -var DIRECTIONS = ["column-reverse", "column", "row-reverse", "row"]; -var WRAPS = ["nowrap", "wrap-reverse", "wrap"]; -var GRID_SIZES = ["auto", "grow", 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; -var gridClasses = generateUtilityClasses("MuiGrid", [ - "root", - "container", - "item", - // spacings - ...SPACINGS.map((spacing2) => `spacing-xs-${spacing2}`), - // direction values - ...DIRECTIONS.map((direction) => `direction-xs-${direction}`), - // wrap values - ...WRAPS.map((wrap) => `wrap-xs-${wrap}`), - // grid sizes for all breakpoints - ...GRID_SIZES.map((size) => `grid-xs-${size}`), - ...GRID_SIZES.map((size) => `grid-sm-${size}`), - ...GRID_SIZES.map((size) => `grid-md-${size}`), - ...GRID_SIZES.map((size) => `grid-lg-${size}`), - ...GRID_SIZES.map((size) => `grid-xl-${size}`) -]); - -// node_modules/@mui/system/esm/Stack/Stack.js -var import_prop_types20 = __toESM(require_prop_types(), 1); - -// node_modules/@mui/system/esm/Stack/createStack.js -var React36 = __toESM(require_react(), 1); -var import_prop_types19 = __toESM(require_prop_types(), 1); -var import_jsx_runtime13 = __toESM(require_jsx_runtime(), 1); -var defaultTheme3 = createTheme_default(); -var defaultCreateStyledComponent3 = styled_default("div", { - name: "MuiStack", - slot: "Root", - overridesResolver: (props, styles) => styles.root -}); -function useThemePropsDefault3(props) { - return useThemeProps({ - props, - name: "MuiStack", - defaultTheme: defaultTheme3 - }); -} -function joinChildren(children, separator) { - const childrenArray = React36.Children.toArray(children).filter(Boolean); - return childrenArray.reduce((output, child, index) => { - output.push(child); - if (index < childrenArray.length - 1) { - output.push(React36.cloneElement(separator, { - key: `separator-${index}` - })); - } - return output; - }, []); -} -var getSideFromDirection = (direction) => { - return { - row: "Left", - "row-reverse": "Right", - column: "Top", - "column-reverse": "Bottom" - }[direction]; -}; -var style3 = ({ - ownerState, - theme -}) => { - let styles = { - display: "flex", - flexDirection: "column", - ...handleBreakpoints({ - theme - }, resolveBreakpointValues({ - values: ownerState.direction, - breakpoints: theme.breakpoints.values - }), (propValue) => ({ - flexDirection: propValue - })) - }; - if (ownerState.spacing) { - const transformer = createUnarySpacing(theme); - const base = Object.keys(theme.breakpoints.values).reduce((acc, breakpoint) => { - if (typeof ownerState.spacing === "object" && ownerState.spacing[breakpoint] != null || typeof ownerState.direction === "object" && ownerState.direction[breakpoint] != null) { - acc[breakpoint] = true; - } - return acc; - }, {}); - const directionValues = resolveBreakpointValues({ - values: ownerState.direction, - base - }); - const spacingValues = resolveBreakpointValues({ - values: ownerState.spacing, - base - }); - if (typeof directionValues === "object") { - Object.keys(directionValues).forEach((breakpoint, index, breakpoints) => { - const directionValue = directionValues[breakpoint]; - if (!directionValue) { - const previousDirectionValue = index > 0 ? directionValues[breakpoints[index - 1]] : "column"; - directionValues[breakpoint] = previousDirectionValue; - } - }); - } - const styleFromPropValue = (propValue, breakpoint) => { - if (ownerState.useFlexGap) { - return { - gap: getValue(transformer, propValue) - }; - } - return { - // The useFlexGap={false} implement relies on each child to give up control of the margin. - // We need to reset the margin to avoid double spacing. - "& > :not(style):not(style)": { - margin: 0 - }, - "& > :not(style) ~ :not(style)": { - [`margin${getSideFromDirection(breakpoint ? directionValues[breakpoint] : ownerState.direction)}`]: getValue(transformer, propValue) - } - }; - }; - styles = deepmerge(styles, handleBreakpoints({ - theme - }, spacingValues, styleFromPropValue)); - } - styles = mergeBreakpointsInOrder(theme.breakpoints, styles); - return styles; -}; -function createStack(options = {}) { - const { - // This will allow adding custom styled fn (for example for custom sx style function) - createStyledComponent = defaultCreateStyledComponent3, - useThemeProps: useThemeProps2 = useThemePropsDefault3, - componentName = "MuiStack" - } = options; - const useUtilityClasses3 = () => { - const slots = { - root: ["root"] - }; - return composeClasses(slots, (slot) => generateUtilityClass(componentName, slot), {}); - }; - const StackRoot = createStyledComponent(style3); - const Stack2 = React36.forwardRef(function Grid2(inProps, ref) { - const themeProps = useThemeProps2(inProps); - const props = extendSxProp(themeProps); - const { - component = "div", - direction = "column", - spacing: spacing2 = 0, - divider, - children, - className, - useFlexGap = false, - ...other - } = props; - const ownerState = { - direction, - spacing: spacing2, - useFlexGap - }; - const classes = useUtilityClasses3(); - return (0, import_jsx_runtime13.jsx)(StackRoot, { - as: component, - ownerState, - ref, - className: clsx_default(classes.root, className), - ...other, - children: divider ? joinChildren(children, divider) : children - }); - }); - true ? Stack2.propTypes = { - children: import_prop_types19.default.node, - direction: import_prop_types19.default.oneOfType([import_prop_types19.default.oneOf(["column-reverse", "column", "row-reverse", "row"]), import_prop_types19.default.arrayOf(import_prop_types19.default.oneOf(["column-reverse", "column", "row-reverse", "row"])), import_prop_types19.default.object]), - divider: import_prop_types19.default.node, - spacing: import_prop_types19.default.oneOfType([import_prop_types19.default.arrayOf(import_prop_types19.default.oneOfType([import_prop_types19.default.number, import_prop_types19.default.string])), import_prop_types19.default.number, import_prop_types19.default.object, import_prop_types19.default.string]), - sx: import_prop_types19.default.oneOfType([import_prop_types19.default.arrayOf(import_prop_types19.default.oneOfType([import_prop_types19.default.func, import_prop_types19.default.object, import_prop_types19.default.bool])), import_prop_types19.default.func, import_prop_types19.default.object]) - } : void 0; - return Stack2; -} - -// node_modules/@mui/system/esm/Stack/Stack.js -var Stack = createStack(); -true ? Stack.propTypes = { - // ┌────────────────────────────── Warning ──────────────────────────────┐ - // │ These PropTypes are generated from the TypeScript type definitions. │ - // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │ - // └─────────────────────────────────────────────────────────────────────┘ - /** - * The content of the component. - */ - children: import_prop_types20.default.node, - /** - * The component used for the root node. - * Either a string to use a HTML element or a component. - */ - component: import_prop_types20.default.elementType, - /** - * Defines the `flex-direction` style property. - * It is applied for all screen sizes. - * @default 'column' - */ - direction: import_prop_types20.default.oneOfType([import_prop_types20.default.oneOf(["column-reverse", "column", "row-reverse", "row"]), import_prop_types20.default.arrayOf(import_prop_types20.default.oneOf(["column-reverse", "column", "row-reverse", "row"])), import_prop_types20.default.object]), - /** - * Add an element between each child. - */ - divider: import_prop_types20.default.node, - /** - * Defines the space between immediate children. - * @default 0 - */ - spacing: import_prop_types20.default.oneOfType([import_prop_types20.default.arrayOf(import_prop_types20.default.oneOfType([import_prop_types20.default.number, import_prop_types20.default.string])), import_prop_types20.default.number, import_prop_types20.default.object, import_prop_types20.default.string]), - /** - * The system prop, which allows defining system overrides as well as additional CSS styles. - */ - sx: import_prop_types20.default.oneOfType([import_prop_types20.default.arrayOf(import_prop_types20.default.oneOfType([import_prop_types20.default.func, import_prop_types20.default.object, import_prop_types20.default.bool])), import_prop_types20.default.func, import_prop_types20.default.object]), - /** - * If `true`, the CSS flexbox `gap` is used instead of applying `margin` to children. - * - * While CSS `gap` removes the [known limitations](https://mui.com/joy-ui/react-stack/#limitations), - * it is not fully supported in some browsers. We recommend checking https://caniuse.com/?search=flex%20gap before using this flag. - * - * To enable this flag globally, follow the theme's default props configuration. - * @default false - */ - useFlexGap: import_prop_types20.default.bool -} : void 0; - -// node_modules/@mui/system/esm/Stack/stackClasses.js -var stackClasses = generateUtilityClasses("MuiStack", ["root"]); - -// node_modules/@mui/material/esm/colors/common.js -var common = { - black: "#000", - white: "#fff" -}; -var common_default = common; - -// node_modules/@mui/material/esm/colors/grey.js -var grey = { - 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" -}; -var grey_default = grey; - -// node_modules/@mui/material/esm/colors/purple.js -var purple = { - 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" -}; -var purple_default = purple; - -// node_modules/@mui/material/esm/colors/red.js -var red = { - 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" -}; -var red_default = red; - -// node_modules/@mui/material/esm/colors/orange.js -var orange = { - 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" -}; -var orange_default = orange; - -// node_modules/@mui/material/esm/colors/blue.js -var blue = { - 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" -}; -var blue_default = blue; - -// node_modules/@mui/material/esm/colors/lightBlue.js -var lightBlue = { - 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" -}; -var lightBlue_default = lightBlue; - -// node_modules/@mui/material/esm/colors/green.js -var green = { - 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" -}; -var green_default = green; - -// node_modules/@mui/material/esm/styles/createPalette.js -function getLight() { - return { - // The colors used to style the text. - text: { - // The most important text. - primary: "rgba(0, 0, 0, 0.87)", - // Secondary text. - secondary: "rgba(0, 0, 0, 0.6)", - // Disabled text have even lower visual prominence. - disabled: "rgba(0, 0, 0, 0.38)" - }, - // The color used to divide different elements. - divider: "rgba(0, 0, 0, 0.12)", - // The background colors used to style the surfaces. - // Consistency between these values is important. - background: { - paper: common_default.white, - default: common_default.white - }, - // The colors used to style the action elements. - action: { - // The color of an active action like an icon button. - active: "rgba(0, 0, 0, 0.54)", - // The color of an hovered action. - hover: "rgba(0, 0, 0, 0.04)", - hoverOpacity: 0.04, - // The color of a selected action. - selected: "rgba(0, 0, 0, 0.08)", - selectedOpacity: 0.08, - // The color of a disabled action. - disabled: "rgba(0, 0, 0, 0.26)", - // The background color of a disabled action. - disabledBackground: "rgba(0, 0, 0, 0.12)", - disabledOpacity: 0.38, - focus: "rgba(0, 0, 0, 0.12)", - focusOpacity: 0.12, - activatedOpacity: 0.12 - } - }; -} -var light = getLight(); -function getDark() { - return { - text: { - primary: common_default.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: common_default.white, - hover: "rgba(255, 255, 255, 0.08)", - hoverOpacity: 0.08, - selected: "rgba(255, 255, 255, 0.16)", - selectedOpacity: 0.16, - disabled: "rgba(255, 255, 255, 0.3)", - disabledBackground: "rgba(255, 255, 255, 0.12)", - disabledOpacity: 0.38, - focus: "rgba(255, 255, 255, 0.12)", - focusOpacity: 0.12, - activatedOpacity: 0.24 - } - }; -} -var dark = getDark(); -function addLightOrDark(intent, direction, shade, tonalOffset) { - const tonalOffsetLight = tonalOffset.light || tonalOffset; - const tonalOffsetDark = tonalOffset.dark || tonalOffset * 1.5; - if (!intent[direction]) { - if (intent.hasOwnProperty(shade)) { - intent[direction] = intent[shade]; - } else if (direction === "light") { - intent.light = lighten(intent.main, tonalOffsetLight); - } else if (direction === "dark") { - intent.dark = darken(intent.main, tonalOffsetDark); - } - } -} -function getDefaultPrimary(mode = "light") { - if (mode === "dark") { - return { - main: blue_default[200], - light: blue_default[50], - dark: blue_default[400] - }; - } - return { - main: blue_default[700], - light: blue_default[400], - dark: blue_default[800] - }; -} -function getDefaultSecondary(mode = "light") { - if (mode === "dark") { - return { - main: purple_default[200], - light: purple_default[50], - dark: purple_default[400] - }; - } - return { - main: purple_default[500], - light: purple_default[300], - dark: purple_default[700] - }; -} -function getDefaultError(mode = "light") { - if (mode === "dark") { - return { - main: red_default[500], - light: red_default[300], - dark: red_default[700] - }; - } - return { - main: red_default[700], - light: red_default[400], - dark: red_default[800] - }; -} -function getDefaultInfo(mode = "light") { - if (mode === "dark") { - return { - main: lightBlue_default[400], - light: lightBlue_default[300], - dark: lightBlue_default[700] - }; - } - return { - main: lightBlue_default[700], - light: lightBlue_default[500], - dark: lightBlue_default[900] - }; -} -function getDefaultSuccess(mode = "light") { - if (mode === "dark") { - return { - main: green_default[400], - light: green_default[300], - dark: green_default[700] - }; - } - return { - main: green_default[800], - light: green_default[500], - dark: green_default[900] - }; -} -function getDefaultWarning(mode = "light") { - if (mode === "dark") { - return { - main: orange_default[400], - light: orange_default[300], - dark: orange_default[700] - }; - } - return { - main: "#ed6c02", - // closest to orange[800] that pass 3:1. - light: orange_default[500], - dark: orange_default[900] - }; -} -function createPalette(palette2) { - const { - mode = "light", - contrastThreshold = 3, - tonalOffset = 0.2, - ...other - } = palette2; - const primary = palette2.primary || getDefaultPrimary(mode); - const secondary = palette2.secondary || getDefaultSecondary(mode); - const error = palette2.error || getDefaultError(mode); - const info = palette2.info || getDefaultInfo(mode); - const success = palette2.success || getDefaultSuccess(mode); - const warning = palette2.warning || getDefaultWarning(mode); - function getContrastText(background) { - const contrastText = getContrastRatio(background, dark.text.primary) >= contrastThreshold ? dark.text.primary : light.text.primary; - if (true) { - const contrast = getContrastRatio(background, contrastText); - if (contrast < 3) { - console.error([`MUI: The contrast ratio of ${contrast}:1 for ${contrastText} on ${background}`, "falls below the WCAG recommended absolute minimum contrast ratio of 3:1.", "https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join("\n")); - } - } - return contrastText; - } - const augmentColor = ({ - color: color2, - name, - mainShade = 500, - lightShade = 300, - darkShade = 700 - }) => { - color2 = { - ...color2 - }; - if (!color2.main && color2[mainShade]) { - color2.main = color2[mainShade]; - } - if (!color2.hasOwnProperty("main")) { - throw new Error(true ? `MUI: The color${name ? ` (${name})` : ""} provided to augmentColor(color) is invalid. -The color object needs to have a \`main\` property or a \`${mainShade}\` property.` : formatMuiErrorMessage(11, name ? ` (${name})` : "", mainShade)); - } - if (typeof color2.main !== "string") { - throw new Error(true ? `MUI: The color${name ? ` (${name})` : ""} provided to augmentColor(color) is invalid. -\`color.main\` should be a string, but \`${JSON.stringify(color2.main)}\` was provided instead. - -Did you intend to use one of the following approaches? - -import { green } from "@mui/material/colors"; - -const theme1 = createTheme({ palette: { - primary: green, -} }); - -const theme2 = createTheme({ palette: { - primary: { main: green[500] }, -} });` : formatMuiErrorMessage(12, name ? ` (${name})` : "", JSON.stringify(color2.main))); - } - addLightOrDark(color2, "light", lightShade, tonalOffset); - addLightOrDark(color2, "dark", darkShade, tonalOffset); - if (!color2.contrastText) { - color2.contrastText = getContrastText(color2.main); - } - return color2; - }; - let modeHydrated; - if (mode === "light") { - modeHydrated = getLight(); - } else if (mode === "dark") { - modeHydrated = getDark(); - } - if (true) { - if (!modeHydrated) { - console.error(`MUI: The palette mode \`${mode}\` is not supported.`); - } - } - const paletteOutput = deepmerge({ - // A collection of common colors. - common: { - ...common_default - }, - // prevent mutable object. - // The palette mode, can be light or dark. - mode, - // The colors used to represent primary interface elements for a user. - primary: augmentColor({ - color: primary, - name: "primary" - }), - // The colors used to represent secondary interface elements for a user. - secondary: augmentColor({ - color: secondary, - name: "secondary", - mainShade: "A400", - lightShade: "A200", - darkShade: "A700" - }), - // The colors used to represent interface elements that the user should be made aware of. - error: augmentColor({ - color: error, - name: "error" - }), - // The colors used to represent potentially dangerous actions or important messages. - warning: augmentColor({ - color: warning, - name: "warning" - }), - // The colors used to present information to the user that is neutral and not necessarily important. - info: augmentColor({ - color: info, - name: "info" - }), - // The colors used to indicate the successful completion of an action that user triggered. - success: augmentColor({ - color: success, - name: "success" - }), - // The grey colors. - grey: grey_default, - // Used by `getContrastText()` to maximize the contrast between - // the background and the text. - contrastThreshold, - // Takes a background color and returns the text color that maximizes the contrast. - getContrastText, - // Generate a rich color object. - augmentColor, - // Used by the functions below to shift a color's luminance by approximately - // two indexes within its tonal palette. - // E.g., shift from Red 500 to Red 300 or Red 700. - tonalOffset, - // The light and dark mode object. - ...modeHydrated - }, other); - return paletteOutput; -} - -// node_modules/@mui/system/esm/cssVars/prepareTypographyVars.js -function prepareTypographyVars(typography2) { - const vars = {}; - const entries = Object.entries(typography2); - entries.forEach((entry) => { - const [key, value] = entry; - if (typeof value === "object") { - vars[key] = `${value.fontStyle ? `${value.fontStyle} ` : ""}${value.fontVariant ? `${value.fontVariant} ` : ""}${value.fontWeight ? `${value.fontWeight} ` : ""}${value.fontStretch ? `${value.fontStretch} ` : ""}${value.fontSize || ""}${value.lineHeight ? `/${value.lineHeight} ` : ""}${value.fontFamily || ""}`; - } - }); - return vars; -} - -// node_modules/@mui/material/esm/styles/createMixins.js -function createMixins(breakpoints, mixins) { - return { - toolbar: { - minHeight: 56, - [breakpoints.up("xs")]: { - "@media (orientation: landscape)": { - minHeight: 48 - } - }, - [breakpoints.up("sm")]: { - minHeight: 64 - } - }, - ...mixins - }; -} - -// node_modules/@mui/material/esm/styles/createTypography.js -function round(value) { - return Math.round(value * 1e5) / 1e5; -} -var caseAllCaps = { - textTransform: "uppercase" -}; -var defaultFontFamily = '"Roboto", "Helvetica", "Arial", sans-serif'; -function createTypography(palette2, typography2) { - const { - fontFamily: fontFamily2 = defaultFontFamily, - // The default font size of the Material Specification. - fontSize: fontSize2 = 14, - // px - fontWeightLight = 300, - fontWeightRegular = 400, - fontWeightMedium = 500, - fontWeightBold = 700, - // Tell MUI what's the font-size on the html element. - // 16px is the default font-size used by browsers. - htmlFontSize = 16, - // Apply the CSS properties to all the variants. - allVariants, - pxToRem: pxToRem2, - ...other - } = typeof typography2 === "function" ? typography2(palette2) : typography2; - if (true) { - if (typeof fontSize2 !== "number") { - console.error("MUI: `fontSize` is required to be a number."); - } - if (typeof htmlFontSize !== "number") { - console.error("MUI: `htmlFontSize` is required to be a number."); - } - } - const coef = fontSize2 / 14; - const pxToRem = pxToRem2 || ((size) => `${size / htmlFontSize * coef}rem`); - const buildVariant = (fontWeight2, size, lineHeight2, letterSpacing2, casing) => ({ - fontFamily: fontFamily2, - fontWeight: fontWeight2, - fontSize: pxToRem(size), - // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/ - lineHeight: lineHeight2, - // The letter spacing was designed for the Roboto font-family. Using the same letter-spacing - // across font-families can cause issues with the kerning. - ...fontFamily2 === defaultFontFamily ? { - letterSpacing: `${round(letterSpacing2 / size)}em` - } : {}, - ...casing, - ...allVariants - }); - const variants = { - h1: buildVariant(fontWeightLight, 96, 1.167, -1.5), - h2: buildVariant(fontWeightLight, 60, 1.2, -0.5), - h3: buildVariant(fontWeightRegular, 48, 1.167, 0), - h4: buildVariant(fontWeightRegular, 34, 1.235, 0.25), - h5: buildVariant(fontWeightRegular, 24, 1.334, 0), - h6: buildVariant(fontWeightMedium, 20, 1.6, 0.15), - subtitle1: buildVariant(fontWeightRegular, 16, 1.75, 0.15), - subtitle2: buildVariant(fontWeightMedium, 14, 1.57, 0.1), - body1: buildVariant(fontWeightRegular, 16, 1.5, 0.15), - body2: buildVariant(fontWeightRegular, 14, 1.43, 0.15), - button: buildVariant(fontWeightMedium, 14, 1.75, 0.4, caseAllCaps), - caption: buildVariant(fontWeightRegular, 12, 1.66, 0.4), - overline: buildVariant(fontWeightRegular, 12, 2.66, 1, caseAllCaps), - // TODO v6: Remove handling of 'inherit' variant from the theme as it is already handled in Material UI's Typography component. Also, remember to remove the associated types. - inherit: { - fontFamily: "inherit", - fontWeight: "inherit", - fontSize: "inherit", - lineHeight: "inherit", - letterSpacing: "inherit" - } - }; - return deepmerge({ - htmlFontSize, - pxToRem, - fontFamily: fontFamily2, - fontSize: fontSize2, - fontWeightLight, - fontWeightRegular, - fontWeightMedium, - fontWeightBold, - ...variants - }, other, { - clone: false - // No need to clone deep - }); -} - -// node_modules/@mui/material/esm/styles/shadows.js -var shadowKeyUmbraOpacity = 0.2; -var shadowKeyPenumbraOpacity = 0.14; -var shadowAmbientShadowOpacity = 0.12; -function createShadow(...px) { - return [`${px[0]}px ${px[1]}px ${px[2]}px ${px[3]}px rgba(0,0,0,${shadowKeyUmbraOpacity})`, `${px[4]}px ${px[5]}px ${px[6]}px ${px[7]}px rgba(0,0,0,${shadowKeyPenumbraOpacity})`, `${px[8]}px ${px[9]}px ${px[10]}px ${px[11]}px rgba(0,0,0,${shadowAmbientShadowOpacity})`].join(","); -} -var shadows = ["none", createShadow(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), createShadow(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), createShadow(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), createShadow(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), createShadow(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), createShadow(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), createShadow(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), createShadow(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), createShadow(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), createShadow(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), createShadow(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), createShadow(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), createShadow(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), createShadow(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), createShadow(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), createShadow(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), createShadow(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), createShadow(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), createShadow(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), createShadow(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), createShadow(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), createShadow(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), createShadow(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), createShadow(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)]; -var shadows_default2 = shadows; - -// node_modules/@mui/material/esm/styles/createTransitions.js -var easing = { - // This is the most common easing curve. - easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)", - // Objects enter the screen at full velocity from off-screen and - // slowly decelerate to a resting point. - easeOut: "cubic-bezier(0.0, 0, 0.2, 1)", - // Objects leave the screen at full velocity. They do not decelerate when off-screen. - easeIn: "cubic-bezier(0.4, 0, 1, 1)", - // The sharp curve is used by objects that may return to the screen at any time. - sharp: "cubic-bezier(0.4, 0, 0.6, 1)" -}; -var duration = { - shortest: 150, - shorter: 200, - short: 250, - // most basic recommended timing - standard: 300, - // this is to be used in complex animations - complex: 375, - // recommended when something is entering screen - enteringScreen: 225, - // recommended when something is leaving screen - leavingScreen: 195 -}; -function formatMs(milliseconds) { - return `${Math.round(milliseconds)}ms`; -} -function getAutoHeightDuration(height2) { - if (!height2) { - return 0; - } - const constant = height2 / 36; - return Math.min(Math.round((4 + 15 * constant ** 0.25 + constant / 5) * 10), 3e3); -} -function createTransitions(inputTransitions) { - const mergedEasing = { - ...easing, - ...inputTransitions.easing - }; - const mergedDuration = { - ...duration, - ...inputTransitions.duration - }; - const create = (props = ["all"], options = {}) => { - const { - duration: durationOption = mergedDuration.standard, - easing: easingOption = mergedEasing.easeInOut, - delay = 0, - ...other - } = options; - if (true) { - const isString = (value) => typeof value === "string"; - const isNumber = (value) => !Number.isNaN(parseFloat(value)); - if (!isString(props) && !Array.isArray(props)) { - console.error('MUI: Argument "props" must be a string or Array.'); - } - if (!isNumber(durationOption) && !isString(durationOption)) { - console.error(`MUI: Argument "duration" must be a number or a string but found ${durationOption}.`); - } - if (!isString(easingOption)) { - console.error('MUI: Argument "easing" must be a string.'); - } - if (!isNumber(delay) && !isString(delay)) { - console.error('MUI: Argument "delay" must be a number or a string.'); - } - if (typeof options !== "object") { - console.error(["MUI: Secong argument of transition.create must be an object.", "Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join("\n")); - } - if (Object.keys(other).length !== 0) { - console.error(`MUI: Unrecognized argument(s) [${Object.keys(other).join(",")}].`); - } - } - return (Array.isArray(props) ? props : [props]).map((animatedProp) => `${animatedProp} ${typeof durationOption === "string" ? durationOption : formatMs(durationOption)} ${easingOption} ${typeof delay === "string" ? delay : formatMs(delay)}`).join(","); - }; - return { - getAutoHeightDuration, - create, - ...inputTransitions, - easing: mergedEasing, - duration: mergedDuration - }; -} - -// node_modules/@mui/material/esm/styles/zIndex.js -var zIndex2 = { - mobileStepper: 1e3, - fab: 1050, - speedDial: 1050, - appBar: 1100, - drawer: 1200, - modal: 1300, - snackbar: 1400, - tooltip: 1500 -}; -var zIndex_default = zIndex2; - -// node_modules/@mui/material/esm/styles/stringifyTheme.js -function isSerializable(val) { - return isPlainObject(val) || typeof val === "undefined" || typeof val === "string" || typeof val === "boolean" || typeof val === "number" || Array.isArray(val); -} -function stringifyTheme(baseTheme = {}) { - const serializableTheme = { - ...baseTheme - }; - function serializeTheme(object) { - const array = Object.entries(object); - for (let index = 0; index < array.length; index++) { - const [key, value] = array[index]; - if (!isSerializable(value) || key.startsWith("unstable_")) { - delete object[key]; - } else if (isPlainObject(value)) { - object[key] = { - ...value - }; - serializeTheme(object[key]); - } - } - } - serializeTheme(serializableTheme); - return `import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles'; - -const theme = ${JSON.stringify(serializableTheme, null, 2)}; - -theme.breakpoints = createBreakpoints(theme.breakpoints || {}); -theme.transitions = createTransitions(theme.transitions || {}); - -export default theme;`; -} - -// node_modules/@mui/material/esm/styles/createThemeNoVars.js -function createThemeNoVars(options = {}, ...args) { - const { - breakpoints: breakpointsInput, - mixins: mixinsInput = {}, - spacing: spacingInput, - palette: paletteInput = {}, - transitions: transitionsInput = {}, - typography: typographyInput = {}, - shape: shapeInput, - ...other - } = options; - if (options.vars && // The error should throw only for the root theme creation because user is not allowed to use a custom node `vars`. - // `generateThemeVars` is the closest identifier for checking that the `options` is a result of `createTheme` with CSS variables so that user can create new theme for nested ThemeProvider. - options.generateThemeVars === void 0) { - throw new Error(true ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature." : formatMuiErrorMessage(20)); - } - const palette2 = createPalette(paletteInput); - const systemTheme = createTheme_default(options); - let muiTheme = deepmerge(systemTheme, { - mixins: createMixins(systemTheme.breakpoints, mixinsInput), - palette: palette2, - // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol. - shadows: shadows_default2.slice(), - typography: createTypography(palette2, typographyInput), - transitions: createTransitions(transitionsInput), - zIndex: { - ...zIndex_default - } - }); - muiTheme = deepmerge(muiTheme, other); - muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme); - if (true) { - const stateClasses = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"]; - const traverse = (node2, component) => { - let key; - for (key in node2) { - const child = node2[key]; - if (stateClasses.includes(key) && Object.keys(child).length > 0) { - if (true) { - const stateClass = generateUtilityClass("", key); - console.error([`MUI: The \`${component}\` component increases the CSS specificity of the \`${key}\` internal state.`, "You can not override it like this: ", JSON.stringify(node2, null, 2), "", `Instead, you need to use the '&.${stateClass}' syntax:`, JSON.stringify({ - root: { - [`&.${stateClass}`]: child - } - }, null, 2), "", "https://mui.com/r/state-classes-guide"].join("\n")); - } - node2[key] = {}; - } - } - }; - Object.keys(muiTheme.components).forEach((component) => { - const styleOverrides = muiTheme.components[component].styleOverrides; - if (styleOverrides && component.startsWith("Mui")) { - traverse(styleOverrides, component); - } - }); - } - muiTheme.unstable_sxConfig = { - ...defaultSxConfig_default, - ...other == null ? void 0 : other.unstable_sxConfig - }; - muiTheme.unstable_sx = function sx(props) { - return styleFunctionSx_default({ - sx: props, - theme: this - }); - }; - muiTheme.toRuntimeSource = stringifyTheme; - return muiTheme; -} -var createThemeNoVars_default = createThemeNoVars; - -// node_modules/@mui/material/esm/styles/getOverlayAlpha.js -function getOverlayAlpha(elevation) { - let alphaValue; - if (elevation < 1) { - alphaValue = 5.11916 * elevation ** 2; - } else { - alphaValue = 4.5 * Math.log(elevation + 1) + 2; - } - return Math.round(alphaValue * 10) / 1e3; -} - -// node_modules/@mui/material/esm/styles/createColorScheme.js -var defaultDarkOverlays = [...Array(25)].map((_, index) => { - if (index === 0) { - return "none"; - } - const overlay = getOverlayAlpha(index); - return `linear-gradient(rgba(255 255 255 / ${overlay}), rgba(255 255 255 / ${overlay}))`; -}); -function getOpacity(mode) { - return { - inputPlaceholder: mode === "dark" ? 0.5 : 0.42, - inputUnderline: mode === "dark" ? 0.7 : 0.42, - switchTrackDisabled: mode === "dark" ? 0.2 : 0.12, - switchTrack: mode === "dark" ? 0.3 : 0.38 - }; -} -function getOverlays(mode) { - return mode === "dark" ? defaultDarkOverlays : []; -} -function createColorScheme(options) { - const { - palette: paletteInput = { - mode: "light" - }, - // need to cast to avoid module augmentation test - opacity, - overlays, - ...rest - } = options; - const palette2 = createPalette(paletteInput); - return { - palette: palette2, - opacity: { - ...getOpacity(palette2.mode), - ...opacity - }, - overlays: overlays || getOverlays(palette2.mode), - ...rest - }; -} - -// node_modules/@mui/material/esm/styles/shouldSkipGeneratingVar.js -function shouldSkipGeneratingVar(keys) { - var _a; - return !!keys[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/) || !!keys[0].match(/sxConfig$/) || // ends with sxConfig - keys[0] === "palette" && !!((_a = keys[1]) == null ? void 0 : _a.match(/(mode|contrastThreshold|tonalOffset)/)); -} - -// node_modules/@mui/material/esm/styles/excludeVariablesFromRoot.js -var excludeVariablesFromRoot = (cssVarPrefix) => [...[...Array(25)].map((_, index) => `--${cssVarPrefix ? `${cssVarPrefix}-` : ""}overlays-${index}`), `--${cssVarPrefix ? `${cssVarPrefix}-` : ""}palette-AppBar-darkBg`, `--${cssVarPrefix ? `${cssVarPrefix}-` : ""}palette-AppBar-darkColor`]; -var excludeVariablesFromRoot_default = excludeVariablesFromRoot; - -// node_modules/@mui/material/esm/styles/createGetSelector.js -var createGetSelector_default = (theme) => (colorScheme, css2) => { - const root = theme.rootSelector || ":root"; - const selector = theme.colorSchemeSelector; - let rule = selector; - if (selector === "class") { - rule = ".%s"; - } - if (selector === "data") { - rule = "[data-%s]"; - } - if ((selector == null ? void 0 : selector.startsWith("data-")) && !selector.includes("%s")) { - rule = `[${selector}="%s"]`; - } - if (theme.defaultColorScheme === colorScheme) { - if (colorScheme === "dark") { - const excludedVariables = {}; - excludeVariablesFromRoot_default(theme.cssVarPrefix).forEach((cssVar) => { - excludedVariables[cssVar] = css2[cssVar]; - delete css2[cssVar]; - }); - if (rule === "media") { - return { - [root]: css2, - [`@media (prefers-color-scheme: dark)`]: { - [root]: excludedVariables - } - }; - } - if (rule) { - return { - [rule.replace("%s", colorScheme)]: excludedVariables, - [`${root}, ${rule.replace("%s", colorScheme)}`]: css2 - }; - } - return { - [root]: { - ...css2, - ...excludedVariables - } - }; - } - if (rule && rule !== "media") { - return `${root}, ${rule.replace("%s", String(colorScheme))}`; - } - } else if (colorScheme) { - if (rule === "media") { - return { - [`@media (prefers-color-scheme: ${String(colorScheme)})`]: { - [root]: css2 - } - }; - } - if (rule) { - return rule.replace("%s", String(colorScheme)); - } - } - return root; -}; - -// node_modules/@mui/material/esm/styles/createThemeWithVars.js -function assignNode(obj, keys) { - keys.forEach((k) => { - if (!obj[k]) { - obj[k] = {}; - } - }); -} -function setColor(obj, key, defaultValue) { - if (!obj[key] && defaultValue) { - obj[key] = defaultValue; - } -} -function toRgb(color2) { - if (typeof color2 !== "string" || !color2.startsWith("hsl")) { - return color2; - } - return hslToRgb(color2); -} -function setColorChannel(obj, key) { - if (!(`${key}Channel` in obj)) { - obj[`${key}Channel`] = private_safeColorChannel(toRgb(obj[key]), `MUI: Can't create \`palette.${key}Channel\` because \`palette.${key}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). -To suppress this warning, you need to explicitly provide the \`palette.${key}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`); - } -} -function getSpacingVal(spacingInput) { - if (typeof spacingInput === "number") { - return `${spacingInput}px`; - } - if (typeof spacingInput === "string" || typeof spacingInput === "function" || Array.isArray(spacingInput)) { - return spacingInput; - } - return "8px"; -} -var silent = (fn) => { - try { - return fn(); - } catch (error) { - } - return void 0; -}; -var createGetCssVar2 = (cssVarPrefix = "mui") => createGetCssVar(cssVarPrefix); -function attachColorScheme(colorSchemes, scheme, restTheme, colorScheme) { - if (!scheme) { - return void 0; - } - scheme = scheme === true ? {} : scheme; - const mode = colorScheme === "dark" ? "dark" : "light"; - if (!restTheme) { - colorSchemes[colorScheme] = createColorScheme({ - ...scheme, - palette: { - mode, - ...scheme == null ? void 0 : scheme.palette - } - }); - return void 0; - } - const { - palette: palette2, - ...muiTheme - } = createThemeNoVars_default({ - ...restTheme, - palette: { - mode, - ...scheme == null ? void 0 : scheme.palette - } - }); - colorSchemes[colorScheme] = { - ...scheme, - palette: palette2, - opacity: { - ...getOpacity(mode), - ...scheme == null ? void 0 : scheme.opacity - }, - overlays: (scheme == null ? void 0 : scheme.overlays) || getOverlays(mode) - }; - return muiTheme; -} -function createThemeWithVars(options = {}, ...args) { - const { - colorSchemes: colorSchemesInput = { - light: true - }, - defaultColorScheme: defaultColorSchemeInput, - disableCssColorScheme = false, - cssVarPrefix = "mui", - shouldSkipGeneratingVar: shouldSkipGeneratingVar2 = shouldSkipGeneratingVar, - colorSchemeSelector: selector = colorSchemesInput.light && colorSchemesInput.dark ? "media" : void 0, - rootSelector = ":root", - ...input - } = options; - const firstColorScheme = Object.keys(colorSchemesInput)[0]; - const defaultColorScheme = defaultColorSchemeInput || (colorSchemesInput.light && firstColorScheme !== "light" ? "light" : firstColorScheme); - const getCssVar = createGetCssVar2(cssVarPrefix); - const { - [defaultColorScheme]: defaultSchemeInput, - light: builtInLight, - dark: builtInDark, - ...customColorSchemes - } = colorSchemesInput; - const colorSchemes = { - ...customColorSchemes - }; - let defaultScheme = defaultSchemeInput; - if (defaultColorScheme === "dark" && !("dark" in colorSchemesInput) || defaultColorScheme === "light" && !("light" in colorSchemesInput)) { - defaultScheme = true; - } - if (!defaultScheme) { - throw new Error(true ? `MUI: The \`colorSchemes.${defaultColorScheme}\` option is either missing or invalid.` : formatMuiErrorMessage(21, defaultColorScheme)); - } - const muiTheme = attachColorScheme(colorSchemes, defaultScheme, input, defaultColorScheme); - if (builtInLight && !colorSchemes.light) { - attachColorScheme(colorSchemes, builtInLight, void 0, "light"); - } - if (builtInDark && !colorSchemes.dark) { - attachColorScheme(colorSchemes, builtInDark, void 0, "dark"); - } - let theme = { - defaultColorScheme, - ...muiTheme, - cssVarPrefix, - colorSchemeSelector: selector, - rootSelector, - getCssVar, - colorSchemes, - font: { - ...prepareTypographyVars(muiTheme.typography), - ...muiTheme.font - }, - spacing: getSpacingVal(input.spacing) - }; - Object.keys(theme.colorSchemes).forEach((key) => { - const palette2 = theme.colorSchemes[key].palette; - const setCssVarColor = (cssVar) => { - const tokens = cssVar.split("-"); - const color2 = tokens[1]; - const colorToken = tokens[2]; - return getCssVar(cssVar, palette2[color2][colorToken]); - }; - if (palette2.mode === "light") { - setColor(palette2.common, "background", "#fff"); - setColor(palette2.common, "onBackground", "#000"); - } - if (palette2.mode === "dark") { - setColor(palette2.common, "background", "#000"); - setColor(palette2.common, "onBackground", "#fff"); - } - assignNode(palette2, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]); - if (palette2.mode === "light") { - setColor(palette2.Alert, "errorColor", private_safeDarken(palette2.error.light, 0.6)); - setColor(palette2.Alert, "infoColor", private_safeDarken(palette2.info.light, 0.6)); - setColor(palette2.Alert, "successColor", private_safeDarken(palette2.success.light, 0.6)); - setColor(palette2.Alert, "warningColor", private_safeDarken(palette2.warning.light, 0.6)); - setColor(palette2.Alert, "errorFilledBg", setCssVarColor("palette-error-main")); - setColor(palette2.Alert, "infoFilledBg", setCssVarColor("palette-info-main")); - setColor(palette2.Alert, "successFilledBg", setCssVarColor("palette-success-main")); - setColor(palette2.Alert, "warningFilledBg", setCssVarColor("palette-warning-main")); - setColor(palette2.Alert, "errorFilledColor", silent(() => palette2.getContrastText(palette2.error.main))); - setColor(palette2.Alert, "infoFilledColor", silent(() => palette2.getContrastText(palette2.info.main))); - setColor(palette2.Alert, "successFilledColor", silent(() => palette2.getContrastText(palette2.success.main))); - setColor(palette2.Alert, "warningFilledColor", silent(() => palette2.getContrastText(palette2.warning.main))); - setColor(palette2.Alert, "errorStandardBg", private_safeLighten(palette2.error.light, 0.9)); - setColor(palette2.Alert, "infoStandardBg", private_safeLighten(palette2.info.light, 0.9)); - setColor(palette2.Alert, "successStandardBg", private_safeLighten(palette2.success.light, 0.9)); - setColor(palette2.Alert, "warningStandardBg", private_safeLighten(palette2.warning.light, 0.9)); - setColor(palette2.Alert, "errorIconColor", setCssVarColor("palette-error-main")); - setColor(palette2.Alert, "infoIconColor", setCssVarColor("palette-info-main")); - setColor(palette2.Alert, "successIconColor", setCssVarColor("palette-success-main")); - setColor(palette2.Alert, "warningIconColor", setCssVarColor("palette-warning-main")); - setColor(palette2.AppBar, "defaultBg", setCssVarColor("palette-grey-100")); - setColor(palette2.Avatar, "defaultBg", setCssVarColor("palette-grey-400")); - setColor(palette2.Button, "inheritContainedBg", setCssVarColor("palette-grey-300")); - setColor(palette2.Button, "inheritContainedHoverBg", setCssVarColor("palette-grey-A100")); - setColor(palette2.Chip, "defaultBorder", setCssVarColor("palette-grey-400")); - setColor(palette2.Chip, "defaultAvatarColor", setCssVarColor("palette-grey-700")); - setColor(palette2.Chip, "defaultIconColor", setCssVarColor("palette-grey-700")); - setColor(palette2.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"); - setColor(palette2.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"); - setColor(palette2.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"); - setColor(palette2.LinearProgress, "primaryBg", private_safeLighten(palette2.primary.main, 0.62)); - setColor(palette2.LinearProgress, "secondaryBg", private_safeLighten(palette2.secondary.main, 0.62)); - setColor(palette2.LinearProgress, "errorBg", private_safeLighten(palette2.error.main, 0.62)); - setColor(palette2.LinearProgress, "infoBg", private_safeLighten(palette2.info.main, 0.62)); - setColor(palette2.LinearProgress, "successBg", private_safeLighten(palette2.success.main, 0.62)); - setColor(palette2.LinearProgress, "warningBg", private_safeLighten(palette2.warning.main, 0.62)); - setColor(palette2.Skeleton, "bg", `rgba(${setCssVarColor("palette-text-primaryChannel")} / 0.11)`); - setColor(palette2.Slider, "primaryTrack", private_safeLighten(palette2.primary.main, 0.62)); - setColor(palette2.Slider, "secondaryTrack", private_safeLighten(palette2.secondary.main, 0.62)); - setColor(palette2.Slider, "errorTrack", private_safeLighten(palette2.error.main, 0.62)); - setColor(palette2.Slider, "infoTrack", private_safeLighten(palette2.info.main, 0.62)); - setColor(palette2.Slider, "successTrack", private_safeLighten(palette2.success.main, 0.62)); - setColor(palette2.Slider, "warningTrack", private_safeLighten(palette2.warning.main, 0.62)); - const snackbarContentBackground = private_safeEmphasize(palette2.background.default, 0.8); - setColor(palette2.SnackbarContent, "bg", snackbarContentBackground); - setColor(palette2.SnackbarContent, "color", silent(() => palette2.getContrastText(snackbarContentBackground))); - setColor(palette2.SpeedDialAction, "fabHoverBg", private_safeEmphasize(palette2.background.paper, 0.15)); - setColor(palette2.StepConnector, "border", setCssVarColor("palette-grey-400")); - setColor(palette2.StepContent, "border", setCssVarColor("palette-grey-400")); - setColor(palette2.Switch, "defaultColor", setCssVarColor("palette-common-white")); - setColor(palette2.Switch, "defaultDisabledColor", setCssVarColor("palette-grey-100")); - setColor(palette2.Switch, "primaryDisabledColor", private_safeLighten(palette2.primary.main, 0.62)); - setColor(palette2.Switch, "secondaryDisabledColor", private_safeLighten(palette2.secondary.main, 0.62)); - setColor(palette2.Switch, "errorDisabledColor", private_safeLighten(palette2.error.main, 0.62)); - setColor(palette2.Switch, "infoDisabledColor", private_safeLighten(palette2.info.main, 0.62)); - setColor(palette2.Switch, "successDisabledColor", private_safeLighten(palette2.success.main, 0.62)); - setColor(palette2.Switch, "warningDisabledColor", private_safeLighten(palette2.warning.main, 0.62)); - setColor(palette2.TableCell, "border", private_safeLighten(private_safeAlpha(palette2.divider, 1), 0.88)); - setColor(palette2.Tooltip, "bg", private_safeAlpha(palette2.grey[700], 0.92)); - } - if (palette2.mode === "dark") { - setColor(palette2.Alert, "errorColor", private_safeLighten(palette2.error.light, 0.6)); - setColor(palette2.Alert, "infoColor", private_safeLighten(palette2.info.light, 0.6)); - setColor(palette2.Alert, "successColor", private_safeLighten(palette2.success.light, 0.6)); - setColor(palette2.Alert, "warningColor", private_safeLighten(palette2.warning.light, 0.6)); - setColor(palette2.Alert, "errorFilledBg", setCssVarColor("palette-error-dark")); - setColor(palette2.Alert, "infoFilledBg", setCssVarColor("palette-info-dark")); - setColor(palette2.Alert, "successFilledBg", setCssVarColor("palette-success-dark")); - setColor(palette2.Alert, "warningFilledBg", setCssVarColor("palette-warning-dark")); - setColor(palette2.Alert, "errorFilledColor", silent(() => palette2.getContrastText(palette2.error.dark))); - setColor(palette2.Alert, "infoFilledColor", silent(() => palette2.getContrastText(palette2.info.dark))); - setColor(palette2.Alert, "successFilledColor", silent(() => palette2.getContrastText(palette2.success.dark))); - setColor(palette2.Alert, "warningFilledColor", silent(() => palette2.getContrastText(palette2.warning.dark))); - setColor(palette2.Alert, "errorStandardBg", private_safeDarken(palette2.error.light, 0.9)); - setColor(palette2.Alert, "infoStandardBg", private_safeDarken(palette2.info.light, 0.9)); - setColor(palette2.Alert, "successStandardBg", private_safeDarken(palette2.success.light, 0.9)); - setColor(palette2.Alert, "warningStandardBg", private_safeDarken(palette2.warning.light, 0.9)); - setColor(palette2.Alert, "errorIconColor", setCssVarColor("palette-error-main")); - setColor(palette2.Alert, "infoIconColor", setCssVarColor("palette-info-main")); - setColor(palette2.Alert, "successIconColor", setCssVarColor("palette-success-main")); - setColor(palette2.Alert, "warningIconColor", setCssVarColor("palette-warning-main")); - setColor(palette2.AppBar, "defaultBg", setCssVarColor("palette-grey-900")); - setColor(palette2.AppBar, "darkBg", setCssVarColor("palette-background-paper")); - setColor(palette2.AppBar, "darkColor", setCssVarColor("palette-text-primary")); - setColor(palette2.Avatar, "defaultBg", setCssVarColor("palette-grey-600")); - setColor(palette2.Button, "inheritContainedBg", setCssVarColor("palette-grey-800")); - setColor(palette2.Button, "inheritContainedHoverBg", setCssVarColor("palette-grey-700")); - setColor(palette2.Chip, "defaultBorder", setCssVarColor("palette-grey-700")); - setColor(palette2.Chip, "defaultAvatarColor", setCssVarColor("palette-grey-300")); - setColor(palette2.Chip, "defaultIconColor", setCssVarColor("palette-grey-300")); - setColor(palette2.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"); - setColor(palette2.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"); - setColor(palette2.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"); - setColor(palette2.LinearProgress, "primaryBg", private_safeDarken(palette2.primary.main, 0.5)); - setColor(palette2.LinearProgress, "secondaryBg", private_safeDarken(palette2.secondary.main, 0.5)); - setColor(palette2.LinearProgress, "errorBg", private_safeDarken(palette2.error.main, 0.5)); - setColor(palette2.LinearProgress, "infoBg", private_safeDarken(palette2.info.main, 0.5)); - setColor(palette2.LinearProgress, "successBg", private_safeDarken(palette2.success.main, 0.5)); - setColor(palette2.LinearProgress, "warningBg", private_safeDarken(palette2.warning.main, 0.5)); - setColor(palette2.Skeleton, "bg", `rgba(${setCssVarColor("palette-text-primaryChannel")} / 0.13)`); - setColor(palette2.Slider, "primaryTrack", private_safeDarken(palette2.primary.main, 0.5)); - setColor(palette2.Slider, "secondaryTrack", private_safeDarken(palette2.secondary.main, 0.5)); - setColor(palette2.Slider, "errorTrack", private_safeDarken(palette2.error.main, 0.5)); - setColor(palette2.Slider, "infoTrack", private_safeDarken(palette2.info.main, 0.5)); - setColor(palette2.Slider, "successTrack", private_safeDarken(palette2.success.main, 0.5)); - setColor(palette2.Slider, "warningTrack", private_safeDarken(palette2.warning.main, 0.5)); - const snackbarContentBackground = private_safeEmphasize(palette2.background.default, 0.98); - setColor(palette2.SnackbarContent, "bg", snackbarContentBackground); - setColor(palette2.SnackbarContent, "color", silent(() => palette2.getContrastText(snackbarContentBackground))); - setColor(palette2.SpeedDialAction, "fabHoverBg", private_safeEmphasize(palette2.background.paper, 0.15)); - setColor(palette2.StepConnector, "border", setCssVarColor("palette-grey-600")); - setColor(palette2.StepContent, "border", setCssVarColor("palette-grey-600")); - setColor(palette2.Switch, "defaultColor", setCssVarColor("palette-grey-300")); - setColor(palette2.Switch, "defaultDisabledColor", setCssVarColor("palette-grey-600")); - setColor(palette2.Switch, "primaryDisabledColor", private_safeDarken(palette2.primary.main, 0.55)); - setColor(palette2.Switch, "secondaryDisabledColor", private_safeDarken(palette2.secondary.main, 0.55)); - setColor(palette2.Switch, "errorDisabledColor", private_safeDarken(palette2.error.main, 0.55)); - setColor(palette2.Switch, "infoDisabledColor", private_safeDarken(palette2.info.main, 0.55)); - setColor(palette2.Switch, "successDisabledColor", private_safeDarken(palette2.success.main, 0.55)); - setColor(palette2.Switch, "warningDisabledColor", private_safeDarken(palette2.warning.main, 0.55)); - setColor(palette2.TableCell, "border", private_safeDarken(private_safeAlpha(palette2.divider, 1), 0.68)); - setColor(palette2.Tooltip, "bg", private_safeAlpha(palette2.grey[700], 0.92)); - } - setColorChannel(palette2.background, "default"); - setColorChannel(palette2.background, "paper"); - setColorChannel(palette2.common, "background"); - setColorChannel(palette2.common, "onBackground"); - setColorChannel(palette2, "divider"); - Object.keys(palette2).forEach((color2) => { - const colors = palette2[color2]; - if (color2 !== "tonalOffset" && colors && typeof colors === "object") { - if (colors.main) { - setColor(palette2[color2], "mainChannel", private_safeColorChannel(toRgb(colors.main))); - } - if (colors.light) { - setColor(palette2[color2], "lightChannel", private_safeColorChannel(toRgb(colors.light))); - } - if (colors.dark) { - setColor(palette2[color2], "darkChannel", private_safeColorChannel(toRgb(colors.dark))); - } - if (colors.contrastText) { - setColor(palette2[color2], "contrastTextChannel", private_safeColorChannel(toRgb(colors.contrastText))); - } - if (color2 === "text") { - setColorChannel(palette2[color2], "primary"); - setColorChannel(palette2[color2], "secondary"); - } - if (color2 === "action") { - if (colors.active) { - setColorChannel(palette2[color2], "active"); - } - if (colors.selected) { - setColorChannel(palette2[color2], "selected"); - } - } - } - }); - }); - theme = args.reduce((acc, argument) => deepmerge(acc, argument), theme); - const parserConfig = { - prefix: cssVarPrefix, - disableCssColorScheme, - shouldSkipGeneratingVar: shouldSkipGeneratingVar2, - getSelector: createGetSelector_default(theme) - }; - const { - vars, - generateThemeVars, - generateStyleSheets - } = prepareCssVars_default(theme, parserConfig); - theme.vars = vars; - Object.entries(theme.colorSchemes[theme.defaultColorScheme]).forEach(([key, value]) => { - theme[key] = value; - }); - theme.generateThemeVars = generateThemeVars; - theme.generateStyleSheets = generateStyleSheets; - theme.generateSpacing = function generateSpacing() { - return createSpacing(input.spacing, createUnarySpacing(this)); - }; - theme.getColorSchemeSelector = createGetColorSchemeSelector(selector); - theme.spacing = theme.generateSpacing(); - theme.shouldSkipGeneratingVar = shouldSkipGeneratingVar2; - theme.unstable_sxConfig = { - ...defaultSxConfig_default, - ...input == null ? void 0 : input.unstable_sxConfig - }; - theme.unstable_sx = function sx(props) { - return styleFunctionSx_default({ - sx: props, - theme: this - }); - }; - theme.toRuntimeSource = stringifyTheme; - return theme; -} - -// node_modules/@mui/material/esm/styles/createTheme.js -function attachColorScheme2(theme, scheme, colorScheme) { - if (!theme.colorSchemes) { - return void 0; - } - if (colorScheme) { - theme.colorSchemes[scheme] = { - ...colorScheme !== true && colorScheme, - palette: createPalette({ - ...colorScheme === true ? {} : colorScheme.palette, - mode: scheme - }) - // cast type to skip module augmentation test - }; - } -} -function createTheme2(options = {}, ...args) { - const { - palette: palette2, - cssVariables = false, - colorSchemes: initialColorSchemes = !palette2 ? { - light: true - } : void 0, - defaultColorScheme: initialDefaultColorScheme = palette2 == null ? void 0 : palette2.mode, - ...rest - } = options; - const defaultColorSchemeInput = initialDefaultColorScheme || "light"; - const defaultScheme = initialColorSchemes == null ? void 0 : initialColorSchemes[defaultColorSchemeInput]; - const colorSchemesInput = { - ...initialColorSchemes, - ...palette2 ? { - [defaultColorSchemeInput]: { - ...typeof defaultScheme !== "boolean" && defaultScheme, - palette: palette2 - } - } : void 0 - }; - if (cssVariables === false) { - if (!("colorSchemes" in options)) { - return createThemeNoVars_default(options, ...args); - } - let paletteOptions = palette2; - if (!("palette" in options)) { - if (colorSchemesInput[defaultColorSchemeInput]) { - if (colorSchemesInput[defaultColorSchemeInput] !== true) { - paletteOptions = colorSchemesInput[defaultColorSchemeInput].palette; - } else if (defaultColorSchemeInput === "dark") { - paletteOptions = { - mode: "dark" - }; - } - } - } - const theme = createThemeNoVars_default({ - ...options, - palette: paletteOptions - }, ...args); - theme.defaultColorScheme = defaultColorSchemeInput; - theme.colorSchemes = colorSchemesInput; - if (theme.palette.mode === "light") { - theme.colorSchemes.light = { - ...colorSchemesInput.light !== true && colorSchemesInput.light, - palette: theme.palette - }; - attachColorScheme2(theme, "dark", colorSchemesInput.dark); - } - if (theme.palette.mode === "dark") { - theme.colorSchemes.dark = { - ...colorSchemesInput.dark !== true && colorSchemesInput.dark, - palette: theme.palette - }; - attachColorScheme2(theme, "light", colorSchemesInput.light); - } - return theme; - } - if (!palette2 && !("light" in colorSchemesInput) && defaultColorSchemeInput === "light") { - colorSchemesInput.light = true; - } - return createThemeWithVars({ - ...rest, - colorSchemes: colorSchemesInput, - defaultColorScheme: defaultColorSchemeInput, - ...typeof cssVariables !== "boolean" && cssVariables - }, ...args); -} - -// node_modules/@mui/material/esm/styles/defaultTheme.js -var defaultTheme4 = createTheme2(); -var defaultTheme_default = defaultTheme4; - -// node_modules/@mui/material/esm/styles/identifier.js -var identifier_default = "$$material"; - -// node_modules/@mui/material/esm/GlobalStyles/GlobalStyles.js -var React38 = __toESM(require_react(), 1); -var import_prop_types21 = __toESM(require_prop_types(), 1); -var import_jsx_runtime14 = __toESM(require_jsx_runtime(), 1); -function GlobalStyles3(props) { - return (0, import_jsx_runtime14.jsx)(GlobalStyles_default, { - ...props, - defaultTheme: defaultTheme_default, - themeId: identifier_default - }); -} -true ? GlobalStyles3.propTypes = { - // ┌────────────────────────────── Warning ──────────────────────────────┐ - // │ These PropTypes are generated from the TypeScript type definitions. │ - // │ To update them, edit the d.ts file and run `pnpm proptypes`. │ - // └─────────────────────────────────────────────────────────────────────┘ - /** - * The styles you want to apply globally. - */ - styles: import_prop_types21.default.oneOfType([import_prop_types21.default.array, import_prop_types21.default.func, import_prop_types21.default.number, import_prop_types21.default.object, import_prop_types21.default.string, import_prop_types21.default.bool]) -} : void 0; - -// node_modules/@mui/material/esm/zero-styled/index.js -var import_jsx_runtime15 = __toESM(require_jsx_runtime(), 1); - -// node_modules/@mui/material/esm/styles/slotShouldForwardProp.js -function slotShouldForwardProp(prop) { - return prop !== "ownerState" && prop !== "theme" && prop !== "sx" && prop !== "as"; -} -var slotShouldForwardProp_default = slotShouldForwardProp; - -// node_modules/@mui/material/esm/styles/rootShouldForwardProp.js -var rootShouldForwardProp = (prop) => slotShouldForwardProp_default(prop) && prop !== "classes"; -var rootShouldForwardProp_default = rootShouldForwardProp; - -// node_modules/@mui/material/esm/styles/styled.js -var styled3 = createStyled3({ - themeId: identifier_default, - defaultTheme: defaultTheme_default, - rootShouldForwardProp: rootShouldForwardProp_default -}); -var styled_default2 = styled3; - -// node_modules/@mui/material/esm/utils/memoTheme.js -var memoTheme = unstable_memoTheme; -var memoTheme_default = memoTheme; - -// node_modules/@mui/material/esm/DefaultPropsProvider/DefaultPropsProvider.js -var React40 = __toESM(require_react(), 1); -var import_prop_types22 = __toESM(require_prop_types(), 1); -var import_jsx_runtime16 = __toESM(require_jsx_runtime(), 1); -function DefaultPropsProvider2(props) { - return (0, import_jsx_runtime16.jsx)(DefaultPropsProvider_default, { - ...props - }); -} -true ? DefaultPropsProvider2.propTypes = { - // ┌────────────────────────────── Warning ──────────────────────────────┐ - // │ These PropTypes are generated from the TypeScript type definitions. │ - // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │ - // └─────────────────────────────────────────────────────────────────────┘ - /** - * @ignore - */ - children: import_prop_types22.default.node, - /** - * @ignore - */ - value: import_prop_types22.default.object.isRequired -} : void 0; -function useDefaultProps2(params) { - return useDefaultProps(params); -} - -// node_modules/@mui/material/esm/SvgIcon/svgIconClasses.js -function getSvgIconUtilityClass(slot) { - return generateUtilityClass("MuiSvgIcon", slot); -} -var svgIconClasses = generateUtilityClasses("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]); - -// node_modules/@mui/material/esm/SvgIcon/SvgIcon.js -var import_jsx_runtime17 = __toESM(require_jsx_runtime(), 1); -var useUtilityClasses2 = (ownerState) => { - const { - color: color2, - fontSize: fontSize2, - classes - } = ownerState; - const slots = { - root: ["root", color2 !== "inherit" && `color${capitalize_default(color2)}`, `fontSize${capitalize_default(fontSize2)}`] - }; - return composeClasses(slots, getSvgIconUtilityClass, classes); -}; -var SvgIconRoot = styled_default2("svg", { - name: "MuiSvgIcon", - slot: "Root", - overridesResolver: (props, styles) => { - const { - ownerState - } = props; - return [styles.root, ownerState.color !== "inherit" && styles[`color${capitalize_default(ownerState.color)}`], styles[`fontSize${capitalize_default(ownerState.fontSize)}`]]; - } -})(memoTheme_default(({ - theme -}) => { - var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n; - return { - userSelect: "none", - width: "1em", - height: "1em", - display: "inline-block", - flexShrink: 0, - transition: (_d = (_a = theme.transitions) == null ? void 0 : _a.create) == null ? void 0 : _d.call(_a, "fill", { - duration: (_c = (_b = (theme.vars ?? theme).transitions) == null ? void 0 : _b.duration) == null ? void 0 : _c.shorter - }), - variants: [ - { - props: (props) => !props.hasSvgAsChild, - style: { - // the will define the property that has `currentColor` - // for example heroicons uses fill="none" and stroke="currentColor" - fill: "currentColor" - } - }, - { - props: { - fontSize: "inherit" - }, - style: { - fontSize: "inherit" - } - }, - { - props: { - fontSize: "small" - }, - style: { - fontSize: ((_f = (_e = theme.typography) == null ? void 0 : _e.pxToRem) == null ? void 0 : _f.call(_e, 20)) || "1.25rem" - } - }, - { - props: { - fontSize: "medium" - }, - style: { - fontSize: ((_h = (_g = theme.typography) == null ? void 0 : _g.pxToRem) == null ? void 0 : _h.call(_g, 24)) || "1.5rem" - } - }, - { - props: { - fontSize: "large" - }, - style: { - fontSize: ((_j = (_i = theme.typography) == null ? void 0 : _i.pxToRem) == null ? void 0 : _j.call(_i, 35)) || "2.1875rem" - } - }, - // TODO v5 deprecate color prop, v6 remove for sx - ...Object.entries((theme.vars ?? theme).palette).filter(([, value]) => value && value.main).map(([color2]) => { - var _a2, _b2; - return { - props: { - color: color2 - }, - style: { - color: (_b2 = (_a2 = (theme.vars ?? theme).palette) == null ? void 0 : _a2[color2]) == null ? void 0 : _b2.main - } - }; - }), - { - props: { - color: "action" - }, - style: { - color: (_l = (_k = (theme.vars ?? theme).palette) == null ? void 0 : _k.action) == null ? void 0 : _l.active - } - }, - { - props: { - color: "disabled" - }, - style: { - color: (_n = (_m = (theme.vars ?? theme).palette) == null ? void 0 : _m.action) == null ? void 0 : _n.disabled - } - }, - { - props: { - color: "inherit" - }, - style: { - color: void 0 - } - } - ] - }; -})); -var SvgIcon = React41.forwardRef(function SvgIcon2(inProps, ref) { - const props = useDefaultProps2({ - props: inProps, - name: "MuiSvgIcon" - }); - const { - children, - className, - color: color2 = "inherit", - component = "svg", - fontSize: fontSize2 = "medium", - htmlColor, - inheritViewBox = false, - titleAccess, - viewBox = "0 0 24 24", - ...other - } = props; - const hasSvgAsChild = React41.isValidElement(children) && children.type === "svg"; - const ownerState = { - ...props, - color: color2, - component, - fontSize: fontSize2, - instanceFontSize: inProps.fontSize, - inheritViewBox, - viewBox, - hasSvgAsChild - }; - const more = {}; - if (!inheritViewBox) { - more.viewBox = viewBox; - } - const classes = useUtilityClasses2(ownerState); - return (0, import_jsx_runtime17.jsxs)(SvgIconRoot, { - as: component, - className: clsx_default(classes.root, className), - focusable: "false", - color: htmlColor, - "aria-hidden": titleAccess ? void 0 : true, - role: titleAccess ? "img" : void 0, - ref, - ...more, - ...other, - ...hasSvgAsChild && children.props, - ownerState, - children: [hasSvgAsChild ? children.props.children : children, titleAccess ? (0, import_jsx_runtime17.jsx)("title", { - children: titleAccess - }) : null] - }); -}); -true ? SvgIcon.propTypes = { - // ┌────────────────────────────── Warning ──────────────────────────────┐ - // │ These PropTypes are generated from the TypeScript type definitions. │ - // │ To update them, edit the d.ts file and run `pnpm proptypes`. │ - // └─────────────────────────────────────────────────────────────────────┘ - /** - * Node passed into the SVG element. - */ - children: import_prop_types23.default.node, - /** - * Override or extend the styles applied to the component. - */ - classes: import_prop_types23.default.object, - /** - * @ignore - */ - className: import_prop_types23.default.string, - /** - * The color of the component. - * It supports both default and custom theme colors, which can be added as shown in the - * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors). - * You can use the `htmlColor` prop to apply a color attribute to the SVG element. - * @default 'inherit' - */ - color: import_prop_types23.default.oneOfType([import_prop_types23.default.oneOf(["inherit", "action", "disabled", "primary", "secondary", "error", "info", "success", "warning"]), import_prop_types23.default.string]), - /** - * The component used for the root node. - * Either a string to use a HTML element or a component. - */ - component: import_prop_types23.default.elementType, - /** - * The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size. - * @default 'medium' - */ - fontSize: import_prop_types23.default.oneOfType([import_prop_types23.default.oneOf(["inherit", "large", "medium", "small"]), import_prop_types23.default.string]), - /** - * Applies a color attribute to the SVG element. - */ - htmlColor: import_prop_types23.default.string, - /** - * If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox` - * prop will be ignored. - * Useful when you want to reference a custom `component` and have `SvgIcon` pass that - * `component`'s viewBox to the root node. - * @default false - */ - inheritViewBox: import_prop_types23.default.bool, - /** - * The shape-rendering attribute. The behavior of the different options is described on the - * [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/shape-rendering). - * If you are having issues with blurry icons you should investigate this prop. - */ - shapeRendering: import_prop_types23.default.string, - /** - * The system prop that allows defining system overrides as well as additional CSS styles. - */ - sx: import_prop_types23.default.oneOfType([import_prop_types23.default.arrayOf(import_prop_types23.default.oneOfType([import_prop_types23.default.func, import_prop_types23.default.object, import_prop_types23.default.bool])), import_prop_types23.default.func, import_prop_types23.default.object]), - /** - * Provides a human-readable title for the element that contains it. - * https://www.w3.org/TR/SVG-access/#Equivalent - */ - titleAccess: import_prop_types23.default.string, - /** - * Allows you to redefine what the coordinates without units mean inside an SVG element. - * For example, if the SVG element is 500 (width) by 200 (height), - * and you pass viewBox="0 0 50 20", - * this means that the coordinates inside the SVG will go from the top left corner (0,0) - * to bottom right (50,20) and each unit will be worth 10px. - * @default '0 0 24 24' - */ - viewBox: import_prop_types23.default.string -} : void 0; -SvgIcon.muiName = "SvgIcon"; -var SvgIcon_default = SvgIcon; - -// node_modules/@mui/material/esm/utils/createSvgIcon.js -var import_jsx_runtime18 = __toESM(require_jsx_runtime(), 1); -function createSvgIcon(path, displayName) { - function Component(props, ref) { - return (0, import_jsx_runtime18.jsx)(SvgIcon_default, { - "data-testid": true ? `${displayName}Icon` : void 0, - ref, - ...props, - children: path - }); - } - if (true) { - Component.displayName = `${displayName}Icon`; - } - Component.muiName = SvgIcon_default.muiName; - return React42.memo(React42.forwardRef(Component)); -} - -export { - createSvgIcon -}; -/*! Bundled license information: - -react-is/cjs/react-is.development.js: - (** @license React v16.13.1 - * react-is.development.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. - *) - -object-assign/index.js: - (* - object-assign - (c) Sindre Sorhus - @license MIT - *) - -react-is/cjs/react-is.development.js: - (** - * @license React - * react-is.development.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - *) - -react-is/cjs/react-is.development.js: - (** @license React v16.13.1 - * react-is.development.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. - *) - -@mui/styled-engine/esm/index.js: - (** - * @mui/styled-engine v7.0.2 - * - * @license MIT - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - *) - -@mui/utils/esm/index.js: - (** - * @mui/utils v7.0.2 - * - * @license MIT - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - *) - -@mui/private-theming/esm/index.js: - (** - * @mui/private-theming v7.0.2 - * - * @license MIT - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - *) - -@mui/system/esm/index.js: - (** - * @mui/system v7.0.2 - * - * @license MIT - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - *) -*/ -//# sourceMappingURL=chunk-Y7GULVZW.js.map diff --git a/node_modules/.vite/deps/chunk-Y7GULVZW.js.map b/node_modules/.vite/deps/chunk-Y7GULVZW.js.map deleted file mode 100644 index 3ded8ff9..00000000 --- a/node_modules/.vite/deps/chunk-Y7GULVZW.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../../prop-types/node_modules/react-is/cjs/react-is.development.js", "../../prop-types/node_modules/react-is/index.js", "../../object-assign/index.js", "../../prop-types/lib/ReactPropTypesSecret.js", "../../prop-types/lib/has.js", "../../prop-types/checkPropTypes.js", "../../prop-types/factoryWithTypeCheckers.js", "../../prop-types/index.js", "../../react-is/cjs/react-is.development.js", "../../react-is/index.js", "../../hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js", "../../hoist-non-react-statics/node_modules/react-is/index.js", "../../hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js", "../../@mui/material/esm/utils/createSvgIcon.js", "../../@mui/material/esm/SvgIcon/SvgIcon.js", "../../clsx/dist/clsx.mjs", "../../@mui/utils/esm/composeClasses/composeClasses.js", "../../@mui/utils/esm/capitalize/capitalize.js", "../../@mui/material/esm/utils/capitalize.js", "../../@mui/material/esm/zero-styled/index.js", "../../@mui/utils/esm/deepmerge/deepmerge.js", "../../@mui/system/esm/merge/merge.js", "../../@mui/system/esm/responsivePropType/responsivePropType.js", "../../@mui/system/esm/breakpoints/breakpoints.js", "../../@mui/system/esm/cssContainerQueries/cssContainerQueries.js", "../../@mui/system/esm/style/style.js", "../../@mui/system/esm/memoize/memoize.js", "../../@mui/system/esm/spacing/spacing.js", "../../@mui/system/esm/compose/compose.js", "../../@mui/system/esm/borders/borders.js", "../../@mui/system/esm/cssGrid/cssGrid.js", "../../@mui/system/esm/palette/palette.js", "../../@mui/system/esm/sizing/sizing.js", "../../@mui/system/esm/styleFunctionSx/defaultSxConfig.js", "../../@mui/system/esm/styleFunctionSx/styleFunctionSx.js", "../../@mui/system/esm/styleFunctionSx/extendSxProp.js", "../../@mui/material/esm/styles/useTheme.js", "../../@babel/runtime/helpers/esm/extends.js", "../../@emotion/react/dist/emotion-element-489459f2.browser.development.esm.js", "../../@emotion/sheet/dist/emotion-sheet.development.esm.js", "../../stylis/src/Enum.js", "../../stylis/src/Utility.js", "../../stylis/src/Tokenizer.js", "../../stylis/src/Parser.js", "../../stylis/src/Serializer.js", "../../stylis/src/Middleware.js", "../../@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js", "../../@emotion/memoize/dist/emotion-memoize.esm.js", "../../@emotion/cache/dist/emotion-cache.browser.development.esm.js", "../../@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.esm.js", "../../@emotion/utils/dist/emotion-utils.browser.esm.js", "../../@emotion/hash/dist/emotion-hash.esm.js", "../../@emotion/unitless/dist/emotion-unitless.esm.js", "../../@emotion/serialize/dist/emotion-serialize.development.esm.js", "../../@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js", "../../@emotion/react/dist/emotion-react.browser.development.esm.js", "../../@emotion/styled/base/dist/emotion-styled-base.browser.development.esm.js", "../../@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js", "../../@emotion/styled/dist/emotion-styled.browser.development.esm.js", "../../@mui/styled-engine/esm/StyledEngineProvider/StyledEngineProvider.js", "../../@mui/styled-engine/esm/GlobalStyles/GlobalStyles.js", "../../@mui/styled-engine/esm/index.js", "../../@mui/system/esm/GlobalStyles/GlobalStyles.js", "../../@mui/system/esm/createBreakpoints/createBreakpoints.js", "../../@mui/system/esm/createTheme/shape.js", "../../@mui/system/esm/createTheme/createSpacing.js", "../../@mui/system/esm/createTheme/applyStyles.js", "../../@mui/system/esm/createTheme/createTheme.js", "../../@mui/system/esm/useThemeWithoutDefault/useThemeWithoutDefault.js", "../../@mui/system/esm/useTheme/useTheme.js", "../../@mui/system/esm/display/display.js", "../../@mui/system/esm/flexbox/flexbox.js", "../../@mui/system/esm/positions/positions.js", "../../@mui/system/esm/shadows/shadows.js", "../../@mui/system/esm/typography/typography.js", "../../@mui/system/esm/getThemeValue/getThemeValue.js", "../../@mui/system/esm/Box/Box.js", "../../@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js", "../../@mui/system/esm/createBox/createBox.js", "../../@mui/utils/esm/generateUtilityClass/generateUtilityClass.js", "../../@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js", "../../@mui/system/esm/Box/boxClasses.js", "../../@mui/utils/esm/getDisplayName/getDisplayName.js", "../../@mui/system/esm/preprocessStyles.js", "../../@mui/system/esm/createStyled/createStyled.js", "../../@mui/system/esm/styled/styled.js", "../../@mui/utils/esm/resolveProps/resolveProps.js", "../../@mui/system/esm/useThemeProps/getThemeProps.js", "../../@mui/system/esm/useThemeProps/useThemeProps.js", "../../@mui/system/esm/useMediaQuery/useMediaQuery.js", "../../@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js", "../../@mui/utils/esm/clamp/clamp.js", "../../@mui/system/esm/colorManipulator/colorManipulator.js", "../../@mui/system/esm/ThemeProvider/ThemeProvider.js", "../../@mui/private-theming/esm/ThemeProvider/ThemeProvider.js", "../../@mui/utils/esm/chainPropTypes/chainPropTypes.js", "../../@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js", "../../@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js", "../../@mui/utils/esm/exactProp/exactProp.js", "../../@mui/utils/esm/ponyfillGlobal/ponyfillGlobal.js", "../../@mui/utils/esm/refType/refType.js", "../../@mui/utils/esm/isMuiElement/isMuiElement.js", "../../@mui/utils/esm/useId/useId.js", "../../@mui/utils/esm/useControlled/useControlled.js", "../../@mui/utils/esm/useEventCallback/useEventCallback.js", "../../@mui/utils/esm/useForkRef/useForkRef.js", "../../@mui/utils/esm/useLazyRef/useLazyRef.js", "../../@mui/utils/esm/useOnMount/useOnMount.js", "../../@mui/utils/esm/useTimeout/useTimeout.js", "../../@mui/utils/esm/useIsFocusVisible/useIsFocusVisible.js", "../../@mui/utils/esm/usePreviousProps/usePreviousProps.js", "../../@mui/utils/esm/getValidReactChildren/getValidReactChildren.js", "../../@mui/utils/esm/integerPropType/integerPropType.js", "../../@mui/utils/esm/getReactNodeRef/getReactNodeRef.js", "../../@mui/utils/esm/getReactElementRef/getReactElementRef.js", "../../@mui/private-theming/esm/useTheme/ThemeContext.js", "../../@mui/private-theming/esm/useTheme/useTheme.js", "../../@mui/private-theming/esm/ThemeProvider/nested.js", "../../@mui/system/esm/RtlProvider/index.js", "../../@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js", "../../@mui/system/esm/memoTheme.js", "../../@mui/system/esm/cssVars/createCssVarsProvider.js", "../../@mui/system/esm/InitColorSchemeScript/InitColorSchemeScript.js", "../../@mui/system/esm/cssVars/useCurrentColorScheme.js", "../../@mui/system/esm/cssVars/createGetCssVar.js", "../../@mui/system/esm/cssVars/cssVarsParser.js", "../../@mui/system/esm/cssVars/prepareCssVars.js", "../../@mui/system/esm/cssVars/getColorSchemeSelector.js", "../../@mui/system/esm/version/index.js", "../../@mui/system/esm/Container/createContainer.js", "../../@mui/system/esm/Container/Container.js", "../../@mui/system/esm/Container/containerClasses.js", "../../@mui/system/esm/Grid/Grid.js", "../../@mui/system/esm/Grid/createGrid.js", "../../@mui/system/esm/Grid/traverseBreakpoints.js", "../../@mui/system/esm/Grid/gridGenerator.js", "../../@mui/system/esm/Grid/deleteLegacyGridProps.js", "../../@mui/system/esm/Grid/gridClasses.js", "../../@mui/system/esm/Stack/Stack.js", "../../@mui/system/esm/Stack/createStack.js", "../../@mui/system/esm/Stack/stackClasses.js", "../../@mui/material/esm/colors/common.js", "../../@mui/material/esm/colors/grey.js", "../../@mui/material/esm/colors/purple.js", "../../@mui/material/esm/colors/red.js", "../../@mui/material/esm/colors/orange.js", "../../@mui/material/esm/colors/blue.js", "../../@mui/material/esm/colors/lightBlue.js", "../../@mui/material/esm/colors/green.js", "../../@mui/material/esm/styles/createPalette.js", "../../@mui/system/esm/cssVars/prepareTypographyVars.js", "../../@mui/material/esm/styles/createMixins.js", "../../@mui/material/esm/styles/createTypography.js", "../../@mui/material/esm/styles/shadows.js", "../../@mui/material/esm/styles/createTransitions.js", "../../@mui/material/esm/styles/zIndex.js", "../../@mui/material/esm/styles/stringifyTheme.js", "../../@mui/material/esm/styles/createThemeNoVars.js", "../../@mui/material/esm/styles/getOverlayAlpha.js", "../../@mui/material/esm/styles/createColorScheme.js", "../../@mui/material/esm/styles/shouldSkipGeneratingVar.js", "../../@mui/material/esm/styles/excludeVariablesFromRoot.js", "../../@mui/material/esm/styles/createGetSelector.js", "../../@mui/material/esm/styles/createThemeWithVars.js", "../../@mui/material/esm/styles/createTheme.js", "../../@mui/material/esm/styles/defaultTheme.js", "../../@mui/material/esm/styles/identifier.js", "../../@mui/material/esm/GlobalStyles/GlobalStyles.js", "../../@mui/material/esm/styles/slotShouldForwardProp.js", "../../@mui/material/esm/styles/rootShouldForwardProp.js", "../../@mui/material/esm/styles/styled.js", "../../@mui/material/esm/utils/memoTheme.js", "../../@mui/material/esm/DefaultPropsProvider/DefaultPropsProvider.js", "../../@mui/material/esm/SvgIcon/svgIconClasses.js"], - "sourcesContent": ["/** @license React v16.13.1\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;\nvar REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;\nvar REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;\nvar REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;\nvar REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;\nvar REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;\nvar REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary\n// (unstable) APIs that have been removed. Can we remove the symbols?\n\nvar REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;\nvar REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;\nvar REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;\nvar REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;\nvar REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;\nvar REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;\nvar REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;\nvar REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;\nvar REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;\nvar REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;\nvar REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;\n\nfunction isValidElementType(type) {\n return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);\n}\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_ASYNC_MODE_TYPE:\n case REACT_CONCURRENT_MODE_TYPE:\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n return type;\n\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n\n default:\n return $$typeof;\n }\n\n }\n\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n} // AsyncMode is deprecated along with isAsyncMode\n\nvar AsyncMode = REACT_ASYNC_MODE_TYPE;\nvar ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');\n }\n }\n\n return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;\n}\nfunction isConcurrentMode(object) {\n return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\n\nexports.AsyncMode = AsyncMode;\nexports.ConcurrentMode = ConcurrentMode;\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n })();\n}\n", "'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n", "/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n", "/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n", "module.exports = Function.call.bind(Object.prototype.hasOwnProperty);\n", "/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n var loggedTypeFailures = {};\n var has = require('./lib/has');\n\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) { /**/ }\n };\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (process.env.NODE_ENV !== 'production') {\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error(\n (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +\n 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'\n );\n err.name = 'Invariant Violation';\n throw err;\n }\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n if (error && !(error instanceof Error)) {\n printWarning(\n (componentName || 'React class') + ': type specification of ' +\n location + ' `' + typeSpecName + '` is invalid; the type checker ' +\n 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +\n 'You may have forgotten to pass an argument to the type checker ' +\n 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +\n 'shape all require an argument).'\n );\n }\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n printWarning(\n 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')\n );\n }\n }\n }\n }\n}\n\n/**\n * Resets warning cache when testing.\n *\n * @private\n */\ncheckPropTypes.resetWarningCache = function() {\n if (process.env.NODE_ENV !== 'production') {\n loggedTypeFailures = {};\n }\n}\n\nmodule.exports = checkPropTypes;\n", "/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactIs = require('react-is');\nvar assign = require('object-assign');\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\nvar has = require('./lib/has');\nvar checkPropTypes = require('./checkPropTypes');\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\nfunction emptyFunctionThatReturnsNull() {\n return null;\n}\n\nmodule.exports = function(isValidElement, throwOnDirectAccess) {\n /* global Symbol */\n var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n /**\n * Returns the iterator method function contained on the iterable object.\n *\n * Be sure to invoke the function with the iterable as context:\n *\n * var iteratorFn = getIteratorFn(myIterable);\n * if (iteratorFn) {\n * var iterator = iteratorFn.call(myIterable);\n * ...\n * }\n *\n * @param {?object} maybeIterable\n * @return {?function}\n */\n function getIteratorFn(maybeIterable) {\n var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n if (typeof iteratorFn === 'function') {\n return iteratorFn;\n }\n }\n\n /**\n * Collection of methods that allow declaration and validation of props that are\n * supplied to React components. Example usage:\n *\n * var Props = require('ReactPropTypes');\n * var MyArticle = React.createClass({\n * propTypes: {\n * // An optional string prop named \"description\".\n * description: Props.string,\n *\n * // A required enum prop named \"category\".\n * category: Props.oneOf(['News','Photos']).isRequired,\n *\n * // A prop named \"dialog\" that requires an instance of Dialog.\n * dialog: Props.instanceOf(Dialog).isRequired\n * },\n * render: function() { ... }\n * });\n *\n * A more formal specification of how these methods are used:\n *\n * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)\n * decl := ReactPropTypes.{type}(.isRequired)?\n *\n * Each and every declaration produces a function with the same signature. This\n * allows the creation of custom validation functions. For example:\n *\n * var MyLink = React.createClass({\n * propTypes: {\n * // An optional string or URI prop named \"href\".\n * href: function(props, propName, componentName) {\n * var propValue = props[propName];\n * if (propValue != null && typeof propValue !== 'string' &&\n * !(propValue instanceof URI)) {\n * return new Error(\n * 'Expected a string or an URI for ' + propName + ' in ' +\n * componentName\n * );\n * }\n * }\n * },\n * render: function() {...}\n * });\n *\n * @internal\n */\n\n var ANONYMOUS = '<>';\n\n // Important!\n // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.\n var ReactPropTypes = {\n array: createPrimitiveTypeChecker('array'),\n bigint: createPrimitiveTypeChecker('bigint'),\n bool: createPrimitiveTypeChecker('boolean'),\n func: createPrimitiveTypeChecker('function'),\n number: createPrimitiveTypeChecker('number'),\n object: createPrimitiveTypeChecker('object'),\n string: createPrimitiveTypeChecker('string'),\n symbol: createPrimitiveTypeChecker('symbol'),\n\n any: createAnyTypeChecker(),\n arrayOf: createArrayOfTypeChecker,\n element: createElementTypeChecker(),\n elementType: createElementTypeTypeChecker(),\n instanceOf: createInstanceTypeChecker,\n node: createNodeChecker(),\n objectOf: createObjectOfTypeChecker,\n oneOf: createEnumTypeChecker,\n oneOfType: createUnionTypeChecker,\n shape: createShapeTypeChecker,\n exact: createStrictShapeTypeChecker,\n };\n\n /**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\n /*eslint-disable no-self-compare*/\n function is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n return x !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n }\n /*eslint-enable no-self-compare*/\n\n /**\n * We use an Error-like object for backward compatibility as people may call\n * PropTypes directly and inspect their output. However, we don't use real\n * Errors anymore. We don't inspect their stack anyway, and creating them\n * is prohibitively expensive if they are created too often, such as what\n * happens in oneOfType() for any type before the one that matched.\n */\n function PropTypeError(message, data) {\n this.message = message;\n this.data = data && typeof data === 'object' ? data: {};\n this.stack = '';\n }\n // Make `instanceof Error` still work for returned errors.\n PropTypeError.prototype = Error.prototype;\n\n function createChainableTypeChecker(validate) {\n if (process.env.NODE_ENV !== 'production') {\n var manualPropTypeCallCache = {};\n var manualPropTypeWarningCount = 0;\n }\n function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {\n componentName = componentName || ANONYMOUS;\n propFullName = propFullName || propName;\n\n if (secret !== ReactPropTypesSecret) {\n if (throwOnDirectAccess) {\n // New behavior only for users of `prop-types` package\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use `PropTypes.checkPropTypes()` to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {\n // Old behavior for people using React.PropTypes\n var cacheKey = componentName + ':' + propName;\n if (\n !manualPropTypeCallCache[cacheKey] &&\n // Avoid spamming the console because they are often not actionable except for lib authors\n manualPropTypeWarningCount < 3\n ) {\n printWarning(\n 'You are manually calling a React.PropTypes validation ' +\n 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +\n 'and will throw in the standalone `prop-types` package. ' +\n 'You may be seeing this warning due to a third-party PropTypes ' +\n 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'\n );\n manualPropTypeCallCache[cacheKey] = true;\n manualPropTypeWarningCount++;\n }\n }\n }\n if (props[propName] == null) {\n if (isRequired) {\n if (props[propName] === null) {\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));\n }\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));\n }\n return null;\n } else {\n return validate(props, propName, componentName, location, propFullName);\n }\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n }\n\n function createPrimitiveTypeChecker(expectedType) {\n function validate(props, propName, componentName, location, propFullName, secret) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== expectedType) {\n // `propValue` being instance of, say, date/regexp, pass the 'object'\n // check, but we can offer a more precise error message here rather than\n // 'of type `object`'.\n var preciseType = getPreciseType(propValue);\n\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),\n {expectedType: expectedType}\n );\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createAnyTypeChecker() {\n return createChainableTypeChecker(emptyFunctionThatReturnsNull);\n }\n\n function createArrayOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');\n }\n var propValue = props[propName];\n if (!Array.isArray(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));\n }\n for (var i = 0; i < propValue.length; i++) {\n var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!isValidElement(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!ReactIs.isValidElementType(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createInstanceTypeChecker(expectedClass) {\n function validate(props, propName, componentName, location, propFullName) {\n if (!(props[propName] instanceof expectedClass)) {\n var expectedClassName = expectedClass.name || ANONYMOUS;\n var actualClassName = getClassName(props[propName]);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createEnumTypeChecker(expectedValues) {\n if (!Array.isArray(expectedValues)) {\n if (process.env.NODE_ENV !== 'production') {\n if (arguments.length > 1) {\n printWarning(\n 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +\n 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'\n );\n } else {\n printWarning('Invalid argument supplied to oneOf, expected an array.');\n }\n }\n return emptyFunctionThatReturnsNull;\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n for (var i = 0; i < expectedValues.length; i++) {\n if (is(propValue, expectedValues[i])) {\n return null;\n }\n }\n\n var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {\n var type = getPreciseType(value);\n if (type === 'symbol') {\n return String(value);\n }\n return value;\n });\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createObjectOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');\n }\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));\n }\n for (var key in propValue) {\n if (has(propValue, key)) {\n var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createUnionTypeChecker(arrayOfTypeCheckers) {\n if (!Array.isArray(arrayOfTypeCheckers)) {\n process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;\n return emptyFunctionThatReturnsNull;\n }\n\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (typeof checker !== 'function') {\n printWarning(\n 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +\n 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'\n );\n return emptyFunctionThatReturnsNull;\n }\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var expectedTypes = [];\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);\n if (checkerResult == null) {\n return null;\n }\n if (checkerResult.data && has(checkerResult.data, 'expectedType')) {\n expectedTypes.push(checkerResult.data.expectedType);\n }\n }\n var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createNodeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n if (!isNode(props[propName])) {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function invalidValidatorError(componentName, location, propFullName, key, type) {\n return new PropTypeError(\n (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'\n );\n }\n\n function createShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n for (var key in shapeTypes) {\n var checker = shapeTypes[key];\n if (typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createStrictShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n // We need to check all keys in case some are required but missing from props.\n var allKeys = assign({}, props[propName], shapeTypes);\n for (var key in allKeys) {\n var checker = shapeTypes[key];\n if (has(shapeTypes, key) && typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n if (!checker) {\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +\n '\\nBad object: ' + JSON.stringify(props[propName], null, ' ') +\n '\\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')\n );\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function isNode(propValue) {\n switch (typeof propValue) {\n case 'number':\n case 'string':\n case 'undefined':\n return true;\n case 'boolean':\n return !propValue;\n case 'object':\n if (Array.isArray(propValue)) {\n return propValue.every(isNode);\n }\n if (propValue === null || isValidElement(propValue)) {\n return true;\n }\n\n var iteratorFn = getIteratorFn(propValue);\n if (iteratorFn) {\n var iterator = iteratorFn.call(propValue);\n var step;\n if (iteratorFn !== propValue.entries) {\n while (!(step = iterator.next()).done) {\n if (!isNode(step.value)) {\n return false;\n }\n }\n } else {\n // Iterator will provide entry [k,v] tuples rather than values.\n while (!(step = iterator.next()).done) {\n var entry = step.value;\n if (entry) {\n if (!isNode(entry[1])) {\n return false;\n }\n }\n }\n }\n } else {\n return false;\n }\n\n return true;\n default:\n return false;\n }\n }\n\n function isSymbol(propType, propValue) {\n // Native Symbol.\n if (propType === 'symbol') {\n return true;\n }\n\n // falsy value can't be a Symbol\n if (!propValue) {\n return false;\n }\n\n // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'\n if (propValue['@@toStringTag'] === 'Symbol') {\n return true;\n }\n\n // Fallback for non-spec compliant Symbols which are polyfilled.\n if (typeof Symbol === 'function' && propValue instanceof Symbol) {\n return true;\n }\n\n return false;\n }\n\n // Equivalent of `typeof` but with special handling for array and regexp.\n function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }\n\n // This handles more types than `getPropType`. Only used for error messages.\n // See `createPrimitiveTypeChecker`.\n function getPreciseType(propValue) {\n if (typeof propValue === 'undefined' || propValue === null) {\n return '' + propValue;\n }\n var propType = getPropType(propValue);\n if (propType === 'object') {\n if (propValue instanceof Date) {\n return 'date';\n } else if (propValue instanceof RegExp) {\n return 'regexp';\n }\n }\n return propType;\n }\n\n // Returns a string that is postfixed to a warning about an invalid type.\n // For example, \"undefined\" or \"of type array\"\n function getPostfixForTypeWarning(value) {\n var type = getPreciseType(value);\n switch (type) {\n case 'array':\n case 'object':\n return 'an ' + type;\n case 'boolean':\n case 'date':\n case 'regexp':\n return 'a ' + type;\n default:\n return type;\n }\n }\n\n // Returns class name of the object, if any.\n function getClassName(propValue) {\n if (!propValue.constructor || !propValue.constructor.name) {\n return ANONYMOUS;\n }\n return propValue.constructor.name;\n }\n\n ReactPropTypes.checkPropTypes = checkPropTypes;\n ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n", "/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n", "/**\n * @license React\n * react-is.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function typeOf(object) {\n if (\"object\" === typeof object && null !== object) {\n var $$typeof = object.$$typeof;\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n switch (((object = object.type), object)) {\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n case REACT_SUSPENSE_LIST_TYPE:\n case REACT_VIEW_TRANSITION_TYPE:\n return object;\n default:\n switch (((object = object && object.$$typeof), object)) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n return object;\n case REACT_CONSUMER_TYPE:\n return object;\n default:\n return $$typeof;\n }\n }\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n }\n var REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\");\n Symbol.for(\"react.provider\");\n var REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_VIEW_TRANSITION_TYPE = Symbol.for(\"react.view_transition\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\");\n exports.ContextConsumer = REACT_CONSUMER_TYPE;\n exports.ContextProvider = REACT_CONTEXT_TYPE;\n exports.Element = REACT_ELEMENT_TYPE;\n exports.ForwardRef = REACT_FORWARD_REF_TYPE;\n exports.Fragment = REACT_FRAGMENT_TYPE;\n exports.Lazy = REACT_LAZY_TYPE;\n exports.Memo = REACT_MEMO_TYPE;\n exports.Portal = REACT_PORTAL_TYPE;\n exports.Profiler = REACT_PROFILER_TYPE;\n exports.StrictMode = REACT_STRICT_MODE_TYPE;\n exports.Suspense = REACT_SUSPENSE_TYPE;\n exports.SuspenseList = REACT_SUSPENSE_LIST_TYPE;\n exports.isContextConsumer = function (object) {\n return typeOf(object) === REACT_CONSUMER_TYPE;\n };\n exports.isContextProvider = function (object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n };\n exports.isElement = function (object) {\n return (\n \"object\" === typeof object &&\n null !== object &&\n object.$$typeof === REACT_ELEMENT_TYPE\n );\n };\n exports.isForwardRef = function (object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n };\n exports.isFragment = function (object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n };\n exports.isLazy = function (object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n };\n exports.isMemo = function (object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n };\n exports.isPortal = function (object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n };\n exports.isProfiler = function (object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n };\n exports.isStrictMode = function (object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n };\n exports.isSuspense = function (object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n };\n exports.isSuspenseList = function (object) {\n return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;\n };\n exports.isValidElementType = function (type) {\n return \"string\" === typeof type ||\n \"function\" === typeof type ||\n type === REACT_FRAGMENT_TYPE ||\n type === REACT_PROFILER_TYPE ||\n type === REACT_STRICT_MODE_TYPE ||\n type === REACT_SUSPENSE_TYPE ||\n type === REACT_SUSPENSE_LIST_TYPE ||\n (\"object\" === typeof type &&\n null !== type &&\n (type.$$typeof === REACT_LAZY_TYPE ||\n type.$$typeof === REACT_MEMO_TYPE ||\n type.$$typeof === REACT_CONTEXT_TYPE ||\n type.$$typeof === REACT_CONSUMER_TYPE ||\n type.$$typeof === REACT_FORWARD_REF_TYPE ||\n type.$$typeof === REACT_CLIENT_REFERENCE ||\n void 0 !== type.getModuleId))\n ? !0\n : !1;\n };\n exports.typeOf = typeOf;\n })();\n", "'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n", "/** @license React v16.13.1\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;\nvar REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;\nvar REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;\nvar REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;\nvar REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;\nvar REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;\nvar REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary\n// (unstable) APIs that have been removed. Can we remove the symbols?\n\nvar REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;\nvar REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;\nvar REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;\nvar REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;\nvar REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;\nvar REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;\nvar REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;\nvar REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;\nvar REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;\nvar REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;\nvar REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;\n\nfunction isValidElementType(type) {\n return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);\n}\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_ASYNC_MODE_TYPE:\n case REACT_CONCURRENT_MODE_TYPE:\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n return type;\n\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n\n default:\n return $$typeof;\n }\n\n }\n\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n} // AsyncMode is deprecated along with isAsyncMode\n\nvar AsyncMode = REACT_ASYNC_MODE_TYPE;\nvar ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');\n }\n }\n\n return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;\n}\nfunction isConcurrentMode(object) {\n return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\n\nexports.AsyncMode = AsyncMode;\nexports.ConcurrentMode = ConcurrentMode;\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n })();\n}\n", "'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n", "'use strict';\n\nvar reactIs = require('react-is');\n\n/**\n * Copyright 2015, Yahoo! Inc.\n * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n */\nvar REACT_STATICS = {\n childContextTypes: true,\n contextType: true,\n contextTypes: true,\n defaultProps: true,\n displayName: true,\n getDefaultProps: true,\n getDerivedStateFromError: true,\n getDerivedStateFromProps: true,\n mixins: true,\n propTypes: true,\n type: true\n};\nvar KNOWN_STATICS = {\n name: true,\n length: true,\n prototype: true,\n caller: true,\n callee: true,\n arguments: true,\n arity: true\n};\nvar FORWARD_REF_STATICS = {\n '$$typeof': true,\n render: true,\n defaultProps: true,\n displayName: true,\n propTypes: true\n};\nvar MEMO_STATICS = {\n '$$typeof': true,\n compare: true,\n defaultProps: true,\n displayName: true,\n propTypes: true,\n type: true\n};\nvar TYPE_STATICS = {};\nTYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;\nTYPE_STATICS[reactIs.Memo] = MEMO_STATICS;\n\nfunction getStatics(component) {\n // React v16.11 and below\n if (reactIs.isMemo(component)) {\n return MEMO_STATICS;\n } // React v16.12 and above\n\n\n return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;\n}\n\nvar defineProperty = Object.defineProperty;\nvar getOwnPropertyNames = Object.getOwnPropertyNames;\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar getPrototypeOf = Object.getPrototypeOf;\nvar objectPrototype = Object.prototype;\nfunction hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {\n if (typeof sourceComponent !== 'string') {\n // don't hoist over string (html) components\n if (objectPrototype) {\n var inheritedComponent = getPrototypeOf(sourceComponent);\n\n if (inheritedComponent && inheritedComponent !== objectPrototype) {\n hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);\n }\n }\n\n var keys = getOwnPropertyNames(sourceComponent);\n\n if (getOwnPropertySymbols) {\n keys = keys.concat(getOwnPropertySymbols(sourceComponent));\n }\n\n var targetStatics = getStatics(targetComponent);\n var sourceStatics = getStatics(sourceComponent);\n\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n\n if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {\n var descriptor = getOwnPropertyDescriptor(sourceComponent, key);\n\n try {\n // Avoid failures from read-only properties\n defineProperty(targetComponent, key, descriptor);\n } catch (e) {}\n }\n }\n }\n\n return targetComponent;\n}\n\nmodule.exports = hoistNonReactStatics;\n", "'use client';\n\nimport * as React from 'react';\nimport SvgIcon from \"../SvgIcon/index.js\";\n\n/**\n * Private module reserved for @mui packages.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default function createSvgIcon(path, displayName) {\n function Component(props, ref) {\n return /*#__PURE__*/_jsx(SvgIcon, {\n \"data-testid\": process.env.NODE_ENV !== 'production' ? `${displayName}Icon` : undefined,\n ref: ref,\n ...props,\n children: path\n });\n }\n if (process.env.NODE_ENV !== 'production') {\n // Need to set `displayName` on the inner component for React.memo.\n // React prior to 16.14 ignores `displayName` on the wrapper.\n Component.displayName = `${displayName}Icon`;\n }\n Component.muiName = SvgIcon.muiName;\n return /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(Component));\n}", "'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport capitalize from \"../utils/capitalize.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport { getSvgIconUtilityClass } from \"./svgIconClasses.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n color,\n fontSize,\n classes\n } = ownerState;\n const slots = {\n root: ['root', color !== 'inherit' && `color${capitalize(color)}`, `fontSize${capitalize(fontSize)}`]\n };\n return composeClasses(slots, getSvgIconUtilityClass, classes);\n};\nconst SvgIconRoot = styled('svg', {\n name: 'MuiSvgIcon',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.color !== 'inherit' && styles[`color${capitalize(ownerState.color)}`], styles[`fontSize${capitalize(ownerState.fontSize)}`]];\n }\n})(memoTheme(({\n theme\n}) => ({\n userSelect: 'none',\n width: '1em',\n height: '1em',\n display: 'inline-block',\n flexShrink: 0,\n transition: theme.transitions?.create?.('fill', {\n duration: (theme.vars ?? theme).transitions?.duration?.shorter\n }),\n variants: [{\n props: props => !props.hasSvgAsChild,\n style: {\n // the will define the property that has `currentColor`\n // for example heroicons uses fill=\"none\" and stroke=\"currentColor\"\n fill: 'currentColor'\n }\n }, {\n props: {\n fontSize: 'inherit'\n },\n style: {\n fontSize: 'inherit'\n }\n }, {\n props: {\n fontSize: 'small'\n },\n style: {\n fontSize: theme.typography?.pxToRem?.(20) || '1.25rem'\n }\n }, {\n props: {\n fontSize: 'medium'\n },\n style: {\n fontSize: theme.typography?.pxToRem?.(24) || '1.5rem'\n }\n }, {\n props: {\n fontSize: 'large'\n },\n style: {\n fontSize: theme.typography?.pxToRem?.(35) || '2.1875rem'\n }\n },\n // TODO v5 deprecate color prop, v6 remove for sx\n ...Object.entries((theme.vars ?? theme).palette).filter(([, value]) => value && value.main).map(([color]) => ({\n props: {\n color\n },\n style: {\n color: (theme.vars ?? theme).palette?.[color]?.main\n }\n })), {\n props: {\n color: 'action'\n },\n style: {\n color: (theme.vars ?? theme).palette?.action?.active\n }\n }, {\n props: {\n color: 'disabled'\n },\n style: {\n color: (theme.vars ?? theme).palette?.action?.disabled\n }\n }, {\n props: {\n color: 'inherit'\n },\n style: {\n color: undefined\n }\n }]\n})));\nconst SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiSvgIcon'\n });\n const {\n children,\n className,\n color = 'inherit',\n component = 'svg',\n fontSize = 'medium',\n htmlColor,\n inheritViewBox = false,\n titleAccess,\n viewBox = '0 0 24 24',\n ...other\n } = props;\n const hasSvgAsChild = /*#__PURE__*/React.isValidElement(children) && children.type === 'svg';\n const ownerState = {\n ...props,\n color,\n component,\n fontSize,\n instanceFontSize: inProps.fontSize,\n inheritViewBox,\n viewBox,\n hasSvgAsChild\n };\n const more = {};\n if (!inheritViewBox) {\n more.viewBox = viewBox;\n }\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsxs(SvgIconRoot, {\n as: component,\n className: clsx(classes.root, className),\n focusable: \"false\",\n color: htmlColor,\n \"aria-hidden\": titleAccess ? undefined : true,\n role: titleAccess ? 'img' : undefined,\n ref: ref,\n ...more,\n ...other,\n ...(hasSvgAsChild && children.props),\n ownerState: ownerState,\n children: [hasSvgAsChild ? children.props.children : children, titleAccess ? /*#__PURE__*/_jsx(\"title\", {\n children: titleAccess\n }) : null]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? SvgIcon.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Node passed into the SVG element.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * You can use the `htmlColor` prop to apply a color attribute to the SVG element.\n * @default 'inherit'\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'action', 'disabled', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.\n * @default 'medium'\n */\n fontSize: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'large', 'medium', 'small']), PropTypes.string]),\n /**\n * Applies a color attribute to the SVG element.\n */\n htmlColor: PropTypes.string,\n /**\n * If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox`\n * prop will be ignored.\n * Useful when you want to reference a custom `component` and have `SvgIcon` pass that\n * `component`'s viewBox to the root node.\n * @default false\n */\n inheritViewBox: PropTypes.bool,\n /**\n * The shape-rendering attribute. The behavior of the different options is described on the\n * [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/shape-rendering).\n * If you are having issues with blurry icons you should investigate this prop.\n */\n shapeRendering: PropTypes.string,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Provides a human-readable title for the element that contains it.\n * https://www.w3.org/TR/SVG-access/#Equivalent\n */\n titleAccess: PropTypes.string,\n /**\n * Allows you to redefine what the coordinates without units mean inside an SVG element.\n * For example, if the SVG element is 500 (width) by 200 (height),\n * and you pass viewBox=\"0 0 50 20\",\n * this means that the coordinates inside the SVG will go from the top left corner (0,0)\n * to bottom right (50,20) and each unit will be worth 10px.\n * @default '0 0 24 24'\n */\n viewBox: PropTypes.string\n} : void 0;\nSvgIcon.muiName = 'SvgIcon';\nexport default SvgIcon;", "function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t `MuiButton-${slot}`;\n *\n * const classes = {\n * root: 'my-root-class',\n * };\n *\n * const output = composeClasses(slots, getUtilityClass, classes);\n * // {\n * // root: 'MuiButton-root MuiButton-primary my-root-class',\n * // label: 'MuiButton-label',\n * // }\n * ```\n *\n * @param slots a list of classes for each possible slot\n * @param getUtilityClass a function to resolve the class based on the slot name\n * @param classes the input classes from props\n * @returns the resolved classes for all slots\n */\nexport default function composeClasses(slots, getUtilityClass, classes = undefined) {\n const output = {};\n for (const slotName in slots) {\n const slot = slots[slotName];\n let buffer = '';\n let start = true;\n for (let i = 0; i < slot.length; i += 1) {\n const value = slot[i];\n if (value) {\n buffer += (start === true ? '' : ' ') + getUtilityClass(value);\n start = false;\n if (classes && classes[value]) {\n buffer += ' ' + classes[value];\n }\n }\n }\n output[slotName] = buffer;\n }\n return output;\n}", "import _formatErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\n// It should to be noted that this function isn't equivalent to `text-transform: capitalize`.\n//\n// A strict capitalization should uppercase the first letter of each word in the sentence.\n// We only handle the first word.\nexport default function capitalize(string) {\n if (typeof string !== 'string') {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'MUI: `capitalize(string)` expects a string argument.' : _formatErrorMessage(7));\n }\n return string.charAt(0).toUpperCase() + string.slice(1);\n}", "import capitalize from '@mui/utils/capitalize';\nexport default capitalize;", "import * as React from 'react';\nimport { extendSxProp } from '@mui/system/styleFunctionSx';\nimport useTheme from \"../styles/useTheme.js\";\nimport GlobalStyles from \"../GlobalStyles/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport { css, keyframes } from '@mui/system';\nexport { default as styled } from \"../styles/styled.js\";\nexport function globalCss(styles) {\n return function GlobalStylesWrapper(props) {\n return (\n /*#__PURE__*/\n // Pigment CSS `globalCss` support callback with theme inside an object but `GlobalStyles` support theme as a callback value.\n _jsx(GlobalStyles, {\n styles: typeof styles === 'function' ? theme => styles({\n theme,\n ...props\n }) : styles\n })\n );\n };\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function internal_createExtendSxProp() {\n return extendSxProp;\n}\nexport { useTheme };", "import * as React from 'react';\nimport { isValidElementType } from 'react-is';\n\n// https://github.com/sindresorhus/is-plain-obj/blob/main/index.js\nexport function isPlainObject(item) {\n if (typeof item !== 'object' || item === null) {\n return false;\n }\n const prototype = Object.getPrototypeOf(item);\n return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in item) && !(Symbol.iterator in item);\n}\nfunction deepClone(source) {\n if (/*#__PURE__*/React.isValidElement(source) || isValidElementType(source) || !isPlainObject(source)) {\n return source;\n }\n const output = {};\n Object.keys(source).forEach(key => {\n output[key] = deepClone(source[key]);\n });\n return output;\n}\n\n/**\n * Merge objects deeply.\n * It will shallow copy React elements.\n *\n * If `options.clone` is set to `false` the source object will be merged directly into the target object.\n *\n * @example\n * ```ts\n * deepmerge({ a: { b: 1 }, d: 2 }, { a: { c: 2 }, d: 4 });\n * // => { a: { b: 1, c: 2 }, d: 4 }\n * ````\n *\n * @param target The target object.\n * @param source The source object.\n * @param options The merge options.\n * @param options.clone Set to `false` to merge the source object directly into the target object.\n * @returns The merged object.\n */\nexport default function deepmerge(target, source, options = {\n clone: true\n}) {\n const output = options.clone ? {\n ...target\n } : target;\n if (isPlainObject(target) && isPlainObject(source)) {\n Object.keys(source).forEach(key => {\n if (/*#__PURE__*/React.isValidElement(source[key]) || isValidElementType(source[key])) {\n output[key] = source[key];\n } else if (isPlainObject(source[key]) &&\n // Avoid prototype pollution\n Object.prototype.hasOwnProperty.call(target, key) && isPlainObject(target[key])) {\n // Since `output` is a clone of `target` and we have narrowed `target` in this block we can cast to the same type.\n output[key] = deepmerge(target[key], source[key], options);\n } else if (options.clone) {\n output[key] = isPlainObject(source[key]) ? deepClone(source[key]) : source[key];\n } else {\n output[key] = source[key];\n }\n });\n }\n return output;\n}", "import deepmerge from '@mui/utils/deepmerge';\nfunction merge(acc, item) {\n if (!item) {\n return acc;\n }\n return deepmerge(acc, item, {\n clone: false // No need to clone deep, it's way faster.\n });\n}\nexport default merge;", "import PropTypes from 'prop-types';\nconst responsivePropType = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.object, PropTypes.array]) : {};\nexport default responsivePropType;", "import PropTypes from 'prop-types';\nimport deepmerge from '@mui/utils/deepmerge';\nimport merge from \"../merge/index.js\";\nimport { isCqShorthand, getContainerQuery } from \"../cssContainerQueries/index.js\";\n\n// The breakpoint **start** at this value.\n// For instance with the first breakpoint xs: [xs, sm[.\nexport const values = {\n xs: 0,\n // phone\n sm: 600,\n // tablet\n md: 900,\n // small laptop\n lg: 1200,\n // desktop\n xl: 1536 // large screen\n};\nconst defaultBreakpoints = {\n // Sorted ASC by size. That's important.\n // It can't be configured as it's used statically for propTypes.\n keys: ['xs', 'sm', 'md', 'lg', 'xl'],\n up: key => `@media (min-width:${values[key]}px)`\n};\nconst defaultContainerQueries = {\n containerQueries: containerName => ({\n up: key => {\n let result = typeof key === 'number' ? key : values[key] || key;\n if (typeof result === 'number') {\n result = `${result}px`;\n }\n return containerName ? `@container ${containerName} (min-width:${result})` : `@container (min-width:${result})`;\n }\n })\n};\nexport function handleBreakpoints(props, propValue, styleFromPropValue) {\n const theme = props.theme || {};\n if (Array.isArray(propValue)) {\n const themeBreakpoints = theme.breakpoints || defaultBreakpoints;\n return propValue.reduce((acc, item, index) => {\n acc[themeBreakpoints.up(themeBreakpoints.keys[index])] = styleFromPropValue(propValue[index]);\n return acc;\n }, {});\n }\n if (typeof propValue === 'object') {\n const themeBreakpoints = theme.breakpoints || defaultBreakpoints;\n return Object.keys(propValue).reduce((acc, breakpoint) => {\n if (isCqShorthand(themeBreakpoints.keys, breakpoint)) {\n const containerKey = getContainerQuery(theme.containerQueries ? theme : defaultContainerQueries, breakpoint);\n if (containerKey) {\n acc[containerKey] = styleFromPropValue(propValue[breakpoint], breakpoint);\n }\n }\n // key is breakpoint\n else if (Object.keys(themeBreakpoints.values || values).includes(breakpoint)) {\n const mediaKey = themeBreakpoints.up(breakpoint);\n acc[mediaKey] = styleFromPropValue(propValue[breakpoint], breakpoint);\n } else {\n const cssKey = breakpoint;\n acc[cssKey] = propValue[cssKey];\n }\n return acc;\n }, {});\n }\n const output = styleFromPropValue(propValue);\n return output;\n}\nfunction breakpoints(styleFunction) {\n // false positive\n // eslint-disable-next-line react/function-component-definition\n const newStyleFunction = props => {\n const theme = props.theme || {};\n const base = styleFunction(props);\n const themeBreakpoints = theme.breakpoints || defaultBreakpoints;\n const extended = themeBreakpoints.keys.reduce((acc, key) => {\n if (props[key]) {\n acc = acc || {};\n acc[themeBreakpoints.up(key)] = styleFunction({\n theme,\n ...props[key]\n });\n }\n return acc;\n }, null);\n return merge(base, extended);\n };\n newStyleFunction.propTypes = process.env.NODE_ENV !== 'production' ? {\n ...styleFunction.propTypes,\n xs: PropTypes.object,\n sm: PropTypes.object,\n md: PropTypes.object,\n lg: PropTypes.object,\n xl: PropTypes.object\n } : {};\n newStyleFunction.filterProps = ['xs', 'sm', 'md', 'lg', 'xl', ...styleFunction.filterProps];\n return newStyleFunction;\n}\nexport function createEmptyBreakpointObject(breakpointsInput = {}) {\n const breakpointsInOrder = breakpointsInput.keys?.reduce((acc, key) => {\n const breakpointStyleKey = breakpointsInput.up(key);\n acc[breakpointStyleKey] = {};\n return acc;\n }, {});\n return breakpointsInOrder || {};\n}\nexport function removeUnusedBreakpoints(breakpointKeys, style) {\n return breakpointKeys.reduce((acc, key) => {\n const breakpointOutput = acc[key];\n const isBreakpointUnused = !breakpointOutput || Object.keys(breakpointOutput).length === 0;\n if (isBreakpointUnused) {\n delete acc[key];\n }\n return acc;\n }, style);\n}\nexport function mergeBreakpointsInOrder(breakpointsInput, ...styles) {\n const emptyBreakpoints = createEmptyBreakpointObject(breakpointsInput);\n const mergedOutput = [emptyBreakpoints, ...styles].reduce((prev, next) => deepmerge(prev, next), {});\n return removeUnusedBreakpoints(Object.keys(emptyBreakpoints), mergedOutput);\n}\n\n// compute base for responsive values; e.g.,\n// [1,2,3] => {xs: true, sm: true, md: true}\n// {xs: 1, sm: 2, md: 3} => {xs: true, sm: true, md: true}\nexport function computeBreakpointsBase(breakpointValues, themeBreakpoints) {\n // fixed value\n if (typeof breakpointValues !== 'object') {\n return {};\n }\n const base = {};\n const breakpointsKeys = Object.keys(themeBreakpoints);\n if (Array.isArray(breakpointValues)) {\n breakpointsKeys.forEach((breakpoint, i) => {\n if (i < breakpointValues.length) {\n base[breakpoint] = true;\n }\n });\n } else {\n breakpointsKeys.forEach(breakpoint => {\n if (breakpointValues[breakpoint] != null) {\n base[breakpoint] = true;\n }\n });\n }\n return base;\n}\nexport function resolveBreakpointValues({\n values: breakpointValues,\n breakpoints: themeBreakpoints,\n base: customBase\n}) {\n const base = customBase || computeBreakpointsBase(breakpointValues, themeBreakpoints);\n const keys = Object.keys(base);\n if (keys.length === 0) {\n return breakpointValues;\n }\n let previous;\n return keys.reduce((acc, breakpoint, i) => {\n if (Array.isArray(breakpointValues)) {\n acc[breakpoint] = breakpointValues[i] != null ? breakpointValues[i] : breakpointValues[previous];\n previous = i;\n } else if (typeof breakpointValues === 'object') {\n acc[breakpoint] = breakpointValues[breakpoint] != null ? breakpointValues[breakpoint] : breakpointValues[previous];\n previous = breakpoint;\n } else {\n acc[breakpoint] = breakpointValues;\n }\n return acc;\n }, {});\n}\nexport default breakpoints;", "import _formatErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\n/**\n * For using in `sx` prop to sort the breakpoint from low to high.\n * Note: this function does not work and will not support multiple units.\n * e.g. input: { '@container (min-width:300px)': '1rem', '@container (min-width:40rem)': '2rem' }\n * output: { '@container (min-width:40rem)': '2rem', '@container (min-width:300px)': '1rem' } // since 40 < 300 eventhough 40rem > 300px\n */\nexport function sortContainerQueries(theme, css) {\n if (!theme.containerQueries) {\n return css;\n }\n const sorted = Object.keys(css).filter(key => key.startsWith('@container')).sort((a, b) => {\n const regex = /min-width:\\s*([0-9.]+)/;\n return +(a.match(regex)?.[1] || 0) - +(b.match(regex)?.[1] || 0);\n });\n if (!sorted.length) {\n return css;\n }\n return sorted.reduce((acc, key) => {\n const value = css[key];\n delete acc[key];\n acc[key] = value;\n return acc;\n }, {\n ...css\n });\n}\nexport function isCqShorthand(breakpointKeys, value) {\n return value === '@' || value.startsWith('@') && (breakpointKeys.some(key => value.startsWith(`@${key}`)) || !!value.match(/^@\\d/));\n}\nexport function getContainerQuery(theme, shorthand) {\n const matches = shorthand.match(/^@([^/]+)?\\/?(.+)?$/);\n if (!matches) {\n if (process.env.NODE_ENV !== 'production') {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: The provided shorthand ${`(${shorthand})`} is invalid. The format should be \\`@\\` or \\`@/\\`.\\n` + 'For example, `@sm` or `@600` or `@40rem/sidebar`.' : _formatErrorMessage(18, `(${shorthand})`));\n }\n return null;\n }\n const [, containerQuery, containerName] = matches;\n const value = Number.isNaN(+containerQuery) ? containerQuery || 0 : +containerQuery;\n return theme.containerQueries(containerName).up(value);\n}\nexport default function cssContainerQueries(themeInput) {\n const toContainerQuery = (mediaQuery, name) => mediaQuery.replace('@media', name ? `@container ${name}` : '@container');\n function attachCq(node, name) {\n node.up = (...args) => toContainerQuery(themeInput.breakpoints.up(...args), name);\n node.down = (...args) => toContainerQuery(themeInput.breakpoints.down(...args), name);\n node.between = (...args) => toContainerQuery(themeInput.breakpoints.between(...args), name);\n node.only = (...args) => toContainerQuery(themeInput.breakpoints.only(...args), name);\n node.not = (...args) => {\n const result = toContainerQuery(themeInput.breakpoints.not(...args), name);\n if (result.includes('not all and')) {\n // `@container` does not work with `not all and`, so need to invert the logic\n return result.replace('not all and ', '').replace('min-width:', 'width<').replace('max-width:', 'width>').replace('and', 'or');\n }\n return result;\n };\n }\n const node = {};\n const containerQueries = name => {\n attachCq(node, name);\n return node;\n };\n attachCq(containerQueries);\n return {\n ...themeInput,\n containerQueries\n };\n}", "import capitalize from '@mui/utils/capitalize';\nimport responsivePropType from \"../responsivePropType/index.js\";\nimport { handleBreakpoints } from \"../breakpoints/index.js\";\nexport function getPath(obj, path, checkVars = true) {\n if (!path || typeof path !== 'string') {\n return null;\n }\n\n // Check if CSS variables are used\n if (obj && obj.vars && checkVars) {\n const val = `vars.${path}`.split('.').reduce((acc, item) => acc && acc[item] ? acc[item] : null, obj);\n if (val != null) {\n return val;\n }\n }\n return path.split('.').reduce((acc, item) => {\n if (acc && acc[item] != null) {\n return acc[item];\n }\n return null;\n }, obj);\n}\nexport function getStyleValue(themeMapping, transform, propValueFinal, userValue = propValueFinal) {\n let value;\n if (typeof themeMapping === 'function') {\n value = themeMapping(propValueFinal);\n } else if (Array.isArray(themeMapping)) {\n value = themeMapping[propValueFinal] || userValue;\n } else {\n value = getPath(themeMapping, propValueFinal) || userValue;\n }\n if (transform) {\n value = transform(value, userValue, themeMapping);\n }\n return value;\n}\nfunction style(options) {\n const {\n prop,\n cssProperty = options.prop,\n themeKey,\n transform\n } = options;\n\n // false positive\n // eslint-disable-next-line react/function-component-definition\n const fn = props => {\n if (props[prop] == null) {\n return null;\n }\n const propValue = props[prop];\n const theme = props.theme;\n const themeMapping = getPath(theme, themeKey) || {};\n const styleFromPropValue = propValueFinal => {\n let value = getStyleValue(themeMapping, transform, propValueFinal);\n if (propValueFinal === value && typeof propValueFinal === 'string') {\n // Haven't found value\n value = getStyleValue(themeMapping, transform, `${prop}${propValueFinal === 'default' ? '' : capitalize(propValueFinal)}`, propValueFinal);\n }\n if (cssProperty === false) {\n return value;\n }\n return {\n [cssProperty]: value\n };\n };\n return handleBreakpoints(props, propValue, styleFromPropValue);\n };\n fn.propTypes = process.env.NODE_ENV !== 'production' ? {\n [prop]: responsivePropType\n } : {};\n fn.filterProps = [prop];\n return fn;\n}\nexport default style;", "export default function memoize(fn) {\n const cache = {};\n return arg => {\n if (cache[arg] === undefined) {\n cache[arg] = fn(arg);\n }\n return cache[arg];\n };\n}", "import responsivePropType from \"../responsivePropType/index.js\";\nimport { handleBreakpoints } from \"../breakpoints/index.js\";\nimport { getPath } from \"../style/index.js\";\nimport merge from \"../merge/index.js\";\nimport memoize from \"../memoize/index.js\";\nconst properties = {\n m: 'margin',\n p: 'padding'\n};\nconst directions = {\n t: 'Top',\n r: 'Right',\n b: 'Bottom',\n l: 'Left',\n x: ['Left', 'Right'],\n y: ['Top', 'Bottom']\n};\nconst aliases = {\n marginX: 'mx',\n marginY: 'my',\n paddingX: 'px',\n paddingY: 'py'\n};\n\n// memoize() impact:\n// From 300,000 ops/sec\n// To 350,000 ops/sec\nconst getCssProperties = memoize(prop => {\n // It's not a shorthand notation.\n if (prop.length > 2) {\n if (aliases[prop]) {\n prop = aliases[prop];\n } else {\n return [prop];\n }\n }\n const [a, b] = prop.split('');\n const property = properties[a];\n const direction = directions[b] || '';\n return Array.isArray(direction) ? direction.map(dir => property + dir) : [property + direction];\n});\nexport const marginKeys = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY', 'marginInline', 'marginInlineStart', 'marginInlineEnd', 'marginBlock', 'marginBlockStart', 'marginBlockEnd'];\nexport const paddingKeys = ['p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY', 'paddingInline', 'paddingInlineStart', 'paddingInlineEnd', 'paddingBlock', 'paddingBlockStart', 'paddingBlockEnd'];\nconst spacingKeys = [...marginKeys, ...paddingKeys];\nexport function createUnaryUnit(theme, themeKey, defaultValue, propName) {\n const themeSpacing = getPath(theme, themeKey, true) ?? defaultValue;\n if (typeof themeSpacing === 'number' || typeof themeSpacing === 'string') {\n return val => {\n if (typeof val === 'string') {\n return val;\n }\n if (process.env.NODE_ENV !== 'production') {\n if (typeof val !== 'number') {\n console.error(`MUI: Expected ${propName} argument to be a number or a string, got ${val}.`);\n }\n }\n if (typeof themeSpacing === 'string') {\n if (themeSpacing.startsWith('var(') && val === 0) {\n return 0;\n }\n if (themeSpacing.startsWith('var(') && val === 1) {\n return themeSpacing;\n }\n return `calc(${val} * ${themeSpacing})`;\n }\n return themeSpacing * val;\n };\n }\n if (Array.isArray(themeSpacing)) {\n return val => {\n if (typeof val === 'string') {\n return val;\n }\n const abs = Math.abs(val);\n if (process.env.NODE_ENV !== 'production') {\n if (!Number.isInteger(abs)) {\n console.error([`MUI: The \\`theme.${themeKey}\\` array type cannot be combined with non integer values.` + `You should either use an integer value that can be used as index, or define the \\`theme.${themeKey}\\` as a number.`].join('\\n'));\n } else if (abs > themeSpacing.length - 1) {\n console.error([`MUI: The value provided (${abs}) overflows.`, `The supported values are: ${JSON.stringify(themeSpacing)}.`, `${abs} > ${themeSpacing.length - 1}, you need to add the missing values.`].join('\\n'));\n }\n }\n const transformed = themeSpacing[abs];\n if (val >= 0) {\n return transformed;\n }\n if (typeof transformed === 'number') {\n return -transformed;\n }\n if (typeof transformed === 'string' && transformed.startsWith('var(')) {\n return `calc(-1 * ${transformed})`;\n }\n return `-${transformed}`;\n };\n }\n if (typeof themeSpacing === 'function') {\n return themeSpacing;\n }\n if (process.env.NODE_ENV !== 'production') {\n console.error([`MUI: The \\`theme.${themeKey}\\` value (${themeSpacing}) is invalid.`, 'It should be a number, an array or a function.'].join('\\n'));\n }\n return () => undefined;\n}\nexport function createUnarySpacing(theme) {\n return createUnaryUnit(theme, 'spacing', 8, 'spacing');\n}\nexport function getValue(transformer, propValue) {\n if (typeof propValue === 'string' || propValue == null) {\n return propValue;\n }\n return transformer(propValue);\n}\nexport function getStyleFromPropValue(cssProperties, transformer) {\n return propValue => cssProperties.reduce((acc, cssProperty) => {\n acc[cssProperty] = getValue(transformer, propValue);\n return acc;\n }, {});\n}\nfunction resolveCssProperty(props, keys, prop, transformer) {\n // Using a hash computation over an array iteration could be faster, but with only 28 items,\n // it's doesn't worth the bundle size.\n if (!keys.includes(prop)) {\n return null;\n }\n const cssProperties = getCssProperties(prop);\n const styleFromPropValue = getStyleFromPropValue(cssProperties, transformer);\n const propValue = props[prop];\n return handleBreakpoints(props, propValue, styleFromPropValue);\n}\nfunction style(props, keys) {\n const transformer = createUnarySpacing(props.theme);\n return Object.keys(props).map(prop => resolveCssProperty(props, keys, prop, transformer)).reduce(merge, {});\n}\nexport function margin(props) {\n return style(props, marginKeys);\n}\nmargin.propTypes = process.env.NODE_ENV !== 'production' ? marginKeys.reduce((obj, key) => {\n obj[key] = responsivePropType;\n return obj;\n}, {}) : {};\nmargin.filterProps = marginKeys;\nexport function padding(props) {\n return style(props, paddingKeys);\n}\npadding.propTypes = process.env.NODE_ENV !== 'production' ? paddingKeys.reduce((obj, key) => {\n obj[key] = responsivePropType;\n return obj;\n}, {}) : {};\npadding.filterProps = paddingKeys;\nfunction spacing(props) {\n return style(props, spacingKeys);\n}\nspacing.propTypes = process.env.NODE_ENV !== 'production' ? spacingKeys.reduce((obj, key) => {\n obj[key] = responsivePropType;\n return obj;\n}, {}) : {};\nspacing.filterProps = spacingKeys;\nexport default spacing;", "import merge from \"../merge/index.js\";\nfunction compose(...styles) {\n const handlers = styles.reduce((acc, style) => {\n style.filterProps.forEach(prop => {\n acc[prop] = style;\n });\n return acc;\n }, {});\n\n // false positive\n // eslint-disable-next-line react/function-component-definition\n const fn = props => {\n return Object.keys(props).reduce((acc, prop) => {\n if (handlers[prop]) {\n return merge(acc, handlers[prop](props));\n }\n return acc;\n }, {});\n };\n fn.propTypes = process.env.NODE_ENV !== 'production' ? styles.reduce((acc, style) => Object.assign(acc, style.propTypes), {}) : {};\n fn.filterProps = styles.reduce((acc, style) => acc.concat(style.filterProps), []);\n return fn;\n}\nexport default compose;", "import responsivePropType from \"../responsivePropType/index.js\";\nimport style from \"../style/index.js\";\nimport compose from \"../compose/index.js\";\nimport { createUnaryUnit, getValue } from \"../spacing/index.js\";\nimport { handleBreakpoints } from \"../breakpoints/index.js\";\nexport function borderTransform(value) {\n if (typeof value !== 'number') {\n return value;\n }\n return `${value}px solid`;\n}\nfunction createBorderStyle(prop, transform) {\n return style({\n prop,\n themeKey: 'borders',\n transform\n });\n}\nexport const border = createBorderStyle('border', borderTransform);\nexport const borderTop = createBorderStyle('borderTop', borderTransform);\nexport const borderRight = createBorderStyle('borderRight', borderTransform);\nexport const borderBottom = createBorderStyle('borderBottom', borderTransform);\nexport const borderLeft = createBorderStyle('borderLeft', borderTransform);\nexport const borderColor = createBorderStyle('borderColor');\nexport const borderTopColor = createBorderStyle('borderTopColor');\nexport const borderRightColor = createBorderStyle('borderRightColor');\nexport const borderBottomColor = createBorderStyle('borderBottomColor');\nexport const borderLeftColor = createBorderStyle('borderLeftColor');\nexport const outline = createBorderStyle('outline', borderTransform);\nexport const outlineColor = createBorderStyle('outlineColor');\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const borderRadius = props => {\n if (props.borderRadius !== undefined && props.borderRadius !== null) {\n const transformer = createUnaryUnit(props.theme, 'shape.borderRadius', 4, 'borderRadius');\n const styleFromPropValue = propValue => ({\n borderRadius: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.borderRadius, styleFromPropValue);\n }\n return null;\n};\nborderRadius.propTypes = process.env.NODE_ENV !== 'production' ? {\n borderRadius: responsivePropType\n} : {};\nborderRadius.filterProps = ['borderRadius'];\nconst borders = compose(border, borderTop, borderRight, borderBottom, borderLeft, borderColor, borderTopColor, borderRightColor, borderBottomColor, borderLeftColor, borderRadius, outline, outlineColor);\nexport default borders;", "import style from \"../style/index.js\";\nimport compose from \"../compose/index.js\";\nimport { createUnaryUnit, getValue } from \"../spacing/index.js\";\nimport { handleBreakpoints } from \"../breakpoints/index.js\";\nimport responsivePropType from \"../responsivePropType/index.js\";\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const gap = props => {\n if (props.gap !== undefined && props.gap !== null) {\n const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'gap');\n const styleFromPropValue = propValue => ({\n gap: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.gap, styleFromPropValue);\n }\n return null;\n};\ngap.propTypes = process.env.NODE_ENV !== 'production' ? {\n gap: responsivePropType\n} : {};\ngap.filterProps = ['gap'];\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const columnGap = props => {\n if (props.columnGap !== undefined && props.columnGap !== null) {\n const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'columnGap');\n const styleFromPropValue = propValue => ({\n columnGap: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.columnGap, styleFromPropValue);\n }\n return null;\n};\ncolumnGap.propTypes = process.env.NODE_ENV !== 'production' ? {\n columnGap: responsivePropType\n} : {};\ncolumnGap.filterProps = ['columnGap'];\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const rowGap = props => {\n if (props.rowGap !== undefined && props.rowGap !== null) {\n const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'rowGap');\n const styleFromPropValue = propValue => ({\n rowGap: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.rowGap, styleFromPropValue);\n }\n return null;\n};\nrowGap.propTypes = process.env.NODE_ENV !== 'production' ? {\n rowGap: responsivePropType\n} : {};\nrowGap.filterProps = ['rowGap'];\nexport const gridColumn = style({\n prop: 'gridColumn'\n});\nexport const gridRow = style({\n prop: 'gridRow'\n});\nexport const gridAutoFlow = style({\n prop: 'gridAutoFlow'\n});\nexport const gridAutoColumns = style({\n prop: 'gridAutoColumns'\n});\nexport const gridAutoRows = style({\n prop: 'gridAutoRows'\n});\nexport const gridTemplateColumns = style({\n prop: 'gridTemplateColumns'\n});\nexport const gridTemplateRows = style({\n prop: 'gridTemplateRows'\n});\nexport const gridTemplateAreas = style({\n prop: 'gridTemplateAreas'\n});\nexport const gridArea = style({\n prop: 'gridArea'\n});\nconst grid = compose(gap, columnGap, rowGap, gridColumn, gridRow, gridAutoFlow, gridAutoColumns, gridAutoRows, gridTemplateColumns, gridTemplateRows, gridTemplateAreas, gridArea);\nexport default grid;", "import style from \"../style/index.js\";\nimport compose from \"../compose/index.js\";\nexport function paletteTransform(value, userValue) {\n if (userValue === 'grey') {\n return userValue;\n }\n return value;\n}\nexport const color = style({\n prop: 'color',\n themeKey: 'palette',\n transform: paletteTransform\n});\nexport const bgcolor = style({\n prop: 'bgcolor',\n cssProperty: 'backgroundColor',\n themeKey: 'palette',\n transform: paletteTransform\n});\nexport const backgroundColor = style({\n prop: 'backgroundColor',\n themeKey: 'palette',\n transform: paletteTransform\n});\nconst palette = compose(color, bgcolor, backgroundColor);\nexport default palette;", "import style from \"../style/index.js\";\nimport compose from \"../compose/index.js\";\nimport { handleBreakpoints, values as breakpointsValues } from \"../breakpoints/index.js\";\nexport function sizingTransform(value) {\n return value <= 1 && value !== 0 ? `${value * 100}%` : value;\n}\nexport const width = style({\n prop: 'width',\n transform: sizingTransform\n});\nexport const maxWidth = props => {\n if (props.maxWidth !== undefined && props.maxWidth !== null) {\n const styleFromPropValue = propValue => {\n const breakpoint = props.theme?.breakpoints?.values?.[propValue] || breakpointsValues[propValue];\n if (!breakpoint) {\n return {\n maxWidth: sizingTransform(propValue)\n };\n }\n if (props.theme?.breakpoints?.unit !== 'px') {\n return {\n maxWidth: `${breakpoint}${props.theme.breakpoints.unit}`\n };\n }\n return {\n maxWidth: breakpoint\n };\n };\n return handleBreakpoints(props, props.maxWidth, styleFromPropValue);\n }\n return null;\n};\nmaxWidth.filterProps = ['maxWidth'];\nexport const minWidth = style({\n prop: 'minWidth',\n transform: sizingTransform\n});\nexport const height = style({\n prop: 'height',\n transform: sizingTransform\n});\nexport const maxHeight = style({\n prop: 'maxHeight',\n transform: sizingTransform\n});\nexport const minHeight = style({\n prop: 'minHeight',\n transform: sizingTransform\n});\nexport const sizeWidth = style({\n prop: 'size',\n cssProperty: 'width',\n transform: sizingTransform\n});\nexport const sizeHeight = style({\n prop: 'size',\n cssProperty: 'height',\n transform: sizingTransform\n});\nexport const boxSizing = style({\n prop: 'boxSizing'\n});\nconst sizing = compose(width, maxWidth, minWidth, height, maxHeight, minHeight, boxSizing);\nexport default sizing;", "import { padding, margin } from \"../spacing/index.js\";\nimport { borderRadius, borderTransform } from \"../borders/index.js\";\nimport { gap, rowGap, columnGap } from \"../cssGrid/index.js\";\nimport { paletteTransform } from \"../palette/index.js\";\nimport { maxWidth, sizingTransform } from \"../sizing/index.js\";\nconst defaultSxConfig = {\n // borders\n border: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderTop: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderRight: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderBottom: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderLeft: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderColor: {\n themeKey: 'palette'\n },\n borderTopColor: {\n themeKey: 'palette'\n },\n borderRightColor: {\n themeKey: 'palette'\n },\n borderBottomColor: {\n themeKey: 'palette'\n },\n borderLeftColor: {\n themeKey: 'palette'\n },\n outline: {\n themeKey: 'borders',\n transform: borderTransform\n },\n outlineColor: {\n themeKey: 'palette'\n },\n borderRadius: {\n themeKey: 'shape.borderRadius',\n style: borderRadius\n },\n // palette\n color: {\n themeKey: 'palette',\n transform: paletteTransform\n },\n bgcolor: {\n themeKey: 'palette',\n cssProperty: 'backgroundColor',\n transform: paletteTransform\n },\n backgroundColor: {\n themeKey: 'palette',\n transform: paletteTransform\n },\n // spacing\n p: {\n style: padding\n },\n pt: {\n style: padding\n },\n pr: {\n style: padding\n },\n pb: {\n style: padding\n },\n pl: {\n style: padding\n },\n px: {\n style: padding\n },\n py: {\n style: padding\n },\n padding: {\n style: padding\n },\n paddingTop: {\n style: padding\n },\n paddingRight: {\n style: padding\n },\n paddingBottom: {\n style: padding\n },\n paddingLeft: {\n style: padding\n },\n paddingX: {\n style: padding\n },\n paddingY: {\n style: padding\n },\n paddingInline: {\n style: padding\n },\n paddingInlineStart: {\n style: padding\n },\n paddingInlineEnd: {\n style: padding\n },\n paddingBlock: {\n style: padding\n },\n paddingBlockStart: {\n style: padding\n },\n paddingBlockEnd: {\n style: padding\n },\n m: {\n style: margin\n },\n mt: {\n style: margin\n },\n mr: {\n style: margin\n },\n mb: {\n style: margin\n },\n ml: {\n style: margin\n },\n mx: {\n style: margin\n },\n my: {\n style: margin\n },\n margin: {\n style: margin\n },\n marginTop: {\n style: margin\n },\n marginRight: {\n style: margin\n },\n marginBottom: {\n style: margin\n },\n marginLeft: {\n style: margin\n },\n marginX: {\n style: margin\n },\n marginY: {\n style: margin\n },\n marginInline: {\n style: margin\n },\n marginInlineStart: {\n style: margin\n },\n marginInlineEnd: {\n style: margin\n },\n marginBlock: {\n style: margin\n },\n marginBlockStart: {\n style: margin\n },\n marginBlockEnd: {\n style: margin\n },\n // display\n displayPrint: {\n cssProperty: false,\n transform: value => ({\n '@media print': {\n display: value\n }\n })\n },\n display: {},\n overflow: {},\n textOverflow: {},\n visibility: {},\n whiteSpace: {},\n // flexbox\n flexBasis: {},\n flexDirection: {},\n flexWrap: {},\n justifyContent: {},\n alignItems: {},\n alignContent: {},\n order: {},\n flex: {},\n flexGrow: {},\n flexShrink: {},\n alignSelf: {},\n justifyItems: {},\n justifySelf: {},\n // grid\n gap: {\n style: gap\n },\n rowGap: {\n style: rowGap\n },\n columnGap: {\n style: columnGap\n },\n gridColumn: {},\n gridRow: {},\n gridAutoFlow: {},\n gridAutoColumns: {},\n gridAutoRows: {},\n gridTemplateColumns: {},\n gridTemplateRows: {},\n gridTemplateAreas: {},\n gridArea: {},\n // positions\n position: {},\n zIndex: {\n themeKey: 'zIndex'\n },\n top: {},\n right: {},\n bottom: {},\n left: {},\n // shadows\n boxShadow: {\n themeKey: 'shadows'\n },\n // sizing\n width: {\n transform: sizingTransform\n },\n maxWidth: {\n style: maxWidth\n },\n minWidth: {\n transform: sizingTransform\n },\n height: {\n transform: sizingTransform\n },\n maxHeight: {\n transform: sizingTransform\n },\n minHeight: {\n transform: sizingTransform\n },\n boxSizing: {},\n // typography\n font: {\n themeKey: 'font'\n },\n fontFamily: {\n themeKey: 'typography'\n },\n fontSize: {\n themeKey: 'typography'\n },\n fontStyle: {\n themeKey: 'typography'\n },\n fontWeight: {\n themeKey: 'typography'\n },\n letterSpacing: {},\n textTransform: {},\n lineHeight: {},\n textAlign: {},\n typography: {\n cssProperty: false,\n themeKey: 'typography'\n }\n};\nexport default defaultSxConfig;", "import capitalize from '@mui/utils/capitalize';\nimport merge from \"../merge/index.js\";\nimport { getPath, getStyleValue as getValue } from \"../style/index.js\";\nimport { handleBreakpoints, createEmptyBreakpointObject, removeUnusedBreakpoints } from \"../breakpoints/index.js\";\nimport { sortContainerQueries } from \"../cssContainerQueries/index.js\";\nimport defaultSxConfig from \"./defaultSxConfig.js\";\nfunction objectsHaveSameKeys(...objects) {\n const allKeys = objects.reduce((keys, object) => keys.concat(Object.keys(object)), []);\n const union = new Set(allKeys);\n return objects.every(object => union.size === Object.keys(object).length);\n}\nfunction callIfFn(maybeFn, arg) {\n return typeof maybeFn === 'function' ? maybeFn(arg) : maybeFn;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function unstable_createStyleFunctionSx() {\n function getThemeValue(prop, val, theme, config) {\n const props = {\n [prop]: val,\n theme\n };\n const options = config[prop];\n if (!options) {\n return {\n [prop]: val\n };\n }\n const {\n cssProperty = prop,\n themeKey,\n transform,\n style\n } = options;\n if (val == null) {\n return null;\n }\n\n // TODO v6: remove, see https://github.com/mui/material-ui/pull/38123\n if (themeKey === 'typography' && val === 'inherit') {\n return {\n [prop]: val\n };\n }\n const themeMapping = getPath(theme, themeKey) || {};\n if (style) {\n return style(props);\n }\n const styleFromPropValue = propValueFinal => {\n let value = getValue(themeMapping, transform, propValueFinal);\n if (propValueFinal === value && typeof propValueFinal === 'string') {\n // Haven't found value\n value = getValue(themeMapping, transform, `${prop}${propValueFinal === 'default' ? '' : capitalize(propValueFinal)}`, propValueFinal);\n }\n if (cssProperty === false) {\n return value;\n }\n return {\n [cssProperty]: value\n };\n };\n return handleBreakpoints(props, val, styleFromPropValue);\n }\n function styleFunctionSx(props) {\n const {\n sx,\n theme = {}\n } = props || {};\n if (!sx) {\n return null; // Emotion & styled-components will neglect null\n }\n const config = theme.unstable_sxConfig ?? defaultSxConfig;\n\n /*\n * Receive `sxInput` as object or callback\n * and then recursively check keys & values to create media query object styles.\n * (the result will be used in `styled`)\n */\n function traverse(sxInput) {\n let sxObject = sxInput;\n if (typeof sxInput === 'function') {\n sxObject = sxInput(theme);\n } else if (typeof sxInput !== 'object') {\n // value\n return sxInput;\n }\n if (!sxObject) {\n return null;\n }\n const emptyBreakpoints = createEmptyBreakpointObject(theme.breakpoints);\n const breakpointsKeys = Object.keys(emptyBreakpoints);\n let css = emptyBreakpoints;\n Object.keys(sxObject).forEach(styleKey => {\n const value = callIfFn(sxObject[styleKey], theme);\n if (value !== null && value !== undefined) {\n if (typeof value === 'object') {\n if (config[styleKey]) {\n css = merge(css, getThemeValue(styleKey, value, theme, config));\n } else {\n const breakpointsValues = handleBreakpoints({\n theme\n }, value, x => ({\n [styleKey]: x\n }));\n if (objectsHaveSameKeys(breakpointsValues, value)) {\n css[styleKey] = styleFunctionSx({\n sx: value,\n theme\n });\n } else {\n css = merge(css, breakpointsValues);\n }\n }\n } else {\n css = merge(css, getThemeValue(styleKey, value, theme, config));\n }\n }\n });\n return sortContainerQueries(theme, removeUnusedBreakpoints(breakpointsKeys, css));\n }\n return Array.isArray(sx) ? sx.map(traverse) : traverse(sx);\n }\n return styleFunctionSx;\n}\nconst styleFunctionSx = unstable_createStyleFunctionSx();\nstyleFunctionSx.filterProps = ['sx'];\nexport default styleFunctionSx;", "import { isPlainObject } from '@mui/utils/deepmerge';\nimport defaultSxConfig from \"./defaultSxConfig.js\";\nconst splitProps = props => {\n const result = {\n systemProps: {},\n otherProps: {}\n };\n const config = props?.theme?.unstable_sxConfig ?? defaultSxConfig;\n Object.keys(props).forEach(prop => {\n if (config[prop]) {\n result.systemProps[prop] = props[prop];\n } else {\n result.otherProps[prop] = props[prop];\n }\n });\n return result;\n};\nexport default function extendSxProp(props) {\n const {\n sx: inSx,\n ...other\n } = props;\n const {\n systemProps,\n otherProps\n } = splitProps(other);\n let finalSx;\n if (Array.isArray(inSx)) {\n finalSx = [systemProps, ...inSx];\n } else if (typeof inSx === 'function') {\n finalSx = (...args) => {\n const result = inSx(...args);\n if (!isPlainObject(result)) {\n return systemProps;\n }\n return {\n ...systemProps,\n ...result\n };\n };\n } else {\n finalSx = {\n ...systemProps,\n ...inSx\n };\n }\n return {\n ...otherProps,\n sx: finalSx\n };\n}", "'use client';\n\nimport * as React from 'react';\nimport { useTheme as useThemeSystem } from '@mui/system';\nimport defaultTheme from \"./defaultTheme.js\";\nimport THEME_ID from \"./identifier.js\";\nexport default function useTheme() {\n const theme = useThemeSystem(defaultTheme);\n if (process.env.NODE_ENV !== 'production') {\n // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useDebugValue(theme);\n }\n return theme[THEME_ID] || theme;\n}", "function _extends() {\n return _extends = Object.assign ? Object.assign.bind() : function (n) {\n for (var e = 1; e < arguments.length; e++) {\n var t = arguments[e];\n for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);\n }\n return n;\n }, _extends.apply(null, arguments);\n}\nexport { _extends as default };", "import * as React from 'react';\nimport { useContext, forwardRef } from 'react';\nimport createCache from '@emotion/cache';\nimport _extends from '@babel/runtime/helpers/esm/extends';\nimport weakMemoize from '@emotion/weak-memoize';\nimport hoistNonReactStatics from '../_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.esm.js';\nimport { getRegisteredStyles, registerStyles, insertStyles } from '@emotion/utils';\nimport { serializeStyles } from '@emotion/serialize';\nimport { useInsertionEffectAlwaysWithSyncFallback } from '@emotion/use-insertion-effect-with-fallbacks';\n\nvar EmotionCacheContext = /* #__PURE__ */React.createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case\n// because this module is primarily intended for the browser and node\n// but it's also required in react native and similar environments sometimes\n// and we could have a special build just for that\n// but this is much easier and the native packages\n// might use a different theme context in the future anyway\ntypeof HTMLElement !== 'undefined' ? /* #__PURE__ */createCache({\n key: 'css'\n}) : null);\n\n{\n EmotionCacheContext.displayName = 'EmotionCacheContext';\n}\n\nvar CacheProvider = EmotionCacheContext.Provider;\nvar __unsafe_useEmotionCache = function useEmotionCache() {\n return useContext(EmotionCacheContext);\n};\n\nvar withEmotionCache = function withEmotionCache(func) {\n return /*#__PURE__*/forwardRef(function (props, ref) {\n // the cache will never be null in the browser\n var cache = useContext(EmotionCacheContext);\n return func(props, cache, ref);\n });\n};\n\nvar ThemeContext = /* #__PURE__ */React.createContext({});\n\n{\n ThemeContext.displayName = 'EmotionThemeContext';\n}\n\nvar useTheme = function useTheme() {\n return React.useContext(ThemeContext);\n};\n\nvar getTheme = function getTheme(outerTheme, theme) {\n if (typeof theme === 'function') {\n var mergedTheme = theme(outerTheme);\n\n if ((mergedTheme == null || typeof mergedTheme !== 'object' || Array.isArray(mergedTheme))) {\n throw new Error('[ThemeProvider] Please return an object from your theme function, i.e. theme={() => ({})}!');\n }\n\n return mergedTheme;\n }\n\n if ((theme == null || typeof theme !== 'object' || Array.isArray(theme))) {\n throw new Error('[ThemeProvider] Please make your theme prop a plain object');\n }\n\n return _extends({}, outerTheme, theme);\n};\n\nvar createCacheWithTheme = /* #__PURE__ */weakMemoize(function (outerTheme) {\n return weakMemoize(function (theme) {\n return getTheme(outerTheme, theme);\n });\n});\nvar ThemeProvider = function ThemeProvider(props) {\n var theme = React.useContext(ThemeContext);\n\n if (props.theme !== theme) {\n theme = createCacheWithTheme(theme)(props.theme);\n }\n\n return /*#__PURE__*/React.createElement(ThemeContext.Provider, {\n value: theme\n }, props.children);\n};\nfunction withTheme(Component) {\n var componentName = Component.displayName || Component.name || 'Component';\n var WithTheme = /*#__PURE__*/React.forwardRef(function render(props, ref) {\n var theme = React.useContext(ThemeContext);\n return /*#__PURE__*/React.createElement(Component, _extends({\n theme: theme,\n ref: ref\n }, props));\n });\n WithTheme.displayName = \"WithTheme(\" + componentName + \")\";\n return hoistNonReactStatics(WithTheme, Component);\n}\n\nvar hasOwn = {}.hasOwnProperty;\n\nvar getLastPart = function getLastPart(functionName) {\n // The match may be something like 'Object.createEmotionProps' or\n // 'Loader.prototype.render'\n var parts = functionName.split('.');\n return parts[parts.length - 1];\n};\n\nvar getFunctionNameFromStackTraceLine = function getFunctionNameFromStackTraceLine(line) {\n // V8\n var match = /^\\s+at\\s+([A-Za-z0-9$.]+)\\s/.exec(line);\n if (match) return getLastPart(match[1]); // Safari / Firefox\n\n match = /^([A-Za-z0-9$.]+)@/.exec(line);\n if (match) return getLastPart(match[1]);\n return undefined;\n};\n\nvar internalReactFunctionNames = /* #__PURE__ */new Set(['renderWithHooks', 'processChild', 'finishClassComponent', 'renderToString']); // These identifiers come from error stacks, so they have to be valid JS\n// identifiers, thus we only need to replace what is a valid character for JS,\n// but not for CSS.\n\nvar sanitizeIdentifier = function sanitizeIdentifier(identifier) {\n return identifier.replace(/\\$/g, '-');\n};\n\nvar getLabelFromStackTrace = function getLabelFromStackTrace(stackTrace) {\n if (!stackTrace) return undefined;\n var lines = stackTrace.split('\\n');\n\n for (var i = 0; i < lines.length; i++) {\n var functionName = getFunctionNameFromStackTraceLine(lines[i]); // The first line of V8 stack traces is just \"Error\"\n\n if (!functionName) continue; // If we reach one of these, we have gone too far and should quit\n\n if (internalReactFunctionNames.has(functionName)) break; // The component name is the first function in the stack that starts with an\n // uppercase letter\n\n if (/^[A-Z]/.test(functionName)) return sanitizeIdentifier(functionName);\n }\n\n return undefined;\n};\n\nvar typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__';\nvar labelPropName = '__EMOTION_LABEL_PLEASE_DO_NOT_USE__';\nvar createEmotionProps = function createEmotionProps(type, props) {\n if (typeof props.css === 'string' && // check if there is a css declaration\n props.css.indexOf(':') !== -1) {\n throw new Error(\"Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`\" + props.css + \"`\");\n }\n\n var newProps = {};\n\n for (var _key in props) {\n if (hasOwn.call(props, _key)) {\n newProps[_key] = props[_key];\n }\n }\n\n newProps[typePropName] = type; // Runtime labeling is an opt-in feature because:\n // - It causes hydration warnings when using Safari and SSR\n // - It can degrade performance if there are a huge number of elements\n //\n // Even if the flag is set, we still don't compute the label if it has already\n // been determined by the Babel plugin.\n\n if (typeof globalThis !== 'undefined' && !!globalThis.EMOTION_RUNTIME_AUTO_LABEL && !!props.css && (typeof props.css !== 'object' || !('name' in props.css) || typeof props.css.name !== 'string' || props.css.name.indexOf('-') === -1)) {\n var label = getLabelFromStackTrace(new Error().stack);\n if (label) newProps[labelPropName] = label;\n }\n\n return newProps;\n};\n\nvar Insertion = function Insertion(_ref) {\n var cache = _ref.cache,\n serialized = _ref.serialized,\n isStringTag = _ref.isStringTag;\n registerStyles(cache, serialized, isStringTag);\n useInsertionEffectAlwaysWithSyncFallback(function () {\n return insertStyles(cache, serialized, isStringTag);\n });\n\n return null;\n};\n\nvar Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {\n var cssProp = props.css; // so that using `css` from `emotion` and passing the result to the css prop works\n // not passing the registered cache to serializeStyles because it would\n // make certain babel optimisations not possible\n\n if (typeof cssProp === 'string' && cache.registered[cssProp] !== undefined) {\n cssProp = cache.registered[cssProp];\n }\n\n var WrappedComponent = props[typePropName];\n var registeredStyles = [cssProp];\n var className = '';\n\n if (typeof props.className === 'string') {\n className = getRegisteredStyles(cache.registered, registeredStyles, props.className);\n } else if (props.className != null) {\n className = props.className + \" \";\n }\n\n var serialized = serializeStyles(registeredStyles, undefined, React.useContext(ThemeContext));\n\n if (serialized.name.indexOf('-') === -1) {\n var labelFromStack = props[labelPropName];\n\n if (labelFromStack) {\n serialized = serializeStyles([serialized, 'label:' + labelFromStack + ';']);\n }\n }\n\n className += cache.key + \"-\" + serialized.name;\n var newProps = {};\n\n for (var _key2 in props) {\n if (hasOwn.call(props, _key2) && _key2 !== 'css' && _key2 !== typePropName && (_key2 !== labelPropName)) {\n newProps[_key2] = props[_key2];\n }\n }\n\n newProps.className = className;\n\n if (ref) {\n newProps.ref = ref;\n }\n\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Insertion, {\n cache: cache,\n serialized: serialized,\n isStringTag: typeof WrappedComponent === 'string'\n }), /*#__PURE__*/React.createElement(WrappedComponent, newProps));\n});\n\n{\n Emotion.displayName = 'EmotionCssPropInternal';\n}\n\nvar Emotion$1 = Emotion;\n\nexport { CacheProvider as C, Emotion$1 as E, ThemeContext as T, __unsafe_useEmotionCache as _, ThemeProvider as a, withTheme as b, createEmotionProps as c, hasOwn as h, useTheme as u, withEmotionCache as w };\n", "var isDevelopment = true;\n\n/*\n\nBased off glamor's StyleSheet, thanks Sunil ❤️\n\nhigh performance StyleSheet for css-in-js systems\n\n- uses multiple style tags behind the scenes for millions of rules\n- uses `insertRule` for appending in production for *much* faster performance\n\n// usage\n\nimport { StyleSheet } from '@emotion/sheet'\n\nlet styleSheet = new StyleSheet({ key: '', container: document.head })\n\nstyleSheet.insert('#box { border: 1px solid red; }')\n- appends a css rule into the stylesheet\n\nstyleSheet.flush()\n- empties the stylesheet of all its contents\n\n*/\n\nfunction sheetForTag(tag) {\n if (tag.sheet) {\n return tag.sheet;\n } // this weirdness brought to you by firefox\n\n /* istanbul ignore next */\n\n\n for (var i = 0; i < document.styleSheets.length; i++) {\n if (document.styleSheets[i].ownerNode === tag) {\n return document.styleSheets[i];\n }\n } // this function should always return with a value\n // TS can't understand it though so we make it stop complaining here\n\n\n return undefined;\n}\n\nfunction createStyleElement(options) {\n var tag = document.createElement('style');\n tag.setAttribute('data-emotion', options.key);\n\n if (options.nonce !== undefined) {\n tag.setAttribute('nonce', options.nonce);\n }\n\n tag.appendChild(document.createTextNode(''));\n tag.setAttribute('data-s', '');\n return tag;\n}\n\nvar StyleSheet = /*#__PURE__*/function () {\n // Using Node instead of HTMLElement since container may be a ShadowRoot\n function StyleSheet(options) {\n var _this = this;\n\n this._insertTag = function (tag) {\n var before;\n\n if (_this.tags.length === 0) {\n if (_this.insertionPoint) {\n before = _this.insertionPoint.nextSibling;\n } else if (_this.prepend) {\n before = _this.container.firstChild;\n } else {\n before = _this.before;\n }\n } else {\n before = _this.tags[_this.tags.length - 1].nextSibling;\n }\n\n _this.container.insertBefore(tag, before);\n\n _this.tags.push(tag);\n };\n\n this.isSpeedy = options.speedy === undefined ? !isDevelopment : options.speedy;\n this.tags = [];\n this.ctr = 0;\n this.nonce = options.nonce; // key is the value of the data-emotion attribute, it's used to identify different sheets\n\n this.key = options.key;\n this.container = options.container;\n this.prepend = options.prepend;\n this.insertionPoint = options.insertionPoint;\n this.before = null;\n }\n\n var _proto = StyleSheet.prototype;\n\n _proto.hydrate = function hydrate(nodes) {\n nodes.forEach(this._insertTag);\n };\n\n _proto.insert = function insert(rule) {\n // the max length is how many rules we have per style tag, it's 65000 in speedy mode\n // it's 1 in dev because we insert source maps that map a single rule to a location\n // and you can only have one source map per style tag\n if (this.ctr % (this.isSpeedy ? 65000 : 1) === 0) {\n this._insertTag(createStyleElement(this));\n }\n\n var tag = this.tags[this.tags.length - 1];\n\n {\n var isImportRule = rule.charCodeAt(0) === 64 && rule.charCodeAt(1) === 105;\n\n if (isImportRule && this._alreadyInsertedOrderInsensitiveRule) {\n // this would only cause problem in speedy mode\n // but we don't want enabling speedy to affect the observable behavior\n // so we report this error at all times\n console.error(\"You're attempting to insert the following rule:\\n\" + rule + '\\n\\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules.');\n }\n\n this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !isImportRule;\n }\n\n if (this.isSpeedy) {\n var sheet = sheetForTag(tag);\n\n try {\n // this is the ultrafast version, works across browsers\n // the big drawback is that the css won't be editable in devtools\n sheet.insertRule(rule, sheet.cssRules.length);\n } catch (e) {\n if (!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(rule)) {\n console.error(\"There was a problem inserting the following rule: \\\"\" + rule + \"\\\"\", e);\n }\n }\n } else {\n tag.appendChild(document.createTextNode(rule));\n }\n\n this.ctr++;\n };\n\n _proto.flush = function flush() {\n this.tags.forEach(function (tag) {\n var _tag$parentNode;\n\n return (_tag$parentNode = tag.parentNode) == null ? void 0 : _tag$parentNode.removeChild(tag);\n });\n this.tags = [];\n this.ctr = 0;\n\n {\n this._alreadyInsertedOrderInsensitiveRule = false;\n }\n };\n\n return StyleSheet;\n}();\n\nexport { StyleSheet };\n", "export var MS = '-ms-'\nexport var MOZ = '-moz-'\nexport var WEBKIT = '-webkit-'\n\nexport var COMMENT = 'comm'\nexport var RULESET = 'rule'\nexport var DECLARATION = 'decl'\n\nexport var PAGE = '@page'\nexport var MEDIA = '@media'\nexport var IMPORT = '@import'\nexport var CHARSET = '@charset'\nexport var VIEWPORT = '@viewport'\nexport var SUPPORTS = '@supports'\nexport var DOCUMENT = '@document'\nexport var NAMESPACE = '@namespace'\nexport var KEYFRAMES = '@keyframes'\nexport var FONT_FACE = '@font-face'\nexport var COUNTER_STYLE = '@counter-style'\nexport var FONT_FEATURE_VALUES = '@font-feature-values'\nexport var LAYER = '@layer'\n", "/**\n * @param {number}\n * @return {number}\n */\nexport var abs = Math.abs\n\n/**\n * @param {number}\n * @return {string}\n */\nexport var from = String.fromCharCode\n\n/**\n * @param {object}\n * @return {object}\n */\nexport var assign = Object.assign\n\n/**\n * @param {string} value\n * @param {number} length\n * @return {number}\n */\nexport function hash (value, length) {\n\treturn charat(value, 0) ^ 45 ? (((((((length << 2) ^ charat(value, 0)) << 2) ^ charat(value, 1)) << 2) ^ charat(value, 2)) << 2) ^ charat(value, 3) : 0\n}\n\n/**\n * @param {string} value\n * @return {string}\n */\nexport function trim (value) {\n\treturn value.trim()\n}\n\n/**\n * @param {string} value\n * @param {RegExp} pattern\n * @return {string?}\n */\nexport function match (value, pattern) {\n\treturn (value = pattern.exec(value)) ? value[0] : value\n}\n\n/**\n * @param {string} value\n * @param {(string|RegExp)} pattern\n * @param {string} replacement\n * @return {string}\n */\nexport function replace (value, pattern, replacement) {\n\treturn value.replace(pattern, replacement)\n}\n\n/**\n * @param {string} value\n * @param {string} search\n * @return {number}\n */\nexport function indexof (value, search) {\n\treturn value.indexOf(search)\n}\n\n/**\n * @param {string} value\n * @param {number} index\n * @return {number}\n */\nexport function charat (value, index) {\n\treturn value.charCodeAt(index) | 0\n}\n\n/**\n * @param {string} value\n * @param {number} begin\n * @param {number} end\n * @return {string}\n */\nexport function substr (value, begin, end) {\n\treturn value.slice(begin, end)\n}\n\n/**\n * @param {string} value\n * @return {number}\n */\nexport function strlen (value) {\n\treturn value.length\n}\n\n/**\n * @param {any[]} value\n * @return {number}\n */\nexport function sizeof (value) {\n\treturn value.length\n}\n\n/**\n * @param {any} value\n * @param {any[]} array\n * @return {any}\n */\nexport function append (value, array) {\n\treturn array.push(value), value\n}\n\n/**\n * @param {string[]} array\n * @param {function} callback\n * @return {string}\n */\nexport function combine (array, callback) {\n\treturn array.map(callback).join('')\n}\n", "import {from, trim, charat, strlen, substr, append, assign} from './Utility.js'\n\nexport var line = 1\nexport var column = 1\nexport var length = 0\nexport var position = 0\nexport var character = 0\nexport var characters = ''\n\n/**\n * @param {string} value\n * @param {object | null} root\n * @param {object | null} parent\n * @param {string} type\n * @param {string[] | string} props\n * @param {object[] | string} children\n * @param {number} length\n */\nexport function node (value, root, parent, type, props, children, length) {\n\treturn {value: value, root: root, parent: parent, type: type, props: props, children: children, line: line, column: column, length: length, return: ''}\n}\n\n/**\n * @param {object} root\n * @param {object} props\n * @return {object}\n */\nexport function copy (root, props) {\n\treturn assign(node('', null, null, '', null, null, 0), root, {length: -root.length}, props)\n}\n\n/**\n * @return {number}\n */\nexport function char () {\n\treturn character\n}\n\n/**\n * @return {number}\n */\nexport function prev () {\n\tcharacter = position > 0 ? charat(characters, --position) : 0\n\n\tif (column--, character === 10)\n\t\tcolumn = 1, line--\n\n\treturn character\n}\n\n/**\n * @return {number}\n */\nexport function next () {\n\tcharacter = position < length ? charat(characters, position++) : 0\n\n\tif (column++, character === 10)\n\t\tcolumn = 1, line++\n\n\treturn character\n}\n\n/**\n * @return {number}\n */\nexport function peek () {\n\treturn charat(characters, position)\n}\n\n/**\n * @return {number}\n */\nexport function caret () {\n\treturn position\n}\n\n/**\n * @param {number} begin\n * @param {number} end\n * @return {string}\n */\nexport function slice (begin, end) {\n\treturn substr(characters, begin, end)\n}\n\n/**\n * @param {number} type\n * @return {number}\n */\nexport function token (type) {\n\tswitch (type) {\n\t\t// \\0 \\t \\n \\r \\s whitespace token\n\t\tcase 0: case 9: case 10: case 13: case 32:\n\t\t\treturn 5\n\t\t// ! + , / > @ ~ isolate token\n\t\tcase 33: case 43: case 44: case 47: case 62: case 64: case 126:\n\t\t// ; { } breakpoint token\n\t\tcase 59: case 123: case 125:\n\t\t\treturn 4\n\t\t// : accompanied token\n\t\tcase 58:\n\t\t\treturn 3\n\t\t// \" ' ( [ opening delimit token\n\t\tcase 34: case 39: case 40: case 91:\n\t\t\treturn 2\n\t\t// ) ] closing delimit token\n\t\tcase 41: case 93:\n\t\t\treturn 1\n\t}\n\n\treturn 0\n}\n\n/**\n * @param {string} value\n * @return {any[]}\n */\nexport function alloc (value) {\n\treturn line = column = 1, length = strlen(characters = value), position = 0, []\n}\n\n/**\n * @param {any} value\n * @return {any}\n */\nexport function dealloc (value) {\n\treturn characters = '', value\n}\n\n/**\n * @param {number} type\n * @return {string}\n */\nexport function delimit (type) {\n\treturn trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)))\n}\n\n/**\n * @param {string} value\n * @return {string[]}\n */\nexport function tokenize (value) {\n\treturn dealloc(tokenizer(alloc(value)))\n}\n\n/**\n * @param {number} type\n * @return {string}\n */\nexport function whitespace (type) {\n\twhile (character = peek())\n\t\tif (character < 33)\n\t\t\tnext()\n\t\telse\n\t\t\tbreak\n\n\treturn token(type) > 2 || token(character) > 3 ? '' : ' '\n}\n\n/**\n * @param {string[]} children\n * @return {string[]}\n */\nexport function tokenizer (children) {\n\twhile (next())\n\t\tswitch (token(character)) {\n\t\t\tcase 0: append(identifier(position - 1), children)\n\t\t\t\tbreak\n\t\t\tcase 2: append(delimit(character), children)\n\t\t\t\tbreak\n\t\t\tdefault: append(from(character), children)\n\t\t}\n\n\treturn children\n}\n\n/**\n * @param {number} index\n * @param {number} count\n * @return {string}\n */\nexport function escaping (index, count) {\n\twhile (--count && next())\n\t\t// not 0-9 A-F a-f\n\t\tif (character < 48 || character > 102 || (character > 57 && character < 65) || (character > 70 && character < 97))\n\t\t\tbreak\n\n\treturn slice(index, caret() + (count < 6 && peek() == 32 && next() == 32))\n}\n\n/**\n * @param {number} type\n * @return {number}\n */\nexport function delimiter (type) {\n\twhile (next())\n\t\tswitch (character) {\n\t\t\t// ] ) \" '\n\t\t\tcase type:\n\t\t\t\treturn position\n\t\t\t// \" '\n\t\t\tcase 34: case 39:\n\t\t\t\tif (type !== 34 && type !== 39)\n\t\t\t\t\tdelimiter(character)\n\t\t\t\tbreak\n\t\t\t// (\n\t\t\tcase 40:\n\t\t\t\tif (type === 41)\n\t\t\t\t\tdelimiter(type)\n\t\t\t\tbreak\n\t\t\t// \\\n\t\t\tcase 92:\n\t\t\t\tnext()\n\t\t\t\tbreak\n\t\t}\n\n\treturn position\n}\n\n/**\n * @param {number} type\n * @param {number} index\n * @return {number}\n */\nexport function commenter (type, index) {\n\twhile (next())\n\t\t// //\n\t\tif (type + character === 47 + 10)\n\t\t\tbreak\n\t\t// /*\n\t\telse if (type + character === 42 + 42 && peek() === 47)\n\t\t\tbreak\n\n\treturn '/*' + slice(index, position - 1) + '*' + from(type === 47 ? type : next())\n}\n\n/**\n * @param {number} index\n * @return {string}\n */\nexport function identifier (index) {\n\twhile (!token(peek()))\n\t\tnext()\n\n\treturn slice(index, position)\n}\n", "import {COMMENT, RULESET, DECLARATION} from './Enum.js'\nimport {abs, charat, trim, from, sizeof, strlen, substr, append, replace, indexof} from './Utility.js'\nimport {node, char, prev, next, peek, caret, alloc, dealloc, delimit, whitespace, escaping, identifier, commenter} from './Tokenizer.js'\n\n/**\n * @param {string} value\n * @return {object[]}\n */\nexport function compile (value) {\n\treturn dealloc(parse('', null, null, null, [''], value = alloc(value), 0, [0], value))\n}\n\n/**\n * @param {string} value\n * @param {object} root\n * @param {object?} parent\n * @param {string[]} rule\n * @param {string[]} rules\n * @param {string[]} rulesets\n * @param {number[]} pseudo\n * @param {number[]} points\n * @param {string[]} declarations\n * @return {object}\n */\nexport function parse (value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {\n\tvar index = 0\n\tvar offset = 0\n\tvar length = pseudo\n\tvar atrule = 0\n\tvar property = 0\n\tvar previous = 0\n\tvar variable = 1\n\tvar scanning = 1\n\tvar ampersand = 1\n\tvar character = 0\n\tvar type = ''\n\tvar props = rules\n\tvar children = rulesets\n\tvar reference = rule\n\tvar characters = type\n\n\twhile (scanning)\n\t\tswitch (previous = character, character = next()) {\n\t\t\t// (\n\t\t\tcase 40:\n\t\t\t\tif (previous != 108 && charat(characters, length - 1) == 58) {\n\t\t\t\t\tif (indexof(characters += replace(delimit(character), '&', '&\\f'), '&\\f') != -1)\n\t\t\t\t\t\tampersand = -1\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t// \" ' [\n\t\t\tcase 34: case 39: case 91:\n\t\t\t\tcharacters += delimit(character)\n\t\t\t\tbreak\n\t\t\t// \\t \\n \\r \\s\n\t\t\tcase 9: case 10: case 13: case 32:\n\t\t\t\tcharacters += whitespace(previous)\n\t\t\t\tbreak\n\t\t\t// \\\n\t\t\tcase 92:\n\t\t\t\tcharacters += escaping(caret() - 1, 7)\n\t\t\t\tcontinue\n\t\t\t// /\n\t\t\tcase 47:\n\t\t\t\tswitch (peek()) {\n\t\t\t\t\tcase 42: case 47:\n\t\t\t\t\t\tappend(comment(commenter(next(), caret()), root, parent), declarations)\n\t\t\t\t\t\tbreak\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tcharacters += '/'\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\t// {\n\t\t\tcase 123 * variable:\n\t\t\t\tpoints[index++] = strlen(characters) * ampersand\n\t\t\t// } ; \\0\n\t\t\tcase 125 * variable: case 59: case 0:\n\t\t\t\tswitch (character) {\n\t\t\t\t\t// \\0 }\n\t\t\t\t\tcase 0: case 125: scanning = 0\n\t\t\t\t\t// ;\n\t\t\t\t\tcase 59 + offset: if (ampersand == -1) characters = replace(characters, /\\f/g, '')\n\t\t\t\t\t\tif (property > 0 && (strlen(characters) - length))\n\t\t\t\t\t\t\tappend(property > 32 ? declaration(characters + ';', rule, parent, length - 1) : declaration(replace(characters, ' ', '') + ';', rule, parent, length - 2), declarations)\n\t\t\t\t\t\tbreak\n\t\t\t\t\t// @ ;\n\t\t\t\t\tcase 59: characters += ';'\n\t\t\t\t\t// { rule/at-rule\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tappend(reference = ruleset(characters, root, parent, index, offset, rules, points, type, props = [], children = [], length), rulesets)\n\n\t\t\t\t\t\tif (character === 123)\n\t\t\t\t\t\t\tif (offset === 0)\n\t\t\t\t\t\t\t\tparse(characters, root, reference, reference, props, rulesets, length, points, children)\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tswitch (atrule === 99 && charat(characters, 3) === 110 ? 100 : atrule) {\n\t\t\t\t\t\t\t\t\t// d l m s\n\t\t\t\t\t\t\t\t\tcase 100: case 108: case 109: case 115:\n\t\t\t\t\t\t\t\t\t\tparse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length), children), rules, children, length, points, rule ? props : children)\n\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\tparse(characters, reference, reference, reference, [''], children, 0, points, children)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tindex = offset = property = 0, variable = ampersand = 1, type = characters = '', length = pseudo\n\t\t\t\tbreak\n\t\t\t// :\n\t\t\tcase 58:\n\t\t\t\tlength = 1 + strlen(characters), property = previous\n\t\t\tdefault:\n\t\t\t\tif (variable < 1)\n\t\t\t\t\tif (character == 123)\n\t\t\t\t\t\t--variable\n\t\t\t\t\telse if (character == 125 && variable++ == 0 && prev() == 125)\n\t\t\t\t\t\tcontinue\n\n\t\t\t\tswitch (characters += from(character), character * variable) {\n\t\t\t\t\t// &\n\t\t\t\t\tcase 38:\n\t\t\t\t\t\tampersand = offset > 0 ? 1 : (characters += '\\f', -1)\n\t\t\t\t\t\tbreak\n\t\t\t\t\t// ,\n\t\t\t\t\tcase 44:\n\t\t\t\t\t\tpoints[index++] = (strlen(characters) - 1) * ampersand, ampersand = 1\n\t\t\t\t\t\tbreak\n\t\t\t\t\t// @\n\t\t\t\t\tcase 64:\n\t\t\t\t\t\t// -\n\t\t\t\t\t\tif (peek() === 45)\n\t\t\t\t\t\t\tcharacters += delimit(next())\n\n\t\t\t\t\t\tatrule = peek(), offset = length = strlen(type = characters += identifier(caret())), character++\n\t\t\t\t\t\tbreak\n\t\t\t\t\t// -\n\t\t\t\t\tcase 45:\n\t\t\t\t\t\tif (previous === 45 && strlen(characters) == 2)\n\t\t\t\t\t\t\tvariable = 0\n\t\t\t\t}\n\t\t}\n\n\treturn rulesets\n}\n\n/**\n * @param {string} value\n * @param {object} root\n * @param {object?} parent\n * @param {number} index\n * @param {number} offset\n * @param {string[]} rules\n * @param {number[]} points\n * @param {string} type\n * @param {string[]} props\n * @param {string[]} children\n * @param {number} length\n * @return {object}\n */\nexport function ruleset (value, root, parent, index, offset, rules, points, type, props, children, length) {\n\tvar post = offset - 1\n\tvar rule = offset === 0 ? rules : ['']\n\tvar size = sizeof(rule)\n\n\tfor (var i = 0, j = 0, k = 0; i < index; ++i)\n\t\tfor (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)\n\t\t\tif (z = trim(j > 0 ? rule[x] + ' ' + y : replace(y, /&\\f/g, rule[x])))\n\t\t\t\tprops[k++] = z\n\n\treturn node(value, root, parent, offset === 0 ? RULESET : type, props, children, length)\n}\n\n/**\n * @param {number} value\n * @param {object} root\n * @param {object?} parent\n * @return {object}\n */\nexport function comment (value, root, parent) {\n\treturn node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0)\n}\n\n/**\n * @param {string} value\n * @param {object} root\n * @param {object?} parent\n * @param {number} length\n * @return {object}\n */\nexport function declaration (value, root, parent, length) {\n\treturn node(value, root, parent, DECLARATION, substr(value, 0, length), substr(value, length + 1, -1), length)\n}\n", "import {IMPORT, LAYER, COMMENT, RULESET, DECLARATION, KEYFRAMES} from './Enum.js'\nimport {strlen, sizeof} from './Utility.js'\n\n/**\n * @param {object[]} children\n * @param {function} callback\n * @return {string}\n */\nexport function serialize (children, callback) {\n\tvar output = ''\n\tvar length = sizeof(children)\n\n\tfor (var i = 0; i < length; i++)\n\t\toutput += callback(children[i], i, children, callback) || ''\n\n\treturn output\n}\n\n/**\n * @param {object} element\n * @param {number} index\n * @param {object[]} children\n * @param {function} callback\n * @return {string}\n */\nexport function stringify (element, index, children, callback) {\n\tswitch (element.type) {\n\t\tcase LAYER: if (element.children.length) break\n\t\tcase IMPORT: case DECLARATION: return element.return = element.return || element.value\n\t\tcase COMMENT: return ''\n\t\tcase KEYFRAMES: return element.return = element.value + '{' + serialize(element.children, callback) + '}'\n\t\tcase RULESET: element.value = element.props.join(',')\n\t}\n\n\treturn strlen(children = serialize(element.children, callback)) ? element.return = element.value + '{' + children + '}' : ''\n}\n", "import {MS, MOZ, WEBKIT, RULESET, KEYFRAMES, DECLARATION} from './Enum.js'\nimport {match, charat, substr, strlen, sizeof, replace, combine} from './Utility.js'\nimport {copy, tokenize} from './Tokenizer.js'\nimport {serialize} from './Serializer.js'\nimport {prefix} from './Prefixer.js'\n\n/**\n * @param {function[]} collection\n * @return {function}\n */\nexport function middleware (collection) {\n\tvar length = sizeof(collection)\n\n\treturn function (element, index, children, callback) {\n\t\tvar output = ''\n\n\t\tfor (var i = 0; i < length; i++)\n\t\t\toutput += collection[i](element, index, children, callback) || ''\n\n\t\treturn output\n\t}\n}\n\n/**\n * @param {function} callback\n * @return {function}\n */\nexport function rulesheet (callback) {\n\treturn function (element) {\n\t\tif (!element.root)\n\t\t\tif (element = element.return)\n\t\t\t\tcallback(element)\n\t}\n}\n\n/**\n * @param {object} element\n * @param {number} index\n * @param {object[]} children\n * @param {function} callback\n */\nexport function prefixer (element, index, children, callback) {\n\tif (element.length > -1)\n\t\tif (!element.return)\n\t\t\tswitch (element.type) {\n\t\t\t\tcase DECLARATION: element.return = prefix(element.value, element.length, children)\n\t\t\t\t\treturn\n\t\t\t\tcase KEYFRAMES:\n\t\t\t\t\treturn serialize([copy(element, {value: replace(element.value, '@', '@' + WEBKIT)})], callback)\n\t\t\t\tcase RULESET:\n\t\t\t\t\tif (element.length)\n\t\t\t\t\t\treturn combine(element.props, function (value) {\n\t\t\t\t\t\t\tswitch (match(value, /(::plac\\w+|:read-\\w+)/)) {\n\t\t\t\t\t\t\t\t// :read-(only|write)\n\t\t\t\t\t\t\t\tcase ':read-only': case ':read-write':\n\t\t\t\t\t\t\t\t\treturn serialize([copy(element, {props: [replace(value, /:(read-\\w+)/, ':' + MOZ + '$1')]})], callback)\n\t\t\t\t\t\t\t\t// :placeholder\n\t\t\t\t\t\t\t\tcase '::placeholder':\n\t\t\t\t\t\t\t\t\treturn serialize([\n\t\t\t\t\t\t\t\t\t\tcopy(element, {props: [replace(value, /:(plac\\w+)/, ':' + WEBKIT + 'input-$1')]}),\n\t\t\t\t\t\t\t\t\t\tcopy(element, {props: [replace(value, /:(plac\\w+)/, ':' + MOZ + '$1')]}),\n\t\t\t\t\t\t\t\t\t\tcopy(element, {props: [replace(value, /:(plac\\w+)/, MS + 'input-$1')]})\n\t\t\t\t\t\t\t\t\t], callback)\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\treturn ''\n\t\t\t\t\t\t})\n\t\t\t}\n}\n\n/**\n * @param {object} element\n * @param {number} index\n * @param {object[]} children\n */\nexport function namespace (element) {\n\tswitch (element.type) {\n\t\tcase RULESET:\n\t\t\telement.props = element.props.map(function (value) {\n\t\t\t\treturn combine(tokenize(value), function (value, index, children) {\n\t\t\t\t\tswitch (charat(value, 0)) {\n\t\t\t\t\t\t// \\f\n\t\t\t\t\t\tcase 12:\n\t\t\t\t\t\t\treturn substr(value, 1, strlen(value))\n\t\t\t\t\t\t// \\0 ( + > ~\n\t\t\t\t\t\tcase 0: case 40: case 43: case 62: case 126:\n\t\t\t\t\t\t\treturn value\n\t\t\t\t\t\t// :\n\t\t\t\t\t\tcase 58:\n\t\t\t\t\t\t\tif (children[++index] === 'global')\n\t\t\t\t\t\t\t\tchildren[index] = '', children[++index] = '\\f' + substr(children[index], index = 1, -1)\n\t\t\t\t\t\t// \\s\n\t\t\t\t\t\tcase 32:\n\t\t\t\t\t\t\treturn index === 1 ? '' : value\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tswitch (index) {\n\t\t\t\t\t\t\t\tcase 0: element = value\n\t\t\t\t\t\t\t\t\treturn sizeof(children) > 1 ? '' : value\n\t\t\t\t\t\t\t\tcase index = sizeof(children) - 1: case 2:\n\t\t\t\t\t\t\t\t\treturn index === 2 ? value + element + element : value + element\n\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\treturn value\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t})\n\t}\n}\n", "var weakMemoize = function weakMemoize(func) {\n var cache = new WeakMap();\n return function (arg) {\n if (cache.has(arg)) {\n // Use non-null assertion because we just checked that the cache `has` it\n // This allows us to remove `undefined` from the return value\n return cache.get(arg);\n }\n\n var ret = func(arg);\n cache.set(arg, ret);\n return ret;\n };\n};\n\nexport { weakMemoize as default };\n", "function memoize(fn) {\n var cache = Object.create(null);\n return function (arg) {\n if (cache[arg] === undefined) cache[arg] = fn(arg);\n return cache[arg];\n };\n}\n\nexport { memoize as default };\n", "import { StyleSheet } from '@emotion/sheet';\nimport { dealloc, alloc, next, token, from, peek, delimit, slice, position, RULESET, combine, match, serialize, copy, replace, WEBKIT, MOZ, MS, KEYFRAMES, DECLARATION, hash, charat, strlen, indexof, middleware, stringify, COMMENT, compile } from 'stylis';\nimport '@emotion/weak-memoize';\nimport '@emotion/memoize';\n\nvar identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {\n var previous = 0;\n var character = 0;\n\n while (true) {\n previous = character;\n character = peek(); // &\\f\n\n if (previous === 38 && character === 12) {\n points[index] = 1;\n }\n\n if (token(character)) {\n break;\n }\n\n next();\n }\n\n return slice(begin, position);\n};\n\nvar toRules = function toRules(parsed, points) {\n // pretend we've started with a comma\n var index = -1;\n var character = 44;\n\n do {\n switch (token(character)) {\n case 0:\n // &\\f\n if (character === 38 && peek() === 12) {\n // this is not 100% correct, we don't account for literal sequences here - like for example quoted strings\n // stylis inserts \\f after & to know when & where it should replace this sequence with the context selector\n // and when it should just concatenate the outer and inner selectors\n // it's very unlikely for this sequence to actually appear in a different context, so we just leverage this fact here\n points[index] = 1;\n }\n\n parsed[index] += identifierWithPointTracking(position - 1, points, index);\n break;\n\n case 2:\n parsed[index] += delimit(character);\n break;\n\n case 4:\n // comma\n if (character === 44) {\n // colon\n parsed[++index] = peek() === 58 ? '&\\f' : '';\n points[index] = parsed[index].length;\n break;\n }\n\n // fallthrough\n\n default:\n parsed[index] += from(character);\n }\n } while (character = next());\n\n return parsed;\n};\n\nvar getRules = function getRules(value, points) {\n return dealloc(toRules(alloc(value), points));\n}; // WeakSet would be more appropriate, but only WeakMap is supported in IE11\n\n\nvar fixedElements = /* #__PURE__ */new WeakMap();\nvar compat = function compat(element) {\n if (element.type !== 'rule' || !element.parent || // positive .length indicates that this rule contains pseudo\n // negative .length indicates that this rule has been already prefixed\n element.length < 1) {\n return;\n }\n\n var value = element.value;\n var parent = element.parent;\n var isImplicitRule = element.column === parent.column && element.line === parent.line;\n\n while (parent.type !== 'rule') {\n parent = parent.parent;\n if (!parent) return;\n } // short-circuit for the simplest case\n\n\n if (element.props.length === 1 && value.charCodeAt(0) !== 58\n /* colon */\n && !fixedElements.get(parent)) {\n return;\n } // if this is an implicitly inserted rule (the one eagerly inserted at the each new nested level)\n // then the props has already been manipulated beforehand as they that array is shared between it and its \"rule parent\"\n\n\n if (isImplicitRule) {\n return;\n }\n\n fixedElements.set(element, true);\n var points = [];\n var rules = getRules(value, points);\n var parentRules = parent.props;\n\n for (var i = 0, k = 0; i < rules.length; i++) {\n for (var j = 0; j < parentRules.length; j++, k++) {\n element.props[k] = points[i] ? rules[i].replace(/&\\f/g, parentRules[j]) : parentRules[j] + \" \" + rules[i];\n }\n }\n};\nvar removeLabel = function removeLabel(element) {\n if (element.type === 'decl') {\n var value = element.value;\n\n if ( // charcode for l\n value.charCodeAt(0) === 108 && // charcode for b\n value.charCodeAt(2) === 98) {\n // this ignores label\n element[\"return\"] = '';\n element.value = '';\n }\n }\n};\nvar ignoreFlag = 'emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason';\n\nvar isIgnoringComment = function isIgnoringComment(element) {\n return element.type === 'comm' && element.children.indexOf(ignoreFlag) > -1;\n};\n\nvar createUnsafeSelectorsAlarm = function createUnsafeSelectorsAlarm(cache) {\n return function (element, index, children) {\n if (element.type !== 'rule' || cache.compat) return;\n var unsafePseudoClasses = element.value.match(/(:first|:nth|:nth-last)-child/g);\n\n if (unsafePseudoClasses) {\n var isNested = !!element.parent; // in nested rules comments become children of the \"auto-inserted\" rule and that's always the `element.parent`\n //\n // considering this input:\n // .a {\n // .b /* comm */ {}\n // color: hotpink;\n // }\n // we get output corresponding to this:\n // .a {\n // & {\n // /* comm */\n // color: hotpink;\n // }\n // .b {}\n // }\n\n var commentContainer = isNested ? element.parent.children : // global rule at the root level\n children;\n\n for (var i = commentContainer.length - 1; i >= 0; i--) {\n var node = commentContainer[i];\n\n if (node.line < element.line) {\n break;\n } // it is quite weird but comments are *usually* put at `column: element.column - 1`\n // so we seek *from the end* for the node that is earlier than the rule's `element` and check that\n // this will also match inputs like this:\n // .a {\n // /* comm */\n // .b {}\n // }\n //\n // but that is fine\n //\n // it would be the easiest to change the placement of the comment to be the first child of the rule:\n // .a {\n // .b { /* comm */ }\n // }\n // with such inputs we wouldn't have to search for the comment at all\n // TODO: consider changing this comment placement in the next major version\n\n\n if (node.column < element.column) {\n if (isIgnoringComment(node)) {\n return;\n }\n\n break;\n }\n }\n\n unsafePseudoClasses.forEach(function (unsafePseudoClass) {\n console.error(\"The pseudo class \\\"\" + unsafePseudoClass + \"\\\" is potentially unsafe when doing server-side rendering. Try changing it to \\\"\" + unsafePseudoClass.split('-child')[0] + \"-of-type\\\".\");\n });\n }\n };\n};\n\nvar isImportRule = function isImportRule(element) {\n return element.type.charCodeAt(1) === 105 && element.type.charCodeAt(0) === 64;\n};\n\nvar isPrependedWithRegularRules = function isPrependedWithRegularRules(index, children) {\n for (var i = index - 1; i >= 0; i--) {\n if (!isImportRule(children[i])) {\n return true;\n }\n }\n\n return false;\n}; // use this to remove incorrect elements from further processing\n// so they don't get handed to the `sheet` (or anything else)\n// as that could potentially lead to additional logs which in turn could be overhelming to the user\n\n\nvar nullifyElement = function nullifyElement(element) {\n element.type = '';\n element.value = '';\n element[\"return\"] = '';\n element.children = '';\n element.props = '';\n};\n\nvar incorrectImportAlarm = function incorrectImportAlarm(element, index, children) {\n if (!isImportRule(element)) {\n return;\n }\n\n if (element.parent) {\n console.error(\"`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles.\");\n nullifyElement(element);\n } else if (isPrependedWithRegularRules(index, children)) {\n console.error(\"`@import` rules can't be after other rules. Please put your `@import` rules before your other rules.\");\n nullifyElement(element);\n }\n};\n\n/* eslint-disable no-fallthrough */\n\nfunction prefix(value, length) {\n switch (hash(value, length)) {\n // color-adjust\n case 5103:\n return WEBKIT + 'print-' + value + value;\n // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)\n\n case 5737:\n case 4201:\n case 3177:\n case 3433:\n case 1641:\n case 4457:\n case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break\n\n case 5572:\n case 6356:\n case 5844:\n case 3191:\n case 6645:\n case 3005: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,\n\n case 6391:\n case 5879:\n case 5623:\n case 6135:\n case 4599:\n case 4855: // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)\n\n case 4215:\n case 6389:\n case 5109:\n case 5365:\n case 5621:\n case 3829:\n return WEBKIT + value + value;\n // appearance, user-select, transform, hyphens, text-size-adjust\n\n case 5349:\n case 4246:\n case 4810:\n case 6968:\n case 2756:\n return WEBKIT + value + MOZ + value + MS + value + value;\n // flex, flex-direction\n\n case 6828:\n case 4268:\n return WEBKIT + value + MS + value + value;\n // order\n\n case 6165:\n return WEBKIT + value + MS + 'flex-' + value + value;\n // align-items\n\n case 5187:\n return WEBKIT + value + replace(value, /(\\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value;\n // align-self\n\n case 5443:\n return WEBKIT + value + MS + 'flex-item-' + replace(value, /flex-|-self/, '') + value;\n // align-content\n\n case 4675:\n return WEBKIT + value + MS + 'flex-line-pack' + replace(value, /align-content|flex-|-self/, '') + value;\n // flex-shrink\n\n case 5548:\n return WEBKIT + value + MS + replace(value, 'shrink', 'negative') + value;\n // flex-basis\n\n case 5292:\n return WEBKIT + value + MS + replace(value, 'basis', 'preferred-size') + value;\n // flex-grow\n\n case 6060:\n return WEBKIT + 'box-' + replace(value, '-grow', '') + WEBKIT + value + MS + replace(value, 'grow', 'positive') + value;\n // transition\n\n case 4554:\n return WEBKIT + replace(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value;\n // cursor\n\n case 6187:\n return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value;\n // background, background-image\n\n case 5495:\n case 3959:\n return replace(value, /(image-set\\([^]*)/, WEBKIT + '$1' + '$`$1');\n // justify-content\n\n case 4968:\n return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value;\n // (margin|padding)-inline-(start|end)\n\n case 4095:\n case 3583:\n case 4068:\n case 2532:\n return replace(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value;\n // (min|max)?(width|height|inline-size|block-size)\n\n case 8116:\n case 7059:\n case 5753:\n case 5535:\n case 5445:\n case 5701:\n case 4933:\n case 4677:\n case 5533:\n case 5789:\n case 5021:\n case 4765:\n // stretch, max-content, min-content, fill-available\n if (strlen(value) - 1 - length > 6) switch (charat(value, length + 1)) {\n // (m)ax-content, (m)in-content\n case 109:\n // -\n if (charat(value, length + 4) !== 45) break;\n // (f)ill-available, (f)it-content\n\n case 102:\n return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;\n // (s)tretch\n\n case 115:\n return ~indexof(value, 'stretch') ? prefix(replace(value, 'stretch', 'fill-available'), length) + value : value;\n }\n break;\n // position: sticky\n\n case 4949:\n // (s)ticky?\n if (charat(value, length + 1) !== 115) break;\n // display: (flex|inline-flex)\n\n case 6444:\n switch (charat(value, strlen(value) - 3 - (~indexof(value, '!important') && 10))) {\n // stic(k)y\n case 107:\n return replace(value, ':', ':' + WEBKIT) + value;\n // (inline-)?fl(e)x\n\n case 101:\n return replace(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value;\n }\n\n break;\n // writing-mode\n\n case 5936:\n switch (charat(value, length + 11)) {\n // vertical-l(r)\n case 114:\n return WEBKIT + value + MS + replace(value, /[svh]\\w+-[tblr]{2}/, 'tb') + value;\n // vertical-r(l)\n\n case 108:\n return WEBKIT + value + MS + replace(value, /[svh]\\w+-[tblr]{2}/, 'tb-rl') + value;\n // horizontal(-)tb\n\n case 45:\n return WEBKIT + value + MS + replace(value, /[svh]\\w+-[tblr]{2}/, 'lr') + value;\n }\n\n return WEBKIT + value + MS + value + value;\n }\n\n return value;\n}\n\nvar prefixer = function prefixer(element, index, children, callback) {\n if (element.length > -1) if (!element[\"return\"]) switch (element.type) {\n case DECLARATION:\n element[\"return\"] = prefix(element.value, element.length);\n break;\n\n case KEYFRAMES:\n return serialize([copy(element, {\n value: replace(element.value, '@', '@' + WEBKIT)\n })], callback);\n\n case RULESET:\n if (element.length) return combine(element.props, function (value) {\n switch (match(value, /(::plac\\w+|:read-\\w+)/)) {\n // :read-(only|write)\n case ':read-only':\n case ':read-write':\n return serialize([copy(element, {\n props: [replace(value, /:(read-\\w+)/, ':' + MOZ + '$1')]\n })], callback);\n // :placeholder\n\n case '::placeholder':\n return serialize([copy(element, {\n props: [replace(value, /:(plac\\w+)/, ':' + WEBKIT + 'input-$1')]\n }), copy(element, {\n props: [replace(value, /:(plac\\w+)/, ':' + MOZ + '$1')]\n }), copy(element, {\n props: [replace(value, /:(plac\\w+)/, MS + 'input-$1')]\n })], callback);\n }\n\n return '';\n });\n }\n};\n\nvar defaultStylisPlugins = [prefixer];\nvar getSourceMap;\n\n{\n var sourceMapPattern = /\\/\\*#\\ssourceMappingURL=data:application\\/json;\\S+\\s+\\*\\//g;\n\n getSourceMap = function getSourceMap(styles) {\n var matches = styles.match(sourceMapPattern);\n if (!matches) return;\n return matches[matches.length - 1];\n };\n}\n\nvar createCache = function createCache(options) {\n var key = options.key;\n\n if (!key) {\n throw new Error(\"You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\\n\" + \"If multiple caches share the same key they might \\\"fight\\\" for each other's style elements.\");\n }\n\n if (key === 'css') {\n var ssrStyles = document.querySelectorAll(\"style[data-emotion]:not([data-s])\"); // get SSRed styles out of the way of React's hydration\n // document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)\n // note this very very intentionally targets all style elements regardless of the key to ensure\n // that creating a cache works inside of render of a React component\n\n Array.prototype.forEach.call(ssrStyles, function (node) {\n // we want to only move elements which have a space in the data-emotion attribute value\n // because that indicates that it is an Emotion 11 server-side rendered style elements\n // while we will already ignore Emotion 11 client-side inserted styles because of the :not([data-s]) part in the selector\n // Emotion 10 client-side inserted styles did not have data-s (but importantly did not have a space in their data-emotion attributes)\n // so checking for the space ensures that loading Emotion 11 after Emotion 10 has inserted some styles\n // will not result in the Emotion 10 styles being destroyed\n var dataEmotionAttribute = node.getAttribute('data-emotion');\n\n if (dataEmotionAttribute.indexOf(' ') === -1) {\n return;\n }\n\n document.head.appendChild(node);\n node.setAttribute('data-s', '');\n });\n }\n\n var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;\n\n {\n if (/[^a-z-]/.test(key)) {\n throw new Error(\"Emotion key must only contain lower case alphabetical characters and - but \\\"\" + key + \"\\\" was passed\");\n }\n }\n\n var inserted = {};\n var container;\n var nodesToHydrate = [];\n\n {\n container = options.container || document.head;\n Array.prototype.forEach.call( // this means we will ignore elements which don't have a space in them which\n // means that the style elements we're looking at are only Emotion 11 server-rendered style elements\n document.querySelectorAll(\"style[data-emotion^=\\\"\" + key + \" \\\"]\"), function (node) {\n var attrib = node.getAttribute(\"data-emotion\").split(' ');\n\n for (var i = 1; i < attrib.length; i++) {\n inserted[attrib[i]] = true;\n }\n\n nodesToHydrate.push(node);\n });\n }\n\n var _insert;\n\n var omnipresentPlugins = [compat, removeLabel];\n\n {\n omnipresentPlugins.push(createUnsafeSelectorsAlarm({\n get compat() {\n return cache.compat;\n }\n\n }), incorrectImportAlarm);\n }\n\n {\n var currentSheet;\n var finalizingPlugins = [stringify, function (element) {\n if (!element.root) {\n if (element[\"return\"]) {\n currentSheet.insert(element[\"return\"]);\n } else if (element.value && element.type !== COMMENT) {\n // insert empty rule in non-production environments\n // so @emotion/jest can grab `key` from the (JS)DOM for caches without any rules inserted yet\n currentSheet.insert(element.value + \"{}\");\n }\n }\n } ];\n var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));\n\n var stylis = function stylis(styles) {\n return serialize(compile(styles), serializer);\n };\n\n _insert = function insert(selector, serialized, sheet, shouldCache) {\n currentSheet = sheet;\n\n if (getSourceMap) {\n var sourceMap = getSourceMap(serialized.styles);\n\n if (sourceMap) {\n currentSheet = {\n insert: function insert(rule) {\n sheet.insert(rule + sourceMap);\n }\n };\n }\n }\n\n stylis(selector ? selector + \"{\" + serialized.styles + \"}\" : serialized.styles);\n\n if (shouldCache) {\n cache.inserted[serialized.name] = true;\n }\n };\n }\n\n var cache = {\n key: key,\n sheet: new StyleSheet({\n key: key,\n container: container,\n nonce: options.nonce,\n speedy: options.speedy,\n prepend: options.prepend,\n insertionPoint: options.insertionPoint\n }),\n nonce: options.nonce,\n inserted: inserted,\n registered: {},\n insert: _insert\n };\n cache.sheet.hydrate(nodesToHydrate);\n return cache;\n};\n\nexport { createCache as default };\n", "import hoistNonReactStatics$1 from 'hoist-non-react-statics';\n\n// this file isolates this package that is not tree-shakeable\n// and if this module doesn't actually contain any logic of its own\n// then Rollup just use 'hoist-non-react-statics' directly in other chunks\n\nvar hoistNonReactStatics = (function (targetComponent, sourceComponent) {\n return hoistNonReactStatics$1(targetComponent, sourceComponent);\n});\n\nexport { hoistNonReactStatics as default };\n", "var isBrowser = true;\n\nfunction getRegisteredStyles(registered, registeredStyles, classNames) {\n var rawClassName = '';\n classNames.split(' ').forEach(function (className) {\n if (registered[className] !== undefined) {\n registeredStyles.push(registered[className] + \";\");\n } else if (className) {\n rawClassName += className + \" \";\n }\n });\n return rawClassName;\n}\nvar registerStyles = function registerStyles(cache, serialized, isStringTag) {\n var className = cache.key + \"-\" + serialized.name;\n\n if ( // we only need to add the styles to the registered cache if the\n // class name could be used further down\n // the tree but if it's a string tag, we know it won't\n // so we don't have to add it to registered cache.\n // this improves memory usage since we can avoid storing the whole style string\n (isStringTag === false || // we need to always store it if we're in compat mode and\n // in node since emotion-server relies on whether a style is in\n // the registered cache to know whether a style is global or not\n // also, note that this check will be dead code eliminated in the browser\n isBrowser === false ) && cache.registered[className] === undefined) {\n cache.registered[className] = serialized.styles;\n }\n};\nvar insertStyles = function insertStyles(cache, serialized, isStringTag) {\n registerStyles(cache, serialized, isStringTag);\n var className = cache.key + \"-\" + serialized.name;\n\n if (cache.inserted[serialized.name] === undefined) {\n var current = serialized;\n\n do {\n cache.insert(serialized === current ? \".\" + className : '', current, cache.sheet, true);\n\n current = current.next;\n } while (current !== undefined);\n }\n};\n\nexport { getRegisteredStyles, insertStyles, registerStyles };\n", "/* eslint-disable */\n// Inspired by https://github.com/garycourt/murmurhash-js\n// Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86\nfunction murmur2(str) {\n // 'm' and 'r' are mixing constants generated offline.\n // They're not really 'magic', they just happen to work well.\n // const m = 0x5bd1e995;\n // const r = 24;\n // Initialize the hash\n var h = 0; // Mix 4 bytes at a time into the hash\n\n var k,\n i = 0,\n len = str.length;\n\n for (; len >= 4; ++i, len -= 4) {\n k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;\n k =\n /* Math.imul(k, m): */\n (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16);\n k ^=\n /* k >>> r: */\n k >>> 24;\n h =\n /* Math.imul(k, m): */\n (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16) ^\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n } // Handle the last few bytes of the input array\n\n\n switch (len) {\n case 3:\n h ^= (str.charCodeAt(i + 2) & 0xff) << 16;\n\n case 2:\n h ^= (str.charCodeAt(i + 1) & 0xff) << 8;\n\n case 1:\n h ^= str.charCodeAt(i) & 0xff;\n h =\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n } // Do a few final mixes of the hash to ensure the last few\n // bytes are well-incorporated.\n\n\n h ^= h >>> 13;\n h =\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n return ((h ^ h >>> 15) >>> 0).toString(36);\n}\n\nexport { murmur2 as default };\n", "var unitlessKeys = {\n animationIterationCount: 1,\n aspectRatio: 1,\n borderImageOutset: 1,\n borderImageSlice: 1,\n borderImageWidth: 1,\n boxFlex: 1,\n boxFlexGroup: 1,\n boxOrdinalGroup: 1,\n columnCount: 1,\n columns: 1,\n flex: 1,\n flexGrow: 1,\n flexPositive: 1,\n flexShrink: 1,\n flexNegative: 1,\n flexOrder: 1,\n gridRow: 1,\n gridRowEnd: 1,\n gridRowSpan: 1,\n gridRowStart: 1,\n gridColumn: 1,\n gridColumnEnd: 1,\n gridColumnSpan: 1,\n gridColumnStart: 1,\n msGridRow: 1,\n msGridRowSpan: 1,\n msGridColumn: 1,\n msGridColumnSpan: 1,\n fontWeight: 1,\n lineHeight: 1,\n opacity: 1,\n order: 1,\n orphans: 1,\n scale: 1,\n tabSize: 1,\n widows: 1,\n zIndex: 1,\n zoom: 1,\n WebkitLineClamp: 1,\n // SVG-related properties\n fillOpacity: 1,\n floodOpacity: 1,\n stopOpacity: 1,\n strokeDasharray: 1,\n strokeDashoffset: 1,\n strokeMiterlimit: 1,\n strokeOpacity: 1,\n strokeWidth: 1\n};\n\nexport { unitlessKeys as default };\n", "import hashString from '@emotion/hash';\nimport unitless from '@emotion/unitless';\nimport memoize from '@emotion/memoize';\n\nvar isDevelopment = true;\n\nvar ILLEGAL_ESCAPE_SEQUENCE_ERROR = \"You have illegal escape sequence in your template literal, most likely inside content's property value.\\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \\\"content: '\\\\00d7';\\\" should become \\\"content: '\\\\\\\\00d7';\\\".\\nYou can read more about this here:\\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences\";\nvar UNDEFINED_AS_OBJECT_KEY_ERROR = \"You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).\";\nvar hyphenateRegex = /[A-Z]|^ms/g;\nvar animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;\n\nvar isCustomProperty = function isCustomProperty(property) {\n return property.charCodeAt(1) === 45;\n};\n\nvar isProcessableValue = function isProcessableValue(value) {\n return value != null && typeof value !== 'boolean';\n};\n\nvar processStyleName = /* #__PURE__ */memoize(function (styleName) {\n return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, '-$&').toLowerCase();\n});\n\nvar processStyleValue = function processStyleValue(key, value) {\n switch (key) {\n case 'animation':\n case 'animationName':\n {\n if (typeof value === 'string') {\n return value.replace(animationRegex, function (match, p1, p2) {\n cursor = {\n name: p1,\n styles: p2,\n next: cursor\n };\n return p1;\n });\n }\n }\n }\n\n if (unitless[key] !== 1 && !isCustomProperty(key) && typeof value === 'number' && value !== 0) {\n return value + 'px';\n }\n\n return value;\n};\n\n{\n var contentValuePattern = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\\(|(no-)?(open|close)-quote/;\n var contentValues = ['normal', 'none', 'initial', 'inherit', 'unset'];\n var oldProcessStyleValue = processStyleValue;\n var msPattern = /^-ms-/;\n var hyphenPattern = /-(.)/g;\n var hyphenatedCache = {};\n\n processStyleValue = function processStyleValue(key, value) {\n if (key === 'content') {\n if (typeof value !== 'string' || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '\"' && value.charAt(0) !== \"'\")) {\n throw new Error(\"You seem to be using a value for 'content' without quotes, try replacing it with `content: '\\\"\" + value + \"\\\"'`\");\n }\n }\n\n var processed = oldProcessStyleValue(key, value);\n\n if (processed !== '' && !isCustomProperty(key) && key.indexOf('-') !== -1 && hyphenatedCache[key] === undefined) {\n hyphenatedCache[key] = true;\n console.error(\"Using kebab-case for css properties in objects is not supported. Did you mean \" + key.replace(msPattern, 'ms-').replace(hyphenPattern, function (str, _char) {\n return _char.toUpperCase();\n }) + \"?\");\n }\n\n return processed;\n };\n}\n\nvar noComponentSelectorMessage = 'Component selectors can only be used in conjunction with ' + '@emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware ' + 'compiler transform.';\n\nfunction handleInterpolation(mergedProps, registered, interpolation) {\n if (interpolation == null) {\n return '';\n }\n\n var componentSelector = interpolation;\n\n if (componentSelector.__emotion_styles !== undefined) {\n if (String(componentSelector) === 'NO_COMPONENT_SELECTOR') {\n throw new Error(noComponentSelectorMessage);\n }\n\n return componentSelector;\n }\n\n switch (typeof interpolation) {\n case 'boolean':\n {\n return '';\n }\n\n case 'object':\n {\n var keyframes = interpolation;\n\n if (keyframes.anim === 1) {\n cursor = {\n name: keyframes.name,\n styles: keyframes.styles,\n next: cursor\n };\n return keyframes.name;\n }\n\n var serializedStyles = interpolation;\n\n if (serializedStyles.styles !== undefined) {\n var next = serializedStyles.next;\n\n if (next !== undefined) {\n // not the most efficient thing ever but this is a pretty rare case\n // and there will be very few iterations of this generally\n while (next !== undefined) {\n cursor = {\n name: next.name,\n styles: next.styles,\n next: cursor\n };\n next = next.next;\n }\n }\n\n var styles = serializedStyles.styles + \";\";\n return styles;\n }\n\n return createStringFromObject(mergedProps, registered, interpolation);\n }\n\n case 'function':\n {\n if (mergedProps !== undefined) {\n var previousCursor = cursor;\n var result = interpolation(mergedProps);\n cursor = previousCursor;\n return handleInterpolation(mergedProps, registered, result);\n } else {\n console.error('Functions that are interpolated in css calls will be stringified.\\n' + 'If you want to have a css call based on props, create a function that returns a css call like this\\n' + 'let dynamicStyle = (props) => css`color: ${props.color}`\\n' + 'It can be called directly with props or interpolated in a styled call like this\\n' + \"let SomeComponent = styled('div')`${dynamicStyle}`\");\n }\n\n break;\n }\n\n case 'string':\n {\n var matched = [];\n var replaced = interpolation.replace(animationRegex, function (_match, _p1, p2) {\n var fakeVarName = \"animation\" + matched.length;\n matched.push(\"const \" + fakeVarName + \" = keyframes`\" + p2.replace(/^@keyframes animation-\\w+/, '') + \"`\");\n return \"${\" + fakeVarName + \"}\";\n });\n\n if (matched.length) {\n console.error(\"`keyframes` output got interpolated into plain string, please wrap it with `css`.\\n\\nInstead of doing this:\\n\\n\" + [].concat(matched, [\"`\" + replaced + \"`\"]).join('\\n') + \"\\n\\nYou should wrap it with `css` like this:\\n\\ncss`\" + replaced + \"`\");\n }\n }\n\n break;\n } // finalize string values (regular strings and functions interpolated into css calls)\n\n\n var asString = interpolation;\n\n if (registered == null) {\n return asString;\n }\n\n var cached = registered[asString];\n return cached !== undefined ? cached : asString;\n}\n\nfunction createStringFromObject(mergedProps, registered, obj) {\n var string = '';\n\n if (Array.isArray(obj)) {\n for (var i = 0; i < obj.length; i++) {\n string += handleInterpolation(mergedProps, registered, obj[i]) + \";\";\n }\n } else {\n for (var key in obj) {\n var value = obj[key];\n\n if (typeof value !== 'object') {\n var asString = value;\n\n if (registered != null && registered[asString] !== undefined) {\n string += key + \"{\" + registered[asString] + \"}\";\n } else if (isProcessableValue(asString)) {\n string += processStyleName(key) + \":\" + processStyleValue(key, asString) + \";\";\n }\n } else {\n if (key === 'NO_COMPONENT_SELECTOR' && isDevelopment) {\n throw new Error(noComponentSelectorMessage);\n }\n\n if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) {\n for (var _i = 0; _i < value.length; _i++) {\n if (isProcessableValue(value[_i])) {\n string += processStyleName(key) + \":\" + processStyleValue(key, value[_i]) + \";\";\n }\n }\n } else {\n var interpolated = handleInterpolation(mergedProps, registered, value);\n\n switch (key) {\n case 'animation':\n case 'animationName':\n {\n string += processStyleName(key) + \":\" + interpolated + \";\";\n break;\n }\n\n default:\n {\n if (key === 'undefined') {\n console.error(UNDEFINED_AS_OBJECT_KEY_ERROR);\n }\n\n string += key + \"{\" + interpolated + \"}\";\n }\n }\n }\n }\n }\n }\n\n return string;\n}\n\nvar labelPattern = /label:\\s*([^\\s;{]+)\\s*(;|$)/g; // this is the cursor for keyframes\n// keyframes are stored on the SerializedStyles object as a linked list\n\nvar cursor;\nfunction serializeStyles(args, registered, mergedProps) {\n if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].styles !== undefined) {\n return args[0];\n }\n\n var stringMode = true;\n var styles = '';\n cursor = undefined;\n var strings = args[0];\n\n if (strings == null || strings.raw === undefined) {\n stringMode = false;\n styles += handleInterpolation(mergedProps, registered, strings);\n } else {\n var asTemplateStringsArr = strings;\n\n if (asTemplateStringsArr[0] === undefined) {\n console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);\n }\n\n styles += asTemplateStringsArr[0];\n } // we start at 1 since we've already handled the first arg\n\n\n for (var i = 1; i < args.length; i++) {\n styles += handleInterpolation(mergedProps, registered, args[i]);\n\n if (stringMode) {\n var templateStringsArr = strings;\n\n if (templateStringsArr[i] === undefined) {\n console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);\n }\n\n styles += templateStringsArr[i];\n }\n } // using a global regex with .exec is stateful so lastIndex has to be reset each time\n\n\n labelPattern.lastIndex = 0;\n var identifierName = '';\n var match; // https://esbench.com/bench/5b809c2cf2949800a0f61fb5\n\n while ((match = labelPattern.exec(styles)) !== null) {\n identifierName += '-' + match[1];\n }\n\n var name = hashString(styles) + identifierName;\n\n {\n var devStyles = {\n name: name,\n styles: styles,\n next: cursor,\n toString: function toString() {\n return \"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).\";\n }\n };\n return devStyles;\n }\n}\n\nexport { serializeStyles };\n", "import * as React from 'react';\n\nvar syncFallback = function syncFallback(create) {\n return create();\n};\n\nvar useInsertionEffect = React['useInsertion' + 'Effect'] ? React['useInsertion' + 'Effect'] : false;\nvar useInsertionEffectAlwaysWithSyncFallback = useInsertionEffect || syncFallback;\nvar useInsertionEffectWithLayoutFallback = useInsertionEffect || React.useLayoutEffect;\n\nexport { useInsertionEffectAlwaysWithSyncFallback, useInsertionEffectWithLayoutFallback };\n", "import { h as hasOwn, E as Emotion, c as createEmotionProps, w as withEmotionCache, T as ThemeContext } from './emotion-element-489459f2.browser.development.esm.js';\nexport { C as CacheProvider, T as ThemeContext, a as ThemeProvider, _ as __unsafe_useEmotionCache, u as useTheme, w as withEmotionCache, b as withTheme } from './emotion-element-489459f2.browser.development.esm.js';\nimport * as React from 'react';\nimport { insertStyles, registerStyles, getRegisteredStyles } from '@emotion/utils';\nimport { useInsertionEffectWithLayoutFallback, useInsertionEffectAlwaysWithSyncFallback } from '@emotion/use-insertion-effect-with-fallbacks';\nimport { serializeStyles } from '@emotion/serialize';\nimport '@emotion/cache';\nimport '@babel/runtime/helpers/extends';\nimport '@emotion/weak-memoize';\nimport '../_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.esm.js';\nimport 'hoist-non-react-statics';\n\nvar isDevelopment = true;\n\nvar pkg = {\n\tname: \"@emotion/react\",\n\tversion: \"11.14.0\",\n\tmain: \"dist/emotion-react.cjs.js\",\n\tmodule: \"dist/emotion-react.esm.js\",\n\ttypes: \"dist/emotion-react.cjs.d.ts\",\n\texports: {\n\t\t\".\": {\n\t\t\ttypes: {\n\t\t\t\t\"import\": \"./dist/emotion-react.cjs.mjs\",\n\t\t\t\t\"default\": \"./dist/emotion-react.cjs.js\"\n\t\t\t},\n\t\t\tdevelopment: {\n\t\t\t\t\"edge-light\": {\n\t\t\t\t\tmodule: \"./dist/emotion-react.development.edge-light.esm.js\",\n\t\t\t\t\t\"import\": \"./dist/emotion-react.development.edge-light.cjs.mjs\",\n\t\t\t\t\t\"default\": \"./dist/emotion-react.development.edge-light.cjs.js\"\n\t\t\t\t},\n\t\t\t\tworker: {\n\t\t\t\t\tmodule: \"./dist/emotion-react.development.edge-light.esm.js\",\n\t\t\t\t\t\"import\": \"./dist/emotion-react.development.edge-light.cjs.mjs\",\n\t\t\t\t\t\"default\": \"./dist/emotion-react.development.edge-light.cjs.js\"\n\t\t\t\t},\n\t\t\t\tworkerd: {\n\t\t\t\t\tmodule: \"./dist/emotion-react.development.edge-light.esm.js\",\n\t\t\t\t\t\"import\": \"./dist/emotion-react.development.edge-light.cjs.mjs\",\n\t\t\t\t\t\"default\": \"./dist/emotion-react.development.edge-light.cjs.js\"\n\t\t\t\t},\n\t\t\t\tbrowser: {\n\t\t\t\t\tmodule: \"./dist/emotion-react.browser.development.esm.js\",\n\t\t\t\t\t\"import\": \"./dist/emotion-react.browser.development.cjs.mjs\",\n\t\t\t\t\t\"default\": \"./dist/emotion-react.browser.development.cjs.js\"\n\t\t\t\t},\n\t\t\t\tmodule: \"./dist/emotion-react.development.esm.js\",\n\t\t\t\t\"import\": \"./dist/emotion-react.development.cjs.mjs\",\n\t\t\t\t\"default\": \"./dist/emotion-react.development.cjs.js\"\n\t\t\t},\n\t\t\t\"edge-light\": {\n\t\t\t\tmodule: \"./dist/emotion-react.edge-light.esm.js\",\n\t\t\t\t\"import\": \"./dist/emotion-react.edge-light.cjs.mjs\",\n\t\t\t\t\"default\": \"./dist/emotion-react.edge-light.cjs.js\"\n\t\t\t},\n\t\t\tworker: {\n\t\t\t\tmodule: \"./dist/emotion-react.edge-light.esm.js\",\n\t\t\t\t\"import\": \"./dist/emotion-react.edge-light.cjs.mjs\",\n\t\t\t\t\"default\": \"./dist/emotion-react.edge-light.cjs.js\"\n\t\t\t},\n\t\t\tworkerd: {\n\t\t\t\tmodule: \"./dist/emotion-react.edge-light.esm.js\",\n\t\t\t\t\"import\": \"./dist/emotion-react.edge-light.cjs.mjs\",\n\t\t\t\t\"default\": \"./dist/emotion-react.edge-light.cjs.js\"\n\t\t\t},\n\t\t\tbrowser: {\n\t\t\t\tmodule: \"./dist/emotion-react.browser.esm.js\",\n\t\t\t\t\"import\": \"./dist/emotion-react.browser.cjs.mjs\",\n\t\t\t\t\"default\": \"./dist/emotion-react.browser.cjs.js\"\n\t\t\t},\n\t\t\tmodule: \"./dist/emotion-react.esm.js\",\n\t\t\t\"import\": \"./dist/emotion-react.cjs.mjs\",\n\t\t\t\"default\": \"./dist/emotion-react.cjs.js\"\n\t\t},\n\t\t\"./jsx-runtime\": {\n\t\t\ttypes: {\n\t\t\t\t\"import\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs\",\n\t\t\t\t\"default\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js\"\n\t\t\t},\n\t\t\tdevelopment: {\n\t\t\t\t\"edge-light\": {\n\t\t\t\t\tmodule: \"./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.esm.js\",\n\t\t\t\t\t\"import\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.mjs\",\n\t\t\t\t\t\"default\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.js\"\n\t\t\t\t},\n\t\t\t\tworker: {\n\t\t\t\t\tmodule: \"./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.esm.js\",\n\t\t\t\t\t\"import\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.mjs\",\n\t\t\t\t\t\"default\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.js\"\n\t\t\t\t},\n\t\t\t\tworkerd: {\n\t\t\t\t\tmodule: \"./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.esm.js\",\n\t\t\t\t\t\"import\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.mjs\",\n\t\t\t\t\t\"default\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.js\"\n\t\t\t\t},\n\t\t\t\tbrowser: {\n\t\t\t\t\tmodule: \"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.development.esm.js\",\n\t\t\t\t\t\"import\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.development.cjs.mjs\",\n\t\t\t\t\t\"default\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.development.cjs.js\"\n\t\t\t\t},\n\t\t\t\tmodule: \"./jsx-runtime/dist/emotion-react-jsx-runtime.development.esm.js\",\n\t\t\t\t\"import\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.development.cjs.mjs\",\n\t\t\t\t\"default\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.development.cjs.js\"\n\t\t\t},\n\t\t\t\"edge-light\": {\n\t\t\t\tmodule: \"./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.esm.js\",\n\t\t\t\t\"import\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.mjs\",\n\t\t\t\t\"default\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.js\"\n\t\t\t},\n\t\t\tworker: {\n\t\t\t\tmodule: \"./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.esm.js\",\n\t\t\t\t\"import\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.mjs\",\n\t\t\t\t\"default\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.js\"\n\t\t\t},\n\t\t\tworkerd: {\n\t\t\t\tmodule: \"./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.esm.js\",\n\t\t\t\t\"import\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.mjs\",\n\t\t\t\t\"default\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.js\"\n\t\t\t},\n\t\t\tbrowser: {\n\t\t\t\tmodule: \"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js\",\n\t\t\t\t\"import\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.cjs.mjs\",\n\t\t\t\t\"default\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.cjs.js\"\n\t\t\t},\n\t\t\tmodule: \"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js\",\n\t\t\t\"import\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs\",\n\t\t\t\"default\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js\"\n\t\t},\n\t\t\"./_isolated-hnrs\": {\n\t\t\ttypes: {\n\t\t\t\t\"import\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs\",\n\t\t\t\t\"default\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js\"\n\t\t\t},\n\t\t\tdevelopment: {\n\t\t\t\t\"edge-light\": {\n\t\t\t\t\tmodule: \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.esm.js\",\n\t\t\t\t\t\"import\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.mjs\",\n\t\t\t\t\t\"default\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.js\"\n\t\t\t\t},\n\t\t\t\tworker: {\n\t\t\t\t\tmodule: \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.esm.js\",\n\t\t\t\t\t\"import\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.mjs\",\n\t\t\t\t\t\"default\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.js\"\n\t\t\t\t},\n\t\t\t\tworkerd: {\n\t\t\t\t\tmodule: \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.esm.js\",\n\t\t\t\t\t\"import\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.mjs\",\n\t\t\t\t\t\"default\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.js\"\n\t\t\t\t},\n\t\t\t\tbrowser: {\n\t\t\t\t\tmodule: \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.esm.js\",\n\t\t\t\t\t\"import\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.cjs.mjs\",\n\t\t\t\t\t\"default\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.cjs.js\"\n\t\t\t\t},\n\t\t\t\tmodule: \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.esm.js\",\n\t\t\t\t\"import\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.cjs.mjs\",\n\t\t\t\t\"default\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.cjs.js\"\n\t\t\t},\n\t\t\t\"edge-light\": {\n\t\t\t\tmodule: \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.esm.js\",\n\t\t\t\t\"import\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.mjs\",\n\t\t\t\t\"default\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.js\"\n\t\t\t},\n\t\t\tworker: {\n\t\t\t\tmodule: \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.esm.js\",\n\t\t\t\t\"import\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.mjs\",\n\t\t\t\t\"default\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.js\"\n\t\t\t},\n\t\t\tworkerd: {\n\t\t\t\tmodule: \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.esm.js\",\n\t\t\t\t\"import\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.mjs\",\n\t\t\t\t\"default\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.js\"\n\t\t\t},\n\t\t\tbrowser: {\n\t\t\t\tmodule: \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js\",\n\t\t\t\t\"import\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.cjs.mjs\",\n\t\t\t\t\"default\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.cjs.js\"\n\t\t\t},\n\t\t\tmodule: \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js\",\n\t\t\t\"import\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs\",\n\t\t\t\"default\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js\"\n\t\t},\n\t\t\"./jsx-dev-runtime\": {\n\t\t\ttypes: {\n\t\t\t\t\"import\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs\",\n\t\t\t\t\"default\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js\"\n\t\t\t},\n\t\t\tdevelopment: {\n\t\t\t\t\"edge-light\": {\n\t\t\t\t\tmodule: \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.esm.js\",\n\t\t\t\t\t\"import\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.mjs\",\n\t\t\t\t\t\"default\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.js\"\n\t\t\t\t},\n\t\t\t\tworker: {\n\t\t\t\t\tmodule: \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.esm.js\",\n\t\t\t\t\t\"import\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.mjs\",\n\t\t\t\t\t\"default\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.js\"\n\t\t\t\t},\n\t\t\t\tworkerd: {\n\t\t\t\t\tmodule: \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.esm.js\",\n\t\t\t\t\t\"import\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.mjs\",\n\t\t\t\t\t\"default\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.js\"\n\t\t\t\t},\n\t\t\t\tbrowser: {\n\t\t\t\t\tmodule: \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.development.esm.js\",\n\t\t\t\t\t\"import\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.development.cjs.mjs\",\n\t\t\t\t\t\"default\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.development.cjs.js\"\n\t\t\t\t},\n\t\t\t\tmodule: \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.esm.js\",\n\t\t\t\t\"import\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.cjs.mjs\",\n\t\t\t\t\"default\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.cjs.js\"\n\t\t\t},\n\t\t\t\"edge-light\": {\n\t\t\t\tmodule: \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.esm.js\",\n\t\t\t\t\"import\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.mjs\",\n\t\t\t\t\"default\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.js\"\n\t\t\t},\n\t\t\tworker: {\n\t\t\t\tmodule: \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.esm.js\",\n\t\t\t\t\"import\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.mjs\",\n\t\t\t\t\"default\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.js\"\n\t\t\t},\n\t\t\tworkerd: {\n\t\t\t\tmodule: \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.esm.js\",\n\t\t\t\t\"import\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.mjs\",\n\t\t\t\t\"default\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.js\"\n\t\t\t},\n\t\t\tbrowser: {\n\t\t\t\tmodule: \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js\",\n\t\t\t\t\"import\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.cjs.mjs\",\n\t\t\t\t\"default\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.cjs.js\"\n\t\t\t},\n\t\t\tmodule: \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js\",\n\t\t\t\"import\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs\",\n\t\t\t\"default\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js\"\n\t\t},\n\t\t\"./package.json\": \"./package.json\",\n\t\t\"./types/css-prop\": \"./types/css-prop.d.ts\",\n\t\t\"./macro\": {\n\t\t\ttypes: {\n\t\t\t\t\"import\": \"./macro.d.mts\",\n\t\t\t\t\"default\": \"./macro.d.ts\"\n\t\t\t},\n\t\t\t\"default\": \"./macro.js\"\n\t\t}\n\t},\n\timports: {\n\t\t\"#is-development\": {\n\t\t\tdevelopment: \"./src/conditions/true.ts\",\n\t\t\t\"default\": \"./src/conditions/false.ts\"\n\t\t},\n\t\t\"#is-browser\": {\n\t\t\t\"edge-light\": \"./src/conditions/false.ts\",\n\t\t\tworkerd: \"./src/conditions/false.ts\",\n\t\t\tworker: \"./src/conditions/false.ts\",\n\t\t\tbrowser: \"./src/conditions/true.ts\",\n\t\t\t\"default\": \"./src/conditions/is-browser.ts\"\n\t\t}\n\t},\n\tfiles: [\n\t\t\"src\",\n\t\t\"dist\",\n\t\t\"jsx-runtime\",\n\t\t\"jsx-dev-runtime\",\n\t\t\"_isolated-hnrs\",\n\t\t\"types/css-prop.d.ts\",\n\t\t\"macro.*\"\n\t],\n\tsideEffects: false,\n\tauthor: \"Emotion Contributors\",\n\tlicense: \"MIT\",\n\tscripts: {\n\t\t\"test:typescript\": \"dtslint types\"\n\t},\n\tdependencies: {\n\t\t\"@babel/runtime\": \"^7.18.3\",\n\t\t\"@emotion/babel-plugin\": \"^11.13.5\",\n\t\t\"@emotion/cache\": \"^11.14.0\",\n\t\t\"@emotion/serialize\": \"^1.3.3\",\n\t\t\"@emotion/use-insertion-effect-with-fallbacks\": \"^1.2.0\",\n\t\t\"@emotion/utils\": \"^1.4.2\",\n\t\t\"@emotion/weak-memoize\": \"^0.4.0\",\n\t\t\"hoist-non-react-statics\": \"^3.3.1\"\n\t},\n\tpeerDependencies: {\n\t\treact: \">=16.8.0\"\n\t},\n\tpeerDependenciesMeta: {\n\t\t\"@types/react\": {\n\t\t\toptional: true\n\t\t}\n\t},\n\tdevDependencies: {\n\t\t\"@definitelytyped/dtslint\": \"0.0.112\",\n\t\t\"@emotion/css\": \"11.13.5\",\n\t\t\"@emotion/css-prettifier\": \"1.2.0\",\n\t\t\"@emotion/server\": \"11.11.0\",\n\t\t\"@emotion/styled\": \"11.14.0\",\n\t\t\"@types/hoist-non-react-statics\": \"^3.3.5\",\n\t\t\"html-tag-names\": \"^1.1.2\",\n\t\treact: \"16.14.0\",\n\t\t\"svg-tag-names\": \"^1.1.1\",\n\t\ttypescript: \"^5.4.5\"\n\t},\n\trepository: \"https://github.com/emotion-js/emotion/tree/main/packages/react\",\n\tpublishConfig: {\n\t\taccess: \"public\"\n\t},\n\t\"umd:main\": \"dist/emotion-react.umd.min.js\",\n\tpreconstruct: {\n\t\tentrypoints: [\n\t\t\t\"./index.ts\",\n\t\t\t\"./jsx-runtime.ts\",\n\t\t\t\"./jsx-dev-runtime.ts\",\n\t\t\t\"./_isolated-hnrs.ts\"\n\t\t],\n\t\tumdName: \"emotionReact\",\n\t\texports: {\n\t\t\textra: {\n\t\t\t\t\"./types/css-prop\": \"./types/css-prop.d.ts\",\n\t\t\t\t\"./macro\": {\n\t\t\t\t\ttypes: {\n\t\t\t\t\t\t\"import\": \"./macro.d.mts\",\n\t\t\t\t\t\t\"default\": \"./macro.d.ts\"\n\t\t\t\t\t},\n\t\t\t\t\t\"default\": \"./macro.js\"\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n};\n\nvar jsx = function jsx(type, props) {\n // eslint-disable-next-line prefer-rest-params\n var args = arguments;\n\n if (props == null || !hasOwn.call(props, 'css')) {\n return React.createElement.apply(undefined, args);\n }\n\n var argsLength = args.length;\n var createElementArgArray = new Array(argsLength);\n createElementArgArray[0] = Emotion;\n createElementArgArray[1] = createEmotionProps(type, props);\n\n for (var i = 2; i < argsLength; i++) {\n createElementArgArray[i] = args[i];\n }\n\n return React.createElement.apply(null, createElementArgArray);\n};\n\n(function (_jsx) {\n var JSX;\n\n (function (_JSX) {})(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));\n})(jsx || (jsx = {}));\n\nvar warnedAboutCssPropForGlobal = false; // maintain place over rerenders.\n// initial render from browser, insertBefore context.sheet.tags[0] or if a style hasn't been inserted there yet, appendChild\n// initial client-side render from SSR, use place of hydrating tag\n\nvar Global = /* #__PURE__ */withEmotionCache(function (props, cache) {\n if (!warnedAboutCssPropForGlobal && ( // check for className as well since the user is\n // probably using the custom createElement which\n // means it will be turned into a className prop\n // I don't really want to add it to the type since it shouldn't be used\n 'className' in props && props.className || 'css' in props && props.css)) {\n console.error(\"It looks like you're using the css prop on Global, did you mean to use the styles prop instead?\");\n warnedAboutCssPropForGlobal = true;\n }\n\n var styles = props.styles;\n var serialized = serializeStyles([styles], undefined, React.useContext(ThemeContext));\n // but it is based on a constant that will never change at runtime\n // it's effectively like having two implementations and switching them out\n // so it's not actually breaking anything\n\n\n var sheetRef = React.useRef();\n useInsertionEffectWithLayoutFallback(function () {\n var key = cache.key + \"-global\"; // use case of https://github.com/emotion-js/emotion/issues/2675\n\n var sheet = new cache.sheet.constructor({\n key: key,\n nonce: cache.sheet.nonce,\n container: cache.sheet.container,\n speedy: cache.sheet.isSpeedy\n });\n var rehydrating = false;\n var node = document.querySelector(\"style[data-emotion=\\\"\" + key + \" \" + serialized.name + \"\\\"]\");\n\n if (cache.sheet.tags.length) {\n sheet.before = cache.sheet.tags[0];\n }\n\n if (node !== null) {\n rehydrating = true; // clear the hash so this node won't be recognizable as rehydratable by other s\n\n node.setAttribute('data-emotion', key);\n sheet.hydrate([node]);\n }\n\n sheetRef.current = [sheet, rehydrating];\n return function () {\n sheet.flush();\n };\n }, [cache]);\n useInsertionEffectWithLayoutFallback(function () {\n var sheetRefCurrent = sheetRef.current;\n var sheet = sheetRefCurrent[0],\n rehydrating = sheetRefCurrent[1];\n\n if (rehydrating) {\n sheetRefCurrent[1] = false;\n return;\n }\n\n if (serialized.next !== undefined) {\n // insert keyframes\n insertStyles(cache, serialized.next, true);\n }\n\n if (sheet.tags.length) {\n // if this doesn't exist then it will be null so the style element will be appended\n var element = sheet.tags[sheet.tags.length - 1].nextElementSibling;\n sheet.before = element;\n sheet.flush();\n }\n\n cache.insert(\"\", serialized, sheet, false);\n }, [cache, serialized.name]);\n return null;\n});\n\n{\n Global.displayName = 'EmotionGlobal';\n}\n\nfunction css() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return serializeStyles(args);\n}\n\nfunction keyframes() {\n var insertable = css.apply(void 0, arguments);\n var name = \"animation-\" + insertable.name;\n return {\n name: name,\n styles: \"@keyframes \" + name + \"{\" + insertable.styles + \"}\",\n anim: 1,\n toString: function toString() {\n return \"_EMO_\" + this.name + \"_\" + this.styles + \"_EMO_\";\n }\n };\n}\n\nvar classnames = function classnames(args) {\n var len = args.length;\n var i = 0;\n var cls = '';\n\n for (; i < len; i++) {\n var arg = args[i];\n if (arg == null) continue;\n var toAdd = void 0;\n\n switch (typeof arg) {\n case 'boolean':\n break;\n\n case 'object':\n {\n if (Array.isArray(arg)) {\n toAdd = classnames(arg);\n } else {\n if (arg.styles !== undefined && arg.name !== undefined) {\n console.error('You have passed styles created with `css` from `@emotion/react` package to the `cx`.\\n' + '`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from component.');\n }\n\n toAdd = '';\n\n for (var k in arg) {\n if (arg[k] && k) {\n toAdd && (toAdd += ' ');\n toAdd += k;\n }\n }\n }\n\n break;\n }\n\n default:\n {\n toAdd = arg;\n }\n }\n\n if (toAdd) {\n cls && (cls += ' ');\n cls += toAdd;\n }\n }\n\n return cls;\n};\n\nfunction merge(registered, css, className) {\n var registeredStyles = [];\n var rawClassName = getRegisteredStyles(registered, registeredStyles, className);\n\n if (registeredStyles.length < 2) {\n return className;\n }\n\n return rawClassName + css(registeredStyles);\n}\n\nvar Insertion = function Insertion(_ref) {\n var cache = _ref.cache,\n serializedArr = _ref.serializedArr;\n useInsertionEffectAlwaysWithSyncFallback(function () {\n\n for (var i = 0; i < serializedArr.length; i++) {\n insertStyles(cache, serializedArr[i], false);\n }\n });\n\n return null;\n};\n\nvar ClassNames = /* #__PURE__ */withEmotionCache(function (props, cache) {\n var hasRendered = false;\n var serializedArr = [];\n\n var css = function css() {\n if (hasRendered && isDevelopment) {\n throw new Error('css can only be used during render');\n }\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var serialized = serializeStyles(args, cache.registered);\n serializedArr.push(serialized); // registration has to happen here as the result of this might get consumed by `cx`\n\n registerStyles(cache, serialized, false);\n return cache.key + \"-\" + serialized.name;\n };\n\n var cx = function cx() {\n if (hasRendered && isDevelopment) {\n throw new Error('cx can only be used during render');\n }\n\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n return merge(cache.registered, css, classnames(args));\n };\n\n var content = {\n css: css,\n cx: cx,\n theme: React.useContext(ThemeContext)\n };\n var ele = props.children(content);\n hasRendered = true;\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Insertion, {\n cache: cache,\n serializedArr: serializedArr\n }), ele);\n});\n\n{\n ClassNames.displayName = 'EmotionClassNames';\n}\n\n{\n var isBrowser = typeof document !== 'undefined'; // #1727, #2905 for some reason Jest and Vitest evaluate modules twice if some consuming module gets mocked\n\n var isTestEnv = typeof jest !== 'undefined' || typeof vi !== 'undefined';\n\n if (isBrowser && !isTestEnv) {\n // globalThis has wide browser support - https://caniuse.com/?search=globalThis, Node.js 12 and later\n var globalContext = typeof globalThis !== 'undefined' ? globalThis // eslint-disable-line no-undef\n : isBrowser ? window : global;\n var globalKey = \"__EMOTION_REACT_\" + pkg.version.split('.')[0] + \"__\";\n\n if (globalContext[globalKey]) {\n console.warn('You are loading @emotion/react when it is already loaded. Running ' + 'multiple instances may cause problems. This can happen if multiple ' + 'versions are used, or if multiple builds of the same version are ' + 'used.');\n }\n\n globalContext[globalKey] = true;\n }\n}\n\nexport { ClassNames, Global, jsx as createElement, css, jsx, keyframes };\n", "import _extends from '@babel/runtime/helpers/esm/extends';\nimport { withEmotionCache, ThemeContext } from '@emotion/react';\nimport { serializeStyles } from '@emotion/serialize';\nimport { useInsertionEffectAlwaysWithSyncFallback } from '@emotion/use-insertion-effect-with-fallbacks';\nimport { getRegisteredStyles, registerStyles, insertStyles } from '@emotion/utils';\nimport * as React from 'react';\nimport isPropValid from '@emotion/is-prop-valid';\n\nvar isDevelopment = true;\n\nvar testOmitPropsOnStringTag = isPropValid;\n\nvar testOmitPropsOnComponent = function testOmitPropsOnComponent(key) {\n return key !== 'theme';\n};\n\nvar getDefaultShouldForwardProp = function getDefaultShouldForwardProp(tag) {\n return typeof tag === 'string' && // 96 is one less than the char code\n // for \"a\" so this is checking that\n // it's a lowercase character\n tag.charCodeAt(0) > 96 ? testOmitPropsOnStringTag : testOmitPropsOnComponent;\n};\nvar composeShouldForwardProps = function composeShouldForwardProps(tag, options, isReal) {\n var shouldForwardProp;\n\n if (options) {\n var optionsShouldForwardProp = options.shouldForwardProp;\n shouldForwardProp = tag.__emotion_forwardProp && optionsShouldForwardProp ? function (propName) {\n return tag.__emotion_forwardProp(propName) && optionsShouldForwardProp(propName);\n } : optionsShouldForwardProp;\n }\n\n if (typeof shouldForwardProp !== 'function' && isReal) {\n shouldForwardProp = tag.__emotion_forwardProp;\n }\n\n return shouldForwardProp;\n};\n\nvar ILLEGAL_ESCAPE_SEQUENCE_ERROR = \"You have illegal escape sequence in your template literal, most likely inside content's property value.\\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \\\"content: '\\\\00d7';\\\" should become \\\"content: '\\\\\\\\00d7';\\\".\\nYou can read more about this here:\\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences\";\n\nvar Insertion = function Insertion(_ref) {\n var cache = _ref.cache,\n serialized = _ref.serialized,\n isStringTag = _ref.isStringTag;\n registerStyles(cache, serialized, isStringTag);\n useInsertionEffectAlwaysWithSyncFallback(function () {\n return insertStyles(cache, serialized, isStringTag);\n });\n\n return null;\n};\n\nvar createStyled = function createStyled(tag, options) {\n {\n if (tag === undefined) {\n throw new Error('You are trying to create a styled element with an undefined component.\\nYou may have forgotten to import it.');\n }\n }\n\n var isReal = tag.__emotion_real === tag;\n var baseTag = isReal && tag.__emotion_base || tag;\n var identifierName;\n var targetClassName;\n\n if (options !== undefined) {\n identifierName = options.label;\n targetClassName = options.target;\n }\n\n var shouldForwardProp = composeShouldForwardProps(tag, options, isReal);\n var defaultShouldForwardProp = shouldForwardProp || getDefaultShouldForwardProp(baseTag);\n var shouldUseAs = !defaultShouldForwardProp('as');\n return function () {\n // eslint-disable-next-line prefer-rest-params\n var args = arguments;\n var styles = isReal && tag.__emotion_styles !== undefined ? tag.__emotion_styles.slice(0) : [];\n\n if (identifierName !== undefined) {\n styles.push(\"label:\" + identifierName + \";\");\n }\n\n if (args[0] == null || args[0].raw === undefined) {\n // eslint-disable-next-line prefer-spread\n styles.push.apply(styles, args);\n } else {\n var templateStringsArr = args[0];\n\n if (templateStringsArr[0] === undefined) {\n console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);\n }\n\n styles.push(templateStringsArr[0]);\n var len = args.length;\n var i = 1;\n\n for (; i < len; i++) {\n if (templateStringsArr[i] === undefined) {\n console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);\n }\n\n styles.push(args[i], templateStringsArr[i]);\n }\n }\n\n var Styled = withEmotionCache(function (props, cache, ref) {\n var FinalTag = shouldUseAs && props.as || baseTag;\n var className = '';\n var classInterpolations = [];\n var mergedProps = props;\n\n if (props.theme == null) {\n mergedProps = {};\n\n for (var key in props) {\n mergedProps[key] = props[key];\n }\n\n mergedProps.theme = React.useContext(ThemeContext);\n }\n\n if (typeof props.className === 'string') {\n className = getRegisteredStyles(cache.registered, classInterpolations, props.className);\n } else if (props.className != null) {\n className = props.className + \" \";\n }\n\n var serialized = serializeStyles(styles.concat(classInterpolations), cache.registered, mergedProps);\n className += cache.key + \"-\" + serialized.name;\n\n if (targetClassName !== undefined) {\n className += \" \" + targetClassName;\n }\n\n var finalShouldForwardProp = shouldUseAs && shouldForwardProp === undefined ? getDefaultShouldForwardProp(FinalTag) : defaultShouldForwardProp;\n var newProps = {};\n\n for (var _key in props) {\n if (shouldUseAs && _key === 'as') continue;\n\n if (finalShouldForwardProp(_key)) {\n newProps[_key] = props[_key];\n }\n }\n\n newProps.className = className;\n\n if (ref) {\n newProps.ref = ref;\n }\n\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Insertion, {\n cache: cache,\n serialized: serialized,\n isStringTag: typeof FinalTag === 'string'\n }), /*#__PURE__*/React.createElement(FinalTag, newProps));\n });\n Styled.displayName = identifierName !== undefined ? identifierName : \"Styled(\" + (typeof baseTag === 'string' ? baseTag : baseTag.displayName || baseTag.name || 'Component') + \")\";\n Styled.defaultProps = tag.defaultProps;\n Styled.__emotion_real = Styled;\n Styled.__emotion_base = baseTag;\n Styled.__emotion_styles = styles;\n Styled.__emotion_forwardProp = shouldForwardProp;\n Object.defineProperty(Styled, 'toString', {\n value: function value() {\n if (targetClassName === undefined && isDevelopment) {\n return 'NO_COMPONENT_SELECTOR';\n }\n\n return \".\" + targetClassName;\n }\n });\n\n Styled.withComponent = function (nextTag, nextOptions) {\n var newStyled = createStyled(nextTag, _extends({}, options, nextOptions, {\n shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)\n }));\n return newStyled.apply(void 0, styles);\n };\n\n return Styled;\n };\n};\n\nexport { createStyled as default };\n", "import memoize from '@emotion/memoize';\n\n// eslint-disable-next-line no-undef\nvar reactPropsRegex = /^((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|fetchpriority|fetchPriority|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)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23\n\nvar isPropValid = /* #__PURE__ */memoize(function (prop) {\n return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111\n /* o */\n && prop.charCodeAt(1) === 110\n /* n */\n && prop.charCodeAt(2) < 91;\n}\n/* Z+1 */\n);\n\nexport { isPropValid as default };\n", "import createStyled from '../base/dist/emotion-styled-base.browser.development.esm.js';\nimport '@babel/runtime/helpers/extends';\nimport '@emotion/react';\nimport '@emotion/serialize';\nimport '@emotion/use-insertion-effect-with-fallbacks';\nimport '@emotion/utils';\nimport 'react';\nimport '@emotion/is-prop-valid';\n\nvar tags = ['a', 'abbr', 'address', 'area', 'article', 'aside', 'audio', 'b', 'base', 'bdi', 'bdo', 'big', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'cite', 'code', 'col', 'colgroup', 'data', 'datalist', 'dd', 'del', 'details', 'dfn', 'dialog', 'div', 'dl', 'dt', 'em', 'embed', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'iframe', 'img', 'input', 'ins', 'kbd', 'keygen', 'label', 'legend', 'li', 'link', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meta', 'meter', 'nav', 'noscript', 'object', 'ol', 'optgroup', 'option', 'output', 'p', 'param', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'script', 'section', 'select', 'small', 'source', 'span', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'textarea', 'tfoot', 'th', 'thead', 'time', 'title', 'tr', 'track', 'u', 'ul', 'var', 'video', 'wbr', // SVG\n'circle', 'clipPath', 'defs', 'ellipse', 'foreignObject', 'g', 'image', 'line', 'linearGradient', 'mask', 'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', 'stop', 'svg', 'text', 'tspan'];\n\n// bind it to avoid mutating the original function\nvar newStyled = createStyled.bind(null);\ntags.forEach(function (tagName) {\n newStyled[tagName] = newStyled(tagName);\n});\n\nexport { newStyled as default };\n", "'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { CacheProvider } from '@emotion/react';\nimport createCache from '@emotion/cache';\nimport { StyleSheet } from '@emotion/sheet';\n\n// To fix [Jest performance](https://github.com/mui/material-ui/issues/45638).\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst cacheMap = new Map();\n\n// Need to add a private variable to test the generated CSS from Emotion, this is the simplest way to do it.\n// We can't test the CSS from `style` tag easily because the `speedy: true` (produce empty text content) is enabled by Emotion.\n// Even if we disable it, JSDOM needs extra configuration to be able to parse `@layer` CSS.\nexport const TEST_INTERNALS_DO_NOT_USE = {\n /**\n * to intercept the generated CSS before inserting to the style tag, so that we can check the generated CSS.\n *\n * let rule;\n * TEST_INTERNALS_DO_NOT_USE.insert = (...args) => {\n * rule = args[0];\n * };\n *\n * expect(rule).to.equal(...);\n */\n insert: undefined\n};\n\n// We might be able to remove this when this issue is fixed:\n// https://github.com/emotion-js/emotion/issues/2790\nconst createEmotionCache = (options, CustomSheet) => {\n const cache = createCache(options);\n\n // Do the same as https://github.com/emotion-js/emotion/blob/main/packages/cache/src/index.js#L238-L245\n cache.sheet = new CustomSheet({\n key: cache.key,\n nonce: cache.sheet.nonce,\n container: cache.sheet.container,\n speedy: cache.sheet.isSpeedy,\n prepend: cache.sheet.prepend,\n insertionPoint: cache.sheet.insertionPoint\n });\n return cache;\n};\nlet insertionPoint;\nif (typeof document === 'object') {\n // Use `insertionPoint` over `prepend`(deprecated) because it can be controlled for GlobalStyles injection order\n // For more information, see https://github.com/mui/material-ui/issues/44597\n insertionPoint = document.querySelector('[name=\"emotion-insertion-point\"]');\n if (!insertionPoint) {\n insertionPoint = document.createElement('meta');\n insertionPoint.setAttribute('name', 'emotion-insertion-point');\n insertionPoint.setAttribute('content', '');\n const head = document.querySelector('head');\n if (head) {\n head.prepend(insertionPoint);\n }\n }\n}\nfunction getCache(injectFirst, enableCssLayer) {\n if (injectFirst || enableCssLayer) {\n /**\n * This is for client-side apps only.\n * A custom sheet is required to make the GlobalStyles API injected above the insertion point.\n * This is because the [sheet](https://github.com/emotion-js/emotion/blob/main/packages/react/src/global.js#L94-L99) does not consume the options.\n */\n class MyStyleSheet extends StyleSheet {\n insert(rule, options) {\n if (TEST_INTERNALS_DO_NOT_USE.insert) {\n return TEST_INTERNALS_DO_NOT_USE.insert(rule, options);\n }\n if (this.key && this.key.endsWith('global')) {\n this.before = insertionPoint;\n }\n return super.insert(rule, options);\n }\n }\n const emotionCache = createEmotionCache({\n key: 'css',\n insertionPoint: injectFirst ? insertionPoint : undefined\n }, MyStyleSheet);\n if (enableCssLayer) {\n const prevInsert = emotionCache.insert;\n emotionCache.insert = (...args) => {\n if (!args[1].styles.startsWith('@layer')) {\n // avoid nested @layer\n args[1].styles = `@layer mui {${args[1].styles}}`;\n }\n return prevInsert(...args);\n };\n }\n return emotionCache;\n }\n return undefined;\n}\nexport default function StyledEngineProvider(props) {\n const {\n injectFirst,\n enableCssLayer,\n children\n } = props;\n const cache = React.useMemo(() => {\n const cacheKey = `${injectFirst}-${enableCssLayer}`;\n if (cacheMap.has(cacheKey)) {\n return cacheMap.get(cacheKey);\n }\n const fresh = getCache(injectFirst, enableCssLayer);\n cacheMap.set(cacheKey, fresh);\n return fresh;\n }, [injectFirst, enableCssLayer]);\n return cache ? /*#__PURE__*/_jsx(CacheProvider, {\n value: cache,\n children: children\n }) : children;\n}\nprocess.env.NODE_ENV !== \"production\" ? StyledEngineProvider.propTypes = {\n /**\n * Your component tree.\n */\n children: PropTypes.node,\n /**\n * If `true`, the styles are wrapped in `@layer mui`.\n * Learn more about [Cascade layers](https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/Styling_basics/Cascade_layers).\n */\n enableCssLayer: PropTypes.bool,\n /**\n * By default, the styles are injected last in the element of the page.\n * As a result, they gain more specificity than any other style sheet.\n * If you want to override MUI's styles, set this prop.\n */\n injectFirst: PropTypes.bool\n} : void 0;", "'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { Global } from '@emotion/react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction isEmpty(obj) {\n return obj === undefined || obj === null || Object.keys(obj).length === 0;\n}\nexport default function GlobalStyles(props) {\n const {\n styles,\n defaultTheme = {}\n } = props;\n const globalStyles = typeof styles === 'function' ? themeInput => styles(isEmpty(themeInput) ? defaultTheme : themeInput) : styles;\n return /*#__PURE__*/_jsx(Global, {\n styles: globalStyles\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? GlobalStyles.propTypes = {\n defaultTheme: PropTypes.object,\n styles: PropTypes.oneOfType([PropTypes.array, PropTypes.string, PropTypes.object, PropTypes.func])\n} : void 0;", "/**\n * @mui/styled-engine v7.0.2\n *\n * @license MIT\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use client';\n\n/* eslint-disable no-underscore-dangle */\nimport emStyled from '@emotion/styled';\nimport { serializeStyles as emSerializeStyles } from '@emotion/serialize';\nexport default function styled(tag, options) {\n const stylesFactory = emStyled(tag, options);\n if (process.env.NODE_ENV !== 'production') {\n return (...styles) => {\n const component = typeof tag === 'string' ? `\"${tag}\"` : 'component';\n if (styles.length === 0) {\n console.error([`MUI: Seems like you called \\`styled(${component})()\\` without a \\`style\\` argument.`, 'You must provide a `styles` argument: `styled(\"div\")(styleYouForgotToPass)`.'].join('\\n'));\n } else if (styles.some(style => style === undefined)) {\n console.error(`MUI: the styled(${component})(...args) API requires all its args to be defined.`);\n }\n return stylesFactory(...styles);\n };\n }\n return stylesFactory;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function internal_mutateStyles(tag, processor) {\n // Emotion attaches all the styles as `__emotion_styles`.\n // Ref: https://github.com/emotion-js/emotion/blob/16d971d0da229596d6bcc39d282ba9753c9ee7cf/packages/styled/src/base.js#L186\n if (Array.isArray(tag.__emotion_styles)) {\n tag.__emotion_styles = processor(tag.__emotion_styles);\n }\n}\n\n// Emotion only accepts an array, but we want to avoid allocations\nconst wrapper = [];\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function internal_serializeStyles(styles) {\n wrapper[0] = styles;\n return emSerializeStyles(wrapper);\n}\nexport { ThemeContext, keyframes, css } from '@emotion/react';\nexport { default as StyledEngineProvider } from \"./StyledEngineProvider/index.js\";\nexport { default as GlobalStyles } from \"./GlobalStyles/index.js\";", "'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { GlobalStyles as MuiGlobalStyles } from '@mui/styled-engine';\nimport useTheme from \"../useTheme/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction GlobalStyles({\n styles,\n themeId,\n defaultTheme = {}\n}) {\n const upperTheme = useTheme(defaultTheme);\n const globalStyles = typeof styles === 'function' ? styles(themeId ? upperTheme[themeId] || upperTheme : upperTheme) : styles;\n return /*#__PURE__*/_jsx(MuiGlobalStyles, {\n styles: globalStyles\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? GlobalStyles.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * @ignore\n */\n defaultTheme: PropTypes.object,\n /**\n * @ignore\n */\n styles: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.array, PropTypes.func, PropTypes.number, PropTypes.object, PropTypes.string, PropTypes.bool]),\n /**\n * @ignore\n */\n themeId: PropTypes.string\n} : void 0;\nexport default GlobalStyles;", "// Sorted ASC by size. That's important.\n// It can't be configured as it's used statically for propTypes.\nexport const breakpointKeys = ['xs', 'sm', 'md', 'lg', 'xl'];\nconst sortBreakpointsValues = values => {\n const breakpointsAsArray = Object.keys(values).map(key => ({\n key,\n val: values[key]\n })) || [];\n // Sort in ascending order\n breakpointsAsArray.sort((breakpoint1, breakpoint2) => breakpoint1.val - breakpoint2.val);\n return breakpointsAsArray.reduce((acc, obj) => {\n return {\n ...acc,\n [obj.key]: obj.val\n };\n }, {});\n};\n\n// Keep in mind that @media is inclusive by the CSS specification.\nexport default function createBreakpoints(breakpoints) {\n const {\n // The breakpoint **start** at this value.\n // For instance with the first breakpoint xs: [xs, sm).\n values = {\n xs: 0,\n // phone\n sm: 600,\n // tablet\n md: 900,\n // small laptop\n lg: 1200,\n // desktop\n xl: 1536 // large screen\n },\n unit = 'px',\n step = 5,\n ...other\n } = breakpoints;\n const sortedValues = sortBreakpointsValues(values);\n const keys = Object.keys(sortedValues);\n function up(key) {\n const value = typeof values[key] === 'number' ? values[key] : key;\n return `@media (min-width:${value}${unit})`;\n }\n function down(key) {\n const value = typeof values[key] === 'number' ? values[key] : key;\n return `@media (max-width:${value - step / 100}${unit})`;\n }\n function between(start, end) {\n const endIndex = keys.indexOf(end);\n return `@media (min-width:${typeof values[start] === 'number' ? values[start] : start}${unit}) and ` + `(max-width:${(endIndex !== -1 && typeof values[keys[endIndex]] === 'number' ? values[keys[endIndex]] : end) - step / 100}${unit})`;\n }\n function only(key) {\n if (keys.indexOf(key) + 1 < keys.length) {\n return between(key, keys[keys.indexOf(key) + 1]);\n }\n return up(key);\n }\n function not(key) {\n // handle first and last key separately, for better readability\n const keyIndex = keys.indexOf(key);\n if (keyIndex === 0) {\n return up(keys[1]);\n }\n if (keyIndex === keys.length - 1) {\n return down(keys[keyIndex]);\n }\n return between(key, keys[keys.indexOf(key) + 1]).replace('@media', '@media not all and');\n }\n return {\n keys,\n values: sortedValues,\n up,\n down,\n between,\n only,\n not,\n unit,\n ...other\n };\n}", "const shape = {\n borderRadius: 4\n};\nexport default shape;", "import { createUnarySpacing } from \"../spacing/index.js\";\n\n// The different signatures imply different meaning for their arguments that can't be expressed structurally.\n// We express the difference with variable names.\n\nexport default function createSpacing(spacingInput = 8,\n// Material Design layouts are visually balanced. Most measurements align to an 8dp grid, which aligns both spacing and the overall layout.\n// Smaller components, such as icons, can align to a 4dp grid.\n// https://m2.material.io/design/layout/understanding-layout.html\ntransform = createUnarySpacing({\n spacing: spacingInput\n})) {\n // Already transformed.\n if (spacingInput.mui) {\n return spacingInput;\n }\n const spacing = (...argsInput) => {\n if (process.env.NODE_ENV !== 'production') {\n if (!(argsInput.length <= 4)) {\n console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${argsInput.length}`);\n }\n }\n const args = argsInput.length === 0 ? [1] : argsInput;\n return args.map(argument => {\n const output = transform(argument);\n return typeof output === 'number' ? `${output}px` : output;\n }).join(' ');\n };\n spacing.mui = true;\n return spacing;\n}", "/**\n * A universal utility to style components with multiple color modes. Always use it from the theme object.\n * It works with:\n * - [Basic theme](https://mui.com/material-ui/customization/dark-mode/)\n * - [CSS theme variables](https://mui.com/material-ui/customization/css-theme-variables/overview/)\n * - Zero-runtime engine\n *\n * Tips: Use an array over object spread and place `theme.applyStyles()` last.\n *\n * With the styled function:\n * ✅ [{ background: '#e5e5e5' }, theme.applyStyles('dark', { background: '#1c1c1c' })]\n * 🚫 { background: '#e5e5e5', ...theme.applyStyles('dark', { background: '#1c1c1c' })}\n *\n * With the sx prop:\n * ✅ [{ background: '#e5e5e5' }, theme => theme.applyStyles('dark', { background: '#1c1c1c' })]\n * 🚫 { background: '#e5e5e5', ...theme => theme.applyStyles('dark', { background: '#1c1c1c' })}\n *\n * @example\n * 1. using with `styled`:\n * ```jsx\n * const Component = styled('div')(({ theme }) => [\n * { background: '#e5e5e5' },\n * theme.applyStyles('dark', {\n * background: '#1c1c1c',\n * color: '#fff',\n * }),\n * ]);\n * ```\n *\n * @example\n * 2. using with `sx` prop:\n * ```jsx\n * theme.applyStyles('dark', {\n * background: '#1c1c1c',\n * color: '#fff',\n * }),\n * ]}\n * />\n * ```\n *\n * @example\n * 3. theming a component:\n * ```jsx\n * extendTheme({\n * components: {\n * MuiButton: {\n * styleOverrides: {\n * root: ({ theme }) => [\n * { background: '#e5e5e5' },\n * theme.applyStyles('dark', {\n * background: '#1c1c1c',\n * color: '#fff',\n * }),\n * ],\n * },\n * }\n * }\n * })\n *```\n */\nexport default function applyStyles(key, styles) {\n // @ts-expect-error this is 'any' type\n const theme = this;\n if (theme.vars) {\n if (!theme.colorSchemes?.[key] || typeof theme.getColorSchemeSelector !== 'function') {\n return {};\n }\n // If CssVarsProvider is used as a provider, returns '*:where({selector}) &'\n let selector = theme.getColorSchemeSelector(key);\n if (selector === '&') {\n return styles;\n }\n if (selector.includes('data-') || selector.includes('.')) {\n // '*' is required as a workaround for Emotion issue (https://github.com/emotion-js/emotion/issues/2836)\n selector = `*:where(${selector.replace(/\\s*&$/, '')}) &`;\n }\n return {\n [selector]: styles\n };\n }\n if (theme.palette.mode === key) {\n return styles;\n }\n return {};\n}", "import deepmerge from '@mui/utils/deepmerge';\nimport createBreakpoints from \"../createBreakpoints/createBreakpoints.js\";\nimport cssContainerQueries from \"../cssContainerQueries/index.js\";\nimport shape from \"./shape.js\";\nimport createSpacing from \"./createSpacing.js\";\nimport styleFunctionSx from \"../styleFunctionSx/styleFunctionSx.js\";\nimport defaultSxConfig from \"../styleFunctionSx/defaultSxConfig.js\";\nimport applyStyles from \"./applyStyles.js\";\nfunction createTheme(options = {}, ...args) {\n const {\n breakpoints: breakpointsInput = {},\n palette: paletteInput = {},\n spacing: spacingInput,\n shape: shapeInput = {},\n ...other\n } = options;\n const breakpoints = createBreakpoints(breakpointsInput);\n const spacing = createSpacing(spacingInput);\n let muiTheme = deepmerge({\n breakpoints,\n direction: 'ltr',\n components: {},\n // Inject component definitions.\n palette: {\n mode: 'light',\n ...paletteInput\n },\n spacing,\n shape: {\n ...shape,\n ...shapeInput\n }\n }, other);\n muiTheme = cssContainerQueries(muiTheme);\n muiTheme.applyStyles = applyStyles;\n muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);\n muiTheme.unstable_sxConfig = {\n ...defaultSxConfig,\n ...other?.unstable_sxConfig\n };\n muiTheme.unstable_sx = function sx(props) {\n return styleFunctionSx({\n sx: props,\n theme: this\n });\n };\n return muiTheme;\n}\nexport default createTheme;", "'use client';\n\nimport * as React from 'react';\nimport { ThemeContext } from '@mui/styled-engine';\nfunction isObjectEmpty(obj) {\n return Object.keys(obj).length === 0;\n}\nfunction useTheme(defaultTheme = null) {\n const contextTheme = React.useContext(ThemeContext);\n return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme : contextTheme;\n}\nexport default useTheme;", "'use client';\n\nimport createTheme from \"../createTheme/index.js\";\nimport useThemeWithoutDefault from \"../useThemeWithoutDefault/index.js\";\nexport const systemDefaultTheme = createTheme();\nfunction useTheme(defaultTheme = systemDefaultTheme) {\n return useThemeWithoutDefault(defaultTheme);\n}\nexport default useTheme;", "import style from \"../style/index.js\";\nimport compose from \"../compose/index.js\";\nexport const displayPrint = style({\n prop: 'displayPrint',\n cssProperty: false,\n transform: value => ({\n '@media print': {\n display: value\n }\n })\n});\nexport const displayRaw = style({\n prop: 'display'\n});\nexport const overflow = style({\n prop: 'overflow'\n});\nexport const textOverflow = style({\n prop: 'textOverflow'\n});\nexport const visibility = style({\n prop: 'visibility'\n});\nexport const whiteSpace = style({\n prop: 'whiteSpace'\n});\nexport default compose(displayPrint, displayRaw, overflow, textOverflow, visibility, whiteSpace);", "import style from \"../style/index.js\";\nimport compose from \"../compose/index.js\";\nexport const flexBasis = style({\n prop: 'flexBasis'\n});\nexport const flexDirection = style({\n prop: 'flexDirection'\n});\nexport const flexWrap = style({\n prop: 'flexWrap'\n});\nexport const justifyContent = style({\n prop: 'justifyContent'\n});\nexport const alignItems = style({\n prop: 'alignItems'\n});\nexport const alignContent = style({\n prop: 'alignContent'\n});\nexport const order = style({\n prop: 'order'\n});\nexport const flex = style({\n prop: 'flex'\n});\nexport const flexGrow = style({\n prop: 'flexGrow'\n});\nexport const flexShrink = style({\n prop: 'flexShrink'\n});\nexport const alignSelf = style({\n prop: 'alignSelf'\n});\nexport const justifyItems = style({\n prop: 'justifyItems'\n});\nexport const justifySelf = style({\n prop: 'justifySelf'\n});\nconst flexbox = compose(flexBasis, flexDirection, flexWrap, justifyContent, alignItems, alignContent, order, flex, flexGrow, flexShrink, alignSelf, justifyItems, justifySelf);\nexport default flexbox;", "import style from \"../style/index.js\";\nimport compose from \"../compose/index.js\";\nexport const position = style({\n prop: 'position'\n});\nexport const zIndex = style({\n prop: 'zIndex',\n themeKey: 'zIndex'\n});\nexport const top = style({\n prop: 'top'\n});\nexport const right = style({\n prop: 'right'\n});\nexport const bottom = style({\n prop: 'bottom'\n});\nexport const left = style({\n prop: 'left'\n});\nexport default compose(position, zIndex, top, right, bottom, left);", "import style from \"../style/index.js\";\nconst boxShadow = style({\n prop: 'boxShadow',\n themeKey: 'shadows'\n});\nexport default boxShadow;", "import style from \"../style/index.js\";\nimport compose from \"../compose/index.js\";\nexport const fontFamily = style({\n prop: 'fontFamily',\n themeKey: 'typography'\n});\nexport const fontSize = style({\n prop: 'fontSize',\n themeKey: 'typography'\n});\nexport const fontStyle = style({\n prop: 'fontStyle',\n themeKey: 'typography'\n});\nexport const fontWeight = style({\n prop: 'fontWeight',\n themeKey: 'typography'\n});\nexport const letterSpacing = style({\n prop: 'letterSpacing'\n});\nexport const textTransform = style({\n prop: 'textTransform'\n});\nexport const lineHeight = style({\n prop: 'lineHeight'\n});\nexport const textAlign = style({\n prop: 'textAlign'\n});\nexport const typographyVariant = style({\n prop: 'typography',\n cssProperty: false,\n themeKey: 'typography'\n});\nconst typography = compose(typographyVariant, fontFamily, fontSize, fontStyle, fontWeight, letterSpacing, lineHeight, textAlign, textTransform);\nexport default typography;", "import borders from \"../borders/index.js\";\nimport display from \"../display/index.js\";\nimport flexbox from \"../flexbox/index.js\";\nimport grid from \"../cssGrid/index.js\";\nimport positions from \"../positions/index.js\";\nimport palette from \"../palette/index.js\";\nimport shadows from \"../shadows/index.js\";\nimport sizing from \"../sizing/index.js\";\nimport spacing from \"../spacing/index.js\";\nimport typography from \"../typography/index.js\";\nconst filterPropsMapping = {\n borders: borders.filterProps,\n display: display.filterProps,\n flexbox: flexbox.filterProps,\n grid: grid.filterProps,\n positions: positions.filterProps,\n palette: palette.filterProps,\n shadows: shadows.filterProps,\n sizing: sizing.filterProps,\n spacing: spacing.filterProps,\n typography: typography.filterProps\n};\nexport const styleFunctionMapping = {\n borders,\n display,\n flexbox,\n grid,\n positions,\n palette,\n shadows,\n sizing,\n spacing,\n typography\n};\nexport const propToStyleFunction = Object.keys(filterPropsMapping).reduce((acc, styleFnName) => {\n filterPropsMapping[styleFnName].forEach(propName => {\n acc[propName] = styleFunctionMapping[styleFnName];\n });\n return acc;\n}, {});\nfunction getThemeValue(prop, value, theme) {\n const inputProps = {\n [prop]: value,\n theme\n };\n const styleFunction = propToStyleFunction[prop];\n return styleFunction ? styleFunction(inputProps) : {\n [prop]: value\n };\n}\nexport default getThemeValue;", "'use client';\n\nimport PropTypes from 'prop-types';\nimport ClassNameGenerator from '@mui/utils/ClassNameGenerator';\nimport createBox from \"../createBox/index.js\";\nimport boxClasses from \"./boxClasses.js\";\nconst Box = createBox({\n defaultClassName: boxClasses.root,\n generateClassName: ClassNameGenerator.generate\n});\nprocess.env.NODE_ENV !== \"production\" ? Box.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * @ignore\n */\n children: PropTypes.node,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default Box;", "const defaultGenerator = componentName => componentName;\nconst createClassNameGenerator = () => {\n let generate = defaultGenerator;\n return {\n configure(generator) {\n generate = generator;\n },\n generate(componentName) {\n return generate(componentName);\n },\n reset() {\n generate = defaultGenerator;\n }\n };\n};\nconst ClassNameGenerator = createClassNameGenerator();\nexport default ClassNameGenerator;", "'use client';\n\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport styled from '@mui/styled-engine';\nimport styleFunctionSx, { extendSxProp } from \"../styleFunctionSx/index.js\";\nimport useTheme from \"../useTheme/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default function createBox(options = {}) {\n const {\n themeId,\n defaultTheme,\n defaultClassName = 'MuiBox-root',\n generateClassName\n } = options;\n const BoxRoot = styled('div', {\n shouldForwardProp: prop => prop !== 'theme' && prop !== 'sx' && prop !== 'as'\n })(styleFunctionSx);\n const Box = /*#__PURE__*/React.forwardRef(function Box(inProps, ref) {\n const theme = useTheme(defaultTheme);\n const {\n className,\n component = 'div',\n ...other\n } = extendSxProp(inProps);\n return /*#__PURE__*/_jsx(BoxRoot, {\n as: component,\n ref: ref,\n className: clsx(className, generateClassName ? generateClassName(defaultClassName) : defaultClassName),\n theme: themeId ? theme[themeId] || theme : theme,\n ...other\n });\n });\n return Box;\n}", "import ClassNameGenerator from \"../ClassNameGenerator/index.js\";\nexport const globalStateClasses = {\n active: 'active',\n checked: 'checked',\n completed: 'completed',\n disabled: 'disabled',\n error: 'error',\n expanded: 'expanded',\n focused: 'focused',\n focusVisible: 'focusVisible',\n open: 'open',\n readOnly: 'readOnly',\n required: 'required',\n selected: 'selected'\n};\nexport default function generateUtilityClass(componentName, slot, globalStatePrefix = 'Mui') {\n const globalStateClass = globalStateClasses[slot];\n return globalStateClass ? `${globalStatePrefix}-${globalStateClass}` : `${ClassNameGenerator.generate(componentName)}-${slot}`;\n}\nexport function isGlobalState(slot) {\n return globalStateClasses[slot] !== undefined;\n}", "import generateUtilityClass from \"../generateUtilityClass/index.js\";\nexport default function generateUtilityClasses(componentName, slots, globalStatePrefix = 'Mui') {\n const result = {};\n slots.forEach(slot => {\n result[slot] = generateUtilityClass(componentName, slot, globalStatePrefix);\n });\n return result;\n}", "import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nconst boxClasses = generateUtilityClasses('MuiBox', ['root']);\nexport default boxClasses;", "import { ForwardRef, Memo } from 'react-is';\nfunction getFunctionComponentName(Component, fallback = '') {\n return Component.displayName || Component.name || fallback;\n}\nfunction getWrappedName(outerType, innerType, wrapperName) {\n const functionName = getFunctionComponentName(innerType);\n return outerType.displayName || (functionName !== '' ? `${wrapperName}(${functionName})` : wrapperName);\n}\n\n/**\n * cherry-pick from\n * https://github.com/facebook/react/blob/769b1f270e1251d9dbdce0fcbd9e92e502d059b8/packages/shared/getComponentName.js\n * originally forked from recompose/getDisplayName\n */\nexport default function getDisplayName(Component) {\n if (Component == null) {\n return undefined;\n }\n if (typeof Component === 'string') {\n return Component;\n }\n if (typeof Component === 'function') {\n return getFunctionComponentName(Component, 'Component');\n }\n\n // TypeScript can't have components as objects but they exist in the form of `memo` or `Suspense`\n if (typeof Component === 'object') {\n switch (Component.$$typeof) {\n case ForwardRef:\n return getWrappedName(Component, Component.render, 'ForwardRef');\n case Memo:\n return getWrappedName(Component, Component.type, 'memo');\n default:\n return undefined;\n }\n }\n return undefined;\n}", "import { internal_serializeStyles } from '@mui/styled-engine';\nexport default function preprocessStyles(input) {\n const {\n variants,\n ...style\n } = input;\n const result = {\n variants,\n style: internal_serializeStyles(style),\n isProcessed: true\n };\n\n // Not supported on styled-components\n if (result.style === style) {\n return result;\n }\n if (variants) {\n variants.forEach(variant => {\n if (typeof variant.style !== 'function') {\n variant.style = internal_serializeStyles(variant.style);\n }\n });\n }\n return result;\n}", "import styledEngineStyled, { internal_mutateStyles as mutateStyles } from '@mui/styled-engine';\nimport { isPlainObject } from '@mui/utils/deepmerge';\nimport capitalize from '@mui/utils/capitalize';\nimport getDisplayName from '@mui/utils/getDisplayName';\nimport createTheme from \"../createTheme/index.js\";\nimport styleFunctionSx from \"../styleFunctionSx/index.js\";\nimport preprocessStyles from \"../preprocessStyles.js\";\n\n/* eslint-disable no-underscore-dangle */\n/* eslint-disable no-labels */\n/* eslint-disable no-lone-blocks */\n\nexport const systemDefaultTheme = createTheme();\n\n// Update /system/styled/#api in case if this changes\nexport function shouldForwardProp(prop) {\n return prop !== 'ownerState' && prop !== 'theme' && prop !== 'sx' && prop !== 'as';\n}\nfunction defaultOverridesResolver(slot) {\n if (!slot) {\n return null;\n }\n return (_props, styles) => styles[slot];\n}\nfunction attachTheme(props, themeId, defaultTheme) {\n props.theme = isObjectEmpty(props.theme) ? defaultTheme : props.theme[themeId] || props.theme;\n}\nfunction processStyle(props, style) {\n /*\n * Style types:\n * - null/undefined\n * - string\n * - CSS style object: { [cssKey]: [cssValue], variants }\n * - Processed style object: { style, variants, isProcessed: true }\n * - Array of any of the above\n */\n\n const resolvedStyle = typeof style === 'function' ? style(props) : style;\n if (Array.isArray(resolvedStyle)) {\n return resolvedStyle.flatMap(subStyle => processStyle(props, subStyle));\n }\n if (Array.isArray(resolvedStyle?.variants)) {\n let rootStyle;\n if (resolvedStyle.isProcessed) {\n rootStyle = resolvedStyle.style;\n } else {\n const {\n variants,\n ...otherStyles\n } = resolvedStyle;\n rootStyle = otherStyles;\n }\n return processStyleVariants(props, resolvedStyle.variants, [rootStyle]);\n }\n if (resolvedStyle?.isProcessed) {\n return resolvedStyle.style;\n }\n return resolvedStyle;\n}\nfunction processStyleVariants(props, variants, results = []) {\n let mergedState; // We might not need it, initialized lazily\n\n variantLoop: for (let i = 0; i < variants.length; i += 1) {\n const variant = variants[i];\n if (typeof variant.props === 'function') {\n mergedState ??= {\n ...props,\n ...props.ownerState,\n ownerState: props.ownerState\n };\n if (!variant.props(mergedState)) {\n continue;\n }\n } else {\n for (const key in variant.props) {\n if (props[key] !== variant.props[key] && props.ownerState?.[key] !== variant.props[key]) {\n continue variantLoop;\n }\n }\n }\n if (typeof variant.style === 'function') {\n mergedState ??= {\n ...props,\n ...props.ownerState,\n ownerState: props.ownerState\n };\n results.push(variant.style(mergedState));\n } else {\n results.push(variant.style);\n }\n }\n return results;\n}\nexport default function createStyled(input = {}) {\n const {\n themeId,\n defaultTheme = systemDefaultTheme,\n rootShouldForwardProp = shouldForwardProp,\n slotShouldForwardProp = shouldForwardProp\n } = input;\n function styleAttachTheme(props) {\n attachTheme(props, themeId, defaultTheme);\n }\n const styled = (tag, inputOptions = {}) => {\n // If `tag` is already a styled component, filter out the `sx` style function\n // to prevent unnecessary styles generated by the composite components.\n mutateStyles(tag, styles => styles.filter(style => style !== styleFunctionSx));\n const {\n name: componentName,\n slot: componentSlot,\n skipVariantsResolver: inputSkipVariantsResolver,\n skipSx: inputSkipSx,\n // TODO v6: remove `lowercaseFirstLetter()` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n overridesResolver = defaultOverridesResolver(lowercaseFirstLetter(componentSlot)),\n ...options\n } = inputOptions;\n\n // if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots.\n const skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver :\n // TODO v6: remove `Root` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n componentSlot && componentSlot !== 'Root' && componentSlot !== 'root' || false;\n const skipSx = inputSkipSx || false;\n let shouldForwardPropOption = shouldForwardProp;\n\n // TODO v6: remove `Root` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n if (componentSlot === 'Root' || componentSlot === 'root') {\n shouldForwardPropOption = rootShouldForwardProp;\n } else if (componentSlot) {\n // any other slot specified\n shouldForwardPropOption = slotShouldForwardProp;\n } else if (isStringTag(tag)) {\n // for string (html) tag, preserve the behavior in emotion & styled-components.\n shouldForwardPropOption = undefined;\n }\n const defaultStyledResolver = styledEngineStyled(tag, {\n shouldForwardProp: shouldForwardPropOption,\n label: generateStyledLabel(componentName, componentSlot),\n ...options\n });\n const transformStyle = style => {\n // On the server Emotion doesn't use React.forwardRef for creating components, so the created\n // component stays as a function. This condition makes sure that we do not interpolate functions\n // which are basically components used as a selectors.\n if (typeof style === 'function' && style.__emotion_real !== style) {\n return function styleFunctionProcessor(props) {\n return processStyle(props, style);\n };\n }\n if (isPlainObject(style)) {\n const serialized = preprocessStyles(style);\n if (!serialized.variants) {\n return serialized.style;\n }\n return function styleObjectProcessor(props) {\n return processStyle(props, serialized);\n };\n }\n return style;\n };\n const muiStyledResolver = (...expressionsInput) => {\n const expressionsHead = [];\n const expressionsBody = expressionsInput.map(transformStyle);\n const expressionsTail = [];\n\n // Preprocess `props` to set the scoped theme value.\n // This must run before any other expression.\n expressionsHead.push(styleAttachTheme);\n if (componentName && overridesResolver) {\n expressionsTail.push(function styleThemeOverrides(props) {\n const theme = props.theme;\n const styleOverrides = theme.components?.[componentName]?.styleOverrides;\n if (!styleOverrides) {\n return null;\n }\n const resolvedStyleOverrides = {};\n\n // TODO: v7 remove iteration and use `resolveStyleArg(styleOverrides[slot])` directly\n // eslint-disable-next-line guard-for-in\n for (const slotKey in styleOverrides) {\n resolvedStyleOverrides[slotKey] = processStyle(props, styleOverrides[slotKey]);\n }\n return overridesResolver(props, resolvedStyleOverrides);\n });\n }\n if (componentName && !skipVariantsResolver) {\n expressionsTail.push(function styleThemeVariants(props) {\n const theme = props.theme;\n const themeVariants = theme?.components?.[componentName]?.variants;\n if (!themeVariants) {\n return null;\n }\n return processStyleVariants(props, themeVariants);\n });\n }\n if (!skipSx) {\n expressionsTail.push(styleFunctionSx);\n }\n\n // This function can be called as a tagged template, so the first argument would contain\n // CSS `string[]` values.\n if (Array.isArray(expressionsBody[0])) {\n const inputStrings = expressionsBody.shift();\n\n // We need to add placeholders in the tagged template for the custom functions we have\n // possibly added (attachTheme, overrides, variants, and sx).\n const placeholdersHead = new Array(expressionsHead.length).fill('');\n const placeholdersTail = new Array(expressionsTail.length).fill('');\n let outputStrings;\n // prettier-ignore\n {\n outputStrings = [...placeholdersHead, ...inputStrings, ...placeholdersTail];\n outputStrings.raw = [...placeholdersHead, ...inputStrings.raw, ...placeholdersTail];\n }\n\n // The only case where we put something before `attachTheme`\n expressionsHead.unshift(outputStrings);\n }\n const expressions = [...expressionsHead, ...expressionsBody, ...expressionsTail];\n const Component = defaultStyledResolver(...expressions);\n if (tag.muiName) {\n Component.muiName = tag.muiName;\n }\n if (process.env.NODE_ENV !== 'production') {\n Component.displayName = generateDisplayName(componentName, componentSlot, tag);\n }\n return Component;\n };\n if (defaultStyledResolver.withConfig) {\n muiStyledResolver.withConfig = defaultStyledResolver.withConfig;\n }\n return muiStyledResolver;\n };\n return styled;\n}\nfunction generateDisplayName(componentName, componentSlot, tag) {\n if (componentName) {\n return `${componentName}${capitalize(componentSlot || '')}`;\n }\n return `Styled(${getDisplayName(tag)})`;\n}\nfunction generateStyledLabel(componentName, componentSlot) {\n let label;\n if (process.env.NODE_ENV !== 'production') {\n if (componentName) {\n // TODO v6: remove `lowercaseFirstLetter()` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n label = `${componentName}-${lowercaseFirstLetter(componentSlot || 'Root')}`;\n }\n }\n return label;\n}\nfunction isObjectEmpty(object) {\n // eslint-disable-next-line\n for (const _ in object) {\n return false;\n }\n return true;\n}\n\n// https://github.com/emotion-js/emotion/blob/26ded6109fcd8ca9875cc2ce4564fee678a3f3c5/packages/styled/src/utils.js#L40\nfunction isStringTag(tag) {\n return typeof tag === 'string' &&\n // 96 is one less than the char code\n // for \"a\" so this is checking that\n // it's a lowercase character\n tag.charCodeAt(0) > 96;\n}\nfunction lowercaseFirstLetter(string) {\n if (!string) {\n return string;\n }\n return string.charAt(0).toLowerCase() + string.slice(1);\n}", "import createStyled from \"../createStyled/index.js\";\nconst styled = createStyled();\nexport default styled;", "/**\n * Add keys, values of `defaultProps` that does not exist in `props`\n * @param defaultProps\n * @param props\n * @returns resolved props\n */\nexport default function resolveProps(defaultProps, props) {\n const output = {\n ...props\n };\n for (const key in defaultProps) {\n if (Object.prototype.hasOwnProperty.call(defaultProps, key)) {\n const propName = key;\n if (propName === 'components' || propName === 'slots') {\n output[propName] = {\n ...defaultProps[propName],\n ...output[propName]\n };\n } else if (propName === 'componentsProps' || propName === 'slotProps') {\n const defaultSlotProps = defaultProps[propName];\n const slotProps = props[propName];\n if (!slotProps) {\n output[propName] = defaultSlotProps || {};\n } else if (!defaultSlotProps) {\n output[propName] = slotProps;\n } else {\n output[propName] = {\n ...slotProps\n };\n for (const slotKey in defaultSlotProps) {\n if (Object.prototype.hasOwnProperty.call(defaultSlotProps, slotKey)) {\n const slotPropName = slotKey;\n output[propName][slotPropName] = resolveProps(defaultSlotProps[slotPropName], slotProps[slotPropName]);\n }\n }\n }\n } else if (output[propName] === undefined) {\n output[propName] = defaultProps[propName];\n }\n }\n }\n return output;\n}", "import resolveProps from '@mui/utils/resolveProps';\nexport default function getThemeProps(params) {\n const {\n theme,\n name,\n props\n } = params;\n if (!theme || !theme.components || !theme.components[name] || !theme.components[name].defaultProps) {\n return props;\n }\n return resolveProps(theme.components[name].defaultProps, props);\n}", "'use client';\n\nimport getThemeProps from \"./getThemeProps.js\";\nimport useTheme from \"../useTheme/index.js\";\nexport default function useThemeProps({\n props,\n name,\n defaultTheme,\n themeId\n}) {\n let theme = useTheme(defaultTheme);\n if (themeId) {\n theme = theme[themeId] || theme;\n }\n return getThemeProps({\n theme,\n name,\n props\n });\n}", "'use client';\n\nimport * as React from 'react';\nimport useEnhancedEffect from '@mui/utils/useEnhancedEffect';\nimport { getThemeProps } from \"../useThemeProps/index.js\";\nimport useTheme from \"../useThemeWithoutDefault/index.js\";\n// TODO React 17: Remove `useMediaQueryOld` once React 17 support is removed\nfunction useMediaQueryOld(query, defaultMatches, matchMedia, ssrMatchMedia, noSsr) {\n const [match, setMatch] = React.useState(() => {\n if (noSsr && matchMedia) {\n return matchMedia(query).matches;\n }\n if (ssrMatchMedia) {\n return ssrMatchMedia(query).matches;\n }\n\n // Once the component is mounted, we rely on the\n // event listeners to return the correct matches value.\n return defaultMatches;\n });\n useEnhancedEffect(() => {\n if (!matchMedia) {\n return undefined;\n }\n const queryList = matchMedia(query);\n const updateMatch = () => {\n setMatch(queryList.matches);\n };\n updateMatch();\n queryList.addEventListener('change', updateMatch);\n return () => {\n queryList.removeEventListener('change', updateMatch);\n };\n }, [query, matchMedia]);\n return match;\n}\n\n// See https://github.com/mui/material-ui/issues/41190#issuecomment-2040873379 for why\nconst safeReact = {\n ...React\n};\nconst maybeReactUseSyncExternalStore = safeReact.useSyncExternalStore;\nfunction useMediaQueryNew(query, defaultMatches, matchMedia, ssrMatchMedia, noSsr) {\n const getDefaultSnapshot = React.useCallback(() => defaultMatches, [defaultMatches]);\n const getServerSnapshot = React.useMemo(() => {\n if (noSsr && matchMedia) {\n return () => matchMedia(query).matches;\n }\n if (ssrMatchMedia !== null) {\n const {\n matches\n } = ssrMatchMedia(query);\n return () => matches;\n }\n return getDefaultSnapshot;\n }, [getDefaultSnapshot, query, ssrMatchMedia, noSsr, matchMedia]);\n const [getSnapshot, subscribe] = React.useMemo(() => {\n if (matchMedia === null) {\n return [getDefaultSnapshot, () => () => {}];\n }\n const mediaQueryList = matchMedia(query);\n return [() => mediaQueryList.matches, notify => {\n mediaQueryList.addEventListener('change', notify);\n return () => {\n mediaQueryList.removeEventListener('change', notify);\n };\n }];\n }, [getDefaultSnapshot, matchMedia, query]);\n const match = maybeReactUseSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);\n return match;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function unstable_createUseMediaQuery(params = {}) {\n const {\n themeId\n } = params;\n return function useMediaQuery(queryInput, options = {}) {\n let theme = useTheme();\n if (theme && themeId) {\n theme = theme[themeId] || theme;\n }\n // Wait for jsdom to support the match media feature.\n // All the browsers MUI support have this built-in.\n // This defensive check is here for simplicity.\n // Most of the time, the match media logic isn't central to people tests.\n const supportMatchMedia = typeof window !== 'undefined' && typeof window.matchMedia !== 'undefined';\n const {\n defaultMatches = false,\n matchMedia = supportMatchMedia ? window.matchMedia : null,\n ssrMatchMedia = null,\n noSsr = false\n } = getThemeProps({\n name: 'MuiUseMediaQuery',\n props: options,\n theme\n });\n if (process.env.NODE_ENV !== 'production') {\n if (typeof queryInput === 'function' && theme === null) {\n console.error(['MUI: The `query` argument provided is invalid.', 'You are providing a function without a theme in the context.', 'One of the parent elements needs to use a ThemeProvider.'].join('\\n'));\n }\n }\n let query = typeof queryInput === 'function' ? queryInput(theme) : queryInput;\n query = query.replace(/^@media( ?)/m, '');\n const useMediaQueryImplementation = maybeReactUseSyncExternalStore !== undefined ? useMediaQueryNew : useMediaQueryOld;\n const match = useMediaQueryImplementation(query, defaultMatches, matchMedia, ssrMatchMedia, noSsr);\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useDebugValue({\n query,\n match\n });\n }\n return match;\n };\n}\nconst useMediaQuery = unstable_createUseMediaQuery();\nexport default useMediaQuery;", "'use client';\n\nimport * as React from 'react';\n\n/**\n * A version of `React.useLayoutEffect` that does not show a warning when server-side rendering.\n * This is useful for effects that are only needed for client-side rendering but not for SSR.\n *\n * Before you use this hook, make sure to read https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85\n * and confirm it doesn't apply to your use-case.\n */\nconst useEnhancedEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;\nexport default useEnhancedEffect;", "function clamp(val, min = Number.MIN_SAFE_INTEGER, max = Number.MAX_SAFE_INTEGER) {\n return Math.max(min, Math.min(val, max));\n}\nexport default clamp;", "import _formatErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\n/* eslint-disable @typescript-eslint/naming-convention */\nimport clamp from '@mui/utils/clamp';\n\n/**\n * Returns a number whose value is limited to the given range.\n * @param {number} value The value to be clamped\n * @param {number} min The lower boundary of the output range\n * @param {number} max The upper boundary of the output range\n * @returns {number} A number in the range [min, max]\n */\nfunction clampWrapper(value, min = 0, max = 1) {\n if (process.env.NODE_ENV !== 'production') {\n if (value < min || value > max) {\n console.error(`MUI: The value provided ${value} is out of range [${min}, ${max}].`);\n }\n }\n return clamp(value, min, max);\n}\n\n/**\n * Converts a color from CSS hex format to CSS rgb format.\n * @param {string} color - Hex color, i.e. #nnn or #nnnnnn\n * @returns {string} A CSS rgb color string\n */\nexport function hexToRgb(color) {\n color = color.slice(1);\n const re = new RegExp(`.{1,${color.length >= 6 ? 2 : 1}}`, 'g');\n let colors = color.match(re);\n if (colors && colors[0].length === 1) {\n colors = colors.map(n => n + n);\n }\n if (process.env.NODE_ENV !== 'production') {\n if (color.length !== color.trim().length) {\n console.error(`MUI: The color: \"${color}\" is invalid. Make sure the color input doesn't contain leading/trailing space.`);\n }\n }\n return colors ? `rgb${colors.length === 4 ? 'a' : ''}(${colors.map((n, index) => {\n return index < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1000) / 1000;\n }).join(', ')})` : '';\n}\nfunction intToHex(int) {\n const hex = int.toString(16);\n return hex.length === 1 ? `0${hex}` : hex;\n}\n\n/**\n * Returns an object with the type and values of a color.\n *\n * Note: Does not support rgb % values.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @returns {object} - A MUI color object: {type: string, values: number[]}\n */\nexport function decomposeColor(color) {\n // Idempotent\n if (color.type) {\n return color;\n }\n if (color.charAt(0) === '#') {\n return decomposeColor(hexToRgb(color));\n }\n const marker = color.indexOf('(');\n const type = color.substring(0, marker);\n if (!['rgb', 'rgba', 'hsl', 'hsla', 'color'].includes(type)) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: Unsupported \\`${color}\\` color.\\n` + 'The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().' : _formatErrorMessage(9, color));\n }\n let values = color.substring(marker + 1, color.length - 1);\n let colorSpace;\n if (type === 'color') {\n values = values.split(' ');\n colorSpace = values.shift();\n if (values.length === 4 && values[3].charAt(0) === '/') {\n values[3] = values[3].slice(1);\n }\n if (!['srgb', 'display-p3', 'a98-rgb', 'prophoto-rgb', 'rec-2020'].includes(colorSpace)) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: unsupported \\`${colorSpace}\\` color space.\\n` + 'The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.' : _formatErrorMessage(10, colorSpace));\n }\n } else {\n values = values.split(',');\n }\n values = values.map(value => parseFloat(value));\n return {\n type,\n values,\n colorSpace\n };\n}\n\n/**\n * Returns a channel created from the input color.\n *\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @returns {string} - The channel for the color, that can be used in rgba or hsla colors\n */\nexport const colorChannel = color => {\n const decomposedColor = decomposeColor(color);\n return decomposedColor.values.slice(0, 3).map((val, idx) => decomposedColor.type.includes('hsl') && idx !== 0 ? `${val}%` : val).join(' ');\n};\nexport const private_safeColorChannel = (color, warning) => {\n try {\n return colorChannel(color);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n};\n\n/**\n * Converts a color object with type and values to a string.\n * @param {object} color - Decomposed color\n * @param {string} color.type - One of: 'rgb', 'rgba', 'hsl', 'hsla', 'color'\n * @param {array} color.values - [n,n,n] or [n,n,n,n]\n * @returns {string} A CSS color string\n */\nexport function recomposeColor(color) {\n const {\n type,\n colorSpace\n } = color;\n let {\n values\n } = color;\n if (type.includes('rgb')) {\n // Only convert the first 3 values to int (i.e. not alpha)\n values = values.map((n, i) => i < 3 ? parseInt(n, 10) : n);\n } else if (type.includes('hsl')) {\n values[1] = `${values[1]}%`;\n values[2] = `${values[2]}%`;\n }\n if (type.includes('color')) {\n values = `${colorSpace} ${values.join(' ')}`;\n } else {\n values = `${values.join(', ')}`;\n }\n return `${type}(${values})`;\n}\n\n/**\n * Converts a color from CSS rgb format to CSS hex format.\n * @param {string} color - RGB color, i.e. rgb(n, n, n)\n * @returns {string} A CSS rgb color string, i.e. #nnnnnn\n */\nexport function rgbToHex(color) {\n // Idempotent\n if (color.startsWith('#')) {\n return color;\n }\n const {\n values\n } = decomposeColor(color);\n return `#${values.map((n, i) => intToHex(i === 3 ? Math.round(255 * n) : n)).join('')}`;\n}\n\n/**\n * Converts a color from hsl format to rgb format.\n * @param {string} color - HSL color values\n * @returns {string} rgb color values\n */\nexport function hslToRgb(color) {\n color = decomposeColor(color);\n const {\n values\n } = color;\n const h = values[0];\n const s = values[1] / 100;\n const l = values[2] / 100;\n const a = s * Math.min(l, 1 - l);\n const f = (n, k = (n + h / 30) % 12) => l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);\n let type = 'rgb';\n const rgb = [Math.round(f(0) * 255), Math.round(f(8) * 255), Math.round(f(4) * 255)];\n if (color.type === 'hsla') {\n type += 'a';\n rgb.push(values[3]);\n }\n return recomposeColor({\n type,\n values: rgb\n });\n}\n/**\n * The relative brightness of any point in a color space,\n * normalized to 0 for darkest black and 1 for lightest white.\n *\n * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @returns {number} The relative brightness of the color in the range 0 - 1\n */\nexport function getLuminance(color) {\n color = decomposeColor(color);\n let rgb = color.type === 'hsl' || color.type === 'hsla' ? decomposeColor(hslToRgb(color)).values : color.values;\n rgb = rgb.map(val => {\n if (color.type !== 'color') {\n val /= 255; // normalized\n }\n return val <= 0.03928 ? val / 12.92 : ((val + 0.055) / 1.055) ** 2.4;\n });\n\n // Truncate at 3 digits\n return Number((0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2]).toFixed(3));\n}\n\n/**\n * Calculates the contrast ratio between two colors.\n *\n * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n * @param {string} foreground - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @param {string} background - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @returns {number} A contrast ratio value in the range 0 - 21.\n */\nexport function getContrastRatio(foreground, background) {\n const lumA = getLuminance(foreground);\n const lumB = getLuminance(background);\n return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05);\n}\n\n/**\n * Sets the absolute transparency of a color.\n * Any existing alpha values are overwritten.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} value - value to set the alpha channel to in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function alpha(color, value) {\n color = decomposeColor(color);\n value = clampWrapper(value);\n if (color.type === 'rgb' || color.type === 'hsl') {\n color.type += 'a';\n }\n if (color.type === 'color') {\n color.values[3] = `/${value}`;\n } else {\n color.values[3] = value;\n }\n return recomposeColor(color);\n}\nexport function private_safeAlpha(color, value, warning) {\n try {\n return alpha(color, value);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Darkens a color.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} coefficient - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function darken(color, coefficient) {\n color = decomposeColor(color);\n coefficient = clampWrapper(coefficient);\n if (color.type.includes('hsl')) {\n color.values[2] *= 1 - coefficient;\n } else if (color.type.includes('rgb') || color.type.includes('color')) {\n for (let i = 0; i < 3; i += 1) {\n color.values[i] *= 1 - coefficient;\n }\n }\n return recomposeColor(color);\n}\nexport function private_safeDarken(color, coefficient, warning) {\n try {\n return darken(color, coefficient);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Lightens a color.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} coefficient - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function lighten(color, coefficient) {\n color = decomposeColor(color);\n coefficient = clampWrapper(coefficient);\n if (color.type.includes('hsl')) {\n color.values[2] += (100 - color.values[2]) * coefficient;\n } else if (color.type.includes('rgb')) {\n for (let i = 0; i < 3; i += 1) {\n color.values[i] += (255 - color.values[i]) * coefficient;\n }\n } else if (color.type.includes('color')) {\n for (let i = 0; i < 3; i += 1) {\n color.values[i] += (1 - color.values[i]) * coefficient;\n }\n }\n return recomposeColor(color);\n}\nexport function private_safeLighten(color, coefficient, warning) {\n try {\n return lighten(color, coefficient);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Darken or lighten a color, depending on its luminance.\n * Light colors are darkened, dark colors are lightened.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} coefficient=0.15 - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function emphasize(color, coefficient = 0.15) {\n return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient);\n}\nexport function private_safeEmphasize(color, coefficient, warning) {\n try {\n return emphasize(color, coefficient);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Blend a transparent overlay color with a background color, resulting in a single\n * RGB color.\n * @param {string} background - CSS color\n * @param {string} overlay - CSS color\n * @param {number} opacity - Opacity multiplier in the range 0 - 1\n * @param {number} [gamma=1.0] - Gamma correction factor. For gamma-correct blending, 2.2 is usual.\n */\nexport function blend(background, overlay, opacity, gamma = 1.0) {\n const blendChannel = (b, o) => Math.round((b ** (1 / gamma) * (1 - opacity) + o ** (1 / gamma) * opacity) ** gamma);\n const backgroundColor = decomposeColor(background);\n const overlayColor = decomposeColor(overlay);\n const rgb = [blendChannel(backgroundColor.values[0], overlayColor.values[0]), blendChannel(backgroundColor.values[1], overlayColor.values[1]), blendChannel(backgroundColor.values[2], overlayColor.values[2])];\n return recomposeColor({\n type: 'rgb',\n values: rgb\n });\n}", "'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { ThemeProvider as MuiThemeProvider, useTheme as usePrivateTheme } from '@mui/private-theming';\nimport exactProp from '@mui/utils/exactProp';\nimport { ThemeContext as StyledEngineThemeContext } from '@mui/styled-engine';\nimport useThemeWithoutDefault from \"../useThemeWithoutDefault/index.js\";\nimport RtlProvider from \"../RtlProvider/index.js\";\nimport DefaultPropsProvider from \"../DefaultPropsProvider/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst EMPTY_THEME = {};\nfunction useThemeScoping(themeId, upperTheme, localTheme, isPrivate = false) {\n return React.useMemo(() => {\n const resolvedTheme = themeId ? upperTheme[themeId] || upperTheme : upperTheme;\n if (typeof localTheme === 'function') {\n const mergedTheme = localTheme(resolvedTheme);\n const result = themeId ? {\n ...upperTheme,\n [themeId]: mergedTheme\n } : mergedTheme;\n // must return a function for the private theme to NOT merge with the upper theme.\n // see the test case \"use provided theme from a callback\" in ThemeProvider.test.js\n if (isPrivate) {\n return () => result;\n }\n return result;\n }\n return themeId ? {\n ...upperTheme,\n [themeId]: localTheme\n } : {\n ...upperTheme,\n ...localTheme\n };\n }, [themeId, upperTheme, localTheme, isPrivate]);\n}\n\n/**\n * This component makes the `theme` available down the React tree.\n * It should preferably be used at **the root of your component tree**.\n *\n * // existing use case\n * // theme scoping\n */\nfunction ThemeProvider(props) {\n const {\n children,\n theme: localTheme,\n themeId\n } = props;\n const upperTheme = useThemeWithoutDefault(EMPTY_THEME);\n const upperPrivateTheme = usePrivateTheme() || EMPTY_THEME;\n if (process.env.NODE_ENV !== 'production') {\n if (upperTheme === null && typeof localTheme === 'function' || themeId && upperTheme && !upperTheme[themeId] && typeof localTheme === 'function') {\n console.error(['MUI: You are providing a theme function prop to the ThemeProvider component:', ' outerTheme} />', '', 'However, no outer theme is present.', 'Make sure a theme is already injected higher in the React tree ' + 'or provide a theme object.'].join('\\n'));\n }\n }\n const engineTheme = useThemeScoping(themeId, upperTheme, localTheme);\n const privateTheme = useThemeScoping(themeId, upperPrivateTheme, localTheme, true);\n const rtlValue = (themeId ? engineTheme[themeId] : engineTheme).direction === 'rtl';\n return /*#__PURE__*/_jsx(MuiThemeProvider, {\n theme: privateTheme,\n children: /*#__PURE__*/_jsx(StyledEngineThemeContext.Provider, {\n value: engineTheme,\n children: /*#__PURE__*/_jsx(RtlProvider, {\n value: rtlValue,\n children: /*#__PURE__*/_jsx(DefaultPropsProvider, {\n value: themeId ? engineTheme[themeId].components : engineTheme.components,\n children: children\n })\n })\n })\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? ThemeProvider.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Your component tree.\n */\n children: PropTypes.node,\n /**\n * A theme object. You can provide a function to extend the outer theme.\n */\n theme: PropTypes.oneOfType([PropTypes.func, PropTypes.object]).isRequired,\n /**\n * The design system's unique id for getting the corresponded theme when there are multiple design systems.\n */\n themeId: PropTypes.string\n} : void 0;\nif (process.env.NODE_ENV !== 'production') {\n process.env.NODE_ENV !== \"production\" ? ThemeProvider.propTypes = exactProp(ThemeProvider.propTypes) : void 0;\n}\nexport default ThemeProvider;", "import * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { exactProp } from '@mui/utils';\nimport ThemeContext from \"../useTheme/ThemeContext.js\";\nimport useTheme from \"../useTheme/index.js\";\nimport nested from \"./nested.js\";\n\n// To support composition of theme.\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction mergeOuterLocalTheme(outerTheme, localTheme) {\n if (typeof localTheme === 'function') {\n const mergedTheme = localTheme(outerTheme);\n if (process.env.NODE_ENV !== 'production') {\n if (!mergedTheme) {\n console.error(['MUI: You should return an object from your theme function, i.e.', ' ({})} />'].join('\\n'));\n }\n }\n return mergedTheme;\n }\n return {\n ...outerTheme,\n ...localTheme\n };\n}\n\n/**\n * This component takes a `theme` prop.\n * It makes the `theme` available down the React tree thanks to React context.\n * This component should preferably be used at **the root of your component tree**.\n */\nfunction ThemeProvider(props) {\n const {\n children,\n theme: localTheme\n } = props;\n const outerTheme = useTheme();\n if (process.env.NODE_ENV !== 'production') {\n if (outerTheme === null && typeof localTheme === 'function') {\n console.error(['MUI: You are providing a theme function prop to the ThemeProvider component:', ' outerTheme} />', '', 'However, no outer theme is present.', 'Make sure a theme is already injected higher in the React tree ' + 'or provide a theme object.'].join('\\n'));\n }\n }\n const theme = React.useMemo(() => {\n const output = outerTheme === null ? {\n ...localTheme\n } : mergeOuterLocalTheme(outerTheme, localTheme);\n if (output != null) {\n output[nested] = outerTheme !== null;\n }\n return output;\n }, [localTheme, outerTheme]);\n return /*#__PURE__*/_jsx(ThemeContext.Provider, {\n value: theme,\n children: children\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? ThemeProvider.propTypes = {\n /**\n * Your component tree.\n */\n children: PropTypes.node,\n /**\n * A theme object. You can provide a function to extend the outer theme.\n */\n theme: PropTypes.oneOfType([PropTypes.object, PropTypes.func]).isRequired\n} : void 0;\nif (process.env.NODE_ENV !== 'production') {\n process.env.NODE_ENV !== \"production\" ? ThemeProvider.propTypes = exactProp(ThemeProvider.propTypes) : void 0;\n}\nexport default ThemeProvider;", "export default function chainPropTypes(propType1, propType2) {\n if (process.env.NODE_ENV === 'production') {\n return () => null;\n }\n return function validate(...args) {\n return propType1(...args) || propType2(...args);\n };\n}", "import PropTypes from 'prop-types';\nimport chainPropTypes from \"../chainPropTypes/index.js\";\nfunction isClassComponent(elementType) {\n // elementType.prototype?.isReactComponent\n const {\n prototype = {}\n } = elementType;\n return Boolean(prototype.isReactComponent);\n}\nfunction acceptingRef(props, propName, componentName, location, propFullName) {\n const element = props[propName];\n const safePropName = propFullName || propName;\n if (element == null ||\n // When server-side rendering React doesn't warn either.\n // This is not an accurate check for SSR.\n // This is only in place for Emotion compat.\n // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.\n typeof window === 'undefined') {\n return null;\n }\n let warningHint;\n const elementType = element.type;\n /**\n * Blacklisting instead of whitelisting\n *\n * Blacklisting will miss some components, such as React.Fragment. Those will at least\n * trigger a warning in React.\n * We can't whitelist because there is no safe way to detect React.forwardRef\n * or class components. \"Safe\" means there's no public API.\n *\n */\n if (typeof elementType === 'function' && !isClassComponent(elementType)) {\n warningHint = 'Did you accidentally use a plain function component for an element instead?';\n }\n if (warningHint !== undefined) {\n return new Error(`Invalid ${location} \\`${safePropName}\\` supplied to \\`${componentName}\\`. ` + `Expected an element that can hold a ref. ${warningHint} ` + 'For more information see https://mui.com/r/caveat-with-refs-guide');\n }\n return null;\n}\nconst elementAcceptingRef = chainPropTypes(PropTypes.element, acceptingRef);\nelementAcceptingRef.isRequired = chainPropTypes(PropTypes.element.isRequired, acceptingRef);\nexport default elementAcceptingRef;", "import PropTypes from 'prop-types';\nimport chainPropTypes from \"../chainPropTypes/index.js\";\nfunction isClassComponent(elementType) {\n // elementType.prototype?.isReactComponent\n const {\n prototype = {}\n } = elementType;\n return Boolean(prototype.isReactComponent);\n}\nfunction elementTypeAcceptingRef(props, propName, componentName, location, propFullName) {\n const propValue = props[propName];\n const safePropName = propFullName || propName;\n if (propValue == null ||\n // When server-side rendering React doesn't warn either.\n // This is not an accurate check for SSR.\n // This is only in place for emotion compat.\n // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.\n typeof window === 'undefined') {\n return null;\n }\n let warningHint;\n\n /**\n * Blacklisting instead of whitelisting\n *\n * Blacklisting will miss some components, such as React.Fragment. Those will at least\n * trigger a warning in React.\n * We can't whitelist because there is no safe way to detect React.forwardRef\n * or class components. \"Safe\" means there's no public API.\n *\n */\n if (typeof propValue === 'function' && !isClassComponent(propValue)) {\n warningHint = 'Did you accidentally provide a plain function component instead?';\n }\n if (warningHint !== undefined) {\n return new Error(`Invalid ${location} \\`${safePropName}\\` supplied to \\`${componentName}\\`. ` + `Expected an element type that can hold a ref. ${warningHint} ` + 'For more information see https://mui.com/r/caveat-with-refs-guide');\n }\n return null;\n}\nexport default chainPropTypes(PropTypes.elementType, elementTypeAcceptingRef);", "// This module is based on https://github.com/airbnb/prop-types-exact repository.\n// However, in order to reduce the number of dependencies and to remove some extra safe checks\n// the module was forked.\n\nconst specialProperty = 'exact-prop: \\u200b';\nexport default function exactProp(propTypes) {\n if (process.env.NODE_ENV === 'production') {\n return propTypes;\n }\n return {\n ...propTypes,\n [specialProperty]: props => {\n const unsupportedProps = Object.keys(props).filter(prop => !propTypes.hasOwnProperty(prop));\n if (unsupportedProps.length > 0) {\n return new Error(`The following props are not supported: ${unsupportedProps.map(prop => `\\`${prop}\\``).join(', ')}. Please remove them.`);\n }\n return null;\n }\n };\n}", "/* eslint-disable */\n/**\n * https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\n * @deprecated Use `globalThis` instead.\n */\nexport default typeof window != 'undefined' && window.Math == Math ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();", "import PropTypes from 'prop-types';\nconst refType = PropTypes.oneOfType([PropTypes.func, PropTypes.object]);\nexport default refType;", "import * as React from 'react';\nexport default function isMuiElement(element, muiNames) {\n return /*#__PURE__*/React.isValidElement(element) && muiNames.indexOf(\n // For server components `muiName` is avaialble in element.type._payload.value.muiName\n // relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45\n // eslint-disable-next-line no-underscore-dangle\n element.type.muiName ?? element.type?._payload?.value?.muiName) !== -1;\n}", "'use client';\n\nimport * as React from 'react';\nlet globalId = 0;\n\n// TODO React 17: Remove `useGlobalId` once React 17 support is removed\nfunction useGlobalId(idOverride) {\n const [defaultId, setDefaultId] = React.useState(idOverride);\n const id = idOverride || defaultId;\n React.useEffect(() => {\n if (defaultId == null) {\n // Fallback to this default id when possible.\n // Use the incrementing value for client-side rendering only.\n // We can't use it server-side.\n // If you want to use random values please consider the Birthday Problem: https://en.wikipedia.org/wiki/Birthday_problem\n globalId += 1;\n setDefaultId(`mui-${globalId}`);\n }\n }, [defaultId]);\n return id;\n}\n\n// See https://github.com/mui/material-ui/issues/41190#issuecomment-2040873379 for why\nconst safeReact = {\n ...React\n};\nconst maybeReactUseId = safeReact.useId;\n\n/**\n *\n * @example
\n * @param idOverride\n * @returns {string}\n */\nexport default function useId(idOverride) {\n // React.useId() is only available from React 17.0.0.\n if (maybeReactUseId !== undefined) {\n const reactId = maybeReactUseId();\n return idOverride ?? reactId;\n }\n\n // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler\n // eslint-disable-next-line react-hooks/rules-of-hooks -- `React.useId` is invariant at runtime.\n return useGlobalId(idOverride);\n}", "'use client';\n\n// TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- process.env never changes, dependency arrays are intentionally ignored\n/* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */\nimport * as React from 'react';\nexport default function useControlled({\n controlled,\n default: defaultProp,\n name,\n state = 'value'\n}) {\n // isControlled is ignored in the hook dependency lists as it should never change.\n const {\n current: isControlled\n } = React.useRef(controlled !== undefined);\n const [valueState, setValue] = React.useState(defaultProp);\n const value = isControlled ? controlled : valueState;\n if (process.env.NODE_ENV !== 'production') {\n React.useEffect(() => {\n if (isControlled !== (controlled !== undefined)) {\n console.error([`MUI: A component is changing the ${isControlled ? '' : 'un'}controlled ${state} state of ${name} to be ${isControlled ? 'un' : ''}controlled.`, 'Elements should not switch from uncontrolled to controlled (or vice versa).', `Decide between using a controlled or uncontrolled ${name} ` + 'element for the lifetime of the component.', \"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.\", 'More info: https://fb.me/react-controlled-components'].join('\\n'));\n }\n }, [state, name, controlled]);\n const {\n current: defaultValue\n } = React.useRef(defaultProp);\n React.useEffect(() => {\n // Object.is() is not equivalent to the === operator.\n // See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is for more details.\n if (!isControlled && !Object.is(defaultValue, defaultProp)) {\n console.error([`MUI: A component is changing the default ${state} state of an uncontrolled ${name} after being initialized. ` + `To suppress this warning opt to use a controlled ${name}.`].join('\\n'));\n }\n }, [JSON.stringify(defaultProp)]);\n }\n const setValueIfUncontrolled = React.useCallback(newValue => {\n if (!isControlled) {\n setValue(newValue);\n }\n }, []);\n return [value, setValueIfUncontrolled];\n}", "'use client';\n\nimport * as React from 'react';\nimport useEnhancedEffect from \"../useEnhancedEffect/index.js\";\n\n/**\n * Inspired by https://github.com/facebook/react/issues/14099#issuecomment-440013892\n * See RFC in https://github.com/reactjs/rfcs/pull/220\n */\n\nfunction useEventCallback(fn) {\n const ref = React.useRef(fn);\n useEnhancedEffect(() => {\n ref.current = fn;\n });\n return React.useRef((...args) =>\n // @ts-expect-error hide `this`\n (0, ref.current)(...args)).current;\n}\nexport default useEventCallback;", "'use client';\n\nimport * as React from 'react';\n\n/**\n * Merges refs into a single memoized callback ref or `null`.\n *\n * ```tsx\n * const rootRef = React.useRef(null);\n * const refFork = useForkRef(rootRef, props.ref);\n *\n * return (\n * \n * );\n * ```\n *\n * @param {Array | undefined>} refs The ref array.\n * @returns {React.RefCallback | null} The new ref callback.\n */\nexport default function useForkRef(...refs) {\n const cleanupRef = React.useRef(undefined);\n const refEffect = React.useCallback(instance => {\n const cleanups = refs.map(ref => {\n if (ref == null) {\n return null;\n }\n if (typeof ref === 'function') {\n const refCallback = ref;\n const refCleanup = refCallback(instance);\n return typeof refCleanup === 'function' ? refCleanup : () => {\n refCallback(null);\n };\n }\n ref.current = instance;\n return () => {\n ref.current = null;\n };\n });\n return () => {\n cleanups.forEach(refCleanup => refCleanup?.());\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, refs);\n return React.useMemo(() => {\n if (refs.every(ref => ref == null)) {\n return null;\n }\n return value => {\n if (cleanupRef.current) {\n cleanupRef.current();\n cleanupRef.current = undefined;\n }\n if (value != null) {\n cleanupRef.current = refEffect(value);\n }\n };\n // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- intentionally ignoring that the dependency array must be an array literal\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, refs);\n}", "'use client';\n\nimport * as React from 'react';\nconst UNINITIALIZED = {};\n\n/**\n * A React.useRef() that is initialized lazily with a function. Note that it accepts an optional\n * initialization argument, so the initialization function doesn't need to be an inline closure.\n *\n * @usage\n * const ref = useLazyRef(sortColumns, columns)\n */\nexport default function useLazyRef(init, initArg) {\n const ref = React.useRef(UNINITIALIZED);\n if (ref.current === UNINITIALIZED) {\n ref.current = init(initArg);\n }\n return ref;\n}", "'use client';\n\nimport * as React from 'react';\nconst EMPTY = [];\n\n/**\n * A React.useEffect equivalent that runs once, when the component is mounted.\n */\nexport default function useOnMount(fn) {\n // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- no need to put `fn` in the dependency array\n /* eslint-disable react-hooks/exhaustive-deps */\n React.useEffect(fn, EMPTY);\n /* eslint-enable react-hooks/exhaustive-deps */\n}", "'use client';\n\nimport useLazyRef from \"../useLazyRef/useLazyRef.js\";\nimport useOnMount from \"../useOnMount/useOnMount.js\";\nexport class Timeout {\n static create() {\n return new Timeout();\n }\n currentId = null;\n\n /**\n * Executes `fn` after `delay`, clearing any previously scheduled call.\n */\n start(delay, fn) {\n this.clear();\n this.currentId = setTimeout(() => {\n this.currentId = null;\n fn();\n }, delay);\n }\n clear = () => {\n if (this.currentId !== null) {\n clearTimeout(this.currentId);\n this.currentId = null;\n }\n };\n disposeEffect = () => {\n return this.clear;\n };\n}\nexport default function useTimeout() {\n const timeout = useLazyRef(Timeout.create).current;\n useOnMount(timeout.disposeEffect);\n return timeout;\n}", "'use client';\n\n// based on https://github.com/WICG/focus-visible/blob/v4.1.5/src/focus-visible.js\nimport * as React from 'react';\nimport { Timeout } from \"../useTimeout/useTimeout.js\";\nlet hadKeyboardEvent = true;\nlet hadFocusVisibleRecently = false;\nconst hadFocusVisibleRecentlyTimeout = new Timeout();\nconst inputTypesWhitelist = {\n text: true,\n search: true,\n url: true,\n tel: true,\n email: true,\n password: true,\n number: true,\n date: true,\n month: true,\n week: true,\n time: true,\n datetime: true,\n 'datetime-local': true\n};\n\n/**\n * Computes whether the given element should automatically trigger the\n * `focus-visible` class being added, i.e. whether it should always match\n * `:focus-visible` when focused.\n * @param {Element} node\n * @returns {boolean}\n */\nfunction focusTriggersKeyboardModality(node) {\n const {\n type,\n tagName\n } = node;\n if (tagName === 'INPUT' && inputTypesWhitelist[type] && !node.readOnly) {\n return true;\n }\n if (tagName === 'TEXTAREA' && !node.readOnly) {\n return true;\n }\n if (node.isContentEditable) {\n return true;\n }\n return false;\n}\n\n/**\n * Keep track of our keyboard modality state with `hadKeyboardEvent`.\n * If the most recent user interaction was via the keyboard;\n * and the key press did not include a meta, alt/option, or control key;\n * then the modality is keyboard. Otherwise, the modality is not keyboard.\n * @param {KeyboardEvent} event\n */\nfunction handleKeyDown(event) {\n if (event.metaKey || event.altKey || event.ctrlKey) {\n return;\n }\n hadKeyboardEvent = true;\n}\n\n/**\n * If at any point a user clicks with a pointing device, ensure that we change\n * the modality away from keyboard.\n * This avoids the situation where a user presses a key on an already focused\n * element, and then clicks on a different element, focusing it with a\n * pointing device, while we still think we're in keyboard modality.\n */\nfunction handlePointerDown() {\n hadKeyboardEvent = false;\n}\nfunction handleVisibilityChange() {\n if (this.visibilityState === 'hidden') {\n // If the tab becomes active again, the browser will handle calling focus\n // on the element (Safari actually calls it twice).\n // If this tab change caused a blur on an element with focus-visible,\n // re-apply the class when the user switches back to the tab.\n if (hadFocusVisibleRecently) {\n hadKeyboardEvent = true;\n }\n }\n}\nfunction prepare(doc) {\n doc.addEventListener('keydown', handleKeyDown, true);\n doc.addEventListener('mousedown', handlePointerDown, true);\n doc.addEventListener('pointerdown', handlePointerDown, true);\n doc.addEventListener('touchstart', handlePointerDown, true);\n doc.addEventListener('visibilitychange', handleVisibilityChange, true);\n}\nexport function teardown(doc) {\n doc.removeEventListener('keydown', handleKeyDown, true);\n doc.removeEventListener('mousedown', handlePointerDown, true);\n doc.removeEventListener('pointerdown', handlePointerDown, true);\n doc.removeEventListener('touchstart', handlePointerDown, true);\n doc.removeEventListener('visibilitychange', handleVisibilityChange, true);\n}\nfunction isFocusVisible(event) {\n const {\n target\n } = event;\n try {\n return target.matches(':focus-visible');\n } catch (error) {\n // Browsers not implementing :focus-visible will throw a SyntaxError.\n // We use our own heuristic for those browsers.\n // Rethrow might be better if it's not the expected error but do we really\n // want to crash if focus-visible malfunctioned?\n }\n\n // No need for validFocusTarget check. The user does that by attaching it to\n // focusable events only.\n return hadKeyboardEvent || focusTriggersKeyboardModality(target);\n}\nexport default function useIsFocusVisible() {\n const ref = React.useCallback(node => {\n if (node != null) {\n prepare(node.ownerDocument);\n }\n }, []);\n const isFocusVisibleRef = React.useRef(false);\n\n /**\n * Should be called if a blur event is fired\n */\n function handleBlurVisible() {\n // checking against potential state variable does not suffice if we focus and blur synchronously.\n // React wouldn't have time to trigger a re-render so `focusVisible` would be stale.\n // Ideally we would adjust `isFocusVisible(event)` to look at `relatedTarget` for blur events.\n // This doesn't work in IE11 due to https://github.com/facebook/react/issues/3751\n // TODO: check again if React releases their internal changes to focus event handling (https://github.com/facebook/react/pull/19186).\n if (isFocusVisibleRef.current) {\n // To detect a tab/window switch, we look for a blur event followed\n // rapidly by a visibility change.\n // If we don't see a visibility change within 100ms, it's probably a\n // regular focus change.\n hadFocusVisibleRecently = true;\n hadFocusVisibleRecentlyTimeout.start(100, () => {\n hadFocusVisibleRecently = false;\n });\n isFocusVisibleRef.current = false;\n return true;\n }\n return false;\n }\n\n /**\n * Should be called if a blur event is fired\n */\n function handleFocusVisible(event) {\n if (isFocusVisible(event)) {\n isFocusVisibleRef.current = true;\n return true;\n }\n return false;\n }\n return {\n isFocusVisibleRef,\n onFocus: handleFocusVisible,\n onBlur: handleBlurVisible,\n ref\n };\n}", "'use client';\n\nimport * as React from 'react';\nconst usePreviousProps = value => {\n const ref = React.useRef({});\n React.useEffect(() => {\n ref.current = value;\n });\n return ref.current;\n};\nexport default usePreviousProps;", "import * as React from 'react';\n\n/**\n * Gets only the valid children of a component,\n * and ignores any nullish or falsy child.\n *\n * @param children the children\n */\nexport default function getValidReactChildren(children) {\n return React.Children.toArray(children).filter(child => /*#__PURE__*/React.isValidElement(child));\n}", "export function getTypeByValue(value) {\n const valueType = typeof value;\n switch (valueType) {\n case 'number':\n if (Number.isNaN(value)) {\n return 'NaN';\n }\n if (!Number.isFinite(value)) {\n return 'Infinity';\n }\n if (value !== Math.floor(value)) {\n return 'float';\n }\n return 'number';\n case 'object':\n if (value === null) {\n return 'null';\n }\n return value.constructor.name;\n default:\n return valueType;\n }\n}\nfunction requiredInteger(props, propName, componentName, location) {\n const propValue = props[propName];\n if (propValue == null || !Number.isInteger(propValue)) {\n const propType = getTypeByValue(propValue);\n return new RangeError(`Invalid ${location} \\`${propName}\\` of type \\`${propType}\\` supplied to \\`${componentName}\\`, expected \\`integer\\`.`);\n }\n return null;\n}\nfunction validator(props, propName, ...other) {\n const propValue = props[propName];\n if (propValue === undefined) {\n return null;\n }\n return requiredInteger(props, propName, ...other);\n}\nfunction validatorNoop() {\n return null;\n}\nvalidator.isRequired = requiredInteger;\nvalidatorNoop.isRequired = validatorNoop;\nexport default process.env.NODE_ENV === 'production' ? validatorNoop : validator;", "import * as React from 'react';\n\n/**\n * Returns the ref of a React node handling differences between React 19 and older versions.\n * It will return null if the node is not a valid React element.\n *\n * @param element React.ReactNode\n * @returns React.Ref | null\n *\n * @deprecated Use getReactElementRef instead\n */\nexport default function getReactNodeRef(element) {\n if (!element || ! /*#__PURE__*/React.isValidElement(element)) {\n return null;\n }\n\n // 'ref' is passed as prop in React 19, whereas 'ref' is directly attached to children in older versions\n return element.props.propertyIsEnumerable('ref') ? element.props.ref :\n // @ts-expect-error element.ref is not included in the ReactElement type\n // We cannot check for it, but isValidElement is true at this point\n // https://github.com/DefinitelyTyped/DefinitelyTyped/discussions/70189\n element.ref;\n}", "import * as React from 'react';\n\n/**\n * Returns the ref of a React element handling differences between React 19 and older versions.\n * It will throw runtime error if the element is not a valid React element.\n *\n * @param element React.ReactElement\n * @returns React.Ref | null\n */\nexport default function getReactElementRef(element) {\n // 'ref' is passed as prop in React 19, whereas 'ref' is directly attached to children in older versions\n if (parseInt(React.version, 10) >= 19) {\n return element?.props?.ref || null;\n }\n // @ts-expect-error element.ref is not included in the ReactElement type\n // https://github.com/DefinitelyTyped/DefinitelyTyped/discussions/70189\n return element?.ref || null;\n}", "'use client';\n\nimport * as React from 'react';\nconst ThemeContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== 'production') {\n ThemeContext.displayName = 'ThemeContext';\n}\nexport default ThemeContext;", "import * as React from 'react';\nimport ThemeContext from \"./ThemeContext.js\";\nexport default function useTheme() {\n const theme = React.useContext(ThemeContext);\n if (process.env.NODE_ENV !== 'production') {\n // TODO: uncomment once we enable eslint-plugin-react-compiler eslint-disable-next-line react-compiler/react-compiler\n // eslint-disable-next-line react-hooks/rules-of-hooks -- It's not required to run React.useDebugValue in production\n React.useDebugValue(theme);\n }\n return theme;\n}", "const hasSymbol = typeof Symbol === 'function' && Symbol.for;\nexport default hasSymbol ? Symbol.for('mui.nested') : '__THEME_NESTED__';", "'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst RtlContext = /*#__PURE__*/React.createContext();\nfunction RtlProvider({\n value,\n ...props\n}) {\n return /*#__PURE__*/_jsx(RtlContext.Provider, {\n value: value ?? true,\n ...props\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? RtlProvider.propTypes = {\n children: PropTypes.node,\n value: PropTypes.bool\n} : void 0;\nexport const useRtl = () => {\n const value = React.useContext(RtlContext);\n return value ?? false;\n};\nexport default RtlProvider;", "'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport resolveProps from '@mui/utils/resolveProps';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst PropsContext = /*#__PURE__*/React.createContext(undefined);\nfunction DefaultPropsProvider({\n value,\n children\n}) {\n return /*#__PURE__*/_jsx(PropsContext.Provider, {\n value: value,\n children: children\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? DefaultPropsProvider.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * @ignore\n */\n children: PropTypes.node,\n /**\n * @ignore\n */\n value: PropTypes.object\n} : void 0;\nfunction getThemeProps(params) {\n const {\n theme,\n name,\n props\n } = params;\n if (!theme || !theme.components || !theme.components[name]) {\n return props;\n }\n const config = theme.components[name];\n if (config.defaultProps) {\n // compatible with v5 signature\n return resolveProps(config.defaultProps, props);\n }\n if (!config.styleOverrides && !config.variants) {\n // v6 signature, no property 'defaultProps'\n return resolveProps(config, props);\n }\n return props;\n}\nexport function useDefaultProps({\n props,\n name\n}) {\n const ctx = React.useContext(PropsContext);\n return getThemeProps({\n props,\n name,\n theme: {\n components: ctx\n }\n });\n}\nexport default DefaultPropsProvider;", "import preprocessStyles from \"./preprocessStyles.js\";\n\n/* eslint-disable @typescript-eslint/naming-convention */\n\n// We need to pass an argument as `{ theme }` for PigmentCSS, but we don't want to\n// allocate more objects.\nconst arg = {\n theme: undefined\n};\n\n/**\n * Memoize style function on theme.\n * Intended to be used in styled() calls that only need access to the theme.\n */\nexport default function unstable_memoTheme(styleFn) {\n let lastValue;\n let lastTheme;\n return function styleMemoized(props) {\n let value = lastValue;\n if (value === undefined || props.theme !== lastTheme) {\n arg.theme = props.theme;\n value = preprocessStyles(styleFn(arg));\n lastValue = value;\n lastTheme = props.theme;\n }\n return value;\n };\n}", "'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { GlobalStyles } from '@mui/styled-engine';\nimport { useTheme as muiUseTheme } from '@mui/private-theming';\nimport useEnhancedEffect from '@mui/utils/useEnhancedEffect';\nimport ThemeProvider from \"../ThemeProvider/index.js\";\nimport InitColorSchemeScript, { DEFAULT_COLOR_SCHEME_STORAGE_KEY, DEFAULT_MODE_STORAGE_KEY } from \"../InitColorSchemeScript/InitColorSchemeScript.js\";\nimport useCurrentColorScheme from \"./useCurrentColorScheme.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport const DISABLE_CSS_TRANSITION = '*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}';\nexport default function createCssVarsProvider(options) {\n const {\n themeId,\n /**\n * This `theme` object needs to follow a certain structure to\n * be used correctly by the finel `CssVarsProvider`. It should have a\n * `colorSchemes` key with the light and dark (and any other) palette.\n * It should also ideally have a vars object created using `prepareCssVars`.\n */\n theme: defaultTheme = {},\n modeStorageKey: defaultModeStorageKey = DEFAULT_MODE_STORAGE_KEY,\n colorSchemeStorageKey: defaultColorSchemeStorageKey = DEFAULT_COLOR_SCHEME_STORAGE_KEY,\n disableTransitionOnChange: designSystemTransitionOnChange = false,\n defaultColorScheme,\n resolveTheme\n } = options;\n const defaultContext = {\n allColorSchemes: [],\n colorScheme: undefined,\n darkColorScheme: undefined,\n lightColorScheme: undefined,\n mode: undefined,\n setColorScheme: () => {},\n setMode: () => {},\n systemMode: undefined\n };\n const ColorSchemeContext = /*#__PURE__*/React.createContext(undefined);\n if (process.env.NODE_ENV !== 'production') {\n ColorSchemeContext.displayName = 'ColorSchemeContext';\n }\n const useColorScheme = () => React.useContext(ColorSchemeContext) || defaultContext;\n const defaultColorSchemes = {};\n const defaultComponents = {};\n function CssVarsProvider(props) {\n const {\n children,\n theme: themeProp,\n modeStorageKey = defaultModeStorageKey,\n colorSchemeStorageKey = defaultColorSchemeStorageKey,\n disableTransitionOnChange = designSystemTransitionOnChange,\n storageManager,\n storageWindow = typeof window === 'undefined' ? undefined : window,\n documentNode = typeof document === 'undefined' ? undefined : document,\n colorSchemeNode = typeof document === 'undefined' ? undefined : document.documentElement,\n disableNestedContext = false,\n disableStyleSheetGeneration = false,\n defaultMode: initialMode = 'system',\n forceThemeRerender = false,\n noSsr\n } = props;\n const hasMounted = React.useRef(false);\n const upperTheme = muiUseTheme();\n const ctx = React.useContext(ColorSchemeContext);\n const nested = !!ctx && !disableNestedContext;\n const initialTheme = React.useMemo(() => {\n if (themeProp) {\n return themeProp;\n }\n return typeof defaultTheme === 'function' ? defaultTheme() : defaultTheme;\n }, [themeProp]);\n const scopedTheme = initialTheme[themeId];\n const restThemeProp = scopedTheme || initialTheme;\n const {\n colorSchemes = defaultColorSchemes,\n components = defaultComponents,\n cssVarPrefix\n } = restThemeProp;\n const joinedColorSchemes = Object.keys(colorSchemes).filter(k => !!colorSchemes[k]).join(',');\n const allColorSchemes = React.useMemo(() => joinedColorSchemes.split(','), [joinedColorSchemes]);\n const defaultLightColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.light;\n const defaultDarkColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.dark;\n const defaultMode = colorSchemes[defaultLightColorScheme] && colorSchemes[defaultDarkColorScheme] ? initialMode : colorSchemes[restThemeProp.defaultColorScheme]?.palette?.mode || restThemeProp.palette?.mode;\n\n // 1. Get the data about the `mode`, `colorScheme`, and setter functions.\n const {\n mode: stateMode,\n setMode,\n systemMode,\n lightColorScheme,\n darkColorScheme,\n colorScheme: stateColorScheme,\n setColorScheme\n } = useCurrentColorScheme({\n supportedColorSchemes: allColorSchemes,\n defaultLightColorScheme,\n defaultDarkColorScheme,\n modeStorageKey,\n colorSchemeStorageKey,\n defaultMode,\n storageManager,\n storageWindow,\n noSsr\n });\n let mode = stateMode;\n let colorScheme = stateColorScheme;\n if (nested) {\n mode = ctx.mode;\n colorScheme = ctx.colorScheme;\n }\n if (process.env.NODE_ENV !== 'production') {\n if (forceThemeRerender && !restThemeProp.vars) {\n console.warn(['MUI: The `forceThemeRerender` prop should only be used with CSS theme variables.', 'Note that it will slow down the app when changing between modes, so only do this when you cannot find a better solution.'].join('\\n'));\n }\n }\n\n // `colorScheme` is undefined on the server and hydration phase\n let calculatedColorScheme = colorScheme || restThemeProp.defaultColorScheme;\n if (restThemeProp.vars && !forceThemeRerender) {\n calculatedColorScheme = restThemeProp.defaultColorScheme;\n }\n const memoTheme = React.useMemo(() => {\n // 2. get the `vars` object that refers to the CSS custom properties\n const themeVars = restThemeProp.generateThemeVars?.() || restThemeProp.vars;\n\n // 3. Start composing the theme object\n const theme = {\n ...restThemeProp,\n components,\n colorSchemes,\n cssVarPrefix,\n vars: themeVars\n };\n if (typeof theme.generateSpacing === 'function') {\n theme.spacing = theme.generateSpacing();\n }\n\n // 4. Resolve the color scheme and merge it to the theme\n if (calculatedColorScheme) {\n const scheme = colorSchemes[calculatedColorScheme];\n if (scheme && typeof scheme === 'object') {\n // 4.1 Merge the selected color scheme to the theme\n Object.keys(scheme).forEach(schemeKey => {\n if (scheme[schemeKey] && typeof scheme[schemeKey] === 'object') {\n // shallow merge the 1st level structure of the theme.\n theme[schemeKey] = {\n ...theme[schemeKey],\n ...scheme[schemeKey]\n };\n } else {\n theme[schemeKey] = scheme[schemeKey];\n }\n });\n }\n }\n return resolveTheme ? resolveTheme(theme) : theme;\n }, [restThemeProp, calculatedColorScheme, components, colorSchemes, cssVarPrefix]);\n\n // 5. Declaring effects\n // 5.1 Updates the selector value to use the current color scheme which tells CSS to use the proper stylesheet.\n const colorSchemeSelector = restThemeProp.colorSchemeSelector;\n useEnhancedEffect(() => {\n if (colorScheme && colorSchemeNode && colorSchemeSelector && colorSchemeSelector !== 'media') {\n const selector = colorSchemeSelector;\n let rule = colorSchemeSelector;\n if (selector === 'class') {\n rule = `.%s`;\n }\n if (selector === 'data') {\n rule = `[data-%s]`;\n }\n if (selector?.startsWith('data-') && !selector.includes('%s')) {\n // 'data-mui-color-scheme' -> '[data-mui-color-scheme=\"%s\"]'\n rule = `[${selector}=\"%s\"]`;\n }\n if (rule.startsWith('.')) {\n colorSchemeNode.classList.remove(...allColorSchemes.map(scheme => rule.substring(1).replace('%s', scheme)));\n colorSchemeNode.classList.add(rule.substring(1).replace('%s', colorScheme));\n } else {\n const matches = rule.replace('%s', colorScheme).match(/\\[([^\\]]+)\\]/);\n if (matches) {\n const [attr, value] = matches[1].split('=');\n if (!value) {\n // for attributes like `data-theme-dark`, `data-theme-light`\n // remove all the existing data attributes before setting the new one\n allColorSchemes.forEach(scheme => {\n colorSchemeNode.removeAttribute(attr.replace(colorScheme, scheme));\n });\n }\n colorSchemeNode.setAttribute(attr, value ? value.replace(/\"|'/g, '') : '');\n } else {\n colorSchemeNode.setAttribute(rule, colorScheme);\n }\n }\n }\n }, [colorScheme, colorSchemeSelector, colorSchemeNode, allColorSchemes]);\n\n // 5.2 Remove the CSS transition when color scheme changes to create instant experience.\n // credit: https://github.com/pacocoursey/next-themes/blob/b5c2bad50de2d61ad7b52a9c5cdc801a78507d7a/index.tsx#L313\n React.useEffect(() => {\n let timer;\n if (disableTransitionOnChange && hasMounted.current && documentNode) {\n const css = documentNode.createElement('style');\n css.appendChild(documentNode.createTextNode(DISABLE_CSS_TRANSITION));\n documentNode.head.appendChild(css);\n\n // Force browser repaint\n (() => window.getComputedStyle(documentNode.body))();\n timer = setTimeout(() => {\n documentNode.head.removeChild(css);\n }, 1);\n }\n return () => {\n clearTimeout(timer);\n };\n }, [colorScheme, disableTransitionOnChange, documentNode]);\n React.useEffect(() => {\n hasMounted.current = true;\n return () => {\n hasMounted.current = false;\n };\n }, []);\n const contextValue = React.useMemo(() => ({\n allColorSchemes,\n colorScheme,\n darkColorScheme,\n lightColorScheme,\n mode,\n setColorScheme,\n setMode: process.env.NODE_ENV === 'production' ? setMode : newMode => {\n if (memoTheme.colorSchemeSelector === 'media') {\n console.error(['MUI: The `setMode` function has no effect if `colorSchemeSelector` is `media` (`media` is the default value).', 'To toggle the mode manually, please configure `colorSchemeSelector` to use a class or data attribute.', 'To learn more, visit https://mui.com/material-ui/customization/css-theme-variables/configuration/#toggling-dark-mode-manually'].join('\\n'));\n }\n setMode(newMode);\n },\n systemMode\n }), [allColorSchemes, colorScheme, darkColorScheme, lightColorScheme, mode, setColorScheme, setMode, systemMode, memoTheme.colorSchemeSelector]);\n let shouldGenerateStyleSheet = true;\n if (disableStyleSheetGeneration || restThemeProp.cssVariables === false || nested && upperTheme?.cssVarPrefix === cssVarPrefix) {\n shouldGenerateStyleSheet = false;\n }\n const element = /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/_jsx(ThemeProvider, {\n themeId: scopedTheme ? themeId : undefined,\n theme: memoTheme,\n children: children\n }), shouldGenerateStyleSheet && /*#__PURE__*/_jsx(GlobalStyles, {\n styles: memoTheme.generateStyleSheets?.() || []\n })]\n });\n if (nested) {\n return element;\n }\n return /*#__PURE__*/_jsx(ColorSchemeContext.Provider, {\n value: contextValue,\n children: element\n });\n }\n process.env.NODE_ENV !== \"production\" ? CssVarsProvider.propTypes = {\n /**\n * The component tree.\n */\n children: PropTypes.node,\n /**\n * The node used to attach the color-scheme attribute\n */\n colorSchemeNode: PropTypes.any,\n /**\n * localStorage key used to store `colorScheme`\n */\n colorSchemeStorageKey: PropTypes.string,\n /**\n * The default mode when the storage is empty,\n * require the theme to have `colorSchemes` with light and dark.\n */\n defaultMode: PropTypes.string,\n /**\n * If `true`, the provider creates its own context and generate stylesheet as if it is a root `CssVarsProvider`.\n */\n disableNestedContext: PropTypes.bool,\n /**\n * If `true`, the style sheet won't be generated.\n *\n * This is useful for controlling nested CssVarsProvider behavior.\n */\n disableStyleSheetGeneration: PropTypes.bool,\n /**\n * Disable CSS transitions when switching between modes or color schemes.\n */\n disableTransitionOnChange: PropTypes.bool,\n /**\n * The document to attach the attribute to.\n */\n documentNode: PropTypes.any,\n /**\n * If `true`, theme values are recalculated when the mode changes.\n */\n forceThemeRerender: PropTypes.bool,\n /**\n * The key in the local storage used to store current color scheme.\n */\n modeStorageKey: PropTypes.string,\n /**\n * If `true`, the mode will be the same value as the storage without an extra rerendering after the hydration.\n * You should use this option in conjuction with `InitColorSchemeScript` component.\n */\n noSsr: PropTypes.bool,\n /**\n * The storage manager to be used for storing the mode and color scheme\n * @default using `window.localStorage`\n */\n storageManager: PropTypes.func,\n /**\n * The window that attaches the 'storage' event listener.\n * @default window\n */\n storageWindow: PropTypes.any,\n /**\n * The calculated theme object that will be passed through context.\n */\n theme: PropTypes.object\n } : void 0;\n const defaultLightColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.light;\n const defaultDarkColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.dark;\n const getInitColorSchemeScript = params => InitColorSchemeScript({\n colorSchemeStorageKey: defaultColorSchemeStorageKey,\n defaultLightColorScheme,\n defaultDarkColorScheme,\n modeStorageKey: defaultModeStorageKey,\n ...params\n });\n return {\n CssVarsProvider,\n useColorScheme,\n getInitColorSchemeScript\n };\n}", "/**\n * Split this component for RSC import\n */\nimport * as React from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const DEFAULT_MODE_STORAGE_KEY = 'mode';\nexport const DEFAULT_COLOR_SCHEME_STORAGE_KEY = 'color-scheme';\nexport const DEFAULT_ATTRIBUTE = 'data-color-scheme';\nexport default function InitColorSchemeScript(options) {\n const {\n defaultMode = 'system',\n defaultLightColorScheme = 'light',\n defaultDarkColorScheme = 'dark',\n modeStorageKey = DEFAULT_MODE_STORAGE_KEY,\n colorSchemeStorageKey = DEFAULT_COLOR_SCHEME_STORAGE_KEY,\n attribute: initialAttribute = DEFAULT_ATTRIBUTE,\n colorSchemeNode = 'document.documentElement',\n nonce\n } = options || {};\n let setter = '';\n let attribute = initialAttribute;\n if (initialAttribute === 'class') {\n attribute = '.%s';\n }\n if (initialAttribute === 'data') {\n attribute = '[data-%s]';\n }\n if (attribute.startsWith('.')) {\n const selector = attribute.substring(1);\n setter += `${colorSchemeNode}.classList.remove('${selector}'.replace('%s', light), '${selector}'.replace('%s', dark));\n ${colorSchemeNode}.classList.add('${selector}'.replace('%s', colorScheme));`;\n }\n const matches = attribute.match(/\\[([^\\]]+)\\]/); // case [data-color-scheme=%s] or [data-color-scheme]\n if (matches) {\n const [attr, value] = matches[1].split('=');\n if (!value) {\n setter += `${colorSchemeNode}.removeAttribute('${attr}'.replace('%s', light));\n ${colorSchemeNode}.removeAttribute('${attr}'.replace('%s', dark));`;\n }\n setter += `\n ${colorSchemeNode}.setAttribute('${attr}'.replace('%s', colorScheme), ${value ? `${value}.replace('%s', colorScheme)` : '\"\"'});`;\n } else {\n setter += `${colorSchemeNode}.setAttribute('${attribute}', colorScheme);`;\n }\n return /*#__PURE__*/_jsx(\"script\", {\n suppressHydrationWarning: true,\n nonce: typeof window === 'undefined' ? nonce : ''\n // eslint-disable-next-line react/no-danger\n ,\n dangerouslySetInnerHTML: {\n __html: `(function() {\ntry {\n let colorScheme = '';\n const mode = localStorage.getItem('${modeStorageKey}') || '${defaultMode}';\n const dark = localStorage.getItem('${colorSchemeStorageKey}-dark') || '${defaultDarkColorScheme}';\n const light = localStorage.getItem('${colorSchemeStorageKey}-light') || '${defaultLightColorScheme}';\n if (mode === 'system') {\n // handle system mode\n const mql = window.matchMedia('(prefers-color-scheme: dark)');\n if (mql.matches) {\n colorScheme = dark\n } else {\n colorScheme = light\n }\n }\n if (mode === 'light') {\n colorScheme = light;\n }\n if (mode === 'dark') {\n colorScheme = dark;\n }\n if (colorScheme) {\n ${setter}\n }\n} catch(e){}})();`\n }\n }, \"mui-color-scheme-init\");\n}", "'use client';\n\nimport * as React from 'react';\nimport { DEFAULT_MODE_STORAGE_KEY, DEFAULT_COLOR_SCHEME_STORAGE_KEY } from \"../InitColorSchemeScript/InitColorSchemeScript.js\";\nimport localStorageManager from \"./localStorageManager.js\";\nfunction noop() {}\nexport function getSystemMode(mode) {\n if (typeof window !== 'undefined' && typeof window.matchMedia === 'function' && mode === 'system') {\n const mql = window.matchMedia('(prefers-color-scheme: dark)');\n if (mql.matches) {\n return 'dark';\n }\n return 'light';\n }\n return undefined;\n}\nfunction processState(state, callback) {\n if (state.mode === 'light' || state.mode === 'system' && state.systemMode === 'light') {\n return callback('light');\n }\n if (state.mode === 'dark' || state.mode === 'system' && state.systemMode === 'dark') {\n return callback('dark');\n }\n return undefined;\n}\nexport function getColorScheme(state) {\n return processState(state, mode => {\n if (mode === 'light') {\n return state.lightColorScheme;\n }\n if (mode === 'dark') {\n return state.darkColorScheme;\n }\n return undefined;\n });\n}\nexport default function useCurrentColorScheme(options) {\n const {\n defaultMode = 'light',\n defaultLightColorScheme,\n defaultDarkColorScheme,\n supportedColorSchemes = [],\n modeStorageKey = DEFAULT_MODE_STORAGE_KEY,\n colorSchemeStorageKey = DEFAULT_COLOR_SCHEME_STORAGE_KEY,\n storageWindow = typeof window === 'undefined' ? undefined : window,\n storageManager = localStorageManager,\n noSsr = false\n } = options;\n const joinedColorSchemes = supportedColorSchemes.join(',');\n const isMultiSchemes = supportedColorSchemes.length > 1;\n const modeStorage = React.useMemo(() => storageManager?.({\n key: modeStorageKey,\n storageWindow\n }), [storageManager, modeStorageKey, storageWindow]);\n const lightStorage = React.useMemo(() => storageManager?.({\n key: `${colorSchemeStorageKey}-light`,\n storageWindow\n }), [storageManager, colorSchemeStorageKey, storageWindow]);\n const darkStorage = React.useMemo(() => storageManager?.({\n key: `${colorSchemeStorageKey}-dark`,\n storageWindow\n }), [storageManager, colorSchemeStorageKey, storageWindow]);\n const [state, setState] = React.useState(() => {\n const initialMode = modeStorage?.get(defaultMode) || defaultMode;\n const lightColorScheme = lightStorage?.get(defaultLightColorScheme) || defaultLightColorScheme;\n const darkColorScheme = darkStorage?.get(defaultDarkColorScheme) || defaultDarkColorScheme;\n return {\n mode: initialMode,\n systemMode: getSystemMode(initialMode),\n lightColorScheme,\n darkColorScheme\n };\n });\n const [isClient, setIsClient] = React.useState(noSsr || !isMultiSchemes);\n React.useEffect(() => {\n setIsClient(true); // to rerender the component after hydration\n }, []);\n const colorScheme = getColorScheme(state);\n const setMode = React.useCallback(mode => {\n setState(currentState => {\n if (mode === currentState.mode) {\n // do nothing if mode does not change\n return currentState;\n }\n const newMode = mode ?? defaultMode;\n modeStorage?.set(newMode);\n return {\n ...currentState,\n mode: newMode,\n systemMode: getSystemMode(newMode)\n };\n });\n }, [modeStorage, defaultMode]);\n const setColorScheme = React.useCallback(value => {\n if (!value) {\n setState(currentState => {\n lightStorage?.set(defaultLightColorScheme);\n darkStorage?.set(defaultDarkColorScheme);\n return {\n ...currentState,\n lightColorScheme: defaultLightColorScheme,\n darkColorScheme: defaultDarkColorScheme\n };\n });\n } else if (typeof value === 'string') {\n if (value && !joinedColorSchemes.includes(value)) {\n console.error(`\\`${value}\\` does not exist in \\`theme.colorSchemes\\`.`);\n } else {\n setState(currentState => {\n const newState = {\n ...currentState\n };\n processState(currentState, mode => {\n if (mode === 'light') {\n lightStorage?.set(value);\n newState.lightColorScheme = value;\n }\n if (mode === 'dark') {\n darkStorage?.set(value);\n newState.darkColorScheme = value;\n }\n });\n return newState;\n });\n }\n } else {\n setState(currentState => {\n const newState = {\n ...currentState\n };\n const newLightColorScheme = value.light === null ? defaultLightColorScheme : value.light;\n const newDarkColorScheme = value.dark === null ? defaultDarkColorScheme : value.dark;\n if (newLightColorScheme) {\n if (!joinedColorSchemes.includes(newLightColorScheme)) {\n console.error(`\\`${newLightColorScheme}\\` does not exist in \\`theme.colorSchemes\\`.`);\n } else {\n newState.lightColorScheme = newLightColorScheme;\n lightStorage?.set(newLightColorScheme);\n }\n }\n if (newDarkColorScheme) {\n if (!joinedColorSchemes.includes(newDarkColorScheme)) {\n console.error(`\\`${newDarkColorScheme}\\` does not exist in \\`theme.colorSchemes\\`.`);\n } else {\n newState.darkColorScheme = newDarkColorScheme;\n darkStorage?.set(newDarkColorScheme);\n }\n }\n return newState;\n });\n }\n }, [joinedColorSchemes, lightStorage, darkStorage, defaultLightColorScheme, defaultDarkColorScheme]);\n const handleMediaQuery = React.useCallback(event => {\n if (state.mode === 'system') {\n setState(currentState => {\n const systemMode = event?.matches ? 'dark' : 'light';\n\n // Early exit, nothing changed.\n if (currentState.systemMode === systemMode) {\n return currentState;\n }\n return {\n ...currentState,\n systemMode\n };\n });\n }\n }, [state.mode]);\n\n // Ref hack to avoid adding handleMediaQuery as a dep\n const mediaListener = React.useRef(handleMediaQuery);\n mediaListener.current = handleMediaQuery;\n React.useEffect(() => {\n if (typeof window.matchMedia !== 'function' || !isMultiSchemes) {\n return undefined;\n }\n const handler = (...args) => mediaListener.current(...args);\n\n // Always listen to System preference\n const media = window.matchMedia('(prefers-color-scheme: dark)');\n\n // Intentionally use deprecated listener methods to support iOS & old browsers\n media.addListener(handler);\n handler(media);\n return () => {\n media.removeListener(handler);\n };\n }, [isMultiSchemes]);\n\n // Handle when localStorage has changed\n React.useEffect(() => {\n if (isMultiSchemes) {\n const unsubscribeMode = modeStorage?.subscribe(value => {\n if (!value || ['light', 'dark', 'system'].includes(value)) {\n setMode(value || defaultMode);\n }\n }) || noop;\n const unsubscribeLight = lightStorage?.subscribe(value => {\n if (!value || joinedColorSchemes.match(value)) {\n setColorScheme({\n light: value\n });\n }\n }) || noop;\n const unsubscribeDark = darkStorage?.subscribe(value => {\n if (!value || joinedColorSchemes.match(value)) {\n setColorScheme({\n dark: value\n });\n }\n }) || noop;\n return () => {\n unsubscribeMode();\n unsubscribeLight();\n unsubscribeDark();\n };\n }\n return undefined;\n }, [setColorScheme, setMode, joinedColorSchemes, defaultMode, storageWindow, isMultiSchemes, modeStorage, lightStorage, darkStorage]);\n return {\n ...state,\n mode: isClient ? state.mode : undefined,\n systemMode: isClient ? state.systemMode : undefined,\n colorScheme: isClient ? colorScheme : undefined,\n setMode,\n setColorScheme\n };\n}", "/**\n * The benefit of this function is to help developers get CSS var from theme without specifying the whole variable\n * and they does not need to remember the prefix (defined once).\n */\nexport default function createGetCssVar(prefix = '') {\n function appendVar(...vars) {\n if (!vars.length) {\n return '';\n }\n const value = vars[0];\n if (typeof value === 'string' && !value.match(/(#|\\(|\\)|(-?(\\d*\\.)?\\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\\d*\\.)?\\d+)$|(\\d+ \\d+ \\d+)/)) {\n return `, var(--${prefix ? `${prefix}-` : ''}${value}${appendVar(...vars.slice(1))})`;\n }\n return `, ${value}`;\n }\n\n // AdditionalVars makes `getCssVar` less strict, so it can be use like this `getCssVar('non-mui-variable')` without type error.\n const getCssVar = (field, ...fallbacks) => {\n return `var(--${prefix ? `${prefix}-` : ''}${field}${appendVar(...fallbacks)})`;\n };\n return getCssVar;\n}", "/**\n * This function create an object from keys, value and then assign to target\n *\n * @param {Object} obj : the target object to be assigned\n * @param {string[]} keys\n * @param {string | number} value\n *\n * @example\n * const source = {}\n * assignNestedKeys(source, ['palette', 'primary'], 'var(--palette-primary)')\n * console.log(source) // { palette: { primary: 'var(--palette-primary)' } }\n *\n * @example\n * const source = { palette: { primary: 'var(--palette-primary)' } }\n * assignNestedKeys(source, ['palette', 'secondary'], 'var(--palette-secondary)')\n * console.log(source) // { palette: { primary: 'var(--palette-primary)', secondary: 'var(--palette-secondary)' } }\n */\nexport const assignNestedKeys = (obj, keys, value, arrayKeys = []) => {\n let temp = obj;\n keys.forEach((k, index) => {\n if (index === keys.length - 1) {\n if (Array.isArray(temp)) {\n temp[Number(k)] = value;\n } else if (temp && typeof temp === 'object') {\n temp[k] = value;\n }\n } else if (temp && typeof temp === 'object') {\n if (!temp[k]) {\n temp[k] = arrayKeys.includes(k) ? [] : {};\n }\n temp = temp[k];\n }\n });\n};\n\n/**\n *\n * @param {Object} obj : source object\n * @param {Function} callback : a function that will be called when\n * - the deepest key in source object is reached\n * - the value of the deepest key is NOT `undefined` | `null`\n *\n * @example\n * walkObjectDeep({ palette: { primary: { main: '#000000' } } }, console.log)\n * // ['palette', 'primary', 'main'] '#000000'\n */\nexport const walkObjectDeep = (obj, callback, shouldSkipPaths) => {\n function recurse(object, parentKeys = [], arrayKeys = []) {\n Object.entries(object).forEach(([key, value]) => {\n if (!shouldSkipPaths || shouldSkipPaths && !shouldSkipPaths([...parentKeys, key])) {\n if (value !== undefined && value !== null) {\n if (typeof value === 'object' && Object.keys(value).length > 0) {\n recurse(value, [...parentKeys, key], Array.isArray(value) ? [...arrayKeys, key] : arrayKeys);\n } else {\n callback([...parentKeys, key], value, arrayKeys);\n }\n }\n }\n });\n }\n recurse(obj);\n};\nconst getCssValue = (keys, value) => {\n if (typeof value === 'number') {\n if (['lineHeight', 'fontWeight', 'opacity', 'zIndex'].some(prop => keys.includes(prop))) {\n // CSS property that are unitless\n return value;\n }\n const lastKey = keys[keys.length - 1];\n if (lastKey.toLowerCase().includes('opacity')) {\n // opacity values are unitless\n return value;\n }\n return `${value}px`;\n }\n return value;\n};\n\n/**\n * a function that parse theme and return { css, vars }\n *\n * @param {Object} theme\n * @param {{\n * prefix?: string,\n * shouldSkipGeneratingVar?: (objectPathKeys: Array, value: string | number) => boolean\n * }} options.\n * `prefix`: The prefix of the generated CSS variables. This function does not change the value.\n *\n * @returns {{ css: Object, vars: Object }} `css` is the stylesheet, `vars` is an object to get css variable (same structure as theme).\n *\n * @example\n * const { css, vars } = parser({\n * fontSize: 12,\n * lineHeight: 1.2,\n * palette: { primary: { 500: 'var(--color)' } }\n * }, { prefix: 'foo' })\n *\n * console.log(css) // { '--foo-fontSize': '12px', '--foo-lineHeight': 1.2, '--foo-palette-primary-500': 'var(--color)' }\n * console.log(vars) // { fontSize: 'var(--foo-fontSize)', lineHeight: 'var(--foo-lineHeight)', palette: { primary: { 500: 'var(--foo-palette-primary-500)' } } }\n */\nexport default function cssVarsParser(theme, options) {\n const {\n prefix,\n shouldSkipGeneratingVar\n } = options || {};\n const css = {};\n const vars = {};\n const varsWithDefaults = {};\n walkObjectDeep(theme, (keys, value, arrayKeys) => {\n if (typeof value === 'string' || typeof value === 'number') {\n if (!shouldSkipGeneratingVar || !shouldSkipGeneratingVar(keys, value)) {\n // only create css & var if `shouldSkipGeneratingVar` return false\n const cssVar = `--${prefix ? `${prefix}-` : ''}${keys.join('-')}`;\n const resolvedValue = getCssValue(keys, value);\n Object.assign(css, {\n [cssVar]: resolvedValue\n });\n assignNestedKeys(vars, keys, `var(${cssVar})`, arrayKeys);\n assignNestedKeys(varsWithDefaults, keys, `var(${cssVar}, ${resolvedValue})`, arrayKeys);\n }\n }\n }, keys => keys[0] === 'vars' // skip 'vars/*' paths\n );\n return {\n css,\n vars,\n varsWithDefaults\n };\n}", "import deepmerge from '@mui/utils/deepmerge';\nimport cssVarsParser from \"./cssVarsParser.js\";\nfunction prepareCssVars(theme, parserConfig = {}) {\n const {\n getSelector = defaultGetSelector,\n disableCssColorScheme,\n colorSchemeSelector: selector\n } = parserConfig;\n // @ts-ignore - ignore components do not exist\n const {\n colorSchemes = {},\n components,\n defaultColorScheme = 'light',\n ...otherTheme\n } = theme;\n const {\n vars: rootVars,\n css: rootCss,\n varsWithDefaults: rootVarsWithDefaults\n } = cssVarsParser(otherTheme, parserConfig);\n let themeVars = rootVarsWithDefaults;\n const colorSchemesMap = {};\n const {\n [defaultColorScheme]: defaultScheme,\n ...otherColorSchemes\n } = colorSchemes;\n Object.entries(otherColorSchemes || {}).forEach(([key, scheme]) => {\n const {\n vars,\n css,\n varsWithDefaults\n } = cssVarsParser(scheme, parserConfig);\n themeVars = deepmerge(themeVars, varsWithDefaults);\n colorSchemesMap[key] = {\n css,\n vars\n };\n });\n if (defaultScheme) {\n // default color scheme vars should be merged last to set as default\n const {\n css,\n vars,\n varsWithDefaults\n } = cssVarsParser(defaultScheme, parserConfig);\n themeVars = deepmerge(themeVars, varsWithDefaults);\n colorSchemesMap[defaultColorScheme] = {\n css,\n vars\n };\n }\n function defaultGetSelector(colorScheme, cssObject) {\n let rule = selector;\n if (selector === 'class') {\n rule = '.%s';\n }\n if (selector === 'data') {\n rule = '[data-%s]';\n }\n if (selector?.startsWith('data-') && !selector.includes('%s')) {\n // 'data-joy-color-scheme' -> '[data-joy-color-scheme=\"%s\"]'\n rule = `[${selector}=\"%s\"]`;\n }\n if (colorScheme) {\n if (rule === 'media') {\n if (theme.defaultColorScheme === colorScheme) {\n return ':root';\n }\n const mode = colorSchemes[colorScheme]?.palette?.mode || colorScheme;\n return {\n [`@media (prefers-color-scheme: ${mode})`]: {\n ':root': cssObject\n }\n };\n }\n if (rule) {\n if (theme.defaultColorScheme === colorScheme) {\n return `:root, ${rule.replace('%s', String(colorScheme))}`;\n }\n return rule.replace('%s', String(colorScheme));\n }\n }\n return ':root';\n }\n const generateThemeVars = () => {\n let vars = {\n ...rootVars\n };\n Object.entries(colorSchemesMap).forEach(([, {\n vars: schemeVars\n }]) => {\n vars = deepmerge(vars, schemeVars);\n });\n return vars;\n };\n const generateStyleSheets = () => {\n const stylesheets = [];\n const colorScheme = theme.defaultColorScheme || 'light';\n function insertStyleSheet(key, css) {\n if (Object.keys(css).length) {\n stylesheets.push(typeof key === 'string' ? {\n [key]: {\n ...css\n }\n } : key);\n }\n }\n insertStyleSheet(getSelector(undefined, {\n ...rootCss\n }), rootCss);\n const {\n [colorScheme]: defaultSchemeVal,\n ...other\n } = colorSchemesMap;\n if (defaultSchemeVal) {\n // default color scheme has to come before other color schemes\n const {\n css\n } = defaultSchemeVal;\n const cssColorSheme = colorSchemes[colorScheme]?.palette?.mode;\n const finalCss = !disableCssColorScheme && cssColorSheme ? {\n colorScheme: cssColorSheme,\n ...css\n } : {\n ...css\n };\n insertStyleSheet(getSelector(colorScheme, {\n ...finalCss\n }), finalCss);\n }\n Object.entries(other).forEach(([key, {\n css\n }]) => {\n const cssColorSheme = colorSchemes[key]?.palette?.mode;\n const finalCss = !disableCssColorScheme && cssColorSheme ? {\n colorScheme: cssColorSheme,\n ...css\n } : {\n ...css\n };\n insertStyleSheet(getSelector(key, {\n ...finalCss\n }), finalCss);\n });\n return stylesheets;\n };\n return {\n vars: themeVars,\n generateThemeVars,\n generateStyleSheets\n };\n}\nexport default prepareCssVars;", "/* eslint-disable import/prefer-default-export */\nexport function createGetColorSchemeSelector(selector) {\n return function getColorSchemeSelector(colorScheme) {\n if (selector === 'media') {\n if (process.env.NODE_ENV !== 'production') {\n if (colorScheme !== 'light' && colorScheme !== 'dark') {\n console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${colorScheme}'.`);\n }\n }\n return `@media (prefers-color-scheme: ${colorScheme})`;\n }\n if (selector) {\n if (selector.startsWith('data-') && !selector.includes('%s')) {\n return `[${selector}=\"${colorScheme}\"] &`;\n }\n if (selector === 'class') {\n return `.${colorScheme} &`;\n }\n if (selector === 'data') {\n return `[data-${colorScheme}] &`;\n }\n return `${selector.replace('%s', colorScheme)} &`;\n }\n return '&';\n };\n}", "export const version = \"7.0.2\";\nexport const major = Number(\"7\");\nexport const minor = Number(\"0\");\nexport const patch = Number(\"2\");\nexport const prerelease = undefined;\nexport default version;", "'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport composeClasses from '@mui/utils/composeClasses';\nimport capitalize from '@mui/utils/capitalize';\nimport useThemePropsSystem from \"../useThemeProps/index.js\";\nimport systemStyled from \"../styled/index.js\";\nimport createTheme from \"../createTheme/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst defaultTheme = createTheme();\nconst defaultCreateStyledComponent = systemStyled('div', {\n name: 'MuiContainer',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[`maxWidth${capitalize(String(ownerState.maxWidth))}`], ownerState.fixed && styles.fixed, ownerState.disableGutters && styles.disableGutters];\n }\n});\nconst useThemePropsDefault = inProps => useThemePropsSystem({\n props: inProps,\n name: 'MuiContainer',\n defaultTheme\n});\nconst useUtilityClasses = (ownerState, componentName) => {\n const getContainerUtilityClass = slot => {\n return generateUtilityClass(componentName, slot);\n };\n const {\n classes,\n fixed,\n disableGutters,\n maxWidth\n } = ownerState;\n const slots = {\n root: ['root', maxWidth && `maxWidth${capitalize(String(maxWidth))}`, fixed && 'fixed', disableGutters && 'disableGutters']\n };\n return composeClasses(slots, getContainerUtilityClass, classes);\n};\nexport default function createContainer(options = {}) {\n const {\n // This will allow adding custom styled fn (for example for custom sx style function)\n createStyledComponent = defaultCreateStyledComponent,\n useThemeProps = useThemePropsDefault,\n componentName = 'MuiContainer'\n } = options;\n const ContainerRoot = createStyledComponent(({\n theme,\n ownerState\n }) => ({\n width: '100%',\n marginLeft: 'auto',\n boxSizing: 'border-box',\n marginRight: 'auto',\n ...(!ownerState.disableGutters && {\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n // @ts-ignore module augmentation fails if custom breakpoints are used\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3)\n }\n })\n }), ({\n theme,\n ownerState\n }) => ownerState.fixed && Object.keys(theme.breakpoints.values).reduce((acc, breakpointValueKey) => {\n const breakpoint = breakpointValueKey;\n const value = theme.breakpoints.values[breakpoint];\n if (value !== 0) {\n // @ts-ignore\n acc[theme.breakpoints.up(breakpoint)] = {\n maxWidth: `${value}${theme.breakpoints.unit}`\n };\n }\n return acc;\n }, {}), ({\n theme,\n ownerState\n }) => ({\n // @ts-ignore module augmentation fails if custom breakpoints are used\n ...(ownerState.maxWidth === 'xs' && {\n // @ts-ignore module augmentation fails if custom breakpoints are used\n [theme.breakpoints.up('xs')]: {\n // @ts-ignore module augmentation fails if custom breakpoints are used\n maxWidth: Math.max(theme.breakpoints.values.xs, 444)\n }\n }),\n ...(ownerState.maxWidth &&\n // @ts-ignore module augmentation fails if custom breakpoints are used\n ownerState.maxWidth !== 'xs' && {\n // @ts-ignore module augmentation fails if custom breakpoints are used\n [theme.breakpoints.up(ownerState.maxWidth)]: {\n // @ts-ignore module augmentation fails if custom breakpoints are used\n maxWidth: `${theme.breakpoints.values[ownerState.maxWidth]}${theme.breakpoints.unit}`\n }\n })\n }));\n const Container = /*#__PURE__*/React.forwardRef(function Container(inProps, ref) {\n const props = useThemeProps(inProps);\n const {\n className,\n component = 'div',\n disableGutters = false,\n fixed = false,\n maxWidth = 'lg',\n classes: classesProp,\n ...other\n } = props;\n const ownerState = {\n ...props,\n component,\n disableGutters,\n fixed,\n maxWidth\n };\n\n // @ts-ignore module augmentation fails if custom breakpoints are used\n const classes = useUtilityClasses(ownerState, componentName);\n return (\n /*#__PURE__*/\n // @ts-ignore theme is injected by the styled util\n _jsx(ContainerRoot, {\n as: component\n // @ts-ignore module augmentation fails if custom breakpoints are used\n ,\n ownerState: ownerState,\n className: clsx(classes.root, className),\n ref: ref,\n ...other\n })\n );\n });\n process.env.NODE_ENV !== \"production\" ? Container.propTypes /* remove-proptypes */ = {\n children: PropTypes.node,\n classes: PropTypes.object,\n className: PropTypes.string,\n component: PropTypes.elementType,\n disableGutters: PropTypes.bool,\n fixed: PropTypes.bool,\n maxWidth: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl', false]), PropTypes.string]),\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n } : void 0;\n return Container;\n}", "'use client';\n\nimport PropTypes from 'prop-types';\nimport createContainer from \"./createContainer.js\";\n\n/**\n *\n * Demos:\n *\n * - [Container (Material UI)](https://mui.com/material-ui/react-container/)\n * - [Container (MUI System)](https://mui.com/system/react-container/)\n *\n * API:\n *\n * - [Container API](https://mui.com/system/api/container/)\n */\nconst Container = createContainer();\nprocess.env.NODE_ENV !== \"production\" ? Container.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * @ignore\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * If `true`, the left and right padding is removed.\n * @default false\n */\n disableGutters: PropTypes.bool,\n /**\n * Set the max-width to match the min-width of the current breakpoint.\n * This is useful if you'd prefer to design for a fixed set of sizes\n * instead of trying to accommodate a fully fluid viewport.\n * It's fluid by default.\n * @default false\n */\n fixed: PropTypes.bool,\n /**\n * Determine the max-width of the container.\n * The container width grows with the size of the screen.\n * Set to `false` to disable `maxWidth`.\n * @default 'lg'\n */\n maxWidth: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl', false]), PropTypes.string]),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default Container;", "import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getContainerUtilityClass(slot) {\n return generateUtilityClass('MuiContainer', slot);\n}\nconst containerClasses = generateUtilityClasses('MuiContainer', ['root', 'disableGutters', 'fixed', 'maxWidthXs', 'maxWidthSm', 'maxWidthMd', 'maxWidthLg', 'maxWidthXl']);\nexport default containerClasses;", "'use client';\n\nimport PropTypes from 'prop-types';\nimport createGrid from \"./createGrid.js\";\n/**\n *\n * Demos:\n *\n * - [Grid (Joy UI)](https://mui.com/joy-ui/react-grid/)\n * - [Grid (Material UI)](https://mui.com/material-ui/react-grid/)\n *\n * API:\n *\n * - [Grid API](https://mui.com/system/api/grid/)\n */\nconst Grid = createGrid();\nprocess.env.NODE_ENV !== \"production\" ? Grid.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * The number of columns.\n * @default 12\n */\n columns: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.arrayOf(PropTypes.number), PropTypes.number, PropTypes.object]),\n /**\n * Defines the horizontal space between the type `item` components.\n * It overrides the value of the `spacing` prop.\n */\n columnSpacing: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),\n /**\n * If `true`, the component will have the flex *container* behavior.\n * You should be wrapping *items* with a *container*.\n * @default false\n */\n container: PropTypes.bool,\n /**\n * Defines the `flex-direction` style property.\n * It is applied for all screen sizes.\n * @default 'row'\n */\n direction: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), PropTypes.arrayOf(PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row'])), PropTypes.object]),\n /**\n * Defines the offset value for the type `item` components.\n */\n offset: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.string, PropTypes.number, PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number])), PropTypes.object]),\n /**\n * Defines the vertical space between the type `item` components.\n * It overrides the value of the `spacing` prop.\n */\n rowSpacing: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),\n /**\n * Defines the size of the the type `item` components.\n */\n size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.string, PropTypes.bool, PropTypes.number, PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.bool, PropTypes.number])), PropTypes.object]),\n /**\n * Defines the space between the type `item` components.\n * It can only be used on a type `container` component.\n * @default 0\n */\n spacing: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),\n /**\n * @ignore\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * @internal\n * The level of the grid starts from `0` and increases when the grid nests\n * inside another grid. Nesting is defined as a container Grid being a direct\n * child of a container Grid.\n *\n * ```js\n * // level 0\n * // level 1\n * // level 2\n * ```\n *\n * Only consecutive grid is considered nesting. A grid container will start at\n * `0` if there are non-Grid container element above it.\n *\n * ```js\n * // level 0\n *
\n * // level 0\n * ```\n *\n * ```js\n * // level 0\n * \n * // level 0\n * ```\n */\n unstable_level: PropTypes.number,\n /**\n * Defines the `flex-wrap` style property.\n * It's applied for all screen sizes.\n * @default 'wrap'\n */\n wrap: PropTypes.oneOf(['nowrap', 'wrap-reverse', 'wrap'])\n} : void 0;\nexport default Grid;", "'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport isMuiElement from '@mui/utils/isMuiElement';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport composeClasses from '@mui/utils/composeClasses';\nimport systemStyled from \"../styled/index.js\";\nimport useThemePropsSystem from \"../useThemeProps/index.js\";\nimport useThemeSystem from \"../useTheme/index.js\";\nimport { extendSxProp } from \"../styleFunctionSx/index.js\";\nimport createTheme from \"../createTheme/index.js\";\nimport { generateGridStyles, generateGridSizeStyles, generateGridColumnsStyles, generateGridColumnSpacingStyles, generateGridRowSpacingStyles, generateGridDirectionStyles, generateGridOffsetStyles, generateSizeClassNames, generateSpacingClassNames, generateDirectionClasses } from \"./gridGenerator.js\";\nimport deleteLegacyGridProps from \"./deleteLegacyGridProps.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst defaultTheme = createTheme();\n\n// widening Theme to any so that the consumer can own the theme structure.\nconst defaultCreateStyledComponent = systemStyled('div', {\n name: 'MuiGrid',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n});\nfunction useThemePropsDefault(props) {\n return useThemePropsSystem({\n props,\n name: 'MuiGrid',\n defaultTheme\n });\n}\nexport default function createGrid(options = {}) {\n const {\n // This will allow adding custom styled fn (for example for custom sx style function)\n createStyledComponent = defaultCreateStyledComponent,\n useThemeProps = useThemePropsDefault,\n useTheme = useThemeSystem,\n componentName = 'MuiGrid'\n } = options;\n const useUtilityClasses = (ownerState, theme) => {\n const {\n container,\n direction,\n spacing,\n wrap,\n size\n } = ownerState;\n const slots = {\n root: ['root', container && 'container', wrap !== 'wrap' && `wrap-xs-${String(wrap)}`, ...generateDirectionClasses(direction), ...generateSizeClassNames(size), ...(container ? generateSpacingClassNames(spacing, theme.breakpoints.keys[0]) : [])]\n };\n return composeClasses(slots, slot => generateUtilityClass(componentName, slot), {});\n };\n function parseResponsiveProp(propValue, breakpoints, shouldUseValue = () => true) {\n const parsedProp = {};\n if (propValue === null) {\n return parsedProp;\n }\n if (Array.isArray(propValue)) {\n propValue.forEach((value, index) => {\n if (value !== null && shouldUseValue(value) && breakpoints.keys[index]) {\n parsedProp[breakpoints.keys[index]] = value;\n }\n });\n } else if (typeof propValue === 'object') {\n Object.keys(propValue).forEach(key => {\n const value = propValue[key];\n if (value !== null && value !== undefined && shouldUseValue(value)) {\n parsedProp[key] = value;\n }\n });\n } else {\n parsedProp[breakpoints.keys[0]] = propValue;\n }\n return parsedProp;\n }\n const GridRoot = createStyledComponent(generateGridColumnsStyles, generateGridColumnSpacingStyles, generateGridRowSpacingStyles, generateGridSizeStyles, generateGridDirectionStyles, generateGridStyles, generateGridOffsetStyles);\n const Grid = /*#__PURE__*/React.forwardRef(function Grid(inProps, ref) {\n const theme = useTheme();\n const themeProps = useThemeProps(inProps);\n const props = extendSxProp(themeProps); // `color` type conflicts with html color attribute.\n\n // TODO v8: Remove when removing the legacy Grid component\n deleteLegacyGridProps(props, theme.breakpoints);\n const {\n className,\n children,\n columns: columnsProp = 12,\n container = false,\n component = 'div',\n direction = 'row',\n wrap = 'wrap',\n size: sizeProp = {},\n offset: offsetProp = {},\n spacing: spacingProp = 0,\n rowSpacing: rowSpacingProp = spacingProp,\n columnSpacing: columnSpacingProp = spacingProp,\n unstable_level: level = 0,\n ...other\n } = props;\n const size = parseResponsiveProp(sizeProp, theme.breakpoints, val => val !== false);\n const offset = parseResponsiveProp(offsetProp, theme.breakpoints);\n const columns = inProps.columns ?? (level ? undefined : columnsProp);\n const spacing = inProps.spacing ?? (level ? undefined : spacingProp);\n const rowSpacing = inProps.rowSpacing ?? inProps.spacing ?? (level ? undefined : rowSpacingProp);\n const columnSpacing = inProps.columnSpacing ?? inProps.spacing ?? (level ? undefined : columnSpacingProp);\n const ownerState = {\n ...props,\n level,\n columns,\n container,\n direction,\n wrap,\n spacing,\n rowSpacing,\n columnSpacing,\n size,\n offset\n };\n const classes = useUtilityClasses(ownerState, theme);\n return /*#__PURE__*/_jsx(GridRoot, {\n ref: ref,\n as: component,\n ownerState: ownerState,\n className: clsx(classes.root, className),\n ...other,\n children: React.Children.map(children, child => {\n if (/*#__PURE__*/React.isValidElement(child) && isMuiElement(child, ['Grid']) && container && child.props.container) {\n return /*#__PURE__*/React.cloneElement(child, {\n unstable_level: child.props?.unstable_level ?? level + 1\n });\n }\n return child;\n })\n });\n });\n process.env.NODE_ENV !== \"production\" ? Grid.propTypes /* remove-proptypes */ = {\n children: PropTypes.node,\n className: PropTypes.string,\n columns: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.number), PropTypes.number, PropTypes.object]),\n columnSpacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),\n component: PropTypes.elementType,\n container: PropTypes.bool,\n direction: PropTypes.oneOfType([PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), PropTypes.arrayOf(PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row'])), PropTypes.object]),\n offset: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number])), PropTypes.object]),\n rowSpacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),\n size: PropTypes.oneOfType([PropTypes.string, PropTypes.bool, PropTypes.number, PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.bool, PropTypes.number])), PropTypes.object]),\n spacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n wrap: PropTypes.oneOf(['nowrap', 'wrap-reverse', 'wrap'])\n } : void 0;\n\n // @ts-ignore internal logic for nested grid\n Grid.muiName = 'Grid';\n return Grid;\n}", "export const filterBreakpointKeys = (breakpointsKeys, responsiveKeys) => breakpointsKeys.filter(key => responsiveKeys.includes(key));\nexport const traverseBreakpoints = (breakpoints, responsive, iterator) => {\n const smallestBreakpoint = breakpoints.keys[0]; // the keys is sorted from smallest to largest by `createBreakpoints`.\n\n if (Array.isArray(responsive)) {\n responsive.forEach((breakpointValue, index) => {\n iterator((responsiveStyles, style) => {\n if (index <= breakpoints.keys.length - 1) {\n if (index === 0) {\n Object.assign(responsiveStyles, style);\n } else {\n responsiveStyles[breakpoints.up(breakpoints.keys[index])] = style;\n }\n }\n }, breakpointValue);\n });\n } else if (responsive && typeof responsive === 'object') {\n // prevent null\n // responsive could be a very big object, pick the smallest responsive values\n\n const keys = Object.keys(responsive).length > breakpoints.keys.length ? breakpoints.keys : filterBreakpointKeys(breakpoints.keys, Object.keys(responsive));\n keys.forEach(key => {\n if (breakpoints.keys.includes(key)) {\n // @ts-ignore already checked that responsive is an object\n const breakpointValue = responsive[key];\n if (breakpointValue !== undefined) {\n iterator((responsiveStyles, style) => {\n if (smallestBreakpoint === key) {\n Object.assign(responsiveStyles, style);\n } else {\n responsiveStyles[breakpoints.up(key)] = style;\n }\n }, breakpointValue);\n }\n }\n });\n } else if (typeof responsive === 'number' || typeof responsive === 'string') {\n iterator((responsiveStyles, style) => {\n Object.assign(responsiveStyles, style);\n }, responsive);\n }\n};", "import { traverseBreakpoints } from \"./traverseBreakpoints.js\";\nfunction getSelfSpacingVar(axis) {\n return `--Grid-${axis}Spacing`;\n}\nfunction getParentSpacingVar(axis) {\n return `--Grid-parent-${axis}Spacing`;\n}\nconst selfColumnsVar = '--Grid-columns';\nconst parentColumnsVar = '--Grid-parent-columns';\nexport const generateGridSizeStyles = ({\n theme,\n ownerState\n}) => {\n const styles = {};\n traverseBreakpoints(theme.breakpoints, ownerState.size, (appendStyle, value) => {\n let style = {};\n if (value === 'grow') {\n style = {\n flexBasis: 0,\n flexGrow: 1,\n maxWidth: '100%'\n };\n }\n if (value === 'auto') {\n style = {\n flexBasis: 'auto',\n flexGrow: 0,\n flexShrink: 0,\n maxWidth: 'none',\n width: 'auto'\n };\n }\n if (typeof value === 'number') {\n style = {\n flexGrow: 0,\n flexBasis: 'auto',\n width: `calc(100% * ${value} / var(${parentColumnsVar}) - (var(${parentColumnsVar}) - ${value}) * (var(${getParentSpacingVar('column')}) / var(${parentColumnsVar})))`\n };\n }\n appendStyle(styles, style);\n });\n return styles;\n};\nexport const generateGridOffsetStyles = ({\n theme,\n ownerState\n}) => {\n const styles = {};\n traverseBreakpoints(theme.breakpoints, ownerState.offset, (appendStyle, value) => {\n let style = {};\n if (value === 'auto') {\n style = {\n marginLeft: 'auto'\n };\n }\n if (typeof value === 'number') {\n style = {\n marginLeft: value === 0 ? '0px' : `calc(100% * ${value} / var(${parentColumnsVar}) + var(${getParentSpacingVar('column')}) * ${value} / var(${parentColumnsVar}))`\n };\n }\n appendStyle(styles, style);\n });\n return styles;\n};\nexport const generateGridColumnsStyles = ({\n theme,\n ownerState\n}) => {\n if (!ownerState.container) {\n return {};\n }\n const styles = {\n [selfColumnsVar]: 12\n };\n traverseBreakpoints(theme.breakpoints, ownerState.columns, (appendStyle, value) => {\n const columns = value ?? 12;\n appendStyle(styles, {\n [selfColumnsVar]: columns,\n '> *': {\n [parentColumnsVar]: columns\n }\n });\n });\n return styles;\n};\nexport const generateGridRowSpacingStyles = ({\n theme,\n ownerState\n}) => {\n if (!ownerState.container) {\n return {};\n }\n const styles = {};\n traverseBreakpoints(theme.breakpoints, ownerState.rowSpacing, (appendStyle, value) => {\n const spacing = typeof value === 'string' ? value : theme.spacing?.(value);\n appendStyle(styles, {\n [getSelfSpacingVar('row')]: spacing,\n '> *': {\n [getParentSpacingVar('row')]: spacing\n }\n });\n });\n return styles;\n};\nexport const generateGridColumnSpacingStyles = ({\n theme,\n ownerState\n}) => {\n if (!ownerState.container) {\n return {};\n }\n const styles = {};\n traverseBreakpoints(theme.breakpoints, ownerState.columnSpacing, (appendStyle, value) => {\n const spacing = typeof value === 'string' ? value : theme.spacing?.(value);\n appendStyle(styles, {\n [getSelfSpacingVar('column')]: spacing,\n '> *': {\n [getParentSpacingVar('column')]: spacing\n }\n });\n });\n return styles;\n};\nexport const generateGridDirectionStyles = ({\n theme,\n ownerState\n}) => {\n if (!ownerState.container) {\n return {};\n }\n const styles = {};\n traverseBreakpoints(theme.breakpoints, ownerState.direction, (appendStyle, value) => {\n appendStyle(styles, {\n flexDirection: value\n });\n });\n return styles;\n};\nexport const generateGridStyles = ({\n ownerState\n}) => {\n return {\n minWidth: 0,\n boxSizing: 'border-box',\n ...(ownerState.container && {\n display: 'flex',\n flexWrap: 'wrap',\n ...(ownerState.wrap && ownerState.wrap !== 'wrap' && {\n flexWrap: ownerState.wrap\n }),\n gap: `var(${getSelfSpacingVar('row')}) var(${getSelfSpacingVar('column')})`\n })\n };\n};\nexport const generateSizeClassNames = size => {\n const classNames = [];\n Object.entries(size).forEach(([key, value]) => {\n if (value !== false && value !== undefined) {\n classNames.push(`grid-${key}-${String(value)}`);\n }\n });\n return classNames;\n};\nexport const generateSpacingClassNames = (spacing, smallestBreakpoint = 'xs') => {\n function isValidSpacing(val) {\n if (val === undefined) {\n return false;\n }\n return typeof val === 'string' && !Number.isNaN(Number(val)) || typeof val === 'number' && val > 0;\n }\n if (isValidSpacing(spacing)) {\n return [`spacing-${smallestBreakpoint}-${String(spacing)}`];\n }\n if (typeof spacing === 'object' && !Array.isArray(spacing)) {\n const classNames = [];\n Object.entries(spacing).forEach(([key, value]) => {\n if (isValidSpacing(value)) {\n classNames.push(`spacing-${key}-${String(value)}`);\n }\n });\n return classNames;\n }\n return [];\n};\nexport const generateDirectionClasses = direction => {\n if (direction === undefined) {\n return [];\n }\n if (typeof direction === 'object') {\n return Object.entries(direction).map(([key, value]) => `direction-${key}-${value}`);\n }\n return [`direction-xs-${String(direction)}`];\n};", "const getLegacyGridWarning = propName => {\n if (['item', 'zeroMinWidth'].includes(propName)) {\n return `The \\`${propName}\\` prop has been removed and is no longer necessary. You can safely remove it.`;\n }\n\n // #host-reference\n return `The \\`${propName}\\` prop has been removed. See https://mui.com/material-ui/migration/upgrade-to-grid-v2/ for migration instructions.`;\n};\nconst warnedAboutProps = [];\n\n/**\n * Deletes the legacy Grid component props from the `props` object and warns once about them if found.\n *\n * @param {object} props The props object to remove the legacy Grid props from.\n * @param {Breakpoints} breakpoints The breakpoints object.\n */\nexport default function deleteLegacyGridProps(props, breakpoints) {\n const propsToWarn = [];\n if (props.item !== undefined) {\n delete props.item;\n propsToWarn.push('item');\n }\n if (props.zeroMinWidth !== undefined) {\n delete props.zeroMinWidth;\n propsToWarn.push('zeroMinWidth');\n }\n breakpoints.keys.forEach(breakpoint => {\n if (props[breakpoint] !== undefined) {\n propsToWarn.push(breakpoint);\n delete props[breakpoint];\n }\n });\n if (process.env.NODE_ENV !== 'production') {\n propsToWarn.forEach(prop => {\n if (!warnedAboutProps.includes(prop)) {\n warnedAboutProps.push(prop);\n console.warn(`MUI Grid: ${getLegacyGridWarning(prop)}\\n`);\n }\n });\n }\n}", "import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getGridUtilityClass(slot) {\n return generateUtilityClass('MuiGrid', slot);\n}\nconst SPACINGS = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];\nconst DIRECTIONS = ['column-reverse', 'column', 'row-reverse', 'row'];\nconst WRAPS = ['nowrap', 'wrap-reverse', 'wrap'];\nconst GRID_SIZES = ['auto', 'grow', 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];\nconst gridClasses = generateUtilityClasses('MuiGrid', ['root', 'container', 'item',\n// spacings\n...SPACINGS.map(spacing => `spacing-xs-${spacing}`),\n// direction values\n...DIRECTIONS.map(direction => `direction-xs-${direction}`),\n// wrap values\n...WRAPS.map(wrap => `wrap-xs-${wrap}`),\n// grid sizes for all breakpoints\n...GRID_SIZES.map(size => `grid-xs-${size}`), ...GRID_SIZES.map(size => `grid-sm-${size}`), ...GRID_SIZES.map(size => `grid-md-${size}`), ...GRID_SIZES.map(size => `grid-lg-${size}`), ...GRID_SIZES.map(size => `grid-xl-${size}`)]);\nexport default gridClasses;", "'use client';\n\nimport PropTypes from 'prop-types';\nimport createStack from \"./createStack.js\";\n/**\n *\n * Demos:\n *\n * - [Stack (Joy UI)](https://mui.com/joy-ui/react-stack/)\n * - [Stack (Material UI)](https://mui.com/material-ui/react-stack/)\n * - [Stack (MUI System)](https://mui.com/system/react-stack/)\n *\n * API:\n *\n * - [Stack API](https://mui.com/system/api/stack/)\n */\nconst Stack = createStack();\nprocess.env.NODE_ENV !== \"production\" ? Stack.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * Defines the `flex-direction` style property.\n * It is applied for all screen sizes.\n * @default 'column'\n */\n direction: PropTypes.oneOfType([PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), PropTypes.arrayOf(PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row'])), PropTypes.object]),\n /**\n * Add an element between each child.\n */\n divider: PropTypes.node,\n /**\n * Defines the space between immediate children.\n * @default 0\n */\n spacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),\n /**\n * The system prop, which allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * If `true`, the CSS flexbox `gap` is used instead of applying `margin` to children.\n *\n * While CSS `gap` removes the [known limitations](https://mui.com/joy-ui/react-stack/#limitations),\n * it is not fully supported in some browsers. We recommend checking https://caniuse.com/?search=flex%20gap before using this flag.\n *\n * To enable this flag globally, follow the theme's default props configuration.\n * @default false\n */\n useFlexGap: PropTypes.bool\n} : void 0;\nexport default Stack;", "'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport deepmerge from '@mui/utils/deepmerge';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport composeClasses from '@mui/utils/composeClasses';\nimport systemStyled from \"../styled/index.js\";\nimport useThemePropsSystem from \"../useThemeProps/index.js\";\nimport { extendSxProp } from \"../styleFunctionSx/index.js\";\nimport createTheme from \"../createTheme/index.js\";\nimport { handleBreakpoints, mergeBreakpointsInOrder, resolveBreakpointValues } from \"../breakpoints/index.js\";\nimport { createUnarySpacing, getValue } from \"../spacing/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst defaultTheme = createTheme();\n// widening Theme to any so that the consumer can own the theme structure.\nconst defaultCreateStyledComponent = systemStyled('div', {\n name: 'MuiStack',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n});\nfunction useThemePropsDefault(props) {\n return useThemePropsSystem({\n props,\n name: 'MuiStack',\n defaultTheme\n });\n}\n\n/**\n * Return an array with the separator React element interspersed between\n * each React node of the input children.\n *\n * > joinChildren([1,2,3], 0)\n * [1,0,2,0,3]\n */\nfunction joinChildren(children, separator) {\n const childrenArray = React.Children.toArray(children).filter(Boolean);\n return childrenArray.reduce((output, child, index) => {\n output.push(child);\n if (index < childrenArray.length - 1) {\n output.push(/*#__PURE__*/React.cloneElement(separator, {\n key: `separator-${index}`\n }));\n }\n return output;\n }, []);\n}\nconst getSideFromDirection = direction => {\n return {\n row: 'Left',\n 'row-reverse': 'Right',\n column: 'Top',\n 'column-reverse': 'Bottom'\n }[direction];\n};\nexport const style = ({\n ownerState,\n theme\n}) => {\n let styles = {\n display: 'flex',\n flexDirection: 'column',\n ...handleBreakpoints({\n theme\n }, resolveBreakpointValues({\n values: ownerState.direction,\n breakpoints: theme.breakpoints.values\n }), propValue => ({\n flexDirection: propValue\n }))\n };\n if (ownerState.spacing) {\n const transformer = createUnarySpacing(theme);\n const base = Object.keys(theme.breakpoints.values).reduce((acc, breakpoint) => {\n if (typeof ownerState.spacing === 'object' && ownerState.spacing[breakpoint] != null || typeof ownerState.direction === 'object' && ownerState.direction[breakpoint] != null) {\n acc[breakpoint] = true;\n }\n return acc;\n }, {});\n const directionValues = resolveBreakpointValues({\n values: ownerState.direction,\n base\n });\n const spacingValues = resolveBreakpointValues({\n values: ownerState.spacing,\n base\n });\n if (typeof directionValues === 'object') {\n Object.keys(directionValues).forEach((breakpoint, index, breakpoints) => {\n const directionValue = directionValues[breakpoint];\n if (!directionValue) {\n const previousDirectionValue = index > 0 ? directionValues[breakpoints[index - 1]] : 'column';\n directionValues[breakpoint] = previousDirectionValue;\n }\n });\n }\n const styleFromPropValue = (propValue, breakpoint) => {\n if (ownerState.useFlexGap) {\n return {\n gap: getValue(transformer, propValue)\n };\n }\n return {\n // The useFlexGap={false} implement relies on each child to give up control of the margin.\n // We need to reset the margin to avoid double spacing.\n '& > :not(style):not(style)': {\n margin: 0\n },\n '& > :not(style) ~ :not(style)': {\n [`margin${getSideFromDirection(breakpoint ? directionValues[breakpoint] : ownerState.direction)}`]: getValue(transformer, propValue)\n }\n };\n };\n styles = deepmerge(styles, handleBreakpoints({\n theme\n }, spacingValues, styleFromPropValue));\n }\n styles = mergeBreakpointsInOrder(theme.breakpoints, styles);\n return styles;\n};\nexport default function createStack(options = {}) {\n const {\n // This will allow adding custom styled fn (for example for custom sx style function)\n createStyledComponent = defaultCreateStyledComponent,\n useThemeProps = useThemePropsDefault,\n componentName = 'MuiStack'\n } = options;\n const useUtilityClasses = () => {\n const slots = {\n root: ['root']\n };\n return composeClasses(slots, slot => generateUtilityClass(componentName, slot), {});\n };\n const StackRoot = createStyledComponent(style);\n const Stack = /*#__PURE__*/React.forwardRef(function Grid(inProps, ref) {\n const themeProps = useThemeProps(inProps);\n const props = extendSxProp(themeProps); // `color` type conflicts with html color attribute.\n const {\n component = 'div',\n direction = 'column',\n spacing = 0,\n divider,\n children,\n className,\n useFlexGap = false,\n ...other\n } = props;\n const ownerState = {\n direction,\n spacing,\n useFlexGap\n };\n const classes = useUtilityClasses();\n return /*#__PURE__*/_jsx(StackRoot, {\n as: component,\n ownerState: ownerState,\n ref: ref,\n className: clsx(classes.root, className),\n ...other,\n children: divider ? joinChildren(children, divider) : children\n });\n });\n process.env.NODE_ENV !== \"production\" ? Stack.propTypes /* remove-proptypes */ = {\n children: PropTypes.node,\n direction: PropTypes.oneOfType([PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), PropTypes.arrayOf(PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row'])), PropTypes.object]),\n divider: PropTypes.node,\n spacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n } : void 0;\n return Stack;\n}", "import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getStackUtilityClass(slot) {\n return generateUtilityClass('MuiStack', slot);\n}\nconst stackClasses = generateUtilityClasses('MuiStack', ['root']);\nexport default stackClasses;", "const common = {\n black: '#000',\n white: '#fff'\n};\nexport default common;", "const grey = {\n 50: '#fafafa',\n 100: '#f5f5f5',\n 200: '#eeeeee',\n 300: '#e0e0e0',\n 400: '#bdbdbd',\n 500: '#9e9e9e',\n 600: '#757575',\n 700: '#616161',\n 800: '#424242',\n 900: '#212121',\n A100: '#f5f5f5',\n A200: '#eeeeee',\n A400: '#bdbdbd',\n A700: '#616161'\n};\nexport default grey;", "const purple = {\n 50: '#f3e5f5',\n 100: '#e1bee7',\n 200: '#ce93d8',\n 300: '#ba68c8',\n 400: '#ab47bc',\n 500: '#9c27b0',\n 600: '#8e24aa',\n 700: '#7b1fa2',\n 800: '#6a1b9a',\n 900: '#4a148c',\n A100: '#ea80fc',\n A200: '#e040fb',\n A400: '#d500f9',\n A700: '#aa00ff'\n};\nexport default purple;", "const red = {\n 50: '#ffebee',\n 100: '#ffcdd2',\n 200: '#ef9a9a',\n 300: '#e57373',\n 400: '#ef5350',\n 500: '#f44336',\n 600: '#e53935',\n 700: '#d32f2f',\n 800: '#c62828',\n 900: '#b71c1c',\n A100: '#ff8a80',\n A200: '#ff5252',\n A400: '#ff1744',\n A700: '#d50000'\n};\nexport default red;", "const orange = {\n 50: '#fff3e0',\n 100: '#ffe0b2',\n 200: '#ffcc80',\n 300: '#ffb74d',\n 400: '#ffa726',\n 500: '#ff9800',\n 600: '#fb8c00',\n 700: '#f57c00',\n 800: '#ef6c00',\n 900: '#e65100',\n A100: '#ffd180',\n A200: '#ffab40',\n A400: '#ff9100',\n A700: '#ff6d00'\n};\nexport default orange;", "const blue = {\n 50: '#e3f2fd',\n 100: '#bbdefb',\n 200: '#90caf9',\n 300: '#64b5f6',\n 400: '#42a5f5',\n 500: '#2196f3',\n 600: '#1e88e5',\n 700: '#1976d2',\n 800: '#1565c0',\n 900: '#0d47a1',\n A100: '#82b1ff',\n A200: '#448aff',\n A400: '#2979ff',\n A700: '#2962ff'\n};\nexport default blue;", "const lightBlue = {\n 50: '#e1f5fe',\n 100: '#b3e5fc',\n 200: '#81d4fa',\n 300: '#4fc3f7',\n 400: '#29b6f6',\n 500: '#03a9f4',\n 600: '#039be5',\n 700: '#0288d1',\n 800: '#0277bd',\n 900: '#01579b',\n A100: '#80d8ff',\n A200: '#40c4ff',\n A400: '#00b0ff',\n A700: '#0091ea'\n};\nexport default lightBlue;", "const green = {\n 50: '#e8f5e9',\n 100: '#c8e6c9',\n 200: '#a5d6a7',\n 300: '#81c784',\n 400: '#66bb6a',\n 500: '#4caf50',\n 600: '#43a047',\n 700: '#388e3c',\n 800: '#2e7d32',\n 900: '#1b5e20',\n A100: '#b9f6ca',\n A200: '#69f0ae',\n A400: '#00e676',\n A700: '#00c853'\n};\nexport default green;", "import _formatErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\nimport deepmerge from '@mui/utils/deepmerge';\nimport { darken, getContrastRatio, lighten } from '@mui/system/colorManipulator';\nimport common from \"../colors/common.js\";\nimport grey from \"../colors/grey.js\";\nimport purple from \"../colors/purple.js\";\nimport red from \"../colors/red.js\";\nimport orange from \"../colors/orange.js\";\nimport blue from \"../colors/blue.js\";\nimport lightBlue from \"../colors/lightBlue.js\";\nimport green from \"../colors/green.js\";\nfunction getLight() {\n return {\n // The colors used to style the text.\n text: {\n // The most important text.\n primary: 'rgba(0, 0, 0, 0.87)',\n // Secondary text.\n secondary: 'rgba(0, 0, 0, 0.6)',\n // Disabled text have even lower visual prominence.\n disabled: 'rgba(0, 0, 0, 0.38)'\n },\n // The color used to divide different elements.\n divider: 'rgba(0, 0, 0, 0.12)',\n // The background colors used to style the surfaces.\n // Consistency between these values is important.\n background: {\n paper: common.white,\n default: common.white\n },\n // The colors used to style the action elements.\n action: {\n // The color of an active action like an icon button.\n active: 'rgba(0, 0, 0, 0.54)',\n // The color of an hovered action.\n hover: 'rgba(0, 0, 0, 0.04)',\n hoverOpacity: 0.04,\n // The color of a selected action.\n selected: 'rgba(0, 0, 0, 0.08)',\n selectedOpacity: 0.08,\n // The color of a disabled action.\n disabled: 'rgba(0, 0, 0, 0.26)',\n // The background color of a disabled action.\n disabledBackground: 'rgba(0, 0, 0, 0.12)',\n disabledOpacity: 0.38,\n focus: 'rgba(0, 0, 0, 0.12)',\n focusOpacity: 0.12,\n activatedOpacity: 0.12\n }\n };\n}\nexport const light = getLight();\nfunction getDark() {\n return {\n text: {\n primary: common.white,\n secondary: 'rgba(255, 255, 255, 0.7)',\n disabled: 'rgba(255, 255, 255, 0.5)',\n icon: 'rgba(255, 255, 255, 0.5)'\n },\n divider: 'rgba(255, 255, 255, 0.12)',\n background: {\n paper: '#121212',\n default: '#121212'\n },\n action: {\n active: common.white,\n hover: 'rgba(255, 255, 255, 0.08)',\n hoverOpacity: 0.08,\n selected: 'rgba(255, 255, 255, 0.16)',\n selectedOpacity: 0.16,\n disabled: 'rgba(255, 255, 255, 0.3)',\n disabledBackground: 'rgba(255, 255, 255, 0.12)',\n disabledOpacity: 0.38,\n focus: 'rgba(255, 255, 255, 0.12)',\n focusOpacity: 0.12,\n activatedOpacity: 0.24\n }\n };\n}\nexport const dark = getDark();\nfunction addLightOrDark(intent, direction, shade, tonalOffset) {\n const tonalOffsetLight = tonalOffset.light || tonalOffset;\n const tonalOffsetDark = tonalOffset.dark || tonalOffset * 1.5;\n if (!intent[direction]) {\n if (intent.hasOwnProperty(shade)) {\n intent[direction] = intent[shade];\n } else if (direction === 'light') {\n intent.light = lighten(intent.main, tonalOffsetLight);\n } else if (direction === 'dark') {\n intent.dark = darken(intent.main, tonalOffsetDark);\n }\n }\n}\nfunction getDefaultPrimary(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: blue[200],\n light: blue[50],\n dark: blue[400]\n };\n }\n return {\n main: blue[700],\n light: blue[400],\n dark: blue[800]\n };\n}\nfunction getDefaultSecondary(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: purple[200],\n light: purple[50],\n dark: purple[400]\n };\n }\n return {\n main: purple[500],\n light: purple[300],\n dark: purple[700]\n };\n}\nfunction getDefaultError(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: red[500],\n light: red[300],\n dark: red[700]\n };\n }\n return {\n main: red[700],\n light: red[400],\n dark: red[800]\n };\n}\nfunction getDefaultInfo(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: lightBlue[400],\n light: lightBlue[300],\n dark: lightBlue[700]\n };\n }\n return {\n main: lightBlue[700],\n light: lightBlue[500],\n dark: lightBlue[900]\n };\n}\nfunction getDefaultSuccess(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: green[400],\n light: green[300],\n dark: green[700]\n };\n }\n return {\n main: green[800],\n light: green[500],\n dark: green[900]\n };\n}\nfunction getDefaultWarning(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: orange[400],\n light: orange[300],\n dark: orange[700]\n };\n }\n return {\n main: '#ed6c02',\n // closest to orange[800] that pass 3:1.\n light: orange[500],\n dark: orange[900]\n };\n}\nexport default function createPalette(palette) {\n const {\n mode = 'light',\n contrastThreshold = 3,\n tonalOffset = 0.2,\n ...other\n } = palette;\n const primary = palette.primary || getDefaultPrimary(mode);\n const secondary = palette.secondary || getDefaultSecondary(mode);\n const error = palette.error || getDefaultError(mode);\n const info = palette.info || getDefaultInfo(mode);\n const success = palette.success || getDefaultSuccess(mode);\n const warning = palette.warning || getDefaultWarning(mode);\n\n // Use the same logic as\n // Bootstrap: https://github.com/twbs/bootstrap/blob/1d6e3710dd447de1a200f29e8fa521f8a0908f70/scss/_functions.scss#L59\n // and material-components-web https://github.com/material-components/material-components-web/blob/ac46b8863c4dab9fc22c4c662dc6bd1b65dd652f/packages/mdc-theme/_functions.scss#L54\n function getContrastText(background) {\n const contrastText = getContrastRatio(background, dark.text.primary) >= contrastThreshold ? dark.text.primary : light.text.primary;\n if (process.env.NODE_ENV !== 'production') {\n const contrast = getContrastRatio(background, contrastText);\n if (contrast < 3) {\n console.error([`MUI: The contrast ratio of ${contrast}:1 for ${contrastText} on ${background}`, 'falls below the WCAG recommended absolute minimum contrast ratio of 3:1.', 'https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast'].join('\\n'));\n }\n }\n return contrastText;\n }\n const augmentColor = ({\n color,\n name,\n mainShade = 500,\n lightShade = 300,\n darkShade = 700\n }) => {\n color = {\n ...color\n };\n if (!color.main && color[mainShade]) {\n color.main = color[mainShade];\n }\n if (!color.hasOwnProperty('main')) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: The color${name ? ` (${name})` : ''} provided to augmentColor(color) is invalid.\\n` + `The color object needs to have a \\`main\\` property or a \\`${mainShade}\\` property.` : _formatErrorMessage(11, name ? ` (${name})` : '', mainShade));\n }\n if (typeof color.main !== 'string') {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: The color${name ? ` (${name})` : ''} provided to augmentColor(color) is invalid.\\n` + `\\`color.main\\` should be a string, but \\`${JSON.stringify(color.main)}\\` was provided instead.\\n` + '\\n' + 'Did you intend to use one of the following approaches?\\n' + '\\n' + 'import { green } from \"@mui/material/colors\";\\n' + '\\n' + 'const theme1 = createTheme({ palette: {\\n' + ' primary: green,\\n' + '} });\\n' + '\\n' + 'const theme2 = createTheme({ palette: {\\n' + ' primary: { main: green[500] },\\n' + '} });' : _formatErrorMessage(12, name ? ` (${name})` : '', JSON.stringify(color.main)));\n }\n addLightOrDark(color, 'light', lightShade, tonalOffset);\n addLightOrDark(color, 'dark', darkShade, tonalOffset);\n if (!color.contrastText) {\n color.contrastText = getContrastText(color.main);\n }\n return color;\n };\n let modeHydrated;\n if (mode === 'light') {\n modeHydrated = getLight();\n } else if (mode === 'dark') {\n modeHydrated = getDark();\n }\n if (process.env.NODE_ENV !== 'production') {\n if (!modeHydrated) {\n console.error(`MUI: The palette mode \\`${mode}\\` is not supported.`);\n }\n }\n const paletteOutput = deepmerge({\n // A collection of common colors.\n common: {\n ...common\n },\n // prevent mutable object.\n // The palette mode, can be light or dark.\n mode,\n // The colors used to represent primary interface elements for a user.\n primary: augmentColor({\n color: primary,\n name: 'primary'\n }),\n // The colors used to represent secondary interface elements for a user.\n secondary: augmentColor({\n color: secondary,\n name: 'secondary',\n mainShade: 'A400',\n lightShade: 'A200',\n darkShade: 'A700'\n }),\n // The colors used to represent interface elements that the user should be made aware of.\n error: augmentColor({\n color: error,\n name: 'error'\n }),\n // The colors used to represent potentially dangerous actions or important messages.\n warning: augmentColor({\n color: warning,\n name: 'warning'\n }),\n // The colors used to present information to the user that is neutral and not necessarily important.\n info: augmentColor({\n color: info,\n name: 'info'\n }),\n // The colors used to indicate the successful completion of an action that user triggered.\n success: augmentColor({\n color: success,\n name: 'success'\n }),\n // The grey colors.\n grey,\n // Used by `getContrastText()` to maximize the contrast between\n // the background and the text.\n contrastThreshold,\n // Takes a background color and returns the text color that maximizes the contrast.\n getContrastText,\n // Generate a rich color object.\n augmentColor,\n // Used by the functions below to shift a color's luminance by approximately\n // two indexes within its tonal palette.\n // E.g., shift from Red 500 to Red 300 or Red 700.\n tonalOffset,\n // The light and dark mode object.\n ...modeHydrated\n }, other);\n return paletteOutput;\n}", "export default function prepareTypographyVars(typography) {\n const vars = {};\n const entries = Object.entries(typography);\n entries.forEach(entry => {\n const [key, value] = entry;\n if (typeof value === 'object') {\n vars[key] = `${value.fontStyle ? `${value.fontStyle} ` : ''}${value.fontVariant ? `${value.fontVariant} ` : ''}${value.fontWeight ? `${value.fontWeight} ` : ''}${value.fontStretch ? `${value.fontStretch} ` : ''}${value.fontSize || ''}${value.lineHeight ? `/${value.lineHeight} ` : ''}${value.fontFamily || ''}`;\n }\n });\n return vars;\n}", "export default function createMixins(breakpoints, mixins) {\n return {\n toolbar: {\n minHeight: 56,\n [breakpoints.up('xs')]: {\n '@media (orientation: landscape)': {\n minHeight: 48\n }\n },\n [breakpoints.up('sm')]: {\n minHeight: 64\n }\n },\n ...mixins\n };\n}", "import deepmerge from '@mui/utils/deepmerge';\nfunction round(value) {\n return Math.round(value * 1e5) / 1e5;\n}\nconst caseAllCaps = {\n textTransform: 'uppercase'\n};\nconst defaultFontFamily = '\"Roboto\", \"Helvetica\", \"Arial\", sans-serif';\n\n/**\n * @see @link{https://m2.material.io/design/typography/the-type-system.html}\n * @see @link{https://m2.material.io/design/typography/understanding-typography.html}\n */\nexport default function createTypography(palette, typography) {\n const {\n fontFamily = defaultFontFamily,\n // The default font size of the Material Specification.\n fontSize = 14,\n // px\n fontWeightLight = 300,\n fontWeightRegular = 400,\n fontWeightMedium = 500,\n fontWeightBold = 700,\n // Tell MUI what's the font-size on the html element.\n // 16px is the default font-size used by browsers.\n htmlFontSize = 16,\n // Apply the CSS properties to all the variants.\n allVariants,\n pxToRem: pxToRem2,\n ...other\n } = typeof typography === 'function' ? typography(palette) : typography;\n if (process.env.NODE_ENV !== 'production') {\n if (typeof fontSize !== 'number') {\n console.error('MUI: `fontSize` is required to be a number.');\n }\n if (typeof htmlFontSize !== 'number') {\n console.error('MUI: `htmlFontSize` is required to be a number.');\n }\n }\n const coef = fontSize / 14;\n const pxToRem = pxToRem2 || (size => `${size / htmlFontSize * coef}rem`);\n const buildVariant = (fontWeight, size, lineHeight, letterSpacing, casing) => ({\n fontFamily,\n fontWeight,\n fontSize: pxToRem(size),\n // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/\n lineHeight,\n // The letter spacing was designed for the Roboto font-family. Using the same letter-spacing\n // across font-families can cause issues with the kerning.\n ...(fontFamily === defaultFontFamily ? {\n letterSpacing: `${round(letterSpacing / size)}em`\n } : {}),\n ...casing,\n ...allVariants\n });\n const variants = {\n h1: buildVariant(fontWeightLight, 96, 1.167, -1.5),\n h2: buildVariant(fontWeightLight, 60, 1.2, -0.5),\n h3: buildVariant(fontWeightRegular, 48, 1.167, 0),\n h4: buildVariant(fontWeightRegular, 34, 1.235, 0.25),\n h5: buildVariant(fontWeightRegular, 24, 1.334, 0),\n h6: buildVariant(fontWeightMedium, 20, 1.6, 0.15),\n subtitle1: buildVariant(fontWeightRegular, 16, 1.75, 0.15),\n subtitle2: buildVariant(fontWeightMedium, 14, 1.57, 0.1),\n body1: buildVariant(fontWeightRegular, 16, 1.5, 0.15),\n body2: buildVariant(fontWeightRegular, 14, 1.43, 0.15),\n button: buildVariant(fontWeightMedium, 14, 1.75, 0.4, caseAllCaps),\n caption: buildVariant(fontWeightRegular, 12, 1.66, 0.4),\n overline: buildVariant(fontWeightRegular, 12, 2.66, 1, caseAllCaps),\n // TODO v6: Remove handling of 'inherit' variant from the theme as it is already handled in Material UI's Typography component. Also, remember to remove the associated types.\n inherit: {\n fontFamily: 'inherit',\n fontWeight: 'inherit',\n fontSize: 'inherit',\n lineHeight: 'inherit',\n letterSpacing: 'inherit'\n }\n };\n return deepmerge({\n htmlFontSize,\n pxToRem,\n fontFamily,\n fontSize,\n fontWeightLight,\n fontWeightRegular,\n fontWeightMedium,\n fontWeightBold,\n ...variants\n }, other, {\n clone: false // No need to clone deep\n });\n}", "const shadowKeyUmbraOpacity = 0.2;\nconst shadowKeyPenumbraOpacity = 0.14;\nconst shadowAmbientShadowOpacity = 0.12;\nfunction createShadow(...px) {\n return [`${px[0]}px ${px[1]}px ${px[2]}px ${px[3]}px rgba(0,0,0,${shadowKeyUmbraOpacity})`, `${px[4]}px ${px[5]}px ${px[6]}px ${px[7]}px rgba(0,0,0,${shadowKeyPenumbraOpacity})`, `${px[8]}px ${px[9]}px ${px[10]}px ${px[11]}px rgba(0,0,0,${shadowAmbientShadowOpacity})`].join(',');\n}\n\n// Values from https://github.com/material-components/material-components-web/blob/be8747f94574669cb5e7add1a7c54fa41a89cec7/packages/mdc-elevation/_variables.scss\nconst shadows = ['none', createShadow(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), createShadow(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), createShadow(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), createShadow(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), createShadow(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), createShadow(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), createShadow(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), createShadow(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), createShadow(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), createShadow(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), createShadow(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), createShadow(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), createShadow(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), createShadow(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), createShadow(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), createShadow(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), createShadow(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), createShadow(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), createShadow(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), createShadow(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), createShadow(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), createShadow(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), createShadow(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), createShadow(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)];\nexport default shadows;", "// Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves\n// to learn the context in which each easing should be used.\nexport const easing = {\n // This is the most common easing curve.\n easeInOut: 'cubic-bezier(0.4, 0, 0.2, 1)',\n // Objects enter the screen at full velocity from off-screen and\n // slowly decelerate to a resting point.\n easeOut: 'cubic-bezier(0.0, 0, 0.2, 1)',\n // Objects leave the screen at full velocity. They do not decelerate when off-screen.\n easeIn: 'cubic-bezier(0.4, 0, 1, 1)',\n // The sharp curve is used by objects that may return to the screen at any time.\n sharp: 'cubic-bezier(0.4, 0, 0.6, 1)'\n};\n\n// Follow https://m2.material.io/guidelines/motion/duration-easing.html#duration-easing-common-durations\n// to learn when use what timing\nexport const duration = {\n shortest: 150,\n shorter: 200,\n short: 250,\n // most basic recommended timing\n standard: 300,\n // this is to be used in complex animations\n complex: 375,\n // recommended when something is entering screen\n enteringScreen: 225,\n // recommended when something is leaving screen\n leavingScreen: 195\n};\nfunction formatMs(milliseconds) {\n return `${Math.round(milliseconds)}ms`;\n}\nfunction getAutoHeightDuration(height) {\n if (!height) {\n return 0;\n }\n const constant = height / 36;\n\n // https://www.desmos.com/calculator/vbrp3ggqet\n return Math.min(Math.round((4 + 15 * constant ** 0.25 + constant / 5) * 10), 3000);\n}\nexport default function createTransitions(inputTransitions) {\n const mergedEasing = {\n ...easing,\n ...inputTransitions.easing\n };\n const mergedDuration = {\n ...duration,\n ...inputTransitions.duration\n };\n const create = (props = ['all'], options = {}) => {\n const {\n duration: durationOption = mergedDuration.standard,\n easing: easingOption = mergedEasing.easeInOut,\n delay = 0,\n ...other\n } = options;\n if (process.env.NODE_ENV !== 'production') {\n const isString = value => typeof value === 'string';\n const isNumber = value => !Number.isNaN(parseFloat(value));\n if (!isString(props) && !Array.isArray(props)) {\n console.error('MUI: Argument \"props\" must be a string or Array.');\n }\n if (!isNumber(durationOption) && !isString(durationOption)) {\n console.error(`MUI: Argument \"duration\" must be a number or a string but found ${durationOption}.`);\n }\n if (!isString(easingOption)) {\n console.error('MUI: Argument \"easing\" must be a string.');\n }\n if (!isNumber(delay) && !isString(delay)) {\n console.error('MUI: Argument \"delay\" must be a number or a string.');\n }\n if (typeof options !== 'object') {\n console.error(['MUI: Secong argument of transition.create must be an object.', \"Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`\"].join('\\n'));\n }\n if (Object.keys(other).length !== 0) {\n console.error(`MUI: Unrecognized argument(s) [${Object.keys(other).join(',')}].`);\n }\n }\n return (Array.isArray(props) ? props : [props]).map(animatedProp => `${animatedProp} ${typeof durationOption === 'string' ? durationOption : formatMs(durationOption)} ${easingOption} ${typeof delay === 'string' ? delay : formatMs(delay)}`).join(',');\n };\n return {\n getAutoHeightDuration,\n create,\n ...inputTransitions,\n easing: mergedEasing,\n duration: mergedDuration\n };\n}", "// We need to centralize the zIndex definitions as they work\n// like global values in the browser.\nconst zIndex = {\n mobileStepper: 1000,\n fab: 1050,\n speedDial: 1050,\n appBar: 1100,\n drawer: 1200,\n modal: 1300,\n snackbar: 1400,\n tooltip: 1500\n};\nexport default zIndex;", "/* eslint-disable import/prefer-default-export */\nimport { isPlainObject } from '@mui/utils/deepmerge';\nfunction isSerializable(val) {\n return isPlainObject(val) || typeof val === 'undefined' || typeof val === 'string' || typeof val === 'boolean' || typeof val === 'number' || Array.isArray(val);\n}\n\n/**\n * `baseTheme` usually comes from `createTheme()` or `extendTheme()`.\n *\n * This function is intended to be used with zero-runtime CSS-in-JS like Pigment CSS\n * For example, in a Next.js project:\n *\n * ```js\n * // next.config.js\n * const { extendTheme } = require('@mui/material/styles');\n *\n * const theme = extendTheme();\n * // `.toRuntimeSource` is Pigment CSS specific to create a theme that is available at runtime.\n * theme.toRuntimeSource = stringifyTheme;\n *\n * module.exports = withPigment({\n * theme,\n * });\n * ```\n */\nexport function stringifyTheme(baseTheme = {}) {\n const serializableTheme = {\n ...baseTheme\n };\n function serializeTheme(object) {\n const array = Object.entries(object);\n // eslint-disable-next-line no-plusplus\n for (let index = 0; index < array.length; index++) {\n const [key, value] = array[index];\n if (!isSerializable(value) || key.startsWith('unstable_')) {\n delete object[key];\n } else if (isPlainObject(value)) {\n object[key] = {\n ...value\n };\n serializeTheme(object[key]);\n }\n }\n }\n serializeTheme(serializableTheme);\n return `import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';\n\nconst theme = ${JSON.stringify(serializableTheme, null, 2)};\n\ntheme.breakpoints = createBreakpoints(theme.breakpoints || {});\ntheme.transitions = createTransitions(theme.transitions || {});\n\nexport default theme;`;\n}", "import _formatErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\nimport deepmerge from '@mui/utils/deepmerge';\nimport styleFunctionSx, { unstable_defaultSxConfig as defaultSxConfig } from '@mui/system/styleFunctionSx';\nimport systemCreateTheme from '@mui/system/createTheme';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport createMixins from \"./createMixins.js\";\nimport createPalette from \"./createPalette.js\";\nimport createTypography from \"./createTypography.js\";\nimport shadows from \"./shadows.js\";\nimport createTransitions from \"./createTransitions.js\";\nimport zIndex from \"./zIndex.js\";\nimport { stringifyTheme } from \"./stringifyTheme.js\";\nfunction createThemeNoVars(options = {}, ...args) {\n const {\n breakpoints: breakpointsInput,\n mixins: mixinsInput = {},\n spacing: spacingInput,\n palette: paletteInput = {},\n transitions: transitionsInput = {},\n typography: typographyInput = {},\n shape: shapeInput,\n ...other\n } = options;\n if (options.vars &&\n // The error should throw only for the root theme creation because user is not allowed to use a custom node `vars`.\n // `generateThemeVars` is the closest identifier for checking that the `options` is a result of `createTheme` with CSS variables so that user can create new theme for nested ThemeProvider.\n options.generateThemeVars === undefined) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'MUI: `vars` is a private field used for CSS variables support.\\n' +\n // #host-reference\n 'Please use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.' : _formatErrorMessage(20));\n }\n const palette = createPalette(paletteInput);\n const systemTheme = systemCreateTheme(options);\n let muiTheme = deepmerge(systemTheme, {\n mixins: createMixins(systemTheme.breakpoints, mixinsInput),\n palette,\n // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.\n shadows: shadows.slice(),\n typography: createTypography(palette, typographyInput),\n transitions: createTransitions(transitionsInput),\n zIndex: {\n ...zIndex\n }\n });\n muiTheme = deepmerge(muiTheme, other);\n muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);\n if (process.env.NODE_ENV !== 'production') {\n // TODO v6: Refactor to use globalStateClassesMapping from @mui/utils once `readOnly` state class is used in Rating component.\n const stateClasses = ['active', 'checked', 'completed', 'disabled', 'error', 'expanded', 'focused', 'focusVisible', 'required', 'selected'];\n const traverse = (node, component) => {\n let key;\n\n // eslint-disable-next-line guard-for-in\n for (key in node) {\n const child = node[key];\n if (stateClasses.includes(key) && Object.keys(child).length > 0) {\n if (process.env.NODE_ENV !== 'production') {\n const stateClass = generateUtilityClass('', key);\n console.error([`MUI: The \\`${component}\\` component increases ` + `the CSS specificity of the \\`${key}\\` internal state.`, 'You can not override it like this: ', JSON.stringify(node, null, 2), '', `Instead, you need to use the '&.${stateClass}' syntax:`, JSON.stringify({\n root: {\n [`&.${stateClass}`]: child\n }\n }, null, 2), '', 'https://mui.com/r/state-classes-guide'].join('\\n'));\n }\n // Remove the style to prevent global conflicts.\n node[key] = {};\n }\n }\n };\n Object.keys(muiTheme.components).forEach(component => {\n const styleOverrides = muiTheme.components[component].styleOverrides;\n if (styleOverrides && component.startsWith('Mui')) {\n traverse(styleOverrides, component);\n }\n });\n }\n muiTheme.unstable_sxConfig = {\n ...defaultSxConfig,\n ...other?.unstable_sxConfig\n };\n muiTheme.unstable_sx = function sx(props) {\n return styleFunctionSx({\n sx: props,\n theme: this\n });\n };\n muiTheme.toRuntimeSource = stringifyTheme; // for Pigment CSS integration\n\n return muiTheme;\n}\nexport default createThemeNoVars;", "// Inspired by https://github.com/material-components/material-components-ios/blob/bca36107405594d5b7b16265a5b0ed698f85a5ee/components/Elevation/src/UIColor%2BMaterialElevation.m#L61\nexport default function getOverlayAlpha(elevation) {\n let alphaValue;\n if (elevation < 1) {\n alphaValue = 5.11916 * elevation ** 2;\n } else {\n alphaValue = 4.5 * Math.log(elevation + 1) + 2;\n }\n return Math.round(alphaValue * 10) / 1000;\n}", "import createPalette from \"./createPalette.js\";\nimport getOverlayAlpha from \"./getOverlayAlpha.js\";\nconst defaultDarkOverlays = [...Array(25)].map((_, index) => {\n if (index === 0) {\n return 'none';\n }\n const overlay = getOverlayAlpha(index);\n return `linear-gradient(rgba(255 255 255 / ${overlay}), rgba(255 255 255 / ${overlay}))`;\n});\nexport function getOpacity(mode) {\n return {\n inputPlaceholder: mode === 'dark' ? 0.5 : 0.42,\n inputUnderline: mode === 'dark' ? 0.7 : 0.42,\n switchTrackDisabled: mode === 'dark' ? 0.2 : 0.12,\n switchTrack: mode === 'dark' ? 0.3 : 0.38\n };\n}\nexport function getOverlays(mode) {\n return mode === 'dark' ? defaultDarkOverlays : [];\n}\nexport default function createColorScheme(options) {\n const {\n palette: paletteInput = {\n mode: 'light'\n },\n // need to cast to avoid module augmentation test\n opacity,\n overlays,\n ...rest\n } = options;\n const palette = createPalette(paletteInput);\n return {\n palette,\n opacity: {\n ...getOpacity(palette.mode),\n ...opacity\n },\n overlays: overlays || getOverlays(palette.mode),\n ...rest\n };\n}", "export default function shouldSkipGeneratingVar(keys) {\n return !!keys[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/) || !!keys[0].match(/sxConfig$/) ||\n // ends with sxConfig\n keys[0] === 'palette' && !!keys[1]?.match(/(mode|contrastThreshold|tonalOffset)/);\n}", "/**\n * @internal These variables should not appear in the :root stylesheet when the `defaultColorScheme=\"dark\"`\n */\nconst excludeVariablesFromRoot = cssVarPrefix => [...[...Array(25)].map((_, index) => `--${cssVarPrefix ? `${cssVarPrefix}-` : ''}overlays-${index}`), `--${cssVarPrefix ? `${cssVarPrefix}-` : ''}palette-AppBar-darkBg`, `--${cssVarPrefix ? `${cssVarPrefix}-` : ''}palette-AppBar-darkColor`];\nexport default excludeVariablesFromRoot;", "import excludeVariablesFromRoot from \"./excludeVariablesFromRoot.js\";\nexport default theme => (colorScheme, css) => {\n const root = theme.rootSelector || ':root';\n const selector = theme.colorSchemeSelector;\n let rule = selector;\n if (selector === 'class') {\n rule = '.%s';\n }\n if (selector === 'data') {\n rule = '[data-%s]';\n }\n if (selector?.startsWith('data-') && !selector.includes('%s')) {\n // 'data-mui-color-scheme' -> '[data-mui-color-scheme=\"%s\"]'\n rule = `[${selector}=\"%s\"]`;\n }\n if (theme.defaultColorScheme === colorScheme) {\n if (colorScheme === 'dark') {\n const excludedVariables = {};\n excludeVariablesFromRoot(theme.cssVarPrefix).forEach(cssVar => {\n excludedVariables[cssVar] = css[cssVar];\n delete css[cssVar];\n });\n if (rule === 'media') {\n return {\n [root]: css,\n [`@media (prefers-color-scheme: dark)`]: {\n [root]: excludedVariables\n }\n };\n }\n if (rule) {\n return {\n [rule.replace('%s', colorScheme)]: excludedVariables,\n [`${root}, ${rule.replace('%s', colorScheme)}`]: css\n };\n }\n return {\n [root]: {\n ...css,\n ...excludedVariables\n }\n };\n }\n if (rule && rule !== 'media') {\n return `${root}, ${rule.replace('%s', String(colorScheme))}`;\n }\n } else if (colorScheme) {\n if (rule === 'media') {\n return {\n [`@media (prefers-color-scheme: ${String(colorScheme)})`]: {\n [root]: css\n }\n };\n }\n if (rule) {\n return rule.replace('%s', String(colorScheme));\n }\n }\n return root;\n};", "import _formatErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\nimport deepmerge from '@mui/utils/deepmerge';\nimport { unstable_createGetCssVar as systemCreateGetCssVar, createSpacing } from '@mui/system';\nimport { createUnarySpacing } from '@mui/system/spacing';\nimport { prepareCssVars, prepareTypographyVars, createGetColorSchemeSelector } from '@mui/system/cssVars';\nimport styleFunctionSx, { unstable_defaultSxConfig as defaultSxConfig } from '@mui/system/styleFunctionSx';\nimport { private_safeColorChannel as safeColorChannel, private_safeAlpha as safeAlpha, private_safeDarken as safeDarken, private_safeLighten as safeLighten, private_safeEmphasize as safeEmphasize, hslToRgb } from '@mui/system/colorManipulator';\nimport createThemeNoVars from \"./createThemeNoVars.js\";\nimport createColorScheme, { getOpacity, getOverlays } from \"./createColorScheme.js\";\nimport defaultShouldSkipGeneratingVar from \"./shouldSkipGeneratingVar.js\";\nimport defaultGetSelector from \"./createGetSelector.js\";\nimport { stringifyTheme } from \"./stringifyTheme.js\";\nfunction assignNode(obj, keys) {\n keys.forEach(k => {\n if (!obj[k]) {\n obj[k] = {};\n }\n });\n}\nfunction setColor(obj, key, defaultValue) {\n if (!obj[key] && defaultValue) {\n obj[key] = defaultValue;\n }\n}\nfunction toRgb(color) {\n if (typeof color !== 'string' || !color.startsWith('hsl')) {\n return color;\n }\n return hslToRgb(color);\n}\nfunction setColorChannel(obj, key) {\n if (!(`${key}Channel` in obj)) {\n // custom channel token is not provided, generate one.\n // if channel token can't be generated, show a warning.\n obj[`${key}Channel`] = safeColorChannel(toRgb(obj[key]), `MUI: Can't create \\`palette.${key}Channel\\` because \\`palette.${key}\\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` + '\\n' + `To suppress this warning, you need to explicitly provide the \\`palette.${key}Channel\\` as a string (in rgb format, for example \"12 12 12\") or undefined if you want to remove the channel token.`);\n }\n}\nfunction getSpacingVal(spacingInput) {\n if (typeof spacingInput === 'number') {\n return `${spacingInput}px`;\n }\n if (typeof spacingInput === 'string' || typeof spacingInput === 'function' || Array.isArray(spacingInput)) {\n return spacingInput;\n }\n return '8px';\n}\nconst silent = fn => {\n try {\n return fn();\n } catch (error) {\n // ignore error\n }\n return undefined;\n};\nexport const createGetCssVar = (cssVarPrefix = 'mui') => systemCreateGetCssVar(cssVarPrefix);\nfunction attachColorScheme(colorSchemes, scheme, restTheme, colorScheme) {\n if (!scheme) {\n return undefined;\n }\n scheme = scheme === true ? {} : scheme;\n const mode = colorScheme === 'dark' ? 'dark' : 'light';\n if (!restTheme) {\n colorSchemes[colorScheme] = createColorScheme({\n ...scheme,\n palette: {\n mode,\n ...scheme?.palette\n }\n });\n return undefined;\n }\n const {\n palette,\n ...muiTheme\n } = createThemeNoVars({\n ...restTheme,\n palette: {\n mode,\n ...scheme?.palette\n }\n });\n colorSchemes[colorScheme] = {\n ...scheme,\n palette,\n opacity: {\n ...getOpacity(mode),\n ...scheme?.opacity\n },\n overlays: scheme?.overlays || getOverlays(mode)\n };\n return muiTheme;\n}\n\n/**\n * A default `createThemeWithVars` comes with a single color scheme, either `light` or `dark` based on the `defaultColorScheme`.\n * This is better suited for apps that only need a single color scheme.\n *\n * To enable built-in `light` and `dark` color schemes, either:\n * 1. provide a `colorSchemeSelector` to define how the color schemes will change.\n * 2. provide `colorSchemes.dark` will set `colorSchemeSelector: 'media'` by default.\n */\nexport default function createThemeWithVars(options = {}, ...args) {\n const {\n colorSchemes: colorSchemesInput = {\n light: true\n },\n defaultColorScheme: defaultColorSchemeInput,\n disableCssColorScheme = false,\n cssVarPrefix = 'mui',\n shouldSkipGeneratingVar = defaultShouldSkipGeneratingVar,\n colorSchemeSelector: selector = colorSchemesInput.light && colorSchemesInput.dark ? 'media' : undefined,\n rootSelector = ':root',\n ...input\n } = options;\n const firstColorScheme = Object.keys(colorSchemesInput)[0];\n const defaultColorScheme = defaultColorSchemeInput || (colorSchemesInput.light && firstColorScheme !== 'light' ? 'light' : firstColorScheme);\n const getCssVar = createGetCssVar(cssVarPrefix);\n const {\n [defaultColorScheme]: defaultSchemeInput,\n light: builtInLight,\n dark: builtInDark,\n ...customColorSchemes\n } = colorSchemesInput;\n const colorSchemes = {\n ...customColorSchemes\n };\n let defaultScheme = defaultSchemeInput;\n\n // For built-in light and dark color schemes, ensure that the value is valid if they are the default color scheme.\n if (defaultColorScheme === 'dark' && !('dark' in colorSchemesInput) || defaultColorScheme === 'light' && !('light' in colorSchemesInput)) {\n defaultScheme = true;\n }\n if (!defaultScheme) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: The \\`colorSchemes.${defaultColorScheme}\\` option is either missing or invalid.` : _formatErrorMessage(21, defaultColorScheme));\n }\n\n // Create the palette for the default color scheme, either `light`, `dark`, or custom color scheme.\n const muiTheme = attachColorScheme(colorSchemes, defaultScheme, input, defaultColorScheme);\n if (builtInLight && !colorSchemes.light) {\n attachColorScheme(colorSchemes, builtInLight, undefined, 'light');\n }\n if (builtInDark && !colorSchemes.dark) {\n attachColorScheme(colorSchemes, builtInDark, undefined, 'dark');\n }\n let theme = {\n defaultColorScheme,\n ...muiTheme,\n cssVarPrefix,\n colorSchemeSelector: selector,\n rootSelector,\n getCssVar,\n colorSchemes,\n font: {\n ...prepareTypographyVars(muiTheme.typography),\n ...muiTheme.font\n },\n spacing: getSpacingVal(input.spacing)\n };\n Object.keys(theme.colorSchemes).forEach(key => {\n const palette = theme.colorSchemes[key].palette;\n const setCssVarColor = cssVar => {\n const tokens = cssVar.split('-');\n const color = tokens[1];\n const colorToken = tokens[2];\n return getCssVar(cssVar, palette[color][colorToken]);\n };\n\n // attach black & white channels to common node\n if (palette.mode === 'light') {\n setColor(palette.common, 'background', '#fff');\n setColor(palette.common, 'onBackground', '#000');\n }\n if (palette.mode === 'dark') {\n setColor(palette.common, 'background', '#000');\n setColor(palette.common, 'onBackground', '#fff');\n }\n\n // assign component variables\n assignNode(palette, ['Alert', 'AppBar', 'Avatar', 'Button', 'Chip', 'FilledInput', 'LinearProgress', 'Skeleton', 'Slider', 'SnackbarContent', 'SpeedDialAction', 'StepConnector', 'StepContent', 'Switch', 'TableCell', 'Tooltip']);\n if (palette.mode === 'light') {\n setColor(palette.Alert, 'errorColor', safeDarken(palette.error.light, 0.6));\n setColor(palette.Alert, 'infoColor', safeDarken(palette.info.light, 0.6));\n setColor(palette.Alert, 'successColor', safeDarken(palette.success.light, 0.6));\n setColor(palette.Alert, 'warningColor', safeDarken(palette.warning.light, 0.6));\n setColor(palette.Alert, 'errorFilledBg', setCssVarColor('palette-error-main'));\n setColor(palette.Alert, 'infoFilledBg', setCssVarColor('palette-info-main'));\n setColor(palette.Alert, 'successFilledBg', setCssVarColor('palette-success-main'));\n setColor(palette.Alert, 'warningFilledBg', setCssVarColor('palette-warning-main'));\n setColor(palette.Alert, 'errorFilledColor', silent(() => palette.getContrastText(palette.error.main)));\n setColor(palette.Alert, 'infoFilledColor', silent(() => palette.getContrastText(palette.info.main)));\n setColor(palette.Alert, 'successFilledColor', silent(() => palette.getContrastText(palette.success.main)));\n setColor(palette.Alert, 'warningFilledColor', silent(() => palette.getContrastText(palette.warning.main)));\n setColor(palette.Alert, 'errorStandardBg', safeLighten(palette.error.light, 0.9));\n setColor(palette.Alert, 'infoStandardBg', safeLighten(palette.info.light, 0.9));\n setColor(palette.Alert, 'successStandardBg', safeLighten(palette.success.light, 0.9));\n setColor(palette.Alert, 'warningStandardBg', safeLighten(palette.warning.light, 0.9));\n setColor(palette.Alert, 'errorIconColor', setCssVarColor('palette-error-main'));\n setColor(palette.Alert, 'infoIconColor', setCssVarColor('palette-info-main'));\n setColor(palette.Alert, 'successIconColor', setCssVarColor('palette-success-main'));\n setColor(palette.Alert, 'warningIconColor', setCssVarColor('palette-warning-main'));\n setColor(palette.AppBar, 'defaultBg', setCssVarColor('palette-grey-100'));\n setColor(palette.Avatar, 'defaultBg', setCssVarColor('palette-grey-400'));\n setColor(palette.Button, 'inheritContainedBg', setCssVarColor('palette-grey-300'));\n setColor(palette.Button, 'inheritContainedHoverBg', setCssVarColor('palette-grey-A100'));\n setColor(palette.Chip, 'defaultBorder', setCssVarColor('palette-grey-400'));\n setColor(palette.Chip, 'defaultAvatarColor', setCssVarColor('palette-grey-700'));\n setColor(palette.Chip, 'defaultIconColor', setCssVarColor('palette-grey-700'));\n setColor(palette.FilledInput, 'bg', 'rgba(0, 0, 0, 0.06)');\n setColor(palette.FilledInput, 'hoverBg', 'rgba(0, 0, 0, 0.09)');\n setColor(palette.FilledInput, 'disabledBg', 'rgba(0, 0, 0, 0.12)');\n setColor(palette.LinearProgress, 'primaryBg', safeLighten(palette.primary.main, 0.62));\n setColor(palette.LinearProgress, 'secondaryBg', safeLighten(palette.secondary.main, 0.62));\n setColor(palette.LinearProgress, 'errorBg', safeLighten(palette.error.main, 0.62));\n setColor(palette.LinearProgress, 'infoBg', safeLighten(palette.info.main, 0.62));\n setColor(palette.LinearProgress, 'successBg', safeLighten(palette.success.main, 0.62));\n setColor(palette.LinearProgress, 'warningBg', safeLighten(palette.warning.main, 0.62));\n setColor(palette.Skeleton, 'bg', `rgba(${setCssVarColor('palette-text-primaryChannel')} / 0.11)`);\n setColor(palette.Slider, 'primaryTrack', safeLighten(palette.primary.main, 0.62));\n setColor(palette.Slider, 'secondaryTrack', safeLighten(palette.secondary.main, 0.62));\n setColor(palette.Slider, 'errorTrack', safeLighten(palette.error.main, 0.62));\n setColor(palette.Slider, 'infoTrack', safeLighten(palette.info.main, 0.62));\n setColor(palette.Slider, 'successTrack', safeLighten(palette.success.main, 0.62));\n setColor(palette.Slider, 'warningTrack', safeLighten(palette.warning.main, 0.62));\n const snackbarContentBackground = safeEmphasize(palette.background.default, 0.8);\n setColor(palette.SnackbarContent, 'bg', snackbarContentBackground);\n setColor(palette.SnackbarContent, 'color', silent(() => palette.getContrastText(snackbarContentBackground)));\n setColor(palette.SpeedDialAction, 'fabHoverBg', safeEmphasize(palette.background.paper, 0.15));\n setColor(palette.StepConnector, 'border', setCssVarColor('palette-grey-400'));\n setColor(palette.StepContent, 'border', setCssVarColor('palette-grey-400'));\n setColor(palette.Switch, 'defaultColor', setCssVarColor('palette-common-white'));\n setColor(palette.Switch, 'defaultDisabledColor', setCssVarColor('palette-grey-100'));\n setColor(palette.Switch, 'primaryDisabledColor', safeLighten(palette.primary.main, 0.62));\n setColor(palette.Switch, 'secondaryDisabledColor', safeLighten(palette.secondary.main, 0.62));\n setColor(palette.Switch, 'errorDisabledColor', safeLighten(palette.error.main, 0.62));\n setColor(palette.Switch, 'infoDisabledColor', safeLighten(palette.info.main, 0.62));\n setColor(palette.Switch, 'successDisabledColor', safeLighten(palette.success.main, 0.62));\n setColor(palette.Switch, 'warningDisabledColor', safeLighten(palette.warning.main, 0.62));\n setColor(palette.TableCell, 'border', safeLighten(safeAlpha(palette.divider, 1), 0.88));\n setColor(palette.Tooltip, 'bg', safeAlpha(palette.grey[700], 0.92));\n }\n if (palette.mode === 'dark') {\n setColor(palette.Alert, 'errorColor', safeLighten(palette.error.light, 0.6));\n setColor(palette.Alert, 'infoColor', safeLighten(palette.info.light, 0.6));\n setColor(palette.Alert, 'successColor', safeLighten(palette.success.light, 0.6));\n setColor(palette.Alert, 'warningColor', safeLighten(palette.warning.light, 0.6));\n setColor(palette.Alert, 'errorFilledBg', setCssVarColor('palette-error-dark'));\n setColor(palette.Alert, 'infoFilledBg', setCssVarColor('palette-info-dark'));\n setColor(palette.Alert, 'successFilledBg', setCssVarColor('palette-success-dark'));\n setColor(palette.Alert, 'warningFilledBg', setCssVarColor('palette-warning-dark'));\n setColor(palette.Alert, 'errorFilledColor', silent(() => palette.getContrastText(palette.error.dark)));\n setColor(palette.Alert, 'infoFilledColor', silent(() => palette.getContrastText(palette.info.dark)));\n setColor(palette.Alert, 'successFilledColor', silent(() => palette.getContrastText(palette.success.dark)));\n setColor(palette.Alert, 'warningFilledColor', silent(() => palette.getContrastText(palette.warning.dark)));\n setColor(palette.Alert, 'errorStandardBg', safeDarken(palette.error.light, 0.9));\n setColor(palette.Alert, 'infoStandardBg', safeDarken(palette.info.light, 0.9));\n setColor(palette.Alert, 'successStandardBg', safeDarken(palette.success.light, 0.9));\n setColor(palette.Alert, 'warningStandardBg', safeDarken(palette.warning.light, 0.9));\n setColor(palette.Alert, 'errorIconColor', setCssVarColor('palette-error-main'));\n setColor(palette.Alert, 'infoIconColor', setCssVarColor('palette-info-main'));\n setColor(palette.Alert, 'successIconColor', setCssVarColor('palette-success-main'));\n setColor(palette.Alert, 'warningIconColor', setCssVarColor('palette-warning-main'));\n setColor(palette.AppBar, 'defaultBg', setCssVarColor('palette-grey-900'));\n setColor(palette.AppBar, 'darkBg', setCssVarColor('palette-background-paper')); // specific for dark mode\n setColor(palette.AppBar, 'darkColor', setCssVarColor('palette-text-primary')); // specific for dark mode\n setColor(palette.Avatar, 'defaultBg', setCssVarColor('palette-grey-600'));\n setColor(palette.Button, 'inheritContainedBg', setCssVarColor('palette-grey-800'));\n setColor(palette.Button, 'inheritContainedHoverBg', setCssVarColor('palette-grey-700'));\n setColor(palette.Chip, 'defaultBorder', setCssVarColor('palette-grey-700'));\n setColor(palette.Chip, 'defaultAvatarColor', setCssVarColor('palette-grey-300'));\n setColor(palette.Chip, 'defaultIconColor', setCssVarColor('palette-grey-300'));\n setColor(palette.FilledInput, 'bg', 'rgba(255, 255, 255, 0.09)');\n setColor(palette.FilledInput, 'hoverBg', 'rgba(255, 255, 255, 0.13)');\n setColor(palette.FilledInput, 'disabledBg', 'rgba(255, 255, 255, 0.12)');\n setColor(palette.LinearProgress, 'primaryBg', safeDarken(palette.primary.main, 0.5));\n setColor(palette.LinearProgress, 'secondaryBg', safeDarken(palette.secondary.main, 0.5));\n setColor(palette.LinearProgress, 'errorBg', safeDarken(palette.error.main, 0.5));\n setColor(palette.LinearProgress, 'infoBg', safeDarken(palette.info.main, 0.5));\n setColor(palette.LinearProgress, 'successBg', safeDarken(palette.success.main, 0.5));\n setColor(palette.LinearProgress, 'warningBg', safeDarken(palette.warning.main, 0.5));\n setColor(palette.Skeleton, 'bg', `rgba(${setCssVarColor('palette-text-primaryChannel')} / 0.13)`);\n setColor(palette.Slider, 'primaryTrack', safeDarken(palette.primary.main, 0.5));\n setColor(palette.Slider, 'secondaryTrack', safeDarken(palette.secondary.main, 0.5));\n setColor(palette.Slider, 'errorTrack', safeDarken(palette.error.main, 0.5));\n setColor(palette.Slider, 'infoTrack', safeDarken(palette.info.main, 0.5));\n setColor(palette.Slider, 'successTrack', safeDarken(palette.success.main, 0.5));\n setColor(palette.Slider, 'warningTrack', safeDarken(palette.warning.main, 0.5));\n const snackbarContentBackground = safeEmphasize(palette.background.default, 0.98);\n setColor(palette.SnackbarContent, 'bg', snackbarContentBackground);\n setColor(palette.SnackbarContent, 'color', silent(() => palette.getContrastText(snackbarContentBackground)));\n setColor(palette.SpeedDialAction, 'fabHoverBg', safeEmphasize(palette.background.paper, 0.15));\n setColor(palette.StepConnector, 'border', setCssVarColor('palette-grey-600'));\n setColor(palette.StepContent, 'border', setCssVarColor('palette-grey-600'));\n setColor(palette.Switch, 'defaultColor', setCssVarColor('palette-grey-300'));\n setColor(palette.Switch, 'defaultDisabledColor', setCssVarColor('palette-grey-600'));\n setColor(palette.Switch, 'primaryDisabledColor', safeDarken(palette.primary.main, 0.55));\n setColor(palette.Switch, 'secondaryDisabledColor', safeDarken(palette.secondary.main, 0.55));\n setColor(palette.Switch, 'errorDisabledColor', safeDarken(palette.error.main, 0.55));\n setColor(palette.Switch, 'infoDisabledColor', safeDarken(palette.info.main, 0.55));\n setColor(palette.Switch, 'successDisabledColor', safeDarken(palette.success.main, 0.55));\n setColor(palette.Switch, 'warningDisabledColor', safeDarken(palette.warning.main, 0.55));\n setColor(palette.TableCell, 'border', safeDarken(safeAlpha(palette.divider, 1), 0.68));\n setColor(palette.Tooltip, 'bg', safeAlpha(palette.grey[700], 0.92));\n }\n\n // MUI X - DataGrid needs this token.\n setColorChannel(palette.background, 'default');\n\n // added for consistency with the `background.default` token\n setColorChannel(palette.background, 'paper');\n setColorChannel(palette.common, 'background');\n setColorChannel(palette.common, 'onBackground');\n setColorChannel(palette, 'divider');\n Object.keys(palette).forEach(color => {\n const colors = palette[color];\n\n // The default palettes (primary, secondary, error, info, success, and warning) errors are handled by the above `createTheme(...)`.\n\n if (color !== 'tonalOffset' && colors && typeof colors === 'object') {\n // Silent the error for custom palettes.\n if (colors.main) {\n setColor(palette[color], 'mainChannel', safeColorChannel(toRgb(colors.main)));\n }\n if (colors.light) {\n setColor(palette[color], 'lightChannel', safeColorChannel(toRgb(colors.light)));\n }\n if (colors.dark) {\n setColor(palette[color], 'darkChannel', safeColorChannel(toRgb(colors.dark)));\n }\n if (colors.contrastText) {\n setColor(palette[color], 'contrastTextChannel', safeColorChannel(toRgb(colors.contrastText)));\n }\n if (color === 'text') {\n // Text colors: text.primary, text.secondary\n setColorChannel(palette[color], 'primary');\n setColorChannel(palette[color], 'secondary');\n }\n if (color === 'action') {\n // Action colors: action.active, action.selected\n if (colors.active) {\n setColorChannel(palette[color], 'active');\n }\n if (colors.selected) {\n setColorChannel(palette[color], 'selected');\n }\n }\n }\n });\n });\n theme = args.reduce((acc, argument) => deepmerge(acc, argument), theme);\n const parserConfig = {\n prefix: cssVarPrefix,\n disableCssColorScheme,\n shouldSkipGeneratingVar,\n getSelector: defaultGetSelector(theme)\n };\n const {\n vars,\n generateThemeVars,\n generateStyleSheets\n } = prepareCssVars(theme, parserConfig);\n theme.vars = vars;\n Object.entries(theme.colorSchemes[theme.defaultColorScheme]).forEach(([key, value]) => {\n theme[key] = value;\n });\n theme.generateThemeVars = generateThemeVars;\n theme.generateStyleSheets = generateStyleSheets;\n theme.generateSpacing = function generateSpacing() {\n return createSpacing(input.spacing, createUnarySpacing(this));\n };\n theme.getColorSchemeSelector = createGetColorSchemeSelector(selector);\n theme.spacing = theme.generateSpacing();\n theme.shouldSkipGeneratingVar = shouldSkipGeneratingVar;\n theme.unstable_sxConfig = {\n ...defaultSxConfig,\n ...input?.unstable_sxConfig\n };\n theme.unstable_sx = function sx(props) {\n return styleFunctionSx({\n sx: props,\n theme: this\n });\n };\n theme.toRuntimeSource = stringifyTheme; // for Pigment CSS integration\n\n return theme;\n}", "import createPalette from \"./createPalette.js\";\nimport createThemeWithVars from \"./createThemeWithVars.js\";\nimport createThemeNoVars from \"./createThemeNoVars.js\";\n// eslint-disable-next-line consistent-return\nfunction attachColorScheme(theme, scheme, colorScheme) {\n if (!theme.colorSchemes) {\n return undefined;\n }\n if (colorScheme) {\n theme.colorSchemes[scheme] = {\n ...(colorScheme !== true && colorScheme),\n palette: createPalette({\n ...(colorScheme === true ? {} : colorScheme.palette),\n mode: scheme\n }) // cast type to skip module augmentation test\n };\n }\n}\n\n/**\n * Generate a theme base on the options received.\n * @param options Takes an incomplete theme object and adds the missing parts.\n * @param args Deep merge the arguments with the about to be returned theme.\n * @returns A complete, ready-to-use theme object.\n */\nexport default function createTheme(options = {},\n// cast type to skip module augmentation test\n...args) {\n const {\n palette,\n cssVariables = false,\n colorSchemes: initialColorSchemes = !palette ? {\n light: true\n } : undefined,\n defaultColorScheme: initialDefaultColorScheme = palette?.mode,\n ...rest\n } = options;\n const defaultColorSchemeInput = initialDefaultColorScheme || 'light';\n const defaultScheme = initialColorSchemes?.[defaultColorSchemeInput];\n const colorSchemesInput = {\n ...initialColorSchemes,\n ...(palette ? {\n [defaultColorSchemeInput]: {\n ...(typeof defaultScheme !== 'boolean' && defaultScheme),\n palette\n }\n } : undefined)\n };\n if (cssVariables === false) {\n if (!('colorSchemes' in options)) {\n // Behaves exactly as v5\n return createThemeNoVars(options, ...args);\n }\n let paletteOptions = palette;\n if (!('palette' in options)) {\n if (colorSchemesInput[defaultColorSchemeInput]) {\n if (colorSchemesInput[defaultColorSchemeInput] !== true) {\n paletteOptions = colorSchemesInput[defaultColorSchemeInput].palette;\n } else if (defaultColorSchemeInput === 'dark') {\n // @ts-ignore to prevent the module augmentation test from failing\n paletteOptions = {\n mode: 'dark'\n };\n }\n }\n }\n const theme = createThemeNoVars({\n ...options,\n palette: paletteOptions\n }, ...args);\n theme.defaultColorScheme = defaultColorSchemeInput;\n theme.colorSchemes = colorSchemesInput;\n if (theme.palette.mode === 'light') {\n theme.colorSchemes.light = {\n ...(colorSchemesInput.light !== true && colorSchemesInput.light),\n palette: theme.palette\n };\n attachColorScheme(theme, 'dark', colorSchemesInput.dark);\n }\n if (theme.palette.mode === 'dark') {\n theme.colorSchemes.dark = {\n ...(colorSchemesInput.dark !== true && colorSchemesInput.dark),\n palette: theme.palette\n };\n attachColorScheme(theme, 'light', colorSchemesInput.light);\n }\n return theme;\n }\n if (!palette && !('light' in colorSchemesInput) && defaultColorSchemeInput === 'light') {\n colorSchemesInput.light = true;\n }\n return createThemeWithVars({\n ...rest,\n colorSchemes: colorSchemesInput,\n defaultColorScheme: defaultColorSchemeInput,\n ...(typeof cssVariables !== 'boolean' && cssVariables)\n }, ...args);\n}", "'use client';\n\nimport createTheme from \"./createTheme.js\";\nconst defaultTheme = createTheme();\nexport default defaultTheme;", "export default '$$material';", "'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { GlobalStyles as SystemGlobalStyles } from '@mui/system';\nimport defaultTheme from \"../styles/defaultTheme.js\";\nimport THEME_ID from \"../styles/identifier.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction GlobalStyles(props) {\n return /*#__PURE__*/_jsx(SystemGlobalStyles, {\n ...props,\n defaultTheme: defaultTheme,\n themeId: THEME_ID\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? GlobalStyles.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The styles you want to apply globally.\n */\n styles: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.array, PropTypes.func, PropTypes.number, PropTypes.object, PropTypes.string, PropTypes.bool])\n} : void 0;\nexport default GlobalStyles;", "// copied from @mui/system/createStyled\nfunction slotShouldForwardProp(prop) {\n return prop !== 'ownerState' && prop !== 'theme' && prop !== 'sx' && prop !== 'as';\n}\nexport default slotShouldForwardProp;", "import slotShouldForwardProp from \"./slotShouldForwardProp.js\";\nconst rootShouldForwardProp = prop => slotShouldForwardProp(prop) && prop !== 'classes';\nexport default rootShouldForwardProp;", "'use client';\n\nimport createStyled from '@mui/system/createStyled';\nimport defaultTheme from \"./defaultTheme.js\";\nimport THEME_ID from \"./identifier.js\";\nimport rootShouldForwardProp from \"./rootShouldForwardProp.js\";\nexport { default as slotShouldForwardProp } from \"./slotShouldForwardProp.js\";\nexport { default as rootShouldForwardProp } from \"./rootShouldForwardProp.js\";\nconst styled = createStyled({\n themeId: THEME_ID,\n defaultTheme,\n rootShouldForwardProp\n});\nexport default styled;", "import { unstable_memoTheme } from '@mui/system';\nconst memoTheme = unstable_memoTheme;\nexport default memoTheme;", "'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport SystemDefaultPropsProvider, { useDefaultProps as useSystemDefaultProps } from '@mui/system/DefaultPropsProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction DefaultPropsProvider(props) {\n return /*#__PURE__*/_jsx(SystemDefaultPropsProvider, {\n ...props\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? DefaultPropsProvider.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * @ignore\n */\n children: PropTypes.node,\n /**\n * @ignore\n */\n value: PropTypes.object.isRequired\n} : void 0;\nexport default DefaultPropsProvider;\nexport function useDefaultProps(params) {\n return useSystemDefaultProps(params);\n}", "import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getSvgIconUtilityClass(slot) {\n return generateUtilityClass('MuiSvgIcon', slot);\n}\nconst svgIconClasses = generateUtilityClasses('MuiSvgIcon', ['root', 'colorPrimary', 'colorSecondary', 'colorAction', 'colorError', 'colorDisabled', 'fontSizeInherit', 'fontSizeSmall', 'fontSizeMedium', 'fontSizeLarge']);\nexport default svgIconClasses;"], - "mappings": ";;;;;;;;;;;AAAA;AAAA;AAA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,aAAa;AACvD,WAAS,UAAU,OAAO,KAAK;AAC7B,eAAoB,qBAAAC,KAAK,iBAAS;AAAA,MAChC,eAAe,OAAwC,GAAG,WAAW,SAAS;AAAA,MAC9E;AAAA,MACA,GAAG;AAAA,MACH,UAAU;AAAA,IACZ,CAAC;AAAA,EACH;AACA,MAAI,MAAuC;AAGzC,cAAU,cAAc,GAAG,WAAW;AAAA,EACxC;AACA,YAAU,UAAU,gBAAQ;AAC5B,SAA0B,aAAwB,mBAAW,SAAS,CAAC;AACzE;", - "names": ["hasSymbol", "isValidElementType", "ForwardRef", "Fragment", "Memo", "from", "values", "assign", "isValidElement", "i", "checker", "require_react_is_development", "require_react_is", "require_react_is_development", "hasSymbol", "isValidElementType", "ForwardRef", "Fragment", "Memo", "require_react_is", "hoistNonReactStatics", "React", "React", "import_prop_types", "React", "PropTypes", "import_prop_types", "css", "node", "style", "prev", "next", "arg", "abs", "style", "style", "arg", "style", "styleFunctionSx", "css", "React", "r", "React", "StyleSheet", "isImportRule", "length", "length", "length", "character", "characters", "length", "length", "weakMemoize", "arg", "memoize", "arg", "identifierWithPointTracking", "character", "toRules", "getRules", "compat", "removeLabel", "isIgnoringComment", "createUnsafeSelectorsAlarm", "node", "isImportRule", "isPrependedWithRegularRules", "nullifyElement", "incorrectImportAlarm", "prefix", "length", "prefixer", "getSourceMap", "createCache", "stylis", "insert", "registerStyles", "isStringTag", "insertStyles", "isDevelopment", "isCustomProperty", "isProcessableValue", "memoize", "processStyleValue", "match", "keyframes", "next", "React", "syncFallback", "useInsertionEffect", "withEmotionCache", "getTheme", "getLastPart", "getFunctionNameFromStackTraceLine", "line", "match", "sanitizeIdentifier", "identifier", "getLabelFromStackTrace", "createEmotionProps", "Insertion", "isStringTag", "React", "import_hoist_non_react_statics", "isDevelopment", "jsx", "_jsx", "node", "classnames", "arg", "merge", "css", "Insertion", "isDevelopment", "cx", "isBrowser", "React", "memoize", "isDevelopment", "testOmitPropsOnComponent", "getDefaultShouldForwardProp", "composeShouldForwardProps", "shouldForwardProp", "ILLEGAL_ESCAPE_SEQUENCE_ERROR", "Insertion", "isStringTag", "createStyled", "newStyled", "import_react", "React", "import_prop_types", "_jsx", "PropTypes", "React", "import_prop_types", "import_jsx_runtime", "defaultTheme", "_jsx", "PropTypes", "style", "React", "import_prop_types", "values", "spacing", "spacing", "React", "useTheme", "defaultTheme", "useTheme", "defaultTheme", "import_jsx_runtime", "GlobalStyles", "defaultTheme", "_jsx", "PropTypes", "position", "import_prop_types", "React", "import_jsx_runtime", "defaultTheme", "Box", "_jsx", "PropTypes", "import_react_is", "style", "systemDefaultTheme", "defaultTheme", "isObjectEmpty", "style", "createStyled", "rootShouldForwardProp", "slotShouldForwardProp", "styled", "styled", "createStyled", "defaultTheme", "React", "React", "match", "React", "useMediaQuery", "color", "color", "values", "color", "values", "React", "import_prop_types", "React", "import_prop_types", "import_prop_types", "PropTypes", "import_prop_types", "isClassComponent", "PropTypes", "import_prop_types", "PropTypes", "React", "React", "safeReact", "React", "React", "React", "React", "React", "React", "React", "React", "React", "React", "React", "React", "ThemeContext", "React", "useTheme", "import_jsx_runtime", "ThemeProvider", "useTheme", "_jsx", "PropTypes", "React", "import_prop_types", "import_jsx_runtime", "_jsx", "PropTypes", "React", "import_prop_types", "import_jsx_runtime", "_jsx", "PropTypes", "getThemeProps", "import_jsx_runtime", "ThemeProvider", "useTheme", "_jsx", "PropTypes", "React", "import_prop_types", "React", "import_jsx_runtime", "React", "import_jsx_runtime", "prefix", "prefix", "shouldSkipGeneratingVar", "css", "css", "_a", "_b", "React", "import_prop_types", "import_jsx_runtime", "maxWidth", "useThemeProps", "Container", "_jsx", "PropTypes", "import_prop_types", "PropTypes", "import_prop_types", "React", "import_prop_types", "style", "style", "spacing", "import_jsx_runtime", "defaultTheme", "defaultCreateStyledComponent", "useThemePropsDefault", "useThemeProps", "useTheme", "useUtilityClasses", "spacing", "Grid", "_jsx", "PropTypes", "PropTypes", "spacing", "import_prop_types", "React", "import_prop_types", "import_jsx_runtime", "defaultTheme", "defaultCreateStyledComponent", "useThemePropsDefault", "style", "useThemeProps", "useUtilityClasses", "Stack", "Grid", "spacing", "_jsx", "PropTypes", "PropTypes", "palette", "color", "typography", "palette", "typography", "fontFamily", "fontSize", "fontWeight", "lineHeight", "letterSpacing", "shadows_default", "height", "zIndex", "palette", "shadows_default", "node", "palette", "css", "color", "createGetCssVar", "palette", "shouldSkipGeneratingVar", "attachColorScheme", "createTheme", "palette", "defaultTheme", "createTheme", "React", "import_prop_types", "import_jsx_runtime", "GlobalStyles", "_jsx", "PropTypes", "import_jsx_runtime", "styled", "createStyled", "styled_default", "React", "import_prop_types", "import_jsx_runtime", "DefaultPropsProvider", "_jsx", "PropTypes", "useDefaultProps", "import_jsx_runtime", "useUtilityClasses", "color", "fontSize", "styled_default", "_a", "_b", "SvgIcon", "useDefaultProps", "_jsxs", "_jsx", "PropTypes", "import_jsx_runtime", "_jsx"] -} diff --git a/node_modules/.vite/deps/react-router-dom.js b/node_modules/.vite/deps/react-router-dom.js deleted file mode 100644 index 914d6181..00000000 --- a/node_modules/.vite/deps/react-router-dom.js +++ /dev/null @@ -1,11963 +0,0 @@ -import { - require_react_dom -} from "./chunk-GJJM2GG4.js"; -import { - __commonJS, - __publicField, - __toESM, - require_react -} from "./chunk-37AZBUIX.js"; - -// node_modules/cookie/dist/index.js -var require_dist = __commonJS({ - "node_modules/cookie/dist/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.parse = parse2; - exports.serialize = serialize2; - var cookieNameRegExp = /^[\u0021-\u003A\u003C\u003E-\u007E]+$/; - var cookieValueRegExp = /^[\u0021-\u003A\u003C-\u007E]*$/; - var domainValueRegExp = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i; - var pathValueRegExp = /^[\u0020-\u003A\u003D-\u007E]*$/; - var __toString = Object.prototype.toString; - var NullObject = (() => { - const C = function() { - }; - C.prototype = /* @__PURE__ */ Object.create(null); - return C; - })(); - function parse2(str, options) { - const obj = new NullObject(); - const len = str.length; - if (len < 2) - return obj; - const dec = (options == null ? void 0 : options.decode) || decode2; - let index = 0; - do { - const eqIdx = str.indexOf("=", index); - if (eqIdx === -1) - break; - const colonIdx = str.indexOf(";", index); - const endIdx = colonIdx === -1 ? len : colonIdx; - if (eqIdx > endIdx) { - index = str.lastIndexOf(";", eqIdx - 1) + 1; - continue; - } - const keyStartIdx = startIndex(str, index, eqIdx); - const keyEndIdx = endIndex(str, eqIdx, keyStartIdx); - const key = str.slice(keyStartIdx, keyEndIdx); - if (obj[key] === void 0) { - let valStartIdx = startIndex(str, eqIdx + 1, endIdx); - let valEndIdx = endIndex(str, endIdx, valStartIdx); - const value = dec(str.slice(valStartIdx, valEndIdx)); - obj[key] = value; - } - index = endIdx + 1; - } while (index < len); - return obj; - } - function startIndex(str, index, max) { - do { - const code = str.charCodeAt(index); - if (code !== 32 && code !== 9) - return index; - } while (++index < max); - return max; - } - function endIndex(str, index, min) { - while (index > min) { - const code = str.charCodeAt(--index); - if (code !== 32 && code !== 9) - return index + 1; - } - return min; - } - function serialize2(name, val, options) { - const enc = (options == null ? void 0 : options.encode) || encodeURIComponent; - if (!cookieNameRegExp.test(name)) { - throw new TypeError(`argument name is invalid: ${name}`); - } - const value = enc(val); - if (!cookieValueRegExp.test(value)) { - throw new TypeError(`argument val is invalid: ${val}`); - } - let str = name + "=" + value; - if (!options) - return str; - if (options.maxAge !== void 0) { - if (!Number.isInteger(options.maxAge)) { - throw new TypeError(`option maxAge is invalid: ${options.maxAge}`); - } - str += "; Max-Age=" + options.maxAge; - } - if (options.domain) { - if (!domainValueRegExp.test(options.domain)) { - throw new TypeError(`option domain is invalid: ${options.domain}`); - } - str += "; Domain=" + options.domain; - } - if (options.path) { - if (!pathValueRegExp.test(options.path)) { - throw new TypeError(`option path is invalid: ${options.path}`); - } - str += "; Path=" + options.path; - } - if (options.expires) { - if (!isDate(options.expires) || !Number.isFinite(options.expires.valueOf())) { - throw new TypeError(`option expires is invalid: ${options.expires}`); - } - str += "; Expires=" + options.expires.toUTCString(); - } - if (options.httpOnly) { - str += "; HttpOnly"; - } - if (options.secure) { - str += "; Secure"; - } - if (options.partitioned) { - str += "; Partitioned"; - } - if (options.priority) { - const priority = typeof options.priority === "string" ? options.priority.toLowerCase() : void 0; - switch (priority) { - case "low": - str += "; Priority=Low"; - break; - case "medium": - str += "; Priority=Medium"; - break; - case "high": - str += "; Priority=High"; - break; - default: - throw new TypeError(`option priority is invalid: ${options.priority}`); - } - } - if (options.sameSite) { - const sameSite = typeof options.sameSite === "string" ? options.sameSite.toLowerCase() : options.sameSite; - switch (sameSite) { - case true: - case "strict": - str += "; SameSite=Strict"; - break; - case "lax": - str += "; SameSite=Lax"; - break; - case "none": - str += "; SameSite=None"; - break; - default: - throw new TypeError(`option sameSite is invalid: ${options.sameSite}`); - } - } - return str; - } - function decode2(str) { - if (str.indexOf("%") === -1) - return str; - try { - return decodeURIComponent(str); - } catch (e) { - return str; - } - } - function isDate(val) { - return __toString.call(val) === "[object Date]"; - } - } -}); - -// node_modules/set-cookie-parser/lib/set-cookie.js -var require_set_cookie = __commonJS({ - "node_modules/set-cookie-parser/lib/set-cookie.js"(exports, module) { - "use strict"; - var defaultParseOptions = { - decodeValues: true, - map: false, - silent: false - }; - function isNonEmptyString(str) { - return typeof str === "string" && !!str.trim(); - } - function parseString(setCookieValue, options) { - var parts = setCookieValue.split(";").filter(isNonEmptyString); - var nameValuePairStr = parts.shift(); - var parsed = parseNameValuePair(nameValuePairStr); - var name = parsed.name; - var value = parsed.value; - options = options ? Object.assign({}, defaultParseOptions, options) : defaultParseOptions; - try { - value = options.decodeValues ? decodeURIComponent(value) : value; - } catch (e) { - console.error( - "set-cookie-parser encountered an error while decoding a cookie with value '" + value + "'. Set options.decodeValues to false to disable this feature.", - e - ); - } - var cookie = { - name, - value - }; - parts.forEach(function(part) { - var sides = part.split("="); - var key = sides.shift().trimLeft().toLowerCase(); - var value2 = sides.join("="); - if (key === "expires") { - cookie.expires = new Date(value2); - } else if (key === "max-age") { - cookie.maxAge = parseInt(value2, 10); - } else if (key === "secure") { - cookie.secure = true; - } else if (key === "httponly") { - cookie.httpOnly = true; - } else if (key === "samesite") { - cookie.sameSite = value2; - } else if (key === "partitioned") { - cookie.partitioned = true; - } else { - cookie[key] = value2; - } - }); - return cookie; - } - function parseNameValuePair(nameValuePairStr) { - var name = ""; - var value = ""; - var nameValueArr = nameValuePairStr.split("="); - if (nameValueArr.length > 1) { - name = nameValueArr.shift(); - value = nameValueArr.join("="); - } else { - value = nameValuePairStr; - } - return { name, value }; - } - function parse2(input, options) { - options = options ? Object.assign({}, defaultParseOptions, options) : defaultParseOptions; - if (!input) { - if (!options.map) { - return []; - } else { - return {}; - } - } - if (input.headers) { - if (typeof input.headers.getSetCookie === "function") { - input = input.headers.getSetCookie(); - } else if (input.headers["set-cookie"]) { - input = input.headers["set-cookie"]; - } else { - var sch = input.headers[Object.keys(input.headers).find(function(key) { - return key.toLowerCase() === "set-cookie"; - })]; - if (!sch && input.headers.cookie && !options.silent) { - console.warn( - "Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning." - ); - } - input = sch; - } - } - if (!Array.isArray(input)) { - input = [input]; - } - if (!options.map) { - return input.filter(isNonEmptyString).map(function(str) { - return parseString(str, options); - }); - } else { - var cookies = {}; - return input.filter(isNonEmptyString).reduce(function(cookies2, str) { - var cookie = parseString(str, options); - cookies2[cookie.name] = cookie; - return cookies2; - }, cookies); - } - } - function splitCookiesString2(cookiesString) { - if (Array.isArray(cookiesString)) { - return cookiesString; - } - if (typeof cookiesString !== "string") { - return []; - } - var cookiesStrings = []; - var pos = 0; - var start; - var ch; - var lastComma; - var nextStart; - var cookiesSeparatorFound; - function skipWhitespace() { - while (pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))) { - pos += 1; - } - return pos < cookiesString.length; - } - function notSpecialChar() { - ch = cookiesString.charAt(pos); - return ch !== "=" && ch !== ";" && ch !== ","; - } - while (pos < cookiesString.length) { - start = pos; - cookiesSeparatorFound = false; - while (skipWhitespace()) { - ch = cookiesString.charAt(pos); - if (ch === ",") { - lastComma = pos; - pos += 1; - skipWhitespace(); - nextStart = pos; - while (pos < cookiesString.length && notSpecialChar()) { - pos += 1; - } - if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") { - cookiesSeparatorFound = true; - pos = nextStart; - cookiesStrings.push(cookiesString.substring(start, lastComma)); - start = pos; - } else { - pos = lastComma + 1; - } - } else { - pos += 1; - } - } - if (!cookiesSeparatorFound || pos >= cookiesString.length) { - cookiesStrings.push(cookiesString.substring(start, cookiesString.length)); - } - } - return cookiesStrings; - } - module.exports = parse2; - module.exports.parse = parse2; - module.exports.parseString = parseString; - module.exports.splitCookiesString = splitCookiesString2; - } -}); - -// node_modules/react-router/dist/development/chunk-LSOULM7L.mjs -var React3 = __toESM(require_react(), 1); -var React = __toESM(require_react(), 1); -var React2 = __toESM(require_react(), 1); -var React10 = __toESM(require_react(), 1); -var React9 = __toESM(require_react(), 1); -var React4 = __toESM(require_react(), 1); - -// node_modules/turbo-stream/dist/turbo-stream.mjs -var HOLE = -1; -var NAN = -2; -var NEGATIVE_INFINITY = -3; -var NEGATIVE_ZERO = -4; -var NULL = -5; -var POSITIVE_INFINITY = -6; -var UNDEFINED = -7; -var TYPE_BIGINT = "B"; -var TYPE_DATE = "D"; -var TYPE_ERROR = "E"; -var TYPE_MAP = "M"; -var TYPE_NULL_OBJECT = "N"; -var TYPE_PROMISE = "P"; -var TYPE_REGEXP = "R"; -var TYPE_SET = "S"; -var TYPE_SYMBOL = "Y"; -var TYPE_URL = "U"; -var TYPE_PREVIOUS_RESOLVED = "Z"; -var Deferred = class { - constructor() { - __publicField(this, "promise"); - __publicField(this, "resolve"); - __publicField(this, "reject"); - this.promise = new Promise((resolve, reject) => { - this.resolve = resolve; - this.reject = reject; - }); - } -}; -function createLineSplittingTransform() { - const decoder = new TextDecoder(); - let leftover = ""; - return new TransformStream({ - transform(chunk, controller) { - const str = decoder.decode(chunk, { stream: true }); - const parts = (leftover + str).split("\n"); - leftover = parts.pop() || ""; - for (const part of parts) { - controller.enqueue(part); - } - }, - flush(controller) { - if (leftover) { - controller.enqueue(leftover); - } - } - }); -} -function flatten(input) { - const { indices } = this; - const existing = indices.get(input); - if (existing) - return [existing]; - if (input === void 0) - return UNDEFINED; - if (input === null) - return NULL; - if (Number.isNaN(input)) - return NAN; - if (input === Number.POSITIVE_INFINITY) - return POSITIVE_INFINITY; - if (input === Number.NEGATIVE_INFINITY) - return NEGATIVE_INFINITY; - if (input === 0 && 1 / input < 0) - return NEGATIVE_ZERO; - const index = this.index++; - indices.set(input, index); - stringify.call(this, input, index); - return index; -} -function stringify(input, index) { - const { deferred, plugins, postPlugins } = this; - const str = this.stringified; - const stack = [[input, index]]; - while (stack.length > 0) { - const [input2, index2] = stack.pop(); - const partsForObj = (obj) => Object.keys(obj).map((k) => `"_${flatten.call(this, k)}":${flatten.call(this, obj[k])}`).join(","); - let error = null; - switch (typeof input2) { - case "boolean": - case "number": - case "string": - str[index2] = JSON.stringify(input2); - break; - case "bigint": - str[index2] = `["${TYPE_BIGINT}","${input2}"]`; - break; - case "symbol": { - const keyFor = Symbol.keyFor(input2); - if (!keyFor) { - error = new Error( - "Cannot encode symbol unless created with Symbol.for()" - ); - } else { - str[index2] = `["${TYPE_SYMBOL}",${JSON.stringify(keyFor)}]`; - } - break; - } - case "object": { - if (!input2) { - str[index2] = `${NULL}`; - break; - } - const isArray = Array.isArray(input2); - let pluginHandled = false; - if (!isArray && plugins) { - for (const plugin of plugins) { - const pluginResult = plugin(input2); - if (Array.isArray(pluginResult)) { - pluginHandled = true; - const [pluginIdentifier, ...rest] = pluginResult; - str[index2] = `[${JSON.stringify(pluginIdentifier)}`; - if (rest.length > 0) { - str[index2] += `,${rest.map((v) => flatten.call(this, v)).join(",")}`; - } - str[index2] += "]"; - break; - } - } - } - if (!pluginHandled) { - let result = isArray ? "[" : "{"; - if (isArray) { - for (let i = 0; i < input2.length; i++) - result += (i ? "," : "") + (i in input2 ? flatten.call(this, input2[i]) : HOLE); - str[index2] = `${result}]`; - } else if (input2 instanceof Date) { - str[index2] = `["${TYPE_DATE}",${input2.getTime()}]`; - } else if (input2 instanceof URL) { - str[index2] = `["${TYPE_URL}",${JSON.stringify(input2.href)}]`; - } else if (input2 instanceof RegExp) { - str[index2] = `["${TYPE_REGEXP}",${JSON.stringify( - input2.source - )},${JSON.stringify(input2.flags)}]`; - } else if (input2 instanceof Set) { - if (input2.size > 0) { - str[index2] = `["${TYPE_SET}",${[...input2].map((val) => flatten.call(this, val)).join(",")}]`; - } else { - str[index2] = `["${TYPE_SET}"]`; - } - } else if (input2 instanceof Map) { - if (input2.size > 0) { - str[index2] = `["${TYPE_MAP}",${[...input2].flatMap(([k, v]) => [ - flatten.call(this, k), - flatten.call(this, v) - ]).join(",")}]`; - } else { - str[index2] = `["${TYPE_MAP}"]`; - } - } else if (input2 instanceof Promise) { - str[index2] = `["${TYPE_PROMISE}",${index2}]`; - deferred[index2] = input2; - } else if (input2 instanceof Error) { - str[index2] = `["${TYPE_ERROR}",${JSON.stringify(input2.message)}`; - if (input2.name !== "Error") { - str[index2] += `,${JSON.stringify(input2.name)}`; - } - str[index2] += "]"; - } else if (Object.getPrototypeOf(input2) === null) { - str[index2] = `["${TYPE_NULL_OBJECT}",{${partsForObj(input2)}}]`; - } else if (isPlainObject(input2)) { - str[index2] = `{${partsForObj(input2)}}`; - } else { - error = new Error("Cannot encode object with prototype"); - } - } - break; - } - default: { - const isArray = Array.isArray(input2); - let pluginHandled = false; - if (!isArray && plugins) { - for (const plugin of plugins) { - const pluginResult = plugin(input2); - if (Array.isArray(pluginResult)) { - pluginHandled = true; - const [pluginIdentifier, ...rest] = pluginResult; - str[index2] = `[${JSON.stringify(pluginIdentifier)}`; - if (rest.length > 0) { - str[index2] += `,${rest.map((v) => flatten.call(this, v)).join(",")}`; - } - str[index2] += "]"; - break; - } - } - } - if (!pluginHandled) { - error = new Error("Cannot encode function or unexpected type"); - } - } - } - if (error) { - let pluginHandled = false; - if (postPlugins) { - for (const plugin of postPlugins) { - const pluginResult = plugin(input2); - if (Array.isArray(pluginResult)) { - pluginHandled = true; - const [pluginIdentifier, ...rest] = pluginResult; - str[index2] = `[${JSON.stringify(pluginIdentifier)}`; - if (rest.length > 0) { - str[index2] += `,${rest.map((v) => flatten.call(this, v)).join(",")}`; - } - str[index2] += "]"; - break; - } - } - } - if (!pluginHandled) { - throw error; - } - } - } -} -var objectProtoNames = Object.getOwnPropertyNames(Object.prototype).sort().join("\0"); -function isPlainObject(thing) { - const proto = Object.getPrototypeOf(thing); - return proto === Object.prototype || proto === null || Object.getOwnPropertyNames(proto).sort().join("\0") === objectProtoNames; -} -var globalObj = typeof window !== "undefined" ? window : typeof globalThis !== "undefined" ? globalThis : void 0; -function unflatten(parsed) { - const { hydrated, values } = this; - if (typeof parsed === "number") - return hydrate.call(this, parsed); - if (!Array.isArray(parsed) || !parsed.length) - throw new SyntaxError(); - const startIndex = values.length; - for (const value of parsed) { - values.push(value); - } - hydrated.length = values.length; - return hydrate.call(this, startIndex); -} -function hydrate(index) { - const { hydrated, values, deferred, plugins } = this; - let result; - const stack = [ - [ - index, - (v) => { - result = v; - } - ] - ]; - let postRun = []; - while (stack.length > 0) { - const [index2, set] = stack.pop(); - switch (index2) { - case UNDEFINED: - set(void 0); - continue; - case NULL: - set(null); - continue; - case NAN: - set(NaN); - continue; - case POSITIVE_INFINITY: - set(Infinity); - continue; - case NEGATIVE_INFINITY: - set(-Infinity); - continue; - case NEGATIVE_ZERO: - set(-0); - continue; - } - if (hydrated[index2]) { - set(hydrated[index2]); - continue; - } - const value = values[index2]; - if (!value || typeof value !== "object") { - hydrated[index2] = value; - set(value); - continue; - } - if (Array.isArray(value)) { - if (typeof value[0] === "string") { - const [type, b, c] = value; - switch (type) { - case TYPE_DATE: - set(hydrated[index2] = new Date(b)); - continue; - case TYPE_URL: - set(hydrated[index2] = new URL(b)); - continue; - case TYPE_BIGINT: - set(hydrated[index2] = BigInt(b)); - continue; - case TYPE_REGEXP: - set(hydrated[index2] = new RegExp(b, c)); - continue; - case TYPE_SYMBOL: - set(hydrated[index2] = Symbol.for(b)); - continue; - case TYPE_SET: - const newSet = /* @__PURE__ */ new Set(); - hydrated[index2] = newSet; - for (let i = 1; i < value.length; i++) - stack.push([ - value[i], - (v) => { - newSet.add(v); - } - ]); - set(newSet); - continue; - case TYPE_MAP: - const map = /* @__PURE__ */ new Map(); - hydrated[index2] = map; - for (let i = 1; i < value.length; i += 2) { - const r = []; - stack.push([ - value[i + 1], - (v) => { - r[1] = v; - } - ]); - stack.push([ - value[i], - (k) => { - r[0] = k; - } - ]); - postRun.push(() => { - map.set(r[0], r[1]); - }); - } - set(map); - continue; - case TYPE_NULL_OBJECT: - const obj = /* @__PURE__ */ Object.create(null); - hydrated[index2] = obj; - for (const key of Object.keys(b).reverse()) { - const r = []; - stack.push([ - b[key], - (v) => { - r[1] = v; - } - ]); - stack.push([ - Number(key.slice(1)), - (k) => { - r[0] = k; - } - ]); - postRun.push(() => { - obj[r[0]] = r[1]; - }); - } - set(obj); - continue; - case TYPE_PROMISE: - if (hydrated[b]) { - set(hydrated[index2] = hydrated[b]); - } else { - const d = new Deferred(); - deferred[b] = d; - set(hydrated[index2] = d.promise); - } - continue; - case TYPE_ERROR: - const [, message, errorType] = value; - let error = errorType && globalObj && globalObj[errorType] ? new globalObj[errorType](message) : new Error(message); - hydrated[index2] = error; - set(error); - continue; - case TYPE_PREVIOUS_RESOLVED: - set(hydrated[index2] = hydrated[b]); - continue; - default: - if (Array.isArray(plugins)) { - const r = []; - const vals = value.slice(1); - for (let i = 0; i < vals.length; i++) { - const v = vals[i]; - stack.push([ - v, - (v2) => { - r[i] = v2; - } - ]); - } - postRun.push(() => { - for (const plugin of plugins) { - const result2 = plugin(value[0], ...r); - if (result2) { - set(hydrated[index2] = result2.value); - return; - } - } - throw new SyntaxError(); - }); - continue; - } - throw new SyntaxError(); - } - } else { - const array = []; - hydrated[index2] = array; - for (let i = 0; i < value.length; i++) { - const n = value[i]; - if (n !== HOLE) { - stack.push([ - n, - (v) => { - array[i] = v; - } - ]); - } - } - set(array); - continue; - } - } else { - const object = {}; - hydrated[index2] = object; - for (const key of Object.keys(value).reverse()) { - const r = []; - stack.push([ - value[key], - (v) => { - r[1] = v; - } - ]); - stack.push([ - Number(key.slice(1)), - (k) => { - r[0] = k; - } - ]); - postRun.push(() => { - object[r[0]] = r[1]; - }); - } - set(object); - continue; - } - } - while (postRun.length > 0) { - postRun.pop()(); - } - return result; -} -async function decode(readable, options) { - const { plugins } = options ?? {}; - const done = new Deferred(); - const reader = readable.pipeThrough(createLineSplittingTransform()).getReader(); - const decoder = { - values: [], - hydrated: [], - deferred: {}, - plugins - }; - const decoded = await decodeInitial.call(decoder, reader); - let donePromise = done.promise; - if (decoded.done) { - done.resolve(); - } else { - donePromise = decodeDeferred.call(decoder, reader).then(done.resolve).catch((reason) => { - for (const deferred of Object.values(decoder.deferred)) { - deferred.reject(reason); - } - done.reject(reason); - }); - } - return { - done: donePromise.then(() => reader.closed), - value: decoded.value - }; -} -async function decodeInitial(reader) { - const read = await reader.read(); - if (!read.value) { - throw new SyntaxError(); - } - let line; - try { - line = JSON.parse(read.value); - } catch (reason) { - throw new SyntaxError(); - } - return { - done: read.done, - value: unflatten.call(this, line) - }; -} -async function decodeDeferred(reader) { - let read = await reader.read(); - while (!read.done) { - if (!read.value) - continue; - const line = read.value; - switch (line[0]) { - case TYPE_PROMISE: { - const colonIndex = line.indexOf(":"); - const deferredId = Number(line.slice(1, colonIndex)); - const deferred = this.deferred[deferredId]; - if (!deferred) { - throw new Error(`Deferred ID ${deferredId} not found in stream`); - } - const lineData = line.slice(colonIndex + 1); - let jsonLine; - try { - jsonLine = JSON.parse(lineData); - } catch (reason) { - throw new SyntaxError(); - } - const value = unflatten.call(this, jsonLine); - deferred.resolve(value); - break; - } - case TYPE_ERROR: { - const colonIndex = line.indexOf(":"); - const deferredId = Number(line.slice(1, colonIndex)); - const deferred = this.deferred[deferredId]; - if (!deferred) { - throw new Error(`Deferred ID ${deferredId} not found in stream`); - } - const lineData = line.slice(colonIndex + 1); - let jsonLine; - try { - jsonLine = JSON.parse(lineData); - } catch (reason) { - throw new SyntaxError(); - } - const value = unflatten.call(this, jsonLine); - deferred.reject(value); - break; - } - default: - throw new SyntaxError(); - } - read = await reader.read(); - } -} -function encode(input, options) { - const { plugins, postPlugins, signal } = options ?? {}; - const encoder2 = { - deferred: {}, - index: 0, - indices: /* @__PURE__ */ new Map(), - stringified: [], - plugins, - postPlugins, - signal - }; - const textEncoder = new TextEncoder(); - let lastSentIndex = 0; - const readable = new ReadableStream({ - async start(controller) { - const id = flatten.call(encoder2, input); - if (Array.isArray(id)) { - throw new Error("This should never happen"); - } - if (id < 0) { - controller.enqueue(textEncoder.encode(`${id} -`)); - } else { - controller.enqueue( - textEncoder.encode(`[${encoder2.stringified.join(",")}] -`) - ); - lastSentIndex = encoder2.stringified.length - 1; - } - const seenPromises = /* @__PURE__ */ new WeakSet(); - while (Object.keys(encoder2.deferred).length > 0) { - for (const [deferredId, deferred] of Object.entries(encoder2.deferred)) { - if (seenPromises.has(deferred)) - continue; - seenPromises.add( - encoder2.deferred[Number(deferredId)] = raceSignal( - deferred, - encoder2.signal - ).then( - (resolved) => { - const id2 = flatten.call(encoder2, resolved); - if (Array.isArray(id2)) { - controller.enqueue( - textEncoder.encode( - `${TYPE_PROMISE}${deferredId}:[["${TYPE_PREVIOUS_RESOLVED}",${id2[0]}]] -` - ) - ); - encoder2.index++; - lastSentIndex++; - } else if (id2 < 0) { - controller.enqueue( - textEncoder.encode(`${TYPE_PROMISE}${deferredId}:${id2} -`) - ); - } else { - const values = encoder2.stringified.slice(lastSentIndex + 1).join(","); - controller.enqueue( - textEncoder.encode( - `${TYPE_PROMISE}${deferredId}:[${values}] -` - ) - ); - lastSentIndex = encoder2.stringified.length - 1; - } - }, - (reason) => { - if (!reason || typeof reason !== "object" || !(reason instanceof Error)) { - reason = new Error("An unknown error occurred"); - } - const id2 = flatten.call(encoder2, reason); - if (Array.isArray(id2)) { - controller.enqueue( - textEncoder.encode( - `${TYPE_ERROR}${deferredId}:[["${TYPE_PREVIOUS_RESOLVED}",${id2[0]}]] -` - ) - ); - encoder2.index++; - lastSentIndex++; - } else if (id2 < 0) { - controller.enqueue( - textEncoder.encode(`${TYPE_ERROR}${deferredId}:${id2} -`) - ); - } else { - const values = encoder2.stringified.slice(lastSentIndex + 1).join(","); - controller.enqueue( - textEncoder.encode( - `${TYPE_ERROR}${deferredId}:[${values}] -` - ) - ); - lastSentIndex = encoder2.stringified.length - 1; - } - } - ).finally(() => { - delete encoder2.deferred[Number(deferredId)]; - }) - ); - } - await Promise.race(Object.values(encoder2.deferred)); - } - await Promise.all(Object.values(encoder2.deferred)); - controller.close(); - } - }); - return readable; -} -function raceSignal(promise, signal) { - if (!signal) - return promise; - if (signal.aborted) - return Promise.reject(signal.reason || new Error("Signal was aborted.")); - const abort = new Promise((resolve, reject) => { - signal.addEventListener("abort", (event) => { - reject(signal.reason || new Error("Signal was aborted.")); - }); - promise.then(resolve).catch(reject); - }); - abort.catch(() => { - }); - return Promise.race([abort, promise]); -} - -// node_modules/react-router/dist/development/chunk-LSOULM7L.mjs -var React8 = __toESM(require_react(), 1); -var React7 = __toESM(require_react(), 1); -var React5 = __toESM(require_react(), 1); -var React6 = __toESM(require_react(), 1); -var React11 = __toESM(require_react(), 1); -var React12 = __toESM(require_react(), 1); -var React13 = __toESM(require_react(), 1); -var import_cookie = __toESM(require_dist(), 1); -var import_set_cookie_parser = __toESM(require_set_cookie(), 1); -var __typeError = (msg) => { - throw TypeError(msg); -}; -var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg); -var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj)); -var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value); -var Action = ((Action2) => { - Action2["Pop"] = "POP"; - Action2["Push"] = "PUSH"; - Action2["Replace"] = "REPLACE"; - return Action2; -})(Action || {}); -var PopStateEventType = "popstate"; -function createMemoryHistory(options = {}) { - let { initialEntries = ["/"], initialIndex, v5Compat = false } = options; - let entries; - entries = initialEntries.map( - (entry, index2) => createMemoryLocation( - entry, - typeof entry === "string" ? null : entry.state, - index2 === 0 ? "default" : void 0 - ) - ); - let index = clampIndex( - initialIndex == null ? entries.length - 1 : initialIndex - ); - let action = "POP"; - let listener = null; - function clampIndex(n) { - return Math.min(Math.max(n, 0), entries.length - 1); - } - function getCurrentLocation() { - return entries[index]; - } - function createMemoryLocation(to, state = null, key) { - let location = createLocation( - entries ? getCurrentLocation().pathname : "/", - to, - state, - key - ); - warning( - location.pathname.charAt(0) === "/", - `relative pathnames are not supported in memory history: ${JSON.stringify( - to - )}` - ); - return location; - } - function createHref2(to) { - return typeof to === "string" ? to : createPath(to); - } - let history = { - get index() { - return index; - }, - get action() { - return action; - }, - get location() { - return getCurrentLocation(); - }, - createHref: createHref2, - createURL(to) { - return new URL(createHref2(to), "http://localhost"); - }, - encodeLocation(to) { - let path = typeof to === "string" ? parsePath(to) : to; - return { - pathname: path.pathname || "", - search: path.search || "", - hash: path.hash || "" - }; - }, - push(to, state) { - action = "PUSH"; - let nextLocation = createMemoryLocation(to, state); - index += 1; - entries.splice(index, entries.length, nextLocation); - if (v5Compat && listener) { - listener({ action, location: nextLocation, delta: 1 }); - } - }, - replace(to, state) { - action = "REPLACE"; - let nextLocation = createMemoryLocation(to, state); - entries[index] = nextLocation; - if (v5Compat && listener) { - listener({ action, location: nextLocation, delta: 0 }); - } - }, - go(delta) { - action = "POP"; - let nextIndex = clampIndex(index + delta); - let nextLocation = entries[nextIndex]; - index = nextIndex; - if (listener) { - listener({ action, location: nextLocation, delta }); - } - }, - listen(fn) { - listener = fn; - return () => { - listener = null; - }; - } - }; - return history; -} -function createBrowserHistory(options = {}) { - function createBrowserLocation(window2, globalHistory) { - let { pathname, search, hash } = window2.location; - return createLocation( - "", - { pathname, search, hash }, - // state defaults to `null` because `window.history.state` does - globalHistory.state && globalHistory.state.usr || null, - globalHistory.state && globalHistory.state.key || "default" - ); - } - function createBrowserHref(window2, to) { - return typeof to === "string" ? to : createPath(to); - } - return getUrlBasedHistory( - createBrowserLocation, - createBrowserHref, - null, - options - ); -} -function createHashHistory(options = {}) { - function createHashLocation(window2, globalHistory) { - let { - pathname = "/", - search = "", - hash = "" - } = parsePath(window2.location.hash.substring(1)); - if (!pathname.startsWith("/") && !pathname.startsWith(".")) { - pathname = "/" + pathname; - } - return createLocation( - "", - { pathname, search, hash }, - // state defaults to `null` because `window.history.state` does - globalHistory.state && globalHistory.state.usr || null, - globalHistory.state && globalHistory.state.key || "default" - ); - } - function createHashHref(window2, to) { - let base = window2.document.querySelector("base"); - let href2 = ""; - if (base && base.getAttribute("href")) { - let url = window2.location.href; - let hashIndex = url.indexOf("#"); - href2 = hashIndex === -1 ? url : url.slice(0, hashIndex); - } - return href2 + "#" + (typeof to === "string" ? to : createPath(to)); - } - function validateHashLocation(location, to) { - warning( - location.pathname.charAt(0) === "/", - `relative pathnames are not supported in hash history.push(${JSON.stringify( - to - )})` - ); - } - return getUrlBasedHistory( - createHashLocation, - createHashHref, - validateHashLocation, - options - ); -} -function invariant(value, message) { - if (value === false || value === null || typeof value === "undefined") { - throw new Error(message); - } -} -function warning(cond, message) { - if (!cond) { - if (typeof console !== "undefined") console.warn(message); - try { - throw new Error(message); - } catch (e) { - } - } -} -function createKey() { - return Math.random().toString(36).substring(2, 10); -} -function getHistoryState(location, index) { - return { - usr: location.state, - key: location.key, - idx: index - }; -} -function createLocation(current, to, state = null, key) { - let location = { - pathname: typeof current === "string" ? current : current.pathname, - search: "", - hash: "", - ...typeof to === "string" ? parsePath(to) : to, - state, - // TODO: This could be cleaned up. push/replace should probably just take - // full Locations now and avoid the need to run through this flow at all - // But that's a pretty big refactor to the current test suite so going to - // keep as is for the time being and just let any incoming keys take precedence - key: to && to.key || key || createKey() - }; - return location; -} -function createPath({ - pathname = "/", - search = "", - hash = "" -}) { - if (search && search !== "?") - pathname += search.charAt(0) === "?" ? search : "?" + search; - if (hash && hash !== "#") - pathname += hash.charAt(0) === "#" ? hash : "#" + hash; - return pathname; -} -function parsePath(path) { - let parsedPath = {}; - if (path) { - let hashIndex = path.indexOf("#"); - if (hashIndex >= 0) { - parsedPath.hash = path.substring(hashIndex); - path = path.substring(0, hashIndex); - } - let searchIndex = path.indexOf("?"); - if (searchIndex >= 0) { - parsedPath.search = path.substring(searchIndex); - path = path.substring(0, searchIndex); - } - if (path) { - parsedPath.pathname = path; - } - } - return parsedPath; -} -function getUrlBasedHistory(getLocation, createHref2, validateLocation, options = {}) { - let { window: window2 = document.defaultView, v5Compat = false } = options; - let globalHistory = window2.history; - let action = "POP"; - let listener = null; - let index = getIndex(); - if (index == null) { - index = 0; - globalHistory.replaceState({ ...globalHistory.state, idx: index }, ""); - } - function getIndex() { - let state = globalHistory.state || { idx: null }; - return state.idx; - } - function handlePop() { - action = "POP"; - let nextIndex = getIndex(); - let delta = nextIndex == null ? null : nextIndex - index; - index = nextIndex; - if (listener) { - listener({ action, location: history.location, delta }); - } - } - function push(to, state) { - action = "PUSH"; - let location = createLocation(history.location, to, state); - if (validateLocation) validateLocation(location, to); - index = getIndex() + 1; - let historyState = getHistoryState(location, index); - let url = history.createHref(location); - try { - globalHistory.pushState(historyState, "", url); - } catch (error) { - if (error instanceof DOMException && error.name === "DataCloneError") { - throw error; - } - window2.location.assign(url); - } - if (v5Compat && listener) { - listener({ action, location: history.location, delta: 1 }); - } - } - function replace2(to, state) { - action = "REPLACE"; - let location = createLocation(history.location, to, state); - if (validateLocation) validateLocation(location, to); - index = getIndex(); - let historyState = getHistoryState(location, index); - let url = history.createHref(location); - globalHistory.replaceState(historyState, "", url); - if (v5Compat && listener) { - listener({ action, location: history.location, delta: 0 }); - } - } - function createURL(to) { - let base = window2.location.origin !== "null" ? window2.location.origin : window2.location.href; - let href2 = typeof to === "string" ? to : createPath(to); - href2 = href2.replace(/ $/, "%20"); - invariant( - base, - `No window.location.(origin|href) available to create URL for href: ${href2}` - ); - return new URL(href2, base); - } - let history = { - get action() { - return action; - }, - get location() { - return getLocation(window2, globalHistory); - }, - listen(fn) { - if (listener) { - throw new Error("A history only accepts one active listener"); - } - window2.addEventListener(PopStateEventType, handlePop); - listener = fn; - return () => { - window2.removeEventListener(PopStateEventType, handlePop); - listener = null; - }; - }, - createHref(to) { - return createHref2(window2, to); - }, - createURL, - encodeLocation(to) { - let url = createURL(to); - return { - pathname: url.pathname, - search: url.search, - hash: url.hash - }; - }, - push, - replace: replace2, - go(n) { - return globalHistory.go(n); - } - }; - return history; -} -function unstable_createContext(defaultValue) { - return { defaultValue }; -} -var _map; -var unstable_RouterContextProvider = class { - constructor(init) { - __privateAdd(this, _map, /* @__PURE__ */ new Map()); - if (init) { - for (let [context, value] of init) { - this.set(context, value); - } - } - } - get(context) { - if (__privateGet(this, _map).has(context)) { - return __privateGet(this, _map).get(context); - } - if (context.defaultValue !== void 0) { - return context.defaultValue; - } - throw new Error("No value found for context"); - } - set(context, value) { - __privateGet(this, _map).set(context, value); - } -}; -_map = /* @__PURE__ */ new WeakMap(); -var unsupportedLazyRouteObjectKeys = /* @__PURE__ */ new Set([ - "lazy", - "caseSensitive", - "path", - "id", - "index", - "children" -]); -function isUnsupportedLazyRouteObjectKey(key) { - return unsupportedLazyRouteObjectKeys.has( - key - ); -} -var unsupportedLazyRouteFunctionKeys = /* @__PURE__ */ new Set([ - "lazy", - "caseSensitive", - "path", - "id", - "index", - "unstable_middleware", - "children" -]); -function isUnsupportedLazyRouteFunctionKey(key) { - return unsupportedLazyRouteFunctionKeys.has( - key - ); -} -function isIndexRoute(route) { - return route.index === true; -} -function convertRoutesToDataRoutes(routes, mapRouteProperties2, parentPath = [], manifest = {}) { - return routes.map((route, index) => { - let treePath = [...parentPath, String(index)]; - let id = typeof route.id === "string" ? route.id : treePath.join("-"); - invariant( - route.index !== true || !route.children, - `Cannot specify children on an index route` - ); - invariant( - !manifest[id], - `Found a route id collision on id "${id}". Route id's must be globally unique within Data Router usages` - ); - if (isIndexRoute(route)) { - let indexRoute = { - ...route, - ...mapRouteProperties2(route), - id - }; - manifest[id] = indexRoute; - return indexRoute; - } else { - let pathOrLayoutRoute = { - ...route, - ...mapRouteProperties2(route), - id, - children: void 0 - }; - manifest[id] = pathOrLayoutRoute; - if (route.children) { - pathOrLayoutRoute.children = convertRoutesToDataRoutes( - route.children, - mapRouteProperties2, - treePath, - manifest - ); - } - return pathOrLayoutRoute; - } - }); -} -function matchRoutes(routes, locationArg, basename = "/") { - return matchRoutesImpl(routes, locationArg, basename, false); -} -function matchRoutesImpl(routes, locationArg, basename, allowPartial) { - let location = typeof locationArg === "string" ? parsePath(locationArg) : locationArg; - let pathname = stripBasename(location.pathname || "/", basename); - if (pathname == null) { - return null; - } - let branches = flattenRoutes(routes); - rankRouteBranches(branches); - let matches = null; - for (let i = 0; matches == null && i < branches.length; ++i) { - let decoded = decodePath(pathname); - matches = matchRouteBranch( - branches[i], - decoded, - allowPartial - ); - } - return matches; -} -function convertRouteMatchToUiMatch(match, loaderData) { - let { route, pathname, params } = match; - return { - id: route.id, - pathname, - params, - data: loaderData[route.id], - handle: route.handle - }; -} -function flattenRoutes(routes, branches = [], parentsMeta = [], parentPath = "") { - let flattenRoute = (route, index, relativePath) => { - let meta = { - relativePath: relativePath === void 0 ? route.path || "" : relativePath, - caseSensitive: route.caseSensitive === true, - childrenIndex: index, - route - }; - if (meta.relativePath.startsWith("/")) { - invariant( - meta.relativePath.startsWith(parentPath), - `Absolute route path "${meta.relativePath}" nested under path "${parentPath}" is not valid. An absolute child route path must start with the combined path of all its parent routes.` - ); - meta.relativePath = meta.relativePath.slice(parentPath.length); - } - let path = joinPaths([parentPath, meta.relativePath]); - let routesMeta = parentsMeta.concat(meta); - if (route.children && route.children.length > 0) { - invariant( - // Our types know better, but runtime JS may not! - // @ts-expect-error - route.index !== true, - `Index routes must not have child routes. Please remove all child routes from route path "${path}".` - ); - flattenRoutes(route.children, branches, routesMeta, path); - } - if (route.path == null && !route.index) { - return; - } - branches.push({ - path, - score: computeScore(path, route.index), - routesMeta - }); - }; - routes.forEach((route, index) => { - var _a; - if (route.path === "" || !((_a = route.path) == null ? void 0 : _a.includes("?"))) { - flattenRoute(route, index); - } else { - for (let exploded of explodeOptionalSegments(route.path)) { - flattenRoute(route, index, exploded); - } - } - }); - return branches; -} -function explodeOptionalSegments(path) { - let segments = path.split("/"); - if (segments.length === 0) return []; - let [first, ...rest] = segments; - let isOptional = first.endsWith("?"); - let required = first.replace(/\?$/, ""); - if (rest.length === 0) { - return isOptional ? [required, ""] : [required]; - } - let restExploded = explodeOptionalSegments(rest.join("/")); - let result = []; - result.push( - ...restExploded.map( - (subpath) => subpath === "" ? required : [required, subpath].join("/") - ) - ); - if (isOptional) { - result.push(...restExploded); - } - return result.map( - (exploded) => path.startsWith("/") && exploded === "" ? "/" : exploded - ); -} -function rankRouteBranches(branches) { - branches.sort( - (a, b) => a.score !== b.score ? b.score - a.score : compareIndexes( - a.routesMeta.map((meta) => meta.childrenIndex), - b.routesMeta.map((meta) => meta.childrenIndex) - ) - ); -} -var paramRe = /^:[\w-]+$/; -var dynamicSegmentValue = 3; -var indexRouteValue = 2; -var emptySegmentValue = 1; -var staticSegmentValue = 10; -var splatPenalty = -2; -var isSplat = (s) => s === "*"; -function computeScore(path, index) { - let segments = path.split("/"); - let initialScore = segments.length; - if (segments.some(isSplat)) { - initialScore += splatPenalty; - } - if (index) { - initialScore += indexRouteValue; - } - return segments.filter((s) => !isSplat(s)).reduce( - (score, segment) => score + (paramRe.test(segment) ? dynamicSegmentValue : segment === "" ? emptySegmentValue : staticSegmentValue), - initialScore - ); -} -function compareIndexes(a, b) { - let siblings = a.length === b.length && a.slice(0, -1).every((n, i) => n === b[i]); - return siblings ? ( - // If two routes are siblings, we should try to match the earlier sibling - // first. This allows people to have fine-grained control over the matching - // behavior by simply putting routes with identical paths in the order they - // want them tried. - a[a.length - 1] - b[b.length - 1] - ) : ( - // Otherwise, it doesn't really make sense to rank non-siblings by index, - // so they sort equally. - 0 - ); -} -function matchRouteBranch(branch, pathname, allowPartial = false) { - let { routesMeta } = branch; - let matchedParams = {}; - let matchedPathname = "/"; - let matches = []; - for (let i = 0; i < routesMeta.length; ++i) { - let meta = routesMeta[i]; - let end = i === routesMeta.length - 1; - let remainingPathname = matchedPathname === "/" ? pathname : pathname.slice(matchedPathname.length) || "/"; - let match = matchPath( - { path: meta.relativePath, caseSensitive: meta.caseSensitive, end }, - remainingPathname - ); - let route = meta.route; - if (!match && end && allowPartial && !routesMeta[routesMeta.length - 1].route.index) { - match = matchPath( - { - path: meta.relativePath, - caseSensitive: meta.caseSensitive, - end: false - }, - remainingPathname - ); - } - if (!match) { - return null; - } - Object.assign(matchedParams, match.params); - matches.push({ - // TODO: Can this as be avoided? - params: matchedParams, - pathname: joinPaths([matchedPathname, match.pathname]), - pathnameBase: normalizePathname( - joinPaths([matchedPathname, match.pathnameBase]) - ), - route - }); - if (match.pathnameBase !== "/") { - matchedPathname = joinPaths([matchedPathname, match.pathnameBase]); - } - } - return matches; -} -function generatePath(originalPath, params = {}) { - let path = originalPath; - if (path.endsWith("*") && path !== "*" && !path.endsWith("/*")) { - warning( - false, - `Route path "${path}" will be treated as if it were "${path.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${path.replace(/\*$/, "/*")}".` - ); - path = path.replace(/\*$/, "/*"); - } - const prefix = path.startsWith("/") ? "/" : ""; - const stringify2 = (p) => p == null ? "" : typeof p === "string" ? p : String(p); - const segments = path.split(/\/+/).map((segment, index, array) => { - const isLastSegment = index === array.length - 1; - if (isLastSegment && segment === "*") { - const star = "*"; - return stringify2(params[star]); - } - const keyMatch = segment.match(/^:([\w-]+)(\??)$/); - if (keyMatch) { - const [, key, optional] = keyMatch; - let param = params[key]; - invariant(optional === "?" || param != null, `Missing ":${key}" param`); - return stringify2(param); - } - return segment.replace(/\?$/g, ""); - }).filter((segment) => !!segment); - return prefix + segments.join("/"); -} -function matchPath(pattern, pathname) { - if (typeof pattern === "string") { - pattern = { path: pattern, caseSensitive: false, end: true }; - } - let [matcher, compiledParams] = compilePath( - pattern.path, - pattern.caseSensitive, - pattern.end - ); - let match = pathname.match(matcher); - if (!match) return null; - let matchedPathname = match[0]; - let pathnameBase = matchedPathname.replace(/(.)\/+$/, "$1"); - let captureGroups = match.slice(1); - let params = compiledParams.reduce( - (memo2, { paramName, isOptional }, index) => { - if (paramName === "*") { - let splatValue = captureGroups[index] || ""; - pathnameBase = matchedPathname.slice(0, matchedPathname.length - splatValue.length).replace(/(.)\/+$/, "$1"); - } - const value = captureGroups[index]; - if (isOptional && !value) { - memo2[paramName] = void 0; - } else { - memo2[paramName] = (value || "").replace(/%2F/g, "/"); - } - return memo2; - }, - {} - ); - return { - params, - pathname: matchedPathname, - pathnameBase, - pattern - }; -} -function compilePath(path, caseSensitive = false, end = true) { - warning( - path === "*" || !path.endsWith("*") || path.endsWith("/*"), - `Route path "${path}" will be treated as if it were "${path.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${path.replace(/\*$/, "/*")}".` - ); - let params = []; - let regexpSource = "^" + path.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace( - /\/:([\w-]+)(\?)?/g, - (_, paramName, isOptional) => { - params.push({ paramName, isOptional: isOptional != null }); - return isOptional ? "/?([^\\/]+)?" : "/([^\\/]+)"; - } - ); - if (path.endsWith("*")) { - params.push({ paramName: "*" }); - regexpSource += path === "*" || path === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$"; - } else if (end) { - regexpSource += "\\/*$"; - } else if (path !== "" && path !== "/") { - regexpSource += "(?:(?=\\/|$))"; - } else { - } - let matcher = new RegExp(regexpSource, caseSensitive ? void 0 : "i"); - return [matcher, params]; -} -function decodePath(value) { - try { - return value.split("/").map((v) => decodeURIComponent(v).replace(/\//g, "%2F")).join("/"); - } catch (error) { - warning( - false, - `The URL path "${value}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${error}).` - ); - return value; - } -} -function stripBasename(pathname, basename) { - if (basename === "/") return pathname; - if (!pathname.toLowerCase().startsWith(basename.toLowerCase())) { - return null; - } - let startIndex = basename.endsWith("/") ? basename.length - 1 : basename.length; - let nextChar = pathname.charAt(startIndex); - if (nextChar && nextChar !== "/") { - return null; - } - return pathname.slice(startIndex) || "/"; -} -function resolvePath(to, fromPathname = "/") { - let { - pathname: toPathname, - search = "", - hash = "" - } = typeof to === "string" ? parsePath(to) : to; - let pathname = toPathname ? toPathname.startsWith("/") ? toPathname : resolvePathname(toPathname, fromPathname) : fromPathname; - return { - pathname, - search: normalizeSearch(search), - hash: normalizeHash(hash) - }; -} -function resolvePathname(relativePath, fromPathname) { - let segments = fromPathname.replace(/\/+$/, "").split("/"); - let relativeSegments = relativePath.split("/"); - relativeSegments.forEach((segment) => { - if (segment === "..") { - if (segments.length > 1) segments.pop(); - } else if (segment !== ".") { - segments.push(segment); - } - }); - return segments.length > 1 ? segments.join("/") : "/"; -} -function getInvalidPathError(char, field, dest, path) { - return `Cannot include a '${char}' character in a manually specified \`to.${field}\` field [${JSON.stringify( - path - )}]. Please separate it out to the \`to.${dest}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`; -} -function getPathContributingMatches(matches) { - return matches.filter( - (match, index) => index === 0 || match.route.path && match.route.path.length > 0 - ); -} -function getResolveToMatches(matches) { - let pathMatches = getPathContributingMatches(matches); - return pathMatches.map( - (match, idx) => idx === pathMatches.length - 1 ? match.pathname : match.pathnameBase - ); -} -function resolveTo(toArg, routePathnames, locationPathname, isPathRelative = false) { - let to; - if (typeof toArg === "string") { - to = parsePath(toArg); - } else { - to = { ...toArg }; - invariant( - !to.pathname || !to.pathname.includes("?"), - getInvalidPathError("?", "pathname", "search", to) - ); - invariant( - !to.pathname || !to.pathname.includes("#"), - getInvalidPathError("#", "pathname", "hash", to) - ); - invariant( - !to.search || !to.search.includes("#"), - getInvalidPathError("#", "search", "hash", to) - ); - } - let isEmptyPath = toArg === "" || to.pathname === ""; - let toPathname = isEmptyPath ? "/" : to.pathname; - let from; - if (toPathname == null) { - from = locationPathname; - } else { - let routePathnameIndex = routePathnames.length - 1; - if (!isPathRelative && toPathname.startsWith("..")) { - let toSegments = toPathname.split("/"); - while (toSegments[0] === "..") { - toSegments.shift(); - routePathnameIndex -= 1; - } - to.pathname = toSegments.join("/"); - } - from = routePathnameIndex >= 0 ? routePathnames[routePathnameIndex] : "/"; - } - let path = resolvePath(to, from); - let hasExplicitTrailingSlash = toPathname && toPathname !== "/" && toPathname.endsWith("/"); - let hasCurrentTrailingSlash = (isEmptyPath || toPathname === ".") && locationPathname.endsWith("/"); - if (!path.pathname.endsWith("/") && (hasExplicitTrailingSlash || hasCurrentTrailingSlash)) { - path.pathname += "/"; - } - return path; -} -var joinPaths = (paths) => paths.join("/").replace(/\/\/+/g, "/"); -var normalizePathname = (pathname) => pathname.replace(/\/+$/, "").replace(/^\/*/, "/"); -var normalizeSearch = (search) => !search || search === "?" ? "" : search.startsWith("?") ? search : "?" + search; -var normalizeHash = (hash) => !hash || hash === "#" ? "" : hash.startsWith("#") ? hash : "#" + hash; -var DataWithResponseInit = class { - constructor(data2, init) { - this.type = "DataWithResponseInit"; - this.data = data2; - this.init = init || null; - } -}; -function data(data2, init) { - return new DataWithResponseInit( - data2, - typeof init === "number" ? { status: init } : init - ); -} -var redirect = (url, init = 302) => { - let responseInit = init; - if (typeof responseInit === "number") { - responseInit = { status: responseInit }; - } else if (typeof responseInit.status === "undefined") { - responseInit.status = 302; - } - let headers = new Headers(responseInit.headers); - headers.set("Location", url); - return new Response(null, { ...responseInit, headers }); -}; -var redirectDocument = (url, init) => { - let response = redirect(url, init); - response.headers.set("X-Remix-Reload-Document", "true"); - return response; -}; -var replace = (url, init) => { - let response = redirect(url, init); - response.headers.set("X-Remix-Replace", "true"); - return response; -}; -var ErrorResponseImpl = class { - constructor(status, statusText, data2, internal = false) { - this.status = status; - this.statusText = statusText || ""; - this.internal = internal; - if (data2 instanceof Error) { - this.data = data2.toString(); - this.error = data2; - } else { - this.data = data2; - } - } -}; -function isRouteErrorResponse(error) { - return error != null && typeof error.status === "number" && typeof error.statusText === "string" && typeof error.internal === "boolean" && "data" in error; -} -var validMutationMethodsArr = [ - "POST", - "PUT", - "PATCH", - "DELETE" -]; -var validMutationMethods = new Set( - validMutationMethodsArr -); -var validRequestMethodsArr = [ - "GET", - ...validMutationMethodsArr -]; -var validRequestMethods = new Set(validRequestMethodsArr); -var redirectStatusCodes = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]); -var redirectPreserveMethodStatusCodes = /* @__PURE__ */ new Set([307, 308]); -var IDLE_NAVIGATION = { - state: "idle", - location: void 0, - formMethod: void 0, - formAction: void 0, - formEncType: void 0, - formData: void 0, - json: void 0, - text: void 0 -}; -var IDLE_FETCHER = { - state: "idle", - data: void 0, - formMethod: void 0, - formAction: void 0, - formEncType: void 0, - formData: void 0, - json: void 0, - text: void 0 -}; -var IDLE_BLOCKER = { - state: "unblocked", - proceed: void 0, - reset: void 0, - location: void 0 -}; -var ABSOLUTE_URL_REGEX = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i; -var defaultMapRouteProperties = (route) => ({ - hasErrorBoundary: Boolean(route.hasErrorBoundary) -}); -var TRANSITIONS_STORAGE_KEY = "remix-router-transitions"; -var ResetLoaderDataSymbol = Symbol("ResetLoaderData"); -function createRouter(init) { - const routerWindow = init.window ? init.window : typeof window !== "undefined" ? window : void 0; - const isBrowser2 = typeof routerWindow !== "undefined" && typeof routerWindow.document !== "undefined" && typeof routerWindow.document.createElement !== "undefined"; - invariant( - init.routes.length > 0, - "You must provide a non-empty routes array to createRouter" - ); - let hydrationRouteProperties2 = init.hydrationRouteProperties || []; - let mapRouteProperties2 = init.mapRouteProperties || defaultMapRouteProperties; - let manifest = {}; - let dataRoutes = convertRoutesToDataRoutes( - init.routes, - mapRouteProperties2, - void 0, - manifest - ); - let inFlightDataRoutes; - let basename = init.basename || "/"; - let dataStrategyImpl = init.dataStrategy || defaultDataStrategyWithMiddleware; - let future = { - unstable_middleware: false, - ...init.future - }; - let unlistenHistory = null; - let subscribers = /* @__PURE__ */ new Set(); - let savedScrollPositions2 = null; - let getScrollRestorationKey2 = null; - let getScrollPosition = null; - let initialScrollRestored = init.hydrationData != null; - let initialMatches = matchRoutes(dataRoutes, init.history.location, basename); - let initialMatchesIsFOW = false; - let initialErrors = null; - if (initialMatches == null && !init.patchRoutesOnNavigation) { - let error = getInternalRouterError(404, { - pathname: init.history.location.pathname - }); - let { matches, route } = getShortCircuitMatches(dataRoutes); - initialMatches = matches; - initialErrors = { [route.id]: error }; - } - if (initialMatches && !init.hydrationData) { - let fogOfWar = checkFogOfWar( - initialMatches, - dataRoutes, - init.history.location.pathname - ); - if (fogOfWar.active) { - initialMatches = null; - } - } - let initialized; - if (!initialMatches) { - initialized = false; - initialMatches = []; - let fogOfWar = checkFogOfWar( - null, - dataRoutes, - init.history.location.pathname - ); - if (fogOfWar.active && fogOfWar.matches) { - initialMatchesIsFOW = true; - initialMatches = fogOfWar.matches; - } - } else if (initialMatches.some((m) => m.route.lazy)) { - initialized = false; - } else if (!initialMatches.some((m) => m.route.loader)) { - initialized = true; - } else { - let loaderData = init.hydrationData ? init.hydrationData.loaderData : null; - let errors = init.hydrationData ? init.hydrationData.errors : null; - if (errors) { - let idx = initialMatches.findIndex( - (m) => errors[m.route.id] !== void 0 - ); - initialized = initialMatches.slice(0, idx + 1).every((m) => !shouldLoadRouteOnHydration(m.route, loaderData, errors)); - } else { - initialized = initialMatches.every( - (m) => !shouldLoadRouteOnHydration(m.route, loaderData, errors) - ); - } - } - let router2; - let state = { - historyAction: init.history.action, - location: init.history.location, - matches: initialMatches, - initialized, - navigation: IDLE_NAVIGATION, - // Don't restore on initial updateState() if we were SSR'd - restoreScrollPosition: init.hydrationData != null ? false : null, - preventScrollReset: false, - revalidation: "idle", - loaderData: init.hydrationData && init.hydrationData.loaderData || {}, - actionData: init.hydrationData && init.hydrationData.actionData || null, - errors: init.hydrationData && init.hydrationData.errors || initialErrors, - fetchers: /* @__PURE__ */ new Map(), - blockers: /* @__PURE__ */ new Map() - }; - let pendingAction = "POP"; - let pendingPreventScrollReset = false; - let pendingNavigationController; - let pendingViewTransitionEnabled = false; - let appliedViewTransitions = /* @__PURE__ */ new Map(); - let removePageHideEventListener = null; - let isUninterruptedRevalidation = false; - let isRevalidationRequired = false; - let cancelledFetcherLoads = /* @__PURE__ */ new Set(); - let fetchControllers = /* @__PURE__ */ new Map(); - let incrementingLoadId = 0; - let pendingNavigationLoadId = -1; - let fetchReloadIds = /* @__PURE__ */ new Map(); - let fetchRedirectIds = /* @__PURE__ */ new Set(); - let fetchLoadMatches = /* @__PURE__ */ new Map(); - let activeFetchers = /* @__PURE__ */ new Map(); - let fetchersQueuedForDeletion = /* @__PURE__ */ new Set(); - let blockerFunctions = /* @__PURE__ */ new Map(); - let unblockBlockerHistoryUpdate = void 0; - let pendingRevalidationDfd = null; - function initialize() { - unlistenHistory = init.history.listen( - ({ action: historyAction, location, delta }) => { - if (unblockBlockerHistoryUpdate) { - unblockBlockerHistoryUpdate(); - unblockBlockerHistoryUpdate = void 0; - return; - } - warning( - blockerFunctions.size === 0 || delta != null, - "You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL." - ); - let blockerKey = shouldBlockNavigation({ - currentLocation: state.location, - nextLocation: location, - historyAction - }); - if (blockerKey && delta != null) { - let nextHistoryUpdatePromise = new Promise((resolve) => { - unblockBlockerHistoryUpdate = resolve; - }); - init.history.go(delta * -1); - updateBlocker(blockerKey, { - state: "blocked", - location, - proceed() { - updateBlocker(blockerKey, { - state: "proceeding", - proceed: void 0, - reset: void 0, - location - }); - nextHistoryUpdatePromise.then(() => init.history.go(delta)); - }, - reset() { - let blockers = new Map(state.blockers); - blockers.set(blockerKey, IDLE_BLOCKER); - updateState({ blockers }); - } - }); - return; - } - return startNavigation(historyAction, location); - } - ); - if (isBrowser2) { - restoreAppliedTransitions(routerWindow, appliedViewTransitions); - let _saveAppliedTransitions = () => persistAppliedTransitions(routerWindow, appliedViewTransitions); - routerWindow.addEventListener("pagehide", _saveAppliedTransitions); - removePageHideEventListener = () => routerWindow.removeEventListener("pagehide", _saveAppliedTransitions); - } - if (!state.initialized) { - startNavigation("POP", state.location, { - initialHydration: true - }); - } - return router2; - } - function dispose() { - if (unlistenHistory) { - unlistenHistory(); - } - if (removePageHideEventListener) { - removePageHideEventListener(); - } - subscribers.clear(); - pendingNavigationController && pendingNavigationController.abort(); - state.fetchers.forEach((_, key) => deleteFetcher(key)); - state.blockers.forEach((_, key) => deleteBlocker(key)); - } - function subscribe(fn) { - subscribers.add(fn); - return () => subscribers.delete(fn); - } - function updateState(newState, opts = {}) { - state = { - ...state, - ...newState - }; - let unmountedFetchers = []; - let mountedFetchers = []; - state.fetchers.forEach((fetcher, key) => { - if (fetcher.state === "idle") { - if (fetchersQueuedForDeletion.has(key)) { - unmountedFetchers.push(key); - } else { - mountedFetchers.push(key); - } - } - }); - fetchersQueuedForDeletion.forEach((key) => { - if (!state.fetchers.has(key) && !fetchControllers.has(key)) { - unmountedFetchers.push(key); - } - }); - [...subscribers].forEach( - (subscriber) => subscriber(state, { - deletedFetchers: unmountedFetchers, - viewTransitionOpts: opts.viewTransitionOpts, - flushSync: opts.flushSync === true - }) - ); - unmountedFetchers.forEach((key) => deleteFetcher(key)); - mountedFetchers.forEach((key) => state.fetchers.delete(key)); - } - function completeNavigation(location, newState, { flushSync: flushSync2 } = {}) { - var _a, _b; - let isActionReload = state.actionData != null && state.navigation.formMethod != null && isMutationMethod(state.navigation.formMethod) && state.navigation.state === "loading" && ((_a = location.state) == null ? void 0 : _a._isRedirect) !== true; - let actionData; - if (newState.actionData) { - if (Object.keys(newState.actionData).length > 0) { - actionData = newState.actionData; - } else { - actionData = null; - } - } else if (isActionReload) { - actionData = state.actionData; - } else { - actionData = null; - } - let loaderData = newState.loaderData ? mergeLoaderData( - state.loaderData, - newState.loaderData, - newState.matches || [], - newState.errors - ) : state.loaderData; - let blockers = state.blockers; - if (blockers.size > 0) { - blockers = new Map(blockers); - blockers.forEach((_, k) => blockers.set(k, IDLE_BLOCKER)); - } - let preventScrollReset = pendingPreventScrollReset === true || state.navigation.formMethod != null && isMutationMethod(state.navigation.formMethod) && ((_b = location.state) == null ? void 0 : _b._isRedirect) !== true; - if (inFlightDataRoutes) { - dataRoutes = inFlightDataRoutes; - inFlightDataRoutes = void 0; - } - if (isUninterruptedRevalidation) { - } else if (pendingAction === "POP") { - } else if (pendingAction === "PUSH") { - init.history.push(location, location.state); - } else if (pendingAction === "REPLACE") { - init.history.replace(location, location.state); - } - let viewTransitionOpts; - if (pendingAction === "POP") { - let priorPaths = appliedViewTransitions.get(state.location.pathname); - if (priorPaths && priorPaths.has(location.pathname)) { - viewTransitionOpts = { - currentLocation: state.location, - nextLocation: location - }; - } else if (appliedViewTransitions.has(location.pathname)) { - viewTransitionOpts = { - currentLocation: location, - nextLocation: state.location - }; - } - } else if (pendingViewTransitionEnabled) { - let toPaths = appliedViewTransitions.get(state.location.pathname); - if (toPaths) { - toPaths.add(location.pathname); - } else { - toPaths = /* @__PURE__ */ new Set([location.pathname]); - appliedViewTransitions.set(state.location.pathname, toPaths); - } - viewTransitionOpts = { - currentLocation: state.location, - nextLocation: location - }; - } - updateState( - { - ...newState, - // matches, errors, fetchers go through as-is - actionData, - loaderData, - historyAction: pendingAction, - location, - initialized: true, - navigation: IDLE_NAVIGATION, - revalidation: "idle", - restoreScrollPosition: getSavedScrollPosition( - location, - newState.matches || state.matches - ), - preventScrollReset, - blockers - }, - { - viewTransitionOpts, - flushSync: flushSync2 === true - } - ); - pendingAction = "POP"; - pendingPreventScrollReset = false; - pendingViewTransitionEnabled = false; - isUninterruptedRevalidation = false; - isRevalidationRequired = false; - pendingRevalidationDfd == null ? void 0 : pendingRevalidationDfd.resolve(); - pendingRevalidationDfd = null; - } - async function navigate(to, opts) { - if (typeof to === "number") { - init.history.go(to); - return; - } - let normalizedPath = normalizeTo( - state.location, - state.matches, - basename, - to, - opts == null ? void 0 : opts.fromRouteId, - opts == null ? void 0 : opts.relative - ); - let { path, submission, error } = normalizeNavigateOptions( - false, - normalizedPath, - opts - ); - let currentLocation = state.location; - let nextLocation = createLocation(state.location, path, opts && opts.state); - nextLocation = { - ...nextLocation, - ...init.history.encodeLocation(nextLocation) - }; - let userReplace = opts && opts.replace != null ? opts.replace : void 0; - let historyAction = "PUSH"; - if (userReplace === true) { - historyAction = "REPLACE"; - } else if (userReplace === false) { - } else if (submission != null && isMutationMethod(submission.formMethod) && submission.formAction === state.location.pathname + state.location.search) { - historyAction = "REPLACE"; - } - let preventScrollReset = opts && "preventScrollReset" in opts ? opts.preventScrollReset === true : void 0; - let flushSync2 = (opts && opts.flushSync) === true; - let blockerKey = shouldBlockNavigation({ - currentLocation, - nextLocation, - historyAction - }); - if (blockerKey) { - updateBlocker(blockerKey, { - state: "blocked", - location: nextLocation, - proceed() { - updateBlocker(blockerKey, { - state: "proceeding", - proceed: void 0, - reset: void 0, - location: nextLocation - }); - navigate(to, opts); - }, - reset() { - let blockers = new Map(state.blockers); - blockers.set(blockerKey, IDLE_BLOCKER); - updateState({ blockers }); - } - }); - return; - } - await startNavigation(historyAction, nextLocation, { - submission, - // Send through the formData serialization error if we have one so we can - // render at the right error boundary after we match routes - pendingError: error, - preventScrollReset, - replace: opts && opts.replace, - enableViewTransition: opts && opts.viewTransition, - flushSync: flushSync2 - }); - } - function revalidate() { - if (!pendingRevalidationDfd) { - pendingRevalidationDfd = createDeferred(); - } - interruptActiveLoads(); - updateState({ revalidation: "loading" }); - let promise = pendingRevalidationDfd.promise; - if (state.navigation.state === "submitting") { - return promise; - } - if (state.navigation.state === "idle") { - startNavigation(state.historyAction, state.location, { - startUninterruptedRevalidation: true - }); - return promise; - } - startNavigation( - pendingAction || state.historyAction, - state.navigation.location, - { - overrideNavigation: state.navigation, - // Proxy through any rending view transition - enableViewTransition: pendingViewTransitionEnabled === true - } - ); - return promise; - } - async function startNavigation(historyAction, location, opts) { - pendingNavigationController && pendingNavigationController.abort(); - pendingNavigationController = null; - pendingAction = historyAction; - isUninterruptedRevalidation = (opts && opts.startUninterruptedRevalidation) === true; - saveScrollPosition(state.location, state.matches); - pendingPreventScrollReset = (opts && opts.preventScrollReset) === true; - pendingViewTransitionEnabled = (opts && opts.enableViewTransition) === true; - let routesToUse = inFlightDataRoutes || dataRoutes; - let loadingNavigation = opts && opts.overrideNavigation; - let matches = (opts == null ? void 0 : opts.initialHydration) && state.matches && state.matches.length > 0 && !initialMatchesIsFOW ? ( - // `matchRoutes()` has already been called if we're in here via `router.initialize()` - state.matches - ) : matchRoutes(routesToUse, location, basename); - let flushSync2 = (opts && opts.flushSync) === true; - if (matches && state.initialized && !isRevalidationRequired && isHashChangeOnly(state.location, location) && !(opts && opts.submission && isMutationMethod(opts.submission.formMethod))) { - completeNavigation(location, { matches }, { flushSync: flushSync2 }); - return; - } - let fogOfWar = checkFogOfWar(matches, routesToUse, location.pathname); - if (fogOfWar.active && fogOfWar.matches) { - matches = fogOfWar.matches; - } - if (!matches) { - let { error, notFoundMatches, route } = handleNavigational404( - location.pathname - ); - completeNavigation( - location, - { - matches: notFoundMatches, - loaderData: {}, - errors: { - [route.id]: error - } - }, - { flushSync: flushSync2 } - ); - return; - } - pendingNavigationController = new AbortController(); - let request = createClientSideRequest( - init.history, - location, - pendingNavigationController.signal, - opts && opts.submission - ); - let scopedContext = new unstable_RouterContextProvider( - init.unstable_getContext ? await init.unstable_getContext() : void 0 - ); - let pendingActionResult; - if (opts && opts.pendingError) { - pendingActionResult = [ - findNearestBoundary(matches).route.id, - { type: "error", error: opts.pendingError } - ]; - } else if (opts && opts.submission && isMutationMethod(opts.submission.formMethod)) { - let actionResult = await handleAction( - request, - location, - opts.submission, - matches, - scopedContext, - fogOfWar.active, - opts && opts.initialHydration === true, - { replace: opts.replace, flushSync: flushSync2 } - ); - if (actionResult.shortCircuited) { - return; - } - if (actionResult.pendingActionResult) { - let [routeId, result] = actionResult.pendingActionResult; - if (isErrorResult(result) && isRouteErrorResponse(result.error) && result.error.status === 404) { - pendingNavigationController = null; - completeNavigation(location, { - matches: actionResult.matches, - loaderData: {}, - errors: { - [routeId]: result.error - } - }); - return; - } - } - matches = actionResult.matches || matches; - pendingActionResult = actionResult.pendingActionResult; - loadingNavigation = getLoadingNavigation(location, opts.submission); - flushSync2 = false; - fogOfWar.active = false; - request = createClientSideRequest( - init.history, - request.url, - request.signal - ); - } - let { - shortCircuited, - matches: updatedMatches, - loaderData, - errors - } = await handleLoaders( - request, - location, - matches, - scopedContext, - fogOfWar.active, - loadingNavigation, - opts && opts.submission, - opts && opts.fetcherSubmission, - opts && opts.replace, - opts && opts.initialHydration === true, - flushSync2, - pendingActionResult - ); - if (shortCircuited) { - return; - } - pendingNavigationController = null; - completeNavigation(location, { - matches: updatedMatches || matches, - ...getActionDataForCommit(pendingActionResult), - loaderData, - errors - }); - } - async function handleAction(request, location, submission, matches, scopedContext, isFogOfWar, initialHydration, opts = {}) { - interruptActiveLoads(); - let navigation = getSubmittingNavigation(location, submission); - updateState({ navigation }, { flushSync: opts.flushSync === true }); - if (isFogOfWar) { - let discoverResult = await discoverRoutes( - matches, - location.pathname, - request.signal - ); - if (discoverResult.type === "aborted") { - return { shortCircuited: true }; - } else if (discoverResult.type === "error") { - let boundaryId = findNearestBoundary(discoverResult.partialMatches).route.id; - return { - matches: discoverResult.partialMatches, - pendingActionResult: [ - boundaryId, - { - type: "error", - error: discoverResult.error - } - ] - }; - } else if (!discoverResult.matches) { - let { notFoundMatches, error, route } = handleNavigational404( - location.pathname - ); - return { - matches: notFoundMatches, - pendingActionResult: [ - route.id, - { - type: "error", - error - } - ] - }; - } else { - matches = discoverResult.matches; - } - } - let result; - let actionMatch = getTargetMatch(matches, location); - if (!actionMatch.route.action && !actionMatch.route.lazy) { - result = { - type: "error", - error: getInternalRouterError(405, { - method: request.method, - pathname: location.pathname, - routeId: actionMatch.route.id - }) - }; - } else { - let dsMatches = getTargetedDataStrategyMatches( - mapRouteProperties2, - manifest, - request, - matches, - actionMatch, - initialHydration ? [] : hydrationRouteProperties2, - scopedContext - ); - let results = await callDataStrategy( - request, - dsMatches, - scopedContext, - null - ); - result = results[actionMatch.route.id]; - if (!result) { - for (let match of matches) { - if (results[match.route.id]) { - result = results[match.route.id]; - break; - } - } - } - if (request.signal.aborted) { - return { shortCircuited: true }; - } - } - if (isRedirectResult(result)) { - let replace2; - if (opts && opts.replace != null) { - replace2 = opts.replace; - } else { - let location2 = normalizeRedirectLocation( - result.response.headers.get("Location"), - new URL(request.url), - basename - ); - replace2 = location2 === state.location.pathname + state.location.search; - } - await startRedirectNavigation(request, result, true, { - submission, - replace: replace2 - }); - return { shortCircuited: true }; - } - if (isErrorResult(result)) { - let boundaryMatch = findNearestBoundary(matches, actionMatch.route.id); - if ((opts && opts.replace) !== true) { - pendingAction = "PUSH"; - } - return { - matches, - pendingActionResult: [boundaryMatch.route.id, result] - }; - } - return { - matches, - pendingActionResult: [actionMatch.route.id, result] - }; - } - async function handleLoaders(request, location, matches, scopedContext, isFogOfWar, overrideNavigation, submission, fetcherSubmission, replace2, initialHydration, flushSync2, pendingActionResult) { - let loadingNavigation = overrideNavigation || getLoadingNavigation(location, submission); - let activeSubmission = submission || fetcherSubmission || getSubmissionFromNavigation(loadingNavigation); - let shouldUpdateNavigationState = !isUninterruptedRevalidation && !initialHydration; - if (isFogOfWar) { - if (shouldUpdateNavigationState) { - let actionData = getUpdatedActionData(pendingActionResult); - updateState( - { - navigation: loadingNavigation, - ...actionData !== void 0 ? { actionData } : {} - }, - { - flushSync: flushSync2 - } - ); - } - let discoverResult = await discoverRoutes( - matches, - location.pathname, - request.signal - ); - if (discoverResult.type === "aborted") { - return { shortCircuited: true }; - } else if (discoverResult.type === "error") { - let boundaryId = findNearestBoundary(discoverResult.partialMatches).route.id; - return { - matches: discoverResult.partialMatches, - loaderData: {}, - errors: { - [boundaryId]: discoverResult.error - } - }; - } else if (!discoverResult.matches) { - let { error, notFoundMatches, route } = handleNavigational404( - location.pathname - ); - return { - matches: notFoundMatches, - loaderData: {}, - errors: { - [route.id]: error - } - }; - } else { - matches = discoverResult.matches; - } - } - let routesToUse = inFlightDataRoutes || dataRoutes; - let { dsMatches, revalidatingFetchers } = getMatchesToLoad( - request, - scopedContext, - mapRouteProperties2, - manifest, - init.history, - state, - matches, - activeSubmission, - location, - initialHydration ? [] : hydrationRouteProperties2, - initialHydration === true, - isRevalidationRequired, - cancelledFetcherLoads, - fetchersQueuedForDeletion, - fetchLoadMatches, - fetchRedirectIds, - routesToUse, - basename, - pendingActionResult - ); - pendingNavigationLoadId = ++incrementingLoadId; - if (!init.dataStrategy && !dsMatches.some((m) => m.shouldLoad) && revalidatingFetchers.length === 0) { - let updatedFetchers2 = markFetchRedirectsDone(); - completeNavigation( - location, - { - matches, - loaderData: {}, - // Commit pending error if we're short circuiting - errors: pendingActionResult && isErrorResult(pendingActionResult[1]) ? { [pendingActionResult[0]]: pendingActionResult[1].error } : null, - ...getActionDataForCommit(pendingActionResult), - ...updatedFetchers2 ? { fetchers: new Map(state.fetchers) } : {} - }, - { flushSync: flushSync2 } - ); - return { shortCircuited: true }; - } - if (shouldUpdateNavigationState) { - let updates = {}; - if (!isFogOfWar) { - updates.navigation = loadingNavigation; - let actionData = getUpdatedActionData(pendingActionResult); - if (actionData !== void 0) { - updates.actionData = actionData; - } - } - if (revalidatingFetchers.length > 0) { - updates.fetchers = getUpdatedRevalidatingFetchers(revalidatingFetchers); - } - updateState(updates, { flushSync: flushSync2 }); - } - revalidatingFetchers.forEach((rf) => { - abortFetcher(rf.key); - if (rf.controller) { - fetchControllers.set(rf.key, rf.controller); - } - }); - let abortPendingFetchRevalidations = () => revalidatingFetchers.forEach((f) => abortFetcher(f.key)); - if (pendingNavigationController) { - pendingNavigationController.signal.addEventListener( - "abort", - abortPendingFetchRevalidations - ); - } - let { loaderResults, fetcherResults } = await callLoadersAndMaybeResolveData( - dsMatches, - revalidatingFetchers, - request, - scopedContext - ); - if (request.signal.aborted) { - return { shortCircuited: true }; - } - if (pendingNavigationController) { - pendingNavigationController.signal.removeEventListener( - "abort", - abortPendingFetchRevalidations - ); - } - revalidatingFetchers.forEach((rf) => fetchControllers.delete(rf.key)); - let redirect2 = findRedirect(loaderResults); - if (redirect2) { - await startRedirectNavigation(request, redirect2.result, true, { - replace: replace2 - }); - return { shortCircuited: true }; - } - redirect2 = findRedirect(fetcherResults); - if (redirect2) { - fetchRedirectIds.add(redirect2.key); - await startRedirectNavigation(request, redirect2.result, true, { - replace: replace2 - }); - return { shortCircuited: true }; - } - let { loaderData, errors } = processLoaderData( - state, - matches, - loaderResults, - pendingActionResult, - revalidatingFetchers, - fetcherResults - ); - if (initialHydration && state.errors) { - errors = { ...state.errors, ...errors }; - } - let updatedFetchers = markFetchRedirectsDone(); - let didAbortFetchLoads = abortStaleFetchLoads(pendingNavigationLoadId); - let shouldUpdateFetchers = updatedFetchers || didAbortFetchLoads || revalidatingFetchers.length > 0; - return { - matches, - loaderData, - errors, - ...shouldUpdateFetchers ? { fetchers: new Map(state.fetchers) } : {} - }; - } - function getUpdatedActionData(pendingActionResult) { - if (pendingActionResult && !isErrorResult(pendingActionResult[1])) { - return { - [pendingActionResult[0]]: pendingActionResult[1].data - }; - } else if (state.actionData) { - if (Object.keys(state.actionData).length === 0) { - return null; - } else { - return state.actionData; - } - } - } - function getUpdatedRevalidatingFetchers(revalidatingFetchers) { - revalidatingFetchers.forEach((rf) => { - let fetcher = state.fetchers.get(rf.key); - let revalidatingFetcher = getLoadingFetcher( - void 0, - fetcher ? fetcher.data : void 0 - ); - state.fetchers.set(rf.key, revalidatingFetcher); - }); - return new Map(state.fetchers); - } - async function fetch2(key, routeId, href2, opts) { - abortFetcher(key); - let flushSync2 = (opts && opts.flushSync) === true; - let routesToUse = inFlightDataRoutes || dataRoutes; - let normalizedPath = normalizeTo( - state.location, - state.matches, - basename, - href2, - routeId, - opts == null ? void 0 : opts.relative - ); - let matches = matchRoutes(routesToUse, normalizedPath, basename); - let fogOfWar = checkFogOfWar(matches, routesToUse, normalizedPath); - if (fogOfWar.active && fogOfWar.matches) { - matches = fogOfWar.matches; - } - if (!matches) { - setFetcherError( - key, - routeId, - getInternalRouterError(404, { pathname: normalizedPath }), - { flushSync: flushSync2 } - ); - return; - } - let { path, submission, error } = normalizeNavigateOptions( - true, - normalizedPath, - opts - ); - if (error) { - setFetcherError(key, routeId, error, { flushSync: flushSync2 }); - return; - } - let match = getTargetMatch(matches, path); - let scopedContext = new unstable_RouterContextProvider( - init.unstable_getContext ? await init.unstable_getContext() : void 0 - ); - let preventScrollReset = (opts && opts.preventScrollReset) === true; - if (submission && isMutationMethod(submission.formMethod)) { - await handleFetcherAction( - key, - routeId, - path, - match, - matches, - scopedContext, - fogOfWar.active, - flushSync2, - preventScrollReset, - submission - ); - return; - } - fetchLoadMatches.set(key, { routeId, path }); - await handleFetcherLoader( - key, - routeId, - path, - match, - matches, - scopedContext, - fogOfWar.active, - flushSync2, - preventScrollReset, - submission - ); - } - async function handleFetcherAction(key, routeId, path, match, requestMatches, scopedContext, isFogOfWar, flushSync2, preventScrollReset, submission) { - interruptActiveLoads(); - fetchLoadMatches.delete(key); - function detectAndHandle405Error(m) { - if (!m.route.action && !m.route.lazy) { - let error = getInternalRouterError(405, { - method: submission.formMethod, - pathname: path, - routeId - }); - setFetcherError(key, routeId, error, { flushSync: flushSync2 }); - return true; - } - return false; - } - if (!isFogOfWar && detectAndHandle405Error(match)) { - return; - } - let existingFetcher = state.fetchers.get(key); - updateFetcherState(key, getSubmittingFetcher(submission, existingFetcher), { - flushSync: flushSync2 - }); - let abortController = new AbortController(); - let fetchRequest = createClientSideRequest( - init.history, - path, - abortController.signal, - submission - ); - if (isFogOfWar) { - let discoverResult = await discoverRoutes( - requestMatches, - path, - fetchRequest.signal, - key - ); - if (discoverResult.type === "aborted") { - return; - } else if (discoverResult.type === "error") { - setFetcherError(key, routeId, discoverResult.error, { flushSync: flushSync2 }); - return; - } else if (!discoverResult.matches) { - setFetcherError( - key, - routeId, - getInternalRouterError(404, { pathname: path }), - { flushSync: flushSync2 } - ); - return; - } else { - requestMatches = discoverResult.matches; - match = getTargetMatch(requestMatches, path); - if (detectAndHandle405Error(match)) { - return; - } - } - } - fetchControllers.set(key, abortController); - let originatingLoadId = incrementingLoadId; - let fetchMatches = getTargetedDataStrategyMatches( - mapRouteProperties2, - manifest, - fetchRequest, - requestMatches, - match, - hydrationRouteProperties2, - scopedContext - ); - let actionResults = await callDataStrategy( - fetchRequest, - fetchMatches, - scopedContext, - key - ); - let actionResult = actionResults[match.route.id]; - if (fetchRequest.signal.aborted) { - if (fetchControllers.get(key) === abortController) { - fetchControllers.delete(key); - } - return; - } - if (fetchersQueuedForDeletion.has(key)) { - if (isRedirectResult(actionResult) || isErrorResult(actionResult)) { - updateFetcherState(key, getDoneFetcher(void 0)); - return; - } - } else { - if (isRedirectResult(actionResult)) { - fetchControllers.delete(key); - if (pendingNavigationLoadId > originatingLoadId) { - updateFetcherState(key, getDoneFetcher(void 0)); - return; - } else { - fetchRedirectIds.add(key); - updateFetcherState(key, getLoadingFetcher(submission)); - return startRedirectNavigation(fetchRequest, actionResult, false, { - fetcherSubmission: submission, - preventScrollReset - }); - } - } - if (isErrorResult(actionResult)) { - setFetcherError(key, routeId, actionResult.error); - return; - } - } - let nextLocation = state.navigation.location || state.location; - let revalidationRequest = createClientSideRequest( - init.history, - nextLocation, - abortController.signal - ); - let routesToUse = inFlightDataRoutes || dataRoutes; - let matches = state.navigation.state !== "idle" ? matchRoutes(routesToUse, state.navigation.location, basename) : state.matches; - invariant(matches, "Didn't find any matches after fetcher action"); - let loadId = ++incrementingLoadId; - fetchReloadIds.set(key, loadId); - let loadFetcher = getLoadingFetcher(submission, actionResult.data); - state.fetchers.set(key, loadFetcher); - let { dsMatches, revalidatingFetchers } = getMatchesToLoad( - revalidationRequest, - scopedContext, - mapRouteProperties2, - manifest, - init.history, - state, - matches, - submission, - nextLocation, - hydrationRouteProperties2, - false, - isRevalidationRequired, - cancelledFetcherLoads, - fetchersQueuedForDeletion, - fetchLoadMatches, - fetchRedirectIds, - routesToUse, - basename, - [match.route.id, actionResult] - ); - revalidatingFetchers.filter((rf) => rf.key !== key).forEach((rf) => { - let staleKey = rf.key; - let existingFetcher2 = state.fetchers.get(staleKey); - let revalidatingFetcher = getLoadingFetcher( - void 0, - existingFetcher2 ? existingFetcher2.data : void 0 - ); - state.fetchers.set(staleKey, revalidatingFetcher); - abortFetcher(staleKey); - if (rf.controller) { - fetchControllers.set(staleKey, rf.controller); - } - }); - updateState({ fetchers: new Map(state.fetchers) }); - let abortPendingFetchRevalidations = () => revalidatingFetchers.forEach((rf) => abortFetcher(rf.key)); - abortController.signal.addEventListener( - "abort", - abortPendingFetchRevalidations - ); - let { loaderResults, fetcherResults } = await callLoadersAndMaybeResolveData( - dsMatches, - revalidatingFetchers, - revalidationRequest, - scopedContext - ); - if (abortController.signal.aborted) { - return; - } - abortController.signal.removeEventListener( - "abort", - abortPendingFetchRevalidations - ); - fetchReloadIds.delete(key); - fetchControllers.delete(key); - revalidatingFetchers.forEach((r) => fetchControllers.delete(r.key)); - let redirect2 = findRedirect(loaderResults); - if (redirect2) { - return startRedirectNavigation( - revalidationRequest, - redirect2.result, - false, - { preventScrollReset } - ); - } - redirect2 = findRedirect(fetcherResults); - if (redirect2) { - fetchRedirectIds.add(redirect2.key); - return startRedirectNavigation( - revalidationRequest, - redirect2.result, - false, - { preventScrollReset } - ); - } - let { loaderData, errors } = processLoaderData( - state, - matches, - loaderResults, - void 0, - revalidatingFetchers, - fetcherResults - ); - if (state.fetchers.has(key)) { - let doneFetcher = getDoneFetcher(actionResult.data); - state.fetchers.set(key, doneFetcher); - } - abortStaleFetchLoads(loadId); - if (state.navigation.state === "loading" && loadId > pendingNavigationLoadId) { - invariant(pendingAction, "Expected pending action"); - pendingNavigationController && pendingNavigationController.abort(); - completeNavigation(state.navigation.location, { - matches, - loaderData, - errors, - fetchers: new Map(state.fetchers) - }); - } else { - updateState({ - errors, - loaderData: mergeLoaderData( - state.loaderData, - loaderData, - matches, - errors - ), - fetchers: new Map(state.fetchers) - }); - isRevalidationRequired = false; - } - } - async function handleFetcherLoader(key, routeId, path, match, matches, scopedContext, isFogOfWar, flushSync2, preventScrollReset, submission) { - let existingFetcher = state.fetchers.get(key); - updateFetcherState( - key, - getLoadingFetcher( - submission, - existingFetcher ? existingFetcher.data : void 0 - ), - { flushSync: flushSync2 } - ); - let abortController = new AbortController(); - let fetchRequest = createClientSideRequest( - init.history, - path, - abortController.signal - ); - if (isFogOfWar) { - let discoverResult = await discoverRoutes( - matches, - path, - fetchRequest.signal, - key - ); - if (discoverResult.type === "aborted") { - return; - } else if (discoverResult.type === "error") { - setFetcherError(key, routeId, discoverResult.error, { flushSync: flushSync2 }); - return; - } else if (!discoverResult.matches) { - setFetcherError( - key, - routeId, - getInternalRouterError(404, { pathname: path }), - { flushSync: flushSync2 } - ); - return; - } else { - matches = discoverResult.matches; - match = getTargetMatch(matches, path); - } - } - fetchControllers.set(key, abortController); - let originatingLoadId = incrementingLoadId; - let dsMatches = getTargetedDataStrategyMatches( - mapRouteProperties2, - manifest, - fetchRequest, - matches, - match, - hydrationRouteProperties2, - scopedContext - ); - let results = await callDataStrategy( - fetchRequest, - dsMatches, - scopedContext, - key - ); - let result = results[match.route.id]; - if (fetchControllers.get(key) === abortController) { - fetchControllers.delete(key); - } - if (fetchRequest.signal.aborted) { - return; - } - if (fetchersQueuedForDeletion.has(key)) { - updateFetcherState(key, getDoneFetcher(void 0)); - return; - } - if (isRedirectResult(result)) { - if (pendingNavigationLoadId > originatingLoadId) { - updateFetcherState(key, getDoneFetcher(void 0)); - return; - } else { - fetchRedirectIds.add(key); - await startRedirectNavigation(fetchRequest, result, false, { - preventScrollReset - }); - return; - } - } - if (isErrorResult(result)) { - setFetcherError(key, routeId, result.error); - return; - } - updateFetcherState(key, getDoneFetcher(result.data)); - } - async function startRedirectNavigation(request, redirect2, isNavigation, { - submission, - fetcherSubmission, - preventScrollReset, - replace: replace2 - } = {}) { - if (redirect2.response.headers.has("X-Remix-Revalidate")) { - isRevalidationRequired = true; - } - let location = redirect2.response.headers.get("Location"); - invariant(location, "Expected a Location header on the redirect Response"); - location = normalizeRedirectLocation( - location, - new URL(request.url), - basename - ); - let redirectLocation = createLocation(state.location, location, { - _isRedirect: true - }); - if (isBrowser2) { - let isDocumentReload = false; - if (redirect2.response.headers.has("X-Remix-Reload-Document")) { - isDocumentReload = true; - } else if (ABSOLUTE_URL_REGEX.test(location)) { - const url = init.history.createURL(location); - isDocumentReload = // Hard reload if it's an absolute URL to a new origin - url.origin !== routerWindow.location.origin || // Hard reload if it's an absolute URL that does not match our basename - stripBasename(url.pathname, basename) == null; - } - if (isDocumentReload) { - if (replace2) { - routerWindow.location.replace(location); - } else { - routerWindow.location.assign(location); - } - return; - } - } - pendingNavigationController = null; - let redirectNavigationType = replace2 === true || redirect2.response.headers.has("X-Remix-Replace") ? "REPLACE" : "PUSH"; - let { formMethod, formAction, formEncType } = state.navigation; - if (!submission && !fetcherSubmission && formMethod && formAction && formEncType) { - submission = getSubmissionFromNavigation(state.navigation); - } - let activeSubmission = submission || fetcherSubmission; - if (redirectPreserveMethodStatusCodes.has(redirect2.response.status) && activeSubmission && isMutationMethod(activeSubmission.formMethod)) { - await startNavigation(redirectNavigationType, redirectLocation, { - submission: { - ...activeSubmission, - formAction: location - }, - // Preserve these flags across redirects - preventScrollReset: preventScrollReset || pendingPreventScrollReset, - enableViewTransition: isNavigation ? pendingViewTransitionEnabled : void 0 - }); - } else { - let overrideNavigation = getLoadingNavigation( - redirectLocation, - submission - ); - await startNavigation(redirectNavigationType, redirectLocation, { - overrideNavigation, - // Send fetcher submissions through for shouldRevalidate - fetcherSubmission, - // Preserve these flags across redirects - preventScrollReset: preventScrollReset || pendingPreventScrollReset, - enableViewTransition: isNavigation ? pendingViewTransitionEnabled : void 0 - }); - } - } - async function callDataStrategy(request, matches, scopedContext, fetcherKey) { - let results; - let dataResults = {}; - try { - results = await callDataStrategyImpl( - dataStrategyImpl, - request, - matches, - fetcherKey, - scopedContext, - false - ); - } catch (e) { - matches.filter((m) => m.shouldLoad).forEach((m) => { - dataResults[m.route.id] = { - type: "error", - error: e - }; - }); - return dataResults; - } - for (let [routeId, result] of Object.entries(results)) { - if (isRedirectDataStrategyResult(result)) { - let response = result.result; - dataResults[routeId] = { - type: "redirect", - response: normalizeRelativeRoutingRedirectResponse( - response, - request, - routeId, - matches, - basename - ) - }; - } else { - dataResults[routeId] = await convertDataStrategyResultToDataResult( - result - ); - } - } - return dataResults; - } - async function callLoadersAndMaybeResolveData(matches, fetchersToLoad, request, scopedContext) { - let loaderResultsPromise = callDataStrategy( - request, - matches, - scopedContext, - null - ); - let fetcherResultsPromise = Promise.all( - fetchersToLoad.map(async (f) => { - if (f.matches && f.match && f.request && f.controller) { - let results = await callDataStrategy( - f.request, - f.matches, - scopedContext, - f.key - ); - let result = results[f.match.route.id]; - return { [f.key]: result }; - } else { - return Promise.resolve({ - [f.key]: { - type: "error", - error: getInternalRouterError(404, { - pathname: f.path - }) - } - }); - } - }) - ); - let loaderResults = await loaderResultsPromise; - let fetcherResults = (await fetcherResultsPromise).reduce( - (acc, r) => Object.assign(acc, r), - {} - ); - return { - loaderResults, - fetcherResults - }; - } - function interruptActiveLoads() { - isRevalidationRequired = true; - fetchLoadMatches.forEach((_, key) => { - if (fetchControllers.has(key)) { - cancelledFetcherLoads.add(key); - } - abortFetcher(key); - }); - } - function updateFetcherState(key, fetcher, opts = {}) { - state.fetchers.set(key, fetcher); - updateState( - { fetchers: new Map(state.fetchers) }, - { flushSync: (opts && opts.flushSync) === true } - ); - } - function setFetcherError(key, routeId, error, opts = {}) { - let boundaryMatch = findNearestBoundary(state.matches, routeId); - deleteFetcher(key); - updateState( - { - errors: { - [boundaryMatch.route.id]: error - }, - fetchers: new Map(state.fetchers) - }, - { flushSync: (opts && opts.flushSync) === true } - ); - } - function getFetcher(key) { - activeFetchers.set(key, (activeFetchers.get(key) || 0) + 1); - if (fetchersQueuedForDeletion.has(key)) { - fetchersQueuedForDeletion.delete(key); - } - return state.fetchers.get(key) || IDLE_FETCHER; - } - function deleteFetcher(key) { - let fetcher = state.fetchers.get(key); - if (fetchControllers.has(key) && !(fetcher && fetcher.state === "loading" && fetchReloadIds.has(key))) { - abortFetcher(key); - } - fetchLoadMatches.delete(key); - fetchReloadIds.delete(key); - fetchRedirectIds.delete(key); - fetchersQueuedForDeletion.delete(key); - cancelledFetcherLoads.delete(key); - state.fetchers.delete(key); - } - function queueFetcherForDeletion(key) { - let count = (activeFetchers.get(key) || 0) - 1; - if (count <= 0) { - activeFetchers.delete(key); - fetchersQueuedForDeletion.add(key); - } else { - activeFetchers.set(key, count); - } - updateState({ fetchers: new Map(state.fetchers) }); - } - function abortFetcher(key) { - let controller = fetchControllers.get(key); - if (controller) { - controller.abort(); - fetchControllers.delete(key); - } - } - function markFetchersDone(keys) { - for (let key of keys) { - let fetcher = getFetcher(key); - let doneFetcher = getDoneFetcher(fetcher.data); - state.fetchers.set(key, doneFetcher); - } - } - function markFetchRedirectsDone() { - let doneKeys = []; - let updatedFetchers = false; - for (let key of fetchRedirectIds) { - let fetcher = state.fetchers.get(key); - invariant(fetcher, `Expected fetcher: ${key}`); - if (fetcher.state === "loading") { - fetchRedirectIds.delete(key); - doneKeys.push(key); - updatedFetchers = true; - } - } - markFetchersDone(doneKeys); - return updatedFetchers; - } - function abortStaleFetchLoads(landedId) { - let yeetedKeys = []; - for (let [key, id] of fetchReloadIds) { - if (id < landedId) { - let fetcher = state.fetchers.get(key); - invariant(fetcher, `Expected fetcher: ${key}`); - if (fetcher.state === "loading") { - abortFetcher(key); - fetchReloadIds.delete(key); - yeetedKeys.push(key); - } - } - } - markFetchersDone(yeetedKeys); - return yeetedKeys.length > 0; - } - function getBlocker(key, fn) { - let blocker = state.blockers.get(key) || IDLE_BLOCKER; - if (blockerFunctions.get(key) !== fn) { - blockerFunctions.set(key, fn); - } - return blocker; - } - function deleteBlocker(key) { - state.blockers.delete(key); - blockerFunctions.delete(key); - } - function updateBlocker(key, newBlocker) { - let blocker = state.blockers.get(key) || IDLE_BLOCKER; - invariant( - blocker.state === "unblocked" && newBlocker.state === "blocked" || blocker.state === "blocked" && newBlocker.state === "blocked" || blocker.state === "blocked" && newBlocker.state === "proceeding" || blocker.state === "blocked" && newBlocker.state === "unblocked" || blocker.state === "proceeding" && newBlocker.state === "unblocked", - `Invalid blocker state transition: ${blocker.state} -> ${newBlocker.state}` - ); - let blockers = new Map(state.blockers); - blockers.set(key, newBlocker); - updateState({ blockers }); - } - function shouldBlockNavigation({ - currentLocation, - nextLocation, - historyAction - }) { - if (blockerFunctions.size === 0) { - return; - } - if (blockerFunctions.size > 1) { - warning(false, "A router only supports one blocker at a time"); - } - let entries = Array.from(blockerFunctions.entries()); - let [blockerKey, blockerFunction] = entries[entries.length - 1]; - let blocker = state.blockers.get(blockerKey); - if (blocker && blocker.state === "proceeding") { - return; - } - if (blockerFunction({ currentLocation, nextLocation, historyAction })) { - return blockerKey; - } - } - function handleNavigational404(pathname) { - let error = getInternalRouterError(404, { pathname }); - let routesToUse = inFlightDataRoutes || dataRoutes; - let { matches, route } = getShortCircuitMatches(routesToUse); - return { notFoundMatches: matches, route, error }; - } - function enableScrollRestoration(positions, getPosition, getKey) { - savedScrollPositions2 = positions; - getScrollPosition = getPosition; - getScrollRestorationKey2 = getKey || null; - if (!initialScrollRestored && state.navigation === IDLE_NAVIGATION) { - initialScrollRestored = true; - let y = getSavedScrollPosition(state.location, state.matches); - if (y != null) { - updateState({ restoreScrollPosition: y }); - } - } - return () => { - savedScrollPositions2 = null; - getScrollPosition = null; - getScrollRestorationKey2 = null; - }; - } - function getScrollKey(location, matches) { - if (getScrollRestorationKey2) { - let key = getScrollRestorationKey2( - location, - matches.map((m) => convertRouteMatchToUiMatch(m, state.loaderData)) - ); - return key || location.key; - } - return location.key; - } - function saveScrollPosition(location, matches) { - if (savedScrollPositions2 && getScrollPosition) { - let key = getScrollKey(location, matches); - savedScrollPositions2[key] = getScrollPosition(); - } - } - function getSavedScrollPosition(location, matches) { - if (savedScrollPositions2) { - let key = getScrollKey(location, matches); - let y = savedScrollPositions2[key]; - if (typeof y === "number") { - return y; - } - } - return null; - } - function checkFogOfWar(matches, routesToUse, pathname) { - if (init.patchRoutesOnNavigation) { - if (!matches) { - let fogMatches = matchRoutesImpl( - routesToUse, - pathname, - basename, - true - ); - return { active: true, matches: fogMatches || [] }; - } else { - if (Object.keys(matches[0].params).length > 0) { - let partialMatches = matchRoutesImpl( - routesToUse, - pathname, - basename, - true - ); - return { active: true, matches: partialMatches }; - } - } - } - return { active: false, matches: null }; - } - async function discoverRoutes(matches, pathname, signal, fetcherKey) { - if (!init.patchRoutesOnNavigation) { - return { type: "success", matches }; - } - let partialMatches = matches; - while (true) { - let isNonHMR = inFlightDataRoutes == null; - let routesToUse = inFlightDataRoutes || dataRoutes; - let localManifest = manifest; - try { - await init.patchRoutesOnNavigation({ - signal, - path: pathname, - matches: partialMatches, - fetcherKey, - patch: (routeId, children) => { - if (signal.aborted) return; - patchRoutesImpl( - routeId, - children, - routesToUse, - localManifest, - mapRouteProperties2 - ); - } - }); - } catch (e) { - return { type: "error", error: e, partialMatches }; - } finally { - if (isNonHMR && !signal.aborted) { - dataRoutes = [...dataRoutes]; - } - } - if (signal.aborted) { - return { type: "aborted" }; - } - let newMatches = matchRoutes(routesToUse, pathname, basename); - if (newMatches) { - return { type: "success", matches: newMatches }; - } - let newPartialMatches = matchRoutesImpl( - routesToUse, - pathname, - basename, - true - ); - if (!newPartialMatches || partialMatches.length === newPartialMatches.length && partialMatches.every( - (m, i) => m.route.id === newPartialMatches[i].route.id - )) { - return { type: "success", matches: null }; - } - partialMatches = newPartialMatches; - } - } - function _internalSetRoutes(newRoutes) { - manifest = {}; - inFlightDataRoutes = convertRoutesToDataRoutes( - newRoutes, - mapRouteProperties2, - void 0, - manifest - ); - } - function patchRoutes(routeId, children) { - let isNonHMR = inFlightDataRoutes == null; - let routesToUse = inFlightDataRoutes || dataRoutes; - patchRoutesImpl( - routeId, - children, - routesToUse, - manifest, - mapRouteProperties2 - ); - if (isNonHMR) { - dataRoutes = [...dataRoutes]; - updateState({}); - } - } - router2 = { - get basename() { - return basename; - }, - get future() { - return future; - }, - get state() { - return state; - }, - get routes() { - return dataRoutes; - }, - get window() { - return routerWindow; - }, - initialize, - subscribe, - enableScrollRestoration, - navigate, - fetch: fetch2, - revalidate, - // Passthrough to history-aware createHref used by useHref so we get proper - // hash-aware URLs in DOM paths - createHref: (to) => init.history.createHref(to), - encodeLocation: (to) => init.history.encodeLocation(to), - getFetcher, - deleteFetcher: queueFetcherForDeletion, - dispose, - getBlocker, - deleteBlocker, - patchRoutes, - _internalFetchControllers: fetchControllers, - // TODO: Remove setRoutes, it's temporary to avoid dealing with - // updating the tree while validating the update algorithm. - _internalSetRoutes - }; - return router2; -} -function createStaticHandler(routes, opts) { - invariant( - routes.length > 0, - "You must provide a non-empty routes array to createStaticHandler" - ); - let manifest = {}; - let basename = (opts ? opts.basename : null) || "/"; - let mapRouteProperties2 = (opts == null ? void 0 : opts.mapRouteProperties) || defaultMapRouteProperties; - let dataRoutes = convertRoutesToDataRoutes( - routes, - mapRouteProperties2, - void 0, - manifest - ); - async function query(request, { - requestContext, - filterMatchesToLoad, - skipLoaderErrorBubbling, - skipRevalidation, - dataStrategy, - unstable_respond: respond - } = {}) { - let url = new URL(request.url); - let method = request.method; - let location = createLocation("", createPath(url), null, "default"); - let matches = matchRoutes(dataRoutes, location, basename); - requestContext = requestContext != null ? requestContext : new unstable_RouterContextProvider(); - if (!isValidMethod(method) && method !== "HEAD") { - let error = getInternalRouterError(405, { method }); - let { matches: methodNotAllowedMatches, route } = getShortCircuitMatches(dataRoutes); - let staticContext = { - basename, - location, - matches: methodNotAllowedMatches, - loaderData: {}, - actionData: null, - errors: { - [route.id]: error - }, - statusCode: error.status, - loaderHeaders: {}, - actionHeaders: {} - }; - return respond ? respond(staticContext) : staticContext; - } else if (!matches) { - let error = getInternalRouterError(404, { pathname: location.pathname }); - let { matches: notFoundMatches, route } = getShortCircuitMatches(dataRoutes); - let staticContext = { - basename, - location, - matches: notFoundMatches, - loaderData: {}, - actionData: null, - errors: { - [route.id]: error - }, - statusCode: error.status, - loaderHeaders: {}, - actionHeaders: {} - }; - return respond ? respond(staticContext) : staticContext; - } - if (respond && matches.some( - (m) => m.route.unstable_middleware || typeof m.route.lazy === "object" && m.route.lazy.unstable_middleware - )) { - invariant( - requestContext instanceof unstable_RouterContextProvider, - "When using middleware in `staticHandler.query()`, any provided `requestContext` must be an instance of `unstable_RouterContextProvider`" - ); - try { - await loadLazyMiddlewareForMatches( - matches, - manifest, - mapRouteProperties2 - ); - let renderedStaticContext; - let response = await runMiddlewarePipeline( - { - request, - matches, - params: matches[0].params, - // If we're calling middleware then it must be enabled so we can cast - // this to the proper type knowing it's not an `AppLoadContext` - context: requestContext - }, - true, - async () => { - let result2 = await queryImpl( - request, - location, - matches, - requestContext, - dataStrategy || null, - skipLoaderErrorBubbling === true, - null, - filterMatchesToLoad || null, - skipRevalidation === true - ); - if (isResponse(result2)) { - return result2; - } - renderedStaticContext = { location, basename, ...result2 }; - let res = await respond(renderedStaticContext); - return res; - }, - async (error, routeId) => { - if (isResponse(error)) { - return error; - } - if (renderedStaticContext) { - if (routeId in renderedStaticContext.loaderData) { - renderedStaticContext.loaderData[routeId] = void 0; - } - return respond( - getStaticContextFromError( - dataRoutes, - renderedStaticContext, - error, - findNearestBoundary(matches, routeId).route.id - ) - ); - } else { - let loaderIdx = matches.findIndex((m) => m.route.loader); - let boundary = loaderIdx >= 0 ? findNearestBoundary(matches, matches[loaderIdx].route.id) : findNearestBoundary(matches); - return respond({ - matches, - location, - basename, - loaderData: {}, - actionData: null, - errors: { - [boundary.route.id]: error - }, - statusCode: isRouteErrorResponse(error) ? error.status : 500, - actionHeaders: {}, - loaderHeaders: {} - }); - } - } - ); - invariant(isResponse(response), "Expected a response in query()"); - return response; - } catch (e) { - if (isResponse(e)) { - return e; - } - throw e; - } - } - let result = await queryImpl( - request, - location, - matches, - requestContext, - dataStrategy || null, - skipLoaderErrorBubbling === true, - null, - filterMatchesToLoad || null, - skipRevalidation === true - ); - if (isResponse(result)) { - return result; - } - return { location, basename, ...result }; - } - async function queryRoute(request, { - routeId, - requestContext, - dataStrategy, - unstable_respond: respond - } = {}) { - let url = new URL(request.url); - let method = request.method; - let location = createLocation("", createPath(url), null, "default"); - let matches = matchRoutes(dataRoutes, location, basename); - requestContext = requestContext != null ? requestContext : new unstable_RouterContextProvider(); - if (!isValidMethod(method) && method !== "HEAD" && method !== "OPTIONS") { - throw getInternalRouterError(405, { method }); - } else if (!matches) { - throw getInternalRouterError(404, { pathname: location.pathname }); - } - let match = routeId ? matches.find((m) => m.route.id === routeId) : getTargetMatch(matches, location); - if (routeId && !match) { - throw getInternalRouterError(403, { - pathname: location.pathname, - routeId - }); - } else if (!match) { - throw getInternalRouterError(404, { pathname: location.pathname }); - } - if (respond && matches.some( - (m) => m.route.unstable_middleware || typeof m.route.lazy === "object" && m.route.lazy.unstable_middleware - )) { - invariant( - requestContext instanceof unstable_RouterContextProvider, - "When using middleware in `staticHandler.queryRoute()`, any provided `requestContext` must be an instance of `unstable_RouterContextProvider`" - ); - await loadLazyMiddlewareForMatches(matches, manifest, mapRouteProperties2); - let response = await runMiddlewarePipeline( - { - request, - matches, - params: matches[0].params, - // If we're calling middleware then it must be enabled so we can cast - // this to the proper type knowing it's not an `AppLoadContext` - context: requestContext - }, - true, - async () => { - let result2 = await queryImpl( - request, - location, - matches, - requestContext, - dataStrategy || null, - false, - match, - null, - false - ); - if (isResponse(result2)) { - return respond(result2); - } - let error2 = result2.errors ? Object.values(result2.errors)[0] : void 0; - if (error2 !== void 0) { - throw error2; - } - let value = result2.actionData ? Object.values(result2.actionData)[0] : Object.values(result2.loaderData)[0]; - return typeof value === "string" ? new Response(value) : Response.json(value); - }, - (error2) => { - if (isResponse(error2)) { - return respond(error2); - } - return new Response(String(error2), { - status: 500, - statusText: "Unexpected Server Error" - }); - } - ); - return response; - } - let result = await queryImpl( - request, - location, - matches, - requestContext, - dataStrategy || null, - false, - match, - null, - false - ); - if (isResponse(result)) { - return result; - } - let error = result.errors ? Object.values(result.errors)[0] : void 0; - if (error !== void 0) { - throw error; - } - if (result.actionData) { - return Object.values(result.actionData)[0]; - } - if (result.loaderData) { - return Object.values(result.loaderData)[0]; - } - return void 0; - } - async function queryImpl(request, location, matches, requestContext, dataStrategy, skipLoaderErrorBubbling, routeMatch, filterMatchesToLoad, skipRevalidation) { - invariant( - request.signal, - "query()/queryRoute() requests must contain an AbortController signal" - ); - try { - if (isMutationMethod(request.method)) { - let result2 = await submit( - request, - matches, - routeMatch || getTargetMatch(matches, location), - requestContext, - dataStrategy, - skipLoaderErrorBubbling, - routeMatch != null, - filterMatchesToLoad, - skipRevalidation - ); - return result2; - } - let result = await loadRouteData( - request, - matches, - requestContext, - dataStrategy, - skipLoaderErrorBubbling, - routeMatch, - filterMatchesToLoad - ); - return isResponse(result) ? result : { - ...result, - actionData: null, - actionHeaders: {} - }; - } catch (e) { - if (isDataStrategyResult(e) && isResponse(e.result)) { - if (e.type === "error") { - throw e.result; - } - return e.result; - } - if (isRedirectResponse(e)) { - return e; - } - throw e; - } - } - async function submit(request, matches, actionMatch, requestContext, dataStrategy, skipLoaderErrorBubbling, isRouteRequest, filterMatchesToLoad, skipRevalidation) { - let result; - if (!actionMatch.route.action && !actionMatch.route.lazy) { - let error = getInternalRouterError(405, { - method: request.method, - pathname: new URL(request.url).pathname, - routeId: actionMatch.route.id - }); - if (isRouteRequest) { - throw error; - } - result = { - type: "error", - error - }; - } else { - let dsMatches = getTargetedDataStrategyMatches( - mapRouteProperties2, - manifest, - request, - matches, - actionMatch, - [], - requestContext - ); - let results = await callDataStrategy( - request, - dsMatches, - isRouteRequest, - requestContext, - dataStrategy - ); - result = results[actionMatch.route.id]; - if (request.signal.aborted) { - throwStaticHandlerAbortedError(request, isRouteRequest); - } - } - if (isRedirectResult(result)) { - throw new Response(null, { - status: result.response.status, - headers: { - Location: result.response.headers.get("Location") - } - }); - } - if (isRouteRequest) { - if (isErrorResult(result)) { - throw result.error; - } - return { - matches: [actionMatch], - loaderData: {}, - actionData: { [actionMatch.route.id]: result.data }, - errors: null, - // Note: statusCode + headers are unused here since queryRoute will - // return the raw Response or value - statusCode: 200, - loaderHeaders: {}, - actionHeaders: {} - }; - } - if (skipRevalidation) { - if (isErrorResult(result)) { - let boundaryMatch = skipLoaderErrorBubbling ? actionMatch : findNearestBoundary(matches, actionMatch.route.id); - return { - statusCode: isRouteErrorResponse(result.error) ? result.error.status : result.statusCode != null ? result.statusCode : 500, - actionData: null, - actionHeaders: { - ...result.headers ? { [actionMatch.route.id]: result.headers } : {} - }, - matches, - loaderData: {}, - errors: { - [boundaryMatch.route.id]: result.error - }, - loaderHeaders: {} - }; - } else { - return { - actionData: { - [actionMatch.route.id]: result.data - }, - actionHeaders: result.headers ? { [actionMatch.route.id]: result.headers } : {}, - matches, - loaderData: {}, - errors: null, - statusCode: result.statusCode || 200, - loaderHeaders: {} - }; - } - } - let loaderRequest = new Request(request.url, { - headers: request.headers, - redirect: request.redirect, - signal: request.signal - }); - if (isErrorResult(result)) { - let boundaryMatch = skipLoaderErrorBubbling ? actionMatch : findNearestBoundary(matches, actionMatch.route.id); - let handlerContext2 = await loadRouteData( - loaderRequest, - matches, - requestContext, - dataStrategy, - skipLoaderErrorBubbling, - null, - filterMatchesToLoad, - [boundaryMatch.route.id, result] - ); - return { - ...handlerContext2, - statusCode: isRouteErrorResponse(result.error) ? result.error.status : result.statusCode != null ? result.statusCode : 500, - actionData: null, - actionHeaders: { - ...result.headers ? { [actionMatch.route.id]: result.headers } : {} - } - }; - } - let handlerContext = await loadRouteData( - loaderRequest, - matches, - requestContext, - dataStrategy, - skipLoaderErrorBubbling, - null, - filterMatchesToLoad - ); - return { - ...handlerContext, - actionData: { - [actionMatch.route.id]: result.data - }, - // action status codes take precedence over loader status codes - ...result.statusCode ? { statusCode: result.statusCode } : {}, - actionHeaders: result.headers ? { [actionMatch.route.id]: result.headers } : {} - }; - } - async function loadRouteData(request, matches, requestContext, dataStrategy, skipLoaderErrorBubbling, routeMatch, filterMatchesToLoad, pendingActionResult) { - let isRouteRequest = routeMatch != null; - if (isRouteRequest && !(routeMatch == null ? void 0 : routeMatch.route.loader) && !(routeMatch == null ? void 0 : routeMatch.route.lazy)) { - throw getInternalRouterError(400, { - method: request.method, - pathname: new URL(request.url).pathname, - routeId: routeMatch == null ? void 0 : routeMatch.route.id - }); - } - let dsMatches; - if (routeMatch) { - dsMatches = getTargetedDataStrategyMatches( - mapRouteProperties2, - manifest, - request, - matches, - routeMatch, - [], - requestContext - ); - } else { - let maxIdx = pendingActionResult && isErrorResult(pendingActionResult[1]) ? ( - // Up to but not including the boundary - matches.findIndex((m) => m.route.id === pendingActionResult[0]) - 1 - ) : void 0; - dsMatches = matches.map((match, index) => { - if (maxIdx != null && index > maxIdx) { - return getDataStrategyMatch( - mapRouteProperties2, - manifest, - request, - match, - [], - requestContext, - false - ); - } - return getDataStrategyMatch( - mapRouteProperties2, - manifest, - request, - match, - [], - requestContext, - (match.route.loader || match.route.lazy) != null && (!filterMatchesToLoad || filterMatchesToLoad(match)) - ); - }); - } - if (!dataStrategy && !dsMatches.some((m) => m.shouldLoad)) { - return { - matches, - loaderData: {}, - errors: pendingActionResult && isErrorResult(pendingActionResult[1]) ? { - [pendingActionResult[0]]: pendingActionResult[1].error - } : null, - statusCode: 200, - loaderHeaders: {} - }; - } - let results = await callDataStrategy( - request, - dsMatches, - isRouteRequest, - requestContext, - dataStrategy - ); - if (request.signal.aborted) { - throwStaticHandlerAbortedError(request, isRouteRequest); - } - let handlerContext = processRouteLoaderData( - matches, - results, - pendingActionResult, - true, - skipLoaderErrorBubbling - ); - return { - ...handlerContext, - matches - }; - } - async function callDataStrategy(request, matches, isRouteRequest, requestContext, dataStrategy) { - let results = await callDataStrategyImpl( - dataStrategy || defaultDataStrategy, - request, - matches, - null, - requestContext, - true - ); - let dataResults = {}; - await Promise.all( - matches.map(async (match) => { - if (!(match.route.id in results)) { - return; - } - let result = results[match.route.id]; - if (isRedirectDataStrategyResult(result)) { - let response = result.result; - throw normalizeRelativeRoutingRedirectResponse( - response, - request, - match.route.id, - matches, - basename - ); - } - if (isResponse(result.result) && isRouteRequest) { - throw result; - } - dataResults[match.route.id] = await convertDataStrategyResultToDataResult(result); - }) - ); - return dataResults; - } - return { - dataRoutes, - query, - queryRoute - }; -} -function getStaticContextFromError(routes, handlerContext, error, boundaryId) { - let errorBoundaryId = boundaryId || handlerContext._deepestRenderedBoundaryId || routes[0].id; - return { - ...handlerContext, - statusCode: isRouteErrorResponse(error) ? error.status : 500, - errors: { - [errorBoundaryId]: error - } - }; -} -function throwStaticHandlerAbortedError(request, isRouteRequest) { - if (request.signal.reason !== void 0) { - throw request.signal.reason; - } - let method = isRouteRequest ? "queryRoute" : "query"; - throw new Error( - `${method}() call aborted without an \`AbortSignal.reason\`: ${request.method} ${request.url}` - ); -} -function isSubmissionNavigation(opts) { - return opts != null && ("formData" in opts && opts.formData != null || "body" in opts && opts.body !== void 0); -} -function normalizeTo(location, matches, basename, to, fromRouteId, relative) { - let contextualMatches; - let activeRouteMatch; - if (fromRouteId) { - contextualMatches = []; - for (let match of matches) { - contextualMatches.push(match); - if (match.route.id === fromRouteId) { - activeRouteMatch = match; - break; - } - } - } else { - contextualMatches = matches; - activeRouteMatch = matches[matches.length - 1]; - } - let path = resolveTo( - to ? to : ".", - getResolveToMatches(contextualMatches), - stripBasename(location.pathname, basename) || location.pathname, - relative === "path" - ); - if (to == null) { - path.search = location.search; - path.hash = location.hash; - } - if ((to == null || to === "" || to === ".") && activeRouteMatch) { - let nakedIndex = hasNakedIndexQuery(path.search); - if (activeRouteMatch.route.index && !nakedIndex) { - path.search = path.search ? path.search.replace(/^\?/, "?index&") : "?index"; - } else if (!activeRouteMatch.route.index && nakedIndex) { - let params = new URLSearchParams(path.search); - let indexValues = params.getAll("index"); - params.delete("index"); - indexValues.filter((v) => v).forEach((v) => params.append("index", v)); - let qs = params.toString(); - path.search = qs ? `?${qs}` : ""; - } - } - if (basename !== "/") { - path.pathname = path.pathname === "/" ? basename : joinPaths([basename, path.pathname]); - } - return createPath(path); -} -function normalizeNavigateOptions(isFetcher, path, opts) { - if (!opts || !isSubmissionNavigation(opts)) { - return { path }; - } - if (opts.formMethod && !isValidMethod(opts.formMethod)) { - return { - path, - error: getInternalRouterError(405, { method: opts.formMethod }) - }; - } - let getInvalidBodyError = () => ({ - path, - error: getInternalRouterError(400, { type: "invalid-body" }) - }); - let rawFormMethod = opts.formMethod || "get"; - let formMethod = rawFormMethod.toUpperCase(); - let formAction = stripHashFromPath(path); - if (opts.body !== void 0) { - if (opts.formEncType === "text/plain") { - if (!isMutationMethod(formMethod)) { - return getInvalidBodyError(); - } - let text = typeof opts.body === "string" ? opts.body : opts.body instanceof FormData || opts.body instanceof URLSearchParams ? ( - // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#plain-text-form-data - Array.from(opts.body.entries()).reduce( - (acc, [name, value]) => `${acc}${name}=${value} -`, - "" - ) - ) : String(opts.body); - return { - path, - submission: { - formMethod, - formAction, - formEncType: opts.formEncType, - formData: void 0, - json: void 0, - text - } - }; - } else if (opts.formEncType === "application/json") { - if (!isMutationMethod(formMethod)) { - return getInvalidBodyError(); - } - try { - let json = typeof opts.body === "string" ? JSON.parse(opts.body) : opts.body; - return { - path, - submission: { - formMethod, - formAction, - formEncType: opts.formEncType, - formData: void 0, - json, - text: void 0 - } - }; - } catch (e) { - return getInvalidBodyError(); - } - } - } - invariant( - typeof FormData === "function", - "FormData is not available in this environment" - ); - let searchParams; - let formData; - if (opts.formData) { - searchParams = convertFormDataToSearchParams(opts.formData); - formData = opts.formData; - } else if (opts.body instanceof FormData) { - searchParams = convertFormDataToSearchParams(opts.body); - formData = opts.body; - } else if (opts.body instanceof URLSearchParams) { - searchParams = opts.body; - formData = convertSearchParamsToFormData(searchParams); - } else if (opts.body == null) { - searchParams = new URLSearchParams(); - formData = new FormData(); - } else { - try { - searchParams = new URLSearchParams(opts.body); - formData = convertSearchParamsToFormData(searchParams); - } catch (e) { - return getInvalidBodyError(); - } - } - let submission = { - formMethod, - formAction, - formEncType: opts && opts.formEncType || "application/x-www-form-urlencoded", - formData, - json: void 0, - text: void 0 - }; - if (isMutationMethod(submission.formMethod)) { - return { path, submission }; - } - let parsedPath = parsePath(path); - if (isFetcher && parsedPath.search && hasNakedIndexQuery(parsedPath.search)) { - searchParams.append("index", ""); - } - parsedPath.search = `?${searchParams}`; - return { path: createPath(parsedPath), submission }; -} -function getMatchesToLoad(request, scopedContext, mapRouteProperties2, manifest, history, state, matches, submission, location, lazyRoutePropertiesToSkip, initialHydration, isRevalidationRequired, cancelledFetcherLoads, fetchersQueuedForDeletion, fetchLoadMatches, fetchRedirectIds, routesToUse, basename, pendingActionResult) { - var _a; - let actionResult = pendingActionResult ? isErrorResult(pendingActionResult[1]) ? pendingActionResult[1].error : pendingActionResult[1].data : void 0; - let currentUrl = history.createURL(state.location); - let nextUrl = history.createURL(location); - let maxIdx; - if (initialHydration && state.errors) { - let boundaryId = Object.keys(state.errors)[0]; - maxIdx = matches.findIndex((m) => m.route.id === boundaryId); - } else if (pendingActionResult && isErrorResult(pendingActionResult[1])) { - let boundaryId = pendingActionResult[0]; - maxIdx = matches.findIndex((m) => m.route.id === boundaryId) - 1; - } - let actionStatus = pendingActionResult ? pendingActionResult[1].statusCode : void 0; - let shouldSkipRevalidation = actionStatus && actionStatus >= 400; - let baseShouldRevalidateArgs = { - currentUrl, - currentParams: ((_a = state.matches[0]) == null ? void 0 : _a.params) || {}, - nextUrl, - nextParams: matches[0].params, - ...submission, - actionResult, - actionStatus - }; - let dsMatches = matches.map((match, index) => { - let { route } = match; - let forceShouldLoad = null; - if (maxIdx != null && index > maxIdx) { - forceShouldLoad = false; - } else if (route.lazy) { - forceShouldLoad = true; - } else if (route.loader == null) { - forceShouldLoad = false; - } else if (initialHydration) { - forceShouldLoad = shouldLoadRouteOnHydration( - route, - state.loaderData, - state.errors - ); - } else if (isNewLoader(state.loaderData, state.matches[index], match)) { - forceShouldLoad = true; - } - if (forceShouldLoad !== null) { - return getDataStrategyMatch( - mapRouteProperties2, - manifest, - request, - match, - lazyRoutePropertiesToSkip, - scopedContext, - forceShouldLoad - ); - } - let defaultShouldRevalidate = shouldSkipRevalidation ? false : ( - // Forced revalidation due to submission, useRevalidator, or X-Remix-Revalidate - isRevalidationRequired || currentUrl.pathname + currentUrl.search === nextUrl.pathname + nextUrl.search || // Search params affect all loaders - currentUrl.search !== nextUrl.search || isNewRouteInstance(state.matches[index], match) - ); - let shouldRevalidateArgs = { - ...baseShouldRevalidateArgs, - defaultShouldRevalidate - }; - let shouldLoad = shouldRevalidateLoader(match, shouldRevalidateArgs); - return getDataStrategyMatch( - mapRouteProperties2, - manifest, - request, - match, - lazyRoutePropertiesToSkip, - scopedContext, - shouldLoad, - shouldRevalidateArgs - ); - }); - let revalidatingFetchers = []; - fetchLoadMatches.forEach((f, key) => { - if (initialHydration || !matches.some((m) => m.route.id === f.routeId) || fetchersQueuedForDeletion.has(key)) { - return; - } - let fetcherMatches = matchRoutes(routesToUse, f.path, basename); - if (!fetcherMatches) { - revalidatingFetchers.push({ - key, - routeId: f.routeId, - path: f.path, - matches: null, - match: null, - request: null, - controller: null - }); - return; - } - if (fetchRedirectIds.has(key)) { - return; - } - let fetcher = state.fetchers.get(key); - let fetcherMatch = getTargetMatch(fetcherMatches, f.path); - let fetchController = new AbortController(); - let fetchRequest = createClientSideRequest( - history, - f.path, - fetchController.signal - ); - let fetcherDsMatches = null; - if (cancelledFetcherLoads.has(key)) { - cancelledFetcherLoads.delete(key); - fetcherDsMatches = getTargetedDataStrategyMatches( - mapRouteProperties2, - manifest, - fetchRequest, - fetcherMatches, - fetcherMatch, - lazyRoutePropertiesToSkip, - scopedContext - ); - } else if (fetcher && fetcher.state !== "idle" && fetcher.data === void 0) { - if (isRevalidationRequired) { - fetcherDsMatches = getTargetedDataStrategyMatches( - mapRouteProperties2, - manifest, - fetchRequest, - fetcherMatches, - fetcherMatch, - lazyRoutePropertiesToSkip, - scopedContext - ); - } - } else { - let shouldRevalidateArgs = { - ...baseShouldRevalidateArgs, - defaultShouldRevalidate: shouldSkipRevalidation ? false : isRevalidationRequired - }; - if (shouldRevalidateLoader(fetcherMatch, shouldRevalidateArgs)) { - fetcherDsMatches = getTargetedDataStrategyMatches( - mapRouteProperties2, - manifest, - fetchRequest, - fetcherMatches, - fetcherMatch, - lazyRoutePropertiesToSkip, - scopedContext, - shouldRevalidateArgs - ); - } - } - if (fetcherDsMatches) { - revalidatingFetchers.push({ - key, - routeId: f.routeId, - path: f.path, - matches: fetcherDsMatches, - match: fetcherMatch, - request: fetchRequest, - controller: fetchController - }); - } - }); - return { dsMatches, revalidatingFetchers }; -} -function shouldLoadRouteOnHydration(route, loaderData, errors) { - if (route.lazy) { - return true; - } - if (!route.loader) { - return false; - } - let hasData = loaderData != null && loaderData[route.id] !== void 0; - let hasError = errors != null && errors[route.id] !== void 0; - if (!hasData && hasError) { - return false; - } - if (typeof route.loader === "function" && route.loader.hydrate === true) { - return true; - } - return !hasData && !hasError; -} -function isNewLoader(currentLoaderData, currentMatch, match) { - let isNew = ( - // [a] -> [a, b] - !currentMatch || // [a, b] -> [a, c] - match.route.id !== currentMatch.route.id - ); - let isMissingData = !currentLoaderData.hasOwnProperty(match.route.id); - return isNew || isMissingData; -} -function isNewRouteInstance(currentMatch, match) { - let currentPath = currentMatch.route.path; - return ( - // param change for this match, /users/123 -> /users/456 - currentMatch.pathname !== match.pathname || // splat param changed, which is not present in match.path - // e.g. /files/images/avatar.jpg -> files/finances.xls - currentPath != null && currentPath.endsWith("*") && currentMatch.params["*"] !== match.params["*"] - ); -} -function shouldRevalidateLoader(loaderMatch, arg) { - if (loaderMatch.route.shouldRevalidate) { - let routeChoice = loaderMatch.route.shouldRevalidate(arg); - if (typeof routeChoice === "boolean") { - return routeChoice; - } - } - return arg.defaultShouldRevalidate; -} -function patchRoutesImpl(routeId, children, routesToUse, manifest, mapRouteProperties2) { - let childrenToPatch; - if (routeId) { - let route = manifest[routeId]; - invariant( - route, - `No route found to patch children into: routeId = ${routeId}` - ); - if (!route.children) { - route.children = []; - } - childrenToPatch = route.children; - } else { - childrenToPatch = routesToUse; - } - let uniqueChildren = children.filter( - (newRoute) => !childrenToPatch.some( - (existingRoute) => isSameRoute(newRoute, existingRoute) - ) - ); - let newRoutes = convertRoutesToDataRoutes( - uniqueChildren, - mapRouteProperties2, - [routeId || "_", "patch", String((childrenToPatch == null ? void 0 : childrenToPatch.length) || "0")], - manifest - ); - childrenToPatch.push(...newRoutes); -} -function isSameRoute(newRoute, existingRoute) { - if ("id" in newRoute && "id" in existingRoute && newRoute.id === existingRoute.id) { - return true; - } - if (!(newRoute.index === existingRoute.index && newRoute.path === existingRoute.path && newRoute.caseSensitive === existingRoute.caseSensitive)) { - return false; - } - if ((!newRoute.children || newRoute.children.length === 0) && (!existingRoute.children || existingRoute.children.length === 0)) { - return true; - } - return newRoute.children.every( - (aChild, i) => { - var _a; - return (_a = existingRoute.children) == null ? void 0 : _a.some((bChild) => isSameRoute(aChild, bChild)); - } - ); -} -var lazyRoutePropertyCache = /* @__PURE__ */ new WeakMap(); -var loadLazyRouteProperty = ({ - key, - route, - manifest, - mapRouteProperties: mapRouteProperties2 -}) => { - let routeToUpdate = manifest[route.id]; - invariant(routeToUpdate, "No route found in manifest"); - if (!routeToUpdate.lazy || typeof routeToUpdate.lazy !== "object") { - return; - } - let lazyFn = routeToUpdate.lazy[key]; - if (!lazyFn) { - return; - } - let cache = lazyRoutePropertyCache.get(routeToUpdate); - if (!cache) { - cache = {}; - lazyRoutePropertyCache.set(routeToUpdate, cache); - } - let cachedPromise = cache[key]; - if (cachedPromise) { - return cachedPromise; - } - let propertyPromise = (async () => { - let isUnsupported = isUnsupportedLazyRouteObjectKey(key); - let staticRouteValue = routeToUpdate[key]; - let isStaticallyDefined = staticRouteValue !== void 0 && key !== "hasErrorBoundary"; - if (isUnsupported) { - warning( - !isUnsupported, - "Route property " + key + " is not a supported lazy route property. This property will be ignored." - ); - cache[key] = Promise.resolve(); - } else if (isStaticallyDefined) { - warning( - false, - `Route "${routeToUpdate.id}" has a static property "${key}" defined. The lazy property will be ignored.` - ); - } else { - let value = await lazyFn(); - if (value != null) { - Object.assign(routeToUpdate, { [key]: value }); - Object.assign(routeToUpdate, mapRouteProperties2(routeToUpdate)); - } - } - if (typeof routeToUpdate.lazy === "object") { - routeToUpdate.lazy[key] = void 0; - if (Object.values(routeToUpdate.lazy).every((value) => value === void 0)) { - routeToUpdate.lazy = void 0; - } - } - })(); - cache[key] = propertyPromise; - return propertyPromise; -}; -var lazyRouteFunctionCache = /* @__PURE__ */ new WeakMap(); -function loadLazyRoute(route, type, manifest, mapRouteProperties2, lazyRoutePropertiesToSkip) { - let routeToUpdate = manifest[route.id]; - invariant(routeToUpdate, "No route found in manifest"); - if (!route.lazy) { - return { - lazyRoutePromise: void 0, - lazyHandlerPromise: void 0 - }; - } - if (typeof route.lazy === "function") { - let cachedPromise = lazyRouteFunctionCache.get(routeToUpdate); - if (cachedPromise) { - return { - lazyRoutePromise: cachedPromise, - lazyHandlerPromise: cachedPromise - }; - } - let lazyRoutePromise2 = (async () => { - invariant( - typeof route.lazy === "function", - "No lazy route function found" - ); - let lazyRoute = await route.lazy(); - let routeUpdates = {}; - for (let lazyRouteProperty in lazyRoute) { - let lazyValue = lazyRoute[lazyRouteProperty]; - if (lazyValue === void 0) { - continue; - } - let isUnsupported = isUnsupportedLazyRouteFunctionKey(lazyRouteProperty); - let staticRouteValue = routeToUpdate[lazyRouteProperty]; - let isStaticallyDefined = staticRouteValue !== void 0 && // This property isn't static since it should always be updated based - // on the route updates - lazyRouteProperty !== "hasErrorBoundary"; - if (isUnsupported) { - warning( - !isUnsupported, - "Route property " + lazyRouteProperty + " is not a supported property to be returned from a lazy route function. This property will be ignored." - ); - } else if (isStaticallyDefined) { - warning( - !isStaticallyDefined, - `Route "${routeToUpdate.id}" has a static property "${lazyRouteProperty}" defined but its lazy function is also returning a value for this property. The lazy route property "${lazyRouteProperty}" will be ignored.` - ); - } else { - routeUpdates[lazyRouteProperty] = lazyValue; - } - } - Object.assign(routeToUpdate, routeUpdates); - Object.assign(routeToUpdate, { - // To keep things framework agnostic, we use the provided `mapRouteProperties` - // function to set the framework-aware properties (`element`/`hasErrorBoundary`) - // since the logic will differ between frameworks. - ...mapRouteProperties2(routeToUpdate), - lazy: void 0 - }); - })(); - lazyRouteFunctionCache.set(routeToUpdate, lazyRoutePromise2); - lazyRoutePromise2.catch(() => { - }); - return { - lazyRoutePromise: lazyRoutePromise2, - lazyHandlerPromise: lazyRoutePromise2 - }; - } - let lazyKeys = Object.keys(route.lazy); - let lazyPropertyPromises = []; - let lazyHandlerPromise = void 0; - for (let key of lazyKeys) { - if (lazyRoutePropertiesToSkip && lazyRoutePropertiesToSkip.includes(key)) { - continue; - } - let promise = loadLazyRouteProperty({ - key, - route, - manifest, - mapRouteProperties: mapRouteProperties2 - }); - if (promise) { - lazyPropertyPromises.push(promise); - if (key === type) { - lazyHandlerPromise = promise; - } - } - } - let lazyRoutePromise = lazyPropertyPromises.length > 0 ? Promise.all(lazyPropertyPromises).then(() => { - }) : void 0; - lazyRoutePromise == null ? void 0 : lazyRoutePromise.catch(() => { - }); - lazyHandlerPromise == null ? void 0 : lazyHandlerPromise.catch(() => { - }); - return { - lazyRoutePromise, - lazyHandlerPromise - }; -} -function isNonNullable(value) { - return value !== void 0; -} -function loadLazyMiddlewareForMatches(matches, manifest, mapRouteProperties2) { - let promises = matches.map(({ route }) => { - if (typeof route.lazy !== "object" || !route.lazy.unstable_middleware) { - return void 0; - } - return loadLazyRouteProperty({ - key: "unstable_middleware", - route, - manifest, - mapRouteProperties: mapRouteProperties2 - }); - }).filter(isNonNullable); - return promises.length > 0 ? Promise.all(promises) : void 0; -} -async function defaultDataStrategy(args) { - let matchesToLoad = args.matches.filter((m) => m.shouldLoad); - let keyedResults = {}; - let results = await Promise.all(matchesToLoad.map((m) => m.resolve())); - results.forEach((result, i) => { - keyedResults[matchesToLoad[i].route.id] = result; - }); - return keyedResults; -} -async function defaultDataStrategyWithMiddleware(args) { - if (!args.matches.some((m) => m.route.unstable_middleware)) { - return defaultDataStrategy(args); - } - return runMiddlewarePipeline( - args, - false, - () => defaultDataStrategy(args), - (error, routeId) => ({ [routeId]: { type: "error", result: error } }) - ); -} -async function runMiddlewarePipeline(args, propagateResult, handler, errorHandler) { - let { matches, request, params, context } = args; - let middlewareState = { - handlerResult: void 0 - }; - try { - let tuples = matches.flatMap( - (m) => m.route.unstable_middleware ? m.route.unstable_middleware.map((fn) => [m.route.id, fn]) : [] - ); - let result = await callRouteMiddleware( - { request, params, context }, - tuples, - propagateResult, - middlewareState, - handler - ); - return propagateResult ? result : middlewareState.handlerResult; - } catch (e) { - if (!middlewareState.middlewareError) { - throw e; - } - let result = await errorHandler( - middlewareState.middlewareError.error, - middlewareState.middlewareError.routeId - ); - if (propagateResult || !middlewareState.handlerResult) { - return result; - } - return Object.assign(middlewareState.handlerResult, result); - } -} -async function callRouteMiddleware(args, middlewares, propagateResult, middlewareState, handler, idx = 0) { - let { request } = args; - if (request.signal.aborted) { - if (request.signal.reason) { - throw request.signal.reason; - } - throw new Error( - `Request aborted without an \`AbortSignal.reason\`: ${request.method} ${request.url}` - ); - } - let tuple = middlewares[idx]; - if (!tuple) { - middlewareState.handlerResult = await handler(); - return middlewareState.handlerResult; - } - let [routeId, middleware] = tuple; - let nextCalled = false; - let nextResult = void 0; - let next = async () => { - if (nextCalled) { - throw new Error("You may only call `next()` once per middleware"); - } - nextCalled = true; - let result = await callRouteMiddleware( - args, - middlewares, - propagateResult, - middlewareState, - handler, - idx + 1 - ); - if (propagateResult) { - nextResult = result; - return nextResult; - } - }; - try { - let result = await middleware( - { - request: args.request, - params: args.params, - context: args.context - }, - next - ); - if (nextCalled) { - if (result === void 0) { - return nextResult; - } else { - return result; - } - } else { - return next(); - } - } catch (error) { - if (!middlewareState.middlewareError) { - middlewareState.middlewareError = { routeId, error }; - } else if (middlewareState.middlewareError.error !== error) { - middlewareState.middlewareError = { routeId, error }; - } - throw error; - } -} -function getDataStrategyMatchLazyPromises(mapRouteProperties2, manifest, request, match, lazyRoutePropertiesToSkip) { - let lazyMiddlewarePromise = loadLazyRouteProperty({ - key: "unstable_middleware", - route: match.route, - manifest, - mapRouteProperties: mapRouteProperties2 - }); - let lazyRoutePromises = loadLazyRoute( - match.route, - isMutationMethod(request.method) ? "action" : "loader", - manifest, - mapRouteProperties2, - lazyRoutePropertiesToSkip - ); - return { - middleware: lazyMiddlewarePromise, - route: lazyRoutePromises.lazyRoutePromise, - handler: lazyRoutePromises.lazyHandlerPromise - }; -} -function getDataStrategyMatch(mapRouteProperties2, manifest, request, match, lazyRoutePropertiesToSkip, scopedContext, shouldLoad, unstable_shouldRevalidateArgs = null) { - let isUsingNewApi = false; - let _lazyPromises = getDataStrategyMatchLazyPromises( - mapRouteProperties2, - manifest, - request, - match, - lazyRoutePropertiesToSkip - ); - return { - ...match, - _lazyPromises, - shouldLoad, - unstable_shouldRevalidateArgs, - unstable_shouldCallHandler(defaultShouldRevalidate) { - isUsingNewApi = true; - if (!unstable_shouldRevalidateArgs) { - return shouldLoad; - } - if (typeof defaultShouldRevalidate === "boolean") { - return shouldRevalidateLoader(match, { - ...unstable_shouldRevalidateArgs, - defaultShouldRevalidate - }); - } - return shouldRevalidateLoader(match, unstable_shouldRevalidateArgs); - }, - resolve(handlerOverride) { - if (isUsingNewApi || shouldLoad || handlerOverride && request.method === "GET" && (match.route.lazy || match.route.loader)) { - return callLoaderOrAction({ - request, - match, - lazyHandlerPromise: _lazyPromises == null ? void 0 : _lazyPromises.handler, - lazyRoutePromise: _lazyPromises == null ? void 0 : _lazyPromises.route, - handlerOverride, - scopedContext - }); - } - return Promise.resolve({ type: "data", result: void 0 }); - } - }; -} -function getTargetedDataStrategyMatches(mapRouteProperties2, manifest, request, matches, targetMatch, lazyRoutePropertiesToSkip, scopedContext, shouldRevalidateArgs = null) { - return matches.map((match) => { - if (match.route.id !== targetMatch.route.id) { - return { - ...match, - shouldLoad: false, - unstable_shouldRevalidateArgs: shouldRevalidateArgs, - unstable_shouldCallHandler: () => false, - _lazyPromises: getDataStrategyMatchLazyPromises( - mapRouteProperties2, - manifest, - request, - match, - lazyRoutePropertiesToSkip - ), - resolve: () => Promise.resolve({ type: "data", result: void 0 }) - }; - } - return getDataStrategyMatch( - mapRouteProperties2, - manifest, - request, - match, - lazyRoutePropertiesToSkip, - scopedContext, - true, - shouldRevalidateArgs - ); - }); -} -async function callDataStrategyImpl(dataStrategyImpl, request, matches, fetcherKey, scopedContext, isStaticHandler) { - if (matches.some((m) => { - var _a; - return (_a = m._lazyPromises) == null ? void 0 : _a.middleware; - })) { - await Promise.all(matches.map((m) => { - var _a; - return (_a = m._lazyPromises) == null ? void 0 : _a.middleware; - })); - } - let dataStrategyArgs = { - request, - params: matches[0].params, - context: scopedContext, - matches - }; - let unstable_runClientMiddleware = isStaticHandler ? () => { - throw new Error( - "You cannot call `unstable_runClientMiddleware()` from a static handler `dataStrategy`. Middleware is run outside of `dataStrategy` during SSR in order to bubble up the Response. You can enable middleware via the `respond` API in `query`/`queryRoute`" - ); - } : (cb) => { - let typedDataStrategyArgs = dataStrategyArgs; - return runMiddlewarePipeline( - typedDataStrategyArgs, - false, - () => cb({ - ...typedDataStrategyArgs, - fetcherKey, - unstable_runClientMiddleware: () => { - throw new Error( - "Cannot call `unstable_runClientMiddleware()` from within an `unstable_runClientMiddleware` handler" - ); - } - }), - (error, routeId) => ({ - [routeId]: { type: "error", result: error } - }) - ); - }; - let results = await dataStrategyImpl({ - ...dataStrategyArgs, - fetcherKey, - unstable_runClientMiddleware - }); - try { - await Promise.all( - matches.flatMap((m) => { - var _a, _b; - return [(_a = m._lazyPromises) == null ? void 0 : _a.handler, (_b = m._lazyPromises) == null ? void 0 : _b.route]; - }) - ); - } catch (e) { - } - return results; -} -async function callLoaderOrAction({ - request, - match, - lazyHandlerPromise, - lazyRoutePromise, - handlerOverride, - scopedContext -}) { - let result; - let onReject; - let isAction = isMutationMethod(request.method); - let type = isAction ? "action" : "loader"; - let runHandler = (handler) => { - let reject; - let abortPromise = new Promise((_, r) => reject = r); - onReject = () => reject(); - request.signal.addEventListener("abort", onReject); - let actualHandler = (ctx) => { - if (typeof handler !== "function") { - return Promise.reject( - new Error( - `You cannot call the handler for a route which defines a boolean "${type}" [routeId: ${match.route.id}]` - ) - ); - } - return handler( - { - request, - params: match.params, - context: scopedContext - }, - ...ctx !== void 0 ? [ctx] : [] - ); - }; - let handlerPromise = (async () => { - try { - let val = await (handlerOverride ? handlerOverride((ctx) => actualHandler(ctx)) : actualHandler()); - return { type: "data", result: val }; - } catch (e) { - return { type: "error", result: e }; - } - })(); - return Promise.race([handlerPromise, abortPromise]); - }; - try { - let handler = isAction ? match.route.action : match.route.loader; - if (lazyHandlerPromise || lazyRoutePromise) { - if (handler) { - let handlerError; - let [value] = await Promise.all([ - // If the handler throws, don't let it immediately bubble out, - // since we need to let the lazy() execution finish so we know if this - // route has a boundary that can handle the error - runHandler(handler).catch((e) => { - handlerError = e; - }), - // Ensure all lazy route promises are resolved before continuing - lazyHandlerPromise, - lazyRoutePromise - ]); - if (handlerError !== void 0) { - throw handlerError; - } - result = value; - } else { - await lazyHandlerPromise; - let handler2 = isAction ? match.route.action : match.route.loader; - if (handler2) { - [result] = await Promise.all([runHandler(handler2), lazyRoutePromise]); - } else if (type === "action") { - let url = new URL(request.url); - let pathname = url.pathname + url.search; - throw getInternalRouterError(405, { - method: request.method, - pathname, - routeId: match.route.id - }); - } else { - return { type: "data", result: void 0 }; - } - } - } else if (!handler) { - let url = new URL(request.url); - let pathname = url.pathname + url.search; - throw getInternalRouterError(404, { - pathname - }); - } else { - result = await runHandler(handler); - } - } catch (e) { - return { type: "error", result: e }; - } finally { - if (onReject) { - request.signal.removeEventListener("abort", onReject); - } - } - return result; -} -async function convertDataStrategyResultToDataResult(dataStrategyResult) { - var _a, _b, _c, _d, _e, _f; - let { result, type } = dataStrategyResult; - if (isResponse(result)) { - let data2; - try { - let contentType = result.headers.get("Content-Type"); - if (contentType && /\bapplication\/json\b/.test(contentType)) { - if (result.body == null) { - data2 = null; - } else { - data2 = await result.json(); - } - } else { - data2 = await result.text(); - } - } catch (e) { - return { type: "error", error: e }; - } - if (type === "error") { - return { - type: "error", - error: new ErrorResponseImpl(result.status, result.statusText, data2), - statusCode: result.status, - headers: result.headers - }; - } - return { - type: "data", - data: data2, - statusCode: result.status, - headers: result.headers - }; - } - if (type === "error") { - if (isDataWithResponseInit(result)) { - if (result.data instanceof Error) { - return { - type: "error", - error: result.data, - statusCode: (_a = result.init) == null ? void 0 : _a.status, - headers: ((_b = result.init) == null ? void 0 : _b.headers) ? new Headers(result.init.headers) : void 0 - }; - } - return { - type: "error", - error: new ErrorResponseImpl( - ((_c = result.init) == null ? void 0 : _c.status) || 500, - void 0, - result.data - ), - statusCode: isRouteErrorResponse(result) ? result.status : void 0, - headers: ((_d = result.init) == null ? void 0 : _d.headers) ? new Headers(result.init.headers) : void 0 - }; - } - return { - type: "error", - error: result, - statusCode: isRouteErrorResponse(result) ? result.status : void 0 - }; - } - if (isDataWithResponseInit(result)) { - return { - type: "data", - data: result.data, - statusCode: (_e = result.init) == null ? void 0 : _e.status, - headers: ((_f = result.init) == null ? void 0 : _f.headers) ? new Headers(result.init.headers) : void 0 - }; - } - return { type: "data", data: result }; -} -function normalizeRelativeRoutingRedirectResponse(response, request, routeId, matches, basename) { - let location = response.headers.get("Location"); - invariant( - location, - "Redirects returned/thrown from loaders/actions must have a Location header" - ); - if (!ABSOLUTE_URL_REGEX.test(location)) { - let trimmedMatches = matches.slice( - 0, - matches.findIndex((m) => m.route.id === routeId) + 1 - ); - location = normalizeTo( - new URL(request.url), - trimmedMatches, - basename, - location - ); - response.headers.set("Location", location); - } - return response; -} -function normalizeRedirectLocation(location, currentUrl, basename) { - if (ABSOLUTE_URL_REGEX.test(location)) { - let normalizedLocation = location; - let url = normalizedLocation.startsWith("//") ? new URL(currentUrl.protocol + normalizedLocation) : new URL(normalizedLocation); - let isSameBasename = stripBasename(url.pathname, basename) != null; - if (url.origin === currentUrl.origin && isSameBasename) { - return url.pathname + url.search + url.hash; - } - } - return location; -} -function createClientSideRequest(history, location, signal, submission) { - let url = history.createURL(stripHashFromPath(location)).toString(); - let init = { signal }; - if (submission && isMutationMethod(submission.formMethod)) { - let { formMethod, formEncType } = submission; - init.method = formMethod.toUpperCase(); - if (formEncType === "application/json") { - init.headers = new Headers({ "Content-Type": formEncType }); - init.body = JSON.stringify(submission.json); - } else if (formEncType === "text/plain") { - init.body = submission.text; - } else if (formEncType === "application/x-www-form-urlencoded" && submission.formData) { - init.body = convertFormDataToSearchParams(submission.formData); - } else { - init.body = submission.formData; - } - } - return new Request(url, init); -} -function convertFormDataToSearchParams(formData) { - let searchParams = new URLSearchParams(); - for (let [key, value] of formData.entries()) { - searchParams.append(key, typeof value === "string" ? value : value.name); - } - return searchParams; -} -function convertSearchParamsToFormData(searchParams) { - let formData = new FormData(); - for (let [key, value] of searchParams.entries()) { - formData.append(key, value); - } - return formData; -} -function processRouteLoaderData(matches, results, pendingActionResult, isStaticHandler = false, skipLoaderErrorBubbling = false) { - let loaderData = {}; - let errors = null; - let statusCode; - let foundError = false; - let loaderHeaders = {}; - let pendingError = pendingActionResult && isErrorResult(pendingActionResult[1]) ? pendingActionResult[1].error : void 0; - matches.forEach((match) => { - if (!(match.route.id in results)) { - return; - } - let id = match.route.id; - let result = results[id]; - invariant( - !isRedirectResult(result), - "Cannot handle redirect results in processLoaderData" - ); - if (isErrorResult(result)) { - let error = result.error; - if (pendingError !== void 0) { - error = pendingError; - pendingError = void 0; - } - errors = errors || {}; - if (skipLoaderErrorBubbling) { - errors[id] = error; - } else { - let boundaryMatch = findNearestBoundary(matches, id); - if (errors[boundaryMatch.route.id] == null) { - errors[boundaryMatch.route.id] = error; - } - } - if (!isStaticHandler) { - loaderData[id] = ResetLoaderDataSymbol; - } - if (!foundError) { - foundError = true; - statusCode = isRouteErrorResponse(result.error) ? result.error.status : 500; - } - if (result.headers) { - loaderHeaders[id] = result.headers; - } - } else { - loaderData[id] = result.data; - if (result.statusCode && result.statusCode !== 200 && !foundError) { - statusCode = result.statusCode; - } - if (result.headers) { - loaderHeaders[id] = result.headers; - } - } - }); - if (pendingError !== void 0 && pendingActionResult) { - errors = { [pendingActionResult[0]]: pendingError }; - loaderData[pendingActionResult[0]] = void 0; - } - return { - loaderData, - errors, - statusCode: statusCode || 200, - loaderHeaders - }; -} -function processLoaderData(state, matches, results, pendingActionResult, revalidatingFetchers, fetcherResults) { - let { loaderData, errors } = processRouteLoaderData( - matches, - results, - pendingActionResult - ); - revalidatingFetchers.filter((f) => !f.matches || f.matches.some((m) => m.shouldLoad)).forEach((rf) => { - let { key, match, controller } = rf; - let result = fetcherResults[key]; - invariant(result, "Did not find corresponding fetcher result"); - if (controller && controller.signal.aborted) { - return; - } else if (isErrorResult(result)) { - let boundaryMatch = findNearestBoundary(state.matches, match == null ? void 0 : match.route.id); - if (!(errors && errors[boundaryMatch.route.id])) { - errors = { - ...errors, - [boundaryMatch.route.id]: result.error - }; - } - state.fetchers.delete(key); - } else if (isRedirectResult(result)) { - invariant(false, "Unhandled fetcher revalidation redirect"); - } else { - let doneFetcher = getDoneFetcher(result.data); - state.fetchers.set(key, doneFetcher); - } - }); - return { loaderData, errors }; -} -function mergeLoaderData(loaderData, newLoaderData, matches, errors) { - let mergedLoaderData = Object.entries(newLoaderData).filter(([, v]) => v !== ResetLoaderDataSymbol).reduce((merged, [k, v]) => { - merged[k] = v; - return merged; - }, {}); - for (let match of matches) { - let id = match.route.id; - if (!newLoaderData.hasOwnProperty(id) && loaderData.hasOwnProperty(id) && match.route.loader) { - mergedLoaderData[id] = loaderData[id]; - } - if (errors && errors.hasOwnProperty(id)) { - break; - } - } - return mergedLoaderData; -} -function getActionDataForCommit(pendingActionResult) { - if (!pendingActionResult) { - return {}; - } - return isErrorResult(pendingActionResult[1]) ? { - // Clear out prior actionData on errors - actionData: {} - } : { - actionData: { - [pendingActionResult[0]]: pendingActionResult[1].data - } - }; -} -function findNearestBoundary(matches, routeId) { - let eligibleMatches = routeId ? matches.slice(0, matches.findIndex((m) => m.route.id === routeId) + 1) : [...matches]; - return eligibleMatches.reverse().find((m) => m.route.hasErrorBoundary === true) || matches[0]; -} -function getShortCircuitMatches(routes) { - let route = routes.length === 1 ? routes[0] : routes.find((r) => r.index || !r.path || r.path === "/") || { - id: `__shim-error-route__` - }; - return { - matches: [ - { - params: {}, - pathname: "", - pathnameBase: "", - route - } - ], - route - }; -} -function getInternalRouterError(status, { - pathname, - routeId, - method, - type, - message -} = {}) { - let statusText = "Unknown Server Error"; - let errorMessage = "Unknown @remix-run/router error"; - if (status === 400) { - statusText = "Bad Request"; - if (method && pathname && routeId) { - errorMessage = `You made a ${method} request to "${pathname}" but did not provide a \`loader\` for route "${routeId}", so there is no way to handle the request.`; - } else if (type === "invalid-body") { - errorMessage = "Unable to encode submission body"; - } - } else if (status === 403) { - statusText = "Forbidden"; - errorMessage = `Route "${routeId}" does not match URL "${pathname}"`; - } else if (status === 404) { - statusText = "Not Found"; - errorMessage = `No route matches URL "${pathname}"`; - } else if (status === 405) { - statusText = "Method Not Allowed"; - if (method && pathname && routeId) { - errorMessage = `You made a ${method.toUpperCase()} request to "${pathname}" but did not provide an \`action\` for route "${routeId}", so there is no way to handle the request.`; - } else if (method) { - errorMessage = `Invalid request method "${method.toUpperCase()}"`; - } - } - return new ErrorResponseImpl( - status || 500, - statusText, - new Error(errorMessage), - true - ); -} -function findRedirect(results) { - let entries = Object.entries(results); - for (let i = entries.length - 1; i >= 0; i--) { - let [key, result] = entries[i]; - if (isRedirectResult(result)) { - return { key, result }; - } - } -} -function stripHashFromPath(path) { - let parsedPath = typeof path === "string" ? parsePath(path) : path; - return createPath({ ...parsedPath, hash: "" }); -} -function isHashChangeOnly(a, b) { - if (a.pathname !== b.pathname || a.search !== b.search) { - return false; - } - if (a.hash === "") { - return b.hash !== ""; - } else if (a.hash === b.hash) { - return true; - } else if (b.hash !== "") { - return true; - } - return false; -} -function isDataStrategyResult(result) { - return result != null && typeof result === "object" && "type" in result && "result" in result && (result.type === "data" || result.type === "error"); -} -function isRedirectDataStrategyResult(result) { - return isResponse(result.result) && redirectStatusCodes.has(result.result.status); -} -function isErrorResult(result) { - return result.type === "error"; -} -function isRedirectResult(result) { - return (result && result.type) === "redirect"; -} -function isDataWithResponseInit(value) { - return typeof value === "object" && value != null && "type" in value && "data" in value && "init" in value && value.type === "DataWithResponseInit"; -} -function isResponse(value) { - return value != null && typeof value.status === "number" && typeof value.statusText === "string" && typeof value.headers === "object" && typeof value.body !== "undefined"; -} -function isRedirectStatusCode(statusCode) { - return redirectStatusCodes.has(statusCode); -} -function isRedirectResponse(result) { - return isResponse(result) && isRedirectStatusCode(result.status) && result.headers.has("Location"); -} -function isValidMethod(method) { - return validRequestMethods.has(method.toUpperCase()); -} -function isMutationMethod(method) { - return validMutationMethods.has(method.toUpperCase()); -} -function hasNakedIndexQuery(search) { - return new URLSearchParams(search).getAll("index").some((v) => v === ""); -} -function getTargetMatch(matches, location) { - let search = typeof location === "string" ? parsePath(location).search : location.search; - if (matches[matches.length - 1].route.index && hasNakedIndexQuery(search || "")) { - return matches[matches.length - 1]; - } - let pathMatches = getPathContributingMatches(matches); - return pathMatches[pathMatches.length - 1]; -} -function getSubmissionFromNavigation(navigation) { - let { formMethod, formAction, formEncType, text, formData, json } = navigation; - if (!formMethod || !formAction || !formEncType) { - return; - } - if (text != null) { - return { - formMethod, - formAction, - formEncType, - formData: void 0, - json: void 0, - text - }; - } else if (formData != null) { - return { - formMethod, - formAction, - formEncType, - formData, - json: void 0, - text: void 0 - }; - } else if (json !== void 0) { - return { - formMethod, - formAction, - formEncType, - formData: void 0, - json, - text: void 0 - }; - } -} -function getLoadingNavigation(location, submission) { - if (submission) { - let navigation = { - state: "loading", - location, - formMethod: submission.formMethod, - formAction: submission.formAction, - formEncType: submission.formEncType, - formData: submission.formData, - json: submission.json, - text: submission.text - }; - return navigation; - } else { - let navigation = { - state: "loading", - location, - formMethod: void 0, - formAction: void 0, - formEncType: void 0, - formData: void 0, - json: void 0, - text: void 0 - }; - return navigation; - } -} -function getSubmittingNavigation(location, submission) { - let navigation = { - state: "submitting", - location, - formMethod: submission.formMethod, - formAction: submission.formAction, - formEncType: submission.formEncType, - formData: submission.formData, - json: submission.json, - text: submission.text - }; - return navigation; -} -function getLoadingFetcher(submission, data2) { - if (submission) { - let fetcher = { - state: "loading", - formMethod: submission.formMethod, - formAction: submission.formAction, - formEncType: submission.formEncType, - formData: submission.formData, - json: submission.json, - text: submission.text, - data: data2 - }; - return fetcher; - } else { - let fetcher = { - state: "loading", - formMethod: void 0, - formAction: void 0, - formEncType: void 0, - formData: void 0, - json: void 0, - text: void 0, - data: data2 - }; - return fetcher; - } -} -function getSubmittingFetcher(submission, existingFetcher) { - let fetcher = { - state: "submitting", - formMethod: submission.formMethod, - formAction: submission.formAction, - formEncType: submission.formEncType, - formData: submission.formData, - json: submission.json, - text: submission.text, - data: existingFetcher ? existingFetcher.data : void 0 - }; - return fetcher; -} -function getDoneFetcher(data2) { - let fetcher = { - state: "idle", - formMethod: void 0, - formAction: void 0, - formEncType: void 0, - formData: void 0, - json: void 0, - text: void 0, - data: data2 - }; - return fetcher; -} -function restoreAppliedTransitions(_window, transitions) { - try { - let sessionPositions = _window.sessionStorage.getItem( - TRANSITIONS_STORAGE_KEY - ); - if (sessionPositions) { - let json = JSON.parse(sessionPositions); - for (let [k, v] of Object.entries(json || {})) { - if (v && Array.isArray(v)) { - transitions.set(k, new Set(v || [])); - } - } - } - } catch (e) { - } -} -function persistAppliedTransitions(_window, transitions) { - if (transitions.size > 0) { - let json = {}; - for (let [k, v] of transitions) { - json[k] = [...v]; - } - try { - _window.sessionStorage.setItem( - TRANSITIONS_STORAGE_KEY, - JSON.stringify(json) - ); - } catch (error) { - warning( - false, - `Failed to save applied view transitions in sessionStorage (${error}).` - ); - } - } -} -function createDeferred() { - let resolve; - let reject; - let promise = new Promise((res, rej) => { - resolve = async (val) => { - res(val); - try { - await promise; - } catch (e) { - } - }; - reject = async (error) => { - rej(error); - try { - await promise; - } catch (e) { - } - }; - }); - return { - promise, - //@ts-ignore - resolve, - //@ts-ignore - reject - }; -} -var DataRouterContext = React.createContext(null); -DataRouterContext.displayName = "DataRouter"; -var DataRouterStateContext = React.createContext(null); -DataRouterStateContext.displayName = "DataRouterState"; -var ViewTransitionContext = React.createContext({ - isTransitioning: false -}); -ViewTransitionContext.displayName = "ViewTransition"; -var FetchersContext = React.createContext( - /* @__PURE__ */ new Map() -); -FetchersContext.displayName = "Fetchers"; -var AwaitContext = React.createContext(null); -AwaitContext.displayName = "Await"; -var NavigationContext = React.createContext( - null -); -NavigationContext.displayName = "Navigation"; -var LocationContext = React.createContext( - null -); -LocationContext.displayName = "Location"; -var RouteContext = React.createContext({ - outlet: null, - matches: [], - isDataRoute: false -}); -RouteContext.displayName = "Route"; -var RouteErrorContext = React.createContext(null); -RouteErrorContext.displayName = "RouteError"; -var ENABLE_DEV_WARNINGS = true; -function useHref(to, { relative } = {}) { - invariant( - useInRouterContext(), - // TODO: This error is probably because they somehow have 2 versions of the - // router loaded. We can help them understand how to avoid that. - `useHref() may be used only in the context of a component.` - ); - let { basename, navigator: navigator2 } = React2.useContext(NavigationContext); - let { hash, pathname, search } = useResolvedPath(to, { relative }); - let joinedPathname = pathname; - if (basename !== "/") { - joinedPathname = pathname === "/" ? basename : joinPaths([basename, pathname]); - } - return navigator2.createHref({ pathname: joinedPathname, search, hash }); -} -function useInRouterContext() { - return React2.useContext(LocationContext) != null; -} -function useLocation() { - invariant( - useInRouterContext(), - // TODO: This error is probably because they somehow have 2 versions of the - // router loaded. We can help them understand how to avoid that. - `useLocation() may be used only in the context of a component.` - ); - return React2.useContext(LocationContext).location; -} -function useNavigationType() { - return React2.useContext(LocationContext).navigationType; -} -function useMatch(pattern) { - invariant( - useInRouterContext(), - // TODO: This error is probably because they somehow have 2 versions of the - // router loaded. We can help them understand how to avoid that. - `useMatch() may be used only in the context of a component.` - ); - let { pathname } = useLocation(); - return React2.useMemo( - () => matchPath(pattern, decodePath(pathname)), - [pathname, pattern] - ); -} -var navigateEffectWarning = `You should call navigate() in a React.useEffect(), not when your component is first rendered.`; -function useIsomorphicLayoutEffect(cb) { - let isStatic = React2.useContext(NavigationContext).static; - if (!isStatic) { - React2.useLayoutEffect(cb); - } -} -function useNavigate() { - let { isDataRoute } = React2.useContext(RouteContext); - return isDataRoute ? useNavigateStable() : useNavigateUnstable(); -} -function useNavigateUnstable() { - invariant( - useInRouterContext(), - // TODO: This error is probably because they somehow have 2 versions of the - // router loaded. We can help them understand how to avoid that. - `useNavigate() may be used only in the context of a component.` - ); - let dataRouterContext = React2.useContext(DataRouterContext); - let { basename, navigator: navigator2 } = React2.useContext(NavigationContext); - let { matches } = React2.useContext(RouteContext); - let { pathname: locationPathname } = useLocation(); - let routePathnamesJson = JSON.stringify(getResolveToMatches(matches)); - let activeRef = React2.useRef(false); - useIsomorphicLayoutEffect(() => { - activeRef.current = true; - }); - let navigate = React2.useCallback( - (to, options = {}) => { - warning(activeRef.current, navigateEffectWarning); - if (!activeRef.current) return; - if (typeof to === "number") { - navigator2.go(to); - return; - } - let path = resolveTo( - to, - JSON.parse(routePathnamesJson), - locationPathname, - options.relative === "path" - ); - if (dataRouterContext == null && basename !== "/") { - path.pathname = path.pathname === "/" ? basename : joinPaths([basename, path.pathname]); - } - (!!options.replace ? navigator2.replace : navigator2.push)( - path, - options.state, - options - ); - }, - [ - basename, - navigator2, - routePathnamesJson, - locationPathname, - dataRouterContext - ] - ); - return navigate; -} -var OutletContext = React2.createContext(null); -function useOutletContext() { - return React2.useContext(OutletContext); -} -function useOutlet(context) { - let outlet = React2.useContext(RouteContext).outlet; - if (outlet) { - return React2.createElement(OutletContext.Provider, { value: context }, outlet); - } - return outlet; -} -function useParams() { - let { matches } = React2.useContext(RouteContext); - let routeMatch = matches[matches.length - 1]; - return routeMatch ? routeMatch.params : {}; -} -function useResolvedPath(to, { relative } = {}) { - let { matches } = React2.useContext(RouteContext); - let { pathname: locationPathname } = useLocation(); - let routePathnamesJson = JSON.stringify(getResolveToMatches(matches)); - return React2.useMemo( - () => resolveTo( - to, - JSON.parse(routePathnamesJson), - locationPathname, - relative === "path" - ), - [to, routePathnamesJson, locationPathname, relative] - ); -} -function useRoutes(routes, locationArg) { - return useRoutesImpl(routes, locationArg); -} -function useRoutesImpl(routes, locationArg, dataRouterState, future) { - var _a; - invariant( - useInRouterContext(), - // TODO: This error is probably because they somehow have 2 versions of the - // router loaded. We can help them understand how to avoid that. - `useRoutes() may be used only in the context of a component.` - ); - let { navigator: navigator2, static: isStatic } = React2.useContext(NavigationContext); - let { matches: parentMatches } = React2.useContext(RouteContext); - let routeMatch = parentMatches[parentMatches.length - 1]; - let parentParams = routeMatch ? routeMatch.params : {}; - let parentPathname = routeMatch ? routeMatch.pathname : "/"; - let parentPathnameBase = routeMatch ? routeMatch.pathnameBase : "/"; - let parentRoute = routeMatch && routeMatch.route; - if (ENABLE_DEV_WARNINGS) { - let parentPath = parentRoute && parentRoute.path || ""; - warningOnce( - parentPathname, - !parentRoute || parentPath.endsWith("*") || parentPath.endsWith("*?"), - `You rendered descendant (or called \`useRoutes()\`) at "${parentPathname}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. - -Please change the parent to .` - ); - } - let locationFromContext = useLocation(); - let location; - if (locationArg) { - let parsedLocationArg = typeof locationArg === "string" ? parsePath(locationArg) : locationArg; - invariant( - parentPathnameBase === "/" || ((_a = parsedLocationArg.pathname) == null ? void 0 : _a.startsWith(parentPathnameBase)), - `When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${parentPathnameBase}" but pathname "${parsedLocationArg.pathname}" was given in the \`location\` prop.` - ); - location = parsedLocationArg; - } else { - location = locationFromContext; - } - let pathname = location.pathname || "/"; - let remainingPathname = pathname; - if (parentPathnameBase !== "/") { - let parentSegments = parentPathnameBase.replace(/^\//, "").split("/"); - let segments = pathname.replace(/^\//, "").split("/"); - remainingPathname = "/" + segments.slice(parentSegments.length).join("/"); - } - let matches = !isStatic && dataRouterState && dataRouterState.matches && dataRouterState.matches.length > 0 ? dataRouterState.matches : matchRoutes(routes, { pathname: remainingPathname }); - if (ENABLE_DEV_WARNINGS) { - warning( - parentRoute || matches != null, - `No routes matched location "${location.pathname}${location.search}${location.hash}" ` - ); - warning( - matches == null || matches[matches.length - 1].route.element !== void 0 || matches[matches.length - 1].route.Component !== void 0 || matches[matches.length - 1].route.lazy !== void 0, - `Matched leaf route at location "${location.pathname}${location.search}${location.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.` - ); - } - let renderedMatches = _renderMatches( - matches && matches.map( - (match) => Object.assign({}, match, { - params: Object.assign({}, parentParams, match.params), - pathname: joinPaths([ - parentPathnameBase, - // Re-encode pathnames that were decoded inside matchRoutes - navigator2.encodeLocation ? navigator2.encodeLocation(match.pathname).pathname : match.pathname - ]), - pathnameBase: match.pathnameBase === "/" ? parentPathnameBase : joinPaths([ - parentPathnameBase, - // Re-encode pathnames that were decoded inside matchRoutes - navigator2.encodeLocation ? navigator2.encodeLocation(match.pathnameBase).pathname : match.pathnameBase - ]) - }) - ), - parentMatches, - dataRouterState, - future - ); - if (locationArg && renderedMatches) { - return React2.createElement( - LocationContext.Provider, - { - value: { - location: { - pathname: "/", - search: "", - hash: "", - state: null, - key: "default", - ...location - }, - navigationType: "POP" - /* Pop */ - } - }, - renderedMatches - ); - } - return renderedMatches; -} -function DefaultErrorComponent() { - let error = useRouteError(); - let message = isRouteErrorResponse(error) ? `${error.status} ${error.statusText}` : error instanceof Error ? error.message : JSON.stringify(error); - let stack = error instanceof Error ? error.stack : null; - let lightgrey = "rgba(200,200,200, 0.5)"; - let preStyles = { padding: "0.5rem", backgroundColor: lightgrey }; - let codeStyles = { padding: "2px 4px", backgroundColor: lightgrey }; - let devInfo = null; - if (ENABLE_DEV_WARNINGS) { - console.error( - "Error handled by React Router default ErrorBoundary:", - error - ); - devInfo = React2.createElement(React2.Fragment, null, React2.createElement("p", null, "💿 Hey developer 👋"), React2.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", React2.createElement("code", { style: codeStyles }, "ErrorBoundary"), " or", " ", React2.createElement("code", { style: codeStyles }, "errorElement"), " prop on your route.")); - } - return React2.createElement(React2.Fragment, null, React2.createElement("h2", null, "Unexpected Application Error!"), React2.createElement("h3", { style: { fontStyle: "italic" } }, message), stack ? React2.createElement("pre", { style: preStyles }, stack) : null, devInfo); -} -var defaultErrorElement = React2.createElement(DefaultErrorComponent, null); -var RenderErrorBoundary = class extends React2.Component { - constructor(props) { - super(props); - this.state = { - location: props.location, - revalidation: props.revalidation, - error: props.error - }; - } - static getDerivedStateFromError(error) { - return { error }; - } - static getDerivedStateFromProps(props, state) { - if (state.location !== props.location || state.revalidation !== "idle" && props.revalidation === "idle") { - return { - error: props.error, - location: props.location, - revalidation: props.revalidation - }; - } - return { - error: props.error !== void 0 ? props.error : state.error, - location: state.location, - revalidation: props.revalidation || state.revalidation - }; - } - componentDidCatch(error, errorInfo) { - console.error( - "React Router caught the following error during render", - error, - errorInfo - ); - } - render() { - return this.state.error !== void 0 ? React2.createElement(RouteContext.Provider, { value: this.props.routeContext }, React2.createElement( - RouteErrorContext.Provider, - { - value: this.state.error, - children: this.props.component - } - )) : this.props.children; - } -}; -function RenderedRoute({ routeContext, match, children }) { - let dataRouterContext = React2.useContext(DataRouterContext); - if (dataRouterContext && dataRouterContext.static && dataRouterContext.staticContext && (match.route.errorElement || match.route.ErrorBoundary)) { - dataRouterContext.staticContext._deepestRenderedBoundaryId = match.route.id; - } - return React2.createElement(RouteContext.Provider, { value: routeContext }, children); -} -function _renderMatches(matches, parentMatches = [], dataRouterState = null, future = null) { - if (matches == null) { - if (!dataRouterState) { - return null; - } - if (dataRouterState.errors) { - matches = dataRouterState.matches; - } else if (parentMatches.length === 0 && !dataRouterState.initialized && dataRouterState.matches.length > 0) { - matches = dataRouterState.matches; - } else { - return null; - } - } - let renderedMatches = matches; - let errors = dataRouterState == null ? void 0 : dataRouterState.errors; - if (errors != null) { - let errorIndex = renderedMatches.findIndex( - (m) => m.route.id && (errors == null ? void 0 : errors[m.route.id]) !== void 0 - ); - invariant( - errorIndex >= 0, - `Could not find a matching route for errors on route IDs: ${Object.keys( - errors - ).join(",")}` - ); - renderedMatches = renderedMatches.slice( - 0, - Math.min(renderedMatches.length, errorIndex + 1) - ); - } - let renderFallback = false; - let fallbackIndex = -1; - if (dataRouterState) { - for (let i = 0; i < renderedMatches.length; i++) { - let match = renderedMatches[i]; - if (match.route.HydrateFallback || match.route.hydrateFallbackElement) { - fallbackIndex = i; - } - if (match.route.id) { - let { loaderData, errors: errors2 } = dataRouterState; - let needsToRunLoader = match.route.loader && !loaderData.hasOwnProperty(match.route.id) && (!errors2 || errors2[match.route.id] === void 0); - if (match.route.lazy || needsToRunLoader) { - renderFallback = true; - if (fallbackIndex >= 0) { - renderedMatches = renderedMatches.slice(0, fallbackIndex + 1); - } else { - renderedMatches = [renderedMatches[0]]; - } - break; - } - } - } - } - return renderedMatches.reduceRight((outlet, match, index) => { - let error; - let shouldRenderHydrateFallback = false; - let errorElement = null; - let hydrateFallbackElement = null; - if (dataRouterState) { - error = errors && match.route.id ? errors[match.route.id] : void 0; - errorElement = match.route.errorElement || defaultErrorElement; - if (renderFallback) { - if (fallbackIndex < 0 && index === 0) { - warningOnce( - "route-fallback", - false, - "No `HydrateFallback` element provided to render during initial hydration" - ); - shouldRenderHydrateFallback = true; - hydrateFallbackElement = null; - } else if (fallbackIndex === index) { - shouldRenderHydrateFallback = true; - hydrateFallbackElement = match.route.hydrateFallbackElement || null; - } - } - } - let matches2 = parentMatches.concat(renderedMatches.slice(0, index + 1)); - let getChildren = () => { - let children; - if (error) { - children = errorElement; - } else if (shouldRenderHydrateFallback) { - children = hydrateFallbackElement; - } else if (match.route.Component) { - children = React2.createElement(match.route.Component, null); - } else if (match.route.element) { - children = match.route.element; - } else { - children = outlet; - } - return React2.createElement( - RenderedRoute, - { - match, - routeContext: { - outlet, - matches: matches2, - isDataRoute: dataRouterState != null - }, - children - } - ); - }; - return dataRouterState && (match.route.ErrorBoundary || match.route.errorElement || index === 0) ? React2.createElement( - RenderErrorBoundary, - { - location: dataRouterState.location, - revalidation: dataRouterState.revalidation, - component: errorElement, - error, - children: getChildren(), - routeContext: { outlet: null, matches: matches2, isDataRoute: true } - } - ) : getChildren(); - }, null); -} -function getDataRouterConsoleError(hookName) { - return `${hookName} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`; -} -function useDataRouterContext(hookName) { - let ctx = React2.useContext(DataRouterContext); - invariant(ctx, getDataRouterConsoleError(hookName)); - return ctx; -} -function useDataRouterState(hookName) { - let state = React2.useContext(DataRouterStateContext); - invariant(state, getDataRouterConsoleError(hookName)); - return state; -} -function useRouteContext(hookName) { - let route = React2.useContext(RouteContext); - invariant(route, getDataRouterConsoleError(hookName)); - return route; -} -function useCurrentRouteId(hookName) { - let route = useRouteContext(hookName); - let thisRoute = route.matches[route.matches.length - 1]; - invariant( - thisRoute.route.id, - `${hookName} can only be used on routes that contain a unique "id"` - ); - return thisRoute.route.id; -} -function useRouteId() { - return useCurrentRouteId( - "useRouteId" - /* UseRouteId */ - ); -} -function useNavigation() { - let state = useDataRouterState( - "useNavigation" - /* UseNavigation */ - ); - return state.navigation; -} -function useRevalidator() { - let dataRouterContext = useDataRouterContext( - "useRevalidator" - /* UseRevalidator */ - ); - let state = useDataRouterState( - "useRevalidator" - /* UseRevalidator */ - ); - return React2.useMemo( - () => ({ - async revalidate() { - await dataRouterContext.router.revalidate(); - }, - state: state.revalidation - }), - [dataRouterContext.router, state.revalidation] - ); -} -function useMatches() { - let { matches, loaderData } = useDataRouterState( - "useMatches" - /* UseMatches */ - ); - return React2.useMemo( - () => matches.map((m) => convertRouteMatchToUiMatch(m, loaderData)), - [matches, loaderData] - ); -} -function useLoaderData() { - let state = useDataRouterState( - "useLoaderData" - /* UseLoaderData */ - ); - let routeId = useCurrentRouteId( - "useLoaderData" - /* UseLoaderData */ - ); - return state.loaderData[routeId]; -} -function useRouteLoaderData(routeId) { - let state = useDataRouterState( - "useRouteLoaderData" - /* UseRouteLoaderData */ - ); - return state.loaderData[routeId]; -} -function useActionData() { - let state = useDataRouterState( - "useActionData" - /* UseActionData */ - ); - let routeId = useCurrentRouteId( - "useLoaderData" - /* UseLoaderData */ - ); - return state.actionData ? state.actionData[routeId] : void 0; -} -function useRouteError() { - var _a; - let error = React2.useContext(RouteErrorContext); - let state = useDataRouterState( - "useRouteError" - /* UseRouteError */ - ); - let routeId = useCurrentRouteId( - "useRouteError" - /* UseRouteError */ - ); - if (error !== void 0) { - return error; - } - return (_a = state.errors) == null ? void 0 : _a[routeId]; -} -function useAsyncValue() { - let value = React2.useContext(AwaitContext); - return value == null ? void 0 : value._data; -} -function useAsyncError() { - let value = React2.useContext(AwaitContext); - return value == null ? void 0 : value._error; -} -var blockerId = 0; -function useBlocker(shouldBlock) { - let { router: router2, basename } = useDataRouterContext( - "useBlocker" - /* UseBlocker */ - ); - let state = useDataRouterState( - "useBlocker" - /* UseBlocker */ - ); - let [blockerKey, setBlockerKey] = React2.useState(""); - let blockerFunction = React2.useCallback( - (arg) => { - if (typeof shouldBlock !== "function") { - return !!shouldBlock; - } - if (basename === "/") { - return shouldBlock(arg); - } - let { currentLocation, nextLocation, historyAction } = arg; - return shouldBlock({ - currentLocation: { - ...currentLocation, - pathname: stripBasename(currentLocation.pathname, basename) || currentLocation.pathname - }, - nextLocation: { - ...nextLocation, - pathname: stripBasename(nextLocation.pathname, basename) || nextLocation.pathname - }, - historyAction - }); - }, - [basename, shouldBlock] - ); - React2.useEffect(() => { - let key = String(++blockerId); - setBlockerKey(key); - return () => router2.deleteBlocker(key); - }, [router2]); - React2.useEffect(() => { - if (blockerKey !== "") { - router2.getBlocker(blockerKey, blockerFunction); - } - }, [router2, blockerKey, blockerFunction]); - return blockerKey && state.blockers.has(blockerKey) ? state.blockers.get(blockerKey) : IDLE_BLOCKER; -} -function useNavigateStable() { - let { router: router2 } = useDataRouterContext( - "useNavigate" - /* UseNavigateStable */ - ); - let id = useCurrentRouteId( - "useNavigate" - /* UseNavigateStable */ - ); - let activeRef = React2.useRef(false); - useIsomorphicLayoutEffect(() => { - activeRef.current = true; - }); - let navigate = React2.useCallback( - async (to, options = {}) => { - warning(activeRef.current, navigateEffectWarning); - if (!activeRef.current) return; - if (typeof to === "number") { - router2.navigate(to); - } else { - await router2.navigate(to, { fromRouteId: id, ...options }); - } - }, - [router2, id] - ); - return navigate; -} -var alreadyWarned = {}; -function warningOnce(key, cond, message) { - if (!cond && !alreadyWarned[key]) { - alreadyWarned[key] = true; - warning(false, message); - } -} -var alreadyWarned2 = {}; -function warnOnce(condition, message) { - if (!condition && !alreadyWarned2[message]) { - alreadyWarned2[message] = true; - console.warn(message); - } -} -var ENABLE_DEV_WARNINGS2 = true; -function mapRouteProperties(route) { - let updates = { - // Note: this check also occurs in createRoutesFromChildren so update - // there if you change this -- please and thank you! - hasErrorBoundary: route.hasErrorBoundary || route.ErrorBoundary != null || route.errorElement != null - }; - if (route.Component) { - if (ENABLE_DEV_WARNINGS2) { - if (route.element) { - warning( - false, - "You should not include both `Component` and `element` on your route - `Component` will be used." - ); - } - } - Object.assign(updates, { - element: React3.createElement(route.Component), - Component: void 0 - }); - } - if (route.HydrateFallback) { - if (ENABLE_DEV_WARNINGS2) { - if (route.hydrateFallbackElement) { - warning( - false, - "You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used." - ); - } - } - Object.assign(updates, { - hydrateFallbackElement: React3.createElement(route.HydrateFallback), - HydrateFallback: void 0 - }); - } - if (route.ErrorBoundary) { - if (ENABLE_DEV_WARNINGS2) { - if (route.errorElement) { - warning( - false, - "You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used." - ); - } - } - Object.assign(updates, { - errorElement: React3.createElement(route.ErrorBoundary), - ErrorBoundary: void 0 - }); - } - return updates; -} -var hydrationRouteProperties = [ - "HydrateFallback", - "hydrateFallbackElement" -]; -function createMemoryRouter(routes, opts) { - return createRouter({ - basename: opts == null ? void 0 : opts.basename, - unstable_getContext: opts == null ? void 0 : opts.unstable_getContext, - future: opts == null ? void 0 : opts.future, - history: createMemoryHistory({ - initialEntries: opts == null ? void 0 : opts.initialEntries, - initialIndex: opts == null ? void 0 : opts.initialIndex - }), - hydrationData: opts == null ? void 0 : opts.hydrationData, - routes, - hydrationRouteProperties, - mapRouteProperties, - dataStrategy: opts == null ? void 0 : opts.dataStrategy, - patchRoutesOnNavigation: opts == null ? void 0 : opts.patchRoutesOnNavigation - }).initialize(); -} -var Deferred2 = class { - constructor() { - this.status = "pending"; - this.promise = new Promise((resolve, reject) => { - this.resolve = (value) => { - if (this.status === "pending") { - this.status = "resolved"; - resolve(value); - } - }; - this.reject = (reason) => { - if (this.status === "pending") { - this.status = "rejected"; - reject(reason); - } - }; - }); - } -}; -function RouterProvider({ - router: router2, - flushSync: reactDomFlushSyncImpl -}) { - let [state, setStateImpl] = React3.useState(router2.state); - let [pendingState, setPendingState] = React3.useState(); - let [vtContext, setVtContext] = React3.useState({ - isTransitioning: false - }); - let [renderDfd, setRenderDfd] = React3.useState(); - let [transition, setTransition] = React3.useState(); - let [interruption, setInterruption] = React3.useState(); - let fetcherData = React3.useRef(/* @__PURE__ */ new Map()); - let setState = React3.useCallback( - (newState, { deletedFetchers, flushSync: flushSync2, viewTransitionOpts }) => { - newState.fetchers.forEach((fetcher, key) => { - if (fetcher.data !== void 0) { - fetcherData.current.set(key, fetcher.data); - } - }); - deletedFetchers.forEach((key) => fetcherData.current.delete(key)); - warnOnce( - flushSync2 === false || reactDomFlushSyncImpl != null, - 'You provided the `flushSync` option to a router update, but you are not using the `` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.' - ); - let isViewTransitionAvailable = router2.window != null && router2.window.document != null && typeof router2.window.document.startViewTransition === "function"; - warnOnce( - viewTransitionOpts == null || isViewTransitionAvailable, - "You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available." - ); - if (!viewTransitionOpts || !isViewTransitionAvailable) { - if (reactDomFlushSyncImpl && flushSync2) { - reactDomFlushSyncImpl(() => setStateImpl(newState)); - } else { - React3.startTransition(() => setStateImpl(newState)); - } - return; - } - if (reactDomFlushSyncImpl && flushSync2) { - reactDomFlushSyncImpl(() => { - if (transition) { - renderDfd && renderDfd.resolve(); - transition.skipTransition(); - } - setVtContext({ - isTransitioning: true, - flushSync: true, - currentLocation: viewTransitionOpts.currentLocation, - nextLocation: viewTransitionOpts.nextLocation - }); - }); - let t = router2.window.document.startViewTransition(() => { - reactDomFlushSyncImpl(() => setStateImpl(newState)); - }); - t.finished.finally(() => { - reactDomFlushSyncImpl(() => { - setRenderDfd(void 0); - setTransition(void 0); - setPendingState(void 0); - setVtContext({ isTransitioning: false }); - }); - }); - reactDomFlushSyncImpl(() => setTransition(t)); - return; - } - if (transition) { - renderDfd && renderDfd.resolve(); - transition.skipTransition(); - setInterruption({ - state: newState, - currentLocation: viewTransitionOpts.currentLocation, - nextLocation: viewTransitionOpts.nextLocation - }); - } else { - setPendingState(newState); - setVtContext({ - isTransitioning: true, - flushSync: false, - currentLocation: viewTransitionOpts.currentLocation, - nextLocation: viewTransitionOpts.nextLocation - }); - } - }, - [router2.window, reactDomFlushSyncImpl, transition, renderDfd] - ); - React3.useLayoutEffect(() => router2.subscribe(setState), [router2, setState]); - React3.useEffect(() => { - if (vtContext.isTransitioning && !vtContext.flushSync) { - setRenderDfd(new Deferred2()); - } - }, [vtContext]); - React3.useEffect(() => { - if (renderDfd && pendingState && router2.window) { - let newState = pendingState; - let renderPromise = renderDfd.promise; - let transition2 = router2.window.document.startViewTransition(async () => { - React3.startTransition(() => setStateImpl(newState)); - await renderPromise; - }); - transition2.finished.finally(() => { - setRenderDfd(void 0); - setTransition(void 0); - setPendingState(void 0); - setVtContext({ isTransitioning: false }); - }); - setTransition(transition2); - } - }, [pendingState, renderDfd, router2.window]); - React3.useEffect(() => { - if (renderDfd && pendingState && state.location.key === pendingState.location.key) { - renderDfd.resolve(); - } - }, [renderDfd, transition, state.location, pendingState]); - React3.useEffect(() => { - if (!vtContext.isTransitioning && interruption) { - setPendingState(interruption.state); - setVtContext({ - isTransitioning: true, - flushSync: false, - currentLocation: interruption.currentLocation, - nextLocation: interruption.nextLocation - }); - setInterruption(void 0); - } - }, [vtContext.isTransitioning, interruption]); - let navigator2 = React3.useMemo(() => { - return { - createHref: router2.createHref, - encodeLocation: router2.encodeLocation, - go: (n) => router2.navigate(n), - push: (to, state2, opts) => router2.navigate(to, { - state: state2, - preventScrollReset: opts == null ? void 0 : opts.preventScrollReset - }), - replace: (to, state2, opts) => router2.navigate(to, { - replace: true, - state: state2, - preventScrollReset: opts == null ? void 0 : opts.preventScrollReset - }) - }; - }, [router2]); - let basename = router2.basename || "/"; - let dataRouterContext = React3.useMemo( - () => ({ - router: router2, - navigator: navigator2, - static: false, - basename - }), - [router2, navigator2, basename] - ); - return React3.createElement(React3.Fragment, null, React3.createElement(DataRouterContext.Provider, { value: dataRouterContext }, React3.createElement(DataRouterStateContext.Provider, { value: state }, React3.createElement(FetchersContext.Provider, { value: fetcherData.current }, React3.createElement(ViewTransitionContext.Provider, { value: vtContext }, React3.createElement( - Router, - { - basename, - location: state.location, - navigationType: state.historyAction, - navigator: navigator2 - }, - React3.createElement( - MemoizedDataRoutes, - { - routes: router2.routes, - future: router2.future, - state - } - ) - ))))), null); -} -var MemoizedDataRoutes = React3.memo(DataRoutes); -function DataRoutes({ - routes, - future, - state -}) { - return useRoutesImpl(routes, void 0, state, future); -} -function MemoryRouter({ - basename, - children, - initialEntries, - initialIndex -}) { - let historyRef = React3.useRef(); - if (historyRef.current == null) { - historyRef.current = createMemoryHistory({ - initialEntries, - initialIndex, - v5Compat: true - }); - } - let history = historyRef.current; - let [state, setStateImpl] = React3.useState({ - action: history.action, - location: history.location - }); - let setState = React3.useCallback( - (newState) => { - React3.startTransition(() => setStateImpl(newState)); - }, - [setStateImpl] - ); - React3.useLayoutEffect(() => history.listen(setState), [history, setState]); - return React3.createElement( - Router, - { - basename, - children, - location: state.location, - navigationType: state.action, - navigator: history - } - ); -} -function Navigate({ - to, - replace: replace2, - state, - relative -}) { - invariant( - useInRouterContext(), - // TODO: This error is probably because they somehow have 2 versions of - // the router loaded. We can help them understand how to avoid that. - ` may be used only in the context of a component.` - ); - let { static: isStatic } = React3.useContext(NavigationContext); - warning( - !isStatic, - ` must not be used on the initial render in a . This is a no-op, but you should modify your code so the is only ever rendered in response to some user interaction or state change.` - ); - let { matches } = React3.useContext(RouteContext); - let { pathname: locationPathname } = useLocation(); - let navigate = useNavigate(); - let path = resolveTo( - to, - getResolveToMatches(matches), - locationPathname, - relative === "path" - ); - let jsonPath = JSON.stringify(path); - React3.useEffect(() => { - navigate(JSON.parse(jsonPath), { replace: replace2, state, relative }); - }, [navigate, jsonPath, relative, replace2, state]); - return null; -} -function Outlet(props) { - return useOutlet(props.context); -} -function Route(_props) { - invariant( - false, - `A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .` - ); -} -function Router({ - basename: basenameProp = "/", - children = null, - location: locationProp, - navigationType = "POP", - navigator: navigator2, - static: staticProp = false -}) { - invariant( - !useInRouterContext(), - `You cannot render a inside another . You should never have more than one in your app.` - ); - let basename = basenameProp.replace(/^\/*/, "/"); - let navigationContext = React3.useMemo( - () => ({ - basename, - navigator: navigator2, - static: staticProp, - future: {} - }), - [basename, navigator2, staticProp] - ); - if (typeof locationProp === "string") { - locationProp = parsePath(locationProp); - } - let { - pathname = "/", - search = "", - hash = "", - state = null, - key = "default" - } = locationProp; - let locationContext = React3.useMemo(() => { - let trailingPathname = stripBasename(pathname, basename); - if (trailingPathname == null) { - return null; - } - return { - location: { - pathname: trailingPathname, - search, - hash, - state, - key - }, - navigationType - }; - }, [basename, pathname, search, hash, state, key, navigationType]); - warning( - locationContext != null, - ` is not able to match the URL "${pathname}${search}${hash}" because it does not start with the basename, so the won't render anything.` - ); - if (locationContext == null) { - return null; - } - return React3.createElement(NavigationContext.Provider, { value: navigationContext }, React3.createElement(LocationContext.Provider, { children, value: locationContext })); -} -function Routes({ - children, - location -}) { - return useRoutes(createRoutesFromChildren(children), location); -} -function Await({ - children, - errorElement, - resolve -}) { - return React3.createElement(AwaitErrorBoundary, { resolve, errorElement }, React3.createElement(ResolveAwait, null, children)); -} -var AwaitErrorBoundary = class extends React3.Component { - constructor(props) { - super(props); - this.state = { error: null }; - } - static getDerivedStateFromError(error) { - return { error }; - } - componentDidCatch(error, errorInfo) { - console.error( - " caught the following error during render", - error, - errorInfo - ); - } - render() { - let { children, errorElement, resolve } = this.props; - let promise = null; - let status = 0; - if (!(resolve instanceof Promise)) { - status = 1; - promise = Promise.resolve(); - Object.defineProperty(promise, "_tracked", { get: () => true }); - Object.defineProperty(promise, "_data", { get: () => resolve }); - } else if (this.state.error) { - status = 2; - let renderError = this.state.error; - promise = Promise.reject().catch(() => { - }); - Object.defineProperty(promise, "_tracked", { get: () => true }); - Object.defineProperty(promise, "_error", { get: () => renderError }); - } else if (resolve._tracked) { - promise = resolve; - status = "_error" in promise ? 2 : "_data" in promise ? 1 : 0; - } else { - status = 0; - Object.defineProperty(resolve, "_tracked", { get: () => true }); - promise = resolve.then( - (data2) => Object.defineProperty(resolve, "_data", { get: () => data2 }), - (error) => Object.defineProperty(resolve, "_error", { get: () => error }) - ); - } - if (status === 2 && !errorElement) { - throw promise._error; - } - if (status === 2) { - return React3.createElement(AwaitContext.Provider, { value: promise, children: errorElement }); - } - if (status === 1) { - return React3.createElement(AwaitContext.Provider, { value: promise, children }); - } - throw promise; - } -}; -function ResolveAwait({ - children -}) { - let data2 = useAsyncValue(); - let toRender = typeof children === "function" ? children(data2) : children; - return React3.createElement(React3.Fragment, null, toRender); -} -function createRoutesFromChildren(children, parentPath = []) { - let routes = []; - React3.Children.forEach(children, (element, index) => { - if (!React3.isValidElement(element)) { - return; - } - let treePath = [...parentPath, index]; - if (element.type === React3.Fragment) { - routes.push.apply( - routes, - createRoutesFromChildren(element.props.children, treePath) - ); - return; - } - invariant( - element.type === Route, - `[${typeof element.type === "string" ? element.type : element.type.name}] is not a component. All component children of must be a or ` - ); - invariant( - !element.props.index || !element.props.children, - "An index route cannot have child routes." - ); - let route = { - id: element.props.id || treePath.join("-"), - caseSensitive: element.props.caseSensitive, - element: element.props.element, - Component: element.props.Component, - index: element.props.index, - path: element.props.path, - loader: element.props.loader, - action: element.props.action, - hydrateFallbackElement: element.props.hydrateFallbackElement, - HydrateFallback: element.props.HydrateFallback, - errorElement: element.props.errorElement, - ErrorBoundary: element.props.ErrorBoundary, - hasErrorBoundary: element.props.hasErrorBoundary === true || element.props.ErrorBoundary != null || element.props.errorElement != null, - shouldRevalidate: element.props.shouldRevalidate, - handle: element.props.handle, - lazy: element.props.lazy - }; - if (element.props.children) { - route.children = createRoutesFromChildren( - element.props.children, - treePath - ); - } - routes.push(route); - }); - return routes; -} -var createRoutesFromElements = createRoutesFromChildren; -function renderMatches(matches) { - return _renderMatches(matches); -} -var defaultMethod = "get"; -var defaultEncType = "application/x-www-form-urlencoded"; -function isHtmlElement(object) { - return object != null && typeof object.tagName === "string"; -} -function isButtonElement(object) { - return isHtmlElement(object) && object.tagName.toLowerCase() === "button"; -} -function isFormElement(object) { - return isHtmlElement(object) && object.tagName.toLowerCase() === "form"; -} -function isInputElement(object) { - return isHtmlElement(object) && object.tagName.toLowerCase() === "input"; -} -function isModifiedEvent(event) { - return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey); -} -function shouldProcessLinkClick(event, target) { - return event.button === 0 && // Ignore everything but left clicks - (!target || target === "_self") && // Let browser handle "target=_blank" etc. - !isModifiedEvent(event); -} -function createSearchParams(init = "") { - return new URLSearchParams( - typeof init === "string" || Array.isArray(init) || init instanceof URLSearchParams ? init : Object.keys(init).reduce((memo2, key) => { - let value = init[key]; - return memo2.concat( - Array.isArray(value) ? value.map((v) => [key, v]) : [[key, value]] - ); - }, []) - ); -} -function getSearchParamsForLocation(locationSearch, defaultSearchParams) { - let searchParams = createSearchParams(locationSearch); - if (defaultSearchParams) { - defaultSearchParams.forEach((_, key) => { - if (!searchParams.has(key)) { - defaultSearchParams.getAll(key).forEach((value) => { - searchParams.append(key, value); - }); - } - }); - } - return searchParams; -} -var _formDataSupportsSubmitter = null; -function isFormDataSubmitterSupported() { - if (_formDataSupportsSubmitter === null) { - try { - new FormData( - document.createElement("form"), - // @ts-expect-error if FormData supports the submitter parameter, this will throw - 0 - ); - _formDataSupportsSubmitter = false; - } catch (e) { - _formDataSupportsSubmitter = true; - } - } - return _formDataSupportsSubmitter; -} -var supportedFormEncTypes = /* @__PURE__ */ new Set([ - "application/x-www-form-urlencoded", - "multipart/form-data", - "text/plain" -]); -function getFormEncType(encType) { - if (encType != null && !supportedFormEncTypes.has(encType)) { - warning( - false, - `"${encType}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${defaultEncType}"` - ); - return null; - } - return encType; -} -function getFormSubmissionInfo(target, basename) { - let method; - let action; - let encType; - let formData; - let body; - if (isFormElement(target)) { - let attr = target.getAttribute("action"); - action = attr ? stripBasename(attr, basename) : null; - method = target.getAttribute("method") || defaultMethod; - encType = getFormEncType(target.getAttribute("enctype")) || defaultEncType; - formData = new FormData(target); - } else if (isButtonElement(target) || isInputElement(target) && (target.type === "submit" || target.type === "image")) { - let form = target.form; - if (form == null) { - throw new Error( - `Cannot submit a )}
- +
); }; diff --git a/src/components/CuisineFilterGrid.tsx b/src/components/CuisineFilterGrid.tsx new file mode 100644 index 00000000..7c74986c --- /dev/null +++ b/src/components/CuisineFilterGrid.tsx @@ -0,0 +1,46 @@ +import React from 'react'; +import { Category } from '../types'; + +interface CuisineFilterGridProps { + categories: Category[]; + selectedCuisines: string[]; + onCuisineSelect: (cuisineId: string) => void; +} + +const CuisineFilterGrid: React.FC = ({ + categories, + selectedCuisines, + onCuisineSelect +}) => { + return ( +
+

Vrsta kuhinje

+
+ {categories.slice(0, 8).map((category) => ( +
+ onCuisineSelect(category.id.toString())} + className="hidden cuisine-checkbox" + /> + +
+ ))} + +
+
+ ); +}; + +export default CuisineFilterGrid; \ No newline at end of file diff --git a/src/components/EmptyReservations.tsx b/src/components/EmptyReservations.tsx index c7c5aa30..0982c0a9 100644 --- a/src/components/EmptyReservations.tsx +++ b/src/components/EmptyReservations.tsx @@ -1,29 +1,29 @@ import React from 'react'; interface EmptyReservationsProps { - onFindRestaurantsClick?: () => void; + onFindRestaurantsClick: () => void; } const EmptyReservations: React.FC = ({ onFindRestaurantsClick }) => { return ( -
-
-
- calendar_today -
-

Ni rezervacij

-

- Trenutno nimate nobenih rezervacij. Raziščite restavracije in ustvarite svojo prvo rezervacijo. -

- +
+
+ event_busy
+ +

Nimate še rezervacij

+

+ Odkrijte odlične restavracije v vaši bližini in rezervirajte mizo. +

+ +
); }; diff --git a/src/components/FavoriteRestaurants.tsx b/src/components/FavoriteRestaurants.tsx new file mode 100644 index 00000000..6de28142 --- /dev/null +++ b/src/components/FavoriteRestaurants.tsx @@ -0,0 +1,106 @@ +import React from 'react'; +import { restaurants } from '../data/mockData'; + +interface FavoriteRestaurantsProps { + onRestaurantClick: (id: number) => void; + onReservationClick: (id: number) => void; +} + +const FavoriteRestaurants = ({ + onRestaurantClick, + onReservationClick +}: FavoriteRestaurantsProps) => { + // Uporabimo nekaj naključnih restavracij za demo + const favoriteRestaurants = restaurants.slice(0, 2); + + if (favoriteRestaurants.length === 0) { + return ( +
+ restaurant +

Nimate še priljubljenih restavracij

+ +
+ ); + } + + return ( +
+
+ {favoriteRestaurants.map(restaurant => ( +
+ {restaurant.imageAlt} onRestaurantClick(restaurant.id)} + loading="lazy" + /> +
+
+
onRestaurantClick(restaurant.id)}> +

{restaurant.name}

+

{restaurant.location} • {restaurant.distance}

+
+
+
+ star + {restaurant.rating} +
+ +
+
+
+ {restaurant.cuisines.map(cuisine => ( + + {cuisine} + + ))} + + schedule + {restaurant.isOpen ? 'Odprto zdaj' : 'Trenutno zaprto'} + +
+
+
+ €€ + Povprečen obrok +
+ +
+
+
+ ))} +
+
+ ); +}; + +export default FavoriteRestaurants; \ No newline at end of file diff --git a/src/components/FilterHeader.tsx b/src/components/FilterHeader.tsx new file mode 100644 index 00000000..747d940b --- /dev/null +++ b/src/components/FilterHeader.tsx @@ -0,0 +1,21 @@ +import React from 'react'; + +interface FilterHeaderProps { + onReset: () => void; +} + +const FilterHeader: React.FC = ({ onReset }) => { + return ( +
+

Filtri

+ +
+ ); +}; + +export default FilterHeader; \ No newline at end of file diff --git a/src/components/LoadMoreButton.tsx b/src/components/LoadMoreButton.tsx new file mode 100644 index 00000000..59146d53 --- /dev/null +++ b/src/components/LoadMoreButton.tsx @@ -0,0 +1,18 @@ +import React from 'react'; + +interface LoadMoreButtonProps { + onClick: () => void; +} + +const LoadMoreButton: React.FC = ({ onClick }) => { + return ( + + ); +}; + +export default LoadMoreButton; \ No newline at end of file diff --git a/src/components/LocationFilter.tsx b/src/components/LocationFilter.tsx new file mode 100644 index 00000000..392b6e30 --- /dev/null +++ b/src/components/LocationFilter.tsx @@ -0,0 +1,45 @@ +import React from 'react'; + +interface LocationFilterProps { + selectedLocation: string; + onLocationChange: (e: React.ChangeEvent) => void; + onLocationSelect: (location: string) => void; + availableLocations?: string[]; +} + +const LocationFilter: React.FC = ({ + selectedLocation, + onLocationChange, + onLocationSelect, + availableLocations = ['V bližini', 'Ljubljana Center', 'Šiška', 'Bežigrad', 'Vič'] +}) => { + return ( +
+

Lokacija

+
+ place + +
+
+ {availableLocations.map((location) => ( + + ))} +
+
+ ); +}; + +export default LocationFilter; \ No newline at end of file diff --git a/src/components/PriceRangeFilter.tsx b/src/components/PriceRangeFilter.tsx new file mode 100644 index 00000000..1a87b4d0 --- /dev/null +++ b/src/components/PriceRangeFilter.tsx @@ -0,0 +1,40 @@ +import React from 'react'; + +interface PriceRangeFilterProps { + selectedPriceRange: string[]; + onPriceSelect: (price: string) => void; +} + +const PriceRangeFilter: React.FC = ({ + selectedPriceRange, + onPriceSelect +}) => { + const priceOptions = ['€', '€€', '€€€', '€€€€']; + + return ( +
+

Cenovni razred

+
+ {priceOptions.map((price, index) => ( +
+ onPriceSelect(price)} + className="hidden price-checkbox" + /> + +
+ ))} +
+
+ ); +}; + +export default PriceRangeFilter; \ No newline at end of file diff --git a/src/components/ProfileHeader.tsx b/src/components/ProfileHeader.tsx new file mode 100644 index 00000000..dde015b0 --- /dev/null +++ b/src/components/ProfileHeader.tsx @@ -0,0 +1,66 @@ +import React from 'react'; + +interface ProfileHeaderProps { + userName: string; + userEmail: string; + userImageUrl?: string; + reservationsCount: number; + favoritesCount: number; + onEditProfileClick: () => void; +} + +const ProfileHeader = ({ + userName, + userEmail, + userImageUrl, + reservationsCount, + favoritesCount, + onEditProfileClick +}: ProfileHeaderProps) => { + return ( +
+
+
+ {userImageUrl ? ( + {`Profilna + ) : ( +
+ person +
+ )} +
+ +
+

{userName}

+

{userEmail}

+ + +
+
+ +
+
+

{reservationsCount}

+

Rezervacij

+
+ +
+

{favoritesCount}

+

Priljubljenih

+
+
+
+ ); +}; + +export default ProfileHeader; \ No newline at end of file diff --git a/src/components/ProfileNavBar.tsx b/src/components/ProfileNavBar.tsx new file mode 100644 index 00000000..e691afc4 --- /dev/null +++ b/src/components/ProfileNavBar.tsx @@ -0,0 +1,39 @@ +import React from 'react'; + +interface ProfileNavBarProps { + onSettingsClick: () => void; + onHelpClick: () => void; +} + +const ProfileNavBar = ({ + onSettingsClick, + onHelpClick +}: ProfileNavBarProps) => { + return ( + + ); +}; + +export default ProfileNavBar; \ No newline at end of file diff --git a/src/components/ProfileTabs.tsx b/src/components/ProfileTabs.tsx new file mode 100644 index 00000000..a7dc5cf5 --- /dev/null +++ b/src/components/ProfileTabs.tsx @@ -0,0 +1,44 @@ +import React from 'react'; + +interface ProfileTabsProps { + activeTab: 'favorites' | 'reservations' | 'reviews'; + onTabChange: (tab: 'favorites' | 'reservations' | 'reviews') => void; +} + +const ProfileTabs = ({ + activeTab, + onTabChange +}: ProfileTabsProps) => { + return ( +
+
+ + + +
+
+ ); +}; + +export default ProfileTabs; \ No newline at end of file diff --git a/src/components/RatingSlider.tsx b/src/components/RatingSlider.tsx new file mode 100644 index 00000000..600cc2ca --- /dev/null +++ b/src/components/RatingSlider.tsx @@ -0,0 +1,32 @@ +import React from 'react'; + +interface RatingSliderProps { + rating: number; + onRatingChange: (e: React.ChangeEvent) => void; +} + +const RatingSlider: React.FC = ({ rating, onRatingChange }) => { + return ( +
+

Ocena

+
+ + {rating > 0 ? `${rating.toFixed(1)}+` : 'Vse'} +
+
+ Vse ocene + 5.0 +
+
+ ); +}; + +export default RatingSlider; \ No newline at end of file diff --git a/src/components/ReservationsList.tsx b/src/components/ReservationsList.tsx index a3bac582..74f9af31 100644 --- a/src/components/ReservationsList.tsx +++ b/src/components/ReservationsList.tsx @@ -1,5 +1,6 @@ import React from 'react'; -import ReservationHistoryCard, { ReservationHistoryItem } from './ReservationHistoryCard'; +import { ReservationHistoryItem } from './ReservationHistoryCard'; +import ReservationHistoryCard from './ReservationHistoryCard'; interface ReservationsGroup { title: string; @@ -25,34 +26,54 @@ const ReservationsList: React.FC = ({ onLoadMoreClick, hasMoreItems = false }) => { + // Preveri, če so sploh kakšne rezervacije + const hasReservations = groups.some(group => group.items.length > 0); + + if (!hasReservations) { + return ( +
+
+ event_busy +
+

+ {isPastList ? 'Nimate preteklih rezervacij' : 'Nimate prihajajočih rezervacij'} +

+

+ {isPastList + ? 'Ko boste obiskali restavracije, se bodo pojavile tukaj.' + : 'Ko rezervirate mizo, se bodo rezervacije pojavile tukaj.'} +

+
+ ); + } + return ( -
- {groups.map((group, index) => ( -
-

{group.title}

- - {group.items.map(reservation => ( - - ))} -
- ))} +
+ {groups.map((group, index) => + group.items.length > 0 && ( +
0 ? 'mt-6' : ''}> +

{group.title}

+ + {group.items.map(reservation => ( + + ))} +
+ ) + )} - {/* Gumb za nalaganje več (samo za pretekle rezervacije) */} {isPastList && hasMoreItems && ( -
- -
+ )}
); diff --git a/src/components/ReservationsNavBar.tsx b/src/components/ReservationsNavBar.tsx index 3d229930..e5dc5f8e 100644 --- a/src/components/ReservationsNavBar.tsx +++ b/src/components/ReservationsNavBar.tsx @@ -1,8 +1,8 @@ import React from 'react'; interface ReservationsNavBarProps { - onFilterClick?: () => void; - onHelpClick?: () => void; + onFilterClick: () => void; + onHelpClick: () => void; } const ReservationsNavBar: React.FC = ({ @@ -13,9 +13,9 @@ const ReservationsNavBar: React.FC = ({