From d8f7ae83d04019e7579d6991ec305287f2c965ee Mon Sep 17 00:00:00 2001 From: EdwardLinS <63514282+EdwardLinS@users.noreply.github.com> Date: Mon, 27 May 2024 01:50:44 -0700 Subject: [PATCH 01/18] Revert "Fix frontend deployment issue?" This reverts commit 9dc184349dad3c13b79ef7aa9eb95d58410c3a23. --- dfm-sideline-sidekick-app/package-lock.json | 54 ++++++++++----------- dfm-sideline-sidekick-app/package.json | 4 +- 2 files changed, 30 insertions(+), 28 deletions(-) diff --git a/dfm-sideline-sidekick-app/package-lock.json b/dfm-sideline-sidekick-app/package-lock.json index a5e05a6..804b1cf 100644 --- a/dfm-sideline-sidekick-app/package-lock.json +++ b/dfm-sideline-sidekick-app/package-lock.json @@ -6211,6 +6211,18 @@ "resolved": "https://registry.npmjs.org/@react-native/normalize-colors/-/normalize-colors-0.72.0.tgz", "integrity": "sha512-285lfdqSXaqKuBbbtP9qL2tDrfxdOFtIMvkKadtleRQkdOxx+uzGvFr82KHmc/sSiMtfXGp7JnFYWVh4sFl7Yw==" }, + "node_modules/@react-native/virtualized-lists": { + "version": "0.72.8", + "resolved": "https://registry.npmjs.org/@react-native/virtualized-lists/-/virtualized-lists-0.72.8.tgz", + "integrity": "sha512-J3Q4Bkuo99k7mu+jPS9gSUSgq+lLRSI/+ahXNwV92XgJ/8UgOTxu2LPwhJnBk/sQKxq7E8WkZBnBiozukQMqrw==", + "dependencies": { + "invariant": "^2.2.4", + "nullthrows": "^1.1.1" + }, + "peerDependencies": { + "react-native": "*" + } + }, "node_modules/@react-navigation/core": { "version": "6.4.10", "resolved": "https://registry.npmjs.org/@react-navigation/core/-/core-6.4.10.tgz", @@ -6244,9 +6256,9 @@ "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" }, "node_modules/@react-navigation/elements": { - "version": "1.3.30", - "resolved": "https://registry.npmjs.org/@react-navigation/elements/-/elements-1.3.30.tgz", - "integrity": "sha512-plhc8UvCZs0UkV+sI+3bisIyn78wz9O/BiWZXpounu72k/R/Sj5PuZYFJ1fi6psvriUveMCGh4LeZckAZu2qiQ==", + "version": "1.3.22", + "resolved": "https://registry.npmjs.org/@react-navigation/elements/-/elements-1.3.22.tgz", + "integrity": "sha512-HYKucs0TwQT8zMvgoZbJsY/3sZfzeP8Dk9IDv4agst3zlA7ReTx4+SROCG6VGC7JKqBCyQykHIwkSwxhapoc+Q==", "peerDependencies": { "@react-navigation/native": "^6.0.0", "react": "*", @@ -15531,18 +15543,6 @@ "node": ">=10" } }, - "node_modules/react-native/node_modules/@react-native/virtualized-lists": { - "version": "0.72.8", - "resolved": "https://registry.npmjs.org/@react-native/virtualized-lists/-/virtualized-lists-0.72.8.tgz", - "integrity": "sha512-J3Q4Bkuo99k7mu+jPS9gSUSgq+lLRSI/+ahXNwV92XgJ/8UgOTxu2LPwhJnBk/sQKxq7E8WkZBnBiozukQMqrw==", - "dependencies": { - "invariant": "^2.2.4", - "nullthrows": "^1.1.1" - }, - "peerDependencies": { - "react-native": "*" - } - }, "node_modules/react-native/node_modules/promise": { "version": "8.3.0", "resolved": "https://registry.npmjs.org/promise/-/promise-8.3.0.tgz", @@ -22226,6 +22226,15 @@ "resolved": "https://registry.npmjs.org/@react-native/normalize-colors/-/normalize-colors-0.72.0.tgz", "integrity": "sha512-285lfdqSXaqKuBbbtP9qL2tDrfxdOFtIMvkKadtleRQkdOxx+uzGvFr82KHmc/sSiMtfXGp7JnFYWVh4sFl7Yw==" }, + "@react-native/virtualized-lists": { + "version": "0.72.8", + "resolved": "https://registry.npmjs.org/@react-native/virtualized-lists/-/virtualized-lists-0.72.8.tgz", + "integrity": "sha512-J3Q4Bkuo99k7mu+jPS9gSUSgq+lLRSI/+ahXNwV92XgJ/8UgOTxu2LPwhJnBk/sQKxq7E8WkZBnBiozukQMqrw==", + "requires": { + "invariant": "^2.2.4", + "nullthrows": "^1.1.1" + } + }, "@react-navigation/core": { "version": "6.4.10", "resolved": "https://registry.npmjs.org/@react-navigation/core/-/core-6.4.10.tgz", @@ -22252,9 +22261,9 @@ } }, "@react-navigation/elements": { - "version": "1.3.30", - "resolved": "https://registry.npmjs.org/@react-navigation/elements/-/elements-1.3.30.tgz", - "integrity": "sha512-plhc8UvCZs0UkV+sI+3bisIyn78wz9O/BiWZXpounu72k/R/Sj5PuZYFJ1fi6psvriUveMCGh4LeZckAZu2qiQ==", + "version": "1.3.22", + "resolved": "https://registry.npmjs.org/@react-navigation/elements/-/elements-1.3.22.tgz", + "integrity": "sha512-HYKucs0TwQT8zMvgoZbJsY/3sZfzeP8Dk9IDv4agst3zlA7ReTx4+SROCG6VGC7JKqBCyQykHIwkSwxhapoc+Q==", "requires": {} }, "@react-navigation/native": { @@ -29017,15 +29026,6 @@ "yargs": "^17.6.2" }, "dependencies": { - "@react-native/virtualized-lists": { - "version": "0.72.8", - "resolved": "https://registry.npmjs.org/@react-native/virtualized-lists/-/virtualized-lists-0.72.8.tgz", - "integrity": "sha512-J3Q4Bkuo99k7mu+jPS9gSUSgq+lLRSI/+ahXNwV92XgJ/8UgOTxu2LPwhJnBk/sQKxq7E8WkZBnBiozukQMqrw==", - "requires": { - "invariant": "^2.2.4", - "nullthrows": "^1.1.1" - } - }, "promise": { "version": "8.3.0", "resolved": "https://registry.npmjs.org/promise/-/promise-8.3.0.tgz", diff --git a/dfm-sideline-sidekick-app/package.json b/dfm-sideline-sidekick-app/package.json index 987dd3a..e6ea286 100644 --- a/dfm-sideline-sidekick-app/package.json +++ b/dfm-sideline-sidekick-app/package.json @@ -45,7 +45,9 @@ "react-navigation": "^5.0.0", "react-router-dom": "^6.22.0", "react-router-native": "^6.22.1", - "typescript": "^5.1.3" + "typescript": "^5.1.3", + "react-native-web": "~0.19.6", + "@expo/webpack-config": "^19.0.0" }, "devDependencies": { "@babel/core": "^7.20.0", From 674da3eacf84902fb2d1b6611b81597c7d30f55f Mon Sep 17 00:00:00 2001 From: LillianHo5 Date: Tue, 28 May 2024 00:46:29 -0700 Subject: [PATCH 02/18] Update version number when page or category is added/deleted --- .../src/app/api/Categories.ts | 33 +++++++++++++++++++ admin-portal-frontend/src/app/api/Version.ts | 15 +++++++++ backend/controllers/versionController.js | 2 ++ 3 files changed, 50 insertions(+) create mode 100644 admin-portal-frontend/src/app/api/Version.ts diff --git a/admin-portal-frontend/src/app/api/Categories.ts b/admin-portal-frontend/src/app/api/Categories.ts index 837706c..9d6ca14 100644 --- a/admin-portal-frontend/src/app/api/Categories.ts +++ b/admin-portal-frontend/src/app/api/Categories.ts @@ -1,3 +1,5 @@ +import { updateVersion } from "./Version"; + export type Category = { _id: string; title: string; @@ -44,6 +46,8 @@ export const deleteCategory = async (itemId: string) => { await fetch(url, { method: "DELETE", }); + + await updateVersion(); } catch (error) { console.log("Error delete category", error); } @@ -65,6 +69,35 @@ export const deletePage = async (itemId: string, title: string) => { await fetch(url, { method: "PUT", }); + + await updateVersion(); + } catch (error) { + console.log("Error deleting page", error); + } +}; + +// Add a page (title) to a category +export const addPage = async (itemId: string, title: string) => { + try { + if (!process.env.API_URL) { + throw new Error("API URL is not defined"); + } + + const url = `${process.env.API_URL}/categories/${itemId}`; + + if (!url) { + throw new Error("API URL is not defined"); + } + + await fetch(url, { + method: "PUT", + headers: { + "Content-Type": "application/json", + }, + body: JSON.stringify({ title }), + }); + + await updateVersion(); } catch (error) { console.log("Error deleting page", error); } diff --git a/admin-portal-frontend/src/app/api/Version.ts b/admin-portal-frontend/src/app/api/Version.ts new file mode 100644 index 0000000..ecc8c53 --- /dev/null +++ b/admin-portal-frontend/src/app/api/Version.ts @@ -0,0 +1,15 @@ +export const updateVersion = async (): Promise => { + try { + if (!process.env.API_URL) { + throw new Error("API URL is not defined"); + } + + const url = `${process.env.API_URL}/version`; + + await fetch(url, { + method: "PUT", + }); + } catch (error) { + console.log("Error updating version", error); + } +}; diff --git a/backend/controllers/versionController.js b/backend/controllers/versionController.js index 5e54e5c..137fb0c 100644 --- a/backend/controllers/versionController.js +++ b/backend/controllers/versionController.js @@ -24,6 +24,8 @@ export const updatedVersion = async (req, res) => { res.status(404).json({ message: "Version not found" }); } + console.log("Updated Version: ", updatedVersion); + // Respond with the updated version data res.status(200).json(updatedVersion); } catch (error) { From 33e27f341c05b9a19ff8fab9d679ba7900fdfdc0 Mon Sep 17 00:00:00 2001 From: EdwardLinS <63514282+EdwardLinS@users.noreply.github.com> Date: Mon, 3 Jun 2024 21:23:13 -0700 Subject: [PATCH 03/18] Add link general principle page to home page --- .../src/app/components/CategoryContainer.tsx | 1 - admin-portal-frontend/src/app/components/VerticalNavBar.tsx | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/admin-portal-frontend/src/app/components/CategoryContainer.tsx b/admin-portal-frontend/src/app/components/CategoryContainer.tsx index 097d8f7..8e8ab2e 100644 --- a/admin-portal-frontend/src/app/components/CategoryContainer.tsx +++ b/admin-portal-frontend/src/app/components/CategoryContainer.tsx @@ -110,7 +110,6 @@ export const CategoryContainer: React.FC<{ {categories - // gets only either emergency or general principle .filter((category) => category.type === type) .map((category: Category) => { return ( diff --git a/admin-portal-frontend/src/app/components/VerticalNavBar.tsx b/admin-portal-frontend/src/app/components/VerticalNavBar.tsx index 1af841d..7e6a741 100644 --- a/admin-portal-frontend/src/app/components/VerticalNavBar.tsx +++ b/admin-portal-frontend/src/app/components/VerticalNavBar.tsx @@ -10,6 +10,8 @@ import HomeComponent from "./HomeComponent"; import SearchComponent from "./SearchComponent"; import styles from "./VerticalNavBarStyles"; +import Link from "next/link"; + const VerticalNavBar: React.FC = () => { type CustomAccordionProps = { children: ReactNode; @@ -67,7 +69,7 @@ const VerticalNavBar: React.FC = () => { {/* {'General */} - General Principles + General Principles From f3fcd13c3761e6c7badd14da8469d8b975567af8 Mon Sep 17 00:00:00 2001 From: EdwardLinS <63514282+EdwardLinS@users.noreply.github.com> Date: Mon, 3 Jun 2024 22:25:45 -0700 Subject: [PATCH 04/18] Add navbar and page layout to allow general principle page to have them --- .../src/app/components/VerticalNavBar.tsx | 2 - .../src/app/general-principles/page.tsx | 75 ++++++++++--------- admin-portal-frontend/src/app/page.tsx | 15 +++- admin-portal-frontend/src/app/pageStyles.tsx | 4 +- 4 files changed, 53 insertions(+), 43 deletions(-) diff --git a/admin-portal-frontend/src/app/components/VerticalNavBar.tsx b/admin-portal-frontend/src/app/components/VerticalNavBar.tsx index 7e6a741..edc6bc5 100644 --- a/admin-portal-frontend/src/app/components/VerticalNavBar.tsx +++ b/admin-portal-frontend/src/app/components/VerticalNavBar.tsx @@ -10,8 +10,6 @@ import HomeComponent from "./HomeComponent"; import SearchComponent from "./SearchComponent"; import styles from "./VerticalNavBarStyles"; -import Link from "next/link"; - const VerticalNavBar: React.FC = () => { type CustomAccordionProps = { children: ReactNode; diff --git a/admin-portal-frontend/src/app/general-principles/page.tsx b/admin-portal-frontend/src/app/general-principles/page.tsx index e86731e..50eaca6 100644 --- a/admin-portal-frontend/src/app/general-principles/page.tsx +++ b/admin-portal-frontend/src/app/general-principles/page.tsx @@ -5,6 +5,7 @@ import { useEffect, useState } from "react"; import { CategoryContainer } from "../components/CategoryContainer"; import Toast from "../components/Toast"; import { deleteCategory, getAllCategories } from "../api/Categories"; +import AnotherPage from "../page"; export default function CategoriesPage() { const [categories, setCategories] = useState([]); @@ -38,44 +39,48 @@ export default function CategoriesPage() { }; return ( -
-
-

General Principles

-
- -
-
-
-
-

All Categories

-
- - + +
+
+

General Principles

+
+
- - {showToast && ( - +
+

All Categories

+
+ + +
+
+ - )} + {showToast && ( + + )} +
-
+ ); } diff --git a/admin-portal-frontend/src/app/page.tsx b/admin-portal-frontend/src/app/page.tsx index 6494e43..8309ed3 100644 --- a/admin-portal-frontend/src/app/page.tsx +++ b/admin-portal-frontend/src/app/page.tsx @@ -4,15 +4,22 @@ import HorizontalNavBar from "./components/HorizontalNavbar"; import VerticalNavBar from "./components/VerticalNavBar"; import styles from "./pageStyles"; -const AnotherPage: React.FC = () => { +interface LayoutProps { + children: React.ReactNode; +} + +const AnotherPage: React.FC = ({ children }) => { return (
-
- -
+
+
+ +
+ {children} +
); }; diff --git a/admin-portal-frontend/src/app/pageStyles.tsx b/admin-portal-frontend/src/app/pageStyles.tsx index 3fc8506..58e8b03 100644 --- a/admin-portal-frontend/src/app/pageStyles.tsx +++ b/admin-portal-frontend/src/app/pageStyles.tsx @@ -8,10 +8,10 @@ type Styles = { const styles: Styles = { verticalNavBar: { - position: "fixed", + position: "relative", top: 0, left: 0, - width: "100%", + width: "50%", zIndex: 0, }, horizontalNavBar: { From ad4bfcc87d925fe13bd966f9c7262f77d228463c Mon Sep 17 00:00:00 2001 From: LillianHo5 Date: Tue, 4 Jun 2024 02:57:26 -0700 Subject: [PATCH 05/18] Map each category onto the vertical navbar and set up dynamic routes --- .../src/app/components/VerticalNavBar.tsx | 57 +++++++++++++++++-- .../general-principles/[category]/page.tsx | 27 +++++++++ 2 files changed, 79 insertions(+), 5 deletions(-) create mode 100644 admin-portal-frontend/src/app/general-principles/[category]/page.tsx diff --git a/admin-portal-frontend/src/app/components/VerticalNavBar.tsx b/admin-portal-frontend/src/app/components/VerticalNavBar.tsx index edc6bc5..da446e9 100644 --- a/admin-portal-frontend/src/app/components/VerticalNavBar.tsx +++ b/admin-portal-frontend/src/app/components/VerticalNavBar.tsx @@ -1,16 +1,33 @@ "use client"; -import React, { ReactNode } from "react"; +import React, { ReactNode, useEffect, useState } from "react"; import "bootstrap/dist/css/bootstrap.css"; import { Card } from "react-bootstrap"; import Accordion from "react-bootstrap/Accordion"; +import Link from "next/link"; import GpComponent from "./GPComponent"; import HomeComponent from "./HomeComponent"; import SearchComponent from "./SearchComponent"; +import { Category, getAllCategories } from "../api/Categories"; import styles from "./VerticalNavBarStyles"; const VerticalNavBar: React.FC = () => { + const [categories, setCategories] = useState([]); + + useEffect(() => { + const fetchData = async () => { + try { + const fetchedCategories = await getAllCategories(); + setCategories(fetchedCategories as never); + } catch (error) { + console.log("Fetch categories failed."); + } + }; + + void fetchData(); + }, [categories]); + type CustomAccordionProps = { children: ReactNode; }; @@ -67,13 +84,43 @@ const VerticalNavBar: React.FC = () => { {/* {'General */}
- General Principles + + General Principles +
    -
  • All
  • -
  • Emergency Action Plan
  • +
  • + + All + +
  • + {categories.map((category: Category) => ( +
  • + {/* Generate unique link for each category */} + + {category.title} + +
  • + ))} + {/*
  • Emergency Action Plan
  • Trauma Centers
  • Burn Centers
  • Stroke Centers
  • @@ -83,7 +130,7 @@ const VerticalNavBar: React.FC = () => {
  • Muscle Injuries
  • Ligament Injuries
  • Dislocations/Sublaxations
  • -
  • Fractures
  • +
  • Fractures
  • */}
diff --git a/admin-portal-frontend/src/app/general-principles/[category]/page.tsx b/admin-portal-frontend/src/app/general-principles/[category]/page.tsx new file mode 100644 index 0000000..591271e --- /dev/null +++ b/admin-portal-frontend/src/app/general-principles/[category]/page.tsx @@ -0,0 +1,27 @@ +import React from "react"; +import { getAllCategories } from "@/app/api/Categories"; + +export async function generateStaticParams() { + const categories = await getAllCategories(); + return categories.map((category) => ({ + category: category.title, + })); +} + +interface CategoryDetailProps { + params: { + category: string; + }; +} + +const CategoryDetail: React.FC = ({ params }) => { + const { category } = params; + + return ( +
+

Category Detail: {category}

+
+ ); +}; + +export default CategoryDetail; From 49d0473e746c7fbabc97943a5a25a18ec6b9db76 Mon Sep 17 00:00:00 2001 From: anthony-pertsel <76824702+Anthonyp0329@users.noreply.github.com> Date: Thu, 29 Aug 2024 14:46:41 -0700 Subject: [PATCH 06/18] fixes --- admin-portal-frontend/next.config.mjs | 1 - .../EmergencyFlowStyles.tsx | 0 .../page.tsx} | 80 +++++++++---------- .../src/app/category/page.tsx | 21 +++++ .../src/app/components/VerticalNavBar.tsx | 8 +- .../general-principles/[category]/page.tsx | 27 ------- admin-portal-frontend/src/app/page.tsx | 4 +- 7 files changed, 68 insertions(+), 73 deletions(-) rename admin-portal-frontend/src/app/{pages => add-emergency}/EmergencyFlowStyles.tsx (100%) rename admin-portal-frontend/src/app/{pages/EmergencyFlow.tsx => add-emergency/page.tsx} (72%) create mode 100644 admin-portal-frontend/src/app/category/page.tsx delete mode 100644 admin-portal-frontend/src/app/general-principles/[category]/page.tsx diff --git a/admin-portal-frontend/next.config.mjs b/admin-portal-frontend/next.config.mjs index b26145e..2f61a7d 100644 --- a/admin-portal-frontend/next.config.mjs +++ b/admin-portal-frontend/next.config.mjs @@ -5,7 +5,6 @@ const nextConfig = { env: { API_URL: process.env.API_URL, }, - output: "export", images: { unoptimized: true, }, diff --git a/admin-portal-frontend/src/app/pages/EmergencyFlowStyles.tsx b/admin-portal-frontend/src/app/add-emergency/EmergencyFlowStyles.tsx similarity index 100% rename from admin-portal-frontend/src/app/pages/EmergencyFlowStyles.tsx rename to admin-portal-frontend/src/app/add-emergency/EmergencyFlowStyles.tsx diff --git a/admin-portal-frontend/src/app/pages/EmergencyFlow.tsx b/admin-portal-frontend/src/app/add-emergency/page.tsx similarity index 72% rename from admin-portal-frontend/src/app/pages/EmergencyFlow.tsx rename to admin-portal-frontend/src/app/add-emergency/page.tsx index b52b8a4..db0ebab 100644 --- a/admin-portal-frontend/src/app/pages/EmergencyFlow.tsx +++ b/admin-portal-frontend/src/app/add-emergency/page.tsx @@ -1,11 +1,9 @@ "use client"; -// import searchIcon from "../icons/ic_search_grey.png"; -// import Image from "next/image"; -import { useRouter } from "next/navigation"; import React from "react"; import { CreateEmergencyRequest, createEmergency } from "../../../emergencies"; +import AnotherPage from "../page"; import styles from "./EmergencyFlowStyles"; @@ -58,7 +56,6 @@ const EmergencyFlow: React.FC = () => { const [acuteManagement, setAcuteManagement] = React.useState(""); const [dispo, setDispo] = React.useState(""); const [considerations, setConsiderations] = React.useState(""); - const router = useRouter(); const handlePublish = () => { //make an object of type CreateEmergencyRequest @@ -120,7 +117,6 @@ const EmergencyFlow: React.FC = () => { setDispo(""); setConsiderations(""); //redirect to homepage/main page - router.push("/"); } else { // You should always clearly inform the user when something goes wrong. // In this case, we're just doing an `alert()` for brevity, but you'd @@ -142,54 +138,56 @@ const EmergencyFlow: React.FC = () => { }; return ( -
-
-

Global Search > Medical > Add an injury

-

Injury details

- + + +
+

Global Search > Medical > Add an injury

+

Injury details

+ - + -

Overview

+

Overview

- + - + - + - + - + -

How to Treat

+

How to Treat

- + - + - -
+ +
-
- - -
-
+
+ + +
+ + ); }; diff --git a/admin-portal-frontend/src/app/category/page.tsx b/admin-portal-frontend/src/app/category/page.tsx new file mode 100644 index 0000000..49e28ea --- /dev/null +++ b/admin-portal-frontend/src/app/category/page.tsx @@ -0,0 +1,21 @@ +"use client"; + +import { useSearchParams } from "next/navigation"; + +import { Category } from "../api/Categories"; +import AnotherPage from "../page"; + +const CategoryDetail: React.FC = () => { + const searchParams = useSearchParams(); + const categoryString = searchParams.get("category"); + const category = categoryString ? (JSON.parse(categoryString) as Category) : null; + return ( + +
+

Category Detail: {category.title}

+
+
+ ); +}; + +export default CategoryDetail; diff --git a/admin-portal-frontend/src/app/components/VerticalNavBar.tsx b/admin-portal-frontend/src/app/components/VerticalNavBar.tsx index da446e9..3291060 100644 --- a/admin-portal-frontend/src/app/components/VerticalNavBar.tsx +++ b/admin-portal-frontend/src/app/components/VerticalNavBar.tsx @@ -6,10 +6,11 @@ import { Card } from "react-bootstrap"; import Accordion from "react-bootstrap/Accordion"; import Link from "next/link"; +import { Category, getAllCategories } from "../api/Categories"; + import GpComponent from "./GPComponent"; import HomeComponent from "./HomeComponent"; import SearchComponent from "./SearchComponent"; -import { Category, getAllCategories } from "../api/Categories"; import styles from "./VerticalNavBarStyles"; const VerticalNavBar: React.FC = () => { @@ -110,7 +111,10 @@ const VerticalNavBar: React.FC = () => {
  • {/* Generate unique link for each category */} ({ - category: category.title, - })); -} - -interface CategoryDetailProps { - params: { - category: string; - }; -} - -const CategoryDetail: React.FC = ({ params }) => { - const { category } = params; - - return ( -
    -

    Category Detail: {category}

    -
    - ); -}; - -export default CategoryDetail; diff --git a/admin-portal-frontend/src/app/page.tsx b/admin-portal-frontend/src/app/page.tsx index 8309ed3..d2b467a 100644 --- a/admin-portal-frontend/src/app/page.tsx +++ b/admin-portal-frontend/src/app/page.tsx @@ -4,9 +4,9 @@ import HorizontalNavBar from "./components/HorizontalNavbar"; import VerticalNavBar from "./components/VerticalNavBar"; import styles from "./pageStyles"; -interface LayoutProps { +type LayoutProps = { children: React.ReactNode; -} +}; const AnotherPage: React.FC = ({ children }) => { return ( From 21e64035714cf8d1d3418ea755a574fa582c5807 Mon Sep 17 00:00:00 2001 From: anthony-pertsel <76824702+Anthonyp0329@users.noreply.github.com> Date: Thu, 29 Aug 2024 14:51:44 -0700 Subject: [PATCH 07/18] Update lint-check.yml --- .github/workflows/lint-check.yml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/.github/workflows/lint-check.yml b/.github/workflows/lint-check.yml index cc2ed80..3d43592 100644 --- a/.github/workflows/lint-check.yml +++ b/.github/workflows/lint-check.yml @@ -16,16 +16,6 @@ jobs: run: | npm ci npm run lint-check - frontend: - name: Frontend lint and style check - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - - working-directory: dfm-sideline-sidekick-app # Change this to the name of your frontend directory - run: | - npm ci - npm run lint-check admin-portal-frontend: name: Admin portal frontend lint and style check runs-on: ubuntu-latest From d272a076e55ce54b85f59a5f857dcced288ae3f4 Mon Sep 17 00:00:00 2001 From: anthony-pertsel <76824702+Anthonyp0329@users.noreply.github.com> Date: Thu, 29 Aug 2024 15:20:58 -0700 Subject: [PATCH 08/18] fixes --- .../src/app/add-emergency/page.tsx | 75 +++++++++---------- .../src/app/category/page.tsx | 9 +-- .../src/app/components/VerticalNavBar.tsx | 2 - .../app/components/VerticalNavBarStyles.tsx | 2 +- .../src/app/general-principles/page.tsx | 75 +++++++++---------- admin-portal-frontend/src/app/layout.tsx | 27 +++++-- admin-portal-frontend/src/app/page.tsx | 22 +----- admin-portal-frontend/src/app/pageStyles.tsx | 1 - 8 files changed, 98 insertions(+), 115 deletions(-) diff --git a/admin-portal-frontend/src/app/add-emergency/page.tsx b/admin-portal-frontend/src/app/add-emergency/page.tsx index db0ebab..4ba563e 100644 --- a/admin-portal-frontend/src/app/add-emergency/page.tsx +++ b/admin-portal-frontend/src/app/add-emergency/page.tsx @@ -3,7 +3,6 @@ import React from "react"; import { CreateEmergencyRequest, createEmergency } from "../../../emergencies"; -import AnotherPage from "../page"; import styles from "./EmergencyFlowStyles"; @@ -138,56 +137,54 @@ const EmergencyFlow: React.FC = () => { }; return ( - -
    -
    -

    Global Search > Medical > Add an injury

    -

    Injury details

    - + +
    +

    Global Search > Medical > Add an injury

    +

    Injury details

    + - + -

    Overview

    +

    Overview

    - + - + - + - + - + -

    How to Treat

    +

    How to Treat

    - + - + - -
    + +
    -
    - - -
    -
    -
    +
    + + +
    + ); }; diff --git a/admin-portal-frontend/src/app/category/page.tsx b/admin-portal-frontend/src/app/category/page.tsx index 49e28ea..0128124 100644 --- a/admin-portal-frontend/src/app/category/page.tsx +++ b/admin-portal-frontend/src/app/category/page.tsx @@ -3,18 +3,15 @@ import { useSearchParams } from "next/navigation"; import { Category } from "../api/Categories"; -import AnotherPage from "../page"; const CategoryDetail: React.FC = () => { const searchParams = useSearchParams(); const categoryString = searchParams.get("category"); const category = categoryString ? (JSON.parse(categoryString) as Category) : null; return ( - -
    -

    Category Detail: {category.title}

    -
    -
    +
    +

    Category Detail: {category.title}

    +
    ); }; diff --git a/admin-portal-frontend/src/app/components/VerticalNavBar.tsx b/admin-portal-frontend/src/app/components/VerticalNavBar.tsx index 3291060..83cffe8 100644 --- a/admin-portal-frontend/src/app/components/VerticalNavBar.tsx +++ b/admin-portal-frontend/src/app/components/VerticalNavBar.tsx @@ -42,8 +42,6 @@ const VerticalNavBar: React.FC = () => { return (
  • - {categories.map((category: Category) => ( + {principles.map((category: Category) => (
  • {/* Generate unique link for each category */} { + setPopupVisible(true); + }; + + const handleConfirmAdd = async (name: string) => { + try { + setPopupVisible(false); + console.log("adding " + name); + await addCategory(name, "Emergency"); + setToastText("Category added succesfully"); + setShowToast(true); + } catch (error) { + console.error("Error deleting category:", error); + } + }; + + const handleCancelAdd = () => { + setPopupVisible(false); + }; useEffect(() => { const fetchData = async () => { @@ -55,7 +78,14 @@ export default function CategoriesPage() {

    All Categories

    - +
    {showToast && ( )} + {popupVisible && ( + { + void handleConfirmAdd(name); + }} + onCancel={handleCancelAdd} + type={"General Principles"} + /> + )} ); } diff --git a/admin-portal-frontend/src/app/general-principles/page.tsx b/admin-portal-frontend/src/app/general-principles/page.tsx index 66ed552..9db908c 100644 --- a/admin-portal-frontend/src/app/general-principles/page.tsx +++ b/admin-portal-frontend/src/app/general-principles/page.tsx @@ -2,13 +2,36 @@ import { useEffect, useState } from "react"; -import { deleteCategory, getAllCategories } from "../api/Categories"; +import { addCategory, deleteCategory, getAllCategories } from "../api/Categories"; import { CategoryContainer } from "../components/CategoryContainer"; +import CategoryAddPopup from "../components/CategoryPopup"; import Toast from "../components/Toast"; export default function CategoriesPage() { const [categories, setCategories] = useState([]); const [showToast, setShowToast] = useState(false); + const [popupVisible, setPopupVisible] = useState(false); + const [toastText, setToastText] = useState(""); + + const handleAdd = () => { + setPopupVisible(true); + }; + + const handleConfirmAdd = async (name: string) => { + try { + setPopupVisible(false); + console.log("adding " + name); + await addCategory(name, "General Principle"); + setToastText("Category added succesfully"); + setShowToast(true); + } catch (error) { + console.error("Error deleting category:", error); + } + }; + + const handleCancelAdd = () => { + setPopupVisible(false); + }; useEffect(() => { const fetchData = async () => { @@ -27,6 +50,7 @@ export default function CategoriesPage() { try { console.log("Deleting category with ID:", categoryId); await deleteCategory(categoryId); + setToastText("Category deleted"); setShowToast(true); } catch (error) { console.error("Error deleting category:", error); @@ -60,7 +84,14 @@ export default function CategoriesPage() { - + {showToast && ( )} + {popupVisible && ( + { + void handleConfirmAdd(name); + }} + onCancel={handleCancelAdd} + type={"General Principles"} + /> + )} ); } diff --git a/dfm-sideline-sidekick-app/download/downloadFromAPI.ts b/dfm-sideline-sidekick-app/download/downloadFromAPI.ts index e33e185..61f3b72 100644 --- a/dfm-sideline-sidekick-app/download/downloadFromAPI.ts +++ b/dfm-sideline-sidekick-app/download/downloadFromAPI.ts @@ -21,6 +21,7 @@ export const downloadJSON = async (fileName: string, OS: string, fetchNew: boole // compatibility for type of device localhost = OS === "android" ? "http://10.0.2.2:3001" : "http://127.0.0.1:3001"; } + localhost = process.env.EXPO_PUBLIC_IP_ADDRESS; const url = `${localhost}/api/allWithVersion`; // all data const versionUrl = `${localhost}/api/version`; // newest version From 25d22254efabfa4d2bda1c9b7856053b3a5816dd Mon Sep 17 00:00:00 2001 From: anthony-pertsel <76824702+Anthonyp0329@users.noreply.github.com> Date: Fri, 20 Sep 2024 11:55:45 -0700 Subject: [PATCH 10/18] lint fixes --- admin-portal-frontend/src/app/api/Categories.ts | 2 +- admin-portal-frontend/src/app/category/page.tsx | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/admin-portal-frontend/src/app/api/Categories.ts b/admin-portal-frontend/src/app/api/Categories.ts index 8bfeef3..540ff46 100644 --- a/admin-portal-frontend/src/app/api/Categories.ts +++ b/admin-portal-frontend/src/app/api/Categories.ts @@ -3,7 +3,7 @@ import { updateVersion } from "./Version"; export type Category = { _id: string; title: string; - items: []; + items: Category[]; type: string; }; diff --git a/admin-portal-frontend/src/app/category/page.tsx b/admin-portal-frontend/src/app/category/page.tsx index dcd8274..c8174b8 100644 --- a/admin-portal-frontend/src/app/category/page.tsx +++ b/admin-portal-frontend/src/app/category/page.tsx @@ -32,8 +32,6 @@ export default function CategoriesPage() { setCategory((prevCategory) => { return { ...prevCategory, items: newItems }; }); - searchParams.get(); - console.log(category); } catch (error) { console.error("Error deleting category:", error); } From 1d37dad447b71d926bb95b8785de2d8b21c7ef3c Mon Sep 17 00:00:00 2001 From: anthony-pertsel <76824702+Anthonyp0329@users.noreply.github.com> Date: Fri, 20 Sep 2024 11:58:03 -0700 Subject: [PATCH 11/18] lint fixes --- admin-portal-frontend/src/app/api/Categories.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin-portal-frontend/src/app/api/Categories.ts b/admin-portal-frontend/src/app/api/Categories.ts index 540ff46..59b3966 100644 --- a/admin-portal-frontend/src/app/api/Categories.ts +++ b/admin-portal-frontend/src/app/api/Categories.ts @@ -3,7 +3,7 @@ import { updateVersion } from "./Version"; export type Category = { _id: string; title: string; - items: Category[]; + items: string[]; type: string; }; From 6801265064475afd6fe09e20daad98602e42fef2 Mon Sep 17 00:00:00 2001 From: anthony-pertsel <76824702+Anthonyp0329@users.noreply.github.com> Date: Fri, 20 Sep 2024 12:02:36 -0700 Subject: [PATCH 12/18] lint fixes --- .../src/app/category/page.tsx | 38 +++++++++++-------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/admin-portal-frontend/src/app/category/page.tsx b/admin-portal-frontend/src/app/category/page.tsx index c8174b8..9e7bb0b 100644 --- a/admin-portal-frontend/src/app/category/page.tsx +++ b/admin-portal-frontend/src/app/category/page.tsx @@ -1,7 +1,7 @@ "use client"; import { useSearchParams } from "next/navigation"; -import { useEffect, useState } from "react"; +import { Suspense, useEffect, useState } from "react"; import { Category, deletePage } from "../api/Categories"; import PageContainer from "../components/PageContainer"; @@ -42,24 +42,30 @@ export default function CategoriesPage() { }; return ( -
    -
    -

    {category ? category.title : "ooga"}

    -
    + Loading...
    }> +
    +
    +

    {category ? category.title : "ooga"}

    +
    -
    -
    -

    All Pages

    -
    - - +
    +
    +

    All Pages

    +
    + + +
    + + {showToast && ( + + )}
    - - {showToast && ( - - )}
    -
    + ); } From 49f72e93d9b996a770ff9b976490e265d388ca9c Mon Sep 17 00:00:00 2001 From: anthony-pertsel <76824702+Anthonyp0329@users.noreply.github.com> Date: Fri, 20 Sep 2024 12:07:06 -0700 Subject: [PATCH 13/18] lint fixes --- .../src/app/category/page.tsx | 44 ++++++++++--------- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/admin-portal-frontend/src/app/category/page.tsx b/admin-portal-frontend/src/app/category/page.tsx index 9e7bb0b..9f29bd7 100644 --- a/admin-portal-frontend/src/app/category/page.tsx +++ b/admin-portal-frontend/src/app/category/page.tsx @@ -7,7 +7,7 @@ import { Category, deletePage } from "../api/Categories"; import PageContainer from "../components/PageContainer"; import Toast from "../components/Toast"; -export default function CategoriesPage() { +function CategoryInfo() { const searchParams = useSearchParams(); const categoryString = searchParams.get("category"); const [category, setCategory] = useState( @@ -42,30 +42,32 @@ export default function CategoriesPage() { }; return ( - Loading...
    }> -
    -
    -

    {category ? category.title : "ooga"}

    -
    +
    +
    +

    {category ? category.title : "ooga"}

    +
    -
    -
    -

    All Pages

    -
    - - -
    +
    +
    +

    All Pages

    +
    + +
    - - {showToast && ( - - )}
    + + {showToast && ( + + )}
    +
    + ); +} + +export default function CategoriesPage() { + return ( + + ); } From 18ac300aacd212af5cafa374356a76a7a13b3277 Mon Sep 17 00:00:00 2001 From: anthony-pertsel <76824702+Anthonyp0329@users.noreply.github.com> Date: Fri, 20 Sep 2024 12:16:03 -0700 Subject: [PATCH 14/18] firebase fix --- firebase.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firebase.json b/firebase.json index 4a09040..4b8d1e2 100644 --- a/firebase.json +++ b/firebase.json @@ -1,6 +1,6 @@ { "hosting": { - "public": "admin-portal-frontend/out", + "public": "admin-portal-frontend/.next", "ignore": [ "firebase.json", "**/.*", From 72cdd8b1f724de8653d8ba196cbf1753bd22b92a Mon Sep 17 00:00:00 2001 From: anthony-pertsel <76824702+Anthonyp0329@users.noreply.github.com> Date: Fri, 20 Sep 2024 12:23:50 -0700 Subject: [PATCH 15/18] firebase fix --- firebase.json | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/firebase.json b/firebase.json index 4b8d1e2..4261ee9 100644 --- a/firebase.json +++ b/firebase.json @@ -1,6 +1,6 @@ { "hosting": { - "public": "admin-portal-frontend/.next", + "public": "admin-portal-frontend/public", "ignore": [ "firebase.json", "**/.*", @@ -24,7 +24,7 @@ }, { "source": "**", - "destination": "/index.html" + "function": "nextApp" } ] }, @@ -40,6 +40,18 @@ "**/.*", "**/node_modules/**" ] - } + }, + { + "runtime": "nodejs18", + "source": "admin-portal-frontend", + "codebase": "nextApp", + "ignore": [ + ".git", + "firebase-debug.log", + "firebase-debug.*.log", + "**/.*", + "**/node_modules/**" + ] + } ] } From bceec7cb839d87b21d7fb0b68eb25d55226569f6 Mon Sep 17 00:00:00 2001 From: anthony-pertsel <76824702+Anthonyp0329@users.noreply.github.com> Date: Fri, 20 Sep 2024 12:26:53 -0700 Subject: [PATCH 16/18] firebase fix --- firebase.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firebase.json b/firebase.json index 4261ee9..ce2917c 100644 --- a/firebase.json +++ b/firebase.json @@ -24,7 +24,7 @@ }, { "source": "**", - "function": "nextApp" + "function": "nextapp" } ] }, @@ -44,7 +44,7 @@ { "runtime": "nodejs18", "source": "admin-portal-frontend", - "codebase": "nextApp", + "codebase": "nextapp", "ignore": [ ".git", "firebase-debug.log", From 755d1d4dab48d0c0980b098448b6d8549dac7d8a Mon Sep 17 00:00:00 2001 From: anthony-pertsel <76824702+Anthonyp0329@users.noreply.github.com> Date: Fri, 20 Sep 2024 12:38:14 -0700 Subject: [PATCH 17/18] firebase fixes --- ...ZGVsaW5lLXNpZGVraWNrLWFwcC9ob3N0aW5n.cache | 38 +++++++ .../sideline-sidekick-app/hosting/404.html | 1 + .../Hz-X1inGOaTfqBx4LBWW7/_buildManifest.js | 1 + .../Hz-X1inGOaTfqBx4LBWW7/_ssgManifest.js | 1 + .../static/chunks/69-af7cf13af40d6e6c.js | 1 + .../static/chunks/792-902da107aca53308.js | 1 + .../static/chunks/946-01042e4cef7cc714.js | 5 + .../chunks/app/_not-found-e52777ccb4367eb8.js | 1 + .../add-emergency/page-d7e624cc6a72fb94.js | 1 + .../app/category/page-db455e8b6adb6591.js | 1 + .../app/emergencies/page-439d92afe6a886ef.js | 1 + .../page-bcc407449c6a20af.js | 1 + .../chunks/app/layout-49b34e0f208a6007.js | 1 + .../chunks/app/page-9a523ca6079a7572.js | 1 + .../chunks/fd9d1056-7a5e3c090ec0a26d.js | 1 + .../chunks/framework-aec844d2ccbe7592.js | 33 ++++++ .../static/chunks/main-810b87576c0944b8.js | 1 + .../chunks/main-app-b5fddc77f478d98f.js | 1 + .../chunks/pages/_app-75f6107b0260711c.js | 1 + .../chunks/pages/_error-9a890acb1e81c3fc.js | 1 + .../chunks/polyfills-c67a75d1b6f99dc8.js | 1 + .../static/chunks/webpack-7e3f2ad150fa2a97.js | 1 + .../_next/static/css/acb4b09a0c60d8b1.css | 3 + .../_next/static/css/b636ef83e26cc8f6.css | 6 ++ .../_next/static/media/check.5890c2a1.svg | 3 + .../_next/static/media/close.642143c0.svg | 3 + .../_next/static/media/edit.7e8a8f57.svg | 3 + .../static/media/ic_search_grey.88f7e0b1.png | Bin 0 -> 388 bytes .../_next/static/media/trash.95cd703e.svg | 3 + .../hosting/add-emergency.html | 1 + .../hosting/category.html | 1 + .../hosting/citations.html | 41 +++++++ .../hosting/emergencies.html | 1 + .../sideline-sidekick-app/hosting/favicon.ico | Bin 0 -> 25931 bytes .../hosting/general-principles.html | 1 + .../sideline-sidekick-app/hosting/index.html | 1 + .../sideline-sidekick-app/hosting/next.svg | 1 + .../hosting/privacypolicy.html | 102 ++++++++++++++++++ .../sideline-sidekick-app/hosting/vercel.svg | 1 + firebase.json | 39 ++----- 40 files changed, 275 insertions(+), 30 deletions(-) create mode 100644 .firebase/hosting.LmZpcmViYXNlL3NpZGVsaW5lLXNpZGVraWNrLWFwcC9ob3N0aW5n.cache create mode 100644 .firebase/sideline-sidekick-app/hosting/404.html create mode 100644 .firebase/sideline-sidekick-app/hosting/_next/static/Hz-X1inGOaTfqBx4LBWW7/_buildManifest.js create mode 100644 .firebase/sideline-sidekick-app/hosting/_next/static/Hz-X1inGOaTfqBx4LBWW7/_ssgManifest.js create mode 100644 .firebase/sideline-sidekick-app/hosting/_next/static/chunks/69-af7cf13af40d6e6c.js create mode 100644 .firebase/sideline-sidekick-app/hosting/_next/static/chunks/792-902da107aca53308.js create mode 100644 .firebase/sideline-sidekick-app/hosting/_next/static/chunks/946-01042e4cef7cc714.js create mode 100644 .firebase/sideline-sidekick-app/hosting/_next/static/chunks/app/_not-found-e52777ccb4367eb8.js create mode 100644 .firebase/sideline-sidekick-app/hosting/_next/static/chunks/app/add-emergency/page-d7e624cc6a72fb94.js create mode 100644 .firebase/sideline-sidekick-app/hosting/_next/static/chunks/app/category/page-db455e8b6adb6591.js create mode 100644 .firebase/sideline-sidekick-app/hosting/_next/static/chunks/app/emergencies/page-439d92afe6a886ef.js create mode 100644 .firebase/sideline-sidekick-app/hosting/_next/static/chunks/app/general-principles/page-bcc407449c6a20af.js create mode 100644 .firebase/sideline-sidekick-app/hosting/_next/static/chunks/app/layout-49b34e0f208a6007.js create mode 100644 .firebase/sideline-sidekick-app/hosting/_next/static/chunks/app/page-9a523ca6079a7572.js create mode 100644 .firebase/sideline-sidekick-app/hosting/_next/static/chunks/fd9d1056-7a5e3c090ec0a26d.js create mode 100644 .firebase/sideline-sidekick-app/hosting/_next/static/chunks/framework-aec844d2ccbe7592.js create mode 100644 .firebase/sideline-sidekick-app/hosting/_next/static/chunks/main-810b87576c0944b8.js create mode 100644 .firebase/sideline-sidekick-app/hosting/_next/static/chunks/main-app-b5fddc77f478d98f.js create mode 100644 .firebase/sideline-sidekick-app/hosting/_next/static/chunks/pages/_app-75f6107b0260711c.js create mode 100644 .firebase/sideline-sidekick-app/hosting/_next/static/chunks/pages/_error-9a890acb1e81c3fc.js create mode 100644 .firebase/sideline-sidekick-app/hosting/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js create mode 100644 .firebase/sideline-sidekick-app/hosting/_next/static/chunks/webpack-7e3f2ad150fa2a97.js create mode 100644 .firebase/sideline-sidekick-app/hosting/_next/static/css/acb4b09a0c60d8b1.css create mode 100644 .firebase/sideline-sidekick-app/hosting/_next/static/css/b636ef83e26cc8f6.css create mode 100644 .firebase/sideline-sidekick-app/hosting/_next/static/media/check.5890c2a1.svg create mode 100644 .firebase/sideline-sidekick-app/hosting/_next/static/media/close.642143c0.svg create mode 100644 .firebase/sideline-sidekick-app/hosting/_next/static/media/edit.7e8a8f57.svg create mode 100644 .firebase/sideline-sidekick-app/hosting/_next/static/media/ic_search_grey.88f7e0b1.png create mode 100644 .firebase/sideline-sidekick-app/hosting/_next/static/media/trash.95cd703e.svg create mode 100644 .firebase/sideline-sidekick-app/hosting/add-emergency.html create mode 100644 .firebase/sideline-sidekick-app/hosting/category.html create mode 100644 .firebase/sideline-sidekick-app/hosting/citations.html create mode 100644 .firebase/sideline-sidekick-app/hosting/emergencies.html create mode 100644 .firebase/sideline-sidekick-app/hosting/favicon.ico create mode 100644 .firebase/sideline-sidekick-app/hosting/general-principles.html create mode 100644 .firebase/sideline-sidekick-app/hosting/index.html create mode 100644 .firebase/sideline-sidekick-app/hosting/next.svg create mode 100644 .firebase/sideline-sidekick-app/hosting/privacypolicy.html create mode 100644 .firebase/sideline-sidekick-app/hosting/vercel.svg diff --git a/.firebase/hosting.LmZpcmViYXNlL3NpZGVsaW5lLXNpZGVraWNrLWFwcC9ob3N0aW5n.cache b/.firebase/hosting.LmZpcmViYXNlL3NpZGVsaW5lLXNpZGVraWNrLWFwcC9ob3N0aW5n.cache new file mode 100644 index 0000000..0caa6ce --- /dev/null +++ b/.firebase/hosting.LmZpcmViYXNlL3NpZGVsaW5lLXNpZGVraWNrLWFwcC9ob3N0aW5n.cache @@ -0,0 +1,38 @@ +category.html,1726860952083,126877dbef69675cf1b0596f17f8c905596acbbe0c0bf7384f2f3186002a3acc +404.html,1726860952083,b3011586d666cd48702d2ee25d3ea9a0774b9345e9598f23a8533479fae413ff +emergencies.html,1726860952083,e551458249b0aeae061b89eaffa92576ddc9cf166030aa8d2b02d855412bd991 +add-emergency.html,1726860952083,df8601f68d8aa3463c6f1a86ad67d501ed4c658968e92c12fa7911ab33e58f0c +citations.html,1726860952072,485e6f147eaddc7178080a76de7e065ef1e88216341a76d7097bafd212ab3b5d +next.svg,1726860952071,7b16665552cb47db34db342505d6d340caaf5813ca2cba1df3536ed67ea33f64 +privacypolicy.html,1726860952071,44dce2251a1bbcb504364a15a105bcc284cfdc19d30b8d261934f075268d1ecd +general-principles.html,1726860952083,925b6561e851503d329d1afbd872966c2e47c68ee5daab895ec08c4f14cfa92d +_next/static/Hz-X1inGOaTfqBx4LBWW7/_ssgManifest.js,1726860952081,02dbc1aeab6ef0a6ff2ff9a1643158cf9bb38929945eaa343a3627dee9ba6778 +vercel.svg,1726860952070,ddb9254655f2b7733e1193fb66cb4beb95c29ad752d7adbc1765026e124c88c5 +_next/static/Hz-X1inGOaTfqBx4LBWW7/_buildManifest.js,1726860952082,d54a60fcccf48ac246d9d61aba82cbda105fa82022fcf7418b1e6b68ac771cd8 +index.html,1726860952083,c5c105d3fefa98b89b0216fbc34182c7c2fac0ec8c7827f5a93bc8ed3f1e405d +_next/static/chunks/main-app-b5fddc77f478d98f.js,1726860952076,e0b54c51374cb075689b2b45eaa4066cbcf202e4c2c47beef1773231f09cd413 +_next/static/chunks/792-902da107aca53308.js,1726860952081,3b1d01208e35bd0bdcc8af8907ce811eff863f342067ed307c5e572d12401769 +_next/static/chunks/946-01042e4cef7cc714.js,1726860952080,7265a7f86fade09153a9ba2a051e5ba8502cb06fdcdd10f3ebe799b5d85901e9 +favicon.ico,1726860952083,8b9c4dce3353938d2027ab21f0489807587db05d65ef390a6947d32312e501a0 +_next/static/chunks/app/page-9a523ca6079a7572.js,1726860952078,ec8f6b9303703aef76a88aafd72a72c92ef7bcf860b433191e734db7a4d3d495 +_next/static/chunks/webpack-7e3f2ad150fa2a97.js,1726860952075,f890d3c5172d7c30fdf88fba3506ae74bce911b891a138e2719d9d8f36291924 +_next/static/chunks/app/category/page-db455e8b6adb6591.js,1726860952080,394b3ee0516b61c77ceaa845cc98ea4bd578a8dce9548b5b27fa93ef76feceb3 +_next/static/chunks/app/_not-found-e52777ccb4367eb8.js,1726860952080,3b6d23a7d18d82f826b4efc7b72106645b3cc50a82f95fd0d1a826cc87ea3605 +_next/static/chunks/pages/_error-9a890acb1e81c3fc.js,1726860952076,978dc3e19b03750b68fc245efa1eba5f5d5c859747603d94d5feeedc3f02e4d8 +_next/static/chunks/app/layout-49b34e0f208a6007.js,1726860952079,bdf2f432326d355fbf7fe9fc71807976d652e1516cb23f55b9ee590ecc1dca8a +_next/static/chunks/app/add-emergency/page-d7e624cc6a72fb94.js,1726860952080,530598e0e506bc53c703bc0a19c3a3e46cface9bc7aeacdac9fde887104ed4a0 +_next/static/chunks/pages/_app-75f6107b0260711c.js,1726860952076,1cf48636c2a79a72856bb37515898d3360980bbe701a04dcd65e6e1610de5257 +_next/static/chunks/app/emergencies/page-439d92afe6a886ef.js,1726860952079,a0b6d956953ff7b11ce3c7caf654bf0f137e114bfe4611fe356e8a75a157b6cb +_next/static/media/close.642143c0.svg,1726860952073,0cf13981dcbccbed2a3c48aa33d7042cc869f54eb41e0699d9bde76077fff7f6 +_next/static/css/acb4b09a0c60d8b1.css,1726860952074,8cc634bfe5b8535b1ad9bf24cc6e29ab92ebf843dadce9ca0fd2440dc3c456fd +_next/static/media/ic_search_grey.88f7e0b1.png,1726860952073,4454bfb2222d2c65dd9775e16a5b9477bb23718843ebbc24aa6da669cae30586 +_next/static/media/trash.95cd703e.svg,1726860952072,b34cea4c45b96599482795b1c078eddbead17211cc31de5bb12db62a761dc708 +_next/static/media/check.5890c2a1.svg,1726860952073,f870e71608b4684604b5cf799bfbb6ebc22382f36e6d6f5b9727f5814fab366c +_next/static/chunks/app/general-principles/page-bcc407449c6a20af.js,1726860952079,2165bc52bb53ce89a59c5e940d83ee4bbfa5180a2c10b76f823f51080445b5ba +_next/static/media/edit.7e8a8f57.svg,1726860952073,7338fa24ab88ddeb9d8ff3097b07cc146c5ebbece19f3e0cd03203085de2a736 +_next/static/chunks/main-810b87576c0944b8.js,1726860952077,d96c7c1908049d8ef7239eb5ee03e0928ae8af1dc09648fa3da47299fb708698 +_next/static/chunks/69-af7cf13af40d6e6c.js,1726860952081,1b4ecf7859edfb0bec7ff730f744f96726f82cd0448e1414ba2cefbf9fe44c55 +_next/static/chunks/polyfills-c67a75d1b6f99dc8.js,1726860952076,9f22ebbc1e5746bc08aa476baa8169d3ac2c27814dba6bf675b749113ac4943e +_next/static/chunks/framework-aec844d2ccbe7592.js,1726860952077,cc7c6067a86256348371aeb89094b5e79dde940922de6558a4106fe13e8aab63 +_next/static/chunks/fd9d1056-7a5e3c090ec0a26d.js,1726860952078,64aa05d1908e9452f22fe0d4596c1cab0b84a51abfdfc0faea13c2497b19dedf +_next/static/css/b636ef83e26cc8f6.css,1726860952074,f5d6f1969a23ad09d0a06c5cab389c021bd4a88eacdeea651ef14c922d0ac723 diff --git a/.firebase/sideline-sidekick-app/hosting/404.html b/.firebase/sideline-sidekick-app/hosting/404.html new file mode 100644 index 0000000..a994f29 --- /dev/null +++ b/.firebase/sideline-sidekick-app/hosting/404.html @@ -0,0 +1 @@ +404: This page could not be found.Sideline Sidekick Admin
    Sideline Sidekick
    Search
    PN
    Profile Name

    404

    This page could not be found.

    \ No newline at end of file diff --git a/.firebase/sideline-sidekick-app/hosting/_next/static/Hz-X1inGOaTfqBx4LBWW7/_buildManifest.js b/.firebase/sideline-sidekick-app/hosting/_next/static/Hz-X1inGOaTfqBx4LBWW7/_buildManifest.js new file mode 100644 index 0000000..8afb954 --- /dev/null +++ b/.firebase/sideline-sidekick-app/hosting/_next/static/Hz-X1inGOaTfqBx4LBWW7/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST={__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/_error":["static/chunks/pages/_error-9a890acb1e81c3fc.js"],sortedPages:["/_app","/_error"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/.firebase/sideline-sidekick-app/hosting/_next/static/Hz-X1inGOaTfqBx4LBWW7/_ssgManifest.js b/.firebase/sideline-sidekick-app/hosting/_next/static/Hz-X1inGOaTfqBx4LBWW7/_ssgManifest.js new file mode 100644 index 0000000..5b3ff59 --- /dev/null +++ b/.firebase/sideline-sidekick-app/hosting/_next/static/Hz-X1inGOaTfqBx4LBWW7/_ssgManifest.js @@ -0,0 +1 @@ +self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB() \ No newline at end of file diff --git a/.firebase/sideline-sidekick-app/hosting/_next/static/chunks/69-af7cf13af40d6e6c.js b/.firebase/sideline-sidekick-app/hosting/_next/static/chunks/69-af7cf13af40d6e6c.js new file mode 100644 index 0000000..9e074d7 --- /dev/null +++ b/.firebase/sideline-sidekick-app/hosting/_next/static/chunks/69-af7cf13af40d6e6c.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[69],{269:function(e,t){"use strict";function r(){return""}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDeploymentIdQueryOrEmptyString",{enumerable:!0,get:function(){return r}})},9338:function(){"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){throw r})})}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce(function(e,t){return e[t[0]]=t[1],e},{})}),Array.prototype.at||(Array.prototype.at=function(e){var t=Math.trunc(e)||0;if(t<0&&(t+=this.length),!(t<0||t>=this.length))return this[t]})},5786:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return u}});let n=r(1312),o=r(2139);function u(e,t){return(0,o.normalizePathTrailingSlash)((0,n.addPathPrefix)(e,""))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6159:function(e,t){"use strict";function r(e){var t,r;t=self.__next_s,r=()=>{e()},t&&t.length?t.reduce((e,t)=>{let[r,n]=t;return e.then(()=>new Promise((e,t)=>{let o=document.createElement("script");if(n)for(let e in n)"children"!==e&&o.setAttribute(e,n[e]);r?(o.src=r,o.onload=()=>e(),o.onerror=t):n&&(o.innerHTML=n.children,setTimeout(e)),document.head.appendChild(o)}))},Promise.resolve()).catch(e=>{console.error(e)}).then(()=>{r()}):r()}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"appBootstrap",{enumerable:!0,get:function(){return r}}),window.next={version:"14.1.4",appDir:!0},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5355:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"callServer",{enumerable:!0,get:function(){return o}});let n=r(7690);async function o(e,t){let r=(0,n.getServerActionDispatcher)();if(!r)throw Error("Invariant: missing action dispatcher.");return new Promise((n,o)=>{r({actionId:e,actionArgs:t,resolve:n,reject:o})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},945:function(e,t,r){"use strict";let n,o;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hydrate",{enumerable:!0,get:function(){return C}});let u=r(6921),l=r(1884),a=r(7437);r(9338);let i=u._(r(4040)),c=l._(r(2265)),s=r(6671),f=r(7484);r(8599);let d=u._(r(4101)),p=r(5355),h=r(4950),y=r(5367),_=window.console.error;window.console.error=function(){for(var e=arguments.length,t=Array(e),r=0;r{if((0,h.isNextRouterError)(e.error)){e.preventDefault();return}});let v=document,b=()=>{let{pathname:e,search:t}=location;return e+t},g=new TextEncoder,m=!1,P=!1,j=null;function O(e){if(0===e[0])n=[];else if(1===e[0]){if(!n)throw Error("Unexpected server data: missing bootstrap script.");o?o.enqueue(g.encode(e[1])):n.push(e[1])}else 2===e[0]&&(j=e[1])}let R=function(){o&&!P&&(o.close(),P=!0,n=void 0),m=!0};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",R,!1):R();let S=self.__next_f=self.__next_f||[];S.forEach(O),S.push=O;let E=new Map;function w(e){let{cacheKey:t}=e;c.default.useEffect(()=>{E.delete(t)});let r=function(e){let t=E.get(e);if(t)return t;let r=new ReadableStream({start(e){n&&(n.forEach(t=>{e.enqueue(g.encode(t))}),m&&!P&&(e.close(),P=!0,n=void 0)),o=e}}),u=(0,s.createFromReadableStream)(r,{callServer:p.callServer});return E.set(e,u),u}(t);return(0,c.use)(r)}let M=c.default.StrictMode;function T(e){let{children:t}=e;return t}function x(e){return(0,a.jsx)(w,{...e,cacheKey:b()})}function C(){let e=(0,y.createMutableActionQueue)(),t=(0,a.jsx)(M,{children:(0,a.jsx)(f.HeadManagerContext.Provider,{value:{appDir:!0},children:(0,a.jsx)(y.ActionQueueContext.Provider,{value:e,children:(0,a.jsx)(T,{children:(0,a.jsx)(x,{})})})})}),r={onRecoverableError:d.default};"__next_error__"===document.documentElement.id?i.default.createRoot(v,r).render(t):c.default.startTransition(()=>i.default.hydrateRoot(v,t,{...r,formState:j}))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5317:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9590),(0,r(6159).appBootstrap)(()=>{let{hydrate:e}=r(945);r(7690),r(5613),e()}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9590:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(269);{let e=r.u;r.u=function(){for(var t=arguments.length,r=Array(t),n=0;n(l(function(){var e;let t=document.getElementsByName(u)[0];if(null==t?void 0:null==(e=t.shadowRoot)?void 0:e.childNodes[0])return t.shadowRoot.childNodes[0];{let e=document.createElement(u);e.style.cssText="position:absolute";let t=document.createElement("div");return t.ariaLive="assertive",t.id="__next-route-announcer__",t.role="alert",t.style.cssText="position:absolute;border:0;height:1px;margin:-1px;padding:0;width:1px;clip:rect(0 0 0 0);overflow:hidden;white-space:nowrap;word-wrap:normal",e.attachShadow({mode:"open"}).appendChild(t),document.body.appendChild(e),t}}()),()=>{let e=document.getElementsByTagName(u)[0];(null==e?void 0:e.isConnected)&&document.body.removeChild(e)}),[]);let[a,i]=(0,n.useState)(""),c=(0,n.useRef)();return(0,n.useEffect)(()=>{let e="";if(document.title)e=document.title;else{let t=document.querySelector("h1");t&&(e=t.innerText||t.textContent||"")}void 0!==c.current&&c.current!==e&&i(e),c.current=e},[t]),r?(0,o.createPortal)(a,r):null}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2275:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RSC_HEADER:function(){return r},ACTION:function(){return n},NEXT_ROUTER_STATE_TREE:function(){return o},NEXT_ROUTER_PREFETCH_HEADER:function(){return u},NEXT_URL:function(){return l},RSC_CONTENT_TYPE_HEADER:function(){return a},RSC_VARY_HEADER:function(){return i},FLIGHT_PARAMETERS:function(){return c},NEXT_RSC_UNION_QUERY:function(){return s},NEXT_DID_POSTPONE_HEADER:function(){return f}});let r="RSC",n="Next-Action",o="Next-Router-State-Tree",u="Next-Router-Prefetch",l="Next-Url",a="text/x-component",i=r+", "+o+", "+u+", "+l,c=[[r],[o],[u]],s="_rsc",f="x-nextjs-postponed";("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7690:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getServerActionDispatcher:function(){return S},urlToUrlWithoutFlightMarker:function(){return w},createEmptyCacheNode:function(){return x},default:function(){return I}});let n=r(1884),o=r(7437),u=n._(r(2265)),l=r(8599),a=r(1414),i=r(8419),c=r(4758),s=r(1276),f=r(8955),d=r(4492),p=r(6407),h=r(5786),y=r(2054),_=r(5737),v=r(671),b=r(4399),g=r(2275),m=r(8895),P=r(7379),j="undefined"==typeof window,O=j?null:new Map,R=null;function S(){return R}let E={};function w(e){let t=new URL(e,location.origin);return t.searchParams.delete(g.NEXT_RSC_UNION_QUERY),t}function M(e){return e.origin!==window.location.origin}function T(e){let{appRouterState:t,sync:r}=e;return(0,u.useInsertionEffect)(()=>{let{tree:e,pushRef:n,canonicalUrl:o}=t,u={...n.preserveCustomHistoryState?window.history.state:{},__NA:!0,__PRIVATE_NEXTJS_INTERNALS_TREE:e};n.pendingPush&&(0,i.createHrefFromUrl)(new URL(window.location.href))!==o?(n.pendingPush=!1,window.history.pushState(u,"",o)):window.history.replaceState(u,"",o),r(t)},[t,r]),null}function x(){return{lazyData:null,rsc:null,prefetchRsc:null,parallelRoutes:new Map,lazyDataResolved:!1}}function C(e){null==e&&(e={});let t=window.history.state,r=null==t?void 0:t.__NA;r&&(e.__NA=r);let n=null==t?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE;return n&&(e.__PRIVATE_NEXTJS_INTERNALS_TREE=n),e}function N(e){let{headCacheNode:t}=e,r=null!==t?t.head:null,n=null!==t?t.prefetchHead:null,o=null!==n?n:r;return(0,u.useDeferredValue)(r,o)}function A(e){let t,{buildId:r,initialHead:n,initialTree:i,initialCanonicalUrl:f,initialSeedData:g,assetPrefix:S,missingSlots:w}=e,x=(0,u.useMemo)(()=>(0,d.createInitialRouterState)({buildId:r,initialSeedData:g,initialCanonicalUrl:f,initialTree:i,initialParallelRoutes:O,isServer:j,location:j?null:window.location,initialHead:n}),[r,g,f,i,n]),[A,I,k]=(0,s.useReducerWithReduxDevtools)(x);(0,u.useEffect)(()=>{O=null},[]);let{canonicalUrl:D}=(0,s.useUnwrapState)(A),{searchParams:U,pathname:F}=(0,u.useMemo)(()=>{let e=new URL(D,"undefined"==typeof window?"http://n":window.location.href);return{searchParams:e.searchParams,pathname:(0,P.hasBasePath)(e.pathname)?(0,m.removeBasePath)(e.pathname):e.pathname}},[D]),L=(0,u.useCallback)((e,t,r)=>{(0,u.startTransition)(()=>{I({type:a.ACTION_SERVER_PATCH,flightData:t,previousTree:e,overrideCanonicalUrl:r})})},[I]),H=(0,u.useCallback)((e,t,r)=>{let n=new URL((0,h.addBasePath)(e),location.href);return I({type:a.ACTION_NAVIGATE,url:n,isExternalUrl:M(n),locationSearch:location.search,shouldScroll:null==r||r,navigateType:t})},[I]);R=(0,u.useCallback)(e=>{(0,u.startTransition)(()=>{I({...e,type:a.ACTION_SERVER_ACTION})})},[I]);let $=(0,u.useMemo)(()=>({back:()=>window.history.back(),forward:()=>window.history.forward(),prefetch:(e,t)=>{if((0,p.isBot)(window.navigator.userAgent))return;let r=new URL((0,h.addBasePath)(e),window.location.href);M(r)||(0,u.startTransition)(()=>{var e;I({type:a.ACTION_PREFETCH,url:r,kind:null!=(e=null==t?void 0:t.kind)?e:a.PrefetchKind.FULL})})},replace:(e,t)=>{void 0===t&&(t={}),(0,u.startTransition)(()=>{var r;H(e,"replace",null==(r=t.scroll)||r)})},push:(e,t)=>{void 0===t&&(t={}),(0,u.startTransition)(()=>{var r;H(e,"push",null==(r=t.scroll)||r)})},refresh:()=>{(0,u.startTransition)(()=>{I({type:a.ACTION_REFRESH,origin:window.location.origin})})},fastRefresh:()=>{throw Error("fastRefresh can only be used in development mode. Please use refresh instead.")}}),[I,H]);(0,u.useEffect)(()=>{window.next&&(window.next.router=$)},[$]),(0,u.useEffect)(()=>{function e(e){var t;e.persisted&&(null==(t=window.history.state)?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE)&&(E.pendingMpaPath=void 0,I({type:a.ACTION_RESTORE,url:new URL(window.location.href),tree:window.history.state.__PRIVATE_NEXTJS_INTERNALS_TREE}))}return window.addEventListener("pageshow",e),()=>{window.removeEventListener("pageshow",e)}},[I]);let{pushRef:B}=(0,s.useUnwrapState)(A);if(B.mpaNavigation){if(E.pendingMpaPath!==D){let e=window.location;B.pendingPush?e.assign(D):e.replace(D),E.pendingMpaPath=D}(0,u.use)((0,b.createInfinitePromise)())}(0,u.useEffect)(()=>{let e=window.history.pushState.bind(window.history),t=window.history.replaceState.bind(window.history),r=e=>{var t;let r=window.location.href,n=null==(t=window.history.state)?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE;(0,u.startTransition)(()=>{I({type:a.ACTION_RESTORE,url:new URL(null!=e?e:r,r),tree:n})})};window.history.pushState=function(t,n,o){return(null==t?void 0:t.__NA)||(null==t?void 0:t._N)||(t=C(t),o&&r(o)),e(t,n,o)},window.history.replaceState=function(e,n,o){return(null==e?void 0:e.__NA)||(null==e?void 0:e._N)||(e=C(e),o&&r(o)),t(e,n,o)};let n=e=>{let{state:t}=e;if(t){if(!t.__NA){window.location.reload();return}(0,u.startTransition)(()=>{I({type:a.ACTION_RESTORE,url:new URL(window.location.href),tree:t.__PRIVATE_NEXTJS_INTERNALS_TREE})})}};return window.addEventListener("popstate",n),()=>{window.history.pushState=e,window.history.replaceState=t,window.removeEventListener("popstate",n)}},[I]);let{cache:G,tree:z,nextUrl:W,focusAndScrollRef:K}=(0,s.useUnwrapState)(A),V=(0,u.useMemo)(()=>(0,v.findHeadInCache)(G,z[1]),[G,z]);if(null!==V){let[e,r]=V;t=(0,o.jsx)(N,{headCacheNode:e},r)}else t=null;let Y=(0,o.jsxs)(_.RedirectBoundary,{children:[t,G.rsc,(0,o.jsx)(y.AppRouterAnnouncer,{tree:z})]});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(T,{appRouterState:(0,s.useUnwrapState)(A),sync:k}),(0,o.jsx)(c.PathnameContext.Provider,{value:F,children:(0,o.jsx)(c.SearchParamsContext.Provider,{value:U,children:(0,o.jsx)(l.GlobalLayoutRouterContext.Provider,{value:{buildId:r,changeByServerResponse:L,tree:z,focusAndScrollRef:K,nextUrl:W},children:(0,o.jsx)(l.AppRouterContext.Provider,{value:$,children:(0,o.jsx)(l.LayoutRouterContext.Provider,{value:{childNodes:G.parallelRoutes,tree:z,url:D},children:Y})})})})})]})}function I(e){let{globalErrorComponent:t,...r}=e;return(0,o.jsx)(f.ErrorBoundary,{errorComponent:t,children:(0,o.jsx)(A,{...r})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9408:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bailoutToClientRendering",{enumerable:!0,get:function(){return u}});let n=r(9775),o=r(2);function u(e){let t=o.staticGenerationAsyncStorage.getStore();if((null==t||!t.forceStatic)&&(null==t?void 0:t.isStaticGeneration))throw new n.BailoutToCSRError(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3706:function(e,t,r){"use strict";function n(e){}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clientHookInServerComponentError",{enumerable:!0,get:function(){return n}}),r(6921),r(2265),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8955:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ErrorBoundaryHandler:function(){return s},GlobalError:function(){return f},default:function(){return d},ErrorBoundary:function(){return p}});let n=r(6921),o=r(7437),u=n._(r(2265)),l=r(5313),a=r(4950),i={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},text:{fontSize:"14px",fontWeight:400,lineHeight:"28px",margin:"0 8px"}};function c(e){let{error:t}=e;if("function"==typeof fetch.__nextGetStaticStore){var r;let e=null==(r=fetch.__nextGetStaticStore())?void 0:r.getStore();if((null==e?void 0:e.isRevalidate)||(null==e?void 0:e.isStaticGeneration))throw console.error(t),t}return null}class s extends u.default.Component{static getDerivedStateFromError(e){if((0,a.isNextRouterError)(e))throw e;return{error:e}}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.error?{error:null,previousPathname:e.pathname}:{error:t.error,previousPathname:e.pathname}}render(){return this.state.error?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(c,{error:this.state.error}),this.props.errorStyles,this.props.errorScripts,(0,o.jsx)(this.props.errorComponent,{error:this.state.error,reset:this.reset})]}):this.props.children}constructor(e){super(e),this.reset=()=>{this.setState({error:null})},this.state={error:null,previousPathname:this.props.pathname}}}function f(e){let{error:t}=e,r=null==t?void 0:t.digest;return(0,o.jsxs)("html",{id:"__next_error__",children:[(0,o.jsx)("head",{}),(0,o.jsxs)("body",{children:[(0,o.jsx)(c,{error:t}),(0,o.jsx)("div",{style:i.error,children:(0,o.jsxs)("div",{children:[(0,o.jsx)("h2",{style:i.text,children:"Application error: a "+(r?"server":"client")+"-side exception has occurred (see the "+(r?"server logs":"browser console")+" for more information)."}),r?(0,o.jsx)("p",{style:i.text,children:"Digest: "+r}):null]})})]})]})}let d=f;function p(e){let{errorComponent:t,errorStyles:r,errorScripts:n,children:u}=e,a=(0,l.usePathname)();return t?(0,o.jsx)(s,{pathname:a,errorComponent:t,errorStyles:r,errorScripts:n,children:u}):(0,o.jsx)(o.Fragment,{children:u})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7127:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DynamicServerError:function(){return n},isDynamicServerError:function(){return o}});let r="DYNAMIC_SERVER_USAGE";class n extends Error{constructor(e){super("Dynamic server usage: "+e),this.description=e,this.digest=r}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&"string"==typeof e.digest&&e.digest===r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4399:function(e,t){"use strict";let r;function n(){return r||(r=new Promise(()=>{})),r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createInfinitePromise",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4950:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNextRouterError",{enumerable:!0,get:function(){return u}});let n=r(2322),o=r(6155);function u(e){return e&&e.digest&&((0,o.isRedirectError)(e)||(0,n.isNotFoundError)(e))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5613:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return R}});let n=r(6921),o=r(1884),u=r(7437),l=o._(r(2265)),a=n._(r(4887)),i=r(8599),c=r(3546),s=r(4399),f=r(8955),d=r(2295),p=r(3011),h=r(5737),y=r(1902),_=r(6793),v=r(555),b=["bottom","height","left","right","top","width","x","y"];function g(e,t){let r=e.getBoundingClientRect();return r.top>=0&&r.top<=t}class m extends l.default.Component{componentDidMount(){this.handlePotentialScroll()}componentDidUpdate(){this.props.focusAndScrollRef.apply&&this.handlePotentialScroll()}render(){return this.props.children}constructor(...e){super(...e),this.handlePotentialScroll=()=>{let{focusAndScrollRef:e,segmentPath:t}=this.props;if(e.apply){var r;if(0!==e.segmentPaths.length&&!e.segmentPaths.some(e=>t.every((t,r)=>(0,d.matchSegment)(t,e[r]))))return;let n=null,o=e.hashFragment;if(o&&(n="top"===o?document.body:null!=(r=document.getElementById(o))?r:document.getElementsByName(o)[0]),n||(n="undefined"==typeof window?null:a.default.findDOMNode(this)),!(n instanceof Element))return;for(;!(n instanceof HTMLElement)||function(e){if(["sticky","fixed"].includes(getComputedStyle(e).position))return!0;let t=e.getBoundingClientRect();return b.every(e=>0===t[e])}(n);){if(null===n.nextElementSibling)return;n=n.nextElementSibling}e.apply=!1,e.hashFragment=null,e.segmentPaths=[],(0,p.handleSmoothScroll)(()=>{if(o){n.scrollIntoView();return}let e=document.documentElement,t=e.clientHeight;!g(n,t)&&(e.scrollTop=0,g(n,t)||n.scrollIntoView())},{dontForceLayout:!0,onlyHashChange:e.onlyHashChange}),e.onlyHashChange=!1,n.focus()}}}}function P(e){let{segmentPath:t,children:r}=e,n=(0,l.useContext)(i.GlobalLayoutRouterContext);if(!n)throw Error("invariant global layout router not mounted");return(0,u.jsx)(m,{segmentPath:t,focusAndScrollRef:n.focusAndScrollRef,children:r})}function j(e){let{parallelRouterKey:t,url:r,childNodes:n,segmentPath:o,tree:a,cacheKey:f}=e,p=(0,l.useContext)(i.GlobalLayoutRouterContext);if(!p)throw Error("invariant global layout router not mounted");let{buildId:h,changeByServerResponse:y,tree:_}=p,v=n.get(f);if(void 0===v){let e={lazyData:null,rsc:null,prefetchRsc:null,head:null,parallelRoutes:new Map,lazyDataResolved:!1};v=e,n.set(f,e)}let b=null!==v.prefetchRsc?v.prefetchRsc:v.rsc,g=(0,l.useDeferredValue)(v.rsc,b),m="object"==typeof g&&null!==g&&"function"==typeof g.then?(0,l.use)(g):g;if(!m){let e=v.lazyData;if(null===e){let t=function e(t,r){if(t){let[n,o]=t,u=2===t.length;if((0,d.matchSegment)(r[0],n)&&r[1].hasOwnProperty(o)){if(u){let t=e(void 0,r[1][o]);return[r[0],{...r[1],[o]:[t[0],t[1],t[2],"refetch"]}]}return[r[0],{...r[1],[o]:e(t.slice(2),r[1][o])}]}}return r}(["",...o],_);v.lazyData=e=(0,c.fetchServerResponse)(new URL(r,location.origin),t,p.nextUrl,h),v.lazyDataResolved=!1}let[t,n]=(0,l.use)(e);v.lazyDataResolved||(setTimeout(()=>{(0,l.startTransition)(()=>{y(_,t,n)})}),v.lazyDataResolved=!0),(0,l.use)((0,s.createInfinitePromise)())}return(0,u.jsx)(i.LayoutRouterContext.Provider,{value:{tree:a[1][t],childNodes:v.parallelRoutes,url:r},children:m})}function O(e){let{children:t,loading:r,loadingStyles:n,loadingScripts:o,hasLoading:a}=e;return a?(0,u.jsx)(l.Suspense,{fallback:(0,u.jsxs)(u.Fragment,{children:[n,o,r]}),children:t}):(0,u.jsx)(u.Fragment,{children:t})}function R(e){let{parallelRouterKey:t,segmentPath:r,error:n,errorStyles:o,errorScripts:a,templateStyles:c,templateScripts:s,loading:d,loadingStyles:p,loadingScripts:b,hasLoading:g,template:m,notFound:R,notFoundStyles:S,styles:E}=e,w=(0,l.useContext)(i.LayoutRouterContext);if(!w)throw Error("invariant expected layout router to be mounted");let{childNodes:M,tree:T,url:x}=w,C=M.get(t);C||(C=new Map,M.set(t,C));let N=T[1][t][0],A=(0,_.getSegmentValue)(N),I=[N];return(0,u.jsxs)(u.Fragment,{children:[E,I.map(e=>{let l=(0,_.getSegmentValue)(e),E=(0,v.createRouterCacheKey)(e);return(0,u.jsxs)(i.TemplateContext.Provider,{value:(0,u.jsx)(P,{segmentPath:r,children:(0,u.jsx)(f.ErrorBoundary,{errorComponent:n,errorStyles:o,errorScripts:a,children:(0,u.jsx)(O,{hasLoading:g,loading:d,loadingStyles:p,loadingScripts:b,children:(0,u.jsx)(y.NotFoundBoundary,{notFound:R,notFoundStyles:S,children:(0,u.jsx)(h.RedirectBoundary,{children:(0,u.jsx)(j,{parallelRouterKey:t,url:x,tree:T,childNodes:C,segmentPath:r,cacheKey:E,isActive:A===l})})})})})}),children:[c,s,m]},(0,v.createRouterCacheKey)(e,!0))})]})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2295:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{matchSegment:function(){return o},canSegmentBeOverridden:function(){return u}});let n=r(2883),o=(e,t)=>"string"==typeof e?"string"==typeof t&&e===t:"string"!=typeof t&&e[0]===t[0]&&e[1]===t[1],u=(e,t)=>{var r;return!Array.isArray(e)&&!!Array.isArray(t)&&(null==(r=(0,n.getSegmentParam)(e))?void 0:r.param)===t[0]};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5313:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return h},useSearchParams:function(){return y},usePathname:function(){return _},ServerInsertedHTMLContext:function(){return c.ServerInsertedHTMLContext},useServerInsertedHTML:function(){return c.useServerInsertedHTML},useRouter:function(){return v},useParams:function(){return b},useSelectedLayoutSegments:function(){return g},useSelectedLayoutSegment:function(){return m},redirect:function(){return s.redirect},permanentRedirect:function(){return s.permanentRedirect},RedirectType:function(){return s.RedirectType},notFound:function(){return f.notFound}});let n=r(2265),o=r(8599),u=r(4758),l=r(3706),a=r(6793),i=r(3266),c=r(2472),s=r(6155),f=r(2322),d=Symbol("internal for urlsearchparams readonly");function p(){return Error("ReadonlyURLSearchParams cannot be modified")}class h{[Symbol.iterator](){return this[d][Symbol.iterator]()}append(){throw p()}delete(){throw p()}set(){throw p()}sort(){throw p()}constructor(e){this[d]=e,this.entries=e.entries.bind(e),this.forEach=e.forEach.bind(e),this.get=e.get.bind(e),this.getAll=e.getAll.bind(e),this.has=e.has.bind(e),this.keys=e.keys.bind(e),this.values=e.values.bind(e),this.toString=e.toString.bind(e),this.size=e.size}}function y(){(0,l.clientHookInServerComponentError)("useSearchParams");let e=(0,n.useContext)(u.SearchParamsContext),t=(0,n.useMemo)(()=>e?new h(e):null,[e]);if("undefined"==typeof window){let{bailoutToClientRendering:e}=r(9408);e("useSearchParams()")}return t}function _(){return(0,l.clientHookInServerComponentError)("usePathname"),(0,n.useContext)(u.PathnameContext)}function v(){(0,l.clientHookInServerComponentError)("useRouter");let e=(0,n.useContext)(o.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function b(){(0,l.clientHookInServerComponentError)("useParams");let e=(0,n.useContext)(o.GlobalLayoutRouterContext),t=(0,n.useContext)(u.PathParamsContext);return(0,n.useMemo)(()=>(null==e?void 0:e.tree)?function e(t,r){for(let n of(void 0===r&&(r={}),Object.values(t[1]))){let t=n[0],o=Array.isArray(t),u=o?t[1]:t;!u||u.startsWith(i.PAGE_SEGMENT_KEY)||(o&&("c"===t[2]||"oc"===t[2])?r[t[0]]=t[1].split("/"):o&&(r[t[0]]=t[1]),r=e(n,r))}return r}(e.tree):t,[null==e?void 0:e.tree,t])}function g(e){void 0===e&&(e="children"),(0,l.clientHookInServerComponentError)("useSelectedLayoutSegments");let{tree:t}=(0,n.useContext)(o.LayoutRouterContext);return function e(t,r,n,o){let u;if(void 0===n&&(n=!0),void 0===o&&(o=[]),n)u=t[1][r];else{var l;let e=t[1];u=null!=(l=e.children)?l:Object.values(e)[0]}if(!u)return o;let c=u[0],s=(0,a.getSegmentValue)(c);return!s||s.startsWith(i.PAGE_SEGMENT_KEY)?o:(o.push(s),e(u,r,!1,o))}(t,e)}function m(e){void 0===e&&(e="children"),(0,l.clientHookInServerComponentError)("useSelectedLayoutSegment");let t=g(e);return 0===t.length?null:t[0]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1902:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NotFoundBoundary",{enumerable:!0,get:function(){return s}});let n=r(1884),o=r(7437),u=n._(r(2265)),l=r(5313),a=r(2322);r(6184);let i=r(8599);class c extends u.default.Component{componentDidCatch(){}static getDerivedStateFromError(e){if((0,a.isNotFoundError)(e))return{notFoundTriggered:!0};throw e}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.notFoundTriggered?{notFoundTriggered:!1,previousPathname:e.pathname}:{notFoundTriggered:t.notFoundTriggered,previousPathname:e.pathname}}render(){return this.state.notFoundTriggered?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("meta",{name:"robots",content:"noindex"}),!1,this.props.notFoundStyles,this.props.notFound]}):this.props.children}constructor(e){super(e),this.state={notFoundTriggered:!!e.asNotFound,previousPathname:e.pathname}}}function s(e){let{notFound:t,notFoundStyles:r,asNotFound:n,children:a}=e,s=(0,l.usePathname)(),f=(0,u.useContext)(i.MissingSlotContext);return t?(0,o.jsx)(c,{pathname:s,notFound:t,notFoundStyles:r,asNotFound:n,missingSlots:f,children:a}):(0,o.jsx)(o.Fragment,{children:a})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2322:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{notFound:function(){return n},isNotFoundError:function(){return o}});let r="NEXT_NOT_FOUND";function n(){let e=Error(r);throw e.digest=r,e}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2418:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PromiseQueue",{enumerable:!0,get:function(){return c}});let n=r(2299),o=r(3603);var u=o._("_maxConcurrency"),l=o._("_runningCount"),a=o._("_queue"),i=o._("_processNext");class c{enqueue(e){let t,r;let o=new Promise((e,n)=>{t=e,r=n}),u=async()=>{try{n._(this,l)[l]++;let r=await e();t(r)}catch(e){r(e)}finally{n._(this,l)[l]--,n._(this,i)[i]()}};return n._(this,a)[a].push({promiseFn:o,task:u}),n._(this,i)[i](),o}bump(e){let t=n._(this,a)[a].findIndex(t=>t.promiseFn===e);if(t>-1){let e=n._(this,a)[a].splice(t,1)[0];n._(this,a)[a].unshift(e),n._(this,i)[i](!0)}}constructor(e=5){Object.defineProperty(this,i,{value:s}),Object.defineProperty(this,u,{writable:!0,value:void 0}),Object.defineProperty(this,l,{writable:!0,value:void 0}),Object.defineProperty(this,a,{writable:!0,value:void 0}),n._(this,u)[u]=e,n._(this,l)[l]=0,n._(this,a)[a]=[]}}function s(e){if(void 0===e&&(e=!1),(n._(this,l)[l]0){var t;null==(t=n._(this,a)[a].shift())||t.task()}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5737:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RedirectErrorBoundary:function(){return c},RedirectBoundary:function(){return s}});let n=r(1884),o=r(7437),u=n._(r(2265)),l=r(5313),a=r(6155);function i(e){let{redirect:t,reset:r,redirectType:n}=e,o=(0,l.useRouter)();return(0,u.useEffect)(()=>{u.default.startTransition(()=>{n===a.RedirectType.push?o.push(t,{}):o.replace(t,{}),r()})},[t,n,r,o]),null}class c extends u.default.Component{static getDerivedStateFromError(e){if((0,a.isRedirectError)(e))return{redirect:(0,a.getURLFromRedirectError)(e),redirectType:(0,a.getRedirectTypeFromError)(e)};throw e}render(){let{redirect:e,redirectType:t}=this.state;return null!==e&&null!==t?(0,o.jsx)(i,{redirect:e,redirectType:t,reset:()=>this.setState({redirect:null})}):this.props.children}constructor(e){super(e),this.state={redirect:null,redirectType:null}}}function s(e){let{children:t}=e,r=(0,l.useRouter)();return(0,o.jsx)(c,{router:r,children:t})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9510:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return r}}),(n=r||(r={}))[n.SeeOther=303]="SeeOther",n[n.TemporaryRedirect=307]="TemporaryRedirect",n[n.PermanentRedirect=308]="PermanentRedirect",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6155:function(e,t,r){"use strict";var n,o;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RedirectType:function(){return n},getRedirectError:function(){return c},redirect:function(){return s},permanentRedirect:function(){return f},isRedirectError:function(){return d},getURLFromRedirectError:function(){return p},getRedirectTypeFromError:function(){return h},getRedirectStatusCodeFromError:function(){return y}});let u=r(6668),l=r(1264),a=r(9510),i="NEXT_REDIRECT";function c(e,t,r){void 0===r&&(r=a.RedirectStatusCode.TemporaryRedirect);let n=Error(i);n.digest=i+";"+t+";"+e+";"+r+";";let o=u.requestAsyncStorage.getStore();return o&&(n.mutableCookies=o.mutableCookies),n}function s(e,t){void 0===t&&(t="replace");let r=l.actionAsyncStorage.getStore();throw c(e,t,(null==r?void 0:r.isAction)?a.RedirectStatusCode.SeeOther:a.RedirectStatusCode.TemporaryRedirect)}function f(e,t){void 0===t&&(t="replace");let r=l.actionAsyncStorage.getStore();throw c(e,t,(null==r?void 0:r.isAction)?a.RedirectStatusCode.SeeOther:a.RedirectStatusCode.PermanentRedirect)}function d(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,r,n,o]=e.digest.split(";",4),u=Number(o);return t===i&&("replace"===r||"push"===r)&&"string"==typeof n&&!isNaN(u)&&u in a.RedirectStatusCode}function p(e){return d(e)?e.digest.split(";",3)[2]:null}function h(e){if(!d(e))throw Error("Not a redirect error");return e.digest.split(";",2)[1]}function y(e){if(!d(e))throw Error("Not a redirect error");return Number(e.digest.split(";",4)[3])}(o=n||(n={})).push="push",o.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1778:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let n=r(1884),o=r(7437),u=n._(r(2265)),l=r(8599);function a(){let e=(0,u.useContext)(l.TemplateContext);return(0,o.jsx)(o.Fragment,{children:e})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6668:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return n}});let n=(0,r(693).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9671:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"applyFlightData",{enumerable:!0,get:function(){return u}});let n=r(4765),o=r(0);function u(e,t,r,u){void 0===u&&(u=!1);let[l,a,i]=r.slice(-3);if(null===a)return!1;if(3===r.length){let r=a[2];t.rsc=r,t.prefetchRsc=null,(0,n.fillLazyItemsTillLeafWithHead)(t,e,l,a,i,u)}else t.rsc=e.rsc,t.prefetchRsc=e.prefetchRsc,t.parallelRoutes=new Map(e.parallelRoutes),(0,o.fillCacheWithNewSubTreeData)(t,e,r,u);return!0}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7098:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{applyRouterStatePatchToFullTree:function(){return a},applyRouterStatePatchToTreeSkipDefault:function(){return i}});let n=r(3266),o=r(2295);function u(e,t,r){void 0===r&&(r=!1);let[l,a]=e,[i,c]=t;if(!r&&i===n.DEFAULT_SEGMENT_KEY&&l!==n.DEFAULT_SEGMENT_KEY)return e;if((0,o.matchSegment)(l,i)){let t={};for(let e in a)void 0!==c[e]?t[e]=u(a[e],c[e],r):t[e]=a[e];for(let e in c)t[e]||(t[e]=c[e]);let n=[l,t];return e[2]&&(n[2]=e[2]),e[3]&&(n[3]=e[3]),e[4]&&(n[4]=e[4]),n}return t}function l(e,t,r,n){let a;void 0===n&&(n=!1);let[i,c,,,s]=t;if(1===e.length)return u(t,r,n);let[f,d]=e;if(!(0,o.matchSegment)(f,i))return null;if(2===e.length)a=u(c[d],r,n);else if(null===(a=l(e.slice(2),c[d],r,n)))return null;let p=[e[0],{...c,[d]:a}];return s&&(p[4]=!0),p}function a(e,t,r){return l(e,t,r,!0)}function i(e,t,r){return l(e,t,r,!1)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4038:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{extractPathFromFlightRouterState:function(){return c},computeChangedPath:function(){return s}});let n=r(4749),o=r(3266),u=r(2295),l=e=>"/"===e[0]?e.slice(1):e,a=e=>"string"==typeof e?e:e[1];function i(e){return e.reduce((e,t)=>""===(t=l(t))||(0,o.isGroupSegment)(t)?e:e+"/"+t,"")||"/"}function c(e){var t;let r=Array.isArray(e[0])?e[0][1]:e[0];if(r===o.DEFAULT_SEGMENT_KEY||n.INTERCEPTION_ROUTE_MARKERS.some(e=>r.startsWith(e)))return;if(r.startsWith(o.PAGE_SEGMENT_KEY))return"";let u=[r],l=null!=(t=e[1])?t:{},a=l.children?c(l.children):void 0;if(void 0!==a)u.push(a);else for(let[e,t]of Object.entries(l)){if("children"===e)continue;let r=c(t);void 0!==r&&u.push(r)}return i(u)}function s(e,t){let r=function e(t,r){let[o,l]=t,[i,s]=r,f=a(o),d=a(i);if(n.INTERCEPTION_ROUTE_MARKERS.some(e=>f.startsWith(e)||d.startsWith(e)))return"";if(!(0,u.matchSegment)(o,i)){var p;return null!=(p=c(r))?p:""}for(let t in l)if(s[t]){let r=e(l[t],s[t]);if(null!==r)return a(i)+"/"+r}return null}(e,t);return null==r||"/"===r?r:i(r.split("/"))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8419:function(e,t){"use strict";function r(e,t){return void 0===t&&(t=!0),e.pathname+e.search+(t?e.hash:"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createHrefFromUrl",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4492:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createInitialRouterState",{enumerable:!0,get:function(){return l}});let n=r(8419),o=r(4765),u=r(4038);function l(e){var t;let{buildId:r,initialTree:l,initialSeedData:a,initialCanonicalUrl:i,initialParallelRoutes:c,isServer:s,location:f,initialHead:d}=e,p={lazyData:null,rsc:a[2],prefetchRsc:null,parallelRoutes:s?new Map:c};return(null===c||0===c.size)&&(0,o.fillLazyItemsTillLeafWithHead)(p,void 0,l,a,d),{buildId:r,tree:l,cache:p,prefetchCache:new Map,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:{apply:!1,onlyHashChange:!1,hashFragment:null,segmentPaths:[]},canonicalUrl:f?(0,n.createHrefFromUrl)(f):i,nextUrl:null!=(t=(0,u.extractPathFromFlightRouterState)(l)||(null==f?void 0:f.pathname))?t:null}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},555:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createRouterCacheKey",{enumerable:!0,get:function(){return o}});let n=r(3266);function o(e,t){return(void 0===t&&(t=!1),Array.isArray(e))?(e[0]+"|"+e[1]+"|"+e[2]).toLowerCase():t&&e.startsWith(n.PAGE_SEGMENT_KEY)?n.PAGE_SEGMENT_KEY:e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3546:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fetchServerResponse",{enumerable:!0,get:function(){return s}});let n=r(2275),o=r(7690),u=r(5355),l=r(1414),a=r(1),{createFromFetch:i}=r(6671);function c(e){return[(0,o.urlToUrlWithoutFlightMarker)(e).toString(),void 0]}async function s(e,t,r,s,f){let d={[n.RSC_HEADER]:"1",[n.NEXT_ROUTER_STATE_TREE]:encodeURIComponent(JSON.stringify(t))};f===l.PrefetchKind.AUTO&&(d[n.NEXT_ROUTER_PREFETCH_HEADER]="1"),r&&(d[n.NEXT_URL]=r);let p=(0,a.hexHash)([d[n.NEXT_ROUTER_PREFETCH_HEADER]||"0",d[n.NEXT_ROUTER_STATE_TREE],d[n.NEXT_URL]].join(","));try{let t=new URL(e);t.searchParams.set(n.NEXT_RSC_UNION_QUERY,p);let r=await fetch(t,{credentials:"same-origin",headers:d}),l=(0,o.urlToUrlWithoutFlightMarker)(r.url),a=r.redirected?l:void 0,f=r.headers.get("content-type")||"",h=!!r.headers.get(n.NEXT_DID_POSTPONE_HEADER);if(f!==n.RSC_CONTENT_TYPE_HEADER||!r.ok)return e.hash&&(l.hash=e.hash),c(l.toString());let[y,_]=await i(Promise.resolve(r),{callServer:u.callServer});if(s!==y)return c(r.url);return[_,a,h]}catch(t){return console.error("Failed to fetch RSC payload for "+e+". Falling back to browser navigation.",t),[e.toString(),void 0]}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2950:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillCacheWithDataProperty",{enumerable:!0,get:function(){return function e(t,r,o,u){let l=o.length<=2,[a,i]=o,c=(0,n.createRouterCacheKey)(i),s=r.parallelRoutes.get(a),f=t.parallelRoutes.get(a);f&&f!==s||(f=new Map(s),t.parallelRoutes.set(a,f));let d=null==s?void 0:s.get(c),p=f.get(c);if(l){p&&p.lazyData&&p!==d||f.set(c,{lazyData:u(),rsc:null,prefetchRsc:null,parallelRoutes:new Map});return}if(!p||!d){p||f.set(c,{lazyData:u(),rsc:null,prefetchRsc:null,parallelRoutes:new Map});return}return p===d&&(p={lazyData:p.lazyData,rsc:p.rsc,prefetchRsc:p.prefetchRsc,parallelRoutes:new Map(p.parallelRoutes)},f.set(c,p)),e(p,d,o.slice(2),u)}}});let n=r(555);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},0:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillCacheWithNewSubTreeData",{enumerable:!0,get:function(){return function e(t,r,l,a){let i=l.length<=5,[c,s]=l,f=(0,u.createRouterCacheKey)(s),d=r.parallelRoutes.get(c);if(!d)return;let p=t.parallelRoutes.get(c);p&&p!==d||(p=new Map(d),t.parallelRoutes.set(c,p));let h=d.get(f),y=p.get(f);if(i){if(!y||!y.lazyData||y===h){let e=l[3];y={lazyData:null,rsc:e[2],prefetchRsc:null,parallelRoutes:h?new Map(h.parallelRoutes):new Map},h&&(0,n.invalidateCacheByRouterState)(y,h,l[2]),(0,o.fillLazyItemsTillLeafWithHead)(y,h,l[2],e,l[4],a),p.set(f,y)}return}y&&h&&(y===h&&(y={lazyData:y.lazyData,rsc:y.rsc,prefetchRsc:y.prefetchRsc,parallelRoutes:new Map(y.parallelRoutes)},p.set(f,y)),e(y,h,l.slice(2),a))}}});let n=r(6152),o=r(4765),u=r(555);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4765:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillLazyItemsTillLeafWithHead",{enumerable:!0,get:function(){return function e(t,r,o,u,l,a){if(0===Object.keys(o[1]).length){t.head=l;return}for(let i in o[1]){let c;let s=o[1][i],f=s[0],d=(0,n.createRouterCacheKey)(f),p=null!==u&&void 0!==u[1][i]?u[1][i]:null;if(r){let n=r.parallelRoutes.get(i);if(n){let r,o=new Map(n),u=o.get(d);r=null!==p?{lazyData:null,rsc:p[2],prefetchRsc:null,parallelRoutes:new Map(null==u?void 0:u.parallelRoutes)}:a&&u?{lazyData:u.lazyData,rsc:u.rsc,prefetchRsc:u.prefetchRsc,parallelRoutes:new Map(u.parallelRoutes)}:{lazyData:null,rsc:null,prefetchRsc:null,parallelRoutes:new Map(null==u?void 0:u.parallelRoutes)},o.set(d,r),e(r,u,s,p||null,l,a),t.parallelRoutes.set(i,o);continue}}c=null!==p?{lazyData:null,rsc:p[2],prefetchRsc:null,parallelRoutes:new Map}:{lazyData:null,rsc:null,prefetchRsc:null,parallelRoutes:new Map};let h=t.parallelRoutes.get(i);h?h.set(d,c):t.parallelRoutes.set(i,new Map([[d,c]])),e(c,void 0,s,p,l,a)}}}});let n=r(555);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1486:function(e,t){"use strict";var r,n;function o(e){let{kind:t,prefetchTime:r,lastUsedTime:n}=e;return Date.now()<(null!=n?n:r)+3e4?n?"reusable":"fresh":"auto"===t&&Date.now(){for(let r of t[0]){let t=r.slice(0,-3),n=r[r.length-3],l=r[r.length-2],a=r[r.length-1];"string"!=typeof t&&function(e,t,r,n,l){let a=e;for(let e=0;e{c(e,t)})}function i(e,t,r,n){let o=e[1],l=null!==t?t[1]:null,a=new Map;for(let e in o){let t=o[e],c=null!==l?l[e]:null,s=t[0],f=(0,u.createRouterCacheKey)(s),d=i(t,void 0===c?null:c,r,n),p=new Map;p.set(f,d),a.set(e,p)}let c=0===a.size,s=null!==t?t[2]:null;return{lazyData:null,parallelRoutes:a,prefetchRsc:n||void 0===s?null:s,prefetchHead:!n&&c?r:null,rsc:p(),head:c?p():null}}function c(e,t){let r=e.node;if(null===r)return;let n=e.children;if(null===n)s(e.route,r,t);else for(let e of n.values())c(e,t);e.node=null}function s(e,t,r){let n=e[1],o=t.parallelRoutes;for(let e in n){let t=n[e],l=o.get(e);if(void 0===l)continue;let a=t[0],i=(0,u.createRouterCacheKey)(a),c=l.get(i);void 0!==c&&s(t,c,r)}let l=t.rsc;d(l)&&(null===r?l.resolve(null):l.reject(r));let a=t.head;d(a)&&a.resolve(null)}let f=Symbol();function d(e){return e&&e.tag===f}function p(){let e,t;let r=new Promise((r,n)=>{e=r,t=n});return r.status="pending",r.resolve=t=>{"pending"===r.status&&(r.status="fulfilled",r.value=t,e(t))},r.reject=e=>{"pending"===r.status&&(r.status="rejected",r.reason=e,t(e))},r.tag=f,r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5606:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createPrefetchCacheKey",{enumerable:!0,get:function(){return l}});let n=r(1312),o=r(7027),u=r(8419);function l(e,t){let r=(0,u.createHrefFromUrl)(e,!1);return t&&!(0,o.pathHasPrefix)(r,t)?(0,n.addPathPrefix)(r,""+t+"%"):r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6503:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fastRefreshReducer",{enumerable:!0,get:function(){return n}}),r(3546),r(8419),r(7098),r(1956),r(5596),r(8875),r(9671),r(7690),r(2224);let n=function(e,t){return e};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},671:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"findHeadInCache",{enumerable:!0,get:function(){return o}});let n=r(555);function o(e,t){return function e(t,r,o){if(0===Object.keys(r).length)return[t,o];for(let u in r){let[l,a]=r[u],i=t.parallelRoutes.get(u);if(!i)continue;let c=(0,n.createRouterCacheKey)(l),s=i.get(c);if(!s)continue;let f=e(s,a,o+"/"+c);if(f)return f}return null}(e,t,"")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6793:function(e,t){"use strict";function r(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5596:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{handleExternalUrl:function(){return g},navigateReducer:function(){return P}});let n=r(3546),o=r(8419),u=r(3074),l=r(2950),a=r(7098),i=r(3556),c=r(1956),s=r(1414),f=r(8875),d=r(9671),p=r(1486),h=r(7052),y=r(5678),_=r(7690),v=r(3266);r(6384);let b=r(5606);function g(e,t,r,n){return t.mpaNavigation=!0,t.canonicalUrl=r,t.pendingPush=n,t.scrollableSegments=void 0,(0,f.handleMutable)(e,t)}function m(e){let t=[],[r,n]=e;if(0===Object.keys(n).length)return[[r]];for(let[e,o]of Object.entries(n))for(let n of m(o))""===r?t.push([e,...n]):t.push([r,e,...n]);return t}let P=function(e,t){let{url:r,isExternalUrl:P,navigateType:j,shouldScroll:O}=t,R={},{hash:S}=r,E=(0,o.createHrefFromUrl)(r),w="push"===j;if((0,h.prunePrefetchCache)(e.prefetchCache),R.preserveCustomHistoryState=!1,P)return g(e,R,r.toString(),w);let M=(0,b.createPrefetchCacheKey)(r,e.nextUrl),T=e.prefetchCache.get(M);if(!T){let t={data:(0,n.fetchServerResponse)(r,e.tree,e.nextUrl,e.buildId,void 0),kind:s.PrefetchKind.TEMPORARY,prefetchTime:Date.now(),treeAtTimeOfPrefetch:e.tree,lastUsedTime:null};e.prefetchCache.set(M,t),T=t}let x=(0,p.getPrefetchEntryCacheStatus)(T),{treeAtTimeOfPrefetch:C,data:N}=T;return y.prefetchQueue.bump(N),N.then(t=>{let[s,h,y]=t;if(T&&!T.lastUsedTime&&(T.lastUsedTime=Date.now()),"string"==typeof s)return g(e,R,s,w);let b=e.tree,P=e.cache,j=[];for(let t of s){let o=t.slice(0,-4),s=t.slice(-3)[0],f=["",...o],h=(0,a.applyRouterStatePatchToTreeSkipDefault)(f,b,s);if(null===h&&(h=(0,a.applyRouterStatePatchToTreeSkipDefault)(f,C,s)),null!==h){if((0,c.isNavigatingToNewRootLayout)(b,h))return g(e,R,E,w);let a=(0,_.createEmptyCacheNode)(),O=(0,d.applyFlightData)(P,a,t,(null==T?void 0:T.kind)==="auto"&&x===p.PrefetchCacheEntryStatus.reusable);for(let t of((!O&&x===p.PrefetchCacheEntryStatus.stale||y)&&(O=function(e,t,r,n,o){let u=!1;for(let a of(e.rsc=t.rsc,e.prefetchRsc=t.prefetchRsc,e.parallelRoutes=new Map(t.parallelRoutes),m(n).map(e=>[...r,...e])))(0,l.fillCacheWithDataProperty)(e,t,a,o),u=!0;return u}(a,P,o,s,()=>(0,n.fetchServerResponse)(r,b,e.nextUrl,e.buildId))),(0,i.shouldHardNavigate)(f,b)?(a.rsc=P.rsc,a.prefetchRsc=P.prefetchRsc,(0,u.invalidateCacheBelowFlightSegmentPath)(a,P,o),R.cache=a):O&&(R.cache=a),P=a,b=h,m(s))){let e=[...o,...t];e[e.length-1]!==v.DEFAULT_SEGMENT_KEY&&j.push(e)}}}return R.patchedTree=b,R.canonicalUrl=h?(0,o.createHrefFromUrl)(h):E,R.pendingPush=w,R.scrollableSegments=j,R.hashFragment=S,R.shouldScroll=O,(0,f.handleMutable)(e,R)},()=>e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5678:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{prefetchQueue:function(){return c},prefetchReducer:function(){return s}});let n=r(3546),o=r(1414),u=r(7052),l=r(2275),a=r(2418),i=r(5606),c=new a.PromiseQueue(5);function s(e,t){(0,u.prunePrefetchCache)(e.prefetchCache);let{url:r}=t;r.searchParams.delete(l.NEXT_RSC_UNION_QUERY);let a=(0,i.createPrefetchCacheKey)(r,e.nextUrl),s=e.prefetchCache.get(a);if(s&&(s.kind===o.PrefetchKind.TEMPORARY&&e.prefetchCache.set(a,{...s,kind:t.kind}),!(s.kind===o.PrefetchKind.AUTO&&t.kind===o.PrefetchKind.FULL)))return e;let f=c.enqueue(()=>(0,n.fetchServerResponse)(r,e.tree,e.nextUrl,e.buildId,t.kind));return e.prefetchCache.set(a,{treeAtTimeOfPrefetch:e.tree,data:f,kind:t.kind,prefetchTime:Date.now(),lastUsedTime:null}),e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7052:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"prunePrefetchCache",{enumerable:!0,get:function(){return o}});let n=r(1486);function o(e){for(let[t,r]of e)(0,n.getPrefetchEntryCacheStatus)(r)===n.PrefetchCacheEntryStatus.expired&&e.delete(t)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7491:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"refreshReducer",{enumerable:!0,get:function(){return d}});let n=r(3546),o=r(8419),u=r(7098),l=r(1956),a=r(5596),i=r(8875),c=r(4765),s=r(7690),f=r(2224);function d(e,t){let{origin:r}=t,d={},p=e.canonicalUrl,h=e.tree;d.preserveCustomHistoryState=!1;let y=(0,s.createEmptyCacheNode)();return y.lazyData=(0,n.fetchServerResponse)(new URL(p,r),[h[0],h[1],h[2],"refetch"],e.nextUrl,e.buildId),y.lazyData.then(r=>{let[n,s]=r;if("string"==typeof n)return(0,a.handleExternalUrl)(e,d,n,e.pushRef.pendingPush);for(let r of(y.lazyData=null,n)){if(3!==r.length)return console.log("REFRESH FAILED"),e;let[n]=r,i=(0,u.applyRouterStatePatchToFullTree)([""],h,n);if(null===i)return(0,f.handleSegmentMismatch)(e,t,n);if((0,l.isNavigatingToNewRootLayout)(h,i))return(0,a.handleExternalUrl)(e,d,p,e.pushRef.pendingPush);let _=s?(0,o.createHrefFromUrl)(s):void 0;s&&(d.canonicalUrl=_);let[v,b]=r.slice(-2);if(null!==v){let e=v[2];y.rsc=e,y.prefetchRsc=null,(0,c.fillLazyItemsTillLeafWithHead)(y,void 0,n,v,b),d.cache=y,d.prefetchCache=new Map}d.patchedTree=i,d.canonicalUrl=p,h=i}return(0,i.handleMutable)(e,d)},()=>e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7222:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"restoreReducer",{enumerable:!0,get:function(){return u}});let n=r(8419),o=r(4038);function u(e,t){var r;let{url:u,tree:l}=t,a=(0,n.createHrefFromUrl)(u),i=l||e.tree,c=e.cache;return{buildId:e.buildId,canonicalUrl:a,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:e.focusAndScrollRef,cache:c,prefetchCache:e.prefetchCache,tree:i,nextUrl:null!=(r=(0,o.extractPathFromFlightRouterState)(i))?r:u.pathname}}r(6384),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},899:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverActionReducer",{enumerable:!0,get:function(){return b}});let n=r(5355),o=r(2275),u=r(5786),l=r(8419),a=r(5596),i=r(7098),c=r(1956),s=r(8875),f=r(4765),d=r(7690),p=r(4038),h=r(2224),{createFromFetch:y,encodeReply:_}=r(6671);async function v(e,t){let r,{actionId:l,actionArgs:a}=t,i=await _(a),c=(0,p.extractPathFromFlightRouterState)(e.tree),s=e.nextUrl&&e.nextUrl!==c,f=await fetch("",{method:"POST",headers:{Accept:o.RSC_CONTENT_TYPE_HEADER,[o.ACTION]:l,[o.NEXT_ROUTER_STATE_TREE]:encodeURIComponent(JSON.stringify(e.tree)),...s?{[o.NEXT_URL]:e.nextUrl}:{}},body:i}),d=f.headers.get("x-action-redirect");try{let e=JSON.parse(f.headers.get("x-action-revalidated")||"[[],0,0]");r={paths:e[0]||[],tag:!!e[1],cookie:e[2]}}catch(e){r={paths:[],tag:!1,cookie:!1}}let h=d?new URL((0,u.addBasePath)(d),new URL(e.canonicalUrl,window.location.href)):void 0;if(f.headers.get("content-type")===o.RSC_CONTENT_TYPE_HEADER){let e=await y(Promise.resolve(f),{callServer:n.callServer});if(d){let[,t]=null!=e?e:[];return{actionFlightData:t,redirectLocation:h,revalidatedParts:r}}let[t,[,o]]=null!=e?e:[];return{actionResult:t,actionFlightData:o,redirectLocation:h,revalidatedParts:r}}return{redirectLocation:h,revalidatedParts:r}}function b(e,t){let{resolve:r,reject:n}=t,o={},u=e.canonicalUrl,p=e.tree;return o.preserveCustomHistoryState=!1,o.inFlightServerAction=v(e,t),o.inFlightServerAction.then(n=>{let{actionResult:y,actionFlightData:_,redirectLocation:v}=n;if(v&&(e.pushRef.pendingPush=!0,o.pendingPush=!0),!_)return(r(y),v)?(0,a.handleExternalUrl)(e,o,v.href,e.pushRef.pendingPush):e;if("string"==typeof _)return(0,a.handleExternalUrl)(e,o,_,e.pushRef.pendingPush);for(let r of(o.inFlightServerAction=null,_)){if(3!==r.length)return console.log("SERVER ACTION APPLY FAILED"),e;let[n]=r,l=(0,i.applyRouterStatePatchToFullTree)([""],p,n);if(null===l)return(0,h.handleSegmentMismatch)(e,t,n);if((0,c.isNavigatingToNewRootLayout)(p,l))return(0,a.handleExternalUrl)(e,o,u,e.pushRef.pendingPush);let[s,y]=r.slice(-2),_=null!==s?s[2]:null;if(null!==_){let e=(0,d.createEmptyCacheNode)();e.rsc=_,e.prefetchRsc=null,(0,f.fillLazyItemsTillLeafWithHead)(e,void 0,n,s,y),o.cache=e,o.prefetchCache=new Map}o.patchedTree=l,o.canonicalUrl=u,p=l}if(v){let e=(0,l.createHrefFromUrl)(v,!1);o.canonicalUrl=e}return r(y),(0,s.handleMutable)(e,o)},t=>(n(t.reason),e))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4173:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverPatchReducer",{enumerable:!0,get:function(){return f}});let n=r(8419),o=r(7098),u=r(1956),l=r(5596),a=r(9671),i=r(8875),c=r(7690),s=r(2224);function f(e,t){let{flightData:r,overrideCanonicalUrl:f}=t,d={};if(d.preserveCustomHistoryState=!1,"string"==typeof r)return(0,l.handleExternalUrl)(e,d,r,e.pushRef.pendingPush);let p=e.tree,h=e.cache;for(let i of r){let r=i.slice(0,-4),[y]=i.slice(-3,-2),_=(0,o.applyRouterStatePatchToTreeSkipDefault)(["",...r],p,y);if(null===_)return(0,s.handleSegmentMismatch)(e,t,y);if((0,u.isNavigatingToNewRootLayout)(p,_))return(0,l.handleExternalUrl)(e,d,e.canonicalUrl,e.pushRef.pendingPush);let v=f?(0,n.createHrefFromUrl)(f):void 0;v&&(d.canonicalUrl=v);let b=(0,c.createEmptyCacheNode)();(0,a.applyFlightData)(h,b,i),d.patchedTree=_,d.cache=b,h=b,p=_}return(0,i.handleMutable)(e,d)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1414:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PrefetchKind:function(){return r},ACTION_REFRESH:function(){return o},ACTION_NAVIGATE:function(){return u},ACTION_RESTORE:function(){return l},ACTION_SERVER_PATCH:function(){return a},ACTION_PREFETCH:function(){return i},ACTION_FAST_REFRESH:function(){return c},ACTION_SERVER_ACTION:function(){return s},isThenable:function(){return f}});let o="refresh",u="navigate",l="restore",a="server-patch",i="prefetch",c="fast-refresh",s="server-action";function f(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(n=r||(r={})).AUTO="auto",n.FULL="full",n.TEMPORARY="temporary",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6878:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"reducer",{enumerable:!0,get:function(){return f}});let n=r(1414),o=r(5596),u=r(4173),l=r(7222),a=r(7491),i=r(5678),c=r(6503),s=r(899),f="undefined"==typeof window?function(e,t){return e}:function(e,t){switch(t.type){case n.ACTION_NAVIGATE:return(0,o.navigateReducer)(e,t);case n.ACTION_SERVER_PATCH:return(0,u.serverPatchReducer)(e,t);case n.ACTION_RESTORE:return(0,l.restoreReducer)(e,t);case n.ACTION_REFRESH:return(0,a.refreshReducer)(e,t);case n.ACTION_FAST_REFRESH:return(0,c.fastRefreshReducer)(e,t);case n.ACTION_PREFETCH:return(0,i.prefetchReducer)(e,t);case n.ACTION_SERVER_ACTION:return(0,s.serverActionReducer)(e,t);default:throw Error("Unknown action")}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3556:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"shouldHardNavigate",{enumerable:!0,get:function(){return function e(t,r){let[o,u]=r,[l,a]=t;return(0,n.matchSegment)(l,o)?!(t.length<=2)&&e(t.slice(2),u[a]):!!Array.isArray(l)}}});let n=r(2295);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5797:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createSearchParamsBailoutProxy",{enumerable:!0,get:function(){return o}});let n=r(8181);function o(){return new Proxy({},{get(e,t){"string"==typeof t&&(0,n.staticGenerationBailout)("searchParams."+t)}})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"staticGenerationAsyncStorage",{enumerable:!0,get:function(){return n}});let n=(0,r(693).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8181:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{isStaticGenBailoutError:function(){return a},staticGenerationBailout:function(){return c}});let n=r(7127),o=r(2),u="NEXT_STATIC_GEN_BAILOUT";class l extends Error{constructor(...e){super(...e),this.code=u}}function a(e){return"object"==typeof e&&null!==e&&"code"in e&&e.code===u}function i(e,t){let{dynamic:r,link:n}=t||{};return"Page"+(r?' with `dynamic = "'+r+'"`':"")+" couldn't be rendered statically because it used `"+e+"`."+(n?" See more info here: "+n:"")}let c=(e,t)=>{let{dynamic:r,link:u}=void 0===t?{}:t,a=o.staticGenerationAsyncStorage.getStore();if(!a)return!1;if(a.forceStatic)return!0;if(a.dynamicShouldError)throw new l(i(e,{link:u,dynamic:null!=r?r:"error"}));let c=i(e,{dynamic:r,link:"https://nextjs.org/docs/messages/dynamic-server-error"});if(null==a.postpone||a.postpone.call(a,e),a.revalidate=0,a.isStaticGeneration){let t=new n.DynamicServerError(c);throw a.dynamicUsageDescription=e,a.dynamicUsageStack=t.stack,t}return!1};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7831:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}}),r(6921);let n=r(7437);r(2265);let o=r(5797);function u(e){let{Component:t,propsForComponent:r,isStaticGeneration:u}=e;if(u){let e=(0,o.createSearchParamsBailoutProxy)();return(0,n.jsx)(t,{searchParams:e,...r})}return(0,n.jsx)(t,{...r})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1276:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{useUnwrapState:function(){return a},useReducerWithReduxDevtools:function(){return i}});let n=r(1884)._(r(2265)),o=r(1414),u=r(5367);function l(e){if(e instanceof Map){let t={};for(let[r,n]of e.entries()){if("function"==typeof n){t[r]="fn()";continue}if("object"==typeof n&&null!==n){if(n.$$typeof){t[r]=n.$$typeof.toString();continue}if(n._bundlerConfig){t[r]="FlightData";continue}}t[r]=l(n)}return t}if("object"==typeof e&&null!==e){let t={};for(let r in e){let n=e[r];if("function"==typeof n){t[r]="fn()";continue}if("object"==typeof n&&null!==n){if(n.$$typeof){t[r]=n.$$typeof.toString();continue}if(n.hasOwnProperty("_bundlerConfig")){t[r]="FlightData";continue}}t[r]=l(n)}return t}return Array.isArray(e)?e.map(l):e}function a(e){return(0,o.isThenable)(e)?(0,n.use)(e):e}let i="undefined"!=typeof window?function(e){let[t,r]=n.default.useState(e),o=(0,n.useContext)(u.ActionQueueContext);if(!o)throw Error("Invariant: Missing ActionQueueContext");let a=(0,n.useRef)(),i=(0,n.useRef)();return(0,n.useEffect)(()=>{if(!a.current&&!1!==i.current){if(void 0===i.current&&void 0===window.__REDUX_DEVTOOLS_EXTENSION__){i.current=!1;return}return a.current=window.__REDUX_DEVTOOLS_EXTENSION__.connect({instanceId:8e3,name:"next-router"}),a.current&&(a.current.init(l(e)),o&&(o.devToolsInstance=a.current)),()=>{a.current=void 0}}},[e,o]),[t,(0,n.useCallback)(t=>{o.state||(o.state=e),o.dispatch(t,r)},[o,e]),(0,n.useCallback)(e=>{a.current&&a.current.send({type:"RENDER_SYNC"},l(e))},[])]}:function(e){return[e,()=>{},()=>{}]};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7379:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});let n=r(7027);function o(e){return(0,n.pathHasPrefix)(e,"")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2139:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return u}});let n=r(5868),o=r(6506),u=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:r,hash:u}=(0,o.parsePath)(e);return/\.[^/]+\/?$/.test(t)?""+(0,n.removeTrailingSlash)(t)+r+u:t.endsWith("/")?""+t+r+u:t+"/"+r+u};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4101:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let n=r(9775);function o(e){let t="function"==typeof reportError?reportError:e=>{window.console.error(e)};(0,n.isBailoutToCSRError)(e)||t(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8895:function(e,t,r){"use strict";function n(e){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeBasePath",{enumerable:!0,get:function(){return n}}),r(7379),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2531:function(e,t){"use strict";function r(e,t){var r=e.length;for(e.push(t);0>>1,o=e[n];if(0>>1;nu(i,r))cu(s,i)?(e[n]=s,e[c]=r,n=c):(e[n]=i,e[a]=r,n=a);else if(cu(s,r))e[n]=s,e[c]=r,n=c;else break}}return t}function u(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var l,a=performance;t.unstable_now=function(){return a.now()}}else{var i=Date,c=i.now();t.unstable_now=function(){return i.now()-c}}var s=[],f=[],d=1,p=null,h=3,y=!1,_=!1,v=!1,b="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,m="undefined"!=typeof setImmediate?setImmediate:null;function P(e){for(var t=n(f);null!==t;){if(null===t.callback)o(f);else if(t.startTime<=e)o(f),t.sortIndex=t.expirationTime,r(s,t);else break;t=n(f)}}function j(e){if(v=!1,P(e),!_){if(null!==n(s))_=!0,C();else{var t=n(f);null!==t&&N(j,t.startTime-e)}}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var O=!1,R=-1,S=5,E=-1;function w(){return!(t.unstable_now()-Ee&&w());){var a=p.callback;if("function"==typeof a){p.callback=null,h=p.priorityLevel;var i=a(p.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof i){p.callback=i,P(e),r=!0;break t}p===n(s)&&o(s),P(e)}else o(s);p=n(s)}if(null!==p)r=!0;else{var c=n(f);null!==c&&N(j,c.startTime-e),r=!1}}break e}finally{p=null,h=u,y=!1}r=void 0}}finally{r?l():O=!1}}}if("function"==typeof m)l=function(){m(M)};else if("undefined"!=typeof MessageChannel){var T=new MessageChannel,x=T.port2;T.port1.onmessage=M,l=function(){x.postMessage(null)}}else l=function(){b(M,0)};function C(){O||(O=!0,l())}function N(e,r){R=b(function(){e(t.unstable_now())},r)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){_||y||(_=!0,C())},t.unstable_forceFrameRate=function(e){0>e||125l?(e.sortIndex=u,r(f,e),null===n(s)&&e===n(f)&&(v?(g(R),R=-1):v=!0,N(j,u-l))):(e.sortIndex=a,r(s,e),_||y||(_=!0,C())),e},t.unstable_shouldYield=w,t.unstable_wrapCallback=function(e){var t=h;return function(){var r=h;h=t;try{return e.apply(this,arguments)}finally{h=r}}}},8172:function(e,t,r){"use strict";e.exports=r(2531)},2883:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentParam",{enumerable:!0,get:function(){return o}});let n=r(4749);function o(e){let t=n.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t));return(t&&(e=e.slice(t.length)),e.startsWith("[[...")&&e.endsWith("]]"))?{type:"optional-catchall",param:e.slice(5,-2)}:e.startsWith("[...")&&e.endsWith("]")?{type:"catchall",param:e.slice(4,-1)}:e.startsWith("[")&&e.endsWith("]")?{type:"dynamic",param:e.slice(1,-1)}:null}},4749:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{INTERCEPTION_ROUTE_MARKERS:function(){return o},isInterceptionRouteAppPath:function(){return u},extractInterceptionRouteInformation:function(){return l}});let n=r(7178),o=["(..)(..)","(.)","(..)","(...)"];function u(e){return void 0!==e.split("/").find(e=>o.find(t=>e.startsWith(t)))}function l(e){let t,r,u;for(let n of e.split("/"))if(r=o.find(e=>n.startsWith(e))){[t,u]=e.split(r,2);break}if(!t||!r||!u)throw Error(`Invalid interception route: ${e}. Must be in the format //(..|...|..)(..)/`);switch(t=(0,n.normalizeAppPath)(t),r){case"(.)":u="/"===t?`/${u}`:t+"/"+u;break;case"(..)":if("/"===t)throw Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`);u=t.split("/").slice(0,-1).concat(u).join("/");break;case"(...)":u="/"+u;break;case"(..)(..)":let l=t.split("/");if(l.length<=2)throw Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`);u=l.slice(0,-2).concat(u).join("/");break;default:throw Error("Invariant: unexpected marker")}return{interceptingRoute:t,interceptedRoute:u}}},8599:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{AppRouterContext:function(){return o},LayoutRouterContext:function(){return u},GlobalLayoutRouterContext:function(){return l},TemplateContext:function(){return a},MissingSlotContext:function(){return i}});let n=r(6921)._(r(2265)),o=n.default.createContext(null),u=n.default.createContext(null),l=n.default.createContext(null),a=n.default.createContext(null),i=n.default.createContext(new Set)},1:function(e,t){"use strict";function r(e){let t=5381;for(let r=0;r>>0}function n(e){return r(e).toString(36).slice(0,5)}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{djb2Hash:function(){return r},hexHash:function(){return n}})},7484:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return n}});let n=r(6921)._(r(2265)).default.createContext({})},4758:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{SearchParamsContext:function(){return o},PathnameContext:function(){return u},PathParamsContext:function(){return l}});let n=r(2265),o=(0,n.createContext)(null),u=(0,n.createContext)(null),l=(0,n.createContext)(null)},9775:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{BailoutToCSRError:function(){return n},isBailoutToCSRError:function(){return o}});let r="BAILOUT_TO_CLIENT_SIDE_RENDERING";class n extends Error{constructor(e){super("Bail out to client-side rendering: "+e),this.reason=e,this.digest=r}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===r}},9798:function(e,t){"use strict";function r(e){return e.startsWith("/")?e:"/"+e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return r}})},5367:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ActionQueueContext:function(){return a},createMutableActionQueue:function(){return s}});let n=r(1884),o=r(1414),u=r(6878),l=n._(r(2265)),a=l.default.createContext(null);function i(e,t){null!==e.pending&&(e.pending=e.pending.next,null!==e.pending&&c({actionQueue:e,action:e.pending,setState:t}))}async function c(e){let{actionQueue:t,action:r,setState:n}=e,u=t.state;if(!u)throw Error("Invariant: Router state not initialized");t.pending=r;let l=r.payload,a=t.action(u,l);function c(e){if(r.discarded){t.needsRefresh&&null===t.pending&&(t.needsRefresh=!1,t.dispatch({type:o.ACTION_REFRESH,origin:window.location.origin},n));return}t.state=e,t.devToolsInstance&&t.devToolsInstance.send(l,e),i(t,n),r.resolve(e)}(0,o.isThenable)(a)?a.then(c,e=>{i(t,n),r.reject(e)}):c(a)}function s(){let e={state:null,dispatch:(t,r)=>(function(e,t,r){let n={resolve:r,reject:()=>{}};if(t.type!==o.ACTION_RESTORE){let e=new Promise((e,t)=>{n={resolve:e,reject:t}});(0,l.startTransition)(()=>{r(e)})}let u={payload:t,next:null,resolve:n.resolve,reject:n.reject};null===e.pending?(e.last=u,c({actionQueue:e,action:u,setState:r})):t.type===o.ACTION_NAVIGATE?(e.pending.discarded=!0,e.last=u,e.pending.payload.type===o.ACTION_SERVER_ACTION&&(e.needsRefresh=!0),c({actionQueue:e,action:u,setState:r})):(null!==e.last&&(e.last.next=u),e.last=u)})(e,t,r),action:async(e,t)=>{if(null===e)throw Error("Invariant: Router state not initialized");return(0,u.reducer)(e,t)},pending:null,last:null};return e}},1312:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return o}});let n=r(6506);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:o,hash:u}=(0,n.parsePath)(e);return""+t+r+o+u}},7178:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{normalizeAppPath:function(){return u},normalizeRscURL:function(){return l}});let n=r(9798),o=r(3266);function u(e){return(0,n.ensureLeadingSlash)(e.split("/").reduce((e,t,r,n)=>!t||(0,o.isGroupSegment)(t)||"@"===t[0]||("page"===t||"route"===t)&&r===n.length-1?e:e+"/"+t,""))}function l(e){return e.replace(/\.rsc($|\?)/,"$1")}},3011:function(e,t){"use strict";function r(e,t){if(void 0===t&&(t={}),t.onlyHashChange){e();return}let r=document.documentElement,n=r.style.scrollBehavior;r.style.scrollBehavior="auto",t.dontForceLayout||r.getClientRects(),e(),r.style.scrollBehavior=n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSmoothScroll",{enumerable:!0,get:function(){return r}})},6407:function(e,t){"use strict";function r(e){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isBot",{enumerable:!0,get:function(){return r}})},6506:function(e,t){"use strict";function r(e){let t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r-1?{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return r}})},7027:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return o}});let n=r(6506);function o(e,t){if("string"!=typeof e)return!1;let{pathname:r}=(0,n.parsePath)(e);return r===t||r.startsWith(t+"/")}},5868:function(e,t){"use strict";function r(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return r}})},3266:function(e,t){"use strict";function r(e){return"("===e[0]&&e.endsWith(")")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{isGroupSegment:function(){return r},PAGE_SEGMENT_KEY:function(){return n},DEFAULT_SEGMENT_KEY:function(){return o}});let n="__PAGE__",o="__DEFAULT__"},2472:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ServerInsertedHTMLContext:function(){return o},useServerInsertedHTML:function(){return u}});let n=r(1884)._(r(2265)),o=n.default.createContext(null);function u(e){let t=(0,n.useContext)(o);t&&t(e)}},6184:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},693:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return u}});let r=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class n{disable(){throw r}getStore(){}run(){throw r}exit(){throw r}enterWith(){throw r}}let o=globalThis.AsyncLocalStorage;function u(){return o?new o:new n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4040:function(e,t,r){"use strict";var n=r(4887);t.createRoot=n.createRoot,t.hydrateRoot=n.hydrateRoot},4887:function(e,t,r){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(4417)},7950:function(e,t,r){"use strict";var n=r(4887),o=r(2265),u={stream:!0},l=new Map;function a(e){var t=r(e);return"function"!=typeof t.then||"fulfilled"===t.status?null:(t.then(function(e){t.status="fulfilled",t.value=e},function(e){t.status="rejected",t.reason=e}),t)}function i(){}var c=new Map,s=r.u;r.u=function(e){var t=c.get(e);return void 0!==t?t:s(e)};var f=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,d=Symbol.for("react.element"),p=Symbol.for("react.provider"),h=Symbol.for("react.server_context"),y=Symbol.for("react.lazy"),_=Symbol.for("react.default_value"),v=Symbol.iterator,b=Array.isArray,g=Object.getPrototypeOf,m=Object.prototype,P=new WeakMap,j=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ContextRegistry;function O(e,t,r,n){this.status=e,this.value=t,this.reason=r,this._response=n}function R(e){switch(e.status){case"resolved_model":C(e);break;case"resolved_module":N(e)}switch(e.status){case"fulfilled":return e.value;case"pending":case"blocked":case"cyclic":throw e;default:throw e.reason}}function S(e,t){for(var r=0;rh?(_=h,h=3,p++):(_=0,h=3);continue;case 2:44===(g=d[p++])?h=4:v=v<<4|(96d.length&&(g=-1)}var m=d.byteOffset+p;if(-11?t-1:0),r=1;r{})}}function _(e){return"string"==typeof e?e:(0,u.formatUrl)(e)}let P=i.default.forwardRef(function(e,t){let n,r;let{href:u,as:y,children:P,prefetch:v=null,passHref:R,replace:O,shallow:j,scroll:E,locale:S,onClick:w,onMouseEnter:x,onTouchStart:M,legacyBehavior:N=!1,...C}=e;n=P,N&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let k=i.default.useContext(f.RouterContext),I=i.default.useContext(d.AppRouterContext),T=null!=k?k:I,L=!k,U=!1!==v,A=null===v?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,{href:W,as:D}=i.default.useMemo(()=>{if(!k){let e=_(u);return{href:e,as:y?_(y):e}}let[e,t]=(0,a.resolveHref)(k,u,!0);return{href:e,as:y?(0,a.resolveHref)(k,y):t||e}},[k,u,y]),z=i.default.useRef(W),K=i.default.useRef(D);N&&(r=i.default.Children.only(n));let q=N?r&&"object"==typeof r&&r.ref:t,[F,$,B]=(0,p.useIntersection)({rootMargin:"200px"}),Y=i.default.useCallback(e=>{(K.current!==D||z.current!==W)&&(B(),K.current=D,z.current=W),F(e),q&&("function"==typeof q?q(e):"object"==typeof q&&(q.current=e))},[D,q,W,B,F]);i.default.useEffect(()=>{T&&$&&U&&b(T,W,D,{locale:S},{kind:A},L)},[D,W,$,S,U,null==k?void 0:k.locale,T,L,A]);let Q={ref:Y,onClick(e){N||"function"!=typeof w||w(e),N&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),T&&!e.defaultPrevented&&function(e,t,n,r,o,a,u,s,c){let{nodeName:f}=e.currentTarget;if("A"===f.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,l.isLocalURL)(n)))return;e.preventDefault();let d=()=>{let e=null==u||u;"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:a,locale:s,scroll:e}):t[o?"replace":"push"](r||n,{scroll:e})};c?i.default.startTransition(d):d()}(e,T,W,D,O,j,E,S,L)},onMouseEnter(e){N||"function"!=typeof x||x(e),N&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),T&&(U||!L)&&b(T,W,D,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:A},L)},onTouchStart(e){N||"function"!=typeof M||M(e),N&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),T&&(U||!L)&&b(T,W,D,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:A},L)}};if((0,s.isAbsoluteUrl)(D))Q.href=D;else if(!N||R||"a"===r.type&&!("href"in r.props)){let e=void 0!==S?S:null==k?void 0:k.locale,t=(null==k?void 0:k.isLocaleDomain)&&(0,h.getDomainLocale)(D,e,null==k?void 0:k.locales,null==k?void 0:k.domainLocales);Q.href=t||(0,m.addBasePath)((0,c.addLocale)(D,e,null==k?void 0:k.defaultLocale))}return N?i.default.cloneElement(r,Q):(0,o.jsx)("a",{...C,...Q,children:n})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2185:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{requestIdleCallback:function(){return n},cancelIdleCallback:function(){return r}});let n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4542:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return f}});let r=n(5770),o=n(1030),i=n(4544),a=n(6874),l=n(2139),u=n(7434),s=n(2360),c=n(6735);function f(e,t,n){let f;let d="string"==typeof t?t:(0,o.formatWithValidation)(t),p=d.match(/^[a-zA-Z]{1,}:\/\//),h=p?d.slice(p[0].length):d;if((h.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+d+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,a.normalizeRepeatedSlashes)(h);d=(p?p[0]:"")+t}if(!(0,u.isLocalURL)(d))return n?[d]:d;try{f=new URL(d.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){f=new URL("/","http://n")}try{let e=new URL(d,f);e.pathname=(0,l.normalizePathTrailingSlash)(e.pathname);let t="";if((0,s.isDynamicRoute)(e.pathname)&&e.searchParams&&n){let n=(0,r.searchParamsToUrlQuery)(e.searchParams),{result:a,params:l}=(0,c.interpolateAs)(e.pathname,e.pathname,n);a&&(t=(0,o.formatWithValidation)({pathname:a,hash:e.hash,query:(0,i.omit)(n,l)}))}let a=e.origin===f.origin?e.href.slice(e.origin.length):e.href;return n?[a,t||a]:a}catch(e){return n?[d]:d}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5291:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});let r=n(2265),o=n(2185),i="function"==typeof IntersectionObserver,a=new Map,l=[];function u(e){let{rootRef:t,rootMargin:n,disabled:u}=e,s=u||!i,[c,f]=(0,r.useState)(!1),d=(0,r.useRef)(null),p=(0,r.useCallback)(e=>{d.current=e},[]);return(0,r.useEffect)(()=>{if(i){if(s||c)return;let e=d.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:o,elements:i}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=l.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.get(r)))return t;let o=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:o},l.push(n),a.set(n,t),t}(n);return i.set(e,t),o.observe(e),function(){if(i.delete(e),o.unobserve(e),0===i.size){o.disconnect(),a.delete(r);let e=l.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&l.splice(e,1)}}}(e,e=>e&&f(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!c){let e=(0,o.requestIdleCallback)(()=>f(!0));return()=>(0,o.cancelIdleCallback)(e)}},[s,n,t,c,d.current]),[p,c,(0,r.useCallback)(()=>{f(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2202:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return o}});let n=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function o(e){return n.test(e)?e.replace(r,"\\$&"):e}},6993:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return r}});let r=n(6921)._(n(2265)).default.createContext(null)},1030:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{formatUrl:function(){return i},urlObjectKeys:function(){return a},formatWithValidation:function(){return l}});let r=n(1884)._(n(5770)),o=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:n}=e,i=e.protocol||"",a=e.pathname||"",l=e.hash||"",u=e.query||"",s=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?s=t+e.host:n&&(s=t+(~n.indexOf(":")?"["+n+"]":n),e.port&&(s+=":"+e.port)),u&&"object"==typeof u&&(u=String(r.urlQueryToSearchParams(u)));let c=e.search||u&&"?"+u||"";return i&&!i.endsWith(":")&&(i+=":"),e.slashes||(!i||o.test(i))&&!1!==s?(s="//"+(s||""),a&&"/"!==a[0]&&(a="/"+a)):s||(s=""),l&&"#"!==l[0]&&(l="#"+l),c&&"?"!==c[0]&&(c="?"+c),""+i+s+(a=a.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+l}let a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function l(e){return i(e)}},2360:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});let r=n(7409),o=n(1305)},6735:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return i}});let r=n(2395),o=n(9935);function i(e,t,n){let i="",a=(0,o.getRouteRegex)(e),l=a.groups,u=(t!==e?(0,r.getRouteMatcher)(a)(t):"")||n;i=e;let s=Object.keys(l);return s.every(e=>{let t=u[e]||"",{repeat:n,optional:r}=l[e],o="["+(n?"...":"")+e+"]";return r&&(o=(t?"":"/")+"["+o+"]"),n&&!Array.isArray(t)&&(t=[t]),(r||e in u)&&(i=i.replace(o,n?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(i=""),{params:s,result:i}}},1305:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return i}});let r=n(4749),o=/\/\[[^/]+?\](?=\/|$)/;function i(e){return(0,r.isInterceptionRouteAppPath)(e)&&(e=(0,r.extractInterceptionRouteInformation)(e).interceptedRoute),o.test(e)}},7434:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return i}});let r=n(6874),o=n(7379);function i(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,o.hasBasePath)(n.pathname)}catch(e){return!1}}},4544:function(e,t){function n(e,t){let n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return n}})},5770:function(e,t){function n(e){let t={};return e.forEach((e,n)=>{void 0===t[n]?t[n]=e:Array.isArray(t[n])?t[n].push(e):t[n]=[t[n],e]}),t}function r(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[n,o]=e;Array.isArray(o)?o.forEach(e=>t.append(n,r(e))):t.set(n,r(o))}),t}function i(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,n)=>e.append(n,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return o},assign:function(){return i}})},2395:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return o}});let r=n(6874);function o(e){let{re:t,groups:n}=e;return e=>{let o=t.exec(e);if(!o)return!1;let i=e=>{try{return decodeURIComponent(e)}catch(e){throw new r.DecodeError("failed to decode param")}},a={};return Object.keys(n).forEach(e=>{let t=n[e],r=o[t.pos];void 0!==r&&(a[e]=~r.indexOf("/")?r.split("/").map(e=>i(e)):t.repeat?[i(r)]:i(r))}),a}}},9935:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getRouteRegex:function(){return u},getNamedRouteRegex:function(){return f},getNamedMiddlewareRegex:function(){return d}});let r=n(4749),o=n(2202),i=n(5868);function a(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let n=e.startsWith("...");return n&&(e=e.slice(3)),{key:e,repeat:n,optional:t}}function l(e){let t=(0,i.removeTrailingSlash)(e).slice(1).split("/"),n={},l=1;return{parameterizedRoute:t.map(e=>{let t=r.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),i=e.match(/\[((?:\[.*\])|.+)\]/);if(t&&i){let{key:e,optional:r,repeat:u}=a(i[1]);return n[e]={pos:l++,repeat:u,optional:r},"/"+(0,o.escapeStringRegexp)(t)+"([^/]+?)"}if(!i)return"/"+(0,o.escapeStringRegexp)(e);{let{key:e,repeat:t,optional:r}=a(i[1]);return n[e]={pos:l++,repeat:t,optional:r},t?r?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:n}}function u(e){let{parameterizedRoute:t,groups:n}=l(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:n}}function s(e){let{interceptionMarker:t,getSafeRouteKey:n,segment:r,routeKeys:i,keyPrefix:l}=e,{key:u,optional:s,repeat:c}=a(r),f=u.replace(/\W/g,"");l&&(f=""+l+f);let d=!1;(0===f.length||f.length>30)&&(d=!0),isNaN(parseInt(f.slice(0,1)))||(d=!0),d&&(f=n()),l?i[f]=""+l+u:i[f]=u;let p=t?(0,o.escapeStringRegexp)(t):"";return c?s?"(?:/"+p+"(?<"+f+">.+?))?":"/"+p+"(?<"+f+">.+?)":"/"+p+"(?<"+f+">[^/]+?)"}function c(e,t){let n;let a=(0,i.removeTrailingSlash)(e).slice(1).split("/"),l=(n=0,()=>{let e="",t=++n;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),u={};return{namedParameterizedRoute:a.map(e=>{let n=r.INTERCEPTION_ROUTE_MARKERS.some(t=>e.startsWith(t)),i=e.match(/\[((?:\[.*\])|.+)\]/);if(n&&i){let[n]=e.split(i[0]);return s({getSafeRouteKey:l,interceptionMarker:n,segment:i[1],routeKeys:u,keyPrefix:t?"nxtI":void 0})}return i?s({getSafeRouteKey:l,segment:i[1],routeKeys:u,keyPrefix:t?"nxtP":void 0}):"/"+(0,o.escapeStringRegexp)(e)}).join(""),routeKeys:u}}function f(e,t){let n=c(e,t);return{...u(e),namedRegex:"^"+n.namedParameterizedRoute+"(?:/)?$",routeKeys:n.routeKeys}}function d(e,t){let{parameterizedRoute:n}=l(e),{catchAll:r=!0}=t;if("/"===n)return{namedRegex:"^/"+(r?".*":"")+"$"};let{namedParameterizedRoute:o}=c(e,!1);return{namedRegex:"^"+o+(r?"(?:(/.*)?)":"")+"$"}}},7409:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class n{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let n=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&n.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');n.unshift(t)}return null!==this.restSlugName&&n.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&n.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),n}_insert(e,t,r){if(0===e.length){this.placeholder=!1;return}if(r)throw Error("Catch-all must be the last part of the URL.");let o=e[0];if(o.startsWith("[")&&o.endsWith("]")){let n=o.slice(1,-1),a=!1;if(n.startsWith("[")&&n.endsWith("]")&&(n=n.slice(1,-1),a=!0),n.startsWith("...")&&(n=n.substring(3),r=!0),n.startsWith("[")||n.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+n+"').");if(n.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+n+"').");function i(e,n){if(null!==e&&e!==n)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+n+"').");t.forEach(e=>{if(e===n)throw Error('You cannot have the same slug name "'+n+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===o.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+n+'" differ only by non-word symbols within a single dynamic path')}),t.push(n)}if(r){if(a){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');i(this.optionalRestSlugName,n),this.optionalRestSlugName=n,o="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');i(this.restSlugName,n),this.restSlugName=n,o="[...]"}}else{if(a)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');i(this.slugName,n),this.slugName=n,o="[]"}}this.children.has(o)||this.children.set(o,new n),this.children.get(o)._insert(e.slice(1),t,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(e){let t=new n;return e.forEach(e=>t.insert(e)),t.smoosh()}},6874:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{WEB_VITALS:function(){return n},execOnce:function(){return r},isAbsoluteUrl:function(){return i},getLocationOrigin:function(){return a},getURL:function(){return l},getDisplayName:function(){return u},isResSent:function(){return s},normalizeRepeatedSlashes:function(){return c},loadGetInitialProps:function(){return f},SP:function(){return d},ST:function(){return p},DecodeError:function(){return h},NormalizeError:function(){return m},PageNotFoundError:function(){return g},MissingStaticPage:function(){return y},MiddlewareNotFoundError:function(){return b},stringifyError:function(){return _}});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(e){let t,n=!1;return function(){for(var r=arguments.length,o=Array(r),i=0;io.test(e);function a(){let{protocol:e,hostname:t,port:n}=window.location;return e+"//"+t+(n?":"+n:"")}function l(){let{href:e}=window.location,t=a();return e.substring(t.length)}function u(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function s(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function f(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await f(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&s(n))return r;if(!r)throw Error('"'+u(e)+'.getInitialProps()" should resolve to an object. But found "'+r+'" instead.');return r}let d="undefined"!=typeof performance,p=d&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class h extends Error{}class m extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class y extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class b extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function _(e){return JSON.stringify({message:e.message,stack:e.stack})}}}]); \ No newline at end of file diff --git a/.firebase/sideline-sidekick-app/hosting/_next/static/chunks/946-01042e4cef7cc714.js b/.firebase/sideline-sidekick-app/hosting/_next/static/chunks/946-01042e4cef7cc714.js new file mode 100644 index 0000000..f85bbcf --- /dev/null +++ b/.firebase/sideline-sidekick-app/hosting/_next/static/chunks/946-01042e4cef7cc714.js @@ -0,0 +1,5 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[946],{1939:function(e){"use strict";e.exports=function(e,t,n,r,i,o,a,s){if(!e){var l;if(void 0===t)l=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,a,s],d=0;(l=Error(t.replace(/%s/g,function(){return u[d++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},703:function(e,t,n){"use strict";n.d(t,{default:function(){return i.a}});var r=n(7447),i=n.n(r)},1749:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return x}});let r=n(6921),i=n(1884),o=n(7437),a=i._(n(2265)),s=r._(n(4887)),l=r._(n(2251)),u=n(8630),d=n(6906),c=n(337);n(6184);let f=n(6993),p=r._(n(536)),m={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function h(e,t,n,r,i,o){let a=null==e?void 0:e.src;e&&e["data-loaded-src"]!==a&&(e["data-loaded-src"]=a,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==n?void 0:n.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,i=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==r?void 0:r.current)&&r.current(e)}}))}function g(e){let[t,n]=a.version.split(".",2),r=parseInt(t,10),i=parseInt(n,10);return r>18||18===r&&i>=3?{fetchPriority:e}:{fetchpriority:e}}"undefined"==typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let v=(0,a.forwardRef)((e,t)=>{let{src:n,srcSet:r,sizes:i,height:s,width:l,decoding:u,className:d,style:c,fetchPriority:f,placeholder:p,loading:m,unoptimized:v,fill:y,onLoadRef:x,onLoadingCompleteRef:b,setBlurComplete:E,setShowAltText:C,onLoad:w,onError:j,...S}=e;return(0,o.jsx)("img",{...S,...g(f),loading:m,width:l,height:s,decoding:u,"data-nimg":y?"fill":"1",className:d,style:c,sizes:i,srcSet:r,src:n,ref:(0,a.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(j&&(e.src=e.src),e.complete&&h(e,p,x,b,E,v))},[n,p,x,b,E,j,v,t]),onLoad:e=>{h(e.currentTarget,p,x,b,E,v)},onError:e=>{C(!0),"empty"!==p&&E(!0),j&&j(e)}})});function y(e){let{isAppRouter:t,imgAttributes:n}=e,r={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...g(n.fetchPriority)};return t&&s.default.preload?(s.default.preload(n.src,r),null):(0,o.jsx)(l.default,{children:(0,o.jsx)("link",{rel:"preload",href:n.srcSet?void 0:n.src,...r},"__nimg-"+n.src+n.srcSet+n.sizes)})}let x=(0,a.forwardRef)((e,t)=>{let n=(0,a.useContext)(f.RouterContext),r=(0,a.useContext)(c.ImageConfigContext),i=(0,a.useMemo)(()=>{let e=m||r||d.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n}},[r]),{onLoad:s,onLoadingComplete:l}=e,h=(0,a.useRef)(s);(0,a.useEffect)(()=>{h.current=s},[s]);let g=(0,a.useRef)(l);(0,a.useEffect)(()=>{g.current=l},[l]);let[x,b]=(0,a.useState)(!1),[E,C]=(0,a.useState)(!1),{props:w,meta:j}=(0,u.getImgProps)(e,{defaultLoader:p.default,imgConf:i,blurComplete:x,showAltText:E});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(v,{...w,unoptimized:j.unoptimized,placeholder:j.placeholder,fill:j.fill,onLoadRef:h,onLoadingCompleteRef:g,setBlurComplete:b,setShowAltText:C,ref:t}),j.priority?(0,o.jsx)(y,{isAppRouter:!n,imgAttributes:w}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5827:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return r}});let r=n(6921)._(n(2265)).default.createContext({})},3044:function(e,t){"use strict";function n(e){let{ampFirst:t=!1,hybrid:n=!1,hasQuery:r=!1}=void 0===e?{}:e;return t||n&&r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return n}})},8630:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return s}}),n(6184);let r=n(7160),i=n(6906);function o(e){return void 0!==e.default}function a(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function s(e,t){var n;let s,l,u,{src:d,sizes:c,unoptimized:f=!1,priority:p=!1,loading:m,className:h,quality:g,width:v,height:y,fill:x=!1,style:b,onLoad:E,onLoadingComplete:C,placeholder:w="empty",blurDataURL:j,fetchPriority:S,layout:_,objectFit:O,objectPosition:N,lazyBoundary:P,lazyRoot:k,...R}=e,{imgConf:M,showAltText:I,blurComplete:A,defaultLoader:T}=t,z=M||i.imageConfigDefault;if("allSizes"in z)s=z;else{let e=[...z.deviceSizes,...z.imageSizes].sort((e,t)=>e-t),t=z.deviceSizes.sort((e,t)=>e-t);s={...z,allSizes:e,deviceSizes:t}}let D=R.loader||T;delete R.loader,delete R.srcSet;let L="__next_img_default"in D;if(L){if("custom"===s.loader)throw Error('Image with src "'+d+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=D;D=t=>{let{config:n,...r}=t;return e(r)}}if(_){"fill"===_&&(x=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[_];e&&(b={...b,...e});let t={responsive:"100vw",fill:"100vw"}[_];t&&!c&&(c=t)}let U="",B=a(v),F=a(y);if("object"==typeof(n=d)&&(o(n)||void 0!==n.src)){let e=o(d)?d.default:d;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(l=e.blurWidth,u=e.blurHeight,j=j||e.blurDataURL,U=e.src,!x){if(B||F){if(B&&!F){let t=B/e.width;F=Math.round(e.height*t)}else if(!B&&F){let t=F/e.height;B=Math.round(e.width*t)}}else B=e.width,F=e.height}}let H=!p&&("lazy"===m||void 0===m);(!(d="string"==typeof d?d:U)||d.startsWith("data:")||d.startsWith("blob:"))&&(f=!0,H=!1),s.unoptimized&&(f=!0),L&&d.endsWith(".svg")&&!s.dangerouslyAllowSVG&&(f=!0),p&&(S="high");let G=a(g),$=Object.assign(x?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:O,objectPosition:N}:{},I?{}:{color:"transparent"},b),V=A||"empty"===w?null:"blur"===w?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:B,heightInt:F,blurWidth:l,blurHeight:u,blurDataURL:j||"",objectFit:$.objectFit})+'")':'url("'+w+'")',W=V?{backgroundSize:$.objectFit||"cover",backgroundPosition:$.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:V}:{},X=function(e){let{config:t,src:n,unoptimized:r,width:i,quality:o,sizes:a,loader:s}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,n){let{deviceSizes:r,allSizes:i}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof t?{widths:r,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))],kind:"x"}}(t,i,a),d=l.length-1;return{sizes:a||"w"!==u?a:"100vw",srcSet:l.map((e,r)=>s({config:t,src:n,quality:o,width:e})+" "+("w"===u?e:r+1)+u).join(", "),src:s({config:t,src:n,quality:o,width:l[d]})}}({config:s,src:d,unoptimized:f,width:B,quality:G,sizes:c,loader:D});return{props:{...R,loading:H?"lazy":m,fetchPriority:S,width:B,height:F,decoding:"async",className:h,style:{...$,...W},sizes:X.sizes,srcSet:X.srcSet,src:X.src},meta:{unoptimized:f,priority:p,placeholder:w,fill:x}}}},2251:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{defaultHead:function(){return c},default:function(){return h}});let r=n(6921),i=n(1884),o=n(7437),a=i._(n(2265)),s=r._(n(7392)),l=n(5827),u=n(7484),d=n(3044);function c(e){void 0===e&&(e=!1);let t=[(0,o.jsx)("meta",{charSet:"utf-8"})];return e||t.push((0,o.jsx)("meta",{name:"viewport",content:"width=device-width"})),t}function f(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===a.default.Fragment?e.concat(a.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}n(6184);let p=["name","httpEquiv","charSet","itemProp"];function m(e,t){let{inAmpMode:n}=t;return e.reduce(f,[]).reverse().concat(c(n).reverse()).filter(function(){let e=new Set,t=new Set,n=new Set,r={};return i=>{let o=!0,a=!1;if(i.key&&"number"!=typeof i.key&&i.key.indexOf("$")>0){a=!0;let t=i.key.slice(i.key.indexOf("$")+1);e.has(t)?o=!1:e.add(t)}switch(i.type){case"title":case"base":t.has(i.type)?o=!1:t.add(i.type);break;case"meta":for(let e=0,t=p.length;e{let r=e.key||t;if(!n&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,a.default.cloneElement(e,t)}return a.default.cloneElement(e,{key:r})})}let h=function(e){let{children:t}=e,n=(0,a.useContext)(l.AmpStateContext),r=(0,a.useContext)(u.HeadManagerContext);return(0,o.jsx)(s.default,{reduceComponentsToState:m,headManager:r,inAmpMode:(0,d.isInAmpMode)(n),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7160:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:i,blurDataURL:o,objectFit:a}=e,s=r?40*r:t,l=i?40*i:n,u=s&&l?"viewBox='0 0 "+s+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},337:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return o}});let r=n(6921)._(n(2265)),i=n(6906),o=r.default.createContext(i.imageConfigDefault)},6906:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{VALID_LOADERS:function(){return n},imageConfigDefault:function(){return r}});let n=["default","imgix","cloudinary","akamai","custom"],r={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",remotePatterns:[],unoptimized:!1}},7447:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getImageProps:function(){return s},default:function(){return l}});let r=n(6921),i=n(8630),o=n(1749),a=r._(n(536)),s=e=>{let{props:t}=(0,i.getImgProps)(e,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}},l=o.Image},536:function(e,t){"use strict";function n(e){let{config:t,src:n,width:r,quality:i}=e;return t.path+"?url="+encodeURIComponent(n)+"&w="+r+"&q="+(i||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},7392:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});let r=n(2265),i="undefined"==typeof window,o=i?()=>{}:r.useLayoutEffect,a=i?()=>{}:r.useEffect;function s(e){let{headManager:t,reduceComponentsToState:n}=e;function s(){if(t&&t.mountedInstances){let i=r.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(n(i,e))}}if(i){var l;null==t||null==(l=t.mountedInstances)||l.add(e.children),s()}return o(()=>{var n;return null==t||null==(n=t.mountedInstances)||n.add(e.children),()=>{var n;null==t||null==(n=t.mountedInstances)||n.delete(e.children)}}),o(()=>(t&&(t._pendingUpdate=s),()=>{t&&(t._pendingUpdate=s)})),a(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},544:function(e,t,n){"use strict";n.d(t,{Z:function(){return Q}});var r=n(6480),i=n.n(r),o=n(2265);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function l(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function u(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}n(1939);var d=n(2865),c=/([A-Z])/g,f=/^ms-/;function p(e){return e.replace(c,"-$1").toLowerCase().replace(f,"-ms-")}var m=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i,h=function(e,t){var n,r,i,o="",a="";if("string"==typeof t){return e.style.getPropertyValue(p(t))||((i=(n=e)&&n.ownerDocument||document)&&i.defaultView||window).getComputedStyle(n,void 0).getPropertyValue(p(t))}Object.keys(t).forEach(function(n){var r=t[n];r||0===r?n&&m.test(n)?a+=n+"("+r+") ":o+=p(n)+": "+r+";":e.style.removeProperty(p(n))}),a&&(o+="transform: "+a+";"),e.style.cssText+=";"+o};function g(e,t){return(g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var v=n(4887),y={disabled:!1},x=o.createContext(null),b="unmounted",E="exited",C="entering",w="entered",j="exiting",S=function(e){function t(t,n){r=e.call(this,t,n)||this;var r,i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=E,r.appearStatus=C):i=w:i=t.unmountOnExit||t.mountOnEnter?b:E,r.state={status:i},r.nextCallback=null,r}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,g(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===b?{status:E}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==C&&n!==w&&(t=C):(n===C||n===w)&&(t=j)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){if(this.cancelNextCallback(),t===C){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:v.findDOMNode(this);n&&n.scrollTop}this.performEnter(e)}else this.performExit()}else this.props.unmountOnExit&&this.state.status===E&&this.setState({status:b})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[v.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;if(!e&&!n||y.disabled){this.safeSetState({status:w},function(){t.props.onEntered(o)});return}this.props.onEnter(o,a),this.safeSetState({status:C},function(){t.props.onEntering(o,a),t.onTransitionEnd(l,function(){t.safeSetState({status:w},function(){t.props.onEntered(o,a)})})})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:v.findDOMNode(this);if(!t||y.disabled){this.safeSetState({status:E},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:j},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:E},function(){e.props.onExited(r)})})})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:v.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(!n||r){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===b)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,s(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return o.createElement(x.Provider,{value:null},"function"==typeof n?n(e,r):o.cloneElement(o.Children.only(n),r))},t}(o.Component);function _(){}S.contextType=x,S.propTypes={},S.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_,onEntering:_,onEntered:_,onExit:_,onExiting:_,onExited:_},S.UNMOUNTED=b,S.EXITED=E,S.ENTERING=C,S.ENTERED=w,S.EXITING=j;var O=!!("undefined"!=typeof window&&window.document&&window.document.createElement),N=!1,P=!1;try{var k={get passive(){return N=!0},get once(){return P=N=!0}};O&&(window.addEventListener("test",k,k),window.removeEventListener("test",k,!0))}catch(e){}var R=function(e,t,n,r){if(r&&"boolean"!=typeof r&&!P){var i=r.once,o=r.capture,a=n;!P&&i&&(a=n.__once||function e(r){this.removeEventListener(t,e,o),n.call(this,r)},n.__once=a),e.addEventListener(t,a,N?r:o)}e.addEventListener(t,n,r)},M=function(e,t,n,r){var i=r&&"boolean"!=typeof r?r.capture:r;e.removeEventListener(t,n,i),n.__once&&e.removeEventListener(t,n.__once,i)},I=function(e,t,n,r){return R(e,t,n,r),function(){M(e,t,n,r)}};function A(e,t){let n=h(e,t)||"",r=-1===n.indexOf("ms")?1e3:1;return parseFloat(n)*r}function T(e,t){var n,r,i,o,a,s,l,u,d,c,f,p;let m=A(e,"transitionDuration"),g=A(e,"transitionDelay"),v=(n=e,r=n=>{n.target===e&&(v(),t(n))},null==(i=m+g)&&(s=-1===(a=h(n,"transitionDuration")||"").indexOf("ms")?1e3:1,i=parseFloat(a)*s||0),f=(u=!1,d=setTimeout(function(){u||function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!0),e){var i=document.createEvent("HTMLEvents");i.initEvent(t,n,r),e.dispatchEvent(i)}}(n,"transitionend",!0)},i+5),c=I(n,"transitionend",function(){u=!0},{once:!0}),function(){clearTimeout(d),c()}),p=I(n,"transitionend",r),function(){f(),p()})}var z=function(...e){return e.filter(e=>null!=e).reduce((e,t)=>{if("function"!=typeof t)throw Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(...n){e.apply(this,n),t.apply(this,n)}},null)};let D=e=>e&&"function"!=typeof e?t=>{e.current=t}:e;var L=n(7437);let U=o.forwardRef((e,t)=>{let{onEnter:n,onEntering:r,onEntered:i,onExit:a,onExiting:s,onExited:l,addEndListener:u,children:d,childRef:c,...f}=e,p=(0,o.useRef)(null),m=(0,o.useMemo)(()=>(function(e,t){let n=D(e),r=D(t);return e=>{n&&n(e),r&&r(e)}})(p,c),[p,c]),h=e=>{m(e&&"setState"in e?v.findDOMNode(e):null!=e?e:null)},g=e=>t=>{e&&p.current&&e(p.current,t)},y=(0,o.useCallback)(g(n),[n]),x=(0,o.useCallback)(g(r),[r]),b=(0,o.useCallback)(g(i),[i]),E=(0,o.useCallback)(g(a),[a]),C=(0,o.useCallback)(g(s),[s]),w=(0,o.useCallback)(g(l),[l]),j=(0,o.useCallback)(g(u),[u]);return(0,L.jsx)(S,{ref:t,...f,onEnter:y,onEntered:b,onEntering:x,onExit:E,onExited:w,onExiting:C,addEndListener:j,nodeRef:p,children:"function"==typeof d?(e,t)=>d(e,{...t,ref:h}):o.cloneElement(d,{ref:h})})}),B={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function F(e,t){let n=t[`offset${e[0].toUpperCase()}${e.slice(1)}`],r=B[e];return n+parseInt(h(t,r[0]),10)+parseInt(h(t,r[1]),10)}let H={[E]:"collapse",[j]:"collapsing",[C]:"collapsing",[w]:"collapse show"},G=o.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:a,className:s,children:l,dimension:u="height",in:d=!1,timeout:c=300,mountOnEnter:f=!1,unmountOnExit:p=!1,appear:m=!1,getDimensionValue:h=F,...g},v)=>{let y="function"==typeof u?u():u,x=(0,o.useMemo)(()=>z(e=>{e.style[y]="0"},e),[y,e]),b=(0,o.useMemo)(()=>z(e=>{let t=`scroll${y[0].toUpperCase()}${y.slice(1)}`;e.style[y]=`${e[t]}px`},t),[y,t]),E=(0,o.useMemo)(()=>z(e=>{e.style[y]=null},n),[y,n]),C=(0,o.useMemo)(()=>z(e=>{e.style[y]=`${h(y,e)}px`,e.offsetHeight},r),[r,h,y]),w=(0,o.useMemo)(()=>z(e=>{e.style[y]=null},a),[y,a]);return(0,L.jsx)(U,{ref:v,addEndListener:T,...g,"aria-expanded":g.role?d:null,onEnter:x,onEntering:b,onEntered:E,onExit:C,onExiting:w,childRef:l.ref,in:d,timeout:c,mountOnEnter:f,unmountOnExit:p,appear:m,children:(e,t)=>o.cloneElement(l,{...t,className:i()(s,l.props.className,H[e],"width"===y&&"collapse-horizontal")})})});function $(e,t){return Array.isArray(e)?e.includes(t):e===t}let V=o.createContext({});V.displayName="AccordionContext";let W=o.forwardRef((e,t)=>{let{as:n="div",bsPrefix:r,className:a,children:s,eventKey:l,...u}=e,{activeEventKey:c}=(0,o.useContext)(V);return r=(0,d.vE)(r,"accordion-collapse"),(0,L.jsx)(G,{ref:t,in:$(c,l),...u,className:i()(a,r),children:(0,L.jsx)(n,{children:o.Children.only(s)})})});W.displayName="AccordionCollapse";let X=o.createContext({eventKey:""});X.displayName="AccordionItemContext";let K=o.forwardRef((e,t)=>{let{as:n="div",bsPrefix:r,className:a,onEnter:s,onEntering:l,onEntered:u,onExit:c,onExiting:f,onExited:p,...m}=e;r=(0,d.vE)(r,"accordion-body");let{eventKey:h}=(0,o.useContext)(X);return(0,L.jsx)(W,{eventKey:h,onEnter:s,onEntering:l,onEntered:u,onExit:c,onExiting:f,onExited:p,children:(0,L.jsx)(n,{ref:t,...m,className:i()(a,r)})})});K.displayName="AccordionBody";let Y=o.forwardRef((e,t)=>{let{as:n="button",bsPrefix:r,className:a,onClick:s,...l}=e;r=(0,d.vE)(r,"accordion-button");let{eventKey:u}=(0,o.useContext)(X),c=function(e,t){let{activeEventKey:n,onSelect:r,alwaysOpen:i}=(0,o.useContext)(V);return o=>{let a=e===n?null:e;i&&(a=Array.isArray(n)?n.includes(e)?n.filter(t=>t!==e):[...n,e]:[e]),null==r||r(a,o),null==t||t(o)}}(u,s),{activeEventKey:f}=(0,o.useContext)(V);return"button"===n&&(l.type="button"),(0,L.jsx)(n,{ref:t,onClick:c,...l,"aria-expanded":Array.isArray(f)?f.includes(u):u===f,className:i()(a,r,!$(f,u)&&"collapsed")})});Y.displayName="AccordionButton";let Z=o.forwardRef((e,t)=>{let{as:n="h2",bsPrefix:r,className:o,children:a,onClick:s,...l}=e;return r=(0,d.vE)(r,"accordion-header"),(0,L.jsx)(n,{ref:t,...l,className:i()(o,r),children:(0,L.jsx)(Y,{onClick:s,children:a})})});Z.displayName="AccordionHeader";let q=o.forwardRef((e,t)=>{let{as:n="div",bsPrefix:r,className:a,eventKey:s,...l}=e;r=(0,d.vE)(r,"accordion-item");let u=(0,o.useMemo)(()=>({eventKey:s}),[s]);return(0,L.jsx)(X.Provider,{value:u,children:(0,L.jsx)(n,{ref:t,...l,className:i()(a,r)})})});q.displayName="AccordionItem";let J=o.forwardRef((e,t)=>{var n;let{as:r="div",activeKey:c,bsPrefix:f,className:p,onSelect:m,flush:h,alwaysOpen:g,...v}=Object.keys(n={activeKey:"onSelect"}).reduce(function(t,r){var i,d,c,f,p,m,h,g,v=t[l(r)],y=t[r],x=s(t,[l(r),r].map(u)),b=n[r],E=(i=e[b],d=(0,o.useRef)(void 0!==y),f=(c=(0,o.useState)(v))[0],p=c[1],m=void 0!==y,h=d.current,d.current=m,!m&&h&&f!==v&&p(v),[m?y:f,(0,o.useCallback)(function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r({activeEventKey:c,onSelect:m,alwaysOpen:g}),[c,m,g]);return(0,L.jsx)(V.Provider,{value:x,children:(0,L.jsx)(r,{ref:t,...v,className:i()(p,y,h&&"".concat(y,"-flush"))})})});J.displayName="Accordion";var Q=Object.assign(J,{Button:Y,Collapse:W,Item:q,Header:Z,Body:K})},9175:function(e,t,n){"use strict";n.d(t,{Z:function(){return C}});var r=n(6480),i=n.n(r),o=n(2265),a=n(2865),s=n(7437);let l=o.forwardRef((e,t)=>{let{className:n,bsPrefix:r,as:o="div",...l}=e;return r=(0,a.vE)(r,"card-body"),(0,s.jsx)(o,{ref:t,className:i()(n,r),...l})});l.displayName="CardBody";let u=o.forwardRef((e,t)=>{let{className:n,bsPrefix:r,as:o="div",...l}=e;return r=(0,a.vE)(r,"card-footer"),(0,s.jsx)(o,{ref:t,className:i()(n,r),...l})});u.displayName="CardFooter";let d=o.createContext(null);d.displayName="CardHeaderContext";let c=o.forwardRef((e,t)=>{let{bsPrefix:n,className:r,as:l="div",...u}=e,c=(0,a.vE)(n,"card-header"),f=(0,o.useMemo)(()=>({cardHeaderBsPrefix:c}),[c]);return(0,s.jsx)(d.Provider,{value:f,children:(0,s.jsx)(l,{ref:t,...u,className:i()(r,c)})})});c.displayName="CardHeader";let f=o.forwardRef((e,t)=>{let{bsPrefix:n,className:r,variant:o,as:l="img",...u}=e,d=(0,a.vE)(n,"card-img");return(0,s.jsx)(l,{ref:t,className:i()(o?"".concat(d,"-").concat(o):d,r),...u})});f.displayName="CardImg";let p=o.forwardRef((e,t)=>{let{className:n,bsPrefix:r,as:o="div",...l}=e;return r=(0,a.vE)(r,"card-img-overlay"),(0,s.jsx)(o,{ref:t,className:i()(n,r),...l})});p.displayName="CardImgOverlay";let m=o.forwardRef((e,t)=>{let{className:n,bsPrefix:r,as:o="a",...l}=e;return r=(0,a.vE)(r,"card-link"),(0,s.jsx)(o,{ref:t,className:i()(n,r),...l})});m.displayName="CardLink";var h=e=>o.forwardRef((t,n)=>(0,s.jsx)("div",{...t,ref:n,className:i()(t.className,e)}));let g=h("h6"),v=o.forwardRef((e,t)=>{let{className:n,bsPrefix:r,as:o=g,...l}=e;return r=(0,a.vE)(r,"card-subtitle"),(0,s.jsx)(o,{ref:t,className:i()(n,r),...l})});v.displayName="CardSubtitle";let y=o.forwardRef((e,t)=>{let{className:n,bsPrefix:r,as:o="p",...l}=e;return r=(0,a.vE)(r,"card-text"),(0,s.jsx)(o,{ref:t,className:i()(n,r),...l})});y.displayName="CardText";let x=h("h5"),b=o.forwardRef((e,t)=>{let{className:n,bsPrefix:r,as:o=x,...l}=e;return r=(0,a.vE)(r,"card-title"),(0,s.jsx)(o,{ref:t,className:i()(n,r),...l})});b.displayName="CardTitle";let E=o.forwardRef((e,t)=>{let{bsPrefix:n,className:r,bg:o,text:u,border:d,body:c=!1,children:f,as:p="div",...m}=e,h=(0,a.vE)(n,"card");return(0,s.jsx)(p,{ref:t,...m,className:i()(r,h,o&&"bg-".concat(o),u&&"text-".concat(u),d&&"border-".concat(d)),children:c?(0,s.jsx)(l,{children:f}):f})});E.displayName="Card";var C=Object.assign(E,{Img:f,Title:b,Subtitle:v,Body:l,Link:m,Text:y,Header:c,Footer:u,ImgOverlay:p})},2865:function(e,t,n){"use strict";n.d(t,{vE:function(){return s}});var r=n(2265);n(7437);let i=r.createContext({prefixes:{},breakpoints:["xxl","xl","lg","md","sm","xs"],minBreakpoint:"xs"}),{Consumer:o,Provider:a}=i;function s(e,t){let{prefixes:n}=(0,r.useContext)(i);return e||n[t]||t}},4621:function(){},6480:function(e,t){var n;/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e="",t=0;t2&&void 0!==arguments[2]?arguments[2]:{};console.log("POST"),console.log(i),console.log(e),console.log(t),console.log(n);let o=await s("POST",i+e,t,n);return r(o),o}async function c(e){try{let t=await l("/api/emergencies",e),n=await t.json();return{success:!0,data:n}}catch(e){return e instanceof Error?{success:!1,error:e.message}:"string"==typeof e?{success:!1,error:e}:{success:!1,error:"Unknown error: ".concat(String(e))}}}var u={page:{backgroundColor:"#E5EFF5",display:"flex",justifyContent:"center",alignItems:"center",height:"1400px",overflowY:"auto",flexDirection:"column"},container:{width:"944px",height:"1050px",backgroundColor:"white",marginLeft:"350px",marginTop:"0px",borderRadius:"15px"},header:{color:"#182B49",fontSize:"24px",marginTop:"-47px",fontFamily:"Roboto, sans-serif",fontWeight:"700"},subtitle:{marginTop:"30px",marginLeft:"30px",color:"#182B49",fontSize:"24px",fontWeight:"500",fontFamily:"Roboto, sans-serif"},subheader:{color:"#182B49",fontSize:"20px",fontWeight:"500",marginLeft:"30px",marginTop:"30px",marginBottom:"5px",fontFamily:"Roboto, sans-serif"},information:{color:"#6c6c6c",fontSize:"16px",fontFamily:"Roboto, sans-serif",fontWeight:"400",marginLeft:"30px"},textbox:{width:"884px",height:"40px",padding:"10px",border:"1px solid #ccc",borderRadius:"5px",fontSize:"16px",fontFamily:"Roboto, sans-serif",color:"#333",marginLeft:"30px",marginTop:"-10px",marginBottom:"10px",zIndex:3,position:"relative"},buttonContainer:{width:"944px",marginLeft:"350px",marginTop:"50px",display:"flex",flexDirection:"row",justifyContent:"space-between"},cancelButton:{marginLeft:"1px",textDecoration:"underline",fontSize:"17px",fontFamily:"Roboto, sans-serif"},publishButton:{width:"153px",height:"46px",backgroundColor:"#00629b",color:"White",borderRadius:"5px",marginRight:"1px",fontSize:"17px",fontFamily:"Roboto, sans-serif",fontWeight:"590",zIndex:3,position:"relative"}};let p=e=>{let{label:t,value:n,onChange:a}=e;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{style:u.information,children:t}),(0,o.jsx)("input",{type:"text",placeholder:"Add details",style:u.textbox,value:n,onChange:e=>{a(e.target.value)}})]})};var x=()=>{let[e,t]=a.useState(""),[n,i]=a.useState(""),[s,r]=a.useState(""),[l,x]=a.useState(""),[h,g]=a.useState(""),[f,d]=a.useState(""),[b,m]=a.useState(""),[y,j]=a.useState(""),[v,C]=a.useState(""),[S,w]=a.useState("");return(0,o.jsxs)("form",{style:u.page,children:[(0,o.jsxs)("div",{style:u.container,children:[(0,o.jsx)("p",{style:u.header,children:"Global Search > Medical > Add an injury"}),(0,o.jsx)("p",{style:u.subtitle,children:"Injury details"}),(0,o.jsx)(p,{label:"Name of injury*",value:e,onChange:t}),(0,o.jsx)(p,{label:"Page Description",value:n,onChange:i}),(0,o.jsx)("p",{style:u.subheader,children:"Overview"}),(0,o.jsx)(p,{label:"Importance",value:s,onChange:r}),(0,o.jsx)(p,{label:"Risk factors",value:l,onChange:x}),(0,o.jsx)(p,{label:"Mechanism of Injury",value:h,onChange:g}),(0,o.jsx)(p,{label:"Diagnosis",value:f,onChange:d}),(0,o.jsx)(p,{label:"Physical Exam",value:b,onChange:m}),(0,o.jsx)("p",{style:u.subheader,children:"How to Treat"}),(0,o.jsx)(p,{label:"Acute Management",value:y,onChange:j}),(0,o.jsx)(p,{label:"Dispo",value:v,onChange:C}),(0,o.jsx)(p,{label:"Considerations",value:S,onChange:w})]}),(0,o.jsxs)("div",{style:u.buttonContainer,children:[(0,o.jsx)("button",{style:u.cancelButton,children:"Close"}),(0,o.jsx)("button",{style:u.publishButton,onClick:()=>{let o=(e,t,n)=>{n&&""!==n.trim()&&(e[t]=n.includes(",")?n.split(","):n)},a={};o(a,"Importance",s),o(a,"Mechanism of Injury",h),o(a,"Diagnosis",f),o(a,"Physical Exam",b);let l={};o(l,"Acute Management",y),o(l,"Dispo",v),o(l,"Considerations",S),c({title:e,subtitle:n,...Object.keys(a).length>0&&{overview:a},...Object.keys(l).length>0&&{treatment:l},content:{}}).then(e=>{e.success?(t(""),i(""),r(""),x(""),g(""),d(""),m(""),j(""),C(""),w("")):(alert(e.error),console.log(e))}).catch(e=>{console.error("An error occurred while creating emergency:",e)})},children:"Publish"})]})]})}}},function(e){e.O(0,[971,69,744],function(){return e(e.s=7334)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/.firebase/sideline-sidekick-app/hosting/_next/static/chunks/app/category/page-db455e8b6adb6591.js b/.firebase/sideline-sidekick-app/hosting/_next/static/chunks/app/category/page-db455e8b6adb6591.js new file mode 100644 index 0000000..ca615de --- /dev/null +++ b/.firebase/sideline-sidekick-app/hosting/_next/static/chunks/app/category/page-db455e8b6adb6591.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[572],{3174:function(e,t,s){Promise.resolve().then(s.bind(s,8283))},202:function(e,t,s){"use strict";s.d(t,{i8:function(){return i},uu:function(){return n},CT:function(){return r},tG:function(){return a}});let c=async()=>{try{await fetch("".concat("https://sideline-sidekick-app.web.app/api","/version"),{method:"PUT"})}catch(e){console.log("Error updating version",e)}},a=async()=>{try{let e=await fetch("".concat("https://sideline-sidekick-app.web.app/api","/categories"));return(await e.json()).categories}catch(e){return console.log("Error getting categories",e),[]}},n=async e=>{try{let t="".concat("https://sideline-sidekick-app.web.app/api","/categories/").concat(e);if(!t)throw Error("API URL is not defined");await fetch(t,{method:"DELETE"}),await c()}catch(e){console.log("Error delete category",e)}},r=async(e,t)=>{try{let s="".concat("https://sideline-sidekick-app.web.app/api","/categories/").concat(e,"/").concat(t);if(!s)throw Error("API URL is not defined");await fetch(s,{method:"PUT"}),await c()}catch(e){console.log("Error deleting page",e)}},i=async(e,t)=>{try{let s="".concat("https://sideline-sidekick-app.web.app/api","/categories");if(!s)throw Error("API URL is not defined");console.log(e),console.log(t),await fetch(s,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:e,items:[],type:t})}),await c()}catch(e){console.log("Error deleting page",e)}}},8283:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return m}});var c=s(7437),a=s(5313),n=s(2265),r=s(202),i=s(4654),l=s(9464),o=s(5713);let d=e=>{let{id:t,page:s,categoryId:a,title:r,onDeletePage:d}=e,[u,h]=(0,n.useState)("public"),[x,m]=(0,n.useState)(!1),[p,g]=(0,n.useState)(!1),f=()=>{g(!0)};return(0,c.jsxs)("tr",{className:"border-b",children:[(0,c.jsx)("td",{className:"w-1/4 text-center py-3",children:s}),(0,c.jsx)("td",{className:"w-1/4 text-center py-3",children:(0,c.jsxs)("select",{disabled:!x,className:"p-1 text-center rounded-md ".concat("public"===u?"bg-[#E5EFF5]":"bg-[#D9D9D9]"," ").concat(x?"appearance-auto":"appearance-none"),value:u,onChange:e=>{h(e.target.value)},children:[(0,c.jsx)("option",{value:"public",children:"Public"}),(0,c.jsx)("option",{value:"hidden",children:"Hidden"})]})}),(0,c.jsx)("td",{className:"w-1/4 text-center py-3",children:r}),(0,c.jsxs)("td",{className:"w-1/4 text-center py-3",children:[(0,c.jsx)("button",{className:"mr-3 bg-[#E5EFF5] p-2 rounded-full border border-black",onClick:()=>{m(!x)},children:(0,c.jsx)("img",{src:i.Z.src,alt:"Edit",className:"w-4 h-4"})}),(0,c.jsx)("button",{className:"bg-[#E5EFF5] p-2 rounded-full border border-black",children:(0,c.jsx)("img",{src:l.Z.src,alt:"Delete",className:"w-4 h-4",onClick:()=>{f()}})}),p?(0,c.jsx)(o.Z,{onDelete:()=>{try{d(a,s),g(!1)}catch(e){console.error("Error deleting category:",e)}},onCancel:()=>{g(!1)},type:"page"}):null]})]},t)};var u=e=>{let{items:t,onDeletePage:s}=e;return(0,c.jsx)("table",{children:(0,c.jsxs)("tbody",{children:[(0,c.jsxs)("tr",{className:"border-b",children:[(0,c.jsx)("th",{className:"w-1/4 text-center py-3",children:"Page Name"}),(0,c.jsx)("th",{className:"w-1/4 text-center py-3",children:"Visibility"}),(0,c.jsx)("th",{className:"w-1/4 text-center py-3",children:"Category"}),(0,c.jsx)("th",{className:"w-1/4 text-center py-3",children:"Actions"})]}),t.map(e=>e.items.map((t,a)=>(0,c.jsx)(d,{id:"".concat(String(a),"-").concat(String(a)),categoryId:e._id,page:t,title:e.title,onDeletePage:s},"".concat(String(a),"-").concat(String(a)))))]})})},h=s(8798);function x(){let e=(0,a.useSearchParams)().get("category"),[t,s]=(0,n.useState)(JSON.parse(e||"")),[i,l]=(0,n.useState)(!1);(0,n.useEffect)(()=>{e&&s(JSON.parse(e||""))},[e]);let o=async(e,c)=>{try{console.log("Deleting page:",c),await (0,r.CT)(e,c),l(!0);let a=t.items.filter(e=>e!==c);console.log(t),s(e=>({...e,items:a}))}catch(e){console.error("Error deleting category:",e)}};return(0,c.jsxs)("div",{className:"flex flex-col items-center justify-center min-h-screen w-screen overflow-auto p-20 gap-8 bg-[#E5EFF5]",children:[(0,c.jsx)("div",{className:"flex flex-row justify-between w-5/6",children:(0,c.jsx)("h1",{className:"text-start text-2xl font-bold",children:t?t.title:"ooga"})}),(0,c.jsxs)("div",{className:"flex flex-col h-max w-5/6 p-10 rounded-md bg-white",children:[(0,c.jsxs)("div",{className:"flex flex-row items-center justify-between mb-10",children:[(0,c.jsx)("h2",{className:"text-2xl",children:"All Pages"}),(0,c.jsxs)("div",{className:"flex flex-row flex-wrap justify-end gap-2",children:[(0,c.jsx)("button",{className:"px-4 py-2 rounded-md text-white bg-[#00629B]",children:"Edit Order"}),(0,c.jsx)("button",{className:"px-4 py-2 rounded-md text-white bg-[#00629B]",children:"+ Add Page"})]})]}),(0,c.jsx)(u,{items:[t],onDeletePage:o}),i&&(0,c.jsx)(h.Z,{backgroundColor:"#000000",message:"Page deleted",onClose:()=>{l(!1)}})]})]})}function m(){return(0,c.jsx)(n.Suspense,{children:(0,c.jsx)(x,{})})}},5713:function(e,t,s){"use strict";var c=s(7437);s(2265);var a=s(3029);t.Z=e=>{let{onDelete:t,onCancel:s,type:n}=e;return(0,c.jsx)("div",{className:"fixed top-0 left-0 w-full h-full flex items-center justify-center bg-gray-800 bg-opacity-50 z-50",children:(0,c.jsxs)("div",{className:"bg-white w-11/12 sm:w-3/4 md:w-2/3 lg:w-1/2 xl:w-2/5 p-8 rounded-md shadow-md flex flex-col justify-center",children:[(0,c.jsx)("button",{className:"flex justify-end mb-4",onClick:s,children:(0,c.jsx)("img",{src:a.Z.src,alt:"Close",className:"w-4 h-4"})}),(0,c.jsxs)("div",{className:"text-center",children:[(0,c.jsxs)("h1",{className:"text-xl sm:text-2xl text-[#182B49] font-bold",children:["Are you sure you want to delete",(0,c.jsx)("br",{}),"this ",n,"?"]}),(0,c.jsxs)("p",{className:"my-4 text-[#182B49]",children:["This ",n," cannot be restored and will not be saved."]}),(0,c.jsxs)("div",{className:"flex justify-evenly mt-4 sm:mt-6",children:[(0,c.jsx)("button",{className:"px-3 sm:px-4 py-2 bg-white text-[#00629B] rounded-md",onClick:s,children:"No, keep"}),(0,c.jsx)("button",{className:"px-4 sm:px-6 py-3 bg-[#00629B] text-white font-bold rounded-md",onClick:t,children:"Yes, delete"})]})]})]})})}},8798:function(e,t,s){"use strict";s.d(t,{Z:function(){return r}});var c=s(7437),a=s(2265),n=s(3029),r=e=>{let{backgroundColor:t,message:s,onClose:r}=e;return(0,a.useEffect)(()=>{let e=setTimeout(()=>{r()},1e4);return()=>{clearTimeout(e)}},[]),(0,c.jsx)("div",{className:"top-20 right-10 absolute justify-center mb-4 z-50",children:(0,c.jsxs)("div",{style:{backgroundColor:t},className:"flex items-center justify-between w-auto py-4 px-6 rounded-lg transition-opacity duration-300 ease-in opacity-100 text-white",children:[(0,c.jsx)("img",{src:"/_next/static/media/check.5890c2a1.svg",alt:"Check",className:"w-4 h-4 mr-2"}),(0,c.jsx)("p",{className:"text-sm mr-2",children:s}),(0,c.jsx)("button",{className:"focus:outline-none",onClick:r,children:(0,c.jsx)("img",{src:n.Z.src,alt:"Close",className:"w-4 h-4"})})]})})}},3029:function(e,t){"use strict";t.Z={src:"/_next/static/media/close.642143c0.svg",height:14,width:15,blurWidth:0,blurHeight:0}},4654:function(e,t){"use strict";t.Z={src:"/_next/static/media/edit.7e8a8f57.svg",height:10,width:10,blurWidth:0,blurHeight:0}},9464:function(e,t){"use strict";t.Z={src:"/_next/static/media/trash.95cd703e.svg",height:14,width:14,blurWidth:0,blurHeight:0}}},function(e){e.O(0,[971,69,744],function(){return e(e.s=3174)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/.firebase/sideline-sidekick-app/hosting/_next/static/chunks/app/emergencies/page-439d92afe6a886ef.js b/.firebase/sideline-sidekick-app/hosting/_next/static/chunks/app/emergencies/page-439d92afe6a886ef.js new file mode 100644 index 0000000..90fda99 --- /dev/null +++ b/.firebase/sideline-sidekick-app/hosting/_next/static/chunks/app/emergencies/page-439d92afe6a886ef.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[197],{9870:function(e,t,s){Promise.resolve().then(s.bind(s,8267))},202:function(e,t,s){"use strict";s.d(t,{i8:function(){return i},uu:function(){return l},CT:function(){return r},tG:function(){return c}});let a=async()=>{try{await fetch("".concat("https://sideline-sidekick-app.web.app/api","/version"),{method:"PUT"})}catch(e){console.log("Error updating version",e)}},c=async()=>{try{let e=await fetch("".concat("https://sideline-sidekick-app.web.app/api","/categories"));return(await e.json()).categories}catch(e){return console.log("Error getting categories",e),[]}},l=async e=>{try{let t="".concat("https://sideline-sidekick-app.web.app/api","/categories/").concat(e);if(!t)throw Error("API URL is not defined");await fetch(t,{method:"DELETE"}),await a()}catch(e){console.log("Error delete category",e)}},r=async(e,t)=>{try{let s="".concat("https://sideline-sidekick-app.web.app/api","/categories/").concat(e,"/").concat(t);if(!s)throw Error("API URL is not defined");await fetch(s,{method:"PUT"}),await a()}catch(e){console.log("Error deleting page",e)}},i=async(e,t)=>{try{let s="".concat("https://sideline-sidekick-app.web.app/api","/categories");if(!s)throw Error("API URL is not defined");console.log(e),console.log(t),await fetch(s,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:e,items:[],type:t})}),await a()}catch(e){console.log("Error deleting page",e)}}},6399:function(e,t,s){"use strict";s.d(t,{d:function(){return d}});var a=s(7437),c=s(8792),l=s(2265),r=s(4654),i=s(9464),n=s(5713);let o=e=>{let{id:t,category:s,onDeleteCategory:o}=e,[d,x]=(0,l.useState)("public"),[h,u]=(0,l.useState)(!1),[m,p]=(0,l.useState)(!1),f=()=>{p(!0)};return(0,a.jsxs)("tr",{className:"border-b",children:[(0,a.jsx)("td",{className:"w-1/4 text-center py-3",children:(0,a.jsx)(c.default,{href:{pathname:"/category",query:{category:JSON.stringify(s)}},className:"underline",children:s.title})}),(0,a.jsx)("td",{className:"w-1/4 text-center py-3",children:(0,a.jsxs)("select",{disabled:!h,className:"p-1 text-center rounded-md ".concat("public"===d?"bg-[#E5EFF5]":"bg-[#D9D9D9]"," ").concat(h?"appearance-auto":"appearance-none"),value:d,onChange:e=>{x(e.target.value)},children:[(0,a.jsx)("option",{value:"public",children:"Public"}),(0,a.jsx)("option",{value:"hidden",children:"Hidden"})]})}),(0,a.jsx)("td",{className:"w-1/4 text-center py-3",children:s.items.length}),(0,a.jsxs)("td",{className:"w-1/4 text-center py-3",children:[(0,a.jsx)("button",{className:"mr-3 bg-[#E5EFF5] p-2 rounded-full border border-black",onClick:()=>{u(!h)},children:(0,a.jsx)("img",{src:r.Z.src,alt:"Edit",className:"w-4 h-4"})}),(0,a.jsx)("button",{className:"bg-[#E5EFF5] p-2 rounded-full border border-black",children:(0,a.jsx)("img",{src:i.Z.src,alt:"Delete",className:"w-4 h-4",onClick:()=>{f()}})})]}),m?(0,a.jsx)(n.Z,{onDelete:()=>{try{o(t),p(!1)}catch(e){console.error("Error deleting category:",e)}},onCancel:()=>{p(!1)},type:"category"}):null]},t+s.title)},d=e=>{let{items:t,type:s,onDeleteCategory:c}=e;return(0,a.jsx)("table",{children:(0,a.jsxs)("tbody",{children:[(0,a.jsxs)("tr",{className:"border-b",children:[(0,a.jsx)("th",{className:"w-1/4 text-center py-3",children:"Category Name"}),(0,a.jsx)("th",{className:"w-1/4 text-center py-3",children:"Visibility"}),(0,a.jsx)("th",{className:"w-1/4 text-center py-3",children:"Pages"}),(0,a.jsx)("th",{className:"w-1/4 text-center py-3",children:"Actions"})]}),t.filter(e=>e.type===s).map(e=>(0,a.jsx)(o,{id:e._id,category:e,onDeleteCategory:c},e._id))]})})}},2810:function(e,t,s){"use strict";var a=s(7437),c=s(2265),l=s(3029);t.Z=e=>{let{onAdd:t,onCancel:s,type:r}=e,[i,n]=(0,c.useState)("");return(0,a.jsx)("div",{className:"fixed top-0 left-0 w-full h-full flex items-center justify-center bg-gray-800 bg-opacity-50 z-50",children:(0,a.jsxs)("div",{className:"bg-white w-11/12 sm:w-3/4 md:w-2/3 lg:w-1/2 xl:w-2/5 p-8 rounded-md shadow-md flex flex-col justify-center",children:[(0,a.jsx)("button",{className:"flex justify-end mb-4",onClick:s,children:(0,a.jsx)("img",{src:l.Z.src,alt:"Close",className:"w-4 h-4"})}),(0,a.jsxs)("div",{className:"text-left",children:[(0,a.jsxs)("h1",{className:"text-xl sm:text-2xl text-[#182B49] font-bold",children:["Add a category to: ",(0,a.jsx)("span",{className:"text-[#00629B]",children:r})]}),(0,a.jsx)("p",{className:"text-[#182B49]",children:"Enter a name for this new category."}),(0,a.jsx)("p",{className:"my-2 text-[#6C6C6C]",children:"Name*"}),(0,a.jsx)("input",{className:"flex w-[100%] p-[13px_23px] items-start gap-[10px] rounded-[5px] border border-[#B4B4B4] bg-white",type:"text",id:"nameInput",value:i,onChange:e=>{n(e.target.value)},placeholder:"Type a name for your new category"}),(0,a.jsxs)("div",{className:"flex justify-evenly mt-4 sm:mt-6",children:[(0,a.jsx)("button",{className:"px-3 sm:px-4 py-2 bg-white text-[#00629B] rounded-md",onClick:s,children:"Cancel"}),(0,a.jsx)("button",{className:"px-4 sm:px-6 py-3 bg-[#00629B] text-white font-bold rounded-md",onClick:()=>{t(i)},children:"Add"})]})]})]})})}},5713:function(e,t,s){"use strict";var a=s(7437);s(2265);var c=s(3029);t.Z=e=>{let{onDelete:t,onCancel:s,type:l}=e;return(0,a.jsx)("div",{className:"fixed top-0 left-0 w-full h-full flex items-center justify-center bg-gray-800 bg-opacity-50 z-50",children:(0,a.jsxs)("div",{className:"bg-white w-11/12 sm:w-3/4 md:w-2/3 lg:w-1/2 xl:w-2/5 p-8 rounded-md shadow-md flex flex-col justify-center",children:[(0,a.jsx)("button",{className:"flex justify-end mb-4",onClick:s,children:(0,a.jsx)("img",{src:c.Z.src,alt:"Close",className:"w-4 h-4"})}),(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsxs)("h1",{className:"text-xl sm:text-2xl text-[#182B49] font-bold",children:["Are you sure you want to delete",(0,a.jsx)("br",{}),"this ",l,"?"]}),(0,a.jsxs)("p",{className:"my-4 text-[#182B49]",children:["This ",l," cannot be restored and will not be saved."]}),(0,a.jsxs)("div",{className:"flex justify-evenly mt-4 sm:mt-6",children:[(0,a.jsx)("button",{className:"px-3 sm:px-4 py-2 bg-white text-[#00629B] rounded-md",onClick:s,children:"No, keep"}),(0,a.jsx)("button",{className:"px-4 sm:px-6 py-3 bg-[#00629B] text-white font-bold rounded-md",onClick:t,children:"Yes, delete"})]})]})]})})}},8798:function(e,t,s){"use strict";s.d(t,{Z:function(){return r}});var a=s(7437),c=s(2265),l=s(3029),r=e=>{let{backgroundColor:t,message:s,onClose:r}=e;return(0,c.useEffect)(()=>{let e=setTimeout(()=>{r()},1e4);return()=>{clearTimeout(e)}},[]),(0,a.jsx)("div",{className:"top-20 right-10 absolute justify-center mb-4 z-50",children:(0,a.jsxs)("div",{style:{backgroundColor:t},className:"flex items-center justify-between w-auto py-4 px-6 rounded-lg transition-opacity duration-300 ease-in opacity-100 text-white",children:[(0,a.jsx)("img",{src:"/_next/static/media/check.5890c2a1.svg",alt:"Check",className:"w-4 h-4 mr-2"}),(0,a.jsx)("p",{className:"text-sm mr-2",children:s}),(0,a.jsx)("button",{className:"focus:outline-none",onClick:r,children:(0,a.jsx)("img",{src:l.Z.src,alt:"Close",className:"w-4 h-4"})})]})})}},8267:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return o}});var a=s(7437),c=s(2265),l=s(202),r=s(6399),i=s(2810),n=s(8798);function o(){let[e,t]=(0,c.useState)([]),[s,o]=(0,c.useState)(!1),[d,x]=(0,c.useState)(!1),[h,u]=(0,c.useState)(""),m=()=>{x(!0)},p=async e=>{try{x(!1),console.log("adding "+e),await (0,l.i8)(e,"Emergency"),u("Category added succesfully"),o(!0)}catch(e){console.error("Error deleting category:",e)}};(0,c.useEffect)(()=>{(async()=>{try{let e=await (0,l.tG)();t(e)}catch(e){console.log("Fetch categories failed.")}})()},[e]);let f=async e=>{try{console.log("Deleting category with ID:",e),await (0,l.uu)(e),o(!0)}catch(e){console.error("Error deleting category:",e)}};return(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center min-h-screen w-screen overflow-auto p-20 bg-[#E5EFF5]",children:[(0,a.jsxs)("div",{className:"flex flex-row justify-between w-5/6 mb-6",children:[(0,a.jsx)("h1",{className:"text-start text-2xl font-bold",children:"Global Search"}),(0,a.jsx)("div",{children:(0,a.jsxs)("select",{className:"px-3 py-1 bg-white",defaultValue:"Filter by",children:[(0,a.jsx)("option",{value:"Alphabetical Order",children:"Alphabetical Order"}),(0,a.jsx)("option",{value:"Date added (Earliest)",children:"Date added (Earliest)"}),(0,a.jsx)("option",{value:"Date added (Latest)",children:"Date added (Latest)"}),(0,a.jsx)("option",{value:"Visibility",children:"Visibility"})]})})]}),(0,a.jsxs)("div",{className:"flex flex-col h-max w-5/6 p-10 rounded-md bg-white",children:[(0,a.jsxs)("div",{className:"flex flex-row items-center justify-between mb-10",children:[(0,a.jsx)("h2",{className:"text-2xl",children:"All Categories"}),(0,a.jsxs)("div",{className:"flex flex-row flex-wrap justify-end gap-2",children:[(0,a.jsx)("button",{className:"px-4 py-2 rounded-md text-white bg-[#00629B]",children:"Edit Order"}),(0,a.jsx)("button",{className:"px-4 py-2 rounded-md text-white bg-[#00629B]",onClick:()=>{m()},children:"+ Add Category"})]})]}),(0,a.jsx)(r.d,{items:e,type:"Emergency",onDeleteCategory:f}),s&&(0,a.jsx)(n.Z,{backgroundColor:"Category deleted"===h?"#000000":"#3BB966",message:h,onClose:()=>{o(!1)}})]}),d&&(0,a.jsx)(i.Z,{onAdd:e=>{p(e)},onCancel:()=>{x(!1)},type:"General Principles"})]})}},3029:function(e,t){"use strict";t.Z={src:"/_next/static/media/close.642143c0.svg",height:14,width:15,blurWidth:0,blurHeight:0}},4654:function(e,t){"use strict";t.Z={src:"/_next/static/media/edit.7e8a8f57.svg",height:10,width:10,blurWidth:0,blurHeight:0}},9464:function(e,t){"use strict";t.Z={src:"/_next/static/media/trash.95cd703e.svg",height:14,width:14,blurWidth:0,blurHeight:0}}},function(e){e.O(0,[792,971,69,744],function(){return e(e.s=9870)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/.firebase/sideline-sidekick-app/hosting/_next/static/chunks/app/general-principles/page-bcc407449c6a20af.js b/.firebase/sideline-sidekick-app/hosting/_next/static/chunks/app/general-principles/page-bcc407449c6a20af.js new file mode 100644 index 0000000..4c35662 --- /dev/null +++ b/.firebase/sideline-sidekick-app/hosting/_next/static/chunks/app/general-principles/page-bcc407449c6a20af.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[292],{2336:function(e,t,s){Promise.resolve().then(s.bind(s,8195))},202:function(e,t,s){"use strict";s.d(t,{i8:function(){return i},uu:function(){return c},CT:function(){return r},tG:function(){return a}});let l=async()=>{try{await fetch("".concat("https://sideline-sidekick-app.web.app/api","/version"),{method:"PUT"})}catch(e){console.log("Error updating version",e)}},a=async()=>{try{let e=await fetch("".concat("https://sideline-sidekick-app.web.app/api","/categories"));return(await e.json()).categories}catch(e){return console.log("Error getting categories",e),[]}},c=async e=>{try{let t="".concat("https://sideline-sidekick-app.web.app/api","/categories/").concat(e);if(!t)throw Error("API URL is not defined");await fetch(t,{method:"DELETE"}),await l()}catch(e){console.log("Error delete category",e)}},r=async(e,t)=>{try{let s="".concat("https://sideline-sidekick-app.web.app/api","/categories/").concat(e,"/").concat(t);if(!s)throw Error("API URL is not defined");await fetch(s,{method:"PUT"}),await l()}catch(e){console.log("Error deleting page",e)}},i=async(e,t)=>{try{let s="".concat("https://sideline-sidekick-app.web.app/api","/categories");if(!s)throw Error("API URL is not defined");console.log(e),console.log(t),await fetch(s,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:e,items:[],type:t})}),await l()}catch(e){console.log("Error deleting page",e)}}},6399:function(e,t,s){"use strict";s.d(t,{d:function(){return o}});var l=s(7437),a=s(8792),c=s(2265),r=s(4654),i=s(9464),n=s(5713);let d=e=>{let{id:t,category:s,onDeleteCategory:d}=e,[o,x]=(0,c.useState)("public"),[u,h]=(0,c.useState)(!1),[m,p]=(0,c.useState)(!1),f=()=>{p(!0)};return(0,l.jsxs)("tr",{className:"border-b",children:[(0,l.jsx)("td",{className:"w-1/4 text-center py-3",children:(0,l.jsx)(a.default,{href:{pathname:"/category",query:{category:JSON.stringify(s)}},className:"underline",children:s.title})}),(0,l.jsx)("td",{className:"w-1/4 text-center py-3",children:(0,l.jsxs)("select",{disabled:!u,className:"p-1 text-center rounded-md ".concat("public"===o?"bg-[#E5EFF5]":"bg-[#D9D9D9]"," ").concat(u?"appearance-auto":"appearance-none"),value:o,onChange:e=>{x(e.target.value)},children:[(0,l.jsx)("option",{value:"public",children:"Public"}),(0,l.jsx)("option",{value:"hidden",children:"Hidden"})]})}),(0,l.jsx)("td",{className:"w-1/4 text-center py-3",children:s.items.length}),(0,l.jsxs)("td",{className:"w-1/4 text-center py-3",children:[(0,l.jsx)("button",{className:"mr-3 bg-[#E5EFF5] p-2 rounded-full border border-black",onClick:()=>{h(!u)},children:(0,l.jsx)("img",{src:r.Z.src,alt:"Edit",className:"w-4 h-4"})}),(0,l.jsx)("button",{className:"bg-[#E5EFF5] p-2 rounded-full border border-black",children:(0,l.jsx)("img",{src:i.Z.src,alt:"Delete",className:"w-4 h-4",onClick:()=>{f()}})})]}),m?(0,l.jsx)(n.Z,{onDelete:()=>{try{d(t),p(!1)}catch(e){console.error("Error deleting category:",e)}},onCancel:()=>{p(!1)},type:"category"}):null]},t+s.title)},o=e=>{let{items:t,type:s,onDeleteCategory:a}=e;return(0,l.jsx)("table",{children:(0,l.jsxs)("tbody",{children:[(0,l.jsxs)("tr",{className:"border-b",children:[(0,l.jsx)("th",{className:"w-1/4 text-center py-3",children:"Category Name"}),(0,l.jsx)("th",{className:"w-1/4 text-center py-3",children:"Visibility"}),(0,l.jsx)("th",{className:"w-1/4 text-center py-3",children:"Pages"}),(0,l.jsx)("th",{className:"w-1/4 text-center py-3",children:"Actions"})]}),t.filter(e=>e.type===s).map(e=>(0,l.jsx)(d,{id:e._id,category:e,onDeleteCategory:a},e._id))]})})}},2810:function(e,t,s){"use strict";var l=s(7437),a=s(2265),c=s(3029);t.Z=e=>{let{onAdd:t,onCancel:s,type:r}=e,[i,n]=(0,a.useState)("");return(0,l.jsx)("div",{className:"fixed top-0 left-0 w-full h-full flex items-center justify-center bg-gray-800 bg-opacity-50 z-50",children:(0,l.jsxs)("div",{className:"bg-white w-11/12 sm:w-3/4 md:w-2/3 lg:w-1/2 xl:w-2/5 p-8 rounded-md shadow-md flex flex-col justify-center",children:[(0,l.jsx)("button",{className:"flex justify-end mb-4",onClick:s,children:(0,l.jsx)("img",{src:c.Z.src,alt:"Close",className:"w-4 h-4"})}),(0,l.jsxs)("div",{className:"text-left",children:[(0,l.jsxs)("h1",{className:"text-xl sm:text-2xl text-[#182B49] font-bold",children:["Add a category to: ",(0,l.jsx)("span",{className:"text-[#00629B]",children:r})]}),(0,l.jsx)("p",{className:"text-[#182B49]",children:"Enter a name for this new category."}),(0,l.jsx)("p",{className:"my-2 text-[#6C6C6C]",children:"Name*"}),(0,l.jsx)("input",{className:"flex w-[100%] p-[13px_23px] items-start gap-[10px] rounded-[5px] border border-[#B4B4B4] bg-white",type:"text",id:"nameInput",value:i,onChange:e=>{n(e.target.value)},placeholder:"Type a name for your new category"}),(0,l.jsxs)("div",{className:"flex justify-evenly mt-4 sm:mt-6",children:[(0,l.jsx)("button",{className:"px-3 sm:px-4 py-2 bg-white text-[#00629B] rounded-md",onClick:s,children:"Cancel"}),(0,l.jsx)("button",{className:"px-4 sm:px-6 py-3 bg-[#00629B] text-white font-bold rounded-md",onClick:()=>{t(i)},children:"Add"})]})]})]})})}},5713:function(e,t,s){"use strict";var l=s(7437);s(2265);var a=s(3029);t.Z=e=>{let{onDelete:t,onCancel:s,type:c}=e;return(0,l.jsx)("div",{className:"fixed top-0 left-0 w-full h-full flex items-center justify-center bg-gray-800 bg-opacity-50 z-50",children:(0,l.jsxs)("div",{className:"bg-white w-11/12 sm:w-3/4 md:w-2/3 lg:w-1/2 xl:w-2/5 p-8 rounded-md shadow-md flex flex-col justify-center",children:[(0,l.jsx)("button",{className:"flex justify-end mb-4",onClick:s,children:(0,l.jsx)("img",{src:a.Z.src,alt:"Close",className:"w-4 h-4"})}),(0,l.jsxs)("div",{className:"text-center",children:[(0,l.jsxs)("h1",{className:"text-xl sm:text-2xl text-[#182B49] font-bold",children:["Are you sure you want to delete",(0,l.jsx)("br",{}),"this ",c,"?"]}),(0,l.jsxs)("p",{className:"my-4 text-[#182B49]",children:["This ",c," cannot be restored and will not be saved."]}),(0,l.jsxs)("div",{className:"flex justify-evenly mt-4 sm:mt-6",children:[(0,l.jsx)("button",{className:"px-3 sm:px-4 py-2 bg-white text-[#00629B] rounded-md",onClick:s,children:"No, keep"}),(0,l.jsx)("button",{className:"px-4 sm:px-6 py-3 bg-[#00629B] text-white font-bold rounded-md",onClick:t,children:"Yes, delete"})]})]})]})})}},8798:function(e,t,s){"use strict";s.d(t,{Z:function(){return r}});var l=s(7437),a=s(2265),c=s(3029),r=e=>{let{backgroundColor:t,message:s,onClose:r}=e;return(0,a.useEffect)(()=>{let e=setTimeout(()=>{r()},1e4);return()=>{clearTimeout(e)}},[]),(0,l.jsx)("div",{className:"top-20 right-10 absolute justify-center mb-4 z-50",children:(0,l.jsxs)("div",{style:{backgroundColor:t},className:"flex items-center justify-between w-auto py-4 px-6 rounded-lg transition-opacity duration-300 ease-in opacity-100 text-white",children:[(0,l.jsx)("img",{src:"/_next/static/media/check.5890c2a1.svg",alt:"Check",className:"w-4 h-4 mr-2"}),(0,l.jsx)("p",{className:"text-sm mr-2",children:s}),(0,l.jsx)("button",{className:"focus:outline-none",onClick:r,children:(0,l.jsx)("img",{src:c.Z.src,alt:"Close",className:"w-4 h-4"})})]})})}},8195:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return d}});var l=s(7437),a=s(2265),c=s(202),r=s(6399),i=s(2810),n=s(8798);function d(){let[e,t]=(0,a.useState)([]),[s,d]=(0,a.useState)(!1),[o,x]=(0,a.useState)(!1),[u,h]=(0,a.useState)(""),m=()=>{x(!0)},p=async e=>{try{x(!1),console.log("adding "+e),await (0,c.i8)(e,"General Principle"),h("Category added succesfully"),d(!0)}catch(e){console.error("Error deleting category:",e)}};(0,a.useEffect)(()=>{(async()=>{try{let e=await (0,c.tG)();t(e)}catch(e){console.log("Fetch categories failed.")}})()},[e]);let f=async e=>{try{console.log("Deleting category with ID:",e),await (0,c.uu)(e),h("Category deleted"),d(!0)}catch(e){console.error("Error deleting category:",e)}};return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center min-h-screen w-screen overflow-auto p-4 md:p-20 bg-[#E5EFF5]",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between w-full md:w-5/6 lg:w-4/5 xl:w-3/4 mb-6",children:[(0,l.jsx)("h1",{className:"text-start text-2xl font-bold",children:"General Principles"}),(0,l.jsx)("div",{children:(0,l.jsxs)("select",{defaultValue:"Filter by",className:"px-3 py-1 bg-white",children:[(0,l.jsx)("option",{value:"Filter by",disabled:!0,hidden:!0,children:"Filter by"}),(0,l.jsx)("option",{value:"Alphabetical Order",children:"Alphabetical Order"}),(0,l.jsx)("option",{value:"Date added (Earliest)",children:"Date added (Earliest)"}),(0,l.jsx)("option",{value:"Date added (Latest)",children:"Date added (Latest)"}),(0,l.jsx)("option",{value:"Visibility",children:"Visibility"})]})})]}),(0,l.jsxs)("div",{className:"flex flex-col w-full md:w-11/12 lg:w-10/12 xl:w-9/12 p-4 md:p-10 rounded-md bg-white",children:[(0,l.jsxs)("div",{className:"flex flex-row items-center justify-between mb-6 md:mb-10",children:[(0,l.jsx)("h2",{className:"text-2xl",children:"All Categories"}),(0,l.jsxs)("div",{className:"flex flex-row flex-wrap justify-end gap-2",children:[(0,l.jsx)("button",{className:"px-4 py-2 rounded-md text-white bg-[#00629B] mr-2",children:"Edit Order"}),(0,l.jsx)("button",{className:"px-4 py-2 rounded-md text-white bg-[#00629B]",onClick:()=>{m()},children:"+ Add Category"})]})]}),(0,l.jsx)(r.d,{items:e,type:"General Principle",onDeleteCategory:f}),s&&(0,l.jsx)(n.Z,{backgroundColor:"Category deleted"===u?"#000000":"#3BB966",message:u,onClose:()=>{d(!1)}})]}),o&&(0,l.jsx)(i.Z,{onAdd:e=>{p(e)},onCancel:()=>{x(!1)},type:"General Principles"})]})}},3029:function(e,t){"use strict";t.Z={src:"/_next/static/media/close.642143c0.svg",height:14,width:15,blurWidth:0,blurHeight:0}},4654:function(e,t){"use strict";t.Z={src:"/_next/static/media/edit.7e8a8f57.svg",height:10,width:10,blurWidth:0,blurHeight:0}},9464:function(e,t){"use strict";t.Z={src:"/_next/static/media/trash.95cd703e.svg",height:14,width:14,blurWidth:0,blurHeight:0}}},function(e){e.O(0,[792,971,69,744],function(){return e(e.s=2336)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/.firebase/sideline-sidekick-app/hosting/_next/static/chunks/app/layout-49b34e0f208a6007.js b/.firebase/sideline-sidekick-app/hosting/_next/static/chunks/app/layout-49b34e0f208a6007.js new file mode 100644 index 0000000..1812bae --- /dev/null +++ b/.firebase/sideline-sidekick-app/hosting/_next/static/chunks/app/layout-49b34e0f208a6007.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{7217:function(e,t,i){Promise.resolve().then(i.bind(i,2623)),Promise.resolve().then(i.bind(i,7632)),Promise.resolve().then(i.t.bind(i,3385,23))},202:function(e,t,i){"use strict";i.d(t,{i8:function(){return s},uu:function(){return o},CT:function(){return l},tG:function(){return n}});let r=async()=>{try{await fetch("".concat("https://sideline-sidekick-app.web.app/api","/version"),{method:"PUT"})}catch(e){console.log("Error updating version",e)}},n=async()=>{try{let e=await fetch("".concat("https://sideline-sidekick-app.web.app/api","/categories"));return(await e.json()).categories}catch(e){return console.log("Error getting categories",e),[]}},o=async e=>{try{let t="".concat("https://sideline-sidekick-app.web.app/api","/categories/").concat(e);if(!t)throw Error("API URL is not defined");await fetch(t,{method:"DELETE"}),await r()}catch(e){console.log("Error delete category",e)}},l=async(e,t)=>{try{let i="".concat("https://sideline-sidekick-app.web.app/api","/categories/").concat(e,"/").concat(t);if(!i)throw Error("API URL is not defined");await fetch(i,{method:"PUT"}),await r()}catch(e){console.log("Error deleting page",e)}},s=async(e,t)=>{try{let i="".concat("https://sideline-sidekick-app.web.app/api","/categories");if(!i)throw Error("API URL is not defined");console.log(e),console.log(t),await fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:e,items:[],type:t})}),await r()}catch(e){console.log("Error deleting page",e)}}},2623:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return d}});var r=i(7437);i(2265);var n={container:{display:"flex",alignItems:"center",justifyContent:"space-between",backgroundColor:"#ffffff",height:"72px",width:"100vw",padding:"0 1vw",boxShadow:"0px 1px 0px 0px #D9D9D9"},logoContainer:{display:"flex",alignItems:"center"},logoBackground:{width:"40px",height:"40px",backgroundColor:"var(--DFM-Navy, #182B49)",borderRadius:"3px",display:"flex",alignItems:"center",justifyContent:"center",marginRight:"0.7vw"},logoText:{fontWeight:"bold",marginRight:"20vw"},searchBarContainer:{flex:1,display:"flex",justifyContent:"center",marginRight:"20vw",width:"20vw"},profileContainer:{display:"flex",alignItems:"center"},profileBackground:{width:"40px",height:"40px",backgroundColor:"#00629B",borderRadius:"4.683px",display:"flex",alignItems:"center",justifyContent:"center",marginRight:"0.7vw"},profileLogoText:{fontWeight:"bold",color:"#FFFFFF"},profileText:{fontWeight:"bold"}},o=i(703),l={src:"/_next/static/media/ic_search_grey.88f7e0b1.png",height:19,width:20,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAQAAABuBnYAAAAAY0lEQVR42k2NIQ6DUABDH9jdYLNTyGUWj8NwDBI0DouhTRDgAMktOBr58AXPtWnzAKdEnHBH557U6hUr/bTr69ojDGHtxsV1mP0hoNI9KNNCYEjAnTatPpxBxG/Q31WUPcTpCdwSHM5JoAWEAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8},s={searchSection:{display:"flex",flex:1,alignItems:"center",borderWidth:1,borderRadius:"9.367px",border:"0.937px solid var(--Neutral-Gray2, #D8D8D8)",background:"var(--Neutral-Gray0, #F3F3F3)",height:"43px",width:"561px"},input:{flex:1,color:"#424242",background:"var(--Neutral-Gray0, #F3F3F3)",font:"Roboto",fontSize:"14.987px"},searchIcon:{marginRight:"10px",marginLeft:"15px",height:"17.733px",width:"18.733px"}},a=()=>(0,r.jsx)("div",{children:(0,r.jsxs)("div",{style:s.searchSection,children:[(0,r.jsx)("div",{style:s.searchIcon,children:(0,r.jsx)(o.default,{src:l,alt:"Search"})}),(0,r.jsx)("input",{style:s.input,type:"text",placeholder:"Search"})]})}),c=i(2429),d=()=>(0,r.jsxs)("div",{style:n.container,children:[(0,r.jsxs)("div",{style:n.logoContainer,children:[(0,r.jsx)("div",{style:n.logoBackground,children:(0,r.jsx)(c.Z,{width:18,height:18,color:"#FFFFFF"})}),(0,r.jsx)("span",{style:n.logoText,children:"Sideline Sidekick"})]}),(0,r.jsx)("div",{style:n.searchBarContainer,children:(0,r.jsx)(a,{})}),(0,r.jsxs)("div",{style:n.profileContainer,children:[(0,r.jsx)("div",{style:n.profileBackground,children:(0,r.jsx)("span",{style:n.profileLogoText,children:"PN"})}),(0,r.jsx)("span",{style:n.profileText,children:"Profile Name"})]})]})},2429:function(e,t,i){"use strict";var r=i(7437);i(2265),t.Z=e=>{let{width:t,height:i,color:n}=e;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:i,viewBox:"0 0 32 32",fill:"none",children:(0,r.jsx)("path",{fillRule:"evenodd",fill:n,clipRule:"evenodd",d:"M15.1283 5.74756C10.1581 5.74756 6.12891 9.77672 6.12891 14.7469C6.12891 19.7172 10.1581 23.7463 15.1283 23.7463C17.1497 23.7463 19.0155 23.0798 20.5178 21.9546L24.5042 25.941C25.0063 26.4431 25.8203 26.4431 26.3224 25.941C26.8244 25.4389 26.8244 24.6249 26.3224 24.1229L22.336 20.1365C23.4612 18.6341 24.1277 16.7684 24.1277 14.7469C24.1277 9.77672 20.0985 5.74756 15.1283 5.74756ZM8.70016 14.7469C8.70016 11.1968 11.5781 8.31881 15.1283 8.31881C18.6784 8.31881 21.5564 11.1968 21.5564 14.7469C21.5564 18.2971 18.6784 21.1751 15.1283 21.1751C11.5781 21.1751 8.70016 18.2971 8.70016 14.7469Z"})})}},7632:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return x}});var r=i(7437),n=i(2265);i(4621);var o=i(9175),l=i(544),s=i(8792),a=i(202),c=e=>{let{width:t="30.855px",height:i="30.855px",color:n="#182B49"}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:i,viewBox:"0 0 32 32",fill:"none",children:[(0,r.jsx)("path",{d:"M9.26562 29.157H22.379",stroke:n,strokeWidth:"2.81"}),(0,r.jsx)("path",{d:"M21.0639 3.86698V22.3672C21.0639 23.4019 20.2252 24.2406 19.1906 24.2406H12.3878C11.3532 24.2406 10.5145 23.4019 10.5145 22.3672V3.86699C10.5145 2.83237 11.3532 1.99365 12.3878 1.99365H19.1906C20.2252 1.99365 21.0639 2.83237 21.0639 3.86698Z",stroke:n,strokeWidth:"2.81"})]})},d=()=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"27",height:"27",viewBox:"0 0 27 27",fill:"none",children:(0,r.jsx)("path",{d:"M1.16211 13.7778L3.88488 11.1806M3.88488 11.1806L13.4146 2.09033L22.9443 11.1806M3.88488 11.1806V24.1667C3.88488 24.5111 4.02831 24.8414 4.28362 25.085C4.53893 25.3285 4.8852 25.4653 5.24627 25.4653H9.33042M22.9443 11.1806L25.6671 13.7778M22.9443 11.1806V24.1667C22.9443 24.5111 22.8008 24.8414 22.5455 25.085C22.2902 25.3285 21.944 25.4653 21.5829 25.4653H17.4987M9.33042 25.4653C9.69149 25.4653 10.0378 25.3285 10.2931 25.085C10.5484 24.8414 10.6918 24.5111 10.6918 24.1667V18.9723C10.6918 18.6279 10.8352 18.2976 11.0906 18.054C11.3459 17.8105 11.6921 17.6737 12.0532 17.6737H14.776C15.137 17.6737 15.4833 17.8105 15.7386 18.054C15.9939 18.2976 16.1374 18.6279 16.1374 18.9723V24.1667C16.1374 24.5111 16.2808 24.8414 16.5361 25.085C16.7914 25.3285 17.1377 25.4653 17.4987 25.4653M9.33042 25.4653H17.4987",stroke:"#182B49",strokeWidth:"2.3375",strokeLinecap:"round",strokeLinejoin:"round"})}),h=i(2429),p={container:{display:"flex",height:"100%"},nav:{width:"350px",backgroundColor:"#fff"},cardHeader:{backgroundColor:"#ffffff",border:"none"},accordionContainer:{paddingTop:"109px"},listItem:{marginBottom:"0.6vh",fontSize:"14.96px"},image:{width:"30.855px",height:"30.855px",marginRight:"20px",display:"flex",alignItems:"center"},firstCarDiv:{display:"flex",alignItems:"center",padding:"10px"},cardDivs:{display:"flex",alignItems:"center"}},x=()=>{let[e,t]=(0,n.useState)([]),[i,x]=(0,n.useState)([]);return(0,n.useEffect)(()=>{(async()=>{try{let e=await (0,a.tG)(),i=e.filter(e=>"General Principle"===e.type),r=e.filter(e=>"Emergency"===e.type);t(i),x(r)}catch(e){console.log("Fetch categories failed.")}})()},[e,i]),(0,r.jsx)("div",{style:p.container,children:(0,r.jsx)("nav",{style:p.nav,children:(0,r.jsx)("div",{style:p.accordionContainer,children:(0,r.jsxs)(l.Z,{defaultActiveKey:"0",children:[(0,r.jsx)("a",{href:"#homepagelink",style:{textDecoration:"none"},children:(0,r.jsx)(o.Z,{style:{border:"none",borderBottom:"none"},children:(0,r.jsx)(o.Z.Header,{style:p.cardHeader,children:(0,r.jsx)(e=>{let{children:t}=e;return(0,r.jsx)("div",{children:t})},{children:(0,r.jsxs)("div",{style:p.firstCarDiv,children:[(0,r.jsx)("div",{style:p.image,children:(0,r.jsx)(d,{})}),"Home"]})})})})}),(0,r.jsxs)(l.Z.Item,{eventKey:"1",style:{border:"none"},children:[(0,r.jsx)(l.Z.Header,{children:(0,r.jsxs)("div",{style:p.cardDivs,children:[(0,r.jsx)("div",{style:p.image,children:(0,r.jsx)(h.Z,{height:30.855,width:30.855,color:"#182B49"})}),"Search"]})}),(0,r.jsx)(l.Z.Body,{children:(0,r.jsxs)("ul",{children:[(0,r.jsx)("li",{style:p.listItem,children:(0,r.jsx)(s.default,{href:"/emergencies/",style:{textDecoration:"none",color:"var(--bs-accordion-btn-color)",fontWeight:"bold"},children:"All Categories"})}),i.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)(s.default,{href:{pathname:"/category",query:{category:JSON.stringify(e)}},style:{textDecoration:"none",color:"var(--bs-accordion-btn-color)"},children:e.title})},e._id))]})})]}),(0,r.jsxs)(l.Z.Item,{eventKey:"2",style:{border:"none"},children:[(0,r.jsx)(l.Z.Header,{children:(0,r.jsxs)("div",{style:p.cardDivs,children:[(0,r.jsx)("div",{style:p.image,children:(0,r.jsx)(c,{})}),"General Principles"]})}),(0,r.jsx)(l.Z.Body,{children:(0,r.jsxs)("ul",{style:{listStyleType:"none"},children:[(0,r.jsx)("li",{style:p.listItem,children:(0,r.jsx)(s.default,{href:"/general-principles/",style:{textDecoration:"none",color:"var(--bs-accordion-btn-color)",fontWeight:"bold"},children:"All Categories"})}),e.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)(s.default,{href:{pathname:"/category",query:{category:JSON.stringify(e)}},style:{textDecoration:"none",color:"var(--bs-accordion-btn-color)"},children:e.title})},e._id))]})})]})]})})})})}},3385:function(){}},function(e){e.O(0,[422,792,946,971,69,744],function(){return e(e.s=7217)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/.firebase/sideline-sidekick-app/hosting/_next/static/chunks/app/page-9a523ca6079a7572.js b/.firebase/sideline-sidekick-app/hosting/_next/static/chunks/app/page-9a523ca6079a7572.js new file mode 100644 index 0000000..055420d --- /dev/null +++ b/.firebase/sideline-sidekick-app/hosting/_next/static/chunks/app/page-9a523ca6079a7572.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{3521:function(){}},function(n){n.O(0,[971,69,744],function(){return n(n.s=3521)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/.firebase/sideline-sidekick-app/hosting/_next/static/chunks/fd9d1056-7a5e3c090ec0a26d.js b/.firebase/sideline-sidekick-app/hosting/_next/static/chunks/fd9d1056-7a5e3c090ec0a26d.js new file mode 100644 index 0000000..c6b0bf5 --- /dev/null +++ b/.firebase/sideline-sidekick-app/hosting/_next/static/chunks/fd9d1056-7a5e3c090ec0a26d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[971],{4417:function(e,t,n){var r,l=n(2265),a=n(8172),o={usingClientEntryPoint:!1,Events:null,Dispatcher:{current:null}};function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;np||(e.current=d[p],d[p]=null,p--)}function g(e,t){d[++p]=e.current,e.current=t}var y=Symbol.for("react.element"),v=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),C=Symbol.for("react.context"),E=Symbol.for("react.server_context"),x=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),L=Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var T=Symbol.for("react.offscreen"),F=Symbol.for("react.legacy_hidden"),M=Symbol.for("react.cache");Symbol.for("react.tracing_marker");var O=Symbol.iterator;function R(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=O&&e[O]||e["@@iterator"])?e:null}var D=m(null),A=m(null),I=m(null),U=m(null),$={$$typeof:C,_currentValue:null,_currentValue2:null,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};function B(e,t){switch(g(I,t),g(A,e),g(D,null),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?sW(t):0;break;default:if(t=(e=8===e?t.parentNode:t).tagName,e=e.namespaceURI)t=sH(e=sW(e),t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}h(D),g(D,t)}function V(){h(D),h(A),h(I)}function j(e){null!==e.memoizedState&&g(U,e);var t=D.current,n=sH(t,e.type);t!==n&&(g(A,e),g(D,n))}function Q(e){A.current===e&&(h(D),h(A)),U.current===e&&(h(U),$._currentValue=null)}var W=a.unstable_scheduleCallback,H=a.unstable_cancelCallback,q=a.unstable_shouldYield,K=a.unstable_requestPaint,Y=a.unstable_now,X=a.unstable_getCurrentPriorityLevel,G=a.unstable_ImmediatePriority,Z=a.unstable_UserBlockingPriority,J=a.unstable_NormalPriority,ee=a.unstable_LowPriority,et=a.unstable_IdlePriority,en=null,er=null,el=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(ea(e)/eo|0)|0},ea=Math.log,eo=Math.LN2,ei=128,eu=4194304;function es(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194176&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ec(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,l=e.suspendedLanes;e=e.pingedLanes;var a=134217727&n;return 0!==a?0!=(n=a&~l)?r=es(n):0!=(e&=a)&&(r=es(e)):0!=(n&=~l)?r=es(n):0!==e&&(r=es(e)),0===r?0:0!==t&&t!==r&&0==(t&l)&&((l=r&-r)>=(e=t&-t)||32===l&&0!=(4194176&e))?t:r}function ef(e,t){return e.errorRecoveryDisabledLanes&t?0:0!=(e=-536870913&e.pendingLanes)?e:536870912&e?536870912:0}function ed(){var e=eu;return 0==(62914560&(eu<<=1))&&(eu=4194304),e}function ep(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function em(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0)}function eh(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-el(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|4194218&n}function eg(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-el(n),l=1<l||u[r]!==s[l]){var c="\n"+u[r].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=r&&0<=l);break}}}finally{eK=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?eq(n):""}var eX=Symbol.for("react.client.reference");function eG(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function eZ(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function eJ(e){e._valueTracker||(e._valueTracker=function(e){var t=eZ(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var l=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function e0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=eZ(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function e1(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var e2=/[\n"\\]/g;function e3(e){return e.replace(e2,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function e4(e,t,n,r,l,a,o,i){e.name="",null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o?e.type=o:e.removeAttribute("type"),null!=t?"number"===o?(0===t&&""===e.value||e.value!=t)&&(e.value=""+eG(t)):e.value!==""+eG(t)&&(e.value=""+eG(t)):"submit"!==o&&"reset"!==o||e.removeAttribute("value"),null!=t?e8(e,o,eG(t)):null!=n?e8(e,o,eG(n)):null!=r&&e.removeAttribute("value"),null==l&&null!=a&&(e.defaultChecked=!!a),null!=l&&(e.checked=l&&"function"!=typeof l&&"symbol"!=typeof l),null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i?e.name=""+eG(i):e.removeAttribute("name")}function e6(e,t,n,r,l,a,o,i){if(null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(e.type=a),null!=t||null!=n){if(!("submit"!==a&&"reset"!==a||null!=t))return;n=null!=n?""+eG(n):"",t=null!=t?""+eG(t):n,i||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:l)&&"symbol"!=typeof r&&!!r,e.checked=i?e.checked:!!r,e.defaultChecked=!!r,null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o&&(e.name=o)}function e8(e,t,n){"number"===t&&e1(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}var e5=Array.isArray;function e7(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=iU.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}var tn=tt;"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction&&(tn=function(e,t){return MSApp.execUnsafeLocalFunction(function(){return tt(e,t)})});var tr=tn;function tl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType){n.nodeValue=t;return}}e.textContent=t}var ta=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function to(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||ta.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function ti(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(i(62));if(e=e.style,null!=n){for(var r in n)!n.hasOwnProperty(r)||null!=t&&t.hasOwnProperty(r)||(0===r.indexOf("--")?e.setProperty(r,""):"float"===r?e.cssFloat="":e[r]="");for(var l in t)r=t[l],t.hasOwnProperty(l)&&n[l]!==r&&to(e,l,r)}else for(var a in t)t.hasOwnProperty(a)&&to(e,a,t[a])}function tu(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ts=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),tc=null;function tf(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var td=null,tp=null;function tm(e){var t=eT(e);if(t&&(e=t.stateNode)){var n=eM(e);switch(e=t.stateNode,t.type){case"input":if(e4(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+e3(""+t)+'"][type="radio"]'),t=0;t>=o,l-=o,t$=1<<32-el(t)+l|n<h?(g=f,f=null):g=f.sibling;var y=p(l,f,i[h],u);if(null===y){null===f&&(f=g);break}e&&f&&null===y.alternate&&t(l,f),o=a(y,o,h),null===c?s=y:c.sibling=y,c=y,f=g}if(h===i.length)return n(l,f),tK&&tV(l,h),s;if(null===f){for(;hg?(y=h,h=null):y=h.sibling;var b=p(l,h,v.value,s);if(null===b){null===h&&(h=y);break}e&&h&&null===b.alternate&&t(l,h),o=a(b,o,g),null===f?c=b:f.sibling=b,f=b,h=y}if(v.done)return n(l,h),tK&&tV(l,g),c;if(null===h){for(;!v.done;g++,v=u.next())null!==(v=d(l,v.value,s))&&(o=a(v,o,g),null===f?c=v:f.sibling=v,f=v);return tK&&tV(l,g),c}for(h=r(l,h);!v.done;g++,v=u.next())null!==(v=m(h,l,g,v.value,s))&&(e&&null!==v.alternate&&h.delete(null===v.key?g:v.key),o=a(v,o,g),null===f?c=v:f.sibling=v,f=v);return e&&h.forEach(function(e){return t(l,e)}),tK&&tV(l,g),c}(c,f,h,g);if("function"==typeof h.then)return s(c,f,n_(h),g);if(h.$$typeof===C||h.$$typeof===E)return s(c,f,an(c,h,g),g);nT(c,h)}return"string"==typeof h&&""!==h||"number"==typeof h?(h=""+h,null!==f&&6===f.tag?(n(c,f.sibling),(f=l(f,h)).return=c):(n(c,f),(f=iv(h,c.mode,g)).return=c),o(c=f)):n(c,f)}(s,c,f,h),nP=null,s}}var nO=nM(!0),nR=nM(!1),nD=m(null),nA=m(0);function nI(e,t){g(nA,e=ob),g(nD,t),ob=e|t.baseLanes}function nU(){g(nA,ob),g(nD,nD.current)}function n$(){ob=nA.current,h(nD),h(nA)}var nB=m(null),nV=null;function nj(e){var t=e.alternate;g(nq,1&nq.current),g(nB,e),null===nV&&(null===t||null!==nD.current?nV=e:null!==t.memoizedState&&(nV=e))}function nQ(e){if(22===e.tag){if(g(nq,nq.current),g(nB,e),null===nV){var t=e.alternate;null!==t&&null!==t.memoizedState&&(nV=e)}}else nW(e)}function nW(){g(nq,nq.current),g(nB,nB.current)}function nH(e){h(nB),nV===e&&(nV=null),h(nq)}var nq=m(0);function nK(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var nY=null,nX=null,nG=!1,nZ=!1,nJ=!1,n0=0;function n1(e){e!==nX&&null===e.next&&(null===nX?nY=nX=e:nX=nX.next=e),nZ=!0,nG||(nG=!0,n8(n4))}function n2(e){if(!nJ&&nZ){var t=null;nJ=!0;do for(var n=!1,r=nY;null!==r;){if(!e||0===r.tag){var l=oh,a=ec(r,r===op?l:0);if(0!=(3&a))try{if(n=!0,l=r,0!=(6&od))throw Error(i(327));if(!ie()){var o=o3(l,a);if(0!==l.tag&&2===o){var u=a,s=ef(l,u);0!==s&&(a=s,o=oQ(l,u,s))}if(1===o)throw u=ow,oG(l,0),oq(l,a,0),n1(l),u;6===o?oq(l,a,ox):(l.finishedWork=l.current.alternate,l.finishedLanes=a,o7(l,oP,oL,ox))}n1(l)}catch(e){null===t?t=[e]:t.push(e)}}r=r.next}while(n);if(nJ=!1,null!==t){if(1a?a:8;var o=ro.transition;ro.transition={},li(e,!1,t,n);try{var i=l();if(null!==i&&"object"==typeof i&&"function"==typeof i.then){var u=rt(i,r);lo(e,t,u)}else{var s=rn(i,r);lo(e,t,s)}}catch(n){lo(e,t,{then:function(){},status:"rejected",reason:n})}finally{ey=a,ro.transition=o}}function le(e,t,n,r){if(5!==e.tag)throw Error(i(476));if(null===e.memoizedState){var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rT,lastRenderedState:f},a=l;l={memoizedState:f,baseState:f,baseQueue:null,queue:l,next:null},e.memoizedState=l;var o=e.alternate;null!==o&&(o.memoizedState=l)}else a=e.memoizedState.queue;r9(e,a,t,f,function(){return n(r)})}function lt(){var e=at($);return null!==e?e:f}function ln(){return rN().memoizedState}function lr(){return rN().memoizedState}function ll(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=oB(t),r=nd(t,e=nf(n),n);null!==r&&(oV(r,t,n),np(r,t,n)),t={cache:au()},e.payload=t;return}t=t.return}}function la(e,t,n){var r=oB(e);n={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},lu(e)?ls(t,n):null!==(n=nl(e,t,n,r))&&(oV(n,e,r),lc(n,t,r))}function lo(e,t,n){var r=oB(e),l={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(lu(e))ls(t,l);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var o=t.lastRenderedState,i=a(o,n);if(l.hasEagerState=!0,l.eagerState=i,tF(i,o)){nr(e,t,l,0),null===op&&nn();return}}catch(e){}finally{}null!==(n=nl(e,t,l,r))&&(oV(n,e,r),lc(n,t,r))}}function li(e,t,n,r){if(r={lane:2,revertLane:n5(),action:r,hasEagerState:!1,eagerState:null,next:null},lu(e)){if(t)throw Error(i(479))}else null!==(t=nl(e,n,r,2))&&oV(t,e,2)}function lu(e){var t=e.alternate;return e===ru||null!==t&&t===ru}function ls(e,t){rd=rf=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function lc(e,t,n){if(0!=(4194176&n)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,eg(e,n)}}i$=function(){return{lastEffect:null,events:null,stores:null}};var lf={readContext:at,use:rL,useCallback:rv,useContext:rv,useEffect:rv,useImperativeHandle:rv,useInsertionEffect:rv,useLayoutEffect:rv,useMemo:rv,useReducer:rv,useRef:rv,useState:rv,useDebugValue:rv,useDeferredValue:rv,useTransition:rv,useSyncExternalStore:rv,useId:rv};lf.useCacheRefresh=rv,lf.useHostTransitionStatus=rv,lf.useFormState=rv,lf.useOptimistic=rv;var ld={readContext:at,use:rL,useCallback:function(e,t){return rP().memoizedState=[e,void 0===t?null:t],e},useContext:at,useEffect:rJ,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,rG(4194308,4,r3.bind(null,t,e),n)},useLayoutEffect:function(e,t){return rG(4194308,4,e,t)},useInsertionEffect:function(e,t){rG(4,2,e,t)},useMemo:function(e,t){var n=rP();return t=void 0===t?null:t,rp&&e(),e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=rP();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=la.bind(null,ru,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},rP().memoizedState=e},useState:function(e){var t=(e=rB(e)).queue,n=lo.bind(null,ru,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:r6,useDeferredValue:function(e){return rP().memoizedState=e,e},useTransition:function(){var e=rB(!1);return e=r9.bind(null,ru,e.queue,!0,!1),rP().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=ru,l=rP();if(tK){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===op)throw Error(i(349));0!=(60&oh)||rD(r,t,n)}l.memoizedState=n;var a={value:n,getSnapshot:t};return l.queue=a,rJ(rI.bind(null,r,a,e),[e]),r.flags|=2048,rY(9,rA.bind(null,r,a,n,t),{destroy:void 0},null),n},useId:function(){var e=rP(),t=op.identifierPrefix;if(tK){var n=tB,r=t$;t=":"+t+"R"+(n=(r&~(1<<32-el(r)-1)).toString(32)+n),0<(n=rm++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ry++).toString(32)+":";return e.memoizedState=t},useCacheRefresh:function(){return rP().memoizedState=ll.bind(null,ru)}};ld.useHostTransitionStatus=lt,ld.useFormState=function(e,t){if(tK){var n=op.formState;if(null!==n){e:{if(tK){if(tq){t:{for(var r=tq,l=tX;8!==r.nodeType;)if(!l||null===(r=s4(r))){r=null;break t}r="F!"===(l=r.data)||"F"===l?r:null}if(r){tq=s4(r),r="F!"===r.data;break e}}t3()}r=!1}r&&(t=n[0])}}return(n=rP()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rH,lastRenderedState:t},n.queue=r,n=lo.bind(null,ru,r),r.dispatch=n,r=rP(),l={state:t,dispatch:null,action:e,pending:null},r.queue=l,n=rj.bind(null,ru,l,n),l.dispatch=n,r.memoizedState=e,[t,n]},ld.useOptimistic=function(e){var t=rP();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=li.bind(null,ru,!0,n),n.dispatch=t,[e,t]};var lp={readContext:at,use:rL,useCallback:r8,useContext:at,useEffect:r0,useImperativeHandle:r4,useInsertionEffect:r1,useLayoutEffect:r2,useMemo:r5,useReducer:rF,useRef:rX,useState:function(){return rF(rT)},useDebugValue:r6,useDeferredValue:function(e){return r7(rN(),rs.memoizedState,e)},useTransition:function(){var e=rF(rT)[0],t=rN().memoizedState;return["boolean"==typeof e?e:r_(e),t]},useSyncExternalStore:rR,useId:ln};lp.useCacheRefresh=lr,lp.useHostTransitionStatus=lt,lp.useFormState=function(e){return rq(rN(),rs,e)},lp.useOptimistic=function(e,t){return rV(rN(),rs,e,t)};var lm={readContext:at,use:rL,useCallback:r8,useContext:at,useEffect:r0,useImperativeHandle:r4,useInsertionEffect:r1,useLayoutEffect:r2,useMemo:r5,useReducer:rO,useRef:rX,useState:function(){return rO(rT)},useDebugValue:r6,useDeferredValue:function(e){var t=rN();return null===rs?(t.memoizedState=e,e):r7(t,rs.memoizedState,e)},useTransition:function(){var e=rO(rT)[0],t=rN().memoizedState;return["boolean"==typeof e?e:r_(e),t]},useSyncExternalStore:rR,useId:ln};function lh(e,t){if(e&&e.defaultProps)for(var n in t=u({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}function lg(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:u({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}lm.useCacheRefresh=lr,lm.useHostTransitionStatus=lt,lm.useFormState=function(e){var t=rN(),n=rs;if(null!==n)return rq(t,n,e);t=t.memoizedState;var r=(n=rN()).queue.dispatch;return n.memoizedState=e,[t,r]},lm.useOptimistic=function(e,t){var n=rN();return null!==rs?rV(n,rs,e,t):(n.baseState=e,[e,n.queue.dispatch])};var ly={isMounted:function(e){return!!(e=e._reactInternals)&&ty(e)===e},enqueueSetState:function(e,t,n){var r=oB(e=e._reactInternals),l=nf(r);l.payload=t,null!=n&&(l.callback=n),null!==(t=nd(e,l,r))&&(oV(t,e,r),np(t,e,r))},enqueueReplaceState:function(e,t,n){var r=oB(e=e._reactInternals),l=nf(r);l.tag=1,l.payload=t,null!=n&&(l.callback=n),null!==(t=nd(e,l,r))&&(oV(t,e,r),np(t,e,r))},enqueueForceUpdate:function(e,t){var n=oB(e=e._reactInternals),r=nf(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=nd(e,r,n))&&(oV(t,e,n),np(t,e,n))}};function lv(e,t,n,r,l,a,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!t.prototype||!t.prototype.isPureReactComponent||!nv(n,r)||!nv(l,a)}function lb(e,t,n){var r=!1,l=tw,a=t.contextType;return"object"==typeof a&&null!==a?a=at(a):(l=tz(t)?tE:tS.current,a=(r=null!=(r=t.contextTypes))?tx(e,l):tw),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ly,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=a),t}function lk(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ly.enqueueReplaceState(t,t.state,null)}function lw(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},ns(e);var a=t.contextType;"object"==typeof a&&null!==a?l.context=at(a):(a=tz(t)?tE:tS.current,l.context=tx(e,a)),l.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(lg(e,t,a,n),l.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof l.getSnapshotBeforeUpdate||"function"!=typeof l.UNSAFE_componentWillMount&&"function"!=typeof l.componentWillMount||(t=l.state,"function"==typeof l.componentWillMount&&l.componentWillMount(),"function"==typeof l.UNSAFE_componentWillMount&&l.UNSAFE_componentWillMount(),t!==l.state&&ly.enqueueReplaceState(l,l.state,null),nh(e,n,l,r),l.state=e.memoizedState),"function"==typeof l.componentDidMount&&(e.flags|=4194308)}function lS(e,t){try{var n="",r=t;do n+=function(e){switch(e.tag){case 26:case 27:case 5:return eq(e.type);case 16:return eq("Lazy");case 13:return eq("Suspense");case 19:return eq("SuspenseList");case 0:case 2:case 15:return e=eY(e.type,!1);case 11:return e=eY(e.type.render,!1);case 1:return e=eY(e.type,!0);default:return""}}(r),r=r.return;while(r);var l=n}catch(e){l="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:l,digest:null}}function lC(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function lE(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}function lx(e,t,n){(n=nf(n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){oT||(oT=!0,oF=r),lE(e,t)},n}function lz(e,t,n){(n=nf(n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){lE(e,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){lE(e,t),"function"!=typeof r&&(null===oM?oM=new Set([this]):oM.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}function lP(e,t,n,r,l){return 0==(1&e.mode)?e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=nf(2)).tag=2,nd(n,t,2))),n.lanes|=2):(e.flags|=65536,e.lanes=l),e}var lN=s.ReactCurrentOwner,l_=Error(i(461)),lL=!1;function lT(e,t,n,r){t.child=null===e?nR(t,null,n,r):nO(t,e.child,n,r)}function lF(e,t,n,r,l){n=n.render;var a=t.ref;return(ae(t,l),r=rk(e,t,n,r,a,l),n=rE(),null===e||lL)?(tK&&n&&tQ(t),t.flags|=1,lT(e,t,r,l),t.child):(rx(e,t,l),l0(e,t,l))}function lM(e,t,n,r,l){if(null===e){var a=n.type;return"function"!=typeof a||id(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=ih(n.type,null,r,null,t,t.mode,l)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,lO(e,t,a,r,l))}if(a=e.child,0==(e.lanes&l)){var o=a.memoizedProps;if((n=null!==(n=n.compare)?n:nv)(o,r)&&e.ref===t.ref)return l0(e,t,l)}return t.flags|=1,(e=ip(a,r)).ref=t.ref,e.return=t,t.child=e}function lO(e,t,n,r,l){if(null!==e){var a=e.memoizedProps;if(nv(a,r)&&e.ref===t.ref){if(lL=!1,t.pendingProps=r=a,0==(e.lanes&l))return t.lanes=e.lanes,l0(e,t,l);0!=(131072&e.flags)&&(lL=!0)}}return lI(e,t,n,r,l)}function lR(e,t,n){var r=t.pendingProps,l=r.children,a=0!=(2&t.stateNode._pendingVisibility),o=null!==e?e.memoizedState:null;if(lA(e,t),"hidden"===r.mode||a){if(0!=(128&t.flags)){if(n=null!==o?o.baseLanes|n:n,null!==e){for(l=0,r=t.child=e.child;null!==r;)l=l|r.lanes|r.childLanes,r=r.sibling;t.childLanes=l&~n}else t.childLanes=0,t.child=null;return lD(e,t,n)}if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null},null!==e&&ap(t,null),nU(),nQ(t);else{if(0==(536870912&n))return t.lanes=t.childLanes=536870912,lD(e,t,null!==o?o.baseLanes|n:n);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&ap(t,null!==o?o.cachePool:null),null!==o?nI(t,o):nU(),nQ(t)}}else null!==o?(ap(t,o.cachePool),nI(t,o),nW(t),t.memoizedState=null):(null!==e&&ap(t,null),nU(),nW(t));return lT(e,t,l,n),t.child}function lD(e,t,n){var r=ad();return r=null===r?null:{parent:ai._currentValue,pool:r},t.memoizedState={baseLanes:n,cachePool:r},null!==e&&ap(t,null),nU(),nQ(t),null}function lA(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function lI(e,t,n,r,l){var a=tz(n)?tE:tS.current;return(a=tx(t,a),ae(t,l),n=rk(e,t,n,r,a,l),r=rE(),null===e||lL)?(tK&&r&&tQ(t),t.flags|=1,lT(e,t,n,l),t.child):(rx(e,t,l),l0(e,t,l))}function lU(e,t,n,r,l,a){return(ae(t,a),n=rS(t,r,n,l),rw(),r=rE(),null===e||lL)?(tK&&r&&tQ(t),t.flags|=1,lT(e,t,n,a),t.child):(rx(e,t,a),l0(e,t,a))}function l$(e,t,n,r,l){if(tz(n)){var a=!0;tL(t)}else a=!1;if(ae(t,l),null===t.stateNode)lJ(e,t),lb(t,n,r),lw(t,n,r,l),r=!0;else if(null===e){var o=t.stateNode,i=t.memoizedProps;o.props=i;var u=o.context,s=n.contextType;s="object"==typeof s&&null!==s?at(s):tx(t,s=tz(n)?tE:tS.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof o.getSnapshotBeforeUpdate;f||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(i!==r||u!==s)&&lk(t,o,r,s),nu=!1;var d=t.memoizedState;o.state=d,nh(t,r,o,l),u=t.memoizedState,i!==r||d!==u||tC.current||nu?("function"==typeof c&&(lg(t,n,c,r),u=t.memoizedState),(i=nu||lv(t,n,i,r,d,u,s))?(f||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4194308)):("function"==typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=s,r=i):("function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,nc(e,t),i=t.memoizedProps,s=t.type===t.elementType?i:lh(t.type,i),o.props=s,f=t.pendingProps,d=o.context,u="object"==typeof(u=n.contextType)&&null!==u?at(u):tx(t,u=tz(n)?tE:tS.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(i!==f||d!==u)&&lk(t,o,r,u),nu=!1,d=t.memoizedState,o.state=d,nh(t,r,o,l);var m=t.memoizedState;i!==f||d!==m||tC.current||nu?("function"==typeof p&&(lg(t,n,p,r),m=t.memoizedState),(s=nu||lv(t,n,s,r,d,m,u)||!1)?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,m,u),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,m,u)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=u,r=s):("function"!=typeof o.componentDidUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return lB(e,t,n,r,a,l)}function lB(e,t,n,r,l,a){lA(e,t);var o=0!=(128&t.flags);if(!r&&!o)return l&&tT(t,n,!1),l0(e,t,a);r=t.stateNode,lN.current=t;var i=o&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=nO(t,e.child,null,a),t.child=nO(t,null,i,a)):lT(e,t,i,a),t.memoizedState=r.state,l&&tT(t,n,!0),t.child}function lV(e){var t=e.stateNode;t.pendingContext?tN(e,t.pendingContext,t.pendingContext!==t.context):t.context&&tN(e,t.context,!1),B(e,t.containerInfo)}function lj(e,t,n,r,l){return t5(),t7(l),t.flags|=256,lT(e,t,n,r),t.child}var lQ={dehydrated:null,treeContext:null,retryLane:0};function lW(e){return{baseLanes:e,cachePool:am()}}function lH(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=ox),e}function lq(e,t,n){var r,l=t.pendingProps,a=!1,o=0!=(128&t.flags);if((r=o)||(r=(null===e||null!==e.memoizedState)&&0!=(2&nq.current)),r&&(a=!0,t.flags&=-129),r=0!=(32&t.flags),t.flags&=-33,null===e){if(tK){if(a?nj(t):nW(t),tK){var u=o=tq;if(u){if(!t1(t,u)){t2(t)&&t3(),tq=s4(u);var s=tH;tq&&t1(t,tq)?tG(s,u):(tZ(tH,t),tK=!1,tH=t,tq=o)}}else t2(t)&&t3(),tZ(tH,t),tK=!1,tH=t,tq=o}if(null!==(o=t.memoizedState)&&null!==(o=o.dehydrated))return 0==(1&t.mode)?t.lanes=2:"$!"===o.data?t.lanes=16:t.lanes=536870912,null;nH(t)}return(o=l.children,l=l.fallback,a)?(nW(t),a=t.mode,u=t.child,o={mode:"hidden",children:o},0==(1&a)&&null!==u?(u.childLanes=0,u.pendingProps=o):u=iy(o,a,0,null),l=ig(l,a,n,null),u.return=t,l.return=t,u.sibling=l,t.child=u,(a=t.child).memoizedState=lW(n),a.childLanes=lH(e,r,n),t.memoizedState=lQ,l):(nj(t),lK(t,o))}if(null!==(u=e.memoizedState)&&null!==(s=u.dehydrated))return function(e,t,n,r,l,a,o,u){if(n)return 256&t.flags?(nj(t),t.flags&=-257,lY(e,t,u,a=lC(Error(i(422))))):null!==t.memoizedState?(nW(t),t.child=e.child,t.flags|=128,null):(nW(t),a=l.fallback,o=t.mode,l=iy({mode:"visible",children:l.children},o,0,null),a=ig(a,o,u,null),a.flags|=2,l.return=t,a.return=t,l.sibling=a,t.child=l,0!=(1&t.mode)&&nO(t,e.child,null,u),(o=t.child).memoizedState=lW(u),o.childLanes=lH(e,r,u),t.memoizedState=lQ,a);if(nj(t),0==(1&t.mode))return lY(e,t,u,null);if("$!"===a.data){if(a=a.nextSibling&&a.nextSibling.dataset)var s=a.dgst;return a=s,(r=Error(i(419))).digest=a,lY(e,t,u,a=lC(r,a,void 0))}if(r=0!=(u&e.childLanes),lL||r){if(null!==(r=op)){if(0!=(42&(l=u&-u)))l=1;else switch(l){case 2:l=1;break;case 8:l=4;break;case 32:l=16;break;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:l=64;break;case 268435456:l=134217728;break;default:l=0}if(0!==(l=0!=(l&(r.suspendedLanes|u))?0:l)&&l!==o.retryLane)throw o.retryLane=l,na(e,l),oV(r,e,l),l_}return"$?"!==a.data&&o2(),lY(e,t,u,null)}return"$?"===a.data?(t.flags|=128,t.child=e.child,t=ii.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,tq=s3(a.nextSibling),tH=t,tK=!0,tY=null,tX=!1,null!==e&&(tA[tI++]=t$,tA[tI++]=tB,tA[tI++]=tU,t$=e.id,tB=e.overflow,tU=t),t=lK(t,l.children),t.flags|=4096,t)}(e,t,o,r,l,s,u,n);if(a){nW(t),a=l.fallback,o=t.mode,s=(u=e.child).sibling;var c={mode:"hidden",children:l.children};return 0==(1&o)&&t.child!==u?((l=t.child).childLanes=0,l.pendingProps=c,t.deletions=null):(l=ip(u,c)).subtreeFlags=31457280&u.subtreeFlags,null!==s?a=ip(s,a):(a=ig(a,o,n,null),a.flags|=2),a.return=t,l.return=t,l.sibling=a,t.child=l,l=a,a=t.child,null===(o=e.child.memoizedState)?o=lW(n):(null!==(u=o.cachePool)?(s=ai._currentValue,u=u.parent!==s?{parent:s,pool:s}:u):u=am(),o={baseLanes:o.baseLanes|n,cachePool:u}),a.memoizedState=o,a.childLanes=lH(e,r,n),t.memoizedState=lQ,l}return nj(t),e=(r=e.child).sibling,r=ip(r,{mode:"visible",children:l.children}),0==(1&t.mode)&&(r.lanes=n),r.return=t,r.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function lK(e,t){return(t=iy({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function lY(e,t,n,r){return null!==r&&t7(r),nO(t,e.child,null,n),e=lK(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function lX(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),l7(e.return,t,n)}function lG(e,t,n,r,l){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=l)}function lZ(e,t,n){var r=t.pendingProps,l=r.revealOrder,a=r.tail;if(lT(e,t,r.children,n),0!=(2&(r=nq.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&lX(e,n,t);else if(19===e.tag)lX(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(g(nq,r),0==(1&t.mode))t.memoizedState=null;else switch(l){case"forwards":for(l=null,n=t.child;null!==n;)null!==(e=n.alternate)&&null===nK(e)&&(l=n),n=n.sibling;null===(n=l)?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),lG(t,!1,l,n,a);break;case"backwards":for(n=null,l=t.child,t.child=null;null!==l;){if(null!==(e=l.alternate)&&null===nK(e)){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}lG(t,!0,n,null,a);break;case"together":lG(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function lJ(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function l0(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),oS|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=ip(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=ip(e,e.pendingProps)).return=t;n.sibling=null}return t.child}var l1=m(null),l2=null,l3=null,l4=null;function l6(){l4=l3=l2=null}function l8(e,t,n){g(l1,t._currentValue),t._currentValue=n}function l5(e){e._currentValue=l1.current,h(l1)}function l7(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function l9(e,t,n){var r=e.child;for(null!==r&&(r.return=e);null!==r;){var l=r.dependencies;if(null!==l)for(var a=r.child,o=l.firstContext;null!==o;){if(o.context===t){if(1===r.tag){(o=nf(n&-n)).tag=2;var u=r.updateQueue;if(null!==u){var s=(u=u.shared).pending;null===s?o.next=o:(o.next=s.next,s.next=o),u.pending=o}}r.lanes|=n,null!==(o=r.alternate)&&(o.lanes|=n),l7(r.return,n,e),l.lanes|=n;break}o=o.next}else if(10===r.tag)a=r.type===e.type?null:r.child;else if(18===r.tag){if(null===(a=r.return))throw Error(i(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),l7(a,n,e),a=r.sibling}else a=r.child;if(null!==a)a.return=r;else for(a=r;null!==a;){if(a===e){a=null;break}if(null!==(r=a.sibling)){r.return=a.return,a=r;break}a=a.return}r=a}}function ae(e,t){l2=e,l4=l3=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(lL=!0),e.firstContext=null)}function at(e){return ar(l2,e)}function an(e,t,n){return null===l2&&ae(e,n),ar(e,t)}function ar(e,t){var n=t._currentValue;if(l4!==t){if(t={context:t,memoizedValue:n,next:null},null===l3){if(null===e)throw Error(i(308));l3=t,e.dependencies={lanes:0,firstContext:t}}else l3=l3.next=t}return n}var al="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},aa=a.unstable_scheduleCallback,ao=a.unstable_NormalPriority,ai={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_defaultValue:null,_globalName:null};function au(){return{controller:new al,data:new Map,refCount:0}}function as(e){e.refCount--,0===e.refCount&&aa(ao,function(){e.controller.abort()})}var ac=s.ReactCurrentBatchConfig,af=m(null);function ad(){var e=af.current;return null!==e?e:op.pooledCache}function ap(e,t){null===t?g(af,af.current):g(af,t.pool)}function am(){var e=ad();return null===e?null:{parent:ai._currentValue,pool:e}}function ah(e){e.flags|=4}function ag(e){e.flags|=2097664}function ay(e,t){if("stylesheet"!==t.type||0!=(4&t.state.loading))e.flags&=-16777217;else if(e.flags|=16777216,0==(42&oh)&&!(t="stylesheet"!==t.type||0!=(3&t.state.loading))){if(oJ())e.flags|=8192;else throw nx=nw,nk}}function av(e,t){null!==t?e.flags|=4:16384&e.flags&&(t=22!==e.tag?ed():536870912,e.lanes|=t)}function ab(e,t){if(!tK)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ak(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;null!==l;)n|=l.lanes|l.childLanes,r|=31457280&l.subtreeFlags,r|=31457280&l.flags,l.return=e,l=l.sibling;else for(l=e.child;null!==l;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function aw(e,t){switch(tW(t),t.tag){case 1:null!=(e=t.type.childContextTypes)&&tP();break;case 3:l5(ai),V(),h(tC),h(tS);break;case 26:case 27:case 5:Q(t);break;case 4:V();break;case 13:nH(t);break;case 19:h(nq);break;case 10:l5(t.type._context);break;case 22:case 23:nH(t),n$(),null!==e&&h(af);break;case 24:l5(ai)}}function aS(e,t,n){var r=Array.prototype.slice.call(arguments,3);try{t.apply(n,r)}catch(e){this.onError(e)}}var aC=!1,aE=null,ax=!1,az=null,aP={onError:function(e){aC=!0,aE=e}};function aN(e,t,n,r,l,a,o,i,u){aC=!1,aE=null,aS.apply(aP,arguments)}var a_=!1,aL=!1,aT="function"==typeof WeakSet?WeakSet:Set,aF=null;function aM(e,t){try{var n=e.ref;if(null!==n){var r=e.stateNode;switch(e.tag){case 26:case 27:case 5:var l=r;break;default:l=r}"function"==typeof n?e.refCleanup=n(l):n.current=l}}catch(n){ir(e,t,n)}}function aO(e,t){var n=e.ref,r=e.refCleanup;if(null!==n){if("function"==typeof r)try{r()}catch(n){ir(e,t,n)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(n){ir(e,t,n)}else n.current=null}}function aR(e,t,n){try{n()}catch(n){ir(e,t,n)}}var aD=!1;function aA(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var l=r=r.next;do{if((l.tag&e)===e){var a=l.inst,o=a.destroy;void 0!==o&&(a.destroy=void 0,aR(t,n,o))}l=l.next}while(l!==r)}}function aI(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create,l=n.inst;r=r(),l.destroy=r}n=n.next}while(n!==t)}}function aU(e,t){try{aI(t,e)}catch(t){ir(e,e.return,t)}}function a$(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{ny(t,n)}catch(t){ir(e,e.return,t)}}}function aB(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break;case"img":n.src&&(r.src=n.src)}}catch(t){ir(e,e.return,t)}}function aV(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:a2(e,n),4&r&&aU(n,5);break;case 1:if(a2(e,n),4&r){if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(e){ir(n,n.return,e)}else{var l=n.elementType===n.type?t.memoizedProps:lh(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(l,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){ir(n,n.return,e)}}}64&r&&a$(n),512&r&&aM(n,n.return);break;case 3:if(a2(e,n),64&r&&null!==(r=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:e=n.child.stateNode}try{ny(r,e)}catch(e){ir(n,n.return,e)}}break;case 26:a2(e,n),512&r&&aM(n,n.return);break;case 27:case 5:a2(e,n),null===t&&4&r&&aB(n),512&r&&aM(n,n.return);break;case 12:default:a2(e,n);break;case 13:a2(e,n),4&r&&aX(e,n);break;case 22:if(0!=(1&n.mode)){if(!(l=null!==n.memoizedState||a_)){t=null!==t&&null!==t.memoizedState||aL;var a=a_,o=aL;a_=l,(aL=t)&&!o?function e(t,n,r){for(r=r&&0!=(8772&n.subtreeFlags),n=n.child;null!==n;){var l=n.alternate,a=t,o=n,i=o.flags;switch(o.tag){case 0:case 11:case 15:e(a,o,r),aU(o,4);break;case 1:if(e(a,o,r),"function"==typeof(a=o.stateNode).componentDidMount)try{a.componentDidMount()}catch(e){ir(o,o.return,e)}if(null!==(l=o.updateQueue)){var u=l.shared.hiddenCallbacks;if(null!==u)for(l.shared.hiddenCallbacks=null,l=0;l title"))),s$(l,n,r),l[ew]=e,eR(l),n=l;break e;case"link":var a=cp("link","href",t).get(n+(r.href||""));if(a){for(var o=0;o",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof r.is?l.createElement("select",{is:r.is}):l.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e="string"==typeof r.is?l.createElement(n,{is:r.is}):l.createElement(n)}}e[ew]=t,e[eS]=r;e:for(l=t.child;null!==l;){if(5===l.tag||6===l.tag)e.appendChild(l.stateNode);else if(4!==l.tag&&27!==l.tag&&null!==l.child){l.child.return=l,l=l.child;continue}if(l===t)break;for(;null===l.sibling;){if(null===l.return||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}switch(t.stateNode=e,s$(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break;case"img":e=!0;break;default:e=!1}e&&ah(t)}null!==t.ref&&ag(t)}return ak(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&ah(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(e=I.current,t6(t)){e:{if(e=t.stateNode,n=t.memoizedProps,e[ew]=t,(r=e.nodeValue!==n)&&null!==(l=tH))switch(l.tag){case 3:if(l=0!=(1&l.mode),sD(e.nodeValue,n,l),l){e=!1;break e}break;case 27:case 5:var a=0!=(1&l.mode);if(!0!==l.memoizedProps.suppressHydrationWarning&&sD(e.nodeValue,n,a),a){e=!1;break e}}e=r}e&&ah(t)}else(e=sQ(e).createTextNode(r))[ew]=t,t.stateNode=e}return ak(t),null;case 13:if(nH(t),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(tK&&null!==tq&&0!=(1&t.mode)&&0==(128&t.flags))t8(),t5(),t.flags|=384,l=!1;else if(l=t6(t),null!==r&&null!==r.dehydrated){if(null===e){if(!l)throw Error(i(318));if(!(l=null!==(l=t.memoizedState)?l.dehydrated:null))throw Error(i(317));l[ew]=t}else t5(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;ak(t),l=!1}else null!==tY&&(oW(tY),tY=null),l=!0;if(!l)return 256&t.flags?t:null}if(0!=(128&t.flags))return t.lanes=n,t;return n=null!==r,e=null!==e&&null!==e.memoizedState,n&&(r=t.child,l=null,null!==r.alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(l=r.alternate.memoizedState.cachePool.pool),a=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(a=r.memoizedState.cachePool.pool),a!==l&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),av(t,t.updateQueue),ak(t),null;case 4:return V(),null===e&&sz(t.stateNode.containerInfo),ak(t),null;case 10:return l5(t.type._context),ak(t),null;case 19:if(h(nq),null===(l=t.memoizedState))return ak(t),null;if(r=0!=(128&t.flags),null===(a=l.rendering)){if(r)ab(l,!1);else{if(0!==ok||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(a=nK(e))){for(t.flags|=128,ab(l,!1),e=a.updateQueue,t.updateQueue=e,av(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)im(n,e),n=n.sibling;return g(nq,1&nq.current|2),t.child}e=e.sibling}null!==l.tail&&Y()>o_&&(t.flags|=128,r=!0,ab(l,!1),t.lanes=4194304)}}else{if(!r){if(null!==(e=nK(a))){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,av(t,e),ab(l,!0),null===l.tail&&"hidden"===l.tailMode&&!a.alternate&&!tK)return ak(t),null}else 2*Y()-l.renderingStartTime>o_&&536870912!==n&&(t.flags|=128,r=!0,ab(l,!1),t.lanes=4194304)}l.isBackwards?(a.sibling=t.child,t.child=a):(null!==(e=l.last)?e.sibling=a:t.child=a,l.last=a)}if(null!==l.tail)return t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Y(),t.sibling=null,e=nq.current,g(nq,r?1&e|2:1&e),t;return ak(t),null;case 22:case 23:return nH(t),n$(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(536870912&n)&&0==(128&t.flags)&&(ak(t),6&t.subtreeFlags&&(t.flags|=8192)):ak(t),null!==(n=t.updateQueue)&&av(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&h(af),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),l5(ai),ak(t),null;case 25:return null}throw Error(i(156,t.tag))}(t.alternate,t,ob);if(null!==n){om=n;return}if(null!==(t=t.sibling)){om=t;return}om=t=e}while(null!==t);0===ok&&(ok=5)}function o7(e,t,n,r){var l=ey,a=of.transition;try{of.transition=null,ey=2,function(e,t,n,r,l){do ie();while(null!==oR);if(0!=(6&od))throw Error(i(327));var a=e.finishedWork,o=e.finishedLanes;if(null!==a){if(e.finishedWork=null,e.finishedLanes=0,a===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0,e.cancelPendingCommit=null;var u=a.lanes|a.childLanes;if(function(e,t,n){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.entangledLanes&=t,e.errorRecoveryDisabledLanes&=t,e.shellSuspendCounter=0,t=e.entanglements;for(var l=e.expirationTimes,a=e.hiddenUpdates;0r&&(l=r,r=a,a=l),l=u8(n,a);var o=u8(n,r);l&&o&&(1!==e.rangeCount||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(l.node,l.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;nn?32:n;n=of.transition;var l=ey;try{if(of.transition=null,ey=r,null===oR)var a=!1;else{r=oI,oI=null;var o=oR,u=oD;if(oR=null,oD=0,0!=(6&od))throw Error(i(331));var s=od;if(od|=4,ol(o.current),a5(o,o.current,u,r),od=s,n2(!1),er&&"function"==typeof er.onPostCommitFiberRoot)try{er.onPostCommitFiberRoot(en,o)}catch(e){}a=!0}return a}finally{ey=l,of.transition=n,o9(e,t)}}return!1}function it(e,t,n){t=lx(e,t=lS(n,t),2),null!==(e=nd(e,t,2))&&(em(e,2),n1(e))}function ir(e,t,n){if(3===e.tag)it(e,e,n);else for(;null!==t;){if(3===t.tag){it(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===oM||!oM.has(r))){e=lz(t,e=lS(n,e),2),null!==(t=nd(t,e,2))&&(em(t,2),n1(t));break}}t=t.return}}function il(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new oi;var l=new Set;r.set(t,l)}else void 0===(l=r.get(t))&&(l=new Set,r.set(t,l));l.has(n)||(ov=!0,l.add(n),e=ia.bind(null,e,t,n),t.then(e,e))}function ia(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,op===e&&(oh&n)===n&&(4===ok||3===ok&&(62914560&oh)===oh&&300>Y()-oN?0==(2&od)&&oG(e,0):oE|=n),n1(e)}function io(e,t){0===t&&(t=0==(1&e.mode)?2:ed()),null!==(e=na(e,t))&&(em(e,t),n1(e))}function ii(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),io(e,n)}function iu(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;null!==l&&(n=l.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}null!==r&&r.delete(t),io(e,n)}function is(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ic(e,t,n,r){return new is(e,t,n,r)}function id(e){return!(!(e=e.prototype)||!e.isReactComponent)}function ip(e,t){var n=e.alternate;return null===n?((n=ic(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=31457280&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function im(e,t){e.flags&=31457282;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ih(e,t,n,r,l,a,o){if(l=2,r=e,"function"==typeof e)id(e)&&(l=1);else if("string"==typeof e)l=!function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;if("stylesheet"===t.rel)return e=t.disabled,"string"==typeof t.precedence&&null==e;return!0;case"script":if(!0===t.async&&!t.onLoad&&!t.onError&&"string"==typeof t.src&&t.src)return!0}return!1}(e,n,D.current)?"html"===e||"head"===e||"body"===e?27:5:26;else e:switch(e){case b:return ig(n.children,a,o,t);case k:l=8,0!=(1&(a|=8))&&(a|=16);break;case w:return(e=ic(12,n,t,2|a)).elementType=w,e.lanes=o,e;case z:return(e=ic(13,n,t,a)).elementType=z,e.lanes=o,e;case P:return(e=ic(19,n,t,a)).elementType=P,e.lanes=o,e;case T:return iy(n,a,o,t);case F:case L:case M:return(e=ic(24,n,t,a)).elementType=M,e.lanes=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case S:l=10;break e;case C:l=9;break e;case x:l=11;break e;case N:l=14;break e;case _:l=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=ic(l,n,t,a)).elementType=e,t.type=r,t.lanes=o,t}function ig(e,t,n,r){return(e=ic(7,e,r,t)).lanes=n,e}function iy(e,t,n,r){(e=ic(22,e,r,t)).elementType=T,e.lanes=n;var l={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var e=l._current;if(null===e)throw Error(i(456));if(0==(2&l._pendingVisibility)){var t=na(e,2);null!==t&&(l._pendingVisibility|=2,oV(t,e,2))}},attach:function(){var e=l._current;if(null===e)throw Error(i(456));if(0!=(2&l._pendingVisibility)){var t=na(e,2);null!==t&&(l._pendingVisibility&=-3,oV(t,e,2))}}};return e.stateNode=l,e}function iv(e,t,n){return(e=ic(6,e,null,t)).lanes=n,e}function ib(e,t,n){return(t=ic(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ik(e,t,n,r,l,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ep(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ep(0),this.hiddenUpdates=ep(null),this.identifierPrefix=r,this.onRecoverableError=l,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=a,this.incompleteTransitions=new Map}function iw(e,t,n,r,l,a,o,i,u,s,c){return e=new ik(e,t,n,i,u,c),1===t?(t=1,!0===a&&(t|=24)):t=0,a=ic(3,null,null,t),e.current=a,a.stateNode=e,t=au(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},ns(a),e}function iS(e){if(!e)return tw;e=e._reactInternals;e:{if(ty(e)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(tz(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(tz(n))return t_(e,n,t)}return t}function iC(e,t,n,r,l,a,o,i,u,s,c){return(e=iw(n,r,!0,e,l,a,o,i,u,s,c)).context=iS(null),(l=nf(r=oB(n=e.current))).callback=null!=t?t:null,nd(n,l,r),e.current.lanes=r,em(e,r),n1(e),e}function iE(e,t,n,r){var l=t.current,a=oB(l);return n=iS(n),null===t.context?t.context=n:t.pendingContext=n,(t=nf(a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=nd(l,t,a))&&(oV(e,l,a),np(e,l,a)),a}function ix(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function iz(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n=uR),uI=!1;function uU(e,t){switch(e){case"keyup":return -1!==uM.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function u$(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var uB=!1,uV={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function uj(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!uV[e.type]:"textarea"===t}function uQ(e,t,n,r){th(r),0<(t=sL(t,"onChange")).length&&(n=new iH("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var uW=null,uH=null;function uq(e){sS(e,0)}function uK(e){if(e0(eF(e)))return e}function uY(e,t){if("change"===e)return t}var uX=!1;if(e$){if(e$){var uG="oninput"in document;if(!uG){var uZ=document.createElement("div");uZ.setAttribute("oninput","return;"),uG="function"==typeof uZ.oninput}r=uG}else r=!1;uX=r&&(!document.documentMode||9=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=u6(r)}}function u5(){for(var e=window,t=e1();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(n)e=t.contentWindow;else break;t=e1(e.document)}return t}function u7(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var u9=e$&&"documentMode"in document&&11>=document.documentMode,se=null,st=null,sn=null,sr=!1;function sl(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;sr||null==se||se!==e1(r)||(r="selectionStart"in(r=se)&&u7(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},sn&&nv(sn,r)||(sn=r,0<(r=sL(st,"onSelect")).length&&(t=new iH("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=se)))}function sa(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var so={animationend:sa("Animation","AnimationEnd"),animationiteration:sa("Animation","AnimationIteration"),animationstart:sa("Animation","AnimationStart"),transitionend:sa("Transition","TransitionEnd")},si={},su={};function ss(e){if(si[e])return si[e];if(!so[e])return e;var t,n=so[e];for(t in n)if(n.hasOwnProperty(t)&&t in su)return si[e]=n[t];return e}e$&&(su=document.createElement("div").style,"AnimationEvent"in window||(delete so.animationend.animation,delete so.animationiteration.animation,delete so.animationstart.animation),"TransitionEvent"in window||delete so.transitionend.transition);var sc=ss("animationend"),sf=ss("animationiteration"),sd=ss("animationstart"),sp=ss("transitionend"),sm=new Map,sh="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split(" ");function sg(e,t){sm.set(e,t),eI(t,[e])}for(var sy=0;sy title"):null)}var ch=null;function cg(){}function cy(){if(this.count--,0===this.count){if(this.stylesheets)cb(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var cv=null;function cb(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,cv=new Map,t.forEach(ck,e),cv=null,cy.call(e))}function ck(e,t){if(!(4&t.state.loading)){var n=cv.get(e);if(n)var r=n.get("last");else{n=new Map,cv.set(e,n);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a